@aresdefencelabs/wasm-http-runtime 0.0.4 → 0.0.5

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/dist/abi.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { RuntimeState } from "./types";
2
2
  export declare function createAresAbiImports<Env>(state: RuntimeState<Env>): {
3
3
  env: {
4
- malloc(size: number): number;
4
+ alloc(size: number): number;
5
5
  free_mem(ptr: number, size: number): void;
6
6
  abi_log(messagePtr: number): void;
7
7
  abi_http_get_user_agent_name(): number;
package/dist/abi.js CHANGED
@@ -66,7 +66,7 @@ function getResponseByIdOrEmpty(state, responseId) {
66
66
  export function createAresAbiImports(state) {
67
67
  return {
68
68
  env: {
69
- malloc(size) {
69
+ alloc(size) {
70
70
  const instance = getInstanceOrThrow(state);
71
71
  const alloc = getAllocOrThrow(instance);
72
72
  return alloc(size) >>> 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aresdefencelabs/wasm-http-runtime",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Runtime adapter that connects C++ WebAssembly workers to the Cloudflare Workers runtime via an ABI bridge.",
5
5
  "type": "module",
6
6
  "private": false,