Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-literals

Package Overview
Dependencies
81
Maintainers
5
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-beta.46 to 7.0.0-beta.47

16

lib/index.js

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

function _helperPluginUtils() {
var data = require("@babel/helper-plugin-utils");
const data = require("@babel/helper-plugin-utils");

@@ -19,9 +19,9 @@ _helperPluginUtils = function _helperPluginUtils() {

var _default = (0, _helperPluginUtils().declare)(function (api) {
var _default = (0, _helperPluginUtils().declare)(api => {
api.assertVersion(7);
return {
visitor: {
NumericLiteral: function NumericLiteral(_ref) {
var node = _ref.node;
NumericLiteral({
node
}) {
if (node.extra && /^0[ob]/i.test(node.extra.raw)) {

@@ -31,5 +31,6 @@ node.extra = undefined;

},
StringLiteral: function StringLiteral(_ref2) {
var node = _ref2.node;
StringLiteral({
node
}) {
if (node.extra && /\\[u]/gi.test(node.extra.raw)) {

@@ -39,2 +40,3 @@ node.extra = undefined;

}
}

@@ -41,0 +43,0 @@ };

{
"name": "@babel/plugin-transform-literals",
"version": "7.0.0-beta.46",
"version": "7.0.0-beta.47",
"description": "Compile ES2015 unicode string and number literals to ES5",

@@ -12,11 +12,11 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-literals",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.46"
"@babel/helper-plugin-utils": "7.0.0-beta.47"
},
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc