Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rollup/plugin-replace

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-replace - npm Package Compare versions

Comparing version 5.0.7 to 6.0.0

20

dist/cjs/index.js

@@ -50,22 +50,6 @@ 'use strict';

var dotIndex = objMatch[1].length;
var lastIndex = 0;
do {
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " ===")] = '"object" ===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " !==")] = '"object" !==';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "===")] = '"object"===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "!==")] = '"object"!==';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " ==")] = '"object" ===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " !=")] = '"object" !==';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "==")] = '"object"===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "!=")] = '"object"!==';
lastIndex = dotIndex + 1;
dotIndex = key.indexOf('.', lastIndex);
replacements[("typeof " + (key.slice(0, dotIndex)))] = '"object"';
dotIndex = key.indexOf('.', dotIndex + 1);
} while (dotIndex !== -1);

@@ -72,0 +56,0 @@ });

@@ -46,22 +46,6 @@ import MagicString from 'magic-string';

var dotIndex = objMatch[1].length;
var lastIndex = 0;
do {
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " ===")] = '"object" ===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " !==")] = '"object" !==';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "===")] = '"object"===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "!==")] = '"object"!==';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " ==")] = '"object" ===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + " !=")] = '"object" !==';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "==")] = '"object"===';
// eslint-disable-next-line no-param-reassign
replacements[("typeof " + (key.slice(lastIndex, dotIndex)) + "!=")] = '"object"!==';
lastIndex = dotIndex + 1;
dotIndex = key.indexOf('.', lastIndex);
replacements[("typeof " + (key.slice(0, dotIndex)))] = '"object"';
dotIndex = key.indexOf('.', dotIndex + 1);
} while (dotIndex !== -1);

@@ -68,0 +52,0 @@ });

2

package.json
{
"name": "@rollup/plugin-replace",
"version": "5.0.7",
"version": "6.0.0",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -46,22 +46,6 @@ import MagicString from 'magic-string';

let dotIndex = objMatch[1].length;
let lastIndex = 0;
do {
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)} ===`] = '"object" ===';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)} !==`] = '"object" !==';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)}===`] = '"object"===';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)}!==`] = '"object"!==';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)} ==`] = '"object" ===';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)} !=`] = '"object" !==';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)}==`] = '"object"===';
// eslint-disable-next-line no-param-reassign
replacements[`typeof ${key.slice(lastIndex, dotIndex)}!=`] = '"object"!==';
lastIndex = dotIndex + 1;
dotIndex = key.indexOf('.', lastIndex);
replacements[`typeof ${key.slice(0, dotIndex)}`] = '"object"';
dotIndex = key.indexOf('.', dotIndex + 1);
} while (dotIndex !== -1);

@@ -68,0 +52,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