@polka-codes/runner 0.10.16 → 0.10.17
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.js +21 -19
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -43012,7 +43012,7 @@ var {
|
|
|
43012
43012
|
Help
|
|
43013
43013
|
} = import__.default;
|
|
43014
43014
|
// package.json
|
|
43015
|
-
var version = "0.10.
|
|
43015
|
+
var version = "0.10.17";
|
|
43016
43016
|
|
|
43017
43017
|
// src/runner.ts
|
|
43018
43018
|
import { execSync } from "node:child_process";
|
|
@@ -76615,6 +76615,9 @@ class ReentrantMutex {
|
|
|
76615
76615
|
}
|
|
76616
76616
|
var SqlJs = null;
|
|
76617
76617
|
var SqlJsInitPromise = null;
|
|
76618
|
+
var moduleDir = dirname3(fileURLToPath(import.meta.url));
|
|
76619
|
+
var bundledWasmPath = resolve4(moduleDir, "sql-wasm.wasm");
|
|
76620
|
+
var hasBundledWasm = existsSync2(bundledWasmPath);
|
|
76618
76621
|
async function getSqlJs() {
|
|
76619
76622
|
if (SqlJs) {
|
|
76620
76623
|
return SqlJs;
|
|
@@ -76622,26 +76625,25 @@ async function getSqlJs() {
|
|
|
76622
76625
|
if (SqlJsInitPromise) {
|
|
76623
76626
|
return SqlJsInitPromise;
|
|
76624
76627
|
}
|
|
76625
|
-
|
|
76626
|
-
|
|
76627
|
-
|
|
76628
|
-
|
|
76629
|
-
|
|
76630
|
-
resolve4(moduleDir, "..", "..", "..", "node_modules", "sql.js", "dist", "sql-wasm.wasm"),
|
|
76631
|
-
resolve4(process.cwd(), "node_modules", "sql.js", "dist", "sql-wasm.wasm")
|
|
76632
|
-
];
|
|
76633
|
-
SqlJsInitPromise = import_sql.default({
|
|
76634
|
-
locateFile: (file2) => {
|
|
76635
|
-
for (const candidate of candidates) {
|
|
76636
|
-
if (existsSync2(candidate)) {
|
|
76637
|
-
return candidate;
|
|
76628
|
+
try {
|
|
76629
|
+
SqlJsInitPromise = import_sql.default({
|
|
76630
|
+
locateFile: (filename, prefix) => {
|
|
76631
|
+
if (hasBundledWasm) {
|
|
76632
|
+
return bundledWasmPath;
|
|
76638
76633
|
}
|
|
76634
|
+
return prefix + filename;
|
|
76639
76635
|
}
|
|
76640
|
-
|
|
76641
|
-
|
|
76642
|
-
|
|
76643
|
-
|
|
76644
|
-
|
|
76636
|
+
});
|
|
76637
|
+
SqlJs = await SqlJsInitPromise;
|
|
76638
|
+
return SqlJs;
|
|
76639
|
+
} catch (error48) {
|
|
76640
|
+
throw new Error(`Failed to initialize sql.js: ${error48 instanceof Error ? error48.message : String(error48)}
|
|
76641
|
+
|
|
76642
|
+
` + `Attempted to locate WASM at:
|
|
76643
|
+
` + ` - ${bundledWasmPath}
|
|
76644
|
+
|
|
76645
|
+
` + `If you're developing, run: bun run build in packages/cli-shared`);
|
|
76646
|
+
}
|
|
76645
76647
|
}
|
|
76646
76648
|
var transactionOwnerStorage = new AsyncLocalStorage2;
|
|
76647
76649
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/runner",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.17",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@ai-sdk/provider": "^3.0.8",
|
|
29
|
-
"@polka-codes/cli-shared": "^0.10.
|
|
30
|
-
"@polka-codes/core": "^0.10.
|
|
29
|
+
"@polka-codes/cli-shared": "^0.10.17",
|
|
30
|
+
"@polka-codes/core": "^0.10.17",
|
|
31
31
|
"commander": "^14.0.2",
|
|
32
32
|
"dotenv": "^17.3.1",
|
|
33
33
|
"ignore": "^7.0.5",
|