unrun 0.2.20 → 0.2.21

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/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as unrunCli, r as unrunSync, t as unrun } from "./src-OFTjuv5c.mjs";
1
+ import { n as unrunCli, r as unrunSync, t as unrun } from "./src-vFNre9xH.mjs";
2
2
 
3
3
  export { unrun, unrunCli, unrunSync };
@@ -193,6 +193,30 @@ const WRAPPER_SNIPPET = `(function __unrun__wrapRolldownHelpers(){
193
193
  __unrun__patchedExport.__unrunPatched = true;
194
194
  __export = __unrun__patchedExport;
195
195
  }
196
+ if (typeof __exportAll === "function" && !__exportAll.__unrunPatched) {
197
+ var __unrun__origExportAll = __exportAll;
198
+ var __unrun__patchedExportAll = (...__unrun__args) => {
199
+ var __unrun__target = __unrun__origExportAll(...__unrun__args);
200
+ if (__unrun__target && typeof __unrun__target === "object") {
201
+ try {
202
+ var __unrun__map = (__unrun__args[0] && typeof __unrun__args[0] === "object") ? __unrun__args[0] : {};
203
+ var __unrun__names = Object.keys(__unrun__map).filter(function(n){ return n !== "__esModule" });
204
+ __unrun__setInspect(
205
+ __unrun__target,
206
+ __unrun__names,
207
+ function(n){
208
+ var getter = __unrun__map[n];
209
+ return typeof getter === "function" ? getter() : getter;
210
+ },
211
+ false,
212
+ );
213
+ } catch {}
214
+ }
215
+ return __unrun__target;
216
+ };
217
+ __unrun__patchedExportAll.__unrunPatched = true;
218
+ __exportAll = __unrun__patchedExportAll;
219
+ }
196
220
  if (typeof __copyProps === "function" && !__copyProps.__unrunPatched) {
197
221
  var __unrun__origCopyProps = __copyProps;
198
222
  var __unrun__patchedCopyProps = (...__unrun__args) => {
@@ -1,4 +1,4 @@
1
- import { t as unrun } from "../src-OFTjuv5c.mjs";
1
+ import { t as unrun } from "../src-vFNre9xH.mjs";
2
2
  import { runAsWorker } from "synckit";
3
3
 
4
4
  //#region src/sync/worker.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unrun",
3
3
  "type": "module",
4
- "version": "0.2.20",
4
+ "version": "0.2.21",
5
5
  "description": "A tool to load and execute any JavaScript or TypeScript code at runtime.",
6
6
  "author": "Augustin Mercier <gugustinette@proton.me>",
7
7
  "license": "MIT",
@@ -42,13 +42,13 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "rolldown": "1.0.0-beta.55"
45
+ "rolldown": "1.0.0-beta.57"
46
46
  },
47
47
  "devDependencies": {
48
- "@sxzz/eslint-config": "^7.4.3",
48
+ "@sxzz/eslint-config": "^7.4.4",
49
49
  "@sxzz/prettier-config": "^2.2.6",
50
50
  "@types/node": "^25.0.3",
51
- "@typescript/native-preview": "7.0.0-dev.20251211.1",
51
+ "@typescript/native-preview": "7.0.0-dev.20251223.1",
52
52
  "@vitest/browser": "4.0.16",
53
53
  "@vitest/browser-playwright": "4.0.16",
54
54
  "@webcontainer/api": "^1.6.1",
@@ -71,7 +71,7 @@
71
71
  "moment-timezone": "^0.6.0",
72
72
  "nano-jsx": "^0.2.1",
73
73
  "playwright": "^1.57.0",
74
- "preact": "^10.28.0",
74
+ "preact": "^10.28.1",
75
75
  "preact-render-to-string": "^6.6.4",
76
76
  "prettier": "^3.7.4",
77
77
  "react": "^19.2.3",
@@ -80,7 +80,7 @@
80
80
  "synckit": "^0.11.11",
81
81
  "test-ecosystem-ci": "^0.0.2",
82
82
  "tinyexec": "^1.0.2",
83
- "tsdown": "^0.17.2",
83
+ "tsdown": "^0.18.2",
84
84
  "tsx": "^4.21.0",
85
85
  "typedoc": "^0.28.15",
86
86
  "typedoc-plugin-markdown": "^4.9.0",
@@ -92,8 +92,8 @@
92
92
  "vitepress": "2.0.0-alpha.12",
93
93
  "vitepress-plugin-group-icons": "^1.6.5",
94
94
  "vitest": "4.0.16",
95
- "vue": "^3.5.25",
96
- "vue-tsc": "^3.1.8",
95
+ "vue": "^3.5.26",
96
+ "vue-tsc": "^3.2.1",
97
97
  "zod": "^4.2.1"
98
98
  },
99
99
  "prettier": "@sxzz/prettier-config",