Comparing version 1.6.3 to 1.6.4
@@ -9,3 +9,3 @@ /** | ||
var jsforce = new EventEmitter(); | ||
var jsforce = module.exports = new EventEmitter(); | ||
var pkg = require('../package.json'); | ||
@@ -19,3 +19,1 @@ jsforce.VERSION = pkg.version; | ||
jsforce.require = require('./require'); | ||
module.exports = jsforce; |
'use strict'; | ||
// As The webpack builder scans all script files under the directory where dynamic require resides, | ||
// The code is separated to the dedicated directory. | ||
module.exports = require('./dynreq/require'); | ||
var required = require('./_required'); | ||
module.exports = function(name) { | ||
if (name === './jsforce' || name === 'jsforce') { | ||
name = './core'; | ||
} | ||
var m = required[name]; | ||
if (typeof m === 'undefined') { | ||
throw new Error("Cannot find module '" + name + "'"); | ||
} | ||
return m; | ||
}; |
@@ -13,3 +13,3 @@ { | ||
"homepage": "http://github.com/jsforce/jsforce", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"repository": { | ||
@@ -93,3 +93,3 @@ "type": "git", | ||
"require-swapper": "^0.1.6", | ||
"testem": "^1.6.0", | ||
"testem": "^1.7.1", | ||
"vinyl-buffer": "^1.0.0", | ||
@@ -96,0 +96,0 @@ "vinyl-source-stream": "^1.1.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
141
65
11050509
84702