@sonoransoftware/sonoran.js 1.0.46 → 1.0.47
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.
|
@@ -130,11 +130,12 @@ class RequestManager extends events_1.EventEmitter {
|
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
case 'LOOKUP': {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
const rawLookup = data.data;
|
|
134
|
+
if (Array.isArray(rawLookup)) {
|
|
135
|
+
apiData.data.data = rawLookup;
|
|
135
136
|
}
|
|
136
|
-
else if (
|
|
137
|
-
apiData.data.data = [
|
|
137
|
+
else if (rawLookup !== undefined && rawLookup !== null) {
|
|
138
|
+
apiData.data.data = [rawLookup];
|
|
138
139
|
}
|
|
139
140
|
else {
|
|
140
141
|
apiData.data.data = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonoransoftware/sonoran.js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
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",
|
|
@@ -203,10 +203,11 @@ export class RequestManager extends EventEmitter {
|
|
|
203
203
|
break;
|
|
204
204
|
}
|
|
205
205
|
case 'LOOKUP': {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
const rawLookup = data.data;
|
|
207
|
+
if (Array.isArray(rawLookup)) {
|
|
208
|
+
apiData.data.data = rawLookup;
|
|
209
|
+
} else if (rawLookup !== undefined && rawLookup !== null) {
|
|
210
|
+
apiData.data.data = [rawLookup];
|
|
210
211
|
} else {
|
|
211
212
|
apiData.data.data = [];
|
|
212
213
|
}
|