@symbo.ls/cli 2.32.31 → 2.33.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.
Files changed (2) hide show
  1. package/bin/fetch.js +4 -4
  2. package/package.json +5 -5
package/bin/fetch.js CHANGED
@@ -34,7 +34,7 @@ try {
34
34
  console.error('Please include symbols.json to your root of respository')
35
35
  }
36
36
 
37
- export const fetchFromCli = async opts => {
37
+ export const fetchFromCli = async (opts) => {
38
38
  const {
39
39
  dev,
40
40
  verbose,
@@ -44,7 +44,7 @@ export const fetchFromCli = async opts => {
44
44
  update,
45
45
  force
46
46
  } = opts
47
- await rc.then(async data => {
47
+ await rc.then(async (data) => {
48
48
  const { key, framework, distDir, metadata } = data || {}
49
49
 
50
50
  const endpoint = dev || utils.isLocal() ? API_URL_LOCAL : API_URL
@@ -54,7 +54,7 @@ export const fetchFromCli = async opts => {
54
54
  const body = await fetchRemote(key, {
55
55
  endpoint,
56
56
  metadata: metadata || metadataOpt,
57
- onError: e => {
57
+ onError: (e) => {
58
58
  console.log(chalk.red('Failed to fetch:'), key)
59
59
  if (verbose) console.error(e)
60
60
  else console.log(debugMsg)
@@ -64,7 +64,7 @@ export const fetchFromCli = async opts => {
64
64
  // console.log('ON FETCH:')
65
65
  // console.log(body.components.Configuration)
66
66
 
67
- if (!body) return
67
+ if (!body || body.error) return
68
68
 
69
69
  const { version, ...config } = body
70
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/cli",
3
- "version": "2.32.31",
3
+ "version": "2.33.0",
4
4
  "description": "Fetch your Symbols configuration",
5
5
  "main": "bin/fetch.js",
6
6
  "author": "Symbols",
@@ -15,9 +15,9 @@
15
15
  "vpatch": "npm version patch && npm publish"
16
16
  },
17
17
  "dependencies": {
18
- "@symbo.ls/fetch": "^2.32.31",
19
- "@symbo.ls/init": "^2.32.31",
20
- "@symbo.ls/socket": "^2.32.31",
18
+ "@symbo.ls/fetch": "^2.33.0",
19
+ "@symbo.ls/init": "^2.33.0",
20
+ "@symbo.ls/socket": "^2.33.0",
21
21
  "chalk": "^5.4.1",
22
22
  "commander": "^13.1.0",
23
23
  "diff": "^5.2.0",
@@ -26,5 +26,5 @@
26
26
  "node-fetch": "^3.3.2",
27
27
  "v8-compile-cache": "^2.4.0"
28
28
  },
29
- "gitHead": "d7d323ff06e64325cfde1908714730064c97d517"
29
+ "gitHead": "d68b0f99dd5a8a138969a92dc5d769a5708dac9e"
30
30
  }