Socket
Socket
Sign inDemoInstall

@ocap/util

Package Overview
Dependencies
Maintainers
3
Versions
447
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ocap/util - npm Package Compare versions

Comparing version 1.7.10 to 1.8.0

9

lib/transaction.js

@@ -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"
}
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