ellipsis-box
Advanced tools
Comparing version 0.0.5 to 0.2.1-1
@@ -5,4 +5,4 @@ "use strict"; | ||
module.exports = ellipsis => { | ||
const client = require('./sdk')(ellipsis); | ||
module.exports = (ellipsis, configJsonString, enterpriseId) => { | ||
const client = require('./sdk')(ellipsis, configJsonString, enterpriseId); | ||
@@ -9,0 +9,0 @@ return { |
{ | ||
"name": "ellipsis-box", | ||
"version": "0.0.5", | ||
"version": "0.2.1-1", | ||
"description": "Support for accessing the Box.com API from Ellipsis.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,6 +5,6 @@ "use strict"; | ||
module.exports = ellipsis => { | ||
const configJSON = JSON.parse(ellipsis.env.BOX_CONFIG); | ||
module.exports = (ellipsis, configJsonString, enterpriseId) => { | ||
const configJSON = JSON.parse(configJsonString || ellipsis.env.BOX_CONFIG); | ||
const sdk = BoxSDK.getPreconfiguredInstance(configJSON); | ||
return sdk.getAppAuthClient('enterprise', ellipsis.env.BOX_APP_ENTERPRISE_ID); | ||
return sdk.getAppAuthClient('enterprise', enterpriseId || ellipsis.env.BOX_APP_ENTERPRISE_ID); | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3385
1