rollup-plugin-filesize
Advanced tools
Comparing version 9.1.0 to 9.1.1
@@ -45,6 +45,6 @@ 'use strict'; | ||
const thisDirectory = fixWindowsPath(path.dirname(new URL( // `import.meta.url` is giving backslashes in Windows currently | ||
const thisDirectory = fixWindowsPath(path.dirname(decodeURI(new URL( // `import.meta.url` is giving backslashes in Windows currently | ||
// (at least in how it is compiled to CJS) which makes for an | ||
// invalid URL | ||
(typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)).replace(/\\/g, "/")).pathname)); | ||
(typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)).replace(/\\/g, "/")).pathname))); | ||
function filesize(options = {}, env) { | ||
@@ -51,0 +51,0 @@ let { |
{ | ||
"name": "rollup-plugin-filesize", | ||
"version": "9.1.0", | ||
"version": "9.1.1", | ||
"description": "A rollup plugin to show filesize in the cli", | ||
@@ -41,30 +41,29 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.10.3", | ||
"boxen": "^4.2.0", | ||
"@babel/runtime": "^7.13.8", | ||
"boxen": "^5.0.0", | ||
"brotli-size": "4.0.0", | ||
"colors": "^1.4.0", | ||
"filesize": "^6.1.0", | ||
"gzip-size": "^5.1.1", | ||
"pacote": "^11.1.10", | ||
"terser": "^5.5.1" | ||
"gzip-size": "^6.0.0", | ||
"pacote": "^11.2.7", | ||
"terser": "^5.6.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.3", | ||
"@babel/plugin-syntax-import-meta": "^7.10.1", | ||
"@babel/plugin-transform-runtime": "^7.10.3", | ||
"@babel/preset-env": "^7.10.3", | ||
"@babel/register": "^7.10.3", | ||
"@rollup/plugin-babel": "^5.0.4", | ||
"@babel/core": "^7.13.8", | ||
"@babel/eslint-parser": "^7.13.8", | ||
"@babel/plugin-syntax-import-meta": "^7.10.4", | ||
"@babel/plugin-transform-runtime": "^7.13.8", | ||
"@babel/preset-env": "^7.13.8", | ||
"@babel/register": "^7.13.8", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"ava": "^3.9.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-register": "^6.26.0", | ||
"eslint": "^7.3.1", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"ava": "^3.15.0", | ||
"eslint": "^7.20.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"esm": "^3.2.25", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.0.5", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.18.1" | ||
"rollup": "^2.40.0" | ||
}, | ||
@@ -71,0 +70,0 @@ "ava": { |
@@ -28,8 +28,10 @@ import { readFile as origReadFile } from "fs"; | ||
dirname( | ||
new URL( | ||
// `import.meta.url` is giving backslashes in Windows currently | ||
// (at least in how it is compiled to CJS) which makes for an | ||
// invalid URL | ||
import.meta.url.replace(/\\/g, "/") | ||
).pathname | ||
decodeURI( | ||
new URL( | ||
// `import.meta.url` is giving backslashes in Windows currently | ||
// (at least in how it is compiled to CJS) which makes for an | ||
// invalid URL | ||
import.meta.url.replace(/\\/g, "/") | ||
).pathname | ||
) | ||
) | ||
@@ -36,0 +38,0 @@ ); |
Sorry, the diff of this file is not supported yet
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
36326
17
451
+ Addedboxen@5.1.2(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedduplexer@0.1.2(transitive)
+ Addedgzip-size@6.0.0(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
- Removedboxen@4.2.0(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedchalk@3.0.0(transitive)
- Removedgzip-size@5.1.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedterm-size@2.2.1(transitive)
- Removedtype-fest@0.8.1(transitive)
Updated@babel/runtime@^7.13.8
Updatedboxen@^5.0.0
Updatedgzip-size@^6.0.0
Updatedpacote@^11.2.7
Updatedterser@^5.6.0