@dc-qash/sdk 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib.js +2 -2
  2. package/package.json +1 -1
package/dist/lib.js CHANGED
@@ -162,7 +162,7 @@ class QashCBS {
162
162
  createIndividualAccountHolder(data) {
163
163
  return new Promise(async (resolve, reject) => {
164
164
  try {
165
- let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/account-holders`, { method: "POST", body: JSON.stringify(Object.assign({ type: "individual" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}` } }).then(r => r.json());
165
+ let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/account-holders`, { method: "POST", body: JSON.stringify(Object.assign({ type: "individual" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}`, "Content-Type": "application/json" } }).then(r => r.json());
166
166
  if (_q.error || _q.errors)
167
167
  throw _q.errors || [_q.error];
168
168
  return resolve(_q);
@@ -178,7 +178,7 @@ class QashCBS {
178
178
  createCheckingAccount(data) {
179
179
  return new Promise(async (resolve, reject) => {
180
180
  try {
181
- let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/accounts`, { method: "POST", body: JSON.stringify(Object.assign({ type: "checking_account" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}` } }).then(r => r.json());
181
+ let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/accounts`, { method: "POST", body: JSON.stringify(Object.assign({ type: "checking_account" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}`, "Content-Type": "application/json" } }).then(r => r.json());
182
182
  if (_q.error || _q.errors)
183
183
  throw _q.errors || [_q.error];
184
184
  return resolve(_q);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dc-qash/sdk",
3
3
  "type": "module",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "description": "SDK for Qash, a DemocracyCraft clearing house",
6
6
  "main": "dist/lib.js",
7
7
  "types": "dist/lib.d.ts",