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

async-define

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-define - npm Package Compare versions

Comparing version 3.0.4 to 3.1.0

25

lib/asyncDefine.js

@@ -97,5 +97,25 @@ (function (cb){

}
cb.call(w, ad);
}(function (define) {
function ie(moduleName, iecb) {
var script = document.querySelector('script#' + moduleName);
var link = document.querySelector('link#' + moduleName);
if (!script && link) {
var src = link.href;
script = document.createElement('script');
script.id = moduleName;
script.src = src;
document.head.appendChild(script);
}
if (!('Promise' in w)) {
return ad([moduleName], iecb);
}
return new Promise(function (resolve) {
ad([moduleName], resolve);
});
}
cb.call(w, ad, ie);
}(function (define, importExternal) {
if (typeof exports === 'object'){
define.importExternal = importExternal;
module.exports = define;

@@ -105,2 +125,3 @@ }

this.asyncDefine = define;
this.importExternal = importExternal;
}

@@ -107,0 +128,0 @@

2

package.json
{
"name": "async-define",
"version": "3.0.4",
"version": "3.1.0",
"description": "Coordinate the execution of asynchronous scripts",

@@ -5,0 +5,0 @@ "main": "lib/asyncDefine.js",

if (typeof exports === 'object'){
define.importExternal = importExternal;
module.exports = define;

@@ -6,2 +7,3 @@ }

this.asyncDefine = define;
this.importExternal = importExternal;
}

Sorry, the diff of this file is not supported yet

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