🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@uniformdev/files

Package Overview
Dependencies
Maintainers
8
Versions
769
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/files - npm Package Compare versions

Comparing version
20.72.3-alpha.8
to
20.72.3-alpha.14
+5
-0
dist/index.d.mts

@@ -313,2 +313,6 @@ import { ApiClient, ClientOptions } from '@uniformdev/context/api';

}>;
remove(options: WithoutProjectId<FileDeleteRequest>): Promise<{
id: string;
}>;
/** @deprecated Use {@link remove} instead. */
delete(options: FileDeleteRequest): Promise<{

@@ -333,2 +337,3 @@ id: string;

}
/** @deprecated Pass `bypassCache: true` to {@link FileClient} instead. */
declare class UncachedFileClient extends FileClient {

@@ -335,0 +340,0 @@ constructor(options: Omit<ClientOptions & {

@@ -313,2 +313,6 @@ import { ApiClient, ClientOptions } from '@uniformdev/context/api';

}>;
remove(options: WithoutProjectId<FileDeleteRequest>): Promise<{
id: string;
}>;
/** @deprecated Use {@link remove} instead. */
delete(options: FileDeleteRequest): Promise<{

@@ -333,2 +337,3 @@ id: string;

}
/** @deprecated Pass `bypassCache: true` to {@link FileClient} instead. */
declare class UncachedFileClient extends FileClient {

@@ -335,0 +340,0 @@ constructor(options: Omit<ClientOptions & {

+5
-1

@@ -24,3 +24,3 @@ // src/FileClient.ts

}
async delete(options) {
async remove(options) {
const { projectId } = this.options;

@@ -33,2 +33,6 @@ const fetchUri = this.createUrl(FILE_BASE_PATH);

}
/** @deprecated Use {@link remove} instead. */
async delete(options) {
return this.remove(options);
}
/**

@@ -35,0 +39,0 @@ * Replaces the contents behind an existing file while preserving its URL.

@@ -65,3 +65,3 @@ "use strict";

}
async delete(options) {
async remove(options) {
const { projectId } = this.options;

@@ -74,2 +74,6 @@ const fetchUri = this.createUrl(FILE_BASE_PATH);

}
/** @deprecated Use {@link remove} instead. */
async delete(options) {
return this.remove(options);
}
/**

@@ -76,0 +80,0 @@ * Replaces the contents behind an existing file while preserving its URL.

@@ -24,3 +24,3 @@ // src/FileClient.ts

}
async delete(options) {
async remove(options) {
const { projectId } = this.options;

@@ -33,2 +33,6 @@ const fetchUri = this.createUrl(FILE_BASE_PATH);

}
/** @deprecated Use {@link remove} instead. */
async delete(options) {
return this.remove(options);
}
/**

@@ -35,0 +39,0 @@ * Replaces the contents behind an existing file while preserving its URL.

+3
-3
{
"name": "@uniformdev/files",
"version": "20.72.3-alpha.8+bc4cf36434",
"version": "20.72.3-alpha.14+1e232e59cd",
"description": "Uniform Files helpers",

@@ -38,5 +38,5 @@ "license": "SEE LICENSE IN LICENSE.txt",

"dependencies": {
"@uniformdev/context": "20.72.3-alpha.8+bc4cf36434"
"@uniformdev/context": "20.72.3-alpha.14+1e232e59cd"
},
"gitHead": "bc4cf3643488dcbc8929bbef6e554ca53de2dd37"
"gitHead": "1e232e59cd3ded97b85b063986cc95e954b8c937"
}