@bagelink/vue 1.12.16 → 1.12.19

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.12.16",
4
+ "version": "1.12.19",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -90,7 +90,7 @@
90
90
  "signature_pad": "^5.0.9",
91
91
  "vue-i18n": "^11.2.8",
92
92
  "vue-toastification": "^2.0.0-rc.5",
93
- "@bagelink/utils": "1.12.16"
93
+ "@bagelink/utils": "1.12.19"
94
94
  },
95
95
  "scripts": {
96
96
  "dev": "tsx watch src/index.ts",
@@ -178,10 +178,10 @@ export function formatting(state: EditorState) {
178
178
 
179
179
  const clear = () => {
180
180
  console.log('[Clear Format] Starting clear format process', state)
181
- console.assert(state, '[Clear Format] State must exist')
182
- console.assert(state.doc, '[Clear Format] Document must exist')
183
- console.assert(state.range, '[Clear Format] Range must exist')
184
- console.assert(state.selection, '[Clear Format] Selection must exist')
181
+ console.assert(!!state, '[Clear Format] State must exist')
182
+ console.assert(!!state.doc, '[Clear Format] Document must exist')
183
+ console.assert(!!state.range, '[Clear Format] Range must exist')
184
+ console.assert(!!state.selection, '[Clear Format] Selection must exist')
185
185
 
186
186
  if (!state.doc || !state.range || !state.selection) {
187
187
  console.log('[Clear Format] No document or selection')