@univerjs/network 0.2.6 → 0.2.8
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/lib/types/services/http/__testing__/http-testing-utils.d.ts +0 -1
- package/lib/types/services/http/http.service.d.ts +0 -1
- package/lib/types/services/http/implementations/fetch.d.ts +0 -1
- package/lib/types/services/http/implementations/implementation.d.ts +0 -1
- package/lib/types/services/http/implementations/xhr.d.ts +0 -1
- package/lib/types/services/http/interceptor.d.ts +0 -1
- package/lib/types/services/http/interceptors/auth-interceptor.d.ts +0 -1
- package/lib/types/services/http/interceptors/merge-interceptor.d.ts +0 -1
- package/lib/types/services/http/interceptors/retry-interceptor.d.ts +0 -1
- package/lib/types/services/http/interceptors/threshold-interceptor.d.ts +0 -1
- package/lib/types/services/http/request.d.ts +0 -1
- package/lib/types/services/http/response.d.ts +0 -1
- package/lib/types/services/web-socket/web-socket.service.d.ts +0 -1
- package/package.json +6 -6
|
@@ -3,7 +3,6 @@ import { Disposable, Injector } from '@univerjs/core';
|
|
|
3
3
|
import { IHTTPImplementation } from '../implementations/implementation';
|
|
4
4
|
import { HTTPRequest } from '../request';
|
|
5
5
|
import { HTTPEvent, HTTPResponse, HTTPResponseError } from '../response';
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* A mocked HTTP implementation service for testing purposes. Besides methods in the interface, it
|
|
9
8
|
* provides several public methods to control the process of http request.
|
|
@@ -5,7 +5,6 @@ import { IHTTPImplementation } from './implementations/implementation';
|
|
|
5
5
|
import { HTTPRequestMethod } from './request';
|
|
6
6
|
import { HTTPEvent } from './response';
|
|
7
7
|
import { HTTPInterceptorFn } from './interceptor';
|
|
8
|
-
|
|
9
8
|
export interface IRequestParams {
|
|
10
9
|
/** Query params. These params would be append to the url before the request is sent. */
|
|
11
10
|
params?: {
|
|
@@ -2,7 +2,6 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { HTTPRequest } from '../request';
|
|
3
3
|
import { HTTPEvent } from '../response';
|
|
4
4
|
import { IHTTPImplementation } from './implementation';
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* An HTTP implementation using Fetch API. This implementation can both run in browser and Node.js.
|
|
8
7
|
*
|
|
@@ -2,7 +2,6 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { HTTPRequest } from '../request';
|
|
3
3
|
import { HTTPEvent } from '../response';
|
|
4
4
|
import { IHTTPImplementation } from './implementation';
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* An HTTP implementation using XHR. HTTP service provided by this service could only be async (we do not support sync XHR now).
|
|
8
7
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { HTTPRequest } from './request';
|
|
3
3
|
import { HTTPEvent } from './response';
|
|
4
|
-
|
|
5
4
|
export type HTTPHandlerFn = (request: HTTPRequest) => Observable<HTTPEvent<unknown>>;
|
|
6
5
|
/**
|
|
7
6
|
* HTTP interceptor function. When the interceptor is called, it would receive a request object and a next function.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Nullable, Disposable } from '@univerjs/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
|
|
4
3
|
export type SocketBodyType = string | ArrayBufferLike | Blob | ArrayBufferView;
|
|
5
4
|
/**
|
|
6
5
|
* This service is responsible for establishing bidi-directional connection to a remote server.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/network",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "DreamNum <developer@univer.ai>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"rxjs": ">=7.0.0",
|
|
49
|
-
"@univerjs/core": "0.2.
|
|
49
|
+
"@univerjs/core": "0.2.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"rxjs": "^7.8.1",
|
|
53
53
|
"typescript": "^5.5.4",
|
|
54
|
-
"vite": "^5.
|
|
55
|
-
"vitest": "^2.0.
|
|
56
|
-
"@univerjs/core": "0.2.
|
|
57
|
-
"@univerjs/shared": "0.2.
|
|
54
|
+
"vite": "^5.4.0",
|
|
55
|
+
"vitest": "^2.0.5",
|
|
56
|
+
"@univerjs/core": "0.2.8",
|
|
57
|
+
"@univerjs/shared": "0.2.8"
|
|
58
58
|
},
|
|
59
59
|
"univerSpace": {
|
|
60
60
|
".": {
|