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

@vercel/routing-utils

Package Overview
Dependencies
Maintainers
13
Versions
80
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.8.3-canary.2 to 1.8.3-canary.3

14

dist/index.js

@@ -161,11 +161,5 @@ "use strict";

}
function createError(code, errors, link, action) {
let message;
let otherErrors = [];
if (Array.isArray(errors)) {
[message, ...otherErrors] = errors;
}
else {
message = errors;
}
function createError(code, allErrors, link, action) {
const errors = Array.isArray(allErrors) ? allErrors : [allErrors];
const message = errors[0];
const error = {

@@ -176,3 +170,3 @@ code,

action,
otherErrors,
errors,
};

@@ -179,0 +173,0 @@ return error;

@@ -7,3 +7,3 @@ import { HandleValue } from './index';

action?: string;
otherErrors?: string[];
errors?: string[];
};

@@ -10,0 +10,0 @@ export declare type Source = {

{
"name": "@vercel/routing-utils",
"version": "1.8.3-canary.2",
"version": "1.8.3-canary.3",
"description": "Vercel routing utilities",

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

},
"gitHead": "b16f94098af561ab9ea12597fd019a1ac423cc38"
"gitHead": "45d05a603b0d883461e5ed6aa5d1bf18d4a3cc55"
}
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