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

route-node

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

route-node - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="1.7.2"></a>
## [1.7.2](https://github.com/troch/route-node/compare/v1.7.1...v1.7.2) (2016-12-26)
### Bug Fixes
* callback with fully resolved route name (after adding a route) ([ca64573](https://github.com/troch/route-node/commit/ca64573))
<a name="1.7.1"></a>

@@ -2,0 +12,0 @@ ## [1.7.1](https://github.com/troch/route-node/compare/v1.7.0...v1.7.1) (2016-11-01)

19

dist/amd/route-node.js

@@ -777,3 +777,10 @@ define('RouteNode', function () { 'use strict';

if (originalRoute) cb(originalRoute);
if (originalRoute) {
var fullName = route.getParentSegments([route]).map(function (_) {
return _.name;
}).join('.');
cb(_extends({}, originalRoute, {
name: fullName
}));
}

@@ -816,5 +823,5 @@ return this;

value: function getSegmentsMatchingPath(path, options) {
var trailingSlash = options.trailingSlash;
var strictQueryParams = options.strictQueryParams;
var strongMatching = options.strongMatching;
var trailingSlash = options.trailingSlash,
strictQueryParams = options.strictQueryParams,
strongMatching = options.strongMatching;

@@ -869,4 +876,4 @@ var matchChildren = function matchChildren(nodes, pathSegment, segments) {

remainingQueryParams.forEach(function (_ref) {
var name = _ref.name;
var value = _ref.value;
var name = _ref.name,
value = _ref.value;
return segments.params[name] = value;

@@ -873,0 +880,0 @@ });

@@ -7,6 +7,6 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -200,3 +200,10 @@

if (originalRoute) cb(originalRoute);
if (originalRoute) {
var fullName = route.getParentSegments([route]).map(function (_) {
return _.name;
}).join('.');
cb(_extends({}, originalRoute, {
name: fullName
}));
}

@@ -239,5 +246,5 @@ return this;

value: function getSegmentsMatchingPath(path, options) {
var trailingSlash = options.trailingSlash;
var strictQueryParams = options.strictQueryParams;
var strongMatching = options.strongMatching;
var trailingSlash = options.trailingSlash,
strictQueryParams = options.strictQueryParams,
strongMatching = options.strongMatching;

@@ -292,4 +299,4 @@ var matchChildren = function matchChildren(nodes, pathSegment, segments) {

remainingQueryParams.forEach(function (_ref) {
var name = _ref.name;
var value = _ref.value;
var name = _ref.name,
value = _ref.value;
return segments.params[name] = value;

@@ -296,0 +303,0 @@ });

@@ -781,3 +781,10 @@ (function (global, factory) {

if (originalRoute) cb(originalRoute);
if (originalRoute) {
var fullName = route.getParentSegments([route]).map(function (_) {
return _.name;
}).join('.');
cb(_extends({}, originalRoute, {
name: fullName
}));
}

@@ -820,5 +827,5 @@ return this;

value: function getSegmentsMatchingPath(path, options) {
var trailingSlash = options.trailingSlash;
var strictQueryParams = options.strictQueryParams;
var strongMatching = options.strongMatching;
var trailingSlash = options.trailingSlash,
strictQueryParams = options.strictQueryParams,
strongMatching = options.strongMatching;

@@ -873,4 +880,4 @@ var matchChildren = function matchChildren(nodes, pathSegment, segments) {

remainingQueryParams.forEach(function (_ref) {
var name = _ref.name;
var value = _ref.value;
var name = _ref.name,
value = _ref.value;
return segments.params[name] = value;

@@ -877,0 +884,0 @@ });

@@ -148,3 +148,9 @@ import Path from 'path-parser';

if (originalRoute) cb(originalRoute);
if (originalRoute) {
const fullName = route.getParentSegments([ route ]).map((_) => _.name).join('.');
cb({
...originalRoute,
name: fullName
});
}

@@ -151,0 +157,0 @@ return this;

{
"name": "route-node",
"version": "1.7.1",
"version": "1.7.2",
"description": "A package to create a tree of named routes",

@@ -16,3 +16,3 @@ "main": "dist/commonjs/route-node.js",

"build": "npm run clean && npm run build:amd && npm run build:umd && npm run build:cjs",
"clog": "conventional-changelog -p angular -i CHANGELOG.md -w"
"clog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},

@@ -19,0 +19,0 @@ "repository": {

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