🎩 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
758
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.50.2-alpha.167
to
20.50.2-alpha.180
+0
-5
dist/index.d.mts

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

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

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

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

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

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

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

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

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

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

+1
-5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+3
-3
{
"name": "@uniformdev/files",
"version": "20.50.2-alpha.167+74e60d5bb7",
"version": "20.50.2-alpha.180+0be2307590",
"description": "Uniform Files helpers",

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

"dependencies": {
"@uniformdev/context": "20.50.2-alpha.167+74e60d5bb7"
"@uniformdev/context": "20.50.2-alpha.180+0be2307590"
},
"gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
"gitHead": "0be23075901a6fd0acd8166a2bea65fbd5589789"
}