@ruby/wasm-wasi 2.6.2-2024-08-20-a → 2.6.2-2024-08-22-a

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.
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.throw_invalid_bool = exports.Slab = exports.UTF8_ENCODED_LEN = exports.utf8_encode = exports.UTF8_DECODER = exports.to_uint32 = exports.data_view = void 0;
3
+ exports.Slab = exports.UTF8_ENCODED_LEN = exports.UTF8_DECODER = void 0;
4
+ exports.data_view = data_view;
5
+ exports.to_uint32 = to_uint32;
6
+ exports.utf8_encode = utf8_encode;
7
+ exports.throw_invalid_bool = throw_invalid_bool;
4
8
  let DATA_VIEW = new DataView(new ArrayBuffer());
5
9
  function data_view(mem) {
6
10
  if (DATA_VIEW.buffer !== mem.buffer)
7
11
  DATA_VIEW = new DataView(mem.buffer);
8
12
  return DATA_VIEW;
9
13
  }
10
- exports.data_view = data_view;
11
14
  function to_uint32(val) {
12
15
  return val >>> 0;
13
16
  }
14
- exports.to_uint32 = to_uint32;
15
17
  exports.UTF8_DECODER = new TextDecoder('utf-8');
16
18
  const UTF8_ENCODER = new TextEncoder('utf-8');
17
19
  function utf8_encode(s, realloc, memory) {
@@ -36,7 +38,6 @@ function utf8_encode(s, realloc, memory) {
36
38
  exports.UTF8_ENCODED_LEN = writtenTotal;
37
39
  return ptr;
38
40
  }
39
- exports.utf8_encode = utf8_encode;
40
41
  exports.UTF8_ENCODED_LEN = 0;
41
42
  class Slab {
42
43
  constructor() {
@@ -78,4 +79,3 @@ exports.Slab = Slab;
78
79
  function throw_invalid_bool() {
79
80
  throw new RangeError("invalid variant discriminant for bool");
80
81
  }
81
- exports.throw_invalid_bool = throw_invalid_bool;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addRbJsAbiHostToImports = void 0;
3
+ exports.addRbJsAbiHostToImports = addRbJsAbiHostToImports;
4
4
  const intrinsics_js_1 = require("./intrinsics.js");
5
5
  function addRbJsAbiHostToImports(imports, obj, get_export) {
6
6
  if (!("rb-js-abi-host" in imports))
@@ -280,4 +280,3 @@ function addRbJsAbiHostToImports(imports, obj, get_export) {
280
280
  obj.dropJsAbiValue(val);
281
281
  };
282
282
  }
283
- exports.addRbJsAbiHostToImports = addRbJsAbiHostToImports;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.consolePrinter = void 0;
3
+ exports.consolePrinter = consolePrinter;
4
4
  /**
5
5
  * Create a console printer that can be used as an overlay of WASI imports.
6
6
  * See the example below for how to use it.
@@ -103,4 +103,3 @@ function consolePrinter({ stdout, stderr, } = {
103
103
  },
104
104
  };
105
105
  }
106
- exports.consolePrinter = consolePrinter;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { WASI } from "wasi";
3
2
  import { RubyVM } from "./vm.js";
4
3
  export declare const DefaultRubyVM: (rubyModule: WebAssembly.Module, options?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { WASI } from "wasi";
3
2
  import { RubyVM } from "./vm.js";
4
3
  export declare const DefaultRubyVM: (rubyModule: WebAssembly.Module, options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruby/wasm-wasi",
3
- "version": "2.6.2-2024-08-20-a",
3
+ "version": "2.6.2-2024-08-22-a",
4
4
  "description": "WebAssembly port of CRuby with WASI",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",