🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@rollup/pluginutils

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/pluginutils - npm Package Compare versions

Comparing version

to
5.1.1

6

./dist/cjs/index.js

@@ -91,3 +91,3 @@ 'use strict';

// class Foo {...}
if (/(Function|Class)Declaration/.test(node.type)) {
if (/(?:Function|Class)Declaration/.test(node.type)) {
scope.addDeclaration(node, false, false);

@@ -119,3 +119,3 @@ }

// create new for scope
if (/For(In|Of)?Statement/.test(node.type)) {
if (/For(?:In|Of)?Statement/.test(node.type)) {
newScope = new Scope({

@@ -317,3 +317,3 @@ parent: scope,

for (const key of Object.keys(data)) {
const underbarPrefixLength = (_b = (_a = key.match(/^(_+)/)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
if (underbarPrefixLength > maxUnderbarPrefixLength) {

@@ -320,0 +320,0 @@ maxUnderbarPrefixLength = underbarPrefixLength;

@@ -91,3 +91,3 @@ 'use strict';

// class Foo {...}
if (/(Function|Class)Declaration/.test(node.type)) {
if (/(?:Function|Class)Declaration/.test(node.type)) {
scope.addDeclaration(node, false, false);

@@ -119,3 +119,3 @@ }

// create new for scope
if (/For(In|Of)?Statement/.test(node.type)) {
if (/For(?:In|Of)?Statement/.test(node.type)) {
newScope = new Scope({

@@ -317,3 +317,3 @@ parent: scope,

for (const key of Object.keys(data)) {
const underbarPrefixLength = (_b = (_a = key.match(/^(_+)/)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
if (underbarPrefixLength > maxUnderbarPrefixLength) {

@@ -320,0 +320,0 @@ maxUnderbarPrefixLength = underbarPrefixLength;

@@ -87,3 +87,3 @@ import { extname, win32, posix, isAbsolute, resolve } from 'path';

// class Foo {...}
if (/(Function|Class)Declaration/.test(node.type)) {
if (/(?:Function|Class)Declaration/.test(node.type)) {
scope.addDeclaration(node, false, false);

@@ -115,3 +115,3 @@ }

// create new for scope
if (/For(In|Of)?Statement/.test(node.type)) {
if (/For(?:In|Of)?Statement/.test(node.type)) {
newScope = new Scope({

@@ -313,3 +313,3 @@ parent: scope,

for (const key of Object.keys(data)) {
const underbarPrefixLength = (_b = (_a = key.match(/^(_+)/)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
if (underbarPrefixLength > maxUnderbarPrefixLength) {

@@ -316,0 +316,0 @@ maxUnderbarPrefixLength = underbarPrefixLength;

{
"name": "@rollup/pluginutils",
"version": "5.1.0",
"version": "5.1.1",
"publishConfig": {

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

@@ -67,3 +67,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/pluginutils

See [rollup-plugin-inject](https://github.com/rollup/rollup-plugin-inject) or [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs) for an example of usage.
See [@rollup/plugin-inject](https://github.com/rollup/plugins/tree/master/packages/inject) or [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/master/packages/commonjs) for an example of usage.

@@ -70,0 +70,0 @@ ```js