mnemonica 1.4.6 → 1.4.7
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/FOR_HUMANS.md +1 -1
- package/README.md +1 -1
- package/build/api/types/TypeProxy.js +3 -3
- package/build/api/types/compileNewModificatorFunctionBody.js +1 -1
- package/build/api/types/createInstanceModificator.d.ts +1 -0
- package/build/api/types/createInstanceModificator.js +1 -1
- package/build/api/types/index.js +1 -1
- package/build/api/utils/index.d.ts +2 -2
- package/build/api/utils/index.js +9 -5
- package/build/constants/index.d.ts +3 -1
- package/build/constants/index.js +1 -1
- package/build/descriptors/types/index.js +4 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +3 -3
- package/build/types/index.d.ts +26 -6
- package/build/types/index.js +1 -1
- package/build/utils/fork.js +6 -3
- package/build/utils/index.js +2 -2
- package/build/utils/lineage.js +2 -3
- package/docs/async-constructors.md +21 -0
- package/docs/typed-lookup.md +36 -0
- package/package.json +2 -2
- package/src/api/types/TypeProxy.ts +6 -4
- package/src/api/types/compileNewModificatorFunctionBody.ts +5 -1
- package/src/api/types/createInstanceModificator.ts +1 -2
- package/src/api/types/index.ts +4 -0
- package/src/api/utils/index.ts +15 -12
- package/src/constants/index.ts +3 -1
- package/src/descriptors/types/index.ts +3 -0
- package/src/index.ts +27 -33
- package/src/types/index.ts +102 -16
- package/src/utils/fork.ts +11 -4
- package/src/utils/index.ts +5 -6
- package/src/utils/lineage.ts +6 -7
package/src/utils/lineage.ts
CHANGED
|
@@ -13,8 +13,6 @@ import {
|
|
|
13
13
|
} from '../api/types/Props';
|
|
14
14
|
import { constants } from '../constants';
|
|
15
15
|
|
|
16
|
-
const { SymbolConfig } = constants;
|
|
17
|
-
|
|
18
16
|
import type {
|
|
19
17
|
LineageGraph,
|
|
20
18
|
LineageNode,
|
|
@@ -181,11 +179,12 @@ export const lineage = ( instances: object[], options?: LineageOptions ): Lineag
|
|
|
181
179
|
const { __collection__: collection } = baseProps;
|
|
182
180
|
// every collection carries a name by construction (the default
|
|
183
181
|
// collection is 'defaultTypes', unnamed customs are auto-named), so
|
|
184
|
-
// no fallback is needed here
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const
|
|
182
|
+
// no fallback is needed here; CollectionDef types its SymbolConfig
|
|
183
|
+
// entry as CollectionConfig with that name. Read through constants
|
|
184
|
+
// directly: a local alias (const or destructured) widens the unique
|
|
185
|
+
// symbol to symbol and loses the typed key
|
|
186
|
+
const collectionConfig = collection[ constants.SymbolConfig ];
|
|
187
|
+
const collectionName: string = collectionConfig.name;
|
|
189
188
|
|
|
190
189
|
const node: LineageNode = {
|
|
191
190
|
type : {
|