@nuxt/utils
Advanced tools
Comparing version 2.15.2 to 2.15.3
/*! | ||
* @nuxt/utils v2.15.2 (c) 2016-2021 | ||
* @nuxt/utils v2.15.3 (c) 2016-2021 | ||
* Released under the MIT License | ||
@@ -80,3 +80,3 @@ * Repository: https://github.com/nuxt/nuxt.js | ||
const isUrl = function isUrl (url) { | ||
return ['http', '//'].some(str => url.startsWith(str)) | ||
return ufo.hasProtocol(url, true) | ||
}; | ||
@@ -289,2 +289,3 @@ | ||
message: `'${prop}' is deprecated'`, | ||
// eslint-disable-next-line unicorn/error-message | ||
additional: new Error().stack.split('\n').splice(2).join('\n') | ||
@@ -820,3 +821,3 @@ }); | ||
return _require.resolve(id, { | ||
paths: [].concat(paths || [], global.__NUXT_PATHS__ || [], process.cwd()) | ||
paths: [].concat(...(global.__NUXT_PREPATHS__ || []), paths || [], global.__NUXT_PATHS__ || [], process.cwd()) | ||
}) | ||
@@ -823,0 +824,0 @@ } |
{ | ||
"name": "@nuxt/utils", | ||
"version": "2.15.2", | ||
"version": "2.15.3", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -15,3 +15,3 @@ "license": "MIT", | ||
"hash-sum": "^2.0.0", | ||
"jiti": "^1.3.0", | ||
"jiti": "^1.6.3", | ||
"lodash": "^4.17.21", | ||
@@ -23,3 +23,3 @@ "proper-lockfile": "^4.1.2", | ||
"ua-parser-js": "^0.7.24", | ||
"ufo": "^0.6.7" | ||
"ufo": "^0.6.10" | ||
}, | ||
@@ -26,0 +26,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28183
819
Updatedjiti@^1.6.3
Updatedufo@^0.6.10