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

@uniformdev/assets

Package Overview
Dependencies
Maintainers
8
Versions
736
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/assets - npm Package Compare versions

Comparing version
20.50.2-alpha.167
to
20.50.2-alpha.180
+2
-24
dist/index.esm.js

@@ -19,18 +19,4 @@ // src/AssetClient.ts

}
/**
* Fetches a list of assets
*/
async list(options = {}) {
async upsert(options) {
const { projectId } = this.options;
const { filters, ...params } = options;
const rewrittenFilters = rewriteFiltersForApi(filters);
const fetchUri = this.createUrl(ASSET_BASE_PATH, {
...params,
projectId,
...rewrittenFilters
});
return this.apiClient(fetchUri);
}
async save(options) {
const { projectId } = this.options;
const fetchUri = this.createUrl(ASSET_BASE_PATH);

@@ -43,7 +29,3 @@ await this.apiClient(fetchUri, {

}
/** @deprecated Use {@link save} instead. */
async upsert(options) {
return this.save(options);
}
async remove(options) {
async delete(options) {
const { projectId } = this.options;

@@ -57,6 +39,2 @@ const fetchUri = this.createUrl(ASSET_BASE_PATH);

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

@@ -63,0 +41,0 @@ var UncachedAssetClient = class extends AssetClient {

@@ -50,18 +50,4 @@ "use strict";

}
/**
* Fetches a list of assets
*/
async list(options = {}) {
async upsert(options) {
const { projectId } = this.options;
const { filters, ...params } = options;
const rewrittenFilters = (0, import_api.rewriteFiltersForApi)(filters);
const fetchUri = this.createUrl(ASSET_BASE_PATH, {
...params,
projectId,
...rewrittenFilters
});
return this.apiClient(fetchUri);
}
async save(options) {
const { projectId } = this.options;
const fetchUri = this.createUrl(ASSET_BASE_PATH);

@@ -74,7 +60,3 @@ await this.apiClient(fetchUri, {

}
/** @deprecated Use {@link save} instead. */
async upsert(options) {
return this.save(options);
}
async remove(options) {
async delete(options) {
const { projectId } = this.options;

@@ -88,6 +70,2 @@ const fetchUri = this.createUrl(ASSET_BASE_PATH);

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

@@ -94,0 +72,0 @@ var UncachedAssetClient = class extends AssetClient {

@@ -19,18 +19,4 @@ // src/AssetClient.ts

}
/**
* Fetches a list of assets
*/
async list(options = {}) {
async upsert(options) {
const { projectId } = this.options;
const { filters, ...params } = options;
const rewrittenFilters = rewriteFiltersForApi(filters);
const fetchUri = this.createUrl(ASSET_BASE_PATH, {
...params,
projectId,
...rewrittenFilters
});
return this.apiClient(fetchUri);
}
async save(options) {
const { projectId } = this.options;
const fetchUri = this.createUrl(ASSET_BASE_PATH);

@@ -43,7 +29,3 @@ await this.apiClient(fetchUri, {

}
/** @deprecated Use {@link save} instead. */
async upsert(options) {
return this.save(options);
}
async remove(options) {
async delete(options) {
const { projectId } = this.options;

@@ -57,6 +39,2 @@ const fetchUri = this.createUrl(ASSET_BASE_PATH);

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

@@ -63,0 +41,0 @@ var UncachedAssetClient = class extends AssetClient {

+4
-4
{
"name": "@uniformdev/assets",
"version": "20.50.2-alpha.167+74e60d5bb7",
"version": "20.50.2-alpha.180+0be2307590",
"description": "Uniform Assets",

@@ -39,4 +39,4 @@ "license": "SEE LICENSE IN LICENSE.txt",

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

@@ -46,3 +46,3 @@ "devDependencies": {

},
"gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
"gitHead": "0be23075901a6fd0acd8166a2bea65fbd5589789"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display