@phpsandbox/sdk 0.0.17 → 0.0.18
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 +8 -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 +8 -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/git.d.ts +19 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/git.js +8 -2
- package/dist/git.js.map +1 -1
- package/package.json +1 -1
|
@@ -3781,8 +3781,11 @@ var Git = class {
|
|
|
3781
3781
|
constructor(okra) {
|
|
3782
3782
|
this.okra = okra;
|
|
3783
3783
|
}
|
|
3784
|
-
checkpoint(author, message, branch = "main") {
|
|
3785
|
-
return this.okra.invoke("git.checkpoint", { author, message, branch });
|
|
3784
|
+
checkpoint(author, message, branch = "main", allowEmpty = false) {
|
|
3785
|
+
return this.okra.invoke("git.checkpoint", { author, message, branch, allowEmpty });
|
|
3786
|
+
}
|
|
3787
|
+
checkout(branch, create = true) {
|
|
3788
|
+
return this.okra.invoke("git.checkout", { branch, create });
|
|
3786
3789
|
}
|
|
3787
3790
|
sync(url, author, ref = "main", token, direction = "both", force = false) {
|
|
3788
3791
|
return this.okra.invoke("git.sync", { url, author, ref, token, direction, force });
|
|
@@ -3793,6 +3796,9 @@ var Git = class {
|
|
|
3793
3796
|
restore(ref) {
|
|
3794
3797
|
return this.okra.invoke("git.restore", { ref });
|
|
3795
3798
|
}
|
|
3799
|
+
status() {
|
|
3800
|
+
return this.okra.invoke("git.status", {});
|
|
3801
|
+
}
|
|
3796
3802
|
};
|
|
3797
3803
|
|
|
3798
3804
|
// src/beacon/index.ts
|