@lvce-editor/test-worker 15.9.0 → 15.10.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 +8 -0
- package/dist/testWorkerMain.js +32 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -675,15 +675,20 @@ interface Git {
|
|
|
675
675
|
readonly add: (pathSpec: string) => Promise<void>;
|
|
676
676
|
readonly addAll: () => Promise<void>;
|
|
677
677
|
readonly addRemote: (name: string, remoteUrl: string) => Promise<void>;
|
|
678
|
+
readonly applyStash: () => Promise<void>;
|
|
678
679
|
readonly branch: (name: string) => Promise<void>;
|
|
679
680
|
readonly checkout: (ref: string) => Promise<void>;
|
|
680
681
|
readonly cherryPick: (commitHash: string) => Promise<void>;
|
|
682
|
+
readonly cleanAll: () => Promise<void>;
|
|
681
683
|
readonly clone: (repositoryUrl: string, cwd: string) => Promise<void>;
|
|
682
684
|
readonly commit: (message: string) => Promise<void>;
|
|
685
|
+
readonly commitStaged: (message: string) => Promise<void>;
|
|
683
686
|
readonly config: (values: Record<string, string>) => Promise<void>;
|
|
684
687
|
readonly createTag: (name: string) => Promise<void>;
|
|
688
|
+
readonly createWorktree: (path: string, ref: string) => Promise<void>;
|
|
685
689
|
readonly deleteBranch: (name: string) => Promise<void>;
|
|
686
690
|
readonly deleteTag: (name: string) => Promise<void>;
|
|
691
|
+
readonly deleteWorktree: (path: string) => Promise<void>;
|
|
687
692
|
readonly fetch: (remote: string) => Promise<void>;
|
|
688
693
|
readonly fetchAll: () => Promise<void>;
|
|
689
694
|
readonly fetchPrune: () => Promise<void>;
|
|
@@ -701,8 +706,11 @@ interface Git {
|
|
|
701
706
|
readonly setUpstream: (remoteUrl: string) => Promise<void>;
|
|
702
707
|
readonly shouldHaveCommit: (message: string) => Promise<void>;
|
|
703
708
|
readonly shouldHaveInvocations: (invocations: readonly GitInvocation[]) => Promise<void>;
|
|
709
|
+
readonly stage: (pathSpec: string) => Promise<void>;
|
|
704
710
|
readonly stash: (message?: string) => Promise<void>;
|
|
705
711
|
readonly status: () => Promise<unknown>;
|
|
712
|
+
readonly undoLastCommit: () => Promise<void>;
|
|
713
|
+
readonly unstage: (pathSpec: string) => Promise<void>;
|
|
706
714
|
readonly unstash: () => Promise<void>;
|
|
707
715
|
}
|
|
708
716
|
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -3979,9 +3979,18 @@ const add = async pathSpec => {
|
|
|
3979
3979
|
const addAll = async () => {
|
|
3980
3980
|
await add('.');
|
|
3981
3981
|
};
|
|
3982
|
+
const stage = async pathSpec => {
|
|
3983
|
+
await executeExtensionCommand('git.stage', pathSpec);
|
|
3984
|
+
};
|
|
3985
|
+
const unstage = async pathSpec => {
|
|
3986
|
+
await executeExtensionCommand('git.unstage', pathSpec);
|
|
3987
|
+
};
|
|
3982
3988
|
const commit = async message => {
|
|
3983
3989
|
await executeExtensionCommand('git.commit', message);
|
|
3984
3990
|
};
|
|
3991
|
+
const commitStaged = async message => {
|
|
3992
|
+
await executeExtensionCommand('git.commitStaged', message);
|
|
3993
|
+
};
|
|
3985
3994
|
const push$1 = async (remoteOrOptions, branch) => {
|
|
3986
3995
|
if (typeof remoteOrOptions === 'string') {
|
|
3987
3996
|
await executeExtensionCommand('git.push', {
|
|
@@ -4013,6 +4022,9 @@ const stash = async message => {
|
|
|
4013
4022
|
const unstash = async () => {
|
|
4014
4023
|
await executeExtensionCommand('git.unstash');
|
|
4015
4024
|
};
|
|
4025
|
+
const applyStash = async () => {
|
|
4026
|
+
await executeExtensionCommand('git.applystash');
|
|
4027
|
+
};
|
|
4016
4028
|
const checkout = async ref => {
|
|
4017
4029
|
await executeExtensionCommand('git.checkout', ref);
|
|
4018
4030
|
};
|
|
@@ -4040,6 +4052,18 @@ const createTag = async name => {
|
|
|
4040
4052
|
const deleteTag = async name => {
|
|
4041
4053
|
await executeExtensionCommand('git.deleteTag', name);
|
|
4042
4054
|
};
|
|
4055
|
+
const undoLastCommit = async () => {
|
|
4056
|
+
await executeExtensionCommand('git.undoLastCommit');
|
|
4057
|
+
};
|
|
4058
|
+
const cleanAll = async () => {
|
|
4059
|
+
await executeExtensionCommand('git.cleanAll');
|
|
4060
|
+
};
|
|
4061
|
+
const createWorktree = async (path, ref) => {
|
|
4062
|
+
await executeExtensionCommand('git.createWorktree', path, ref);
|
|
4063
|
+
};
|
|
4064
|
+
const deleteWorktree = async path => {
|
|
4065
|
+
await executeExtensionCommand('git.deleteWorktree', path);
|
|
4066
|
+
};
|
|
4043
4067
|
const status = async () => {
|
|
4044
4068
|
return executeExtensionCommand('git.status');
|
|
4045
4069
|
};
|
|
@@ -4090,15 +4114,20 @@ const Git = {
|
|
|
4090
4114
|
add,
|
|
4091
4115
|
addAll,
|
|
4092
4116
|
addRemote,
|
|
4117
|
+
applyStash,
|
|
4093
4118
|
branch,
|
|
4094
4119
|
checkout,
|
|
4095
4120
|
cherryPick,
|
|
4121
|
+
cleanAll,
|
|
4096
4122
|
clone,
|
|
4097
4123
|
commit,
|
|
4124
|
+
commitStaged,
|
|
4098
4125
|
config,
|
|
4099
4126
|
createTag,
|
|
4127
|
+
createWorktree,
|
|
4100
4128
|
deleteBranch,
|
|
4101
4129
|
deleteTag,
|
|
4130
|
+
deleteWorktree,
|
|
4102
4131
|
fetch: fetch$1,
|
|
4103
4132
|
fetchAll,
|
|
4104
4133
|
fetchPrune,
|
|
@@ -4116,8 +4145,11 @@ const Git = {
|
|
|
4116
4145
|
setUpstream,
|
|
4117
4146
|
shouldHaveCommit,
|
|
4118
4147
|
shouldHaveInvocations,
|
|
4148
|
+
stage,
|
|
4119
4149
|
stash,
|
|
4120
4150
|
status,
|
|
4151
|
+
undoLastCommit,
|
|
4152
|
+
unstage,
|
|
4121
4153
|
unstash
|
|
4122
4154
|
};
|
|
4123
4155
|
|