@uniformdev/assets 19.58.1-alpha.16 → 19.58.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -865,10 +865,4 @@ declare class UncachedAssetClient extends AssetClient {
865
865
  }, 'bypassCache'>);
866
866
  }
867
867
 
868
- /**
869
- * Converts a content asset to a put content asset body that has only the properties expected to the PUT API.
870
- * Removes things like author, stats, etc.
871
- */
872
- declare function convertAssetToPutAsset(asset: AssetGetResponseSingle): AssetUpsertRequest;
873
-
874
- export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient, convertAssetToPutAsset };
868
+ export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient };
package/dist/index.d.ts CHANGED
@@ -865,10 +865,4 @@ declare class UncachedAssetClient extends AssetClient {
865
865
  }, 'bypassCache'>);
866
866
  }
867
867
 
868
- /**
869
- * Converts a content asset to a put content asset body that has only the properties expected to the PUT API.
870
- * Removes things like author, stats, etc.
871
- */
872
- declare function convertAssetToPutAsset(asset: AssetGetResponseSingle): AssetUpsertRequest;
873
-
874
- export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient, convertAssetToPutAsset };
868
+ export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient };
package/dist/index.esm.js CHANGED
@@ -37,24 +37,7 @@ var UncachedAssetClient = class extends AssetClient {
37
37
  super({ ...options, bypassCache: true });
38
38
  }
39
39
  };
40
-
41
- // src/utils/assetConverter.ts
42
- function convertAssetToPutAsset(asset) {
43
- return {
44
- asset: {
45
- _id: asset.asset._id,
46
- _dataResources: asset.asset._dataResources,
47
- _name: asset.asset._name,
48
- type: asset.asset.type,
49
- title: asset.asset.title,
50
- description: asset.asset.description,
51
- file: asset.asset.file
52
- },
53
- projectId: asset.projectId
54
- };
55
- }
56
40
  export {
57
41
  AssetClient,
58
- UncachedAssetClient,
59
- convertAssetToPutAsset
42
+ UncachedAssetClient
60
43
  };
package/dist/index.js CHANGED
@@ -21,8 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
23
  AssetClient: () => AssetClient,
24
- UncachedAssetClient: () => UncachedAssetClient,
25
- convertAssetToPutAsset: () => convertAssetToPutAsset
24
+ UncachedAssetClient: () => UncachedAssetClient
26
25
  });
27
26
  module.exports = __toCommonJS(src_exports);
28
27
 
@@ -65,25 +64,8 @@ var UncachedAssetClient = class extends AssetClient {
65
64
  super({ ...options, bypassCache: true });
66
65
  }
67
66
  };
68
-
69
- // src/utils/assetConverter.ts
70
- function convertAssetToPutAsset(asset) {
71
- return {
72
- asset: {
73
- _id: asset.asset._id,
74
- _dataResources: asset.asset._dataResources,
75
- _name: asset.asset._name,
76
- type: asset.asset.type,
77
- title: asset.asset.title,
78
- description: asset.asset.description,
79
- file: asset.asset.file
80
- },
81
- projectId: asset.projectId
82
- };
83
- }
84
67
  // Annotate the CommonJS export names for ESM import in node:
85
68
  0 && (module.exports = {
86
69
  AssetClient,
87
- UncachedAssetClient,
88
- convertAssetToPutAsset
70
+ UncachedAssetClient
89
71
  });
package/dist/index.mjs CHANGED
@@ -37,24 +37,7 @@ var UncachedAssetClient = class extends AssetClient {
37
37
  super({ ...options, bypassCache: true });
38
38
  }
39
39
  };
40
-
41
- // src/utils/assetConverter.ts
42
- function convertAssetToPutAsset(asset) {
43
- return {
44
- asset: {
45
- _id: asset.asset._id,
46
- _dataResources: asset.asset._dataResources,
47
- _name: asset.asset._name,
48
- type: asset.asset.type,
49
- title: asset.asset.title,
50
- description: asset.asset.description,
51
- file: asset.asset.file
52
- },
53
- projectId: asset.projectId
54
- };
55
- }
56
40
  export {
57
41
  AssetClient,
58
- UncachedAssetClient,
59
- convertAssetToPutAsset
42
+ UncachedAssetClient
60
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/assets",
3
- "version": "19.58.1-alpha.16+5b13596bc",
3
+ "version": "19.58.2-alpha.0+68d890cf9",
4
4
  "description": "Uniform Assets",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/context": "19.58.1-alpha.16+5b13596bc"
39
+ "@uniformdev/context": "19.58.2-alpha.0+68d890cf9"
40
40
  },
41
- "gitHead": "5b13596bc07ad3b8d3809122c9843d17e4a6f413"
41
+ "gitHead": "68d890cf94dc44136dd88bcc2d703248bae10bea"
42
42
  }