@thi.ng/wasm-api
Advanced tools
Comparing version 2.2.0 to 2.2.1
# 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 @@ |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165912
1713