jscrambler
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -13,2 +13,4 @@ 'use strict'; | ||
var debug = !!process.env.DEBUG; | ||
/** | ||
@@ -98,2 +100,3 @@ * @class JScramblerClient | ||
';' + path + ';' + buildSortedQuery(paramsCopy); | ||
debug && console.log('Signature data: ' + signatureData); | ||
var hmac = crypto.createHmac('sha256', this.options.keys.secretKey.toUpperCase()); | ||
@@ -171,4 +174,15 @@ hmac.update(signatureData); | ||
var signedData; | ||
var options = {timeout: 0}; | ||
var options = { | ||
open_timeout: 0, | ||
read_timeout: 0 | ||
}; | ||
if (!params) params = {}; | ||
else { | ||
var _keys = keys(params); | ||
for (var i = 0, l = _keys.length; i < l; i++) { | ||
if(params[_keys[i]] instanceof Array && _keys[i] !== 'files') { | ||
params[_keys[i]] = params[_keys[i]].join(','); | ||
} | ||
} | ||
} | ||
// If post sign data and set the request as multipart | ||
@@ -175,0 +189,0 @@ if (method === 'POST') { |
@@ -35,7 +35,9 @@ 'use strict'; | ||
namePrefix: false, | ||
renameAll: true, | ||
renameAll: false, | ||
renameInclude: false, | ||
renameLocal: true, | ||
selfDefending: true, | ||
selfDefending: false, | ||
stringSplitting: false, | ||
whitespace: false | ||
whitespace: true, | ||
preserveAnnotations: true | ||
}; | ||
@@ -42,0 +44,0 @@ |
{ | ||
"name": "jscrambler", | ||
"description": "JScrambler API client.", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"homepage": "https://github.com/jscrambler/node-jscrambler", | ||
@@ -30,19 +30,19 @@ "author": { | ||
"dependencies": { | ||
"commander": "^2.5.1", | ||
"commander": "^2.8.1", | ||
"flavored-path": "0.0.8", | ||
"fs-extra": "^0.12.0", | ||
"glob": "^4.3.4", | ||
"jszip": "^2.4.0", | ||
"lodash.assign": "^2.4.1", | ||
"lodash.clone": "^2.4.1", | ||
"lodash.defaults": "^2.4.1", | ||
"lodash.keys": "^2.4.1", | ||
"lodash.omit": "^2.4.1", | ||
"lodash.pluck": "^2.4.1", | ||
"lodash.size": "^2.4.1", | ||
"needle": "^0.7.10", | ||
"q": "^1.1.2", | ||
"rc": "^0.5.4", | ||
"snake-case": "^1.1.0", | ||
"temp": "^0.8.1" | ||
"fs-extra": "^0.23.1", | ||
"glob": "^5.0.14", | ||
"jszip": "^2.5.0", | ||
"lodash.assign": "^3.2.0", | ||
"lodash.clone": "^3.0.3", | ||
"lodash.defaults": "^3.1.2", | ||
"lodash.keys": "^3.1.2", | ||
"lodash.omit": "^3.1.0", | ||
"lodash.pluck": "^3.1.2", | ||
"lodash.size": "^3.0.2", | ||
"needle": "^0.10.0", | ||
"q": "^1.4.1", | ||
"rc": "^1.1.0", | ||
"snake-case": "^1.1.1", | ||
"temp": "^0.8.3" | ||
}, | ||
@@ -52,3 +52,3 @@ "devDependencies": { | ||
"grunt-contrib-clean": "^0.6.0", | ||
"grunt-jasmine-node": "^0.2.1" | ||
"grunt-jasmine-node": "^0.3.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "main": "jscrambler", |
@@ -163,3 +163,6 @@ # JScrambler Client for Node.js | ||
.then(function (res) { | ||
fs.outputFileSync('dist.zip', res); | ||
return fs.writeFileSync('dist.zip', res); | ||
}) | ||
.catch(function (error) { | ||
console.log(error); | ||
}); | ||
@@ -166,0 +169,0 @@ ``` |
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
44835
769
368
6
+ Addeddebug@2.6.9(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addedfs-extra@0.23.1(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedlodash._arraycopy@3.0.0(transitive)
+ Addedlodash._arrayeach@3.0.0(transitive)
+ Addedlodash._arraymap@3.0.0(transitive)
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._basecallback@3.3.1(transitive)
+ Addedlodash._baseclone@3.3.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basedifference@3.0.3(transitive)
+ Addedlodash._baseeach@3.0.4(transitive)
+ Addedlodash._baseflatten@3.1.4(transitive)
+ Addedlodash._basefor@3.0.3(transitive)
+ Addedlodash._baseget@3.7.2(transitive)
+ Addedlodash._baseindexof@3.1.0(transitive)
+ Addedlodash._baseisequal@3.0.7(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._cacheindexof@3.0.2(transitive)
+ Addedlodash._createassigner@3.1.1(transitive)
+ Addedlodash._createcache@3.1.2(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash._pickbyarray@3.0.2(transitive)
+ Addedlodash._pickbycallback@3.0.0(transitive)
+ Addedlodash._topath@3.8.1(transitive)
+ Addedlodash.assign@3.2.0(transitive)
+ Addedlodash.clone@3.0.3(transitive)
+ Addedlodash.defaults@3.1.2(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.istypedarray@3.0.6(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.keysin@3.0.8(transitive)
+ Addedlodash.map@3.1.4(transitive)
+ Addedlodash.omit@3.1.0(transitive)
+ Addedlodash.pairs@3.0.1(transitive)
+ Addedlodash.pluck@3.1.2(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
+ Addedlodash.size@3.0.2(transitive)
+ Addedms@2.0.0(transitive)
+ Addedneedle@0.10.0(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
- Removeddeep-extend@0.2.11(transitive)
- Removedfs-extra@0.12.0(transitive)
- Removedglob@4.5.3(transitive)
- Removedlodash._arraypool@2.4.1(transitive)
- Removedlodash._basebind@2.4.1(transitive)
- Removedlodash._baseclone@2.4.1(transitive)
- Removedlodash._basecreate@2.4.1(transitive)
- Removedlodash._basecreatecallback@2.4.1(transitive)
- Removedlodash._basecreatewrapper@2.4.1(transitive)
- Removedlodash._basedifference@2.4.1(transitive)
- Removedlodash._baseflatten@2.4.1(transitive)
- Removedlodash._baseindexof@2.4.1(transitive)
- Removedlodash._baseisequal@2.4.1(transitive)
- Removedlodash._cacheindexof@2.4.1(transitive)
- Removedlodash._cachepush@2.4.1(transitive)
- Removedlodash._createcache@2.4.1(transitive)
- Removedlodash._createwrapper@2.4.1(transitive)
- Removedlodash._getarray@2.4.1(transitive)
- Removedlodash._getobject@2.4.1(transitive)
- Removedlodash._isnative@2.4.1(transitive)
- Removedlodash._keyprefix@2.4.2(transitive)
- Removedlodash._largearraysize@2.4.1(transitive)
- Removedlodash._maxpoolsize@2.4.1(transitive)
- Removedlodash._objectpool@2.4.1(transitive)
- Removedlodash._objecttypes@2.4.1(transitive)
- Removedlodash._releasearray@2.4.1(transitive)
- Removedlodash._releaseobject@2.4.1(transitive)
- Removedlodash._setbinddata@2.4.1(transitive)
- Removedlodash._shimkeys@2.4.1(transitive)
- Removedlodash._slice@2.4.1(transitive)
- Removedlodash.assign@2.4.1(transitive)
- Removedlodash.bind@2.4.1(transitive)
- Removedlodash.clone@2.4.1(transitive)
- Removedlodash.createcallback@2.4.4(transitive)
- Removedlodash.defaults@2.4.1(transitive)
- Removedlodash.foreach@2.4.1(transitive)
- Removedlodash.forin@2.4.1(transitive)
- Removedlodash.forown@2.4.1(transitive)
- Removedlodash.identity@2.4.1(transitive)
- Removedlodash.isarguments@2.4.1(transitive)
- Removedlodash.isarray@2.4.1(transitive)
- Removedlodash.isfunction@2.4.1(transitive)
- Removedlodash.isobject@2.4.1(transitive)
- Removedlodash.keys@2.4.1(transitive)
- Removedlodash.map@2.4.1(transitive)
- Removedlodash.noop@2.4.1(transitive)
- Removedlodash.omit@2.4.1(transitive)
- Removedlodash.pluck@2.4.1(transitive)
- Removedlodash.property@2.4.1(transitive)
- Removedlodash.size@2.4.1(transitive)
- Removedlodash.support@2.4.1(transitive)
- Removedminimatch@2.0.10(transitive)
- Removedminimist@0.0.10(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedncp@0.6.0(transitive)
- Removedneedle@0.7.11(transitive)
- Removedrc@0.5.5(transitive)
- Removedstrip-json-comments@0.1.3(transitive)
Updatedcommander@^2.8.1
Updatedfs-extra@^0.23.1
Updatedglob@^5.0.14
Updatedjszip@^2.5.0
Updatedlodash.assign@^3.2.0
Updatedlodash.clone@^3.0.3
Updatedlodash.defaults@^3.1.2
Updatedlodash.keys@^3.1.2
Updatedlodash.omit@^3.1.0
Updatedlodash.pluck@^3.1.2
Updatedlodash.size@^3.0.2
Updatedneedle@^0.10.0
Updatedq@^1.4.1
Updatedrc@^1.1.0
Updatedsnake-case@^1.1.1
Updatedtemp@^0.8.3