angular-crumble
Advanced tools
Comparing version 0.2.3 to 0.3.0
{ | ||
"name": "angular-crumble", | ||
"description": "A highly customizable breadcrumb service for AngularJS with ngRoute. Gets you back home the way YOU want.", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"main": "crumble.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
{ | ||
"name": "angular-crumble", | ||
"version": "0.3.0", | ||
"description": "A highly customizable breadcrumb service for AngularJS with ngRoute. Gets you back home the way YOU want.", | ||
"version": "0.2.3", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"author": "Raphael von der Grün <raphinesse@gmail.com>", | ||
"peerDependencies": { | ||
"angular": "^1.2" | ||
}, | ||
"dependencies": { | ||
"angular-route": "^1.2" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/raphinesse/angular-crumble.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/raphinesse/angular-crumble/issues" | ||
}, | ||
"keywords": [ | ||
@@ -39,5 +23,21 @@ "angular", | ||
], | ||
"bugs": { | ||
"url": "https://github.com/raphinesse/angular-crumble/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "Raphael von der Grün <raphinesse@gmail.com>", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/raphinesse/angular-crumble.git" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "karma start", | ||
"version": "sync-version bower.json && git add bower.json" | ||
}, | ||
"devDependencies": { | ||
"angular": "^1.2", | ||
"angular-mocks": "^1.2", | ||
"angular-route": "^1.2", | ||
"eslint": "^3.19.0", | ||
@@ -51,10 +51,9 @@ "jasmine-core": "^2.5.2", | ||
"karma-verbose-reporter": "0.0.6", | ||
"node-style-guide": "https://github.com/felixge/node-style-guide.git", | ||
"node-style-guide": "felixge/node-style-guide", | ||
"sync-version": "^1.0.1" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "karma start", | ||
"version": "sync-version bower.json && git add bower.json" | ||
"peerDependencies": { | ||
"angular": "^1.2", | ||
"angular-route": "^1.2" | ||
} | ||
} |
@@ -134,6 +134,8 @@ # crumble | ||
// Put this in your run method | ||
var getParent = crumble.getParent; | ||
var getDefaultParent = crumble.getParent; | ||
crumble.getParent = function (path) { | ||
var route = crumble.getRoute(path); | ||
return route && angular.isDefined(route.parent) ? route.parent : getParent(path); | ||
return route && angular.isDefined(route.parent) | ||
? route.parent | ||
: getDefaultParent(path); | ||
}; | ||
@@ -140,0 +142,0 @@ ~~~ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
187
0
18249
13
11
- Removedangular-route@^1.2