@nosto/nosto-cli 1.2.4 → 1.2.6

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.
@@ -8,6 +8,12 @@ updates:
8
8
  prefix: "deps"
9
9
  open-pull-requests-limit: 10
10
10
  groups:
11
+ minor-updates:
12
+ update-types:
13
+ - "minor"
14
+ patch-updates:
15
+ update-types:
16
+ - "patch"
11
17
  eslint:
12
18
  patterns:
13
19
  - "@eslint/*"
@@ -18,12 +18,12 @@ jobs:
18
18
  runs-on: ubuntu-latest
19
19
  steps:
20
20
  - name: Checkout current branch
21
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
21
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22
22
  with:
23
23
  persist-credentials: false
24
24
 
25
25
  - name: Setup NodeJS
26
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
26
+ uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
27
27
  with:
28
28
  node-version: 24
29
29
  cache: "npm"
@@ -39,13 +39,13 @@ jobs:
39
39
 
40
40
  - name: Create GitHub App Token
41
41
  id: app-token
42
- uses: actions/create-github-app-token@b96fde71c0080358ed6e2d162f11c612c92a97d1
42
+ uses: actions/create-github-app-token@b96fde71c0080358ed6e2d162f11c612c92a97d1 # v2.1.4
43
43
  with:
44
44
  app-id: ${{ secrets.APP_ID }}
45
45
  private-key: ${{ secrets.APP_PRIVATE_KEY }}
46
46
 
47
47
  - name: Publish project
48
- uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90
48
+ uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
49
49
  id: semantic
50
50
  with:
51
51
  semantic_version: 25.0.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosto/nosto-cli",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "main": "./src/index.ts",
5
5
  "bin": {
6
6
  "nosto": "./src/bootstrap.mjs"
@@ -44,11 +44,11 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^20.1.0",
46
46
  "@commitlint/config-conventional": "^20.0.0",
47
- "@eslint/js": "^9.37.0",
47
+ "@eslint/js": "^10.0.1",
48
48
  "@types/node": "^25.0.2",
49
49
  "@vitest/coverage-v8": "^4.0.6",
50
50
  "@vitest/ui": "^4.0.6",
51
- "eslint": "^9.37.0",
51
+ "eslint": "^10.0.1",
52
52
  "eslint-config-prettier": "^10.1.8",
53
53
  "eslint-plugin-prettier": "^5.5.4",
54
54
  "eslint-plugin-simple-import-sort": "^12.1.1",
@@ -57,7 +57,7 @@
57
57
  "memfs": "^4.48.1",
58
58
  "msw": "^2.11.5",
59
59
  "prettier": "^3.6.2",
60
- "typescript-eslint": "^8.46.0",
60
+ "typescript-eslint": "^8.56.1-alpha.3",
61
61
  "vitest": "^4.0.6"
62
62
  },
63
63
  "publishConfig": {
package/src/api/retry.ts CHANGED
@@ -22,7 +22,9 @@ async function executeWithRetry<T>(
22
22
  if (operationType === "fetch") {
23
23
  Logger.error(`${chalk.red("✗")} ${chalk.cyan(filePath)}: ${errorMessage}`)
24
24
  }
25
- throw new Error(`Failed to ${operationType} ${filePath} after ${MAX_RETRIES} retries: ${errorMessage}`)
25
+ throw new Error(`Failed to ${operationType} ${filePath} after ${MAX_RETRIES} retries: ${errorMessage}`, {
26
+ cause: error
27
+ })
26
28
  }
27
29
  const delay = INITIAL_RETRY_DELAY * Math.pow(2, retryCount)
28
30
  Logger.warn(
@@ -32,10 +32,10 @@ export function parseAuthFile({ allowIncomplete }: { allowIncomplete?: boolean }
32
32
  return AuthConfigSchema.parse(rawConfig)
33
33
  } catch (error) {
34
34
  if (error instanceof z.ZodError) {
35
- throw new Error(`Invalid auth file at ${AuthConfigFilePath}: ${error.message}`)
35
+ throw new Error(`Invalid auth file at ${AuthConfigFilePath}: ${error.message}`, { cause: error })
36
36
  }
37
37
  if (error instanceof SyntaxError) {
38
- throw new Error(`Invalid JSON in auth file at ${AuthConfigFilePath}: ${error.message}`)
38
+ throw new Error(`Invalid JSON in auth file at ${AuthConfigFilePath}: ${error.message}`, { cause: error })
39
39
  }
40
40
  throw error
41
41
  }
@@ -29,10 +29,10 @@ export function parseConfigFile({
29
29
  return PartialPersistentConfigSchema.parse(rawConfig)
30
30
  } catch (error) {
31
31
  if (error instanceof z.ZodError) {
32
- throw new Error(`Invalid configuration file at ${configPath}: ${error.message}`)
32
+ throw new Error(`Invalid configuration file at ${configPath}: ${error.message}`, { cause: error })
33
33
  }
34
34
  if (error instanceof SyntaxError) {
35
- throw new Error(`Invalid JSON in configuration file at ${configPath}: ${error.message}`)
35
+ throw new Error(`Invalid JSON in configuration file at ${configPath}: ${error.message}`, { cause: error })
36
36
  }
37
37
  throw error
38
38
  }
@@ -14,7 +14,7 @@ type RedeployOptions = {
14
14
  }
15
15
 
16
16
  export async function deploymentsRedeploy({ deploymentId, force }: RedeployOptions) {
17
- let selectedDeployment = null
17
+ let selectedDeployment
18
18
  let selectedDeploymentId
19
19
 
20
20
  if (deploymentId) {