@tgrv/void-math 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -5,8 +5,8 @@ import { dirname, join } from "path";
5
5
  const __filename = fileURLToPath(import.meta.url);
6
6
  const __dirname = dirname(__filename);
7
7
 
8
- const plugin = await runtime.load(
9
- join(__dirname, "plugin.wasm")
8
+ const math = await runtime.load(
9
+ join(__dirname, "math.wasm")
10
10
  );
11
11
 
12
- export default plugin;
12
+ export default math;
Binary file
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tgrv/void-math",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
- "main": "index.js",
6
5
  "types": "types.d.ts",
6
+ "main": "index.js",
7
7
  "dependencies": {
8
8
  "@tgrv/void-runtime": "^1.0.0"
9
9
  },
package/types.d.ts CHANGED
@@ -4,6 +4,9 @@ declare module '@tgrv/void-math' {
4
4
  format_message(args: { template: string; value: number }): string;
5
5
  count_primes(args: { limit: number }): number;
6
6
  nbody(args: { n: number; steps: number }): number;
7
+ get_memory_stats(args?: {}): { allocated_objects: number; total_bytes_pinned: number };
8
+ test_mem_pin(args: { data: string }): { ptr: number; size: number };
9
+ test_mem_unpin(args: { ptr: number }): string;
7
10
  }
8
11
  const math: MathPlugin;
9
12
  export default math;