Socket
Socket
Sign inDemoInstall

babel-plugin-lodash

Package Overview
Dependencies
12
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.8 to 3.2.9

8

lib/importModule.js

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

function resolvePath(pkgStore, name) {
function resolvePath(pkgStore, name, path) {
var base = pkgStore.base;

@@ -32,3 +32,3 @@ var id = pkgStore.id;

if (!base) {
throw new Error(['The \'' + id + '\' method ' + name + ' is not a known module.', 'Please report bugs to https://github.com/lodash/babel-plugin-lodash/issues.'].join('\n'));
throw path.buildCodeFrameError(['The \'' + id + '\' method `' + name + '` is not a known module.', 'Please report bugs to https://github.com/lodash/babel-plugin-lodash/issues.'].join('\n'));
}

@@ -39,4 +39,4 @@ }

function importModule(pkgStore, name, file) {
return file.addImport(resolvePath(pkgStore, name), 'default', name);
function importModule(pkgStore, name, path) {
return path.hub.file.addImport(resolvePath(pkgStore, name, path), 'default', name);
}

@@ -43,0 +43,0 @@

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

var _importModule = (0, _importModule4.default)(pkgStore, imported, file);
var _importModule = (0, _importModule4.default)(pkgStore, imported, refPath);

@@ -152,3 +152,3 @@ var name = _importModule.name;

var _importModule2 = (0, _importModule4.default)(pkgStore, key, file);
var _importModule2 = (0, _importModule4.default)(pkgStore, key, refPath);

@@ -186,3 +186,3 @@ var _name = _importModule2.name;

(0, _each3.default)(node.specifiers, function (spec) {
spec.local = (0, _importModule4.default)(pkgStore, spec.local.name, path.hub.file);
spec.local = (0, _importModule4.default)(pkgStore, spec.local.name, path);
});

@@ -189,0 +189,0 @@ }

{
"name": "babel-plugin-lodash",
"version": "3.2.8",
"version": "3.2.9",
"description": "Modular Lodash builds without the hassle.",

@@ -21,13 +21,13 @@ "keywords": "babel-plugin, cherry-pick, lodash, modules",

"async": "^2.0.1",
"babel-cli": "^6.11.4",
"babel-core": "^6.13.2",
"babel-cli": "^6.14.0",
"babel-core": "^6.14.0",
"babel-plugin-add-module-exports": "~0.2.1",
"babel-plugin-lodash": "3.2.7",
"babel-plugin-lodash": "3.2.8",
"babel-plugin-syntax-jsx": "^6.13.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-preset-es2015": "^6.13.2",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.11.6",
"babel-register": "^6.14.0",
"chai": "^3.5.0",

@@ -39,20 +39,11 @@ "lodash-bound": "^1.1.2",

"ramda": "^0.22.1",
"react-bootstrap": "^0.30.2"
"react-bootstrap": "^0.30.3"
},
"dependencies": {
"glob": "^7.0.5",
"glob": "^7.0.6",
"lodash": "^4.15.0"
},
"files": [
"lib/config.js",
"lib/importModule.js",
"lib/index.js",
"lib/Map.js",
"lib/MapCache.js",
"lib/mapping.js",
"lib/ModuleCache.js",
"lib/Package.js",
"lib/Store.js",
"lib/util.js"
"lib"
]
}

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

# babel-plugin-lodash v3.2.8
# babel-plugin-lodash v3.2.9

@@ -10,3 +10,3 @@ A simple transform to cherry-pick Lodash modules so you don’t have to.

```bash
```shell
$ npm i --save lodash

@@ -13,0 +13,0 @@ $ npm i --save-dev babel-plugin-lodash babel-cli babel-preset-es2015

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc