Huge News!Announcing our $40M Series B led by Abstract Ventures.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.8 to 0.0.9

10

assembly/float128.ts

@@ -29,2 +29,12 @@ import { Packer, Encoder } from "./serializer"

}
@inline @operator('==')
static eq(a: Float128, b: Float128): bool {
return a.data[0] == b.data[0] && a.data[1] == b.data[1];
}
@inline @operator('!=')
static ne(a: Float128, b: Float128): bool {
return !(a.data[0] == b.data[0] && a.data[1] == b.data[1]);
}
}

@@ -39,2 +39,12 @@ import { IDXDB, SecondaryValue, SecondaryIterator } from "./idxdb";

upsert(value: T, payer: Name): PrimaryIterator {
let it = this.find(value.getPrimaryValue());
if (it.isOk()) {
this.update(it, value, payer);
} else {
it = this.store(value, payer);
}
return it
}
store(value: T, payer: Name): PrimaryIterator {

@@ -41,0 +51,0 @@ const it = this.db.store(value.getPrimaryValue(), value.pack(), payer.N);

2

package.json
{
"name": "as-chain",
"version": "0.0.8",
"version": "0.0.9",
"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