Socket
Socket
Sign inDemoInstall

babel-plugin-dynamic-import-node

Package Overview
Dependencies
26
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

5

CHANGELOG.md
## Unreleased
## v1.0.2
- [Fix] Ensure it works with the ES2015 preset too (#12, #16)
- [Deps] update `babel-template`, `babel-types`
- [Dev Deps] update `babel-cli`, `babel-core`, `babel-eslint`, `babel-register`, `eslint`, `eslint-config-airbnb-base`, `mocha`
## v1.0.1

@@ -4,0 +9,0 @@ - [Fix] Move `in-publish` to devDeps (#11)

2

lib/index.js

@@ -35,3 +35,3 @@ Object.defineProperty(exports, "__esModule", {

var newImport = buildImport({
SOURCE: t.isStringLiteral(importArgument) || t.isTemplateLiteral(importArgument) ? path.node.arguments : t.templateLiteral([t.templateElement({ raw: '' }), t.templateElement({ raw: '' }, true)], path.node.arguments)
SOURCE: t.isStringLiteral(importArgument) || t.isTemplateLiteral(importArgument) ? path.node.arguments : t.templateLiteral([t.templateElement({ raw: '', cooked: '' }), t.templateElement({ raw: '', cooked: '' }, true)], path.node.arguments)
});

@@ -38,0 +38,0 @@ path.replaceWith(newImport);

{
"name": "babel-plugin-dynamic-import-node",
"version": "1.0.1",
"version": "1.0.2",
"description": "Babel plugin to transpile import() to a deferred require(), for node",

@@ -44,13 +44,14 @@ "main": "lib/index.js",

"airbnb-js-shims": "^1.1.1",
"babel-cli": "^6.24.0",
"babel-core": "^6.24.0",
"babel-eslint": "^7.1.1",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-plugin-transform-es2015-template-literals": "^6.22.0",
"babel-preset-airbnb": "^2.2.3",
"babel-register": "^6.24.0",
"babel-register": "^6.24.1",
"chai": "^3.5.0",
"eslint": "^3.18.0",
"eslint-config-airbnb-base": "^11.1.1",
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^11.1.3",
"eslint-plugin-import": "^2.2.0",
"in-publish": "^2.0.0",
"mocha": "^3.2.0",
"mocha": "^3.3.0",
"rimraf": "^2.6.1",

@@ -61,5 +62,5 @@ "safe-publish-latest": "^1.1.1"

"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-template": "^6.23.0",
"babel-types": "^6.23.0"
"babel-template": "^6.24.1",
"babel-types": "^6.24.1"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc