Comparing version 1.2.1 to 1.3.0
@@ -15,3 +15,3 @@ var through = require('through'); | ||
//make sure these are undefined so as to not get confused if modules have inner UMD systems | ||
str[0] += 'var define,ses,bootstrap,module,exports;'; | ||
str[0] += 'var define,module,exports;'; | ||
if (cjs) str[0] += 'module={exports:(exports={})};'; | ||
@@ -64,2 +64,2 @@ str[0] += '\n'; | ||
return name.replace(/[^a-zA-Z0-9]+/g, ''); | ||
} | ||
} |
{ | ||
"name": "umd", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Universal Module Definition for use in automated build systems", | ||
@@ -10,10 +10,11 @@ "bin": "./bin/cli.js", | ||
"through": "~2.3.1", | ||
"uglify-js": "~2.2.5" | ||
"uglify-js": "~2.3.6" | ||
}, | ||
"devDependencies": { | ||
"win-spawn": "~1.1.2" | ||
"linify": "~1.0.1", | ||
"mocha": "*" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublish": "cd bin && win-line-endings && cd .." | ||
"test": "mocha -R spec", | ||
"prepublish": "linify transform bin" | ||
}, | ||
@@ -20,0 +21,0 @@ "repository": { |
@@ -12,2 +12,6 @@ # umd | ||
[![Build Status](https://travis-ci.org/ForbesLindesay/umd.png?branch=master)](https://travis-ci.org/ForbesLindesay/umd) | ||
[![Dependency Status](https://gemnasium.com/ForbesLindesay/umd.png)](https://gemnasium.com/ForbesLindesay/umd) | ||
[![NPM version](https://badge.fury.io/js/umd.png)](http://badge.fury.io/js/umd) | ||
## Source Format | ||
@@ -14,0 +18,0 @@ |
;(function (f) { | ||
// Montage Require | ||
if (typeof bootstrap === "function") { | ||
bootstrap("{{name}}", f); | ||
// CommonJS | ||
} else if (typeof exports === "object") { | ||
if (typeof exports === "object") { | ||
module.exports = f(); | ||
@@ -14,10 +10,2 @@ | ||
// SES (Secure EcmaScript) | ||
} else if (typeof ses !== "undefined") { | ||
if (!ses.ok()) { | ||
return; | ||
} else { | ||
ses.make{{pascalcase}} = f; | ||
} | ||
// <script> | ||
@@ -27,4 +15,6 @@ } else { | ||
window.{{camelcase}} = f(); | ||
} else { | ||
} else if (typeof global !== "undefined") { | ||
global.{{camelcase}} = f(); | ||
} else if (typeof self !== "undefined") { | ||
self.{{camelcase}} = f(); | ||
} | ||
@@ -35,2 +25,2 @@ } | ||
source()//trick uglify-js into not minifying | ||
}); | ||
}); |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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 tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
8418
9
147
1
68
2
5
+ Addedasync@0.2.10(transitive)
+ Addeduglify-js@2.3.6(transitive)
Updateduglify-js@~2.3.6