@thi.ng/wasm-api
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -5,4 +5,4 @@ import type { Fn, IDeref, ILength } from "@thi.ng/api"; | ||
export declare const EVENT_PANIC = "panic"; | ||
export declare type BigIntArray = bigint[] | BigInt64Array | BigUint64Array; | ||
export declare type ReadonlyWasmString = IDeref<string> & ILength & { | ||
export type BigIntArray = bigint[] | BigInt64Array | BigUint64Array; | ||
export type ReadonlyWasmString = IDeref<string> & ILength & { | ||
readonly addr: number; | ||
@@ -25,3 +25,3 @@ }; | ||
} | ||
export declare type WasmTypeConstructor<T> = Fn<IWasmMemoryAccess, WasmType<T>>; | ||
export type WasmTypeConstructor<T> = Fn<IWasmMemoryAccess, WasmType<T>>; | ||
/** | ||
@@ -116,3 +116,3 @@ * Common interface for WASM/JS child APIs which will be used in combination | ||
} | ||
export declare type MemorySlice = [addr: number, len: number]; | ||
export type MemorySlice = [addr: number, len: number]; | ||
export interface IWasmMemoryAccess { | ||
@@ -119,0 +119,0 @@ i8: Int8Array; |
# Change Log | ||
- **Last updated**: 2022-12-06T17:16:38Z | ||
- **Last updated**: 2022-12-16T12:52:25Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@thi.ng/wasm-api", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects", | ||
@@ -13,3 +13,3 @@ "type": "module", | ||
}, | ||
"homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/wasm-api#readme", | ||
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/wasm-api#readme", | ||
"funding": [ | ||
@@ -25,3 +25,3 @@ { | ||
], | ||
"author": "Karsten Schmidt <k+npm@thi.ng>", | ||
"author": "Karsten Schmidt (https://thi.ng)", | ||
"license": "Apache-2.0", | ||
@@ -40,17 +40,17 @@ "scripts": { | ||
"dependencies": { | ||
"@thi.ng/api": "^8.5.1", | ||
"@thi.ng/arrays": "^2.4.4", | ||
"@thi.ng/checks": "^3.3.4", | ||
"@thi.ng/errors": "^2.2.5", | ||
"@thi.ng/hex": "^2.3.1", | ||
"@thi.ng/idgen": "^2.1.20", | ||
"@thi.ng/logger": "^1.4.4" | ||
"@thi.ng/api": "^8.6.0", | ||
"@thi.ng/arrays": "^2.4.5", | ||
"@thi.ng/checks": "^3.3.5", | ||
"@thi.ng/errors": "^2.2.6", | ||
"@thi.ng/hex": "^2.3.2", | ||
"@thi.ng/idgen": "^2.1.21", | ||
"@thi.ng/logger": "^1.4.5" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.33.5", | ||
"@thi.ng/testament": "^0.3.6", | ||
"@microsoft/api-extractor": "^7.33.7", | ||
"@thi.ng/testament": "^0.3.7", | ||
"rimraf": "^3.0.2", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.23.20", | ||
"typescript": "^4.8.4" | ||
"typedoc": "^0.23.22", | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -121,3 +121,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "54c5f22520162bac0d58426a3f86ca636e797f71\n" | ||
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n" | ||
} |
<!-- This file is generated - DO NOT EDIT! --> | ||
# ![wasm-api](https://media.thi.ng/umbrella/banners-20220914/thing-wasm-api.svg?be328da7) | ||
# ![@thi.ng/wasm-api](https://media.thi.ng/umbrella/banners-20220914/thing-wasm-api.svg?be328da7) | ||
[![npm version](https://img.shields.io/npm/v/@thi.ng/wasm-api.svg)](https://www.npmjs.com/package/@thi.ng/wasm-api) | ||
![npm downloads](https://img.shields.io/npm/dm/@thi.ng/wasm-api.svg) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) | ||
[![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi) | ||
@@ -34,3 +34,3 @@ This project is part of the | ||
Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects. | ||
Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects | ||
@@ -317,4 +317,4 @@ This package provides the following: | ||
pub fn build(b: *std.build.Builder) void { | ||
// obtain a standard std.build.LibExeObjStep, pre-configured w/ given options | ||
// see source comments in imported build.zig for further details... | ||
// obtain a standard std.build.LibExeObjStep, pre-configured w/ given options | ||
// see source comments in imported build.zig for further details... | ||
var lib = @import("node_modules/@thi.ng/wasm-api/zig/build.zig").wasmLib(b, .{ | ||
@@ -329,10 +329,10 @@ // Declare extra WASM API packages to use | ||
// (optional) build mode override | ||
// if commented out, we can pass CLI args to choose build mode (default: .Debug) | ||
// if commented out, we can pass CLI args to choose build mode (default: .Debug) | ||
.mode = .ReleaseSmall, | ||
}); | ||
// optionally, add further custom configuration | ||
// ... | ||
// optionally, add further custom configuration | ||
// ... | ||
// finally trigger build | ||
lib.install(); | ||
// finally trigger build | ||
lib.install(); | ||
} | ||
@@ -380,7 +380,4 @@ ``` | ||
```text | ||
# with flag only for < v16 | ||
node --experimental-repl-await | ||
> const wasmApi = await import("@thi.ng/wasm-api"); | ||
```js | ||
const wasmApi = await import("@thi.ng/wasm-api"); | ||
``` | ||
@@ -528,3 +525,3 @@ | ||
Karsten Schmidt | ||
- [Karsten Schmidt](https://thi.ng) | ||
@@ -544,2 +541,2 @@ If this project contributes to an academic publication, please cite it as: | ||
© 2022 Karsten Schmidt // Apache Software License 2.0 | ||
© 2022 Karsten Schmidt // Apache License 2.0 |
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
131961
537
Updated@thi.ng/api@^8.6.0
Updated@thi.ng/arrays@^2.4.5
Updated@thi.ng/checks@^3.3.5
Updated@thi.ng/errors@^2.2.6
Updated@thi.ng/hex@^2.3.2
Updated@thi.ng/idgen@^2.1.21
Updated@thi.ng/logger@^1.4.5