Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular/router

Package Overview
Dependencies
Maintainers
1
Versions
866
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/router - npm Package Compare versions

Comparing version 3.1.0-rc.0 to 3.1.0

4

bundles/router-testing.umd.js
/**
* @license Angular v3.1.0-rc.0
* @license Angular v3.1.0
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -86,3 +86,3 @@ * License: MIT

* TestBed.configureTestModule({
* modules: [
* imports: [
* RouterTestingModule.withRoutes(

@@ -89,0 +89,0 @@ * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}])]

{
"name": "@angular/router",
"version": "3.1.0-rc.0",
"version": "3.1.0",
"description": "Angular - the routing library",

@@ -24,7 +24,7 @@ "main": "bundles/router.umd.js",

"peerDependencies": {
"@angular/core": "2.1.0-rc.0",
"@angular/common": "2.1.0-rc.0",
"@angular/platform-browser": "2.1.0-rc.0",
"@angular/core": "2.1.0",
"@angular/common": "2.1.0",
"@angular/platform-browser": "2.1.0",
"rxjs": "5.0.0-beta.12"
}
}

@@ -89,3 +89,3 @@ /**

ApplyRedirects.prototype.noMatchError = function (e) {
return new Error("Cannot match any routes: '" + e.segmentGroup + "'");
return new Error("Cannot match any routes. URL Segment: '" + e.segmentGroup + "'");
};

@@ -178,3 +178,11 @@ ApplyRedirects.prototype.createUrlTree = function (rootCandidate) {

if (route.path === '**') {
return of(new UrlSegmentGroup(segments, {}));
if (route.loadChildren) {
return map.call(this.configLoader.load(injector, route.loadChildren), function (r) {
route._loadedConfig = r;
return of(new UrlSegmentGroup(segments, {}));
});
}
else {
return of(new UrlSegmentGroup(segments, {}));
}
}

@@ -181,0 +189,0 @@ else {

@@ -95,3 +95,3 @@ /**

* @Injectable()
* class CanActivateTeam implements CanActivate {
* class CanActivateTeam implements CanActivateChild {
* constructor(private permissions: Permissions, private currentUser: UserToken) {}

@@ -98,0 +98,0 @@ *

@@ -12,2 +12,3 @@ /**

import { of } from 'rxjs/observable/of';
import { concatMap } from 'rxjs/operator/concatMap';
import { every } from 'rxjs/operator/every';

@@ -550,3 +551,3 @@ import { map } from 'rxjs/operator/map';

var checks$ = from(this.checks);
var runningChecks$ = mergeMap.call(checks$, function (s) {
var runningChecks$ = concatMap.call(checks$, function (s) {
if (s instanceof CanActivate) {

@@ -553,0 +554,0 @@ return _this.runResolve(s.route);

@@ -65,3 +65,3 @@ /**

* TestBed.configureTestModule({
* modules: [
* imports: [
* RouterTestingModule.withRoutes(

@@ -68,0 +68,0 @@ * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}])]

@@ -83,3 +83,3 @@ /**

* TestBed.configureTestModule({
* modules: [
* imports: [
* RouterTestingModule.withRoutes(

@@ -86,0 +86,0 @@ * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}])]

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc