@ocap/util
Advanced tools
Comparing version 1.7.10 to 1.8.0
@@ -14,4 +14,5 @@ const uniq = require('lodash/uniq'); | ||
copy.assets.push(...(copy.tx.itxJson.sender.assets || []), ...(copy.tx.itxJson.receiver.assets || [])); | ||
} else if (['create_asset', 'update_asset', 'acquire_asset_v2', 'acquire_asset', 'mint_asset'].includes(copy.type)) { | ||
} else if (['create_asset', 'update_asset', 'acquire_asset_v2', 'mint_asset'].includes(copy.type)) { | ||
copy.assets.push(copy.tx.itxJson.address); | ||
copy.assets.push(copy.tx.itxJson.factory); | ||
} | ||
@@ -42,5 +43,5 @@ | ||
copy.assets = uniq(copy.assets); | ||
copy.factories = uniq(copy.factories); | ||
copy.tokens = uniq(copy.tokens); | ||
copy.assets = uniq(copy.assets).filter(Boolean); | ||
copy.factories = uniq(copy.factories).filter(Boolean); | ||
copy.tokens = uniq(copy.tokens).filter(Boolean); | ||
copy.accounts = uniq(copy.accounts.concat([copy.sender, copy.recipient])).filter(Boolean); | ||
@@ -47,0 +48,0 @@ |
{ | ||
"name": "@ocap/util", | ||
"version": "1.7.10", | ||
"version": "1.8.0", | ||
"description": "utils shared across multiple forge js libs, works in both node.js and browser", | ||
@@ -59,3 +59,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "c43adce1670d3d562cf6f25cf4e61f3f8f83f1ae" | ||
"gitHead": "a650df642c40a3d5659fae30c69f19cd812959ca" | ||
} |
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
28293
911