@ruby/head-wasm-wasi 2.7.1 → 2.7.2
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.
|
@@ -2053,7 +2053,13 @@ SOFTWARE.
|
|
|
2053
2053
|
vm.addToImports(imports);
|
|
2054
2054
|
(_a = options.addToImports) === null || _a === void 0 ? void 0 : _a.call(options, imports);
|
|
2055
2055
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
2056
|
-
|
|
2056
|
+
try {
|
|
2057
|
+
await vm.setInstance(instance);
|
|
2058
|
+
}
|
|
2059
|
+
catch (e) {
|
|
2060
|
+
console.error("Failed to instantiate Ruby VM. Please make sure that you have added `gem \"js\"` to your Gemfile.");
|
|
2061
|
+
throw e;
|
|
2062
|
+
}
|
|
2057
2063
|
(_b = options.setMemory) === null || _b === void 0 ? void 0 : _b.call(options, instance.exports.memory);
|
|
2058
2064
|
wasip1.initialize(instance);
|
|
2059
2065
|
vm.initialize(options.args);
|
|
@@ -2959,7 +2965,7 @@ SOFTWARE.
|
|
|
2959
2965
|
};
|
|
2960
2966
|
|
|
2961
2967
|
var name = "@ruby/head-wasm-wasi";
|
|
2962
|
-
var version = "2.7.
|
|
2968
|
+
var version = "2.7.2";
|
|
2963
2969
|
var description = "Ruby head built on WASI";
|
|
2964
2970
|
var main = "./dist/cjs/index.js";
|
|
2965
2971
|
var module = "./dist/esm/index.js";
|
|
@@ -2976,11 +2982,11 @@ SOFTWARE.
|
|
|
2976
2982
|
"import": "./dist/esm/*.js",
|
|
2977
2983
|
require: "./dist/cjs/*.js"
|
|
2978
2984
|
},
|
|
2979
|
-
"
|
|
2980
|
-
browser: "
|
|
2981
|
-
umd: "
|
|
2982
|
-
"import": "
|
|
2983
|
-
require: "
|
|
2985
|
+
"./dist/*.wasm": {
|
|
2986
|
+
browser: "./dist/*.wasm",
|
|
2987
|
+
umd: "./dist/*.wasm",
|
|
2988
|
+
"import": "./dist/*.wasm",
|
|
2989
|
+
require: "./dist/*.wasm"
|
|
2984
2990
|
}
|
|
2985
2991
|
};
|
|
2986
2992
|
var files = [
|
|
@@ -776,7 +776,13 @@ Please replace your \`require('ruby-head-wasm-wasi/dist/browser.script.umd');\`
|
|
|
776
776
|
vm.addToImports(imports);
|
|
777
777
|
(_a = options.addToImports) === null || _a === void 0 ? void 0 : _a.call(options, imports);
|
|
778
778
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
779
|
-
|
|
779
|
+
try {
|
|
780
|
+
await vm.setInstance(instance);
|
|
781
|
+
}
|
|
782
|
+
catch (e) {
|
|
783
|
+
console.error("Failed to instantiate Ruby VM. Please make sure that you have added `gem \"js\"` to your Gemfile.");
|
|
784
|
+
throw e;
|
|
785
|
+
}
|
|
780
786
|
(_b = options.setMemory) === null || _b === void 0 ? void 0 : _b.call(options, instance.exports.memory);
|
|
781
787
|
wasip1.initialize(instance);
|
|
782
788
|
vm.initialize(options.args);
|
package/dist/browser.umd.js
CHANGED
|
@@ -731,7 +731,13 @@
|
|
|
731
731
|
vm.addToImports(imports);
|
|
732
732
|
(_a = options.addToImports) === null || _a === void 0 ? void 0 : _a.call(options, imports);
|
|
733
733
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
734
|
-
|
|
734
|
+
try {
|
|
735
|
+
await vm.setInstance(instance);
|
|
736
|
+
}
|
|
737
|
+
catch (e) {
|
|
738
|
+
console.error("Failed to instantiate Ruby VM. Please make sure that you have added `gem \"js\"` to your Gemfile.");
|
|
739
|
+
throw e;
|
|
740
|
+
}
|
|
735
741
|
(_b = options.setMemory) === null || _b === void 0 ? void 0 : _b.call(options, instance.exports.memory);
|
|
736
742
|
wasip1.initialize(instance);
|
|
737
743
|
vm.initialize(options.args);
|
package/dist/index.umd.js
CHANGED
|
@@ -724,7 +724,13 @@ Please replace your \`require('ruby-head-wasm-wasi/dist/index.umd');\` with \`re
|
|
|
724
724
|
vm.addToImports(imports);
|
|
725
725
|
(_a = options.addToImports) === null || _a === void 0 ? void 0 : _a.call(options, imports);
|
|
726
726
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
727
|
-
|
|
727
|
+
try {
|
|
728
|
+
await vm.setInstance(instance);
|
|
729
|
+
}
|
|
730
|
+
catch (e) {
|
|
731
|
+
console.error("Failed to instantiate Ruby VM. Please make sure that you have added `gem \"js\"` to your Gemfile.");
|
|
732
|
+
throw e;
|
|
733
|
+
}
|
|
728
734
|
(_b = options.setMemory) === null || _b === void 0 ? void 0 : _b.call(options, instance.exports.memory);
|
|
729
735
|
wasip1.initialize(instance);
|
|
730
736
|
vm.initialize(options.args);
|
package/dist/ruby+stdlib.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/ruby.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruby/head-wasm-wasi",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "Ruby head built on WASI",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"import": "./dist/esm/*.js",
|
|
18
18
|
"require": "./dist/cjs/*.js"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
21
|
-
"browser": "
|
|
22
|
-
"umd": "
|
|
23
|
-
"import": "
|
|
24
|
-
"require": "
|
|
20
|
+
"./dist/*.wasm": {
|
|
21
|
+
"browser": "./dist/*.wasm",
|
|
22
|
+
"umd": "./dist/*.wasm",
|
|
23
|
+
"import": "./dist/*.wasm",
|
|
24
|
+
"require": "./dist/*.wasm"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"files": [
|