@capawesome/cli 2.1.3 → 2.1.4
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/CHANGELOG.md +7 -0
- package/dist/commands/doctor.js +3 -1
- package/dist/index.js +3 -1
- package/dist/index.test.js +3 -1
- package/dist/services/update.js +3 -1
- package/dist/utils/http-client.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.1.4](https://github.com/capawesome-team/cli/compare/v2.1.3...v2.1.4) (2025-08-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* `Unexpected token 'with'`error on Windows ([#75](https://github.com/capawesome-team/cli/issues/75)) ([1f20e43](https://github.com/capawesome-team/cli/commit/1f20e4318add70a7919468ddd9ad7742306b3e64))
|
|
11
|
+
|
|
5
12
|
## [2.1.3](https://github.com/capawesome-team/cli/compare/v2.1.2...v2.1.3) (2025-08-28)
|
|
6
13
|
|
|
7
14
|
|
package/dist/commands/doctor.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
1
2
|
import { defineCommand } from '@robingenz/zli';
|
|
2
3
|
import consola from 'consola';
|
|
3
4
|
import systeminformation from 'systeminformation';
|
|
4
|
-
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
const pkg = require('../../package.json');
|
|
5
7
|
export default defineCommand({
|
|
6
8
|
description: 'Prints out neccessary information for debugging',
|
|
7
9
|
action: async (options, args) => {
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,9 @@ import * as Sentry from '@sentry/node';
|
|
|
7
7
|
import { AxiosError } from 'axios';
|
|
8
8
|
import consola from 'consola';
|
|
9
9
|
import { ZodError } from 'zod';
|
|
10
|
-
import
|
|
10
|
+
import { createRequire } from 'module';
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
const pkg = require('../package.json');
|
|
11
13
|
const config = defineConfig({
|
|
12
14
|
meta: {
|
|
13
15
|
name: pkg.name,
|
package/dist/index.test.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
1
2
|
import { defineConfig, processConfig } from '@robingenz/zli';
|
|
2
3
|
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
3
|
-
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
5
|
+
const pkg = require('../package.json');
|
|
4
6
|
const config = defineConfig({
|
|
5
7
|
meta: {
|
|
6
8
|
name: pkg.name,
|
package/dist/services/update.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
1
2
|
import consola from 'consola';
|
|
2
3
|
import * as semver from 'semver';
|
|
3
|
-
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
5
|
+
const pkg = require('../../package.json');
|
|
4
6
|
import httpClient from '../utils/http-client.js';
|
|
5
7
|
class UpdateServiceImpl {
|
|
6
8
|
httpClient;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
1
2
|
import configService from '../services/config.js';
|
|
2
3
|
import axios from 'axios';
|
|
3
4
|
import axiosRetry from 'axios-retry';
|
|
4
|
-
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
const pkg = require('../../package.json');
|
|
5
7
|
// Register middleware to retry failed requests
|
|
6
8
|
axiosRetry(axios, {
|
|
7
9
|
retries: 3,
|