Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

regexpu-core

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexpu-core - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

54

data/iu-mappings.js

@@ -11,2 +11,3 @@ module.exports = new Map([

[0x17F, 0x53],
[0x19B, 0xA7DC],
[0x1C4, 0x1C5],

@@ -20,2 +21,3 @@ [0x1C5, 0x1C4],

[0x1F2, 0x1F1],
[0x264, 0xA7CB],
[0x345, 0x1FBE],

@@ -69,2 +71,4 @@ [0x390, 0x1FD3],

[0x1C88, 0xA64A],
[0x1C89, 0x1C8A],
[0x1C8A, 0x1C89],
[0x1E60, 0x1E9B],

@@ -143,2 +147,8 @@ [0x1E9B, 0x1E60],

[0xA64A, 0x1C88],
[0xA7CB, 0x264],
[0xA7CC, 0xA7CD],
[0xA7CD, 0xA7CC],
[0xA7DA, 0xA7DB],
[0xA7DB, 0xA7DA],
[0xA7DC, 0x19B],
[0xFB05, 0xFB06],

@@ -470,2 +480,46 @@ [0xFB06, 0xFB05],

[0x10CF2, 0x10CB2],
[0x10D50, 0x10D70],
[0x10D51, 0x10D71],
[0x10D52, 0x10D72],
[0x10D53, 0x10D73],
[0x10D54, 0x10D74],
[0x10D55, 0x10D75],
[0x10D56, 0x10D76],
[0x10D57, 0x10D77],
[0x10D58, 0x10D78],
[0x10D59, 0x10D79],
[0x10D5A, 0x10D7A],
[0x10D5B, 0x10D7B],
[0x10D5C, 0x10D7C],
[0x10D5D, 0x10D7D],
[0x10D5E, 0x10D7E],
[0x10D5F, 0x10D7F],
[0x10D60, 0x10D80],
[0x10D61, 0x10D81],
[0x10D62, 0x10D82],
[0x10D63, 0x10D83],
[0x10D64, 0x10D84],
[0x10D65, 0x10D85],
[0x10D70, 0x10D50],
[0x10D71, 0x10D51],
[0x10D72, 0x10D52],
[0x10D73, 0x10D53],
[0x10D74, 0x10D54],
[0x10D75, 0x10D55],
[0x10D76, 0x10D56],
[0x10D77, 0x10D57],
[0x10D78, 0x10D58],
[0x10D79, 0x10D59],
[0x10D7A, 0x10D5A],
[0x10D7B, 0x10D5B],
[0x10D7C, 0x10D5C],
[0x10D7D, 0x10D5D],
[0x10D7E, 0x10D5E],
[0x10D7F, 0x10D5F],
[0x10D80, 0x10D60],
[0x10D81, 0x10D61],
[0x10D82, 0x10D62],
[0x10D83, 0x10D63],
[0x10D84, 0x10D64],
[0x10D85, 0x10D65],
[0x118A0, 0x118C0],

@@ -472,0 +526,0 @@ [0x118A1, 0x118C1],

6

package.json
{
"name": "regexpu-core",
"version": "6.0.0",
"version": "6.1.0",
"description": "regexpu’s core functionality (i.e. `rewritePattern(pattern, flag)`), capable of translating ES6 Unicode regular expressions to ES5.",

@@ -53,3 +53,3 @@ "homepage": "https://mths.be/regexpu",

"regenerate": "^1.4.2",
"regenerate-unicode-properties": "^10.1.1",
"regenerate-unicode-properties": "^10.2.0",
"regjsgen": "^0.8.0",

@@ -62,4 +62,4 @@ "regjsparser": "^0.10.0",

"jsesc": "^3.0.2",
"@unicode/unicode-15.1.0": "^1.5.2"
"@unicode/unicode-16.0.0": "^1.6.0"
}
}

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

characterClassItem,
`(?!${surrogateOrBMPSetStr})[\\s\\S]|${astralNegativeSetStr}`
`(?!${surrogateOrBMPSetStr})[^]|${astralNegativeSetStr}`
);

@@ -530,7 +530,6 @@ } else {

const negativeSet = UNICODE_SET.clone().remove(singleChars);
const bmpOnly = regenerateContainsAstral(negativeSet);
update(characterClassItem, negativeSet.toString({ bmpOnly: bmpOnly }));
update(characterClassItem, negativeSet.toString(regenerateOptions));
}
} else {
update(characterClassItem, `(?!${setStr})[\\s\\S]`);
update(characterClassItem, `(?!${setStr})[^]`);
}

@@ -594,3 +593,3 @@ }

// TODO: consider changing this at the regenerate level.
update(item, '[\\s\\S]');
update(item, '[^]');
}

@@ -691,2 +690,6 @@ break;

const folded = maybeFold(codePoint);
if (folded.length === 1 && item.kind === "symbol" && folded[0] >= 0x20 && folded[0] <= 0x7E) {
// skip regenerate when it is a printable ASCII symbol
break;
}
set.add(folded);

@@ -693,0 +696,0 @@ update(item, set.toString(regenerateOptions));

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