@symbo.ls/create 2.10.176 → 2.10.177

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/package.json +2 -2
  2. package/syncExtend.js +3 -5
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.176",
3
+ "version": "2.10.177",
4
4
  "license": "MIT",
5
- "gitHead": "b482e608f9a8b24e0121c39cc907452c51225ea8",
5
+ "gitHead": "9ccec871ab3f201c9b42b4f05f49a1497454c87e",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {
package/syncExtend.js CHANGED
@@ -8,14 +8,12 @@ const { NODE_ENV } = process.env
8
8
  export const applySyncDebug = (extend, options) => {
9
9
  const { editor } = options
10
10
  if (!editor) return extend
11
- if (editor.debug) extend.push[DevFocus]
12
- if (editor.socket) extend.push[Sync]
11
+ if (editor.inspect) extend.push[DevFocus]
12
+ if (editor.liveSync) extend.push[Sync]
13
13
  return extend
14
14
  }
15
15
 
16
16
  export const applyKeyDebugListener = (root, options) => {
17
17
  const { editor } = options
18
- if (editor && editor.debug) inspectOnKey(root)
18
+ if (editor && editor.inspect) inspectOnKey(root)
19
19
  }
20
-
21
- const extend = isProduction(NODE_ENV) || isTest(NODE_ENV) [Sync, DevFocus]