@uniformdev/assets
Advanced tools
+2
-24
@@ -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 { |
+2
-24
@@ -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 { |
+2
-24
@@ -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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
204669
-1.55%2390
-3.2%