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

as-chain

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-chain - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

6

assembly/idxdb.ts
import { U128, U256 } from "./bignum";
import { Float128 } from "./float128";
import { check } from "./system";

@@ -79,2 +80,3 @@ export class SecondaryIterator {

export function getSecondaryValue_u64(value: SecondaryValue): u64 {
check(value.type == SecondaryType.U64, "secondary must be a u64 value");
return value.value[0];

@@ -84,2 +86,3 @@ }

export function getSecondaryValue_U128(value: SecondaryValue): U128 {
check(value.type == SecondaryType.U128, "secondary must be a U128 value");
return new U128(value.value[0], value.value[1]);

@@ -89,2 +92,3 @@ }

export function getSecondaryValue_U256(value: SecondaryValue): U256 {
check(value.type == SecondaryType.U256, "secondary must be a U256 value");
return new U256(value.value[0], value.value[1], value.value[2], value.value[3]);

@@ -94,2 +98,3 @@ }

export function getSecondaryValue_f64(value: SecondaryValue): f64 {
check(value.type == SecondaryType.F64, "secondary must be a f64 value");
return load<f64>(value.value.dataStart);

@@ -99,2 +104,3 @@ }

export function getSecondaryValue_Float128(value: SecondaryValue): Float128 {
check(value.type == SecondaryType.F128, "secondary must be a Float128 value");
return new Float128(value.value[0], value.value[1])

@@ -101,0 +107,0 @@ }

2

package.json
{
"name": "as-chain",
"version": "0.0.10",
"version": "0.0.11",
"description": "chain module for assemblyscript",

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

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