@phpsandbox/sdk 0.0.48 → 0.0.49
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 +6 -5
- package/dist/browser/phpsandbox-sdk.esm.js +10 -0
- package/dist/browser/phpsandbox-sdk.esm.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.esm.min.js +1 -1
- package/dist/browser/phpsandbox-sdk.esm.min.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.iife.js +10 -0
- package/dist/browser/phpsandbox-sdk.iife.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.iife.min.js +1 -1
- package/dist/browser/phpsandbox-sdk.iife.min.js.map +2 -2
- package/dist/git.d.ts +9 -0
- package/dist/git.d.ts.map +1 -1
- package/dist/git.js +3 -0
- package/dist/git.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -4124,6 +4124,9 @@ var PHPSandbox = (() => {
|
|
|
4124
4124
|
revert(input) {
|
|
4125
4125
|
return this.okra.invoke("git.revert", input);
|
|
4126
4126
|
}
|
|
4127
|
+
credentials() {
|
|
4128
|
+
return this.okra.gitCredentials();
|
|
4129
|
+
}
|
|
4127
4130
|
restore(ref) {
|
|
4128
4131
|
return this.okra.invoke("git.restore", { ref });
|
|
4129
4132
|
}
|
|
@@ -4914,6 +4917,10 @@ var PHPSandbox = (() => {
|
|
|
4914
4917
|
const response = await this.client.post(`/notebook/${id}/fork`, input);
|
|
4915
4918
|
return this.init(new NotebookInstance(response.data, this.client));
|
|
4916
4919
|
}
|
|
4920
|
+
async gitCredentials(id) {
|
|
4921
|
+
const response = await this.client.post(`/notebook/${id}/git/credentials`);
|
|
4922
|
+
return response.data;
|
|
4923
|
+
}
|
|
4917
4924
|
async open(id) {
|
|
4918
4925
|
const response = await this.client.get(`/notebook/${id}`);
|
|
4919
4926
|
return new NotebookInstance(response.data, this.client);
|
|
@@ -5099,6 +5106,9 @@ var PHPSandbox = (() => {
|
|
|
5099
5106
|
fork(input = {}) {
|
|
5100
5107
|
return this.client.notebook.fork(this.data.id, input);
|
|
5101
5108
|
}
|
|
5109
|
+
gitCredentials() {
|
|
5110
|
+
return this.client.notebook.gitCredentials(this.data.id);
|
|
5111
|
+
}
|
|
5102
5112
|
delete() {
|
|
5103
5113
|
return this.client.notebook.delete(this.data.id).then(() => {
|
|
5104
5114
|
this.socket.terminate(new NotebookUnavailableError("Notebook has been deleted.", { id: this.data.id }));
|