Socket
Socket
Sign inDemoInstall

@nuxt/utils

Package Overview
Dependencies
Maintainers
5
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/utils - npm Package Compare versions

Comparing version 2.16.3 to 2.17.0

16

dist/utils.js
/*!
* @nuxt/utils v2.16.3 (c) 2016-2023
* @nuxt/utils v2.17.0 (c) 2016-2023
* Released under the MIT License

@@ -15,3 +15,3 @@ * Repository: https://github.com/nuxt/nuxt.js

const properlock = require('proper-lockfile');
const onExit = require('signal-exit');
const signalExit = require('signal-exit');
const lodash = require('lodash');

@@ -127,3 +127,3 @@ const serialize = require('serialize-javascript');

if (!lockPaths.size) {
onExit(() => {
signalExit.onExit(() => {
for (const lockPath2 of lockPaths) {

@@ -318,3 +318,3 @@ fs.removeSync(lockPath2);

}
const DYNAMIC_ROUTE_REGEX = /^\/([:*])/;
const DYNAMIC_ROUTE_REGEX = /[:*]/;
const sortRoutes = function sortRoutes2(routes) {

@@ -344,11 +344,11 @@ routes.sort((a, b) => {

}
y = _a[i] === "*" ? 2 : _a[i].includes(":") ? 1 : 0;
z = _b[i] === "*" ? 2 : _b[i].includes(":") ? 1 : 0;
y = _a[i] === "*" ? 3 : _a[i].includes(":") ? 2 : _a[i].includes("*") ? 1 : 0;
z = _b[i] === "*" ? 3 : _b[i].includes(":") ? 2 : _b[i].includes("*") ? 1 : 0;
res = y - z;
if (i === _b.length - 1 && res === 0) {
res = _a[i] === "*" ? -1 : _a.length === _b.length ? a.path.localeCompare(b.path) : _a.length - _b.length;
res = _a[i].includes("*") ? -1 : _a.length === _b.length ? a.path.localeCompare(b.path) : _a.length - _b.length;
}
}
if (res === 0) {
res = _a[i - 1] === "*" && _b[i] ? 1 : _a.length === _b.length ? a.path.localeCompare(b.path) : _a.length - _b.length;
res = _a[i - 1].includes("*") && _b[i] ? 1 : _a.length === _b.length ? a.path.localeCompare(b.path) : _a.length - _b.length;
}

@@ -355,0 +355,0 @@ return res;

{
"name": "@nuxt/utils",
"version": "2.16.3",
"version": "2.17.0",
"repository": "nuxt/nuxt.js",

@@ -11,3 +11,3 @@ "license": "MIT",

"dependencies": {
"consola": "^2.15.3",
"consola": "^3.1.0",
"create-require": "^1.1.1",

@@ -19,10 +19,10 @@ "fs-extra": "^10.1.0",

"proper-lockfile": "^4.1.2",
"semver": "^7.3.8",
"semver": "^7.5.1",
"serialize-javascript": "^6.0.1",
"signal-exit": "^3.0.7",
"ua-parser-js": "^1.0.34",
"ufo": "^1.1.1"
"signal-exit": "^4.0.2",
"ua-parser-js": "^1.0.35",
"ufo": "^1.1.2"
},
"engines": {
"node": "^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
"node": "^14.18.0 || >=16.10.0"
},

@@ -29,0 +29,0 @@ "publishConfig": {

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