Socket
Socket
Sign inDemoInstall

rollup-plugin-smart-asset

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-smart-asset - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

7

dist/rollup-plugin-smart-asset.cjs.js

@@ -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 @@

17

package.json
{
"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 @@ },

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