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

@thi.ng/wasm-api

Package Overview
Dependencies
Maintainers
1
Versions
146
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.4.56 to 1.4.57

2

bridge.d.ts

@@ -115,2 +115,4 @@ /// <reference types="node" />

* ```ts
* import { WasmBridge } from "@thi.ng/wasm-api";
*
* const bridge = new WasmBridge([new CustomAPI()]);

@@ -117,0 +119,0 @@ *

@@ -190,2 +190,4 @@ var __defProp = Object.defineProperty;

* ```ts
* import { WasmBridge } from "@thi.ng/wasm-api";
*
* const bridge = new WasmBridge([new CustomAPI()]);

@@ -192,0 +194,0 @@ *

2

CHANGELOG.md
# Change Log
- **Last updated**: 2024-03-01T15:22:50Z
- **Last updated**: 2024-03-02T14:05:53Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

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

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

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

"@thi.ng/api": "^8.9.27",
"@thi.ng/arrays": "^2.8.4",
"@thi.ng/arrays": "^2.8.5",
"@thi.ng/checks": "^3.5.1",
"@thi.ng/errors": "^2.4.19",
"@thi.ng/hex": "^2.3.38",
"@thi.ng/idgen": "^2.2.30",
"@thi.ng/idgen": "^2.2.31",
"@thi.ng/logger": "^3.0.4"

@@ -119,3 +119,3 @@ },

},
"gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
"gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
}

@@ -131,7 +131,4 @@ <!-- This file is generated - DO NOT EDIT! -->

}
```
Now we can supply this custom API when creating the main WASM bridge:
```ts
// now we can supply this custom API when creating the main WASM bridge:
export const bridge = new WasmBridge([new CustomAPI()]);

@@ -227,2 +224,4 @@ ```

```ts
// (see sections further below for bridge initialization...)
try {

@@ -229,0 +228,0 @@ // allocate 256 bytes of memory for passing a string to WASM side

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