@ruby/3.3-wasm-wasi 2.6.0 → 2.6.1

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.
@@ -2199,7 +2199,12 @@ SOFTWARE.
2199
2199
  this.guest.rubyInit();
2200
2200
  this.guest.rubySysinit(c_args);
2201
2201
  this.guest.rubyOptions(c_args);
2202
- this.eval(`require "/bundle/setup"`);
2202
+ try {
2203
+ this.eval(`require "/bundle/setup"`);
2204
+ }
2205
+ catch (e) {
2206
+ console.warn("Failed to load /bundle/setup", e);
2207
+ }
2203
2208
  }
2204
2209
  /**
2205
2210
  * Set a given instance to interact JavaScript and Ruby's
@@ -2926,7 +2931,7 @@ SOFTWARE.
2926
2931
  };
2927
2932
 
2928
2933
  var name = "@ruby/3.3-wasm-wasi";
2929
- var version = "2.6.0";
2934
+ var version = "2.6.1";
2930
2935
  var description = "Ruby 3.3 built on WASI";
2931
2936
  var main = "./dist/cjs/index.js";
2932
2937
  var module = "./dist/esm/index.js";
@@ -925,7 +925,12 @@ Please replace your \`require('ruby-3.3-wasm-wasi/dist/browser.script.umd');\` w
925
925
  this.guest.rubyInit();
926
926
  this.guest.rubySysinit(c_args);
927
927
  this.guest.rubyOptions(c_args);
928
- this.eval(`require "/bundle/setup"`);
928
+ try {
929
+ this.eval(`require "/bundle/setup"`);
930
+ }
931
+ catch (e) {
932
+ console.warn("Failed to load /bundle/setup", e);
933
+ }
929
934
  }
930
935
  /**
931
936
  * Set a given instance to interact JavaScript and Ruby's
@@ -880,7 +880,12 @@
880
880
  this.guest.rubyInit();
881
881
  this.guest.rubySysinit(c_args);
882
882
  this.guest.rubyOptions(c_args);
883
- this.eval(`require "/bundle/setup"`);
883
+ try {
884
+ this.eval(`require "/bundle/setup"`);
885
+ }
886
+ catch (e) {
887
+ console.warn("Failed to load /bundle/setup", e);
888
+ }
884
889
  }
885
890
  /**
886
891
  * Set a given instance to interact JavaScript and Ruby's
package/dist/index.umd.js CHANGED
@@ -873,7 +873,12 @@ Please replace your \`require('ruby-3.3-wasm-wasi/dist/index.umd');\` with \`req
873
873
  this.guest.rubyInit();
874
874
  this.guest.rubySysinit(c_args);
875
875
  this.guest.rubyOptions(c_args);
876
- this.eval(`require "/bundle/setup"`);
876
+ try {
877
+ this.eval(`require "/bundle/setup"`);
878
+ }
879
+ catch (e) {
880
+ console.warn("Failed to load /bundle/setup", e);
881
+ }
877
882
  }
878
883
  /**
879
884
  * Set a given instance to interact JavaScript and Ruby's
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/3.3-wasm-wasi",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Ruby 3.3 built on WASI",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",