@phreshos/client 0.1.40 → 0.1.42
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/domain.js +4 -4
- package/dist/system.js +1 -1
- package/package.json +3 -3
package/dist/domain.js
CHANGED
|
@@ -70,13 +70,13 @@ class ProgramHandle extends CoreProgram {
|
|
|
70
70
|
const answer = await wire.request(["installed", this.address]);
|
|
71
71
|
return answer[0];
|
|
72
72
|
}
|
|
73
|
-
async *install() {
|
|
74
|
-
for await (const value of wire.stream(["install", this.address])) {
|
|
73
|
+
async *install(options = {}) {
|
|
74
|
+
for await (const value of wire.stream(["install", this.address, options])) {
|
|
75
75
|
yield programCommandChunk(value);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
async *uninstall(
|
|
79
|
-
for await (const value of wire.stream(["uninstall", this.address,
|
|
78
|
+
async *uninstall(options = {}) {
|
|
79
|
+
for await (const value of wire.stream(["uninstall", this.address, options])) {
|
|
80
80
|
yield programCommandChunk(value);
|
|
81
81
|
}
|
|
82
82
|
}
|
package/dist/system.js
CHANGED
|
@@ -72,7 +72,7 @@ function systemProgramEvent(event, values) {
|
|
|
72
72
|
if (event === "create" || event === "forget" || event === "install")
|
|
73
73
|
return program(values[1]);
|
|
74
74
|
if (event === "uninstall")
|
|
75
|
-
return { program: program(values[1]),
|
|
75
|
+
return { program: program(values[1]), purge: values[2] === true };
|
|
76
76
|
return values[0];
|
|
77
77
|
}
|
|
78
78
|
/** The global System represented through this Client runtime. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phreshos/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "The SDK used by a Program's client endpoint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"test": "vitest run --project default"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@phreshos/core": "^0.1.
|
|
49
|
+
"@phreshos/core": "^0.1.48"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@the-link/messagepack": "^0.1.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@phreshos/core": "^0.1.
|
|
55
|
+
"@phreshos/core": "^0.1.48",
|
|
56
56
|
"typescript": "^6.0.3",
|
|
57
57
|
"vitest": "^4.1.10"
|
|
58
58
|
}
|