@phpsandbox/sdk 0.0.30 → 0.0.32
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 +5 -0
- package/dist/browser/phpsandbox-sdk.esm.js +9 -2
- package/dist/browser/phpsandbox-sdk.esm.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.esm.min.js +2 -2
- package/dist/browser/phpsandbox-sdk.esm.min.js.map +3 -3
- package/dist/browser/phpsandbox-sdk.iife.js +9 -2
- package/dist/browser/phpsandbox-sdk.iife.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.iife.min.js +2 -2
- package/dist/browser/phpsandbox-sdk.iife.min.js.map +3 -3
- package/dist/services.d.ts +14 -7
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +7 -2
- package/dist/services.js.map +1 -1
- package/package.json +1 -1
|
@@ -345,6 +345,8 @@ var PHPSandbox = (() => {
|
|
|
345
345
|
Transport: () => Transport,
|
|
346
346
|
createBeacon: () => createBeacon,
|
|
347
347
|
isBeaconSupported: () => isBeaconSupported,
|
|
348
|
+
notebookBuiltinServices: () => notebookBuiltinServices,
|
|
349
|
+
notebookKnownServices: () => notebookKnownServices,
|
|
348
350
|
once: () => once,
|
|
349
351
|
timeout: () => timeout
|
|
350
352
|
});
|
|
@@ -1070,6 +1072,8 @@ var PHPSandbox = (() => {
|
|
|
1070
1072
|
};
|
|
1071
1073
|
|
|
1072
1074
|
// src/services.ts
|
|
1075
|
+
var notebookBuiltinServices = ["redis"];
|
|
1076
|
+
var notebookKnownServices = ["start", "nginx", ...notebookBuiltinServices];
|
|
1073
1077
|
var Services = class {
|
|
1074
1078
|
constructor(okra) {
|
|
1075
1079
|
this.okra = okra;
|
|
@@ -1077,8 +1081,11 @@ var PHPSandbox = (() => {
|
|
|
1077
1081
|
list() {
|
|
1078
1082
|
return this.okra.invoke("service.list");
|
|
1079
1083
|
}
|
|
1080
|
-
run(name) {
|
|
1081
|
-
return this.okra.invoke("service.run", {
|
|
1084
|
+
run(name, command) {
|
|
1085
|
+
return this.okra.invoke("service.run", {
|
|
1086
|
+
name,
|
|
1087
|
+
command
|
|
1088
|
+
});
|
|
1082
1089
|
}
|
|
1083
1090
|
stop(name) {
|
|
1084
1091
|
return this.okra.invoke("service.stop", { name });
|