@difizen/libro-codemirror 0.2.26 → 0.2.28

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 +5 -5
  2. package/src/mode.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-codemirror",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -41,10 +41,10 @@
41
41
  "@codemirror/search": "^6.0.0",
42
42
  "@codemirror/state": "^6.4.0",
43
43
  "@codemirror/view": "^6.23.0",
44
- "@difizen/libro-code-editor": "^0.2.26",
45
- "@difizen/libro-common": "^0.2.26",
46
- "@difizen/libro-lsp": "^0.2.26",
47
- "@difizen/libro-rendermime": "^0.2.26",
44
+ "@difizen/libro-code-editor": "^0.2.28",
45
+ "@difizen/libro-common": "^0.2.28",
46
+ "@difizen/libro-lsp": "^0.2.28",
47
+ "@difizen/libro-rendermime": "^0.2.28",
48
48
  "@difizen/mana-app": "latest",
49
49
  "@lezer/common": "^1.2.1",
50
50
  "@lezer/highlight": "^1.1.4",
package/src/mode.ts CHANGED
@@ -187,7 +187,7 @@ export function findByFileName(name: string): ISpec | null {
187
187
  export function findBest(mode: string | ISpec, fallback = true): ISpec | null {
188
188
  const modename = typeof mode === 'string' ? mode : mode.name;
189
189
  const mimetype = typeof mode !== 'string' ? mode.mime : modename;
190
- const ext = typeof mode !== 'string' ? mode.extensions ?? [] : [];
190
+ const ext = typeof mode !== 'string' ? (mode.extensions ?? []) : [];
191
191
 
192
192
  return (
193
193
  (modename ? findByName(modename) : null) ??