+1
-24
| /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
| /*jshint asi: true undef: true es5: true node: true browser: true devel: true | ||
| forin: true latedef: false */ | ||
| /*global define: true, Cu: true, __URI__: true */ | ||
| ;(function(id, factory) { // Module boilerplate :( | ||
| if (typeof(define) === 'function') { // RequireJS | ||
| define(factory); | ||
| } else if (typeof(require) === 'function') { // CommonJS | ||
| factory.call(this, require, exports, module); | ||
| } else if (String(this).indexOf('BackstagePass') >= 0) { // JSM | ||
| factory(function require(uri) { | ||
| var imports = {}; | ||
| this['Components'].utils.import(uri, imports); | ||
| return imports; | ||
| }, this, { uri: __URI__, id: id }); | ||
| this.EXPORTED_SYMBOLS = Object.keys(this); | ||
| } else { // Browser or alike | ||
| var globals = this; | ||
| factory(function require(id) { | ||
| return globals[id]; | ||
| }, (globals[id] = {}), { uri: document.location.href + '#' + id, id: id }); | ||
| } | ||
| }).call(this, 'Method', function(require, exports, module) { | ||
| forin: true latedef: false globalstrict: true */ | ||
| 'use strict'; | ||
@@ -136,3 +115,1 @@ | ||
| module.exports = Method | ||
| }); |
+1
-1
| { | ||
| "name": "method", | ||
| "id": "method", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "Functional polymorphic method dispatch", | ||
@@ -6,0 +6,0 @@ "keywords": [ "method", "dispatch", "protocol", "polymorphism", "type dispatch" ], |
+1
-24
| /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
| /*jshint asi: true undef: true es5: true node: true browser: true devel: true | ||
| forin: true latedef: false */ | ||
| /*global define: true, Cu: true, __URI__: true */ | ||
| ;(function(id, factory) { // Module boilerplate :( | ||
| if (typeof(define) === 'function') { // RequireJS | ||
| define(factory); | ||
| } else if (typeof(require) === 'function') { // CommonJS | ||
| factory.call(this, require, exports, module); | ||
| } else if (~String(this).indexOf('BackstagePass')) { // JSM | ||
| factory(function require(uri) { | ||
| var imports = {}; | ||
| Cu.import(uri, imports); | ||
| return imports; | ||
| }, this, { uri: __URI__, id: id }); | ||
| this.EXPORTED_SYMBOLS = Object.keys(this); | ||
| } else { // Browser or alike | ||
| var globals = this | ||
| factory(function require(id) { | ||
| return globals[id]; | ||
| }, (globals[id] = {}), { uri: document.location.href + '#' + id, id: id }); | ||
| } | ||
| }).call(this, 'test/test-all', function(require, exports, module) { | ||
| forin: true latedef: false globalstrict: true */ | ||
| 'use strict'; | ||
@@ -258,3 +237,1 @@ | ||
| if (require.main === module) require('test').run(exports) | ||
| }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
998842
1.43%0
-100%284
-12.88%