Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-literals

Package Overview
Dependencies
81
Maintainers
6
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-beta.43 to 7.0.0-beta.44

18

lib/index.js

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

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

@@ -19,9 +19,9 @@ };

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

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

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

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

}
}

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

{
"name": "@babel/plugin-transform-literals",
"version": "7.0.0-beta.43",
"version": "7.0.0-beta.44",
"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.43"
"@babel/helper-plugin-utils": "7.0.0-beta.44"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.43"
"@babel/core": "7.0.0-beta.44"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.43",
"@babel/helper-plugin-test-runner": "7.0.0-beta.43"
"@babel/core": "7.0.0-beta.44",
"@babel/helper-plugin-test-runner": "7.0.0-beta.44"
}
}
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