Socket
Socket
Sign inDemoInstall

@uniformdev/assets

Package Overview
Dependencies
Maintainers
11
Versions
302
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 19.58.0 to 19.58.1-alpha.16

22

./dist/index.js

@@ -24,3 +24,4 @@ "use strict";

AssetClient: () => AssetClient,
UncachedAssetClient: () => UncachedAssetClient
UncachedAssetClient: () => UncachedAssetClient,
convertAssetToPutAsset: () => convertAssetToPutAsset
});

@@ -68,6 +69,23 @@ module.exports = __toCommonJS(src_exports);

};
// src/utils/assetConverter.ts
function convertAssetToPutAsset(asset) {
return {
asset: {
_id: asset.asset._id,
_dataResources: asset.asset._dataResources,
_name: asset.asset._name,
type: asset.asset.type,
title: asset.asset.title,
description: asset.asset.description,
file: asset.asset.file
},
projectId: asset.projectId
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
AssetClient,
UncachedAssetClient
UncachedAssetClient,
convertAssetToPutAsset
});

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

export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient };
/**
* Converts a content asset to a put content asset body that has only the properties expected to the PUT API.
* Removes things like author, stats, etc.
*/
declare function convertAssetToPutAsset(asset: AssetGetResponseSingle): AssetUpsertRequest;
export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient, convertAssetToPutAsset };

@@ -40,5 +40,22 @@ // src/AssetClient.ts

};
// src/utils/assetConverter.ts
function convertAssetToPutAsset(asset) {
return {
asset: {
_id: asset.asset._id,
_dataResources: asset.asset._dataResources,
_name: asset.asset._name,
type: asset.asset.type,
title: asset.asset.title,
description: asset.asset.description,
file: asset.asset.file
},
projectId: asset.projectId
};
}
export {
AssetClient,
UncachedAssetClient
UncachedAssetClient,
convertAssetToPutAsset
};

@@ -24,3 +24,4 @@ "use strict";

AssetClient: () => AssetClient,
UncachedAssetClient: () => UncachedAssetClient
UncachedAssetClient: () => UncachedAssetClient,
convertAssetToPutAsset: () => convertAssetToPutAsset
});

@@ -68,6 +69,23 @@ module.exports = __toCommonJS(src_exports);

};
// src/utils/assetConverter.ts
function convertAssetToPutAsset(asset) {
return {
asset: {
_id: asset.asset._id,
_dataResources: asset.asset._dataResources,
_name: asset.asset._name,
type: asset.asset.type,
title: asset.asset.title,
description: asset.asset.description,
file: asset.asset.file
},
projectId: asset.projectId
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
AssetClient,
UncachedAssetClient
UncachedAssetClient,
convertAssetToPutAsset
});

6

package.json
{
"name": "@uniformdev/assets",
"version": "19.58.0",
"version": "19.58.1-alpha.16+5b13596bc",
"description": "Uniform Assets",

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

"dependencies": {
"@uniformdev/context": "19.58.0"
"@uniformdev/context": "19.58.1-alpha.16+5b13596bc"
},
"gitHead": "1e355c1405dc744f333cbce45766965c160c535c"
"gitHead": "5b13596bc07ad3b8d3809122c9843d17e4a6f413"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc