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
0
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 2.2.0 to 2.2.1

9

CHANGELOG.md
# Change Log
- **Last updated**: 2024-11-10T17:11:51Z
- **Last updated**: 2024-11-10T18:20:49Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,9 @@

### [2.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@2.2.1) (2024-11-10)
#### 🩹 Bug fixes
- fix defType() property handling ([37bebee](https://github.com/thi-ng/umbrella/commit/37bebee))
- inject `__base` and `__bytes` getters using `Object.defineProperties()`
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@2.2.0) (2024-11-10)

@@ -14,0 +21,0 @@

21

deftype.js

@@ -12,11 +12,14 @@ import { __instanceArray } from "./memory.js";

},
instance: (base) => ({
get __base() {
return base;
},
get __bytes() {
return mem.u8.subarray(base, base + size);
},
...instance(mem, base)
})
instance: (base) => {
const inst = instance(mem, base);
Object.defineProperties(inst, {
__base: { value: base },
__bytes: {
get() {
return mem.u8.subarray(base, base + size);
}
}
});
return inst;
}
});

@@ -23,0 +26,0 @@ export {

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

@@ -127,3 +127,3 @@ "type": "module",

},
"gitHead": "ef89090bb19fc5bca23be5da8cfce05b82ff4ad1\n"
"gitHead": "49023d7517c20e18bc0612051059f9f971372b4c\n"
}
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