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

@vercel/routing-utils

Package Overview
Dependencies
Maintainers
54
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/routing-utils - npm Package Compare versions

Comparing version 1.11.2 to 1.11.3-canary.0

4

dist/index.js

@@ -10,6 +10,6 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTransformedRoutes = exports.normalizeRoutes = exports.isValidHandleValue = exports.isHandler = void 0;
exports.getTransformedRoutes = exports.normalizeRoutes = exports.isValidHandleValue = exports.isHandler = exports.appendRoutesToPhase = exports.mergeRoutes = exports.getCleanUrls = void 0;
const url_1 = require("url");

@@ -16,0 +16,0 @@ __exportStar(require("./schemas"), exports);

@@ -231,7 +231,8 @@ "use strict";

for (const [key, strOrArray] of Object.entries(query)) {
let value = Array.isArray(strOrArray) ? strOrArray[0] : strOrArray;
if (value) {
value = safelyCompile(value, indexes, true);
if (Array.isArray(strOrArray)) {
query[key] = strOrArray.map(str => safelyCompile(str, indexes, true));
}
query[key] = value;
else {
query[key] = safelyCompile(strOrArray, indexes, true);
}
}

@@ -238,0 +239,0 @@ }

{
"name": "@vercel/routing-utils",
"version": "1.11.2",
"version": "1.11.3-canary.0",
"description": "Vercel routing utilities",

@@ -28,3 +28,3 @@ "main": "./dist/index.js",

"ajv": "^6.0.0",
"typescript": "3.9.3"
"typescript": "4.3.4"
},

@@ -34,3 +34,3 @@ "optionalDependencies": {

},
"gitHead": "e659eecf485f395478d8820ce1af2d3618068cb0"
"gitHead": "cf827a8b919ff6eed383863af39c26d51b2aa16e"
}
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