@phpsandbox/sdk 0.0.47 → 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 +35 -1
- package/dist/browser/phpsandbox-sdk.esm.js +41 -4
- 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 +41 -4
- 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/git.d.ts +132 -0
- package/dist/git.d.ts.map +1 -1
- package/dist/git.js +30 -0
- package/dist/git.js.map +1 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -4097,6 +4097,36 @@ var PHPSandbox = (() => {
|
|
|
4097
4097
|
log(ref = "main") {
|
|
4098
4098
|
return this.okra.invoke("git.log", { ref });
|
|
4099
4099
|
}
|
|
4100
|
+
diff(input) {
|
|
4101
|
+
return this.okra.invoke("git.diff", input);
|
|
4102
|
+
}
|
|
4103
|
+
merge(input) {
|
|
4104
|
+
return this.okra.invoke("git.merge", input);
|
|
4105
|
+
}
|
|
4106
|
+
conflicts() {
|
|
4107
|
+
return this.okra.invoke("git.conflicts", {});
|
|
4108
|
+
}
|
|
4109
|
+
abortMerge() {
|
|
4110
|
+
return this.okra.invoke("git.resolve", { action: "abort" });
|
|
4111
|
+
}
|
|
4112
|
+
continueMerge(author, message) {
|
|
4113
|
+
return this.okra.invoke("git.resolve", { action: "continue", author, message });
|
|
4114
|
+
}
|
|
4115
|
+
review() {
|
|
4116
|
+
return this.okra.invoke("git.review", {});
|
|
4117
|
+
}
|
|
4118
|
+
stage(input = { all: true }) {
|
|
4119
|
+
return this.okra.invoke("git.stage", input);
|
|
4120
|
+
}
|
|
4121
|
+
unstage(input = { all: true }) {
|
|
4122
|
+
return this.okra.invoke("git.unstage", input);
|
|
4123
|
+
}
|
|
4124
|
+
revert(input) {
|
|
4125
|
+
return this.okra.invoke("git.revert", input);
|
|
4126
|
+
}
|
|
4127
|
+
credentials() {
|
|
4128
|
+
return this.okra.gitCredentials();
|
|
4129
|
+
}
|
|
4100
4130
|
restore(ref) {
|
|
4101
4131
|
return this.okra.invoke("git.restore", { ref });
|
|
4102
4132
|
}
|
|
@@ -4883,10 +4913,14 @@ var PHPSandbox = (() => {
|
|
|
4883
4913
|
async delete(id) {
|
|
4884
4914
|
await this.client.delete(`/notebook/${id}`);
|
|
4885
4915
|
}
|
|
4886
|
-
async fork(id) {
|
|
4887
|
-
const response = await this.client.post(`/notebook/${id}/fork
|
|
4916
|
+
async fork(id, input = {}) {
|
|
4917
|
+
const response = await this.client.post(`/notebook/${id}/fork`, input);
|
|
4888
4918
|
return this.init(new NotebookInstance(response.data, this.client));
|
|
4889
4919
|
}
|
|
4920
|
+
async gitCredentials(id) {
|
|
4921
|
+
const response = await this.client.post(`/notebook/${id}/git/credentials`);
|
|
4922
|
+
return response.data;
|
|
4923
|
+
}
|
|
4890
4924
|
async open(id) {
|
|
4891
4925
|
const response = await this.client.get(`/notebook/${id}`);
|
|
4892
4926
|
return new NotebookInstance(response.data, this.client);
|
|
@@ -5069,8 +5103,11 @@ var PHPSandbox = (() => {
|
|
|
5069
5103
|
};
|
|
5070
5104
|
return ready();
|
|
5071
5105
|
}
|
|
5072
|
-
fork() {
|
|
5073
|
-
return this.client.notebook.fork(this.data.id);
|
|
5106
|
+
fork(input = {}) {
|
|
5107
|
+
return this.client.notebook.fork(this.data.id, input);
|
|
5108
|
+
}
|
|
5109
|
+
gitCredentials() {
|
|
5110
|
+
return this.client.notebook.gitCredentials(this.data.id);
|
|
5074
5111
|
}
|
|
5075
5112
|
delete() {
|
|
5076
5113
|
return this.client.notebook.delete(this.data.id).then(() => {
|