appc-platform-sdk
Advanced tools
Comparing version 1.0.38 to 1.0.39
@@ -62,2 +62,3 @@ /** | ||
*/ | ||
AppC.setPreproduction = | ||
AppC.setDevelopment = function setDevelopment() { | ||
@@ -91,5 +92,14 @@ AppC.baseurl = 'https://360-preprod.cloud.appctest.com'; | ||
function isRunningInPreproduction() { | ||
return process.env.NODE_ACS_URL && | ||
process.env.NODE_ACS_URL.indexOf('.appctest.com') > 0; | ||
} | ||
// set DEFAULT to production host | ||
AppC.setProduction(); | ||
// if running in pre-production, assume by default we want preproduction setup | ||
if (isRunningInPreproduction()) { | ||
AppC.setDevelopment(); | ||
} | ||
else { | ||
AppC.setProduction(); | ||
} | ||
@@ -96,0 +106,0 @@ function createRequestObject(session,url) { |
{ | ||
"name": "appc-platform-sdk", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"description": "Appcelerator Platform SDK for node.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "grunt" | ||
"test": "grunt", | ||
"preinstall": "[ -e ./node_modules/ensure-latest/index.js ] && node ./node_modules/ensure-latest || echo" | ||
}, | ||
@@ -23,3 +24,3 @@ "repository": { | ||
"dependencies": { | ||
"appc-request-ssl": "^1.0.15", | ||
"appc-request-ssl": "1.0.16", | ||
"async": "^0.9.0", | ||
@@ -31,6 +32,10 @@ "debug": "^2.1.0", | ||
"devDependencies": { | ||
"ensure-latest": "^1.0.2", | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"prompt": "^0.2.14" | ||
} | ||
}, | ||
"ensureLatest": [ | ||
"appc-request-ssl" | ||
] | ||
} |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
40766
4
94
15
954
1
4
+ Addedappc-request-ssl@1.0.16(transitive)
+ Addedrequest-ssl@0.0.9(transitive)
- Removedappc-request-ssl@1.0.34(transitive)
- Removedrequest-ssl@0.0.14(transitive)
Updatedappc-request-ssl@1.0.16