@ruby/wasm-wasi 2.0.0-2023-07-23-a → 2.0.0-2023-07-24-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.
@@ -3310,26 +3310,21 @@ const runRubyScriptsInHtml = async (vm) => {
3310
3310
  const promisingRubyScripts = Array.from(tags).map((tag) => loadScriptAsync(tag));
3311
3311
  try {
3312
3312
  // Run Ruby scripts sequentially.
3313
- for (var _d = true, promisingRubyScripts_1 = __asyncValues(promisingRubyScripts), promisingRubyScripts_1_1; promisingRubyScripts_1_1 = await promisingRubyScripts_1.next(), _a = promisingRubyScripts_1_1.done, !_a;) {
3313
+ for (var _d = true, promisingRubyScripts_1 = __asyncValues(promisingRubyScripts), promisingRubyScripts_1_1; promisingRubyScripts_1_1 = await promisingRubyScripts_1.next(), _a = promisingRubyScripts_1_1.done, !_a; _d = true) {
3314
3314
  _c = promisingRubyScripts_1_1.value;
3315
3315
  _d = false;
3316
- try {
3317
- const script = _c;
3318
- if (script) {
3319
- const { scriptContent, evalStyle } = script;
3320
- switch (evalStyle) {
3321
- case "async":
3322
- vm.evalAsync(scriptContent);
3323
- break;
3324
- case "sync":
3325
- vm.eval(scriptContent);
3326
- break;
3327
- }
3316
+ const script = _c;
3317
+ if (script) {
3318
+ const { scriptContent, evalStyle } = script;
3319
+ switch (evalStyle) {
3320
+ case "async":
3321
+ vm.evalAsync(scriptContent);
3322
+ break;
3323
+ case "sync":
3324
+ vm.eval(scriptContent);
3325
+ break;
3328
3326
  }
3329
3327
  }
3330
- finally {
3331
- _d = true;
3332
- }
3333
3328
  }
3334
3329
  }
3335
3330
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -3308,26 +3308,21 @@ const runRubyScriptsInHtml = async (vm) => {
3308
3308
  const promisingRubyScripts = Array.from(tags).map((tag) => loadScriptAsync(tag));
3309
3309
  try {
3310
3310
  // Run Ruby scripts sequentially.
3311
- for (var _d = true, promisingRubyScripts_1 = __asyncValues(promisingRubyScripts), promisingRubyScripts_1_1; promisingRubyScripts_1_1 = await promisingRubyScripts_1.next(), _a = promisingRubyScripts_1_1.done, !_a;) {
3311
+ for (var _d = true, promisingRubyScripts_1 = __asyncValues(promisingRubyScripts), promisingRubyScripts_1_1; promisingRubyScripts_1_1 = await promisingRubyScripts_1.next(), _a = promisingRubyScripts_1_1.done, !_a; _d = true) {
3312
3312
  _c = promisingRubyScripts_1_1.value;
3313
3313
  _d = false;
3314
- try {
3315
- const script = _c;
3316
- if (script) {
3317
- const { scriptContent, evalStyle } = script;
3318
- switch (evalStyle) {
3319
- case "async":
3320
- vm.evalAsync(scriptContent);
3321
- break;
3322
- case "sync":
3323
- vm.eval(scriptContent);
3324
- break;
3325
- }
3314
+ const script = _c;
3315
+ if (script) {
3316
+ const { scriptContent, evalStyle } = script;
3317
+ switch (evalStyle) {
3318
+ case "async":
3319
+ vm.evalAsync(scriptContent);
3320
+ break;
3321
+ case "sync":
3322
+ vm.eval(scriptContent);
3323
+ break;
3326
3324
  }
3327
3325
  }
3328
- finally {
3329
- _d = true;
3330
- }
3331
3326
  }
3332
3327
  }
3333
3328
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -3314,26 +3314,21 @@
3314
3314
  const promisingRubyScripts = Array.from(tags).map((tag) => loadScriptAsync(tag));
3315
3315
  try {
3316
3316
  // Run Ruby scripts sequentially.
3317
- for (var _d = true, promisingRubyScripts_1 = __asyncValues(promisingRubyScripts), promisingRubyScripts_1_1; promisingRubyScripts_1_1 = await promisingRubyScripts_1.next(), _a = promisingRubyScripts_1_1.done, !_a;) {
3317
+ for (var _d = true, promisingRubyScripts_1 = __asyncValues(promisingRubyScripts), promisingRubyScripts_1_1; promisingRubyScripts_1_1 = await promisingRubyScripts_1.next(), _a = promisingRubyScripts_1_1.done, !_a; _d = true) {
3318
3318
  _c = promisingRubyScripts_1_1.value;
3319
3319
  _d = false;
3320
- try {
3321
- const script = _c;
3322
- if (script) {
3323
- const { scriptContent, evalStyle } = script;
3324
- switch (evalStyle) {
3325
- case "async":
3326
- vm.evalAsync(scriptContent);
3327
- break;
3328
- case "sync":
3329
- vm.eval(scriptContent);
3330
- break;
3331
- }
3320
+ const script = _c;
3321
+ if (script) {
3322
+ const { scriptContent, evalStyle } = script;
3323
+ switch (evalStyle) {
3324
+ case "async":
3325
+ vm.evalAsync(scriptContent);
3326
+ break;
3327
+ case "sync":
3328
+ vm.eval(scriptContent);
3329
+ break;
3332
3330
  }
3333
3331
  }
3334
- finally {
3335
- _d = true;
3336
- }
3337
3332
  }
3338
3333
  }
3339
3334
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruby/wasm-wasi",
3
- "version": "2.0.0-2023-07-23-a",
3
+ "version": "2.0.0-2023-07-24-a",
4
4
  "description": "WebAssembly port of CRuby with WASI",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "umd:main": "./dist/index.umd.js",
@@ -42,17 +42,17 @@
42
42
  "@babel/preset-env": "^7.19.3",
43
43
  "@babel/preset-typescript": "^7.18.6",
44
44
  "@rollup/plugin-inject": "^5.0.3",
45
- "@rollup/plugin-node-resolve": "^15.0.0",
46
- "@rollup/plugin-typescript": "^11.1.0",
45
+ "@rollup/plugin-node-resolve": "^15.1.0",
46
+ "@rollup/plugin-typescript": "^11.1.2",
47
47
  "@types/jest": "^29.1.2",
48
- "@types/node": "18.16.3",
48
+ "@types/node": "20.4.4",
49
49
  "@wasmer/wasi": "^1.2.2",
50
- "babel-jest": "^29.1.2",
50
+ "babel-jest": "^29.6.1",
51
51
  "jest": "^29.1.2",
52
52
  "prettier": "^2.5.1",
53
53
  "rollup": "^3.2.2",
54
54
  "rollup-plugin-polyfill-node": "^0.12.0",
55
- "typescript": "^4.5.4"
55
+ "typescript": "^5.1.6"
56
56
  },
57
57
  "dependencies": {
58
58
  "tslib": "^2.3.1"