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

babel-plugin-provide-modules

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-provide-modules - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

test/index.test.js

14

lib/index.js

@@ -1,8 +0,12 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, '__esModule', {
value: true
});
var isEmptyObject = function isEmptyObject() {
var obj = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
return !Object.keys(obj).length;
};
exports["default"] = function (_ref) {
exports['default'] = function (_ref) {
var Plugin = _ref.Plugin;

@@ -15,3 +19,3 @@ var t = _ref.types;

exit: function exit(node, parent, scope, file) {
if (!file.opts || !file.opts.extra) {
if (!file.opts || isEmptyObject(file.opts.extra) || isEmptyObject(file.opts.extra['provide-modules'])) {
return;

@@ -33,2 +37,2 @@ }

module.exports = exports["default"];
module.exports = exports['default'];
{
"name": "babel-plugin-provide-modules",
"version": "0.2.0",
"version": "0.2.1",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/tomatau/babel-plugin-provide-modules.git"
},
"bugs": {
"url": "https://github.com/tomatau/babel-plugin-provide-modules/issues"
},
"homepage": "https://github.com/tomatau/babel-plugin-provide-modules#readme",
"engines": {
"node": "4.1.x"
},
"license": "MIT",
"scripts": {
"clean": "rm -rf lib",
"build": "babel-plugin build",
"prepublish": "npm run clean && npm run build"
"prepublish": "npm run clean && npm run build",
"test": "mocha --compilers js:babel/register"
},
"devDependencies": {
"babel": "^5.8.23"
"babel": "^5.8.23",
"chai": "^3.3.0",
"mocha": "^2.3.3"
}
}
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