Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/wasm-api

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/wasm-api - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

zig/zig-cache/tmp/3411e025a5f335c7/build

9

bridge.js

@@ -8,4 +8,3 @@ var __defProp = Object.defineProperty;

result = (kind ? decorator(target, key, result) : decorator(result)) || result;
if (kind && result)
__defProp(target, key, result);
if (kind && result) __defProp(target, key, result);
return result;

@@ -142,4 +141,3 @@ };

const status = await this.modules[id].init(this);
if (!status)
return false;
if (!status) return false;
}

@@ -160,4 +158,3 @@ this.notify({ id: EVENT_MEMORY_CHANGED, value: this.exports.memory });

const buf = this.exports.memory.buffer;
if (this.u8 && this.u8.buffer === buf)
return;
if (this.u8 && this.u8.buffer === buf) return;
this.i8 = new Int8Array(buf);

@@ -164,0 +161,0 @@ this.u8 = new Uint8Array(buf);

# Change Log
- **Last updated**: 2024-04-25T19:44:55Z
- **Last updated**: 2024-05-08T18:24:32Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -5,0 +5,0 @@

@@ -73,4 +73,3 @@ import { assert } from "@thi.ng/errors/assert";

for (let id of this.idgen) {
if (pred(this.items[id]))
return id;
if (pred(this.items[id])) return id;
}

@@ -77,0 +76,0 @@ assert(!ensure, `given predicate matched no ${this.name}`);

{
"name": "@thi.ng/wasm-api",
"version": "1.5.3",
"version": "1.5.4",
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",

@@ -40,15 +40,15 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.11.1",
"@thi.ng/arrays": "^2.9.5",
"@thi.ng/checks": "^3.6.3",
"@thi.ng/errors": "^2.5.6",
"@thi.ng/hex": "^2.3.45",
"@thi.ng/idgen": "^2.2.40",
"@thi.ng/logger": "^3.0.11"
"@thi.ng/api": "^8.11.2",
"@thi.ng/arrays": "^2.9.6",
"@thi.ng/checks": "^3.6.4",
"@thi.ng/errors": "^2.5.7",
"@thi.ng/hex": "^2.3.46",
"@thi.ng/idgen": "^2.2.41",
"@thi.ng/logger": "^3.0.12"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.43.0",
"esbuild": "^0.20.2",
"typedoc": "^0.25.12",
"typescript": "^5.4.3"
"@microsoft/api-extractor": "^7.43.2",
"esbuild": "^0.21.1",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
},

@@ -119,3 +119,3 @@ "keywords": [

},
"gitHead": "aed3421c21044c005fbcb7cc37965ccf85a870d2\n"
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
}

@@ -53,4 +53,3 @@ import { isNumber } from "@thi.ng/checks/is-number";

if (typeof str === "string") {
if (this.isConst)
unsupported("can't mutate const string");
if (this.isConst) unsupported("can't mutate const string");
this.mem.u32[this.base + 4 >>> 2] = this.mem.setString(

@@ -162,4 +161,3 @@ str,

if (typeof str === "string") {
if (this.isConst)
unsupported("can't mutate const string");
if (this.isConst) unsupported("can't mutate const string");
this.mem.ensureMemory();

@@ -166,0 +164,0 @@ this.mem.setString(str, addr, this.mem.u8.byteLength - addr, true);

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