New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

execall2

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

execall2 - npm Package Compare versions

Comparing version
2.0.21
to
2.0.22
+30
-0
CHANGELOG.md

@@ -6,2 +6,32 @@ # Change Log

## [2.0.22](https://github.com/bluelovers/ws-regexp/compare/execall2@2.0.21...execall2@2.0.22) (2022-10-16)
### 📦 Code Refactoring
* update import ([1c65802](https://github.com/bluelovers/ws-regexp/commit/1c658029a945b07193d30d26bddafd1ba23944a5))
### 📚 Documentation
* update meta and deps ([333919c](https://github.com/bluelovers/ws-regexp/commit/333919c0bfbed688463fa4850d47ec29cbf0a1a2))
### 🚨 Tests
* update snapshot ([b305f86](https://github.com/bluelovers/ws-regexp/commit/b305f86986b073c1504fc842d019a61453a69741))
### 🛠 Build System
* update typescript ([8a56808](https://github.com/bluelovers/ws-regexp/commit/8a568085c5047a1ae2fa9f79421b15a405c9c489))
### 📌 Dependencies
* update deps ([84eb794](https://github.com/bluelovers/ws-regexp/commit/84eb7941e3fbd630fde0b2996fb5e2f9be101179))
## [2.0.21](https://github.com/bluelovers/ws-regexp/compare/execall2@2.0.20...execall2@2.0.21) (2022-02-04)

@@ -8,0 +38,0 @@

+2
-2

@@ -6,3 +6,3 @@ "use strict";

/// <reference lib="es2018.regexp" />
const clone_regexp_1 = tslib_1.__importDefault(require("@regexp-cjk/clone-regexp"));
const clone_regexp_1 = require("@regexp-cjk/clone-regexp");
tslib_1.__exportStar(require("./lib/types"), exports);

@@ -15,3 +15,3 @@ const types_1 = require("./lib/types");

const matches = [];
const re = (0, clone_regexp_1.default)(inputRegExp, options);
const re = (0, clone_regexp_1.cloneRegexp)(inputRegExp, options);
const isGlobal = re.global;

@@ -18,0 +18,0 @@ if (resetLastIndex) {

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","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CAAC;QAEJ,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;QAEzB,IAAI,CAAC,QAAQ,EACb;YACC,MAAM;SACN;KACD;IAED,IAAI,CAAC,gBAAgB,EACrB;QACC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE;YAChC,EAAE,EAAE;gBACH,KAAK,EAAE,EAAE;gBACT,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aACf;YAED,KAAK,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aACf;YAED,SAAS,EAAE;gBACV,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aACf;SACD,CAAC,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AAChB,CAAC;AA9ED,0BA8EC;AAEmB,0BAAO;AAE3B,kBAAe,OAAO,CAAC","sourcesContent":["/// <reference lib=\"es2018.regexp\" />\nimport _cloneRegexp, { ICloneRegexp } from '@regexp-cjk/clone-regexp';\n\nexport * from './lib/types';\n\nimport { IExecAllOptions, IMatches, IMatchesRow, SYMBOL } from './lib/types';\n\nexport function execall<T extends RegExp = RegExp>(inputRegExp: T | RegExp,\n\tinput: string,\n\toptions?: IExecAllOptions<T>,\n): IMatches<T>\n{\n\tlet match: IMatchesRow<T>;\n\toptions = options || {};\n\n\tconst { resetLastIndex = true, cloneRegexp, removeHiddenData } = options;\n\n\tconst matches = [] as IMatches<T>;\n\n\tconst re: T = _cloneRegexp<T>(inputRegExp as any, options);\n\tconst isGlobal = re.global;\n\n\tif (resetLastIndex)\n\t{\n\t\tre.lastIndex = 0;\n\t}\n\n\tlet lastIndex = re.lastIndex;\n\n\tlet { rightContext, leftContext } = options;\n\n\trightContext = !!rightContext;\n\tleftContext = !!leftContext;\n\n\twhile (match = re.exec(input) as IMatchesRow<T>)\n\t{\n\t\tdelete match.input;\n\n\t\tmatches.push(Object.assign(match, <Partial<IMatchesRow<T>>>{\n\t\t\tmatch: match[0],\n\t\t\tsub: match.slice(1),\n\n\t\t\t// @ts-ignore\n\t\t\tleftContext: leftContext && RegExp.leftContext,\n\t\t\t// @ts-ignore\n\t\t\trightContext: rightContext && RegExp.rightContext,\n\n\t\t\t[SYMBOL]: removeHiddenData ? null : matches,\n\t\t}));\n\n\t\tlastIndex = re.lastIndex;\n\n\t\tif (!isGlobal)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tif (!removeHiddenData)\n\t{\n\t\tObject.defineProperties(matches, {\n\t\t\tre: {\n\t\t\t\tvalue: re,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false,\n\t\t\t\twritable: false,\n\t\t\t},\n\n\t\t\tinput: {\n\t\t\t\tvalue: input,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false,\n\t\t\t\twritable: false,\n\t\t\t},\n\n\t\t\tlastIndex: {\n\t\t\t\tvalue: lastIndex,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false,\n\t\t\t\twritable: false,\n\t\t\t},\n\t\t});\n\t}\n\n\treturn matches;\n}\n\nexport { execall as execAll }\n\nexport default execall;\n\n"]}
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,2DAAqF;AAErF,sDAA4B;AAE5B,uCAA6E;AAE7E,SAAgB,OAAO,CAA4B,WAAuB,EACzE,KAAa,EACb,OAA4B;IAG5B,IAAI,KAAqB,CAAC;IAC1B,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;IAExB,MAAM,EAAE,cAAc,GAAG,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAEzE,MAAM,OAAO,GAAG,EAAiB,CAAC;IAElC,MAAM,EAAE,GAAM,IAAA,0BAAY,EAAI,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AK;gBACnB,QAAQ,EAAE,KAAK;aACf;YAED,SAAS,EAAE;gBACV,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aACf;SACD,CAAC,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AAChB,CAAC;AA9ED,0BA8EC;AAEmB,0BAAO;AAE3B,kBAAe,OAAO,CAAC","sourcesContent":["/// <reference lib=\"es2018.regexp\" />\nimport { cloneRegexp as _cloneRegexp, ICloneRegexp } from '@regexp-cjk/clone-regexp';\n\nexport * from './lib/types';\n\nimport { IExecAllOptions, IMatches, IMatchesRow, SYMBOL } from './lib/types';\n\nexport function execall<T extends RegExp = RegExp>(inputRegExp: T | RegExp,\n\tinput: string,\n\toptions?: IExecAllOptions<T>,\n): IMatches<T>\n{\n\tlet match: IMatchesRow<T>;\n\toptions = options || {};\n\n\tconst { resetLastIndex = true, cloneRegexp, removeHiddenData } = options;\n\n\tconst matches = [] as IMatches<T>;\n\n\tconst re: T = _cloneRegexp<T>(inputRegExp as any, options);\n\tconst isGlobal = re.global;\n\n\tif (resetLastIndex)\n\t{\n\t\tre.lastIndex = 0;\n\t}\n\n\tlet lastIndex = re.lastIndex;\n\n\tlet { rightContext, leftContext } = options;\n\n\trightContext = !!rightContext;\n\tleftContext = !!leftContext;\n\n\twhile (match = re.exec(input) as IMatchesRow<T>)\n\t{\n\t\tdelete match.input;\n\n\t\tmatches.push(Object.assign(match, <Partial<IMatchesRow<T>>>{\n\t\t\tmatch: match[0],\n\t\t\tsub: match.slice(1),\n\n\t\t\t// @ts-ignore\n\t\t\tleftContext: leftContext && RegExp.leftContext,\n\t\t\t// @ts-ignore\n\t\t\trightContext: rightContext && RegExp.rightContext,\n\n\t\t\t[SYMBOL]: removeHiddenData ? null : matches,\n\t\t}));\n\n\t\tlastIndex = re.lastIndex;\n\n\t\tif (!isGlobal)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tif (!removeHiddenData)\n\t{\n\t\tObject.defineProperties(matches, {\n\t\t\tre: {\n\t\t\t\tvalue: re,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false,\n\t\t\t\twritable: false,\n\t\t\t},\n\n\t\t\tinput: {\n\t\t\t\tvalue: input,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false,\n\t\t\t\twritable: false,\n\t\t\t},\n\n\t\t\tlastIndex: {\n\t\t\t\tvalue: lastIndex,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false,\n\t\t\t\twritable: false,\n\t\t\t},\n\t\t});\n\t}\n\n\treturn matches;\n}\n\nexport { execall as execAll }\n\nexport default execall;\n"]}

@@ -35,3 +35,3 @@ import { ICloneRegexp, ICloneRegexpOptionsCustom } from '@regexp-cjk/clone-regexp/lib/types';

}
export declare type IMatches<T extends RegExp = RegExp> = IMatchesRow<T>[] & {
export type IMatches<T extends RegExp = RegExp> = IMatchesRow<T>[] & {
/**

@@ -38,0 +38,0 @@ * regular expressions

{
"name": "execall2",
"version": "2.0.21",
"version": "2.0.22",
"description": "Find multiple RegExp matches in a string",

@@ -39,3 +39,4 @@ "keywords": [

"type": "git",
"url": "git+https://github.com/bluelovers/ws-regexp.git"
"url": "git+https://github.com/bluelovers/ws-regexp.git",
"directory": "packages/execall2"
},

@@ -51,2 +52,6 @@ "license": "MIT",

"test": "node ./test/test",
"test:jest": "jest --passWithNoTests",
"test:jest:snapshot": "yarn run test:jest -- -u",
"test:snapshot": "yarn run test -- -u",
"test:tsd": "ynpx tsd",
"preversion": "yarn run test",

@@ -60,6 +65,6 @@ "prepublishOnly_": "yarn run prepublishOnly:check-bin && yarn run test",

"dependencies": {
"@regexp-cjk/clone-regexp": "^1.0.20",
"tslib": "^2.3.1"
"@regexp-cjk/clone-regexp": "^1.0.21",
"tslib": ">=2"
},
"gitHead": "b6805bc6f7ccb0e14bb376a30e31a1c00990acb2"
"gitHead": "e4f1fa1320fc53a7d04384baf64779072ceef73b"
}