dx-ctu-client-sdk
Advanced tools
Comparing version 0.1.2 to 0.1.3
const crypto = require('crypto') | ||
const { URLSearchParams } = require('url') | ||
const querystring = require('querystring') | ||
const request = require('request-promise-native') | ||
@@ -42,9 +42,7 @@ | ||
getUrl(sign) { | ||
const params = new URLSearchParams() | ||
params.append('appKey', this.appId) | ||
params.append('sign', sign) | ||
params.append('version', this.version) | ||
return this.url + '?' + params.toString() | ||
return this.url + '?' + querystring.stringify({ | ||
appKey: this.appId, | ||
sign: sign, | ||
version: this.version | ||
}) | ||
} | ||
@@ -51,0 +49,0 @@ |
{ | ||
"name": "dx-ctu-client-sdk", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "dingxiang ctu client sdk", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
107484