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

regexp-support

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexp-support - npm Package Compare versions

Comparing version

to
1.0.37

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

## [1.0.37](https://github.com/bluelovers/regexp-support/compare/regexp-support@1.0.36...regexp-support@1.0.37) (2021-07-09)
### 🔖 Miscellaneous
* . ([8e85c04](https://github.com/bluelovers/regexp-support/commit/8e85c04a9cb7622ef865a383107dbc9ec2f512b4))
## [1.0.36](https://github.com/bluelovers/regexp-support/compare/regexp-support@1.0.34...regexp-support@1.0.36) (2021-07-09)
### 🛠 Build System
* update .js ([26829bc](https://github.com/bluelovers/regexp-support/commit/26829bcd9557c28497ac40f4b5c7648593ebaca4))
### ♻️ Chores
* new env test ([cf0316f](https://github.com/bluelovers/regexp-support/commit/cf0316fb387ac649223a629650c059a6ba1a6816))
### 🔖 Miscellaneous
* . ([27bb17d](https://github.com/bluelovers/regexp-support/commit/27bb17d92d4e39c46f04ab7de9b357fce9667642))
## [1.0.35](https://github.com/bluelovers/regexp-support/compare/regexp-support@1.0.34...regexp-support@1.0.35) (2021-07-09)
### 🛠 Build System
* update .js ([26829bc](https://github.com/bluelovers/regexp-support/commit/26829bcd9557c28497ac40f4b5c7648593ebaca4))
## [1.0.34](https://github.com/bluelovers/regexp-support/compare/regexp-support@1.0.31...regexp-support@1.0.34) (2021-06-21)

@@ -8,0 +51,0 @@

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

else {
bool = lib_1.hasSupportFlag(flags_1.FlagsName[flags]);
bool = (0, lib_1.hasSupportFlag)(flags_1.FlagsName[flags]);
}

@@ -51,3 +51,3 @@ a[flags] = bool;

*/
flagsAll: index_1.testFlagsAll(RegExp, true),
flagsAll: (0, index_1.testFlagsAll)(RegExp, true),
/**

@@ -57,9 +57,9 @@ * pattern support

pattern: Object.keys(pattern_1.PatternSupport).reduce(function (a, key) {
a[key] = pattern_1.testPattern(key);
a[key] = (0, pattern_1.testPattern)(key);
return a;
}, {}),
//hasFlagsProp: /x/g.flags === 'g',
prototype: prototype_1.testPrototype(),
static: static_1.testStatic(),
symbol: symbol_1.testSymbol(),
prototype: (0, prototype_1.testPrototype)(),
static: (0, static_1.testStatic)(),
symbol: (0, symbol_1.testSymbol)(),
objectStringTag: Object.prototype.toString.call(/a/),

@@ -73,3 +73,3 @@ unicodeSet: (() => {

//scriptKeys: Object.keys(UNICODE_SCRIPTS_ALL),
unicodeTest: Object.entries(unicode_1.testUnicodeAll())
unicodeTest: Object.entries((0, unicode_1.testUnicodeAll)())
.reduce(function (a, b) {

@@ -81,3 +81,3 @@ if (b[1] !== null) {

}, {}),
scriptTest: Object.entries(unicode_script_1.testUnicodeScriptAll())
scriptTest: Object.entries((0, unicode_script_1.testUnicodeScriptAll)())
.reduce(function (a, b) {

@@ -89,3 +89,3 @@ if (b[1] !== null) {

}, {}),
blocksTest: Object.entries(unicode_blocks_1.testUnicodeBlocksAll())
blocksTest: Object.entries((0, unicode_blocks_1.testUnicodeBlocksAll)())
.reduce(function (a, b) {

@@ -92,0 +92,0 @@ if (b[1] !== null) {

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

const tslib_1 = require("tslib");
const flags_1 = tslib_1.__importStar(require("./flags"));
const flags_1 = (0, tslib_1.__importStar)(require("./flags"));
exports.FlagsName = flags_1.default;

@@ -11,0 +11,0 @@ /**

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

let bool;
let r = index_1.createRegExp(pattern, flag, RegExpClass);
let r = (0, index_1.createRegExp)(pattern, flag, RegExpClass);
if (fn) {

@@ -91,0 +91,0 @@ if (typeof fn == 'function') {

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

// @ts-ignore
return pattern_1.testPattern(name, RegExpClass, testPatterns);
return (0, pattern_1.testPattern)(name, RegExpClass, testPatterns);
}

@@ -43,0 +43,0 @@ exports.testPOXIX = testPOXIX;

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

const index_2 = require("./index");
const blocks_1 = tslib_1.__importDefault(require("../cache/blocks"));
const blocks_1 = (0, tslib_1.__importDefault)(require("../cache/blocks"));
exports.KEY_PREFIX = '\\p{';

@@ -32,7 +32,7 @@ exports.KEY_PREFIX_NEGATION = '\\P{';

};
exports.testUnicodeBlocks = index_1._createFnTestPattern(exports.PatternTest);
exports.testUnicodeBlocks = (0, index_1._createFnTestPattern)(exports.PatternTest);
// @ts-ignore
function testUnicodeBlocksAll(RegExpClass = RegExp, testPatterns = exports.PatternTest) {
return Object.keys(exports.UNICODE_BLOCKS_ALL).reduce(function (a, key) {
a[key] = exports.testUnicodeBlocks(key, RegExpClass, testPatterns);
a[key] = (0, exports.testUnicodeBlocks)(key, RegExpClass, testPatterns);
return a;

@@ -47,5 +47,5 @@ }, {});

}
return index_2._wrapToRegexName(name, prefix, exports.KEY_SUFFIX);
return (0, index_2._wrapToRegexName)(name, prefix, exports.KEY_SUFFIX);
}
exports.wrapToRegexName = wrapToRegexName;
//# sourceMappingURL=unicode-blocks.js.map

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

const tslib_1 = require("tslib");
const property_data_1 = tslib_1.__importDefault(require("../cache/property-data"));
const property_data_1 = (0, tslib_1.__importDefault)(require("../cache/property-data"));
const index_1 = require("../../util/index");
const index_2 = require("./index");
const scripts_1 = tslib_1.__importDefault(require("../cache/scripts"));
const scripts_1 = (0, tslib_1.__importDefault)(require("../cache/scripts"));
exports.KEY_PREFIX = '\\p{Script=';

@@ -110,3 +110,3 @@ exports.KEY_PREFIX_NEGATION = '\\P{Script=';

};
exports._testUnicodeScript = index_1._createFnTestPattern(exports.PatternTest);
exports._testUnicodeScript = (0, index_1._createFnTestPattern)(exports.PatternTest);
function testUnicodeScript(name, RegExpClass, testPatterns = exports.PatternTest) {

@@ -116,3 +116,3 @@ if (!exports.PatternTest.hasOwnProperty(name) && UNICODE_SCRIPTS_NAME_ALIAS[name] && exports.PatternTest.hasOwnProperty(UNICODE_SCRIPTS_NAME_ALIAS[name])) {

}
return exports._testUnicodeScript(name, RegExpClass, testPatterns);
return (0, exports._testUnicodeScript)(name, RegExpClass, testPatterns);
}

@@ -133,5 +133,5 @@ exports.testUnicodeScript = testUnicodeScript;

}
return index_2._wrapToRegexName(name, prefix, exports.KEY_SUFFIX);
return (0, index_2._wrapToRegexName)(name, prefix, exports.KEY_SUFFIX);
}
exports.wrapToRegexName = wrapToRegexName;
//# sourceMappingURL=unicode-script.js.map

@@ -10,5 +10,5 @@ "use strict";

const index_2 = require("./index");
const categories_1 = tslib_1.__importStar(require("../cache/categories"));
const properties_1 = tslib_1.__importDefault(require("../cache/properties"));
const property_data_1 = tslib_1.__importDefault(require("../cache/property-data"));
const categories_1 = (0, tslib_1.__importStar)(require("../cache/categories"));
const properties_1 = (0, tslib_1.__importDefault)(require("../cache/properties"));
const property_data_1 = (0, tslib_1.__importDefault)(require("../cache/property-data"));
//console.log(properties);

@@ -310,3 +310,3 @@ exports.KEY_PREFIX = '\\p{';

};
exports._testUnicode = index_1._createFnTestPattern(exports.PatternTest);
exports._testUnicode = (0, index_1._createFnTestPattern)(exports.PatternTest);
function testUnicode(name, RegExpClass, testPatterns = exports.PatternTest) {

@@ -316,3 +316,3 @@ if (!exports.PatternTest.hasOwnProperty(name) && exports.UNICODE_NAME_ALIAS_ALL[name] && exports.PatternTest.hasOwnProperty(exports.UNICODE_NAME_ALIAS_ALL[name])) {

}
return exports._testUnicode(name, RegExpClass, testPatterns);
return (0, exports._testUnicode)(name, RegExpClass, testPatterns);
}

@@ -337,3 +337,3 @@ exports.testUnicode = testUnicode;

}
return index_2._wrapToRegexName(name, prefix, exports.KEY_SUFFIX);
return (0, index_2._wrapToRegexName)(name, prefix, exports.KEY_SUFFIX);
}

@@ -340,0 +340,0 @@ exports.wrapToRegexName = wrapToRegexName;

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

const flags = 'g';
let r = index_1.createRegExp('', flags, RegExpClass);
let r = (0, index_1.createRegExp)('', flags, RegExpClass);
return Object.keys(exports.PROTOTYPE)

@@ -29,0 +29,0 @@ .reduce(function (a, b) {

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

let rc = RegExpClass;
let re = index_1.createRegExp('(wor)(ld)', 'g', RegExpClass);
let re = (0, index_1.createRegExp)('(wor)(ld)', 'g', RegExpClass);
re.test('hello world!');

@@ -40,0 +40,0 @@ return Object.keys(exports.REGEXP_STATIC)

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

function testSymbol(RegExpClass = RegExp) {
let r = index_1.createRegExp('', '', RegExpClass);
let r = (0, index_1.createRegExp)('', '', RegExpClass);
return Object.keys(exports.REGEXP_SYMBOL)

@@ -20,0 +20,0 @@ .reduce(function (a, key) {

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

argv = argv.reduce(function (a, b) {
let c = util_1.inspect(b, {
let c = (0, util_1.inspect)(b, {
colors: true,

@@ -27,3 +27,3 @@ });

// @ts-ignore
return pattern_1.testPattern(name, RegExpClass, testPatterns);
return (0, pattern_1.testPattern)(name, RegExpClass, testPatterns);
};

@@ -30,0 +30,0 @@ }

{
"name": "regexp-support",
"version": "1.0.34",
"version": "1.0.37",
"description": "check RegExp ( regular expressions ) support",

@@ -43,2 +43,3 @@ "keywords": [

"test": "yarn run build:report && jest -u",
"posttest": "git add ./test/log/* && git commit -m \"chore: new env test\" ./test/log/ & echo posttest",
"build:report": "node ./test/flags.js",

@@ -60,3 +61,3 @@ "preversion": "yarn run test",

},
"gitHead": "1aa0f123c804bfd33203716a9c7d11804c2e411e"
"gitHead": "d4ccd0aff0bccb9666c3c771822048644d37c177"
}
{
"versions": {
"node": "16.3.0",
"node": "16.4.2",
"ares": "1.17.1",

@@ -18,3 +18,3 @@ "brotli": "1.0.9",

"uv": "1.41.0",
"v8": "9.0.257.25-node.16",
"v8": "9.1.269.36-node.14",
"zlib": "1.2.11"

@@ -21,0 +21,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet