Skip to content

Commit

Permalink
snake_case -> camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
jaherne-duo committed Jan 9, 2024
1 parent 2e05235 commit 5263757
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ var constants = require('./constants')

const _PACKAGE_VERSION = require('../package.json').version

function Client (ikey, skey, host, sig_version = 2) {
function Client (ikey, skey, host, sigVersion = 2) {
this.ikey = ikey
this.skey = skey
this.host = host
this.sig_version = sig_version
this.sigVersion = sigVersion
}

Client.prototype.apiCall = function (method, path, params, callback) {
Expand All @@ -21,7 +21,7 @@ Client.prototype.apiCall = function (method, path, params, callback) {
}
var body = ''
var qs = querystring.stringify(params)
if (this.sig_version === 5) {
if (this.sigVersion === 5) {
if (method === 'POST' || method === 'PUT') {
body = JSON.stringify(params)
params = {}
Expand Down

0 comments on commit 5263757

Please sign in to comment.