Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dx-ctu-client-sdk

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dx-ctu-client-sdk - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

14

lib/index.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc