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.5 to 5.0.6

5

dist/cjs/index.js

@@ -85,5 +85,6 @@ 'use strict';

var keys = Object.keys(functionValues).sort(longest).map(escape);
var lookahead = preventAssignment ? '(?!\\s*(=[^=]|:[^:]))' : '';
var lookbehind = preventAssignment ? '(?<!\\b(?:const|let|var)\\s*)' : '';
var lookahead = preventAssignment ? '(?!\\s*=[^=])' : '';
var pattern = new RegExp(
((delimiters[0]) + "(" + (keys.join('|')) + ")" + (delimiters[1]) + lookahead),
("" + lookbehind + (delimiters[0]) + "(" + (keys.join('|')) + ")" + (delimiters[1]) + lookahead),
'g'

@@ -90,0 +91,0 @@ );

@@ -81,5 +81,6 @@ import MagicString from 'magic-string';

var keys = Object.keys(functionValues).sort(longest).map(escape);
var lookahead = preventAssignment ? '(?!\\s*(=[^=]|:[^:]))' : '';
var lookbehind = preventAssignment ? '(?<!\\b(?:const|let|var)\\s*)' : '';
var lookahead = preventAssignment ? '(?!\\s*=[^=])' : '';
var pattern = new RegExp(
((delimiters[0]) + "(" + (keys.join('|')) + ")" + (delimiters[1]) + lookahead),
("" + lookbehind + (delimiters[0]) + "(" + (keys.join('|')) + ")" + (delimiters[1]) + lookahead),
'g'

@@ -86,0 +87,0 @@ );

2

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

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

@@ -77,5 +77,6 @@ import MagicString from 'magic-string';

const keys = Object.keys(functionValues).sort(longest).map(escape);
const lookahead = preventAssignment ? '(?!\\s*(=[^=]|:[^:]))' : '';
const lookbehind = preventAssignment ? '(?<!\\b(?:const|let|var)\\s*)' : '';
const lookahead = preventAssignment ? '(?!\\s*=[^=])' : '';
const pattern = new RegExp(
`${delimiters[0]}(${keys.join('|')})${delimiters[1]}${lookahead}`,
`${lookbehind}${delimiters[0]}(${keys.join('|')})${delimiters[1]}${lookahead}`,
'g'

@@ -82,0 +83,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