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

amdefine

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amdefine - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

12

amdefine.js
/** 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 @@ ```

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