Comparing version 1.6.1 to 1.6.2
'use strict'; | ||
// START_REQUIRE | ||
require('inherits'); | ||
require('util'); | ||
require('events'); | ||
require('lodash/core'); | ||
require('readable-stream'); | ||
require('./cache'); | ||
require('./connection'); | ||
require('./core'); | ||
require('./csv'); | ||
require('./date'); | ||
require('./http-api'); | ||
require('./logger'); | ||
require('./oauth2'); | ||
require('./process'); | ||
require('./promise'); | ||
require('./query'); | ||
require('./quick-action'); | ||
require('./record-stream'); | ||
require('./record'); | ||
require('./soap'); | ||
require('./sobject'); | ||
require('./soql-builder'); | ||
require('./transport'); | ||
// END_REQUIRE | ||
var requireCalled; | ||
module.exports = function(name) { | ||
// prevent recursive require call | ||
if (requireCalled) { throw new Error("Cannot find module '" + name + "'"); } | ||
if (name === './jsforce' || name === 'jsforce') { | ||
return require('./core'); | ||
} | ||
requireCalled = true; | ||
try { | ||
return require(name); | ||
} finally { | ||
requireCalled = false; | ||
} | ||
}; | ||
// 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'); |
@@ -13,3 +13,3 @@ { | ||
"homepage": "http://github.com/jsforce/jsforce", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"repository": { | ||
@@ -92,5 +92,4 @@ "type": "git", | ||
"power-assert": "^1.3.0", | ||
"require-swapper": "^0.1.5", | ||
"require-swapper": "^0.1.6", | ||
"testem": "^1.6.0", | ||
"through2": "^2.0.1", | ||
"vinyl-buffer": "^1.0.0", | ||
@@ -102,5 +101,7 @@ "vinyl-source-stream": "^1.1.0", | ||
"./index": "./lib/browser/jsforce", | ||
"./index.js": "./lib/browser/jsforce", | ||
"./core": "./lib/browser/core", | ||
"./core.js": "./lib/browser/core", | ||
"request": "./lib/browser/request.js" | ||
} | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
10870520
24
140
83336