@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.mjs
CHANGED
|
@@ -14128,7 +14128,10 @@ var require_tty_stub = __commonJS({
|
|
|
14128
14128
|
// stub-node-builtin:util-stub
|
|
14129
14129
|
var require_util_stub = __commonJS({
|
|
14130
14130
|
"stub-node-builtin:util-stub"(exports$1, module) {
|
|
14131
|
-
module.exports = { inspect: { colors: {} }
|
|
14131
|
+
module.exports = { inspect: { colors: {} }, deprecate: (fn) => fn, format: (msg, ...args) => msg, inherits: (ctor, superCtor) => {
|
|
14132
|
+
ctor.super_ = superCtor;
|
|
14133
|
+
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
|
|
14134
|
+
} };
|
|
14132
14135
|
}
|
|
14133
14136
|
});
|
|
14134
14137
|
|
|
@@ -23023,9 +23026,15 @@ var ApiTokenAuthProvider = class {
|
|
|
23023
23026
|
})
|
|
23024
23027
|
});
|
|
23025
23028
|
if (!authResponse.ok) {
|
|
23029
|
+
let errorData;
|
|
23030
|
+
try {
|
|
23031
|
+
errorData = await authResponse.json();
|
|
23032
|
+
} catch (e) {
|
|
23033
|
+
errorData = { message: authResponse.statusText };
|
|
23034
|
+
}
|
|
23026
23035
|
throw new AuthenticationError(
|
|
23027
|
-
`Key verification failed: ${authResponse.status}`,
|
|
23028
|
-
{ status: authResponse.status }
|
|
23036
|
+
errorData.message || errorData.error || `Key verification failed: ${authResponse.status}`,
|
|
23037
|
+
{ status: authResponse.status, data: errorData }
|
|
23029
23038
|
);
|
|
23030
23039
|
}
|
|
23031
23040
|
const authData = await authResponse.json();
|
|
@@ -23044,9 +23053,15 @@ var ApiTokenAuthProvider = class {
|
|
|
23044
23053
|
}
|
|
23045
23054
|
});
|
|
23046
23055
|
if (!validateResponse.ok) {
|
|
23056
|
+
let errorData;
|
|
23057
|
+
try {
|
|
23058
|
+
errorData = await validateResponse.json();
|
|
23059
|
+
} catch (e) {
|
|
23060
|
+
errorData = { message: validateResponse.statusText };
|
|
23061
|
+
}
|
|
23047
23062
|
throw new AuthenticationError(
|
|
23048
|
-
`Secondary validation failed: ${validateResponse.status}`,
|
|
23049
|
-
{ status: validateResponse.status }
|
|
23063
|
+
errorData.message || errorData.error || `Secondary validation failed: ${validateResponse.status}`,
|
|
23064
|
+
{ status: validateResponse.status, data: errorData }
|
|
23050
23065
|
);
|
|
23051
23066
|
}
|
|
23052
23067
|
const validateData = await validateResponse.json();
|