Socket
Socket
Sign inDemoInstall

rollup-plugin-filesize

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-filesize - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1

4

dist/index.js

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

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