sandboxedjs 0.1.57 → 0.1.59
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/README.md +4 -16
- package/dist/agent.d.cts +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/{container-BAgb9I06.d.ts → container-CfOQpBhG.d.ts} +2 -0
- package/dist/{container-CY_hS650.d.cts → container-sd_UKlqo.d.cts} +2 -0
- package/dist/index.cjs +70 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +70 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -729,22 +729,10 @@ await box.exec("python3 -c 'import sqlite3; print(sqlite3.sqlite_version)'");
|
|
|
729
729
|
Python never falls back to a host interpreter. When selecting the optional
|
|
730
730
|
Pyodide backend, its module and asset directory must use the same version.
|
|
731
731
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
`node_modules/sandboxedjs/dist/python/wheels` to your app's public directory
|
|
737
|
-
at build time, then configure the public URL before creating a container:
|
|
738
|
-
|
|
739
|
-
```ts
|
|
740
|
-
import { configurePython } from "sandboxedjs";
|
|
741
|
-
|
|
742
|
-
configurePython({ wheelIndex: "/python/wheels" });
|
|
743
|
-
```
|
|
744
|
-
|
|
745
|
-
The directory must contain `index.json` and every wheel named by it. Once this
|
|
746
|
-
is configured, `pip install fastapi` resolves Pydantic 2 and the bundled
|
|
747
|
-
WASM-compatible `pydantic-core` rather than falling back to Pydantic 1.
|
|
732
|
+
The ABI-matched Pydantic Core wheels are embedded in the package's JavaScript
|
|
733
|
+
bundle, so Vite and other bundlers do not need to copy or serve a separate
|
|
734
|
+
wheel directory. `configurePython({ wheelIndex })` remains available for a
|
|
735
|
+
private index containing additional native extensions.
|
|
748
736
|
|
|
749
737
|
## Uploading files
|
|
750
738
|
|
package/dist/agent.d.cts
CHANGED
package/dist/agent.d.ts
CHANGED
|
@@ -1147,6 +1147,8 @@ interface WheelIndex {
|
|
|
1147
1147
|
/** Where `filename` is resolved against. */
|
|
1148
1148
|
baseUrl: string;
|
|
1149
1149
|
wheels: PrebuiltWheel[];
|
|
1150
|
+
/** Optional in-bundle wheel payloads, keyed by filename and base64 encoded. */
|
|
1151
|
+
files?: Record<string, string>;
|
|
1150
1152
|
}
|
|
1151
1153
|
|
|
1152
1154
|
/**
|
|
@@ -1147,6 +1147,8 @@ interface WheelIndex {
|
|
|
1147
1147
|
/** Where `filename` is resolved against. */
|
|
1148
1148
|
baseUrl: string;
|
|
1149
1149
|
wheels: PrebuiltWheel[];
|
|
1150
|
+
/** Optional in-bundle wheel payloads, keyed by filename and base64 encoded. */
|
|
1151
|
+
files?: Record<string, string>;
|
|
1150
1152
|
}
|
|
1151
1153
|
|
|
1152
1154
|
/**
|