babel-core
Advanced tools
Comparing version 7.0.0-beta.1 to 7.0.0-beta.2
@@ -319,19 +319,4 @@ "use strict"; | ||
File.prototype.addTemplateObject = function addTemplateObject(helperName, strings, raw) { | ||
var stringIds = raw.elements.map(function (string) { | ||
return string.value; | ||
}); | ||
var name = helperName + "_" + raw.elements.length + "_" + stringIds.join(","); | ||
var declar = this.declarations[name]; | ||
if (declar) return declar; | ||
var uid = this.declarations[name] = this.scope.generateUidIdentifier("templateObject"); | ||
var helperId = this.addHelper(helperName); | ||
var init = t.callExpression(helperId, [strings, raw]); | ||
init._compact = true; | ||
this.scope.push({ | ||
id: uid, | ||
init: init, | ||
_blockHoist: 1.9 | ||
}); | ||
return uid; | ||
File.prototype.addTemplateObject = function addTemplateObject() { | ||
throw new Error("This function has been moved into the template literal transform itself."); | ||
}; | ||
@@ -388,3 +373,4 @@ | ||
}, | ||
generated: generatedPosition | ||
generated: generatedPosition, | ||
name: mapping.name | ||
}); | ||
@@ -391,0 +377,0 @@ } |
{ | ||
"name": "babel-core", | ||
"version": "7.0.0-beta.1", | ||
"version": "7.0.0-beta.2", | ||
"description": "Babel compiler core.", | ||
@@ -28,10 +28,10 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"babel-code-frame": "7.0.0-beta.1", | ||
"babel-generator": "7.0.0-beta.1", | ||
"babel-helpers": "7.0.0-beta.1", | ||
"babel-messages": "7.0.0-beta.1", | ||
"babel-template": "7.0.0-beta.1", | ||
"babel-traverse": "7.0.0-beta.1", | ||
"babel-types": "7.0.0-beta.1", | ||
"babylon": "7.0.0-beta.22", | ||
"babel-code-frame": "7.0.0-beta.2", | ||
"babel-generator": "7.0.0-beta.2", | ||
"babel-helpers": "7.0.0-beta.2", | ||
"babel-messages": "7.0.0-beta.2", | ||
"babel-template": "7.0.0-beta.2", | ||
"babel-traverse": "7.0.0-beta.2", | ||
"babel-types": "7.0.0-beta.2", | ||
"babylon": "7.0.0-beta.25", | ||
"convert-source-map": "^1.1.0", | ||
@@ -46,5 +46,5 @@ "debug": "^3.0.1", | ||
"devDependencies": { | ||
"babel-helper-transform-fixture-test-runner": "7.0.0-beta.1", | ||
"babel-register": "7.0.0-beta.1" | ||
"babel-helper-transform-fixture-test-runner": "7.0.0-beta.2", | ||
"babel-register": "7.0.0-beta.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88446
2194
+ Addedbabel-code-frame@7.0.0-beta.2(transitive)
+ Addedbabel-generator@7.0.0-beta.2(transitive)
+ Addedbabel-helper-function-name@7.0.0-beta.2(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-beta.2(transitive)
+ Addedbabel-helpers@7.0.0-beta.2(transitive)
+ Addedbabel-messages@7.0.0-beta.2(transitive)
+ Addedbabel-template@7.0.0-beta.2(transitive)
+ Addedbabel-traverse@7.0.0-beta.2(transitive)
+ Addedbabel-types@7.0.0-beta.2(transitive)
+ Addedbabylon@7.0.0-beta.25(transitive)
- Removedbabel-code-frame@7.0.0-beta.1(transitive)
- Removedbabel-generator@7.0.0-beta.1(transitive)
- Removedbabel-helper-function-name@7.0.0-beta.1(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-beta.1(transitive)
- Removedbabel-helpers@7.0.0-beta.1(transitive)
- Removedbabel-messages@7.0.0-beta.1(transitive)
- Removedbabel-template@7.0.0-beta.1(transitive)
- Removedbabel-traverse@7.0.0-beta.1(transitive)
- Removedbabel-types@7.0.0-beta.1(transitive)
- Removedbabylon@7.0.0-beta.22(transitive)
Updatedbabel-generator@7.0.0-beta.2
Updatedbabel-helpers@7.0.0-beta.2
Updatedbabel-messages@7.0.0-beta.2
Updatedbabel-template@7.0.0-beta.2
Updatedbabel-traverse@7.0.0-beta.2
Updatedbabel-types@7.0.0-beta.2
Updatedbabylon@7.0.0-beta.25