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

@babel/plugin-transform-unicode-regex

Package Overview
Dependencies
Maintainers
5
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-unicode-regex - npm Package Compare versions

Comparing version 7.6.2 to 7.7.0

53

lib/index.js

@@ -8,55 +8,14 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin");
_helperPluginUtils = function () {
return data;
};
var _helperPluginUtils = require("@babel/helper-plugin-utils");
return data;
}
function _regexpuCore() {
const data = _interopRequireDefault(require("regexpu-core"));
_regexpuCore = function () {
return data;
};
return data;
}
function regex() {
const data = _interopRequireWildcard(require("@babel/helper-regex"));
regex = function () {
return data;
};
return data;
}
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = (0, _helperPluginUtils().declare)(api => {
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
return {
return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
name: "transform-unicode-regex",
visitor: {
RegExpLiteral({
node
}) {
if (!regex().is(node, "u")) return;
node.pattern = (0, _regexpuCore().default)(node.pattern, node.flags);
regex().pullFlag(node, "u");
}
}
};
feature: "unicodeFlag"
});
});
exports.default = _default;

11

package.json
{
"name": "@babel/plugin-transform-unicode-regex",
"version": "7.6.2",
"version": "7.7.0",
"description": "Compile ES2015 Unicode regex to ES5",

@@ -15,5 +15,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-regex",

"dependencies": {
"@babel/helper-plugin-utils": "^7.0.0",
"@babel/helper-regex": "^7.4.4",
"regexpu-core": "^4.6.0"
"@babel/helper-create-regexp-features-plugin": "^7.7.0",
"@babel/helper-plugin-utils": "^7.0.0"
},

@@ -24,6 +23,6 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/core": "^7.7.0",
"@babel/helper-plugin-test-runner": "^7.0.0"
},
"gitHead": "b9cb4af953afb1a5aeed9b18526192ab15bb45c1"
"gitHead": "97faa83953cb87e332554fa559a4956d202343ea"
}
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