@uniformdev/files 20.50.2-alpha.167 → 20.50.2-alpha.180
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.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/index.esm.js +1 -5
- package/dist/index.js +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -310,10 +310,6 @@ declare class FileClient extends ApiClient {
|
|
|
310
310
|
uploadUrl: string;
|
|
311
311
|
method: "POST" | "PUT";
|
|
312
312
|
}>;
|
|
313
|
-
remove(options: WithoutProjectId<FileDeleteRequest>): Promise<{
|
|
314
|
-
id: string;
|
|
315
|
-
}>;
|
|
316
|
-
/** @deprecated Use {@link remove} instead. */
|
|
317
313
|
delete(options: FileDeleteRequest): Promise<{
|
|
318
314
|
id: string;
|
|
319
315
|
}>;
|
|
@@ -333,7 +329,6 @@ declare class FileClient extends ApiClient {
|
|
|
333
329
|
deletedReplacementFileId?: string;
|
|
334
330
|
}>;
|
|
335
331
|
}
|
|
336
|
-
/** @deprecated Pass `bypassCache: true` to {@link FileClient} instead. */
|
|
337
332
|
declare class UncachedFileClient extends FileClient {
|
|
338
333
|
constructor(options: Omit<ClientOptions & {
|
|
339
334
|
projectId: NonNullable<ClientOptions['projectId']>;
|
package/dist/index.d.ts
CHANGED
|
@@ -310,10 +310,6 @@ declare class FileClient extends ApiClient {
|
|
|
310
310
|
uploadUrl: string;
|
|
311
311
|
method: "POST" | "PUT";
|
|
312
312
|
}>;
|
|
313
|
-
remove(options: WithoutProjectId<FileDeleteRequest>): Promise<{
|
|
314
|
-
id: string;
|
|
315
|
-
}>;
|
|
316
|
-
/** @deprecated Use {@link remove} instead. */
|
|
317
313
|
delete(options: FileDeleteRequest): Promise<{
|
|
318
314
|
id: string;
|
|
319
315
|
}>;
|
|
@@ -333,7 +329,6 @@ declare class FileClient extends ApiClient {
|
|
|
333
329
|
deletedReplacementFileId?: string;
|
|
334
330
|
}>;
|
|
335
331
|
}
|
|
336
|
-
/** @deprecated Pass `bypassCache: true` to {@link FileClient} instead. */
|
|
337
332
|
declare class UncachedFileClient extends FileClient {
|
|
338
333
|
constructor(options: Omit<ClientOptions & {
|
|
339
334
|
projectId: NonNullable<ClientOptions['projectId']>;
|
package/dist/index.esm.js
CHANGED
|
@@ -21,7 +21,7 @@ var FileClient = class extends ApiClient {
|
|
|
21
21
|
body: JSON.stringify({ ...options, projectId })
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
async
|
|
24
|
+
async delete(options) {
|
|
25
25
|
const { projectId } = this.options;
|
|
26
26
|
const fetchUri = this.createUrl(FILE_BASE_PATH);
|
|
27
27
|
return this.apiClient(fetchUri, {
|
|
@@ -29,10 +29,6 @@ var FileClient = class extends ApiClient {
|
|
|
29
29
|
body: JSON.stringify({ ...options, projectId })
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
/** @deprecated Use {@link remove} instead. */
|
|
33
|
-
async delete(options) {
|
|
34
|
-
return this.remove(options);
|
|
35
|
-
}
|
|
36
32
|
/**
|
|
37
33
|
* Replaces the contents behind an existing file while preserving its URL.
|
|
38
34
|
*/
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var FileClient = class extends import_api.ApiClient {
|
|
|
62
62
|
body: JSON.stringify({ ...options, projectId })
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
async
|
|
65
|
+
async delete(options) {
|
|
66
66
|
const { projectId } = this.options;
|
|
67
67
|
const fetchUri = this.createUrl(FILE_BASE_PATH);
|
|
68
68
|
return this.apiClient(fetchUri, {
|
|
@@ -70,10 +70,6 @@ var FileClient = class extends import_api.ApiClient {
|
|
|
70
70
|
body: JSON.stringify({ ...options, projectId })
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
/** @deprecated Use {@link remove} instead. */
|
|
74
|
-
async delete(options) {
|
|
75
|
-
return this.remove(options);
|
|
76
|
-
}
|
|
77
73
|
/**
|
|
78
74
|
* Replaces the contents behind an existing file while preserving its URL.
|
|
79
75
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ var FileClient = class extends ApiClient {
|
|
|
21
21
|
body: JSON.stringify({ ...options, projectId })
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
async
|
|
24
|
+
async delete(options) {
|
|
25
25
|
const { projectId } = this.options;
|
|
26
26
|
const fetchUri = this.createUrl(FILE_BASE_PATH);
|
|
27
27
|
return this.apiClient(fetchUri, {
|
|
@@ -29,10 +29,6 @@ var FileClient = class extends ApiClient {
|
|
|
29
29
|
body: JSON.stringify({ ...options, projectId })
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
/** @deprecated Use {@link remove} instead. */
|
|
33
|
-
async delete(options) {
|
|
34
|
-
return this.remove(options);
|
|
35
|
-
}
|
|
36
32
|
/**
|
|
37
33
|
* Replaces the contents behind an existing file while preserving its URL.
|
|
38
34
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/files",
|
|
3
|
-
"version": "20.50.2-alpha.
|
|
3
|
+
"version": "20.50.2-alpha.180+0be2307590",
|
|
4
4
|
"description": "Uniform Files helpers",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@uniformdev/context": "20.50.2-alpha.
|
|
38
|
+
"@uniformdev/context": "20.50.2-alpha.180+0be2307590"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0be23075901a6fd0acd8166a2bea65fbd5589789"
|
|
41
41
|
}
|