@algolia/client-common 5.0.0-beta.1 → 5.0.0-beta.3
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/client-common.cjs
CHANGED
|
@@ -301,6 +301,14 @@ function createStatefulHost(host, status = 'up') {
|
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
function _defineProperty(e, r, t) {
|
|
305
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
306
|
+
value: t,
|
|
307
|
+
enumerable: !0,
|
|
308
|
+
configurable: !0,
|
|
309
|
+
writable: !0
|
|
310
|
+
}) : e[r] = t, e;
|
|
311
|
+
}
|
|
304
312
|
function _toPrimitive(t, r) {
|
|
305
313
|
if ("object" != typeof t || !t) return t;
|
|
306
314
|
var e = t[Symbol.toPrimitive];
|
|
@@ -315,20 +323,6 @@ function _toPropertyKey(t) {
|
|
|
315
323
|
var i = _toPrimitive(t, "string");
|
|
316
324
|
return "symbol" == typeof i ? i : i + "";
|
|
317
325
|
}
|
|
318
|
-
function _defineProperty(obj, key, value) {
|
|
319
|
-
key = _toPropertyKey(key);
|
|
320
|
-
if (key in obj) {
|
|
321
|
-
Object.defineProperty(obj, key, {
|
|
322
|
-
value: value,
|
|
323
|
-
enumerable: true,
|
|
324
|
-
configurable: true,
|
|
325
|
-
writable: true
|
|
326
|
-
});
|
|
327
|
-
} else {
|
|
328
|
-
obj[key] = value;
|
|
329
|
-
}
|
|
330
|
-
return obj;
|
|
331
|
-
}
|
|
332
326
|
|
|
333
327
|
class AlgoliaError extends Error {
|
|
334
328
|
constructor(message, name) {
|
|
@@ -349,7 +343,7 @@ class ErrorWithStackTrace extends AlgoliaError {
|
|
|
349
343
|
}
|
|
350
344
|
class RetryError extends ErrorWithStackTrace {
|
|
351
345
|
constructor(stackTrace) {
|
|
352
|
-
super('Unreachable hosts - your application id may be incorrect. If the error persists, please
|
|
346
|
+
super('Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.', stackTrace, 'RetryError');
|
|
353
347
|
}
|
|
354
348
|
}
|
|
355
349
|
class ApiError extends ErrorWithStackTrace {
|
|
@@ -299,6 +299,14 @@ function createStatefulHost(host, status = 'up') {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
function _defineProperty(e, r, t) {
|
|
303
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
304
|
+
value: t,
|
|
305
|
+
enumerable: !0,
|
|
306
|
+
configurable: !0,
|
|
307
|
+
writable: !0
|
|
308
|
+
}) : e[r] = t, e;
|
|
309
|
+
}
|
|
302
310
|
function _toPrimitive(t, r) {
|
|
303
311
|
if ("object" != typeof t || !t) return t;
|
|
304
312
|
var e = t[Symbol.toPrimitive];
|
|
@@ -313,20 +321,6 @@ function _toPropertyKey(t) {
|
|
|
313
321
|
var i = _toPrimitive(t, "string");
|
|
314
322
|
return "symbol" == typeof i ? i : i + "";
|
|
315
323
|
}
|
|
316
|
-
function _defineProperty(obj, key, value) {
|
|
317
|
-
key = _toPropertyKey(key);
|
|
318
|
-
if (key in obj) {
|
|
319
|
-
Object.defineProperty(obj, key, {
|
|
320
|
-
value: value,
|
|
321
|
-
enumerable: true,
|
|
322
|
-
configurable: true,
|
|
323
|
-
writable: true
|
|
324
|
-
});
|
|
325
|
-
} else {
|
|
326
|
-
obj[key] = value;
|
|
327
|
-
}
|
|
328
|
-
return obj;
|
|
329
|
-
}
|
|
330
324
|
|
|
331
325
|
class AlgoliaError extends Error {
|
|
332
326
|
constructor(message, name) {
|
|
@@ -347,7 +341,7 @@ class ErrorWithStackTrace extends AlgoliaError {
|
|
|
347
341
|
}
|
|
348
342
|
class RetryError extends ErrorWithStackTrace {
|
|
349
343
|
constructor(stackTrace) {
|
|
350
|
-
super('Unreachable hosts - your application id may be incorrect. If the error persists, please
|
|
344
|
+
super('Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.', stackTrace, 'RetryError');
|
|
351
345
|
}
|
|
352
346
|
}
|
|
353
347
|
class ApiError extends ErrorWithStackTrace {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-common",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
4
4
|
"description": "Common package for the Algolia JavaScript API client.",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"test": "jest"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@babel/preset-env": "7.24.
|
|
24
|
-
"@babel/preset-typescript": "7.24.
|
|
23
|
+
"@babel/preset-env": "7.24.7",
|
|
24
|
+
"@babel/preset-typescript": "7.24.7",
|
|
25
25
|
"@types/jest": "29.5.12",
|
|
26
|
-
"@types/node": "20.
|
|
26
|
+
"@types/node": "20.14.2",
|
|
27
27
|
"jest": "29.7.0",
|
|
28
28
|
"jest-environment-jsdom": "29.7.0",
|
|
29
|
-
"ts-jest": "29.1.
|
|
29
|
+
"ts-jest": "29.1.4",
|
|
30
30
|
"typescript": "5.4.5"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
@@ -25,7 +25,7 @@ export class ErrorWithStackTrace extends AlgoliaError {
|
|
|
25
25
|
export class RetryError extends ErrorWithStackTrace {
|
|
26
26
|
constructor(stackTrace: StackFrame[]) {
|
|
27
27
|
super(
|
|
28
|
-
'Unreachable hosts - your application id may be incorrect. If the error persists, please
|
|
28
|
+
'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.',
|
|
29
29
|
stackTrace,
|
|
30
30
|
'RetryError'
|
|
31
31
|
);
|