@sonoransoftware/sonoran.js 1.0.17 → 1.0.18
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.
|
@@ -5,7 +5,6 @@ const events_1 = require("events");
|
|
|
5
5
|
const RequestManager_1 = require("./RequestManager");
|
|
6
6
|
const constants_1 = require("./utils/constants");
|
|
7
7
|
const constants_2 = require("../../../../constants");
|
|
8
|
-
const utils_1 = require("./utils/utils");
|
|
9
8
|
class REST extends events_1.EventEmitter {
|
|
10
9
|
constructor(_instance, _manager, _product, options) {
|
|
11
10
|
super();
|
|
@@ -48,8 +47,7 @@ class REST extends events_1.EventEmitter {
|
|
|
48
47
|
}
|
|
49
48
|
if (!communityId || !apiKey)
|
|
50
49
|
throw new Error(`Community ID or API Key could not be found for request. P${apiType.product}`);
|
|
51
|
-
if (apiType.minVersion > this.manager.version)
|
|
52
|
-
throw new Error(`[${type}] Subscription version too low for this API type request. Current Version: ${(0, utils_1.convertSubNumToName)(this.manager.version)} Needed Version: ${(0, utils_1.convertSubNumToName)(apiType.minVersion)}`);
|
|
50
|
+
// if (apiType.minVersion > this.manager.version) throw new Error(`[${type}] Subscription version too low for this API type request. Current Version: ${convertSubNumToName(this.manager.version)} Needed Version: ${convertSubNumToName(apiType.minVersion)}`); // Verifies API Subscription Level Requirement which is deprecated currently
|
|
53
51
|
const formattedData = this.formatDataArguments(apiType.type, args);
|
|
54
52
|
const options = {
|
|
55
53
|
id: communityId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonoransoftware/sonoran.js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
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",
|
|
@@ -153,7 +153,7 @@ export class REST extends EventEmitter {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
if (!communityId || !apiKey) throw new Error(`Community ID or API Key could not be found for request. P${apiType.product}`);
|
|
156
|
-
if (apiType.minVersion > this.manager.version) throw new Error(`[${type}] Subscription version too low for this API type request. Current Version: ${convertSubNumToName(this.manager.version)} Needed Version: ${convertSubNumToName(apiType.minVersion)}`);
|
|
156
|
+
// if (apiType.minVersion > this.manager.version) throw new Error(`[${type}] Subscription version too low for this API type request. Current Version: ${convertSubNumToName(this.manager.version)} Needed Version: ${convertSubNumToName(apiType.minVersion)}`); // Verifies API Subscription Level Requirement which is deprecated currently
|
|
157
157
|
const formattedData = this.formatDataArguments(apiType.type, args);
|
|
158
158
|
const options: InternalRequestData = {
|
|
159
159
|
id: communityId,
|