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

@babel/plugin-transform-template-literals

Package Overview
Dependencies
Maintainers
5
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-template-literals - npm Package Compare versions

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

32

lib/index.js

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

_helperPluginUtils = function _helperPluginUtils() {
_helperPluginUtils = function () {
return data;

@@ -22,3 +22,3 @@ };

_core = function _core() {
_core = function () {
return data;

@@ -32,3 +32,5 @@ };

api.assertVersion(7);
const loose = options.loose;
const {
loose
} = options;
let helperName = "taggedTemplateLiteral";

@@ -59,14 +61,17 @@ if (loose) helperName += "Loose";

TaggedTemplateExpression(path) {
const node = path.node;
const quasi = node.quasi;
const {
node
} = path;
const {
quasi
} = node;
const strings = [];
const raws = [];
let isStringsRawEqual = true;
var _arr = quasi.quasis;
for (var _i = 0; _i < _arr.length; _i++) {
const elem = _arr[_i];
const _elem$value = elem.value,
raw = _elem$value.raw,
cooked = _elem$value.cooked;
for (const elem of quasi.quasis) {
const {
raw,
cooked
} = elem.value;
const value = cooked == null ? path.scope.buildUndefinedNode() : _core().types.stringLiteral(cooked);

@@ -105,7 +110,4 @@ strings.push(value);

let index = 0;
var _arr2 = path.node.quasis;
for (var _i2 = 0; _i2 < _arr2.length; _i2++) {
const elem = _arr2[_i2];
for (const elem of path.node.quasis) {
if (elem.value.cooked) {

@@ -112,0 +114,0 @@ nodes.push(_core().types.stringLiteral(elem.value.cooked));

{
"name": "@babel/plugin-transform-template-literals",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Compile ES2015 template literals to ES5",

@@ -9,4 +9,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-template-literals",

"dependencies": {
"@babel/helper-annotate-as-pure": "7.0.0-beta.47",
"@babel/helper-plugin-utils": "7.0.0-beta.47"
"@babel/helper-annotate-as-pure": "7.0.0-beta.48",
"@babel/helper-plugin-utils": "7.0.0-beta.48"
},

@@ -17,8 +17,8 @@ "keywords": [

"peerDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/helper-plugin-test-runner": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48",
"@babel/helper-plugin-test-runner": "7.0.0-beta.48"
}
}
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