@lvce-editor/test-worker 15.5.0 → 15.6.0
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/api.d.ts +10 -0
- package/dist/testWorkerMain.js +40 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -676,13 +676,23 @@ interface Git {
|
|
|
676
676
|
readonly addRemote: (name: string, remoteUrl: string) => Promise<void>;
|
|
677
677
|
readonly branch: (name: string) => Promise<void>;
|
|
678
678
|
readonly checkout: (ref: string) => Promise<void>;
|
|
679
|
+
readonly cherryPick: (commitHash: string) => Promise<void>;
|
|
679
680
|
readonly clone: (repositoryUrl: string, cwd: string) => Promise<void>;
|
|
680
681
|
readonly commit: (message: string) => Promise<void>;
|
|
681
682
|
readonly config: (values: Record<string, string>) => Promise<void>;
|
|
683
|
+
readonly createTag: (name: string) => Promise<void>;
|
|
684
|
+
readonly deleteBranch: (name: string) => Promise<void>;
|
|
685
|
+
readonly deleteTag: (name: string) => Promise<void>;
|
|
682
686
|
readonly fetch: (remote: string) => Promise<void>;
|
|
687
|
+
readonly fetchAll: () => Promise<void>;
|
|
688
|
+
readonly fetchPrune: () => Promise<void>;
|
|
683
689
|
readonly init: (options?: GitInitOptions) => Promise<void>;
|
|
690
|
+
readonly merge: (ref: string) => Promise<void>;
|
|
684
691
|
readonly pull: (remote: string, branch: string) => Promise<void>;
|
|
685
692
|
readonly push: (remoteOrOptions?: string | GitPushOptions, branch?: string) => Promise<void>;
|
|
693
|
+
readonly rebase: (ref: string) => Promise<void>;
|
|
694
|
+
readonly removeRemote: (name: string) => Promise<void>;
|
|
695
|
+
readonly renameBranch: (newName: string) => Promise<void>;
|
|
686
696
|
readonly setConfig: (key: string, value: string) => Promise<void>;
|
|
687
697
|
readonly shouldHaveCommit: (message: string) => Promise<void>;
|
|
688
698
|
readonly shouldHaveInvocations: (invocations: readonly GitInvocation[]) => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -3990,6 +3990,12 @@ const pull = async (remote, branch) => {
|
|
|
3990
3990
|
const fetch$1 = async remote => {
|
|
3991
3991
|
await invoke('ExtensionHost.executeCommand', 'git.fetch', remote);
|
|
3992
3992
|
};
|
|
3993
|
+
const fetchAll = async () => {
|
|
3994
|
+
await invoke('ExtensionHost.executeCommand', 'git.fetchAll');
|
|
3995
|
+
};
|
|
3996
|
+
const fetchPrune = async () => {
|
|
3997
|
+
await invoke('ExtensionHost.executeCommand', 'git.fetchPrune');
|
|
3998
|
+
};
|
|
3993
3999
|
const stash = async message => {
|
|
3994
4000
|
if (message === undefined) {
|
|
3995
4001
|
await invoke('ExtensionHost.executeCommand', 'git.stash');
|
|
@@ -4006,12 +4012,36 @@ const checkout = async ref => {
|
|
|
4006
4012
|
const branch = async name => {
|
|
4007
4013
|
await invoke('ExtensionHost.executeCommand', 'git.branch', name);
|
|
4008
4014
|
};
|
|
4015
|
+
const deleteBranch = async name => {
|
|
4016
|
+
await invoke('ExtensionHost.executeCommand', 'git.deleteBranch', name);
|
|
4017
|
+
};
|
|
4018
|
+
const renameBranch = async newName => {
|
|
4019
|
+
await invoke('ExtensionHost.executeCommand', 'git.renameBranch', newName);
|
|
4020
|
+
};
|
|
4021
|
+
const cherryPick = async commitHash => {
|
|
4022
|
+
await invoke('ExtensionHost.executeCommand', 'git.cherryPick', commitHash);
|
|
4023
|
+
};
|
|
4024
|
+
const merge = async ref => {
|
|
4025
|
+
await invoke('ExtensionHost.executeCommand', 'git.merge', ref);
|
|
4026
|
+
};
|
|
4027
|
+
const rebase = async ref => {
|
|
4028
|
+
await invoke('ExtensionHost.executeCommand', 'git.rebase', ref);
|
|
4029
|
+
};
|
|
4030
|
+
const createTag = async name => {
|
|
4031
|
+
await invoke('ExtensionHost.executeCommand', 'git.createTag', name);
|
|
4032
|
+
};
|
|
4033
|
+
const deleteTag = async name => {
|
|
4034
|
+
await invoke('ExtensionHost.executeCommand', 'git.deleteTag', name);
|
|
4035
|
+
};
|
|
4009
4036
|
const status = async () => {
|
|
4010
4037
|
return invoke('ExtensionHost.executeCommand', 'git.status');
|
|
4011
4038
|
};
|
|
4012
4039
|
const addRemote = async (name, remoteUrl) => {
|
|
4013
4040
|
await invoke('ExtensionHost.executeCommand', 'git.addRemote', name, remoteUrl);
|
|
4014
4041
|
};
|
|
4042
|
+
const removeRemote = async name => {
|
|
4043
|
+
await invoke('ExtensionHost.executeCommand', 'git.removeRemote', name);
|
|
4044
|
+
};
|
|
4015
4045
|
const setConfig = async (key, value) => {
|
|
4016
4046
|
await invoke('ExtensionHost.executeCommand', 'git.setConfig', key, value);
|
|
4017
4047
|
};
|
|
@@ -4044,13 +4074,23 @@ const Git = {
|
|
|
4044
4074
|
addRemote,
|
|
4045
4075
|
branch,
|
|
4046
4076
|
checkout,
|
|
4077
|
+
cherryPick,
|
|
4047
4078
|
clone,
|
|
4048
4079
|
commit,
|
|
4049
4080
|
config,
|
|
4081
|
+
createTag,
|
|
4082
|
+
deleteBranch,
|
|
4083
|
+
deleteTag,
|
|
4050
4084
|
fetch: fetch$1,
|
|
4085
|
+
fetchAll,
|
|
4086
|
+
fetchPrune,
|
|
4051
4087
|
init,
|
|
4088
|
+
merge,
|
|
4052
4089
|
pull,
|
|
4053
4090
|
push: push$1,
|
|
4091
|
+
rebase,
|
|
4092
|
+
removeRemote,
|
|
4093
|
+
renameBranch,
|
|
4054
4094
|
setConfig,
|
|
4055
4095
|
shouldHaveCommit,
|
|
4056
4096
|
shouldHaveInvocations,
|