@uniformdev/context 19.198.2-alpha.0 → 19.198.3-alpha.5
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/api/api.d.mts +2 -0
- package/dist/api/api.d.ts +2 -0
- package/dist/api/api.js +2 -1
- package/dist/api/api.mjs +2 -1
- package/package.json +2 -2
package/dist/api/api.d.mts
CHANGED
@@ -22,6 +22,8 @@ type ClientOptions = {
|
|
22
22
|
limitPolicy?: LimitPolicy;
|
23
23
|
/** Specify whether caching is disabled. */
|
24
24
|
bypassCache?: boolean;
|
25
|
+
/** Specify a signal to abort requests. */
|
26
|
+
signal?: AbortSignal;
|
25
27
|
};
|
26
28
|
type ExceptProject<T> = Omit<T, 'projectId'>;
|
27
29
|
declare class ApiClientError extends Error {
|
package/dist/api/api.d.ts
CHANGED
@@ -22,6 +22,8 @@ type ClientOptions = {
|
|
22
22
|
limitPolicy?: LimitPolicy;
|
23
23
|
/** Specify whether caching is disabled. */
|
24
24
|
bypassCache?: boolean;
|
25
|
+
/** Specify a signal to abort requests. */
|
26
|
+
signal?: AbortSignal;
|
25
27
|
};
|
26
28
|
type ExceptProject<T> = Omit<T, 'projectId'>;
|
27
29
|
declare class ApiClientError extends Error {
|
package/dist/api/api.js
CHANGED
@@ -133,9 +133,10 @@ var ApiClient = class _ApiClient {
|
|
133
133
|
if (this.options.bypassCache) {
|
134
134
|
coreHeaders["x-bypass-cache"] = "true";
|
135
135
|
}
|
136
|
-
const { fetch: fetch2 } = this.options;
|
136
|
+
const { fetch: fetch2, signal } = this.options;
|
137
137
|
const callApi = () => fetch2(fetchUri.toString(), {
|
138
138
|
...options,
|
139
|
+
signal,
|
139
140
|
headers: {
|
140
141
|
...options == null ? void 0 : options.headers,
|
141
142
|
...coreHeaders
|
package/dist/api/api.mjs
CHANGED
@@ -68,9 +68,10 @@ var ApiClient = class _ApiClient {
|
|
68
68
|
if (this.options.bypassCache) {
|
69
69
|
coreHeaders["x-bypass-cache"] = "true";
|
70
70
|
}
|
71
|
-
const { fetch: fetch2 } = this.options;
|
71
|
+
const { fetch: fetch2, signal } = this.options;
|
72
72
|
const callApi = () => fetch2(fetchUri.toString(), {
|
73
73
|
...options,
|
74
|
+
signal,
|
74
75
|
headers: {
|
75
76
|
...options == null ? void 0 : options.headers,
|
76
77
|
...coreHeaders
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context",
|
3
|
-
"version": "19.198.
|
3
|
+
"version": "19.198.3-alpha.5+c37bbd4ef2",
|
4
4
|
"description": "Uniform Context core package",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -68,5 +68,5 @@
|
|
68
68
|
"publishConfig": {
|
69
69
|
"access": "public"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "c37bbd4ef2353582b4125b9dd21599634ecd5165"
|
72
72
|
}
|