@babel/plugin-transform-unicode-regex
Advanced tools
Comparing version 7.0.0-beta.46 to 7.0.0-beta.47
@@ -9,3 +9,3 @@ "use strict"; | ||
function _helperPluginUtils() { | ||
var data = require("@babel/helper-plugin-utils"); | ||
const data = require("@babel/helper-plugin-utils"); | ||
@@ -20,3 +20,3 @@ _helperPluginUtils = function _helperPluginUtils() { | ||
function _regexpuCore() { | ||
var data = _interopRequireDefault(require("regexpu-core")); | ||
const data = _interopRequireDefault(require("regexpu-core")); | ||
@@ -31,3 +31,3 @@ _regexpuCore = function _regexpuCore() { | ||
function regex() { | ||
var data = _interopRequireWildcard(require("@babel/helper-regex")); | ||
const data = _interopRequireWildcard(require("@babel/helper-regex")); | ||
@@ -45,8 +45,9 @@ regex = function regex() { | ||
var _default = (0, _helperPluginUtils().declare)(function (api) { | ||
var _default = (0, _helperPluginUtils().declare)(api => { | ||
api.assertVersion(7); | ||
return { | ||
visitor: { | ||
RegExpLiteral: function RegExpLiteral(_ref) { | ||
var node = _ref.node; | ||
RegExpLiteral({ | ||
node | ||
}) { | ||
if (!regex().is(node, "u")) return; | ||
@@ -56,2 +57,3 @@ node.pattern = (0, _regexpuCore().default)(node.pattern, node.flags); | ||
} | ||
} | ||
@@ -58,0 +60,0 @@ }; |
{ | ||
"name": "@babel/plugin-transform-unicode-regex", | ||
"version": "7.0.0-beta.46", | ||
"version": "7.0.0-beta.47", | ||
"description": "Compile ES2015 Unicode regex to ES5", | ||
@@ -12,13 +12,13 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-regex", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.0.0-beta.46", | ||
"@babel/helper-regex": "7.0.0-beta.46", | ||
"@babel/helper-plugin-utils": "7.0.0-beta.47", | ||
"@babel/helper-regex": "7.0.0-beta.47", | ||
"regexpu-core": "^4.1.3" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "7.0.0-beta.46" | ||
"@babel/core": "7.0.0-beta.47" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.46", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.46" | ||
"@babel/core": "7.0.0-beta.47", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.47" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
43
0
3094
+ Added@babel/code-frame@7.0.0-beta.47(transitive)
+ Added@babel/core@7.0.0-beta.47(transitive)
+ Added@babel/generator@7.0.0-beta.47(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.47(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.47(transitive)
+ Added@babel/helper-plugin-utils@7.0.0-beta.47(transitive)
+ Added@babel/helper-regex@7.0.0-beta.47(transitive)
+ Added@babel/helper-split-export-declaration@7.0.0-beta.47(transitive)
+ Added@babel/helpers@7.0.0-beta.47(transitive)
+ Added@babel/highlight@7.0.0-beta.47(transitive)
+ Added@babel/template@7.0.0-beta.47(transitive)
+ Added@babel/traverse@7.0.0-beta.47(transitive)
+ Added@babel/types@7.0.0-beta.47(transitive)
+ Addedbabylon@7.0.0-beta.47(transitive)
- Removed@babel/code-frame@7.0.0-beta.46(transitive)
- Removed@babel/core@7.0.0-beta.46(transitive)
- Removed@babel/generator@7.0.0-beta.46(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.46(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.46(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.46(transitive)
- Removed@babel/helper-regex@7.0.0-beta.46(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.46(transitive)
- Removed@babel/helpers@7.0.0-beta.46(transitive)
- Removed@babel/highlight@7.0.0-beta.46(transitive)
- Removed@babel/template@7.0.0-beta.46(transitive)
- Removed@babel/traverse@7.0.0-beta.46(transitive)
- Removed@babel/types@7.0.0-beta.46(transitive)
- Removedbabylon@7.0.0-beta.46(transitive)