npm-update-package 4.0.6 → 4.0.7

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/app.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export const name = 'npm-update-package';
2
- export const version = '4.0.6';
2
+ export const version = '4.0.7';
3
3
  export const homepage = 'https://github.com/npm-update-package/npm-update-package';
package/dist/git/Git.js CHANGED
@@ -13,8 +13,8 @@ export class Git {
13
13
  await this.terminal.run('git', 'checkout', '-b', branchName);
14
14
  }
15
15
  async getRemoteUrl() {
16
- const { stdout } = await this.terminal.run('git', 'remote', 'get-url', '--push', 'origin');
17
- return stdout.trim();
16
+ const output = await this.terminal.run('git', 'remote', 'get-url', '--push', 'origin');
17
+ return output.trim();
18
18
  }
19
19
  async push(branchName) {
20
20
  await this.terminal.run('git', 'push', 'origin', branchName);
@@ -10,8 +10,8 @@ export class Npm {
10
10
  * @see https://docs.npmjs.com/cli/v8/commands/npm-view
11
11
  */
12
12
  async getVersions(packageName) {
13
- const { stdout } = await this.terminal.run('npm', 'info', packageName, 'versions', '--json');
14
- const versions = JSON.parse(stdout);
13
+ const output = await this.terminal.run('npm', 'info', packageName, 'versions', '--json');
14
+ const versions = JSON.parse(output);
15
15
  if (!isNpmVersions(versions)) {
16
16
  throw new Error(`Failed to parse versions. versions=${JSON.stringify(versions)}`);
17
17
  }
@@ -10,8 +10,8 @@ export class Yarn {
10
10
  * @see https://classic.yarnpkg.com/en/docs/cli/info
11
11
  */
12
12
  async getVersions(packageName) {
13
- const { stdout } = await this.terminal.run('yarn', 'info', packageName, 'versions', '--json');
14
- const versions = JSON.parse(stdout);
13
+ const output = await this.terminal.run('yarn', 'info', packageName, 'versions', '--json');
14
+ const versions = JSON.parse(output);
15
15
  if (!isYarnVersions(versions)) {
16
16
  throw new Error(`Failed to parse versions. versions=${JSON.stringify(versions)}`);
17
17
  }
@@ -1,7 +1,8 @@
1
- import execa from 'execa';
1
+ import { execa } from 'execa';
2
2
  // TODO: Add test
3
3
  export class Terminal {
4
4
  async run(command, ...args) {
5
- return await execa(command, args);
5
+ const { stdout } = await execa(command, args);
6
+ return stdout;
6
7
  }
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@octokit/rest": "20.1.1",
22
22
  "commander": "12.0.0",
23
- "execa": "5.1.1",
23
+ "execa": "9.0.2",
24
24
  "fp-ts": "2.16.5",
25
25
  "http-status-codes": "2.3.0",
26
26
  "io-ts": "2.2.21",
@@ -45,7 +45,7 @@
45
45
  "eslint-plugin-jest": "28.5.0",
46
46
  "jest": "29.7.0",
47
47
  "npm-run-all2": "6.1.2",
48
- "rimraf": "5.0.6",
48
+ "rimraf": "5.0.7",
49
49
  "ts-jest": "29.1.2",
50
50
  "tsx": "4.10.0",
51
51
  "typescript": "5.4.5",