@symbo.ls/cli 2.10.135 → 2.10.148
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/bin/fetch.js +2 -2
- package/bin/sync.js +2 -2
- package/package.json +2 -2
package/bin/fetch.js
CHANGED
|
@@ -6,7 +6,7 @@ import { loadModule } from './require.js'
|
|
|
6
6
|
import { exec } from 'child_process'
|
|
7
7
|
import { program } from './program.js'
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import fetch from '@symbo.ls/fetch'
|
|
10
10
|
const { fetchRemote } = fetch
|
|
11
11
|
|
|
12
12
|
const PACKAGE_PATH = process.cwd() + '/package.json'
|
|
@@ -75,7 +75,7 @@ program
|
|
|
75
75
|
.action(async (options) => {
|
|
76
76
|
rc.then(async data => {
|
|
77
77
|
const opts = { ...data, ...options }
|
|
78
|
-
const key = data.key || options.key
|
|
78
|
+
const key = data.key || options && options.key
|
|
79
79
|
|
|
80
80
|
const body = await fetchRemote(key, { endpoint: 'api.symbols.dev' })
|
|
81
81
|
const { version, ...config } = body
|
package/bin/sync.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { updateDynamycFile } from '@symbo.ls/socket'
|
|
4
|
-
import * as
|
|
4
|
+
import * as socketClient from '@symbo.ls/socket/client.js'
|
|
5
5
|
import { program } from './program.js'
|
|
6
6
|
import { loadModule } from './require.js'
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@ program
|
|
|
20
20
|
rc.then(data => {
|
|
21
21
|
const opts = { ...data, ...options }
|
|
22
22
|
const key = data.key || options.key
|
|
23
|
-
|
|
23
|
+
socketClient.connect(key, {
|
|
24
24
|
onConnect: (id, socket) => {
|
|
25
25
|
console.log(id)
|
|
26
26
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.148",
|
|
4
4
|
"description": "Fetch your Symbols configuration",
|
|
5
5
|
"main": "bin/fetch.js",
|
|
6
6
|
"author": "Symbols",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"standard": {
|
|
28
28
|
"parser": "babel-eslint"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "99ff97342558bb96790aa71786360d0d899f0e79"
|
|
31
31
|
}
|