@dora-cell/sdk 4.0.0 → 4.1.1
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/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14132,7 +14132,10 @@ var require_tty_stub = __commonJS({
|
|
|
14132
14132
|
// stub-node-builtin:util-stub
|
|
14133
14133
|
var require_util_stub = __commonJS({
|
|
14134
14134
|
"stub-node-builtin:util-stub"(exports$1, module) {
|
|
14135
|
-
module.exports = { inspect: { colors: {} }
|
|
14135
|
+
module.exports = { inspect: { colors: {} }, deprecate: (fn) => fn, format: (msg, ...args) => msg, inherits: (ctor, superCtor) => {
|
|
14136
|
+
ctor.super_ = superCtor;
|
|
14137
|
+
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
|
|
14138
|
+
} };
|
|
14136
14139
|
}
|
|
14137
14140
|
});
|
|
14138
14141
|
|
|
@@ -23027,9 +23030,15 @@ var ApiTokenAuthProvider = class {
|
|
|
23027
23030
|
})
|
|
23028
23031
|
});
|
|
23029
23032
|
if (!authResponse.ok) {
|
|
23033
|
+
let errorData;
|
|
23034
|
+
try {
|
|
23035
|
+
errorData = await authResponse.json();
|
|
23036
|
+
} catch (e) {
|
|
23037
|
+
errorData = { message: authResponse.statusText };
|
|
23038
|
+
}
|
|
23030
23039
|
throw new AuthenticationError(
|
|
23031
|
-
`Key verification failed: ${authResponse.status}`,
|
|
23032
|
-
{ status: authResponse.status }
|
|
23040
|
+
errorData.message || errorData.error || `Key verification failed: ${authResponse.status}`,
|
|
23041
|
+
{ status: authResponse.status, data: errorData }
|
|
23033
23042
|
);
|
|
23034
23043
|
}
|
|
23035
23044
|
const authData = await authResponse.json();
|
|
@@ -23048,9 +23057,15 @@ var ApiTokenAuthProvider = class {
|
|
|
23048
23057
|
}
|
|
23049
23058
|
});
|
|
23050
23059
|
if (!validateResponse.ok) {
|
|
23060
|
+
let errorData;
|
|
23061
|
+
try {
|
|
23062
|
+
errorData = await validateResponse.json();
|
|
23063
|
+
} catch (e) {
|
|
23064
|
+
errorData = { message: validateResponse.statusText };
|
|
23065
|
+
}
|
|
23051
23066
|
throw new AuthenticationError(
|
|
23052
|
-
`Secondary validation failed: ${validateResponse.status}`,
|
|
23053
|
-
{ status: validateResponse.status }
|
|
23067
|
+
errorData.message || errorData.error || `Secondary validation failed: ${validateResponse.status}`,
|
|
23068
|
+
{ status: validateResponse.status, data: errorData }
|
|
23054
23069
|
);
|
|
23055
23070
|
}
|
|
23056
23071
|
const validateData = await validateResponse.json();
|