New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@helios-lang/contract-utils

Package Overview
Dependencies
Maintainers
0
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/contract-utils - npm Package Compare versions

Comparing version 0.2.19 to 0.2.20

2

package.json
{
"name": "@helios-lang/contract-utils",
"version": "0.2.19",
"version": "0.2.20",
"description": "Convenience and type-safety utilities for using Helios validators from within Typescript",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -264,12 +264,22 @@ import { bytesToHex } from "@helios-lang/codec-utils"

/**
* Also returns the hash types of any hash-dependencies
* @private
* @param {LoadedValidator[]} validators
* @returns {{[name: string]: any}}
* @returns {Record<string, any>}
*/
getHashTypes(validators) {
return Object.fromEntries(
validators.map((v) => {
return [v.$name, this.lib.getScriptHashType(v.$purpose)]
/**
* @type {Record<string, any>}
*/
const res = {}
validators.forEach((v) => {
res[v.$name] = this.lib.getScriptHashType(v.$purpose)
v.$hashDependencies.forEach((d) => {
res[d.$name] = this.lib.getScriptHashType(d.$purpose)
})
)
})
return res
}

@@ -276,0 +286,0 @@ }

@@ -77,5 +77,6 @@ /**

/**
* Also returns the hash types of any hash-dependencies
* @private
* @param {LoadedValidator[]} validators
* @returns {{[name: string]: any}}
* @returns {Record<string, any>}
*/

@@ -82,0 +83,0 @@ private getHashTypes;

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