@sonoransoftware/sonoran.js 1.0.31 → 1.0.32

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.
@@ -60,6 +60,7 @@ export type Mutable<T> = {
60
60
  export interface CMSVerifyWhitelistPromiseResult {
61
61
  success: boolean;
62
62
  reason?: string;
63
+ backendError?: boolean;
63
64
  }
64
65
  export interface CMSGetFullWhitelistPromiseResult {
65
66
  success: boolean;
@@ -83,7 +83,7 @@ class CMSManager extends BaseManager_1.BaseManager {
83
83
  }
84
84
  catch (err) {
85
85
  if (err instanceof src_1.APIError) {
86
- resolve({ success: false, reason: err.response });
86
+ resolve({ success: false, reason: err.response, backendError: true });
87
87
  }
88
88
  else {
89
89
  reject(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonoransoftware/sonoran.js",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Sonoran.js is a library that allows you to interact with the Sonoran CAD and Sonoran CMS API. Based off of and utilizes several Discord.js library techniques for ease of use.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -72,6 +72,7 @@ export type Mutable<T> = {
72
72
  export interface CMSVerifyWhitelistPromiseResult {
73
73
  success: boolean;
74
74
  reason?: string;
75
+ backendError?: boolean;
75
76
  }
76
77
 
77
78
  export interface CMSGetFullWhitelistPromiseResult {
@@ -61,7 +61,7 @@ export class CMSManager extends BaseManager {
61
61
  }
62
62
  } catch (err) {
63
63
  if (err instanceof APIError) {
64
- resolve({ success: false, reason: err.response });
64
+ resolve({ success: false, reason: err.response, backendError: true });
65
65
  } else {
66
66
  reject(err);
67
67
  }