@phpsandbox/sdk 0.0.42 → 0.0.43
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/browser/phpsandbox-sdk.esm.js +17 -0
- package/dist/browser/phpsandbox-sdk.esm.js.map +3 -3
- package/dist/browser/phpsandbox-sdk.esm.min.js +2 -2
- package/dist/browser/phpsandbox-sdk.esm.min.js.map +4 -4
- package/dist/browser/phpsandbox-sdk.iife.js +17 -0
- package/dist/browser/phpsandbox-sdk.iife.js.map +3 -3
- package/dist/browser/phpsandbox-sdk.iife.min.js +2 -2
- package/dist/browser/phpsandbox-sdk.iife.min.js.map +4 -4
- package/dist/config.d.ts +28 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +15 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1200,6 +1200,22 @@ var Services = class {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
1202
|
|
|
1203
|
+
// src/config.ts
|
|
1204
|
+
var Config = class {
|
|
1205
|
+
constructor(okra) {
|
|
1206
|
+
this.okra = okra;
|
|
1207
|
+
}
|
|
1208
|
+
get() {
|
|
1209
|
+
return this.okra.invoke("config.get");
|
|
1210
|
+
}
|
|
1211
|
+
update(config) {
|
|
1212
|
+
return this.okra.invoke("config.update", { config });
|
|
1213
|
+
}
|
|
1214
|
+
setPorts(ports) {
|
|
1215
|
+
return this.okra.invoke("config.set-ports", { ports });
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1203
1219
|
// node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
|
|
1204
1220
|
function utf8Count(str) {
|
|
1205
1221
|
const strLength = str.length;
|
|
@@ -5225,6 +5241,7 @@ var NotebookInstance = class {
|
|
|
5225
5241
|
this.shell = new Shell(this);
|
|
5226
5242
|
this.git = new Git(this);
|
|
5227
5243
|
this.services = new Services(this);
|
|
5244
|
+
this.config = new Config(this);
|
|
5228
5245
|
this.secrets = new NotebookSecrets(client, this.data.id);
|
|
5229
5246
|
this.preview = new NotebookPreview(client, this.data.id);
|
|
5230
5247
|
this.mail = new NotebookMail(client, this.data.id);
|