babel-plugin-provide-modules
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3687
5
0
72
2
1
0
3