🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

router_js

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

router_js - npm Package Compare versions

Comparing version

to
6.1.2

10

dist/cjs/route-info.js

@@ -99,13 +99,11 @@ 'use strict';

function createRouteInfoWithAttributes(routeInfo, context) {
var objects = [{
var attributes = {
get attributes() {
return context;
}
}];
};
if (Object.isFrozen(routeInfo)) {
objects.unshift({}, routeInfo);
} else {
objects.unshift(routeInfo);
return Object.assign({}, routeInfo, attributes);
}
return Object.assign.apply(null, objects);
return Object.assign(routeInfo, attributes);
}

@@ -112,0 +110,0 @@

17

dist/modules/route-info.js

@@ -68,16 +68,11 @@ import { Promise } from 'rsvp';

function createRouteInfoWithAttributes(routeInfo, context) {
let objects = [
{
get attributes() {
return context;
},
let attributes = {
get attributes() {
return context;
},
];
};
if (Object.isFrozen(routeInfo)) {
objects.unshift({}, routeInfo);
return Object.assign({}, routeInfo, attributes);
}
else {
objects.unshift(routeInfo);
}
return Object.assign.apply(null, objects);
return Object.assign(routeInfo, attributes);
}

@@ -84,0 +79,0 @@ export default class InternalRouteInfo {

{
"name": "router_js",
"version": "6.1.1",
"version": "6.1.2",
"description":

@@ -5,0 +5,0 @@ "A lightweight JavaScript library is built on top of route-recognizer and rsvp.js to provide an API for handling routes",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet