@rollup/plugin-replace
Advanced tools
Comparing version 5.0.7 to 6.0.0
@@ -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 @@ }); |
{ | ||
"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 @@ }); |
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
23233
386