🎩 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
753
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.149
to
20.50.2-alpha.167
+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.

+8
-4

@@ -21,4 +21,4 @@ "use strict";

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
FILE_IN_PROGRESS_STATE: () => FILE_IN_PROGRESS_STATE,

@@ -41,3 +41,3 @@ FILE_MAX_SIZE: () => FILE_MAX_SIZE,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);

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

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

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

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

@@ -78,0 +82,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.

{
"name": "@uniformdev/files",
"version": "20.50.2-alpha.149+913f0b7b57",
"version": "20.50.2-alpha.167+74e60d5bb7",
"description": "Uniform Files helpers",

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

"dependencies": {
"@uniformdev/context": "20.50.2-alpha.149+913f0b7b57"
"@uniformdev/context": "20.50.2-alpha.167+74e60d5bb7"
},
"gitHead": "913f0b7b57295ca79575810663c56a7a5deea9e4"
"gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
}