New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-atom-demand

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-atom-demand - npm Package Compare versions

Comparing version 0.0.1-beta.1 to 0.0.1-beta.2

7

lib/index.js

@@ -1,2 +0,2 @@

"use strict";
'use strict';

@@ -10,7 +10,6 @@ Object.defineProperty(exports, "__esModule", {

var type = _ref.type,
imported = _ref.imported,
local = _ref.local;
if (type === 'ImportSpecifier') {
path.insertBefore(t.importDeclaration([t.importDefaultSpecifier(t.identifier(imported.name))], t.stringLiteral("vue-atom-ui/lib/" + imported.name)));
path.insertBefore(t.importDeclaration([t.importDefaultSpecifier(t.identifier(local.name))], t.stringLiteral('vue-atom-ui/lib/' + local.name)));
// TODO

@@ -26,2 +25,4 @@ // 暂时引入全局css 后期跟随 atom-ui-mobile 修改

// }
} else if (type === 'ImportDefaultSpecifier') {
path.insertBefore(t.importDeclaration([t.importDefaultSpecifier(t.identifier(local.name))], t.stringLiteral('vue-atom-ui/lib/' + local.name)));
}

@@ -28,0 +29,0 @@ });

{
"name": "babel-plugin-atom-demand",
"version": "0.0.1-beta.1",
"version": "0.0.1-beta.2",
"description": "babel plugin for import atom on demand",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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