rollup-plugin-smart-asset
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -219,2 +219,8 @@ 'use strict'; | ||
return path.endsWith("/") ? path : path + "/"; | ||
} // wrappers (like the one produced by commonjs) have leading \0 and trailing query string | ||
// this function removes wrapper signature to get original path of module before it was wrapped | ||
function normalizeImporter(id) { | ||
return id ? id.replace(/\?.*$/, "").replace(/^\0/, "") : undefined; | ||
} | ||
@@ -387,2 +393,3 @@ | ||
importer = normalizeImporter(importer); | ||
const id = importer && !path.isAbsolute(source) ? path.join(path.dirname(importer), source) : source; | ||
@@ -389,0 +396,0 @@ |
@@ -212,2 +212,8 @@ import { promisify } from 'util'; | ||
return path.endsWith("/") ? path : path + "/"; | ||
} // wrappers (like the one produced by commonjs) have leading \0 and trailing query string | ||
// this function removes wrapper signature to get original path of module before it was wrapped | ||
function normalizeImporter(id) { | ||
return id ? id.replace(/\?.*$/, "").replace(/^\0/, "") : undefined; | ||
} | ||
@@ -380,2 +386,3 @@ | ||
importer = normalizeImporter(importer); | ||
const id = importer && !isAbsolute(source) ? join(dirname(importer), source) : source; | ||
@@ -382,0 +389,0 @@ |
{ | ||
"name": "rollup-plugin-smart-asset", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Rollup plugin to rebase, inline or copy assets referenced from the code", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"big.js": "^6.0.3", | ||
"big.js": "^6.1.1", | ||
"magic-string": "^0.25.7", | ||
@@ -50,15 +50,16 @@ "mime": "^2.5.2", | ||
"devDependencies": { | ||
"@babel/core": "^7.13.8", | ||
"@babel/preset-env": "^7.13.9", | ||
"@babel/register": "^7.13.8", | ||
"@babel/core": "^7.14.0", | ||
"@babel/preset-env": "^7.14.1", | ||
"@babel/register": "^7.13.16", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"eslint": "^7.21.0", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"eslint": "^7.26.0", | ||
"eslint-config-standard": "^16.0.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.3.1", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"jest": "^26.6.3", | ||
"metrohash": "^2.6.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.40.0", | ||
"rollup": "^2.47.0", | ||
"xxhash": "^0.3.0" | ||
@@ -65,0 +66,0 @@ }, |
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
42366
898
15
Updatedbig.js@^6.1.1