@cardano-sdk/cardano-services-client
Advanced tools
Comparing version 0.22.0 to 0.22.1
@@ -12,3 +12,5 @@ import { Asset, AssetProvider, GetAssetArgs, GetAssetsArgs } from '@cardano-sdk/core'; | ||
private mapNftMetadataVersion; | ||
private mapFileMetadataOtherProperties; | ||
private mapNftMetadataOtherProperties; | ||
private mapOtherProperties; | ||
private mapTokenMetadata; | ||
@@ -15,0 +17,0 @@ getAsset({ assetId, extraData }: GetAssetArgs): Promise<Asset.AssetInfo>; |
@@ -36,3 +36,3 @@ "use strict"; | ||
name: fileName, | ||
otherProperties: this.mapNftMetadataOtherProperties(file), | ||
otherProperties: this.mapFileMetadataOtherProperties(file), | ||
src: core_1.Asset.Uri(src) | ||
@@ -91,7 +91,13 @@ }; | ||
} | ||
mapFileMetadataOtherProperties(metadata) { | ||
return this.mapOtherProperties(metadata, ['name', 'mediaType', 'src']); | ||
} | ||
mapNftMetadataOtherProperties(metadata) { | ||
return this.mapOtherProperties(metadata, ['name', 'image', 'description', 'mediaType', 'files', 'version']); | ||
} | ||
mapOtherProperties(metadata, mainProperties) { | ||
if (!metadata) { | ||
return; | ||
} | ||
const otherProperties = Object.entries((0, omit_js_1.default)(metadata, ['name', 'image', 'description', 'mediaType', 'files', 'version'])); | ||
const otherProperties = Object.entries((0, omit_js_1.default)(metadata, mainProperties)); | ||
if (otherProperties.length === 0) | ||
@@ -98,0 +104,0 @@ return; |
@@ -12,3 +12,5 @@ import { Asset, AssetProvider, GetAssetArgs, GetAssetsArgs } from '@cardano-sdk/core'; | ||
private mapNftMetadataVersion; | ||
private mapFileMetadataOtherProperties; | ||
private mapNftMetadataOtherProperties; | ||
private mapOtherProperties; | ||
private mapTokenMetadata; | ||
@@ -15,0 +17,0 @@ getAsset({ assetId, extraData }: GetAssetArgs): Promise<Asset.AssetInfo>; |
@@ -30,3 +30,3 @@ import { Asset, Cardano } from '@cardano-sdk/core'; | ||
name: fileName, | ||
otherProperties: this.mapNftMetadataOtherProperties(file), | ||
otherProperties: this.mapFileMetadataOtherProperties(file), | ||
src: Asset.Uri(src) | ||
@@ -85,7 +85,13 @@ }; | ||
} | ||
mapFileMetadataOtherProperties(metadata) { | ||
return this.mapOtherProperties(metadata, ['name', 'mediaType', 'src']); | ||
} | ||
mapNftMetadataOtherProperties(metadata) { | ||
return this.mapOtherProperties(metadata, ['name', 'image', 'description', 'mediaType', 'files', 'version']); | ||
} | ||
mapOtherProperties(metadata, mainProperties) { | ||
if (!metadata) { | ||
return; | ||
} | ||
const otherProperties = Object.entries(omit(metadata, ['name', 'image', 'description', 'mediaType', 'files', 'version'])); | ||
const otherProperties = Object.entries(omit(metadata, mainProperties)); | ||
if (otherProperties.length === 0) | ||
@@ -92,0 +98,0 @@ return; |
{ | ||
"name": "@cardano-sdk/cardano-services-client", | ||
"version": "0.22.0", | ||
"version": "0.22.1", | ||
"description": "Cardano Services Client", | ||
@@ -41,3 +41,3 @@ "engines": { | ||
"devDependencies": { | ||
"@cardano-sdk/util-dev": "~0.23.10", | ||
"@cardano-sdk/util-dev": "~0.23.11", | ||
"@types/lodash": "^4.14.182", | ||
@@ -59,3 +59,3 @@ "@types/node-fetch": "^2.6.12", | ||
"dependencies": { | ||
"@cardano-sdk/core": "~0.41.2", | ||
"@cardano-sdk/core": "~0.41.3", | ||
"@cardano-sdk/util": "~0.15.5", | ||
@@ -78,3 +78,3 @@ "axios": "^1.7.4", | ||
], | ||
"gitHead": "786381908d2d3ec916d64c37201d43c52ebd5b26" | ||
"gitHead": "d1544fc9d1fb3997eb7c5b94a233789bb9e5cd9f" | ||
} |
{ | ||
"name": "@cardano-sdk/cardano-services-client", | ||
"version": "0.22.0", | ||
"version": "0.22.1", | ||
"description": "Cardano Services Client", | ||
@@ -41,3 +41,3 @@ "engines": { | ||
"devDependencies": { | ||
"@cardano-sdk/util-dev": "~0.23.10", | ||
"@cardano-sdk/util-dev": "~0.23.11", | ||
"@types/lodash": "^4.14.182", | ||
@@ -59,3 +59,3 @@ "@types/node-fetch": "^2.6.12", | ||
"dependencies": { | ||
"@cardano-sdk/core": "~0.41.2", | ||
"@cardano-sdk/core": "~0.41.3", | ||
"@cardano-sdk/util": "~0.15.5", | ||
@@ -78,3 +78,3 @@ "axios": "^1.7.4", | ||
], | ||
"gitHead": "786381908d2d3ec916d64c37201d43c52ebd5b26" | ||
"gitHead": "d1544fc9d1fb3997eb7c5b94a233789bb9e5cd9f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
631152
2851
Updated@cardano-sdk/core@~0.41.3