@algolia/requester-browser-xhr 5.6.1 → 5.8.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/requester-browser-xhr",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "Promise-based request library for browser using xhr.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"test:bundle": "publint . && attw --pack . --ignore-rules cjs-resolves-to-esm"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@algolia/client-common": "5.
|
|
34
|
+
"@algolia/client-common": "5.8.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@arethetypeswrong/cli": "0.16.4",
|
|
38
|
-
"@types/node": "22.
|
|
38
|
+
"@types/node": "22.7.4",
|
|
39
39
|
"jsdom": "25.0.1",
|
|
40
40
|
"publint": "0.2.11",
|
|
41
41
|
"tsup": "8.3.0",
|
|
42
42
|
"typescript": "5.6.2",
|
|
43
|
-
"vitest": "2.1.
|
|
43
|
+
"vitest": "2.1.2",
|
|
44
44
|
"xhr-mock": "2.5.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type http from 'http';
|
|
2
|
-
|
|
3
|
-
import type { EndRequest } from '@algolia/client-common';
|
|
4
|
-
import { describe, test, beforeAll, afterAll, beforeEach, afterEach, expect } from 'vitest';
|
|
2
|
+
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
|
|
5
3
|
import type { MockRequest, MockResponse } from 'xhr-mock';
|
|
6
4
|
import mock from 'xhr-mock';
|
|
7
5
|
|
|
6
|
+
import type { EndRequest } from '@algolia/client-common';
|
|
7
|
+
|
|
8
8
|
import { createXhrRequester } from '../..';
|
|
9
9
|
import {
|
|
10
10
|
BASE_URL,
|
|
11
|
+
createTestServer,
|
|
12
|
+
getStringifiedBody,
|
|
11
13
|
headers,
|
|
12
|
-
timeoutRequest,
|
|
13
14
|
requestStub,
|
|
14
|
-
|
|
15
|
-
createTestServer,
|
|
15
|
+
timeoutRequest,
|
|
16
16
|
} from '../../../../tests/utils';
|
|
17
17
|
|
|
18
18
|
const requester = createXhrRequester();
|