@arcote.tech/arc-adapter-db-sqlite-wasm 0.7.11 → 0.7.13
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 +5 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3207,7 +3207,11 @@ class ArcCommand extends ArcContextElement {
|
|
|
3207
3207
|
if (!adapters.commandWire) {
|
|
3208
3208
|
throw new Error(`Command "${this.data.name}" has no handler and no commandWire adapter available for remote execution`);
|
|
3209
3209
|
}
|
|
3210
|
-
|
|
3210
|
+
const wireAuth = adapters.scope ? {
|
|
3211
|
+
scope: adapters.scope.scopeName,
|
|
3212
|
+
token: adapters.scope.getToken()
|
|
3213
|
+
} : undefined;
|
|
3214
|
+
return await adapters.commandWire.executeCommand(this.data.name, params, wireAuth);
|
|
3211
3215
|
};
|
|
3212
3216
|
return Object.assign(executeFunc, { params: this.data.params });
|
|
3213
3217
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcote.tech/arc-adapter-db-sqlite-wasm",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dev": "bun build ./src/index.ts ./src/worker.ts --outdir ./dist --target browser --format esm --watch"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@arcote.tech/arc": "^0.7.
|
|
42
|
+
"@arcote.tech/arc": "^0.7.13",
|
|
43
43
|
"@sqlite.org/sqlite-wasm": "^3.46.0-build1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|