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

umd

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

umd - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

.travis.yml

4

index.js

@@ -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
});
});
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