atom.io 0.9.4 → 0.9.5

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.
@@ -16,17 +16,19 @@ import { StoreEditor } from "./StateEditor"
16
16
 
17
17
  const findStateTypeState = selectorFamily<string, { key: string }>({
18
18
  key: `👁‍🗨 State Type`,
19
- get: (token) => ({ get }) => {
20
- let state: unknown
21
- try {
22
- state = get(token as any)
23
- } catch (error) {
24
- return `error`
25
- }
26
- if (state === undefined) return `undefined`
27
- if (isJson(state)) return refineJsonType(state).type
28
- return Object.getPrototypeOf(state).constructor.name
29
- },
19
+ get:
20
+ (token) =>
21
+ ({ get }) => {
22
+ let state: unknown
23
+ try {
24
+ state = get(token as any)
25
+ } catch (error) {
26
+ return `error`
27
+ }
28
+ if (state === undefined) return `undefined`
29
+ if (isJson(state)) return refineJsonType(state).type
30
+ return Object.getPrototypeOf(state).constructor.name
31
+ },
30
32
  })
31
33
 
32
34
  export const StateIndexLeafNode: FC<{