New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

url-router

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-router - npm Package Compare versions

Comparing version 11.0.3 to 11.0.4

18

dist/URLRouter.js

@@ -27,3 +27,3 @@ 'use strict';

}
}
};
}

@@ -33,3 +33,3 @@

this._parseOptim(pattern, handler, this.root);
return this
return this;
}

@@ -81,3 +81,3 @@

find(path) {
return this._findOptim(path, this.root, {})
return this._findOptim(path, this.root, {});
}

@@ -92,6 +92,6 @@

params
}
};
}
return this._find(remain, node, params)
return this._find(remain, node, params);
}

@@ -106,3 +106,3 @@

if (result) {
return result
return result;
}

@@ -124,3 +124,3 @@ }

params
}
};
} else {

@@ -134,3 +134,3 @@ const result = this._findOptim(remain.slice(match[0].length), child, params);

return result
return result;
}

@@ -141,3 +141,3 @@ }

return null
return null;
}

@@ -144,0 +144,0 @@ }

{
"name": "url-router",
"version": "11.0.3",
"version": "11.0.4",
"description": "A Trie-based router",

@@ -26,7 +26,7 @@ "main": "dist/URLRouter",

"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"eslint": "^6.8.0",
"eslint-config-enough": "^0.3.8",
"rollup": "^1.32.0",
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"eslint": "^7.14.0",
"eslint-config-enough": "^0.6.0",
"rollup": "^2.34.0",
"rollup-plugin-babel": "^4.3.3"

@@ -36,9 +36,3 @@ },

"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
]
"@babel/preset-env"
]

@@ -49,3 +43,2 @@ },

"env": {
"browser": true,
"node": true

@@ -52,0 +45,0 @@ }

@@ -6,4 +6,5 @@ export default {

format: 'cjs',
file: 'dist/URLRouter.js'
file: 'dist/URLRouter.js',
exports: 'auto'
}
}
};

@@ -1,2 +0,2 @@

import babel from 'rollup-plugin-babel'
import babel from 'rollup-plugin-babel';

@@ -14,2 +14,2 @@ export default {

]
}
};

@@ -1,3 +0,3 @@

const assert = require('assert')
const Router = require('..')
const assert = require('assert');
const Router = require('..');

@@ -12,3 +12,3 @@ const router = new Router([

['/:year(\\d+)-:month(\\d+)', 7]
])
]);

@@ -22,3 +22,3 @@ assert.deepStrictEqual(

}
)
);

@@ -32,3 +32,3 @@ assert.deepStrictEqual(

}
)
);

@@ -44,3 +44,3 @@ assert.deepStrictEqual(

}
)
);

@@ -57,3 +57,3 @@ assert.deepStrictEqual(

}
)
);

@@ -69,3 +69,3 @@ assert.deepStrictEqual(

}
)
);

@@ -81,3 +81,3 @@ assert.deepStrictEqual(

}
)
);

@@ -91,3 +91,3 @@ assert.deepStrictEqual(

}
)
);

@@ -104,2 +104,2 @@ assert.deepStrictEqual(

}
)
);

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