@lvce-editor/test-worker 15.7.0 → 15.8.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 CHANGED
@@ -691,9 +691,13 @@ interface Git {
691
691
  readonly pull: (remote: string, branch: string) => Promise<void>;
692
692
  readonly push: (remoteOrOptions?: string | GitPushOptions, branch?: string) => Promise<void>;
693
693
  readonly rebase: (ref: string) => Promise<void>;
694
+ readonly removeOrigin: () => Promise<void>;
694
695
  readonly removeRemote: (name: string) => Promise<void>;
696
+ readonly removeUpstream: () => Promise<void>;
695
697
  readonly renameBranch: (newName: string) => Promise<void>;
696
698
  readonly setConfig: (key: string, value: string) => Promise<void>;
699
+ readonly setOrigin: (remoteUrl: string) => Promise<void>;
700
+ readonly setUpstream: (remoteUrl: string) => Promise<void>;
697
701
  readonly shouldHaveCommit: (message: string) => Promise<void>;
698
702
  readonly shouldHaveInvocations: (invocations: readonly GitInvocation[]) => Promise<void>;
699
703
  readonly stash: (message?: string) => Promise<void>;
@@ -4043,9 +4043,21 @@ const status = async () => {
4043
4043
  const addRemote = async (name, remoteUrl) => {
4044
4044
  await executeExtensionCommand('git.addRemote', name, remoteUrl);
4045
4045
  };
4046
+ const setOrigin = async remoteUrl => {
4047
+ await addRemote('origin', remoteUrl);
4048
+ };
4049
+ const setUpstream = async remoteUrl => {
4050
+ await addRemote('upstream', remoteUrl);
4051
+ };
4046
4052
  const removeRemote = async name => {
4047
4053
  await executeExtensionCommand('git.removeRemote', name);
4048
4054
  };
4055
+ const removeOrigin = async () => {
4056
+ await removeRemote('origin');
4057
+ };
4058
+ const removeUpstream = async () => {
4059
+ await removeRemote('upstream');
4060
+ };
4049
4061
  const setConfig = async (key, value) => {
4050
4062
  await executeExtensionCommand('git.setConfig', key, value);
4051
4063
  };
@@ -4093,9 +4105,13 @@ const Git = {
4093
4105
  pull,
4094
4106
  push: push$1,
4095
4107
  rebase,
4108
+ removeOrigin,
4096
4109
  removeRemote,
4110
+ removeUpstream,
4097
4111
  renameBranch,
4098
4112
  setConfig,
4113
+ setOrigin,
4114
+ setUpstream,
4099
4115
  shouldHaveCommit,
4100
4116
  shouldHaveInvocations,
4101
4117
  stash,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "15.7.0",
3
+ "version": "15.8.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",