Comparing version 0.0.7 to 0.0.8
/** vim: et:ts=4:sw=4:sts=4 | ||
* @license amdefine 0.0.7 Copyright (c) 2011, The Dojo Foundation All Rights Reserved. | ||
* @license amdefine 0.0.8 Copyright (c) 2011, The Dojo Foundation All Rights Reserved. | ||
* Available via the MIT or new BSD license. | ||
@@ -15,3 +15,3 @@ * see: http://github.com/jrburke/amdefine for details | ||
* current module. | ||
* @param {Function} [require]. Node's require function for the current module. | ||
* @param {Function} [requireFn]. Node's require function for the current module. | ||
* It only needs to be passed in Node versions before 0.5, when module.require | ||
@@ -22,3 +22,3 @@ * did not exist. | ||
*/ | ||
function amdefine(module, require) { | ||
function amdefine(module, requireFn) { | ||
'use strict'; | ||
@@ -143,3 +143,3 @@ var defineCache = {}, | ||
//Favor explicit value, passed in if the module wants to support Node 0.4. | ||
require = require || function req() { | ||
requireFn = requireFn || function req() { | ||
return module.require.apply(module, arguments); | ||
@@ -158,3 +158,3 @@ }; | ||
}; | ||
r = makeRequire(require, e, m, id); | ||
r = makeRequire(requireFn, e, m, id); | ||
} else { | ||
@@ -172,3 +172,3 @@ //Only support one define call per file | ||
m = module; | ||
r = makeRequire(require, e, m, module.id); | ||
r = makeRequire(requireFn, e, m, module.id); | ||
} | ||
@@ -175,0 +175,0 @@ |
{ | ||
"name": "amdefine", | ||
"description": "Provide AMD's define() API for declaring modules in the AMD format", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"homepage": "http://github.com/jrburke/amdefine", | ||
@@ -6,0 +6,0 @@ "author": "James Burke <jrburke@gmail.com> (http://github.com/jrburke)", |
@@ -13,3 +13,3 @@ # amdefine | ||
"dependencies": { | ||
"amdefine": ">=0.0.7" | ||
"amdefine": ">=0.0.8" | ||
} | ||
@@ -16,0 +16,0 @@ ``` |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
17353
0