alameda-prim
Advanced tools
Comparing version 1.1.0 to 1.1.1
/** | ||
* @license alameda 1.1.0 Copyright jQuery Foundation and other contributors. | ||
* @license alameda 1.1.1 Copyright jQuery Foundation and other contributors. | ||
* Released under MIT license, http://github.com/requirejs/alameda/LICENSE | ||
@@ -750,3 +750,3 @@ */ | ||
function makeDefer(name) { | ||
function makeDefer(name, calculatedMap) { | ||
var d = {}; | ||
@@ -762,3 +762,3 @@ d.promise = new Promise(function (resolve, reject) { | ||
}); | ||
d.map = name ? makeMap(name, null, true) : {}; | ||
d.map = name ? (calculatedMap || makeMap(name)) : {}; | ||
d.depCount = 0; | ||
@@ -778,3 +778,3 @@ d.depMax = 0; | ||
function getDefer(name) { | ||
function getDefer(name, calculatedMap) { | ||
var d; | ||
@@ -784,3 +784,3 @@ if (name) { | ||
if (!d) { | ||
d = deferreds[name] = makeDefer(name); | ||
d = deferreds[name] = makeDefer(name, calculatedMap); | ||
} | ||
@@ -960,3 +960,3 @@ } else { | ||
// Redo map now that plugin is known to be loaded | ||
var newMap = makeMap(name, relName, true), | ||
var newMap = map.prn ? map : makeMap(name, relName, true), | ||
newId = newMap.id, | ||
@@ -1015,3 +1015,3 @@ shim = getOwn(config.shim, newId); | ||
var plugin, url, parts, prefix, result, | ||
var plugin, url, parts, prefix, result, prefixNormalized, | ||
cacheKey = name + ' & ' + (relName || '') + ' & ' + !!applyMap; | ||
@@ -1036,2 +1036,3 @@ | ||
name = plugin.normalize(name, makeNormalize(relName)); | ||
prefixNormalized = true; | ||
} else { | ||
@@ -1063,3 +1064,4 @@ // If nested plugin references, then do not try to | ||
pr: prefix, | ||
url: url | ||
url: url, | ||
prn: prefix && prefixNormalized | ||
}; | ||
@@ -1105,3 +1107,3 @@ | ||
var depId = depMap.id, | ||
dep = !hasProp(handlers, depId) && getDefer(depId); | ||
dep = !hasProp(handlers, depId) && getDefer(depId, depMap); | ||
@@ -1108,0 +1110,0 @@ // Only force things that have not completed |
{ | ||
"name": "alameda-prim", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"ignore": [ | ||
@@ -5,0 +5,0 @@ ".gitignore", |
{ | ||
"name": "alameda-prim", | ||
"description": "The alameda AMD loader that includes a private promise shim", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "http://github.com/requirejs/alameda-prim", | ||
@@ -6,0 +6,0 @@ "author": "James Burke <jrburke@gmail.com> (http://github.com/jrburke)", |
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
48605
1313