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

babel-plugin-fake-import-specifiers

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-fake-import-specifiers - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

package.json
{
"name": "babel-plugin-fake-import-specifiers",
"version": "1.1.1",
"version": "1.1.2",
"description": "Allow importing pieces while only exporting the whole object",
"main": "src/index.js",
"scripts": {
"test": "mocha"
"test": "eslint-mocha --eslint-args=\"src/**/*.js test/*.js\""
},

@@ -25,6 +25,8 @@ "repository": {

"chai": "^3.0.0",
"eslint": "^3.0.0",
"eslint-mocha": "0.1.0",
"mocha": "^3.0.0"
},
"engines": {
"node": ">= 0.12.0"
"node": ">= 4"
},

@@ -31,0 +33,0 @@ "greenkeeper": {

@@ -9,1 +9,7 @@ # babel-plugin-fake-import-specifiers

Allow importing pieces while only exporting the whole object
## Tests
To test a single fixture folder, prefix the folder name with an underscore.
"test/fixtures/rewrite-import" => "test/fixtures/_rewrite-import"

@@ -23,3 +23,3 @@ 'use strict';

var visitor = {
ImportDeclaration: function(node, parent, scope, file) {
ImportDeclaration: function(node, parent, scope) {
var value = node.source.value;

@@ -101,3 +101,3 @@ var sourceMinusOne;

},
CallExpression: function(node, parent, scope, file) {
CallExpression: function(node) {
var callee = node.callee;

@@ -131,3 +131,3 @@ if (callee.type !== 'Identifier') {

sourcesToFake = file.opts.extra['fake-import-specifiers'] || [];
defaultSpecifierLookup = {};
defaultSpecifierLookup = Object.create(null);
newIdentifierLookup = {};

@@ -134,0 +134,0 @@ }

Sorry, the diff of this file is not supported yet

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