From 526375726427f576a48ffb6bc333801c3793268b Mon Sep 17 00:00:00 2001 From: Jonathan Aherne Date: Tue, 9 Jan 2024 12:47:16 -0800 Subject: [PATCH] snake_case -> camelCase --- lib/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/main.js b/lib/main.js index 2d16c94..8eac9f3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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) { @@ -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 = {}