New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

umd-free-zone

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

umd-free-zone - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

23

end.js

@@ -9,15 +9,12 @@ /**

// Run only in browsers
if (!window || !window.document) {
return
if (window && window.document) {
// Restore CommonJS
if (__UMD_FREE_ZONE_ORIGINAL_EXPORTS && __UMD_FREE_ZONE_ORIGINAL_MODULE) {
exports = __UMD_FREE_ZONE_ORIGINAL_EXPORTS
module = __UMD_FREE_ZONE_ORIGINAL_MODULE
}
// Restore AMD
if (__UMD_FREE_ZONE_ORIGINAL_DEFINE) {
define = __UMD_FREE_ZONE_ORIGINAL_DEFINE
}
}
// Restore CommonJS
if (__UMD_FREE_ZONE_ORIGINAL_EXPORTS && __UMD_FREE_ZONE_ORIGINAL_MODULE) {
exports = __UMD_FREE_ZONE_ORIGINAL_EXPORTS
module = __UMD_FREE_ZONE_ORIGINAL_MODULE
}
// Restore AMD
if (__UMD_FREE_ZONE_ORIGINAL_DEFINE) {
define = __UMD_FREE_ZONE_ORIGINAL_DEFINE
}
{
"name": "umd-free-zone",
"version": "0.1.0",
"version": "0.1.1",
"description": "Creates a define and exports free zone for your UMD scripts to safely register globally",

@@ -8,5 +8,5 @@ "main": "start.js",

"repository": {
"type" : "git",
"url" : "https://github.com/vtex/umd-free-zone.git"
"type": "git",
"url": "https://github.com/vtex/umd-free-zone.git"
}
}

@@ -9,18 +9,15 @@ /**

// Run only in browsers
if (!window || !window.document) {
return
if (window && window.document) {
// Clean CommonJS
if (typeof exports === 'object' && typeof module !== 'undefined') {
var __UMD_FREE_ZONE_ORIGINAL_EXPORTS = exports
var __UMD_FREE_ZONE_ORIGINAL_MODULE = module
exports = undefined
module = undefined
}
// Clean AMD
if (typeof define === 'function' && define.amd) {
var __UMD_FREE_ZONE_ORIGINAL_DEFINE = define
define = undefined
}
}
// Clean CommonJS
if (typeof exports === 'object' && typeof module !== 'undefined') {
var __UMD_FREE_ZONE_ORIGINAL_EXPORTS = exports
var __UMD_FREE_ZONE_ORIGINAL_MODULE = module
exports = undefined
module = undefined
}
// Clean AMD
if (typeof define === 'function' && define.amd) {
var __UMD_FREE_ZONE_ORIGINAL_DEFINE = define
define = undefined
}
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