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

@nuxt/utils

Package Overview
Dependencies
Maintainers
3
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.10.2 to 2.11.0

10

dist/utils.js
/*!
* @nuxt/utils v2.10.2 (c) 2016-2019
* @nuxt/utils v2.11.0 (c) 2016-2019

@@ -1518,3 +1518,3 @@ * - All the amazing contributors

}
fileName = fileName.replace(/^\/+$/, '/');
fileName = fileName.replace(/\/+/g, '/');
routes.push(

@@ -1795,6 +1795,6 @@ (r.path === '' && fileName[fileName.length - 1] === '/'

.replace(`${func.name || 'function'}(`, 'function (')
.replace(`function function`, `function`)
.replace('function function', 'function')
}
serializeFunction.internalFunctionRE = /^(\s*)(?!(?:if)|(?:for)|(?:while)|(?:switch))(\w+)\s*\((.*?)\)\s*\{/gm;
serializeFunction.internalFunctionRE = /^(\s*)(?!(?:if)|(?:for)|(?:while)|(?:switch)|(?:catch))(\w+)\s*\((.*?)\)\s*\{/gm;
serializeFunction.assignmentRE = /^(\s*):(\w+)\(/gm;

@@ -1999,3 +1999,3 @@

// https://gist.github.com/samthor/64b114e4a4f539915a95b91ffd340acc
const safariNoModuleFix = `!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();`;
const safariNoModuleFix = '!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();';

@@ -2002,0 +2002,0 @@ exports.ModernBrowsers = ModernBrowsers;

{
"name": "@nuxt/utils",
"version": "2.10.2",
"version": "2.11.0",
"repository": "nuxt/nuxt.js",

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

"dependencies": {
"consola": "^2.10.1",
"consola": "^2.11.1",
"fs-extra": "^8.1.0",
"hash-sum": "^2.0.0",
"proper-lockfile": "^4.1.1",
"semver": "^6.3.0",
"serialize-javascript": "^2.1.0",
"semver": "^7.1.0",
"serialize-javascript": "^2.1.2",
"signal-exit": "^3.0.2",

@@ -19,0 +19,0 @@ "ua-parser-js": "^0.7.20"

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