@eluvio/elv-client-js 4.0.3 → 4.0.4
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.
package/dist/src/ElvClient.js
CHANGED
|
@@ -143,8 +143,8 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
143
143
|
this.noAuth = noAuth;
|
|
144
144
|
this.assumeV3 = assumeV3;
|
|
145
145
|
|
|
146
|
-
if (!["search", "default"].includes(
|
|
147
|
-
throw Error("Invalid service: ".concat(
|
|
146
|
+
if (!["search", "default"].includes(service)) {
|
|
147
|
+
throw Error("Invalid service: ".concat(service));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
this.service = service;
|
package/package.json
CHANGED
package/src/ElvClient.js
CHANGED
|
@@ -185,8 +185,8 @@ class ElvClient {
|
|
|
185
185
|
this.noAuth = noAuth;
|
|
186
186
|
this.assumeV3 = assumeV3;
|
|
187
187
|
|
|
188
|
-
if(!["search", "default"].includes(
|
|
189
|
-
throw Error(`Invalid service: ${
|
|
188
|
+
if(!["search", "default"].includes(service)) {
|
|
189
|
+
throw Error(`Invalid service: ${service}`);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
this.service = service;
|