diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index 6b4ded6b4..a2585a832 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -22,15 +22,15 @@ }, "dependencies": { "nativescript-intl": "~0.0.8", - "@angular/core": "~2.2.1", - "@angular/common": "~2.2.1", - "@angular/compiler": "~2.2.1", - "@angular/http": "~2.2.1", - "@angular/platform-browser": "~2.2.1", - "@angular/platform-browser-dynamic": "~2.2.1", - "@angular/forms": "~2.2.1", - "@angular/router": "~3.2.1", - "rxjs": "5.0.0-beta.12", + "@angular/core": "~2.3.1", + "@angular/common": "~2.3.1", + "@angular/compiler": "~2.3.1", + "@angular/http": "~2.3.1", + "@angular/platform-browser": "~2.3.1", + "@angular/platform-browser-dynamic": "~2.3.1", + "@angular/forms": "~2.3.1", + "@angular/router": "~3.3.1", + "rxjs": "5.0.0-rc.4", "reflect-metadata": "~0.1.8", "parse5": "1.3.2", "punycode": "1.3.2", @@ -41,10 +41,10 @@ "typescript": "~2.0.10", "tslint": "~4.0.1", "codelyzer": "^2.0.0-beta.1", - "@angular/compiler-cli": "~2.2.1", + "@angular/compiler-cli": "~2.3.1", "codelyzer": "^2.0.0-beta.1", "tns-core-modules": ">=2.5.0 || >=2.5.0-2016", - "zone.js": "^0.6.21" + "zone.js": "^0.7.2" }, "nativescript": {} } diff --git a/nativescript-angular/router/ns-location-strategy.ts b/nativescript-angular/router/ns-location-strategy.ts index 995cf736e..96af9ca3c 100644 --- a/nativescript-angular/router/ns-location-strategy.ts +++ b/nativescript-angular/router/ns-location-strategy.ts @@ -28,7 +28,7 @@ export class NSLocationStrategy extends LocationStrategy { private states = new Array(); private popStateCallbacks = new Array<(_: any) => any>(); - private _isPageNavigationgBack = false; + private _isPageNavigationBack = false; private _currentNavigationOptions: NavigationOptions; constructor(private frame: Frame) { @@ -86,7 +86,7 @@ export class NSLocationStrategy extends LocationStrategy { } back(): void { - if (this._isPageNavigationgBack) { + if (this._isPageNavigationBack) { // We are navigating to the previous page // clear the stack until we get to a page navigation state let state = this.states.pop(); @@ -154,22 +154,22 @@ export class NSLocationStrategy extends LocationStrategy { // Methods for syncing with page navigation in PageRouterOutlet public _beginBackPageNavigation() { routerLog("NSLocationStrategy.startGoBack()"); - if (this._isPageNavigationgBack) { + if (this._isPageNavigationBack) { throw new Error("Calling startGoBack while going back."); } - this._isPageNavigationgBack = true; + this._isPageNavigationBack = true; } public _finishBackPageNavigation() { routerLog("NSLocationStrategy.finishBackPageNavigation()"); - if (!this._isPageNavigationgBack) { + if (!this._isPageNavigationBack) { throw new Error("Calling endGoBack while not going back."); } - this._isPageNavigationgBack = false; + this._isPageNavigationBack = false; } public _isPageNavigatingBack() { - return this._isPageNavigationgBack; + return this._isPageNavigationBack; } public _beginPageNavigation(): NavigationOptions { @@ -199,7 +199,7 @@ export class NSLocationStrategy extends LocationStrategy { `${JSON.stringify(this._currentNavigationOptions)})`); } - public _getSatates(): Array { + public _getStates(): Array { return this.states.slice(); } } diff --git a/ng-sample/app/examples/list/list-test-async.ts b/ng-sample/app/examples/list/list-test-async.ts index ba52d4753..5b0b76bcf 100644 --- a/ng-sample/app/examples/list/list-test-async.ts +++ b/ng-sample/app/examples/list/list-test-async.ts @@ -1,8 +1,8 @@ -import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; -import * as Rx from 'rxjs/Observable'; -import { combineLatest } from 'rxjs/operator/combineLatest'; +import { Component, ChangeDetectionStrategy } from '@angular/core'; +import { DataItem, DataService } from "./data.service"; +import { Observable } from "rxjs/Observable"; import { BehaviorSubject } from "rxjs/BehaviorSubject"; -import { DataItem, DataService } from "./data.service" +import "rxjs/add/operator/combineLatest"; @Component({ selector: 'list-test-async', @@ -80,19 +80,18 @@ export class ListTestAsync { - + ` }) export class ListTestFilterAsync { public isUpdating: boolean = false; - public filteredItems$: Rx.Observable>; + public filteredItems$: Observable>; private filter$ = new BehaviorSubject(false); constructor(private service: DataService) { - // Create filteredItems$ by combining the service.items$ and filter$ - this.filteredItems$ = combineLatest(this.service.items$, this.filter$, (data, filter) => { + this.filteredItems$ = this.service.items$.combineLatest(this.filter$, (data, filter) => { return filter ? data.filter(v => v.id % 2 === 0) : data; }); } @@ -111,7 +110,7 @@ export class ListTestFilterAsync { this.isUpdating = !this.isUpdating; } - public toogleFilter() { + public toggleFilter() { this.filter$.next(!this.filter$.value); } } diff --git a/ng-sample/app/examples/router/clear-history-test.ts b/ng-sample/app/examples/router/clear-history-test.ts index eccf50c40..c2ba9df23 100644 --- a/ng-sample/app/examples/router/clear-history-test.ts +++ b/ng-sample/app/examples/router/clear-history-test.ts @@ -1,9 +1,8 @@ import { Component, OnInit, OnDestroy, Injectable } from "@angular/core"; -import { ActivatedRoute, Router, CanDeactivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; -import { Observable } from "rxjs"; -import { RouterExtensions, PageRoute } from "nativescript-angular/router"; +import { Router } from '@angular/router'; +import { RouterExtensions } from "nativescript-angular/router"; import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy"; -import { BehaviorSubject} from "rxjs"; +import { BehaviorSubject } from "rxjs/BehaviorSubject"; @Injectable() class LocationLogService { @@ -15,7 +14,7 @@ class LocationLogService { router.events.subscribe((e) => { this.routerEvents$.next([...this.routerEvents$.getValue(), e.toString()]); - let states = this.strategy._getSatates() + let states = this.strategy._getStates() .map((v, i) => { return (i + "." + (v.isPageNavigation ? "[PAGE]" : "") + " \"" + v.url + "\""); }) diff --git a/ng-sample/app/examples/router/login-test.ts b/ng-sample/app/examples/router/login-test.ts index 41a432287..c1d4b590c 100644 --- a/ng-sample/app/examples/router/login-test.ts +++ b/ng-sample/app/examples/router/login-test.ts @@ -1,11 +1,10 @@ -import { Component, OnInit, OnDestroy, Injectable } from "@angular/core"; -import { Router, CanActivate, Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, ActivatedRoute, Params } from '@angular/router'; -import { Observable } from "rxjs"; +import { Component, Injectable } from "@angular/core"; +import { CanActivate, Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { RouterExtensions, PageRoute } from "nativescript-angular/router"; -import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy"; -import { BehaviorSubject } from "rxjs"; -import { Page } from "ui/page"; -import * as appSettings from "application-settings" +import * as appSettings from "application-settings"; +import { Observable } from "rxjs/Observable"; +import "rxjs/add/operator/map"; +import "rxjs/add/operator/switchMap"; const USER_KEY = "user"; @@ -160,7 +159,7 @@ class ResolveGuard implements Resolve { static counter = 0; resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | ResolvedData { const result: ResolvedData = { id: ResolveGuard.counter++ } - console.log(`ResolveGuard: Fteching new data. Result: ${JSON.stringify(result)} `); + console.log(`ResolveGuard: Fetching new data. Result: ${JSON.stringify(result)} `); return result; } } @@ -175,17 +174,17 @@ export class LoginAppComponent { { path: "main", component: MainComponent, canActivate: [AuthGuard], resolve: [ResolveGuard] }, { path: "inner", component: InnerComponent, canActivate: [AuthGuard] }, { path: "login", component: LoginComponent }, - ] + ]; static entries = [ LoginComponent, MainComponent, InnerComponent - ] + ]; static providers = [ AuthGuard, ResolveGuard, LoginService, - ] + ]; } diff --git a/ng-sample/app/examples/router/page-router-outlet-nested-test.ts b/ng-sample/app/examples/router/page-router-outlet-nested-test.ts index 1d147060d..50a0a071b 100644 --- a/ng-sample/app/examples/router/page-router-outlet-nested-test.ts +++ b/ng-sample/app/examples/router/page-router-outlet-nested-test.ts @@ -1,9 +1,9 @@ import { Component, OnInit, OnDestroy } from "@angular/core"; -import { ActivatedRoute, Router, Event } from '@angular/router'; -import { Observable } from "rxjs"; -import { Location, LocationStrategy} from '@angular/common'; +import { ActivatedRoute, Router } from '@angular/router'; +import { Location } from '@angular/common'; import { Page } from "ui/page"; - +import { Observable } from "rxjs/Observable"; +import 'rxjs/add/operator/map'; @Component({ selector: "first", diff --git a/ng-sample/app/examples/router/page-router-outlet-test.ts b/ng-sample/app/examples/router/page-router-outlet-test.ts index 9be9341a3..42450361d 100644 --- a/ng-sample/app/examples/router/page-router-outlet-test.ts +++ b/ng-sample/app/examples/router/page-router-outlet-test.ts @@ -1,8 +1,9 @@ import { Component, OnInit, OnDestroy } from "@angular/core"; import { ActivatedRoute, Router } from '@angular/router'; -import { Observable } from "rxjs"; import { Location } from '@angular/common'; import { Page } from "ui/page"; +import { Observable } from "rxjs/Observable"; +import 'rxjs/add/operator/map'; @Component({ diff --git a/ng-sample/app/examples/router/router-outlet-test.ts b/ng-sample/app/examples/router/router-outlet-test.ts index cf55ad39d..7a00132e2 100644 --- a/ng-sample/app/examples/router/router-outlet-test.ts +++ b/ng-sample/app/examples/router/router-outlet-test.ts @@ -1,5 +1,6 @@ import { Component, OnInit, OnDestroy } from "@angular/core"; import { ActivatedRoute } from '@angular/router'; +import "rxjs/add/operator/map"; @Component({ selector: "first", diff --git a/ng-sample/package.json b/ng-sample/package.json index 8cfb96479..e677004a3 100644 --- a/ng-sample/package.json +++ b/ng-sample/package.json @@ -23,20 +23,20 @@ }, "homepage": "https://github.com/NativeScript/template-hello-world", "dependencies": { - "tns-core-modules": "2.4.0", + "tns-core-modules": "~2.4.0", "nativescript-angular": "file:../nativescript-angular", - "@angular/core": "~2.2.1", - "@angular/common": "~2.2.1", - "@angular/compiler": "~2.2.1", - "@angular/forms": "~2.2.1", - "@angular/http": "~2.2.1", - "@angular/platform-browser": "~2.2.1", - "@angular/platform-browser-dynamic": "~2.2.1", - "@angular/router": "~3.2.1", - "rxjs": "5.0.0-beta.12" + "@angular/core": "~2.3.1", + "@angular/common": "~2.3.1", + "@angular/compiler": "~2.3.1", + "@angular/http": "~2.3.1", + "@angular/platform-browser": "~2.3.1", + "@angular/platform-browser-dynamic": "~2.3.1", + "@angular/forms": "~2.3.1", + "@angular/router": "~3.3.1", + "rxjs": "5.0.0-rc.4" }, "devDependencies": { - "zone.js": "~0.6.21", + "zone.js": "~0.7.2", "babel-traverse": "6.9.0", "babel-types": "6.10.0", "babylon": "6.8.1", diff --git a/tests/app/base.component.ts b/tests/app/base.component.ts index f64fcf4cf..6909d5921 100644 --- a/tests/app/base.component.ts +++ b/tests/app/base.component.ts @@ -1,6 +1,6 @@ -import {Component, OpaqueToken, OnInit, OnDestroy} from "@angular/core"; +import { OpaqueToken, OnInit, OnDestroy } from "@angular/core"; export const HOOKS_LOG = new OpaqueToken("Hooks log"); -import {BehaviorSubject} from "rxjs"; +import { BehaviorSubject } from "rxjs/BehaviorSubject"; export class BaseComponent implements OnInit, OnDestroy { protected name: string = ""; diff --git a/tests/app/first.component.ts b/tests/app/first.component.ts index 564b159f2..99fc6a99a 100644 --- a/tests/app/first.component.ts +++ b/tests/app/first.component.ts @@ -1,7 +1,7 @@ import { Router, ActivatedRoute } from '@angular/router'; import { Component, Inject } from "@angular/core"; import { HOOKS_LOG, BaseComponent } from "./base.component"; -import { BehaviorSubject } from "rxjs"; +import { BehaviorSubject } from "rxjs/BehaviorSubject"; @Component({ selector: "first-comp", diff --git a/tests/app/main.ts b/tests/app/main.ts index a8db10d38..32e122505 100644 --- a/tests/app/main.ts +++ b/tests/app/main.ts @@ -26,7 +26,7 @@ import { NavigationApp } from "./snippets/navigation/router-outlet"; import { rendererTraceCategory, routerTraceCategory } from "nativescript-angular/trace"; -import { BehaviorSubject } from "rxjs"; +import { BehaviorSubject } from "rxjs/BehaviorSubject"; import trace = require("trace"); // trace.setCategories(rendererTraceCategory + "," + routerTraceCategory); diff --git a/tests/app/second.component.ts b/tests/app/second.component.ts index 4b0c5093f..696dd5a2f 100644 --- a/tests/app/second.component.ts +++ b/tests/app/second.component.ts @@ -1,8 +1,8 @@ -import {Router, ActivatedRoute } from '@angular/router'; -import {Component, Inject} from "@angular/core"; -import {Location} from "@angular/common"; -import {HOOKS_LOG, BaseComponent} from "./base.component"; -import {BehaviorSubject} from "rxjs"; +import { Router, ActivatedRoute } from "@angular/router"; +import { Component, Inject } from "@angular/core"; +import { Location } from "@angular/common"; +import { HOOKS_LOG, BaseComponent } from "./base.component"; +import { BehaviorSubject } from "rxjs/BehaviorSubject"; @Component({ selector: "second-comp", @@ -17,7 +17,7 @@ import {BehaviorSubject} from "rxjs"; }) export class SecondComponent extends BaseComponent { protected name = "second"; - public id: string = "" + public id: string = ""; constructor(private router: Router, private location: Location, private routeData: ActivatedRoute, @Inject(HOOKS_LOG) hooksLog: BehaviorSubject>) { super(hooksLog); diff --git a/tests/app/snippets/navigation/route-params.ts b/tests/app/snippets/navigation/route-params.ts index 9a04e56a7..ee72928c1 100644 --- a/tests/app/snippets/navigation/route-params.ts +++ b/tests/app/snippets/navigation/route-params.ts @@ -12,6 +12,8 @@ class MyComponent { // >> router-params-page-route import { PageRoute } from "nativescript-angular/router"; +import "rxjs/add/operator/switchMap"; + class MyPageComponent { id: number; constructor(private pageRoute: PageRoute) { diff --git a/tests/app/tests/ns-location-strategy.ts b/tests/app/tests/ns-location-strategy.ts index 430933106..176cf2ba1 100644 --- a/tests/app/tests/ns-location-strategy.ts +++ b/tests/app/tests/ns-location-strategy.ts @@ -1,9 +1,9 @@ //make sure you import mocha-config before @angular/core -import {assert} from "./test-config"; -import {NSLocationStrategy, LocationState} from "nativescript-angular/router/ns-location-strategy"; -import {Frame, BackstackEntry, NavigationEntry} from "ui/frame"; -import {Page} from "ui/page"; -import {View} from "ui/core/view"; +import { assert } from "./test-config"; +import { NSLocationStrategy, LocationState } from "nativescript-angular/router/ns-location-strategy"; +import { Frame, BackstackEntry, NavigationEntry } from "ui/frame"; +import { Page } from "ui/page"; +import { View } from "ui/core/view"; class FakeFrame extends View implements Frame { backStack: Array; @@ -32,12 +32,12 @@ class FakeFrame extends View implements Frame { public get navigationBarHeight(): number { throw new Error("I am a FakeFrame"); } - + public _processNavigationQueue(page: Page) { throw new Error("I am a FakeFrame"); } - public _updateActionBar(page?: Page){ + public _updateActionBar(page?: Page) { throw new Error("I am a FakeFrame"); } @@ -52,15 +52,15 @@ function initStrategy(back?: () => void): NSLocationStrategy { return strategy; } -function assertStatesEqual(actual: Array, expeced: Array) { +function assertStatesEqual(actual: Array, expected: Array) { assert.isArray(actual); - assert.isArray(expeced); - assert.equal(actual.length, expeced.length); + assert.isArray(expected); + assert.equal(actual.length, expected.length); for (let i = 0; i < actual.length; i++) { assert.deepEqual( - actual[i], expeced[i], - `State[${i}] does not match!\n actual: ${JSON.stringify(actual[i])}\nexpected: ${JSON.stringify(expeced[i])}`); + actual[i], expected[i], + `State[${i}] does not match!\n actual: ${JSON.stringify(actual[i])}\nexpected: ${JSON.stringify(expected[i])}`); } } @@ -103,7 +103,7 @@ describe('NSLocationStrategy', () => { it("canGoBack() return false initially", () => { const strategy = initStrategy(); - assert.isFalse(strategy.canGoBack(), "canGoBack() should reutrn false if there are no navigations"); + assert.isFalse(strategy.canGoBack(), "canGoBack() should return false if there are no navigations"); }); it("canGoBack() return true after navigation", () => { @@ -111,7 +111,7 @@ describe('NSLocationStrategy', () => { strategy.pushState(null, "test", "/test", null); - assert.isTrue(strategy.canGoBack(), "canGoBack() should reutrn true after navigation"); + assert.isTrue(strategy.canGoBack(), "canGoBack() should return true after navigation"); }); it("back() calls onPopState", () => { @@ -128,7 +128,7 @@ describe('NSLocationStrategy', () => { assert.equal(popCount, 1); }); - it("replaceState() replaces state - dosn't call onPopState", () => { + it("replaceState() replaces state - doesn't call onPopState", () => { const strategy = initStrategy(); let popCount = 0; strategy.onPopState(() => { popCount++; }); @@ -144,15 +144,15 @@ describe('NSLocationStrategy', () => { it("pushState() with page navigation", () => { const strategy = initStrategy(); - const expextedStates: Array = [createState("/", true)]; + const expectedStates: Array = [createState("/", true)]; simulatePageNavigation(strategy, "/page"); - expextedStates.push(createState("/page", true)); + expectedStates.push(createState("/page", true)); strategy.pushState(null, null, "/internal", null); - expextedStates.push(createState("/internal")); + expectedStates.push(createState("/internal")); - assertStatesEqual(strategy._getSatates(), expextedStates); + assertStatesEqual(strategy._getStates(), expectedStates); }); @@ -166,7 +166,7 @@ describe('NSLocationStrategy', () => { assert.equal(frameBackCount, 0); assert.equal(popCount, 0); - assert.equal(strategy._getSatates().length, 2); + assert.equal(strategy._getStates().length, 2); // Act strategy.back(); @@ -174,7 +174,7 @@ describe('NSLocationStrategy', () => { // Assert assert.equal(frameBackCount, 1); assert.equal(popCount, 0); - assert.equal(strategy._getSatates().length, 2); + assert.equal(strategy._getStates().length, 2); }); @@ -188,7 +188,7 @@ describe('NSLocationStrategy', () => { assert.equal(frameBackCount, 0); assert.equal(popCount, 0); - assert.equal(strategy._getSatates().length, 2); + assert.equal(strategy._getStates().length, 2); // Act simulatePageBack(strategy); @@ -196,7 +196,7 @@ describe('NSLocationStrategy', () => { // Assert assert.equal(frameBackCount, 0); assert.equal(popCount, 1); - assert.equal(strategy._getSatates().length, 1); + assert.equal(strategy._getStates().length, 1); }); @@ -208,9 +208,6 @@ describe('NSLocationStrategy', () => { simulatePageNavigation(strategy, "/cleared"); // Assert - assertStatesEqual(strategy._getSatates(), [createState("/cleared", true)]); + assertStatesEqual(strategy._getStates(), [createState("/cleared", true)]); }); }); - - - diff --git a/tests/app/tests/snippets.ts b/tests/app/tests/snippets.ts index d3af896bf..32c549f92 100644 --- a/tests/app/tests/snippets.ts +++ b/tests/app/tests/snippets.ts @@ -2,7 +2,7 @@ import { assert } from "./test-config"; import { NavigationEnd, NavigationStart } from "@angular/router"; -import { Subscription } from "rxjs"; +import { Subscription } from "rxjs/Subscription"; import { TestApp, bootstrapTestApp, destroyTestApp } from "./test-app"; import { GestureComponent } from "../snippets/gestures.component"; diff --git a/tests/npm-shrinkwrap.json b/tests/npm-shrinkwrap.json index 184001d22..825886324 100644 --- a/tests/npm-shrinkwrap.json +++ b/tests/npm-shrinkwrap.json @@ -3,44 +3,44 @@ "version": "1.0.0", "dependencies": { "@angular/common": { - "version": "2.2.1", - "from": "@angular/common@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/common@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-2.3.1.tgz" }, "@angular/compiler": { - "version": "2.2.1", - "from": "@angular/compiler@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/compiler@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-2.3.1.tgz" }, "@angular/core": { - "version": "2.2.1", - "from": "@angular/core@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/core@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-2.3.1.tgz" }, "@angular/forms": { - "version": "2.2.1", - "from": "@angular/forms@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/forms@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-2.3.1.tgz" }, "@angular/http": { - "version": "2.2.1", - "from": "@angular/http@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/http/-/http-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/http@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/http/-/http-2.3.1.tgz" }, "@angular/platform-browser": { - "version": "2.2.1", - "from": "@angular/platform-browser@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/platform-browser@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-2.3.1.tgz" }, "@angular/platform-browser-dynamic": { - "version": "2.2.1", - "from": "@angular/platform-browser-dynamic@>=2.2.1 <2.3.0", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-2.2.1.tgz" + "version": "2.3.1", + "from": "@angular/platform-browser-dynamic@>=2.3.1 <2.4.0", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-2.3.1.tgz" }, "@angular/router": { - "version": "3.2.1", - "from": "@angular/router@>=3.2.1 <3.3.0", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-3.2.1.tgz" + "version": "3.3.1", + "from": "@angular/router@>=3.3.1 <3.4.0", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-3.3.1.tgz" }, "abbrev": { "version": "1.0.9", @@ -3556,8 +3556,13 @@ "from": "ms@0.7.2", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz" }, + "nan": { + "version": "2.4.0", + "from": "nan@>=2.3.0 <3.0.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.4.0.tgz" + }, "nativescript-angular": { - "version": "1.2.0", + "version": "1.3.0", "from": "../nativescript-angular", "resolved": "file:../nativescript-angular" }, @@ -3574,9 +3579,9 @@ } }, "nativescript-intl": { - "version": "0.0.4", - "from": "nativescript-intl@>=0.0.4 <0.1.0", - "resolved": "https://registry.npmjs.org/nativescript-intl/-/nativescript-intl-0.0.4.tgz" + "version": "0.0.8", + "from": "nativescript-intl@>=0.0.8 <0.1.0", + "resolved": "https://registry.npmjs.org/nativescript-intl/-/nativescript-intl-0.0.8.tgz" }, "nativescript-unit-test-runner": { "version": "0.3.4", @@ -3820,9 +3825,9 @@ } }, "rxjs": { - "version": "5.0.0-beta.12", - "from": "rxjs@5.0.0-beta.12", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.0.0-beta.12.tgz" + "version": "5.0.0-rc.4", + "from": "rxjs@5.0.0-rc.4", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.0.0-rc.4.tgz" }, "semver": { "version": "4.3.6", @@ -4173,4 +4178,4 @@ } } } -} +} \ No newline at end of file diff --git a/tests/package.json b/tests/package.json index b502b95c5..83ea1a750 100644 --- a/tests/package.json +++ b/tests/package.json @@ -27,19 +27,19 @@ "homepage": "http://nativescript.org", "dependencies": { "nativescript-unit-test-runner": "^0.3.4", - "tns-core-modules": "2.4.0", + "tns-core-modules": "~2.4.0", "nativescript-angular": "file:../nativescript-angular", - "@angular/core": "~2.2.1", - "@angular/common": "~2.2.1", - "@angular/compiler": "~2.2.1", - "@angular/http": "~2.2.1", - "@angular/platform-browser": "~2.2.1", - "@angular/platform-browser-dynamic": "~2.2.1", - "@angular/router": "~3.2.1", - "rxjs": "5.0.0-beta.12" + "@angular/core": "~2.3.1", + "@angular/common": "~2.3.1", + "@angular/compiler": "~2.3.1", + "@angular/http": "~2.3.1", + "@angular/platform-browser": "~2.3.1", + "@angular/platform-browser-dynamic": "~2.3.1", + "@angular/router": "~3.3.1", + "rxjs": "5.0.0-rc.4" }, "devDependencies": { - "zone.js": "~0.6.21", + "zone.js": "^0.7.2", "babel-traverse": "6.8.0", "babel-types": "6.8.1", "babylon": "6.8.0", diff --git a/tsconfig.json b/tsconfig.json index e5038bc51..d7ac77ccf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "emitDecoratorMetadata": true, - "noImplicitUseStrict": true, - "noEmitHelpers": true, + "noImplicitUseStrict": true, + "noEmitHelpers": true, "experimentalDecorators": true, "target": "es5", "module": "commonjs", @@ -13,4 +13,4 @@ "./node_modules/tns-core-modules/tns-core-modules.d.ts", "./src/**/*.ts" ] -} +} \ No newline at end of file