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

babel-template

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-template - npm Package Compare versions

Comparing version 6.6.0 to 6.6.4

4

lib/index.js

@@ -40,3 +40,3 @@ /* eslint max-len: 0 */

exports["default"] = function (code /*: string*/, opts /*:: ?: Object*/) /*: Function*/ {
exports["default"] = function (code, opts) {
// since we lazy parse the template, we get the current stack so we have the

@@ -87,3 +87,3 @@ // original stack to append if it errors when parsing

function useTemplate(ast, nodes /*:: ?: Array<Object>*/) {
function useTemplate(ast, nodes) {
ast = _lodashLangCloneDeep2["default"](ast);

@@ -90,0 +90,0 @@ var _ast = ast;

{
"name": "babel-template",
"version": "6.6.0",
"version": "6.6.4",
"description": "Generate an AST from a string template.",

@@ -11,5 +11,5 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"babylon": "^6.6.0",
"babel-traverse": "^6.6.0",
"babel-types": "^6.6.0",
"babylon": "^6.6.4",
"babel-traverse": "^6.6.4",
"babel-types": "^6.6.4",
"babel-runtime": "^5.0.0",

@@ -16,0 +16,0 @@ "lodash": "^3.10.1"

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