joist-orm 1.293.0 → 2.0.0
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/build/{drivers/PostgresDriver.d.ts → PostgresDriver.d.ts} +1 -4
- package/build/PostgresDriver.d.ts.map +1 -0
- package/build/{drivers/PostgresDriver.js → PostgresDriver.js} +49 -58
- package/build/PostgresDriver.js.map +1 -0
- package/build/codegen.d.ts +2 -0
- package/build/codegen.d.ts.map +1 -0
- package/build/codegen.js +29 -0
- package/build/codegen.js.map +1 -0
- package/build/graphql-codegen-export.d.ts +2 -0
- package/build/graphql-codegen-export.d.ts.map +1 -0
- package/build/{drivers/index.js → graphql-codegen-export.js} +3 -5
- package/build/graphql-codegen-export.js.map +1 -0
- package/build/graphql-export.d.ts +2 -0
- package/build/graphql-export.d.ts.map +1 -0
- package/build/graphql-export.js +19 -0
- package/build/graphql-export.js.map +1 -0
- package/build/index.d.ts +3 -127
- package/build/index.d.ts.map +1 -1
- package/build/index.js +8 -282
- package/build/index.js.map +1 -1
- package/build/knex-export.d.ts +2 -0
- package/build/knex-export.d.ts.map +1 -0
- package/build/knex-export.js +19 -0
- package/build/knex-export.js.map +1 -0
- package/build/pg-migrate.d.ts +2 -0
- package/build/pg-migrate.d.ts.map +1 -0
- package/build/pg-migrate.js +30 -0
- package/build/pg-migrate.js.map +1 -0
- package/build/postgres-driver.d.ts +2 -0
- package/build/postgres-driver.d.ts.map +1 -0
- package/build/postgres-driver.js +7 -0
- package/build/postgres-driver.js.map +1 -0
- package/build/tests-export.d.ts +2 -0
- package/build/tests-export.d.ts.map +1 -0
- package/build/tests-export.js +19 -0
- package/build/tests-export.js.map +1 -0
- package/build/trusted.d.ts +5 -0
- package/build/trusted.d.ts.map +1 -0
- package/build/trusted.js +15 -0
- package/build/trusted.js.map +1 -0
- package/package.json +85 -16
- package/build/AliasAssigner.d.ts +0 -7
- package/build/AliasAssigner.d.ts.map +0 -1
- package/build/AliasAssigner.js +0 -30
- package/build/AliasAssigner.js.map +0 -1
- package/build/Aliases.d.ts +0 -110
- package/build/Aliases.d.ts.map +0 -1
- package/build/Aliases.js +0 -456
- package/build/Aliases.js.map +0 -1
- package/build/BaseEntity.d.ts +0 -66
- package/build/BaseEntity.d.ts.map +0 -1
- package/build/BaseEntity.js +0 -120
- package/build/BaseEntity.js.map +0 -1
- package/build/ConditionBuilder.d.ts +0 -50
- package/build/ConditionBuilder.d.ts.map +0 -1
- package/build/ConditionBuilder.js +0 -178
- package/build/ConditionBuilder.js.map +0 -1
- package/build/Entity.d.ts +0 -38
- package/build/Entity.d.ts.map +0 -1
- package/build/Entity.js +0 -8
- package/build/Entity.js.map +0 -1
- package/build/EntityFields.d.ts +0 -37
- package/build/EntityFields.d.ts.map +0 -1
- package/build/EntityFields.js +0 -3
- package/build/EntityFields.js.map +0 -1
- package/build/EntityFilter.d.ts +0 -113
- package/build/EntityFilter.d.ts.map +0 -1
- package/build/EntityFilter.js +0 -3
- package/build/EntityFilter.js.map +0 -1
- package/build/EntityGraphQLFilter.d.ts +0 -51
- package/build/EntityGraphQLFilter.d.ts.map +0 -1
- package/build/EntityGraphQLFilter.js +0 -54
- package/build/EntityGraphQLFilter.js.map +0 -1
- package/build/EntityManager.d.ts +0 -734
- package/build/EntityManager.d.ts.map +0 -1
- package/build/EntityManager.js +0 -2069
- package/build/EntityManager.js.map +0 -1
- package/build/EntityMetadata.d.ts +0 -185
- package/build/EntityMetadata.d.ts.map +0 -1
- package/build/EntityMetadata.js +0 -61
- package/build/EntityMetadata.js.map +0 -1
- package/build/EnumMetadata.d.ts +0 -15
- package/build/EnumMetadata.d.ts.map +0 -1
- package/build/EnumMetadata.js +0 -3
- package/build/EnumMetadata.js.map +0 -1
- package/build/FlushLock.d.ts +0 -26
- package/build/FlushLock.d.ts.map +0 -1
- package/build/FlushLock.js +0 -57
- package/build/FlushLock.js.map +0 -1
- package/build/HintTree.d.ts +0 -42
- package/build/HintTree.d.ts.map +0 -1
- package/build/HintTree.js +0 -64
- package/build/HintTree.js.map +0 -1
- package/build/IndexManager.d.ts +0 -30
- package/build/IndexManager.d.ts.map +0 -1
- package/build/IndexManager.js +0 -206
- package/build/IndexManager.js.map +0 -1
- package/build/InstanceData.d.ts +0 -59
- package/build/InstanceData.d.ts.map +0 -1
- package/build/InstanceData.js +0 -162
- package/build/InstanceData.js.map +0 -1
- package/build/IsLoadedCache.d.ts +0 -32
- package/build/IsLoadedCache.d.ts.map +0 -1
- package/build/IsLoadedCache.js +0 -80
- package/build/IsLoadedCache.js.map +0 -1
- package/build/JoinRows.d.ts +0 -75
- package/build/JoinRows.d.ts.map +0 -1
- package/build/JoinRows.js +0 -246
- package/build/JoinRows.js.map +0 -1
- package/build/PluginManager.d.ts +0 -90
- package/build/PluginManager.d.ts.map +0 -1
- package/build/PluginManager.js +0 -97
- package/build/PluginManager.js.map +0 -1
- package/build/QueryParser.d.ts +0 -271
- package/build/QueryParser.d.ts.map +0 -1
- package/build/QueryParser.js +0 -853
- package/build/QueryParser.js.map +0 -1
- package/build/QueryParser.pruning.d.ts +0 -5
- package/build/QueryParser.pruning.d.ts.map +0 -1
- package/build/QueryParser.pruning.js +0 -118
- package/build/QueryParser.pruning.js.map +0 -1
- package/build/QueryVisitor.d.ts +0 -19
- package/build/QueryVisitor.d.ts.map +0 -1
- package/build/QueryVisitor.js +0 -84
- package/build/QueryVisitor.js.map +0 -1
- package/build/ReactionsManager.d.ts +0 -84
- package/build/ReactionsManager.d.ts.map +0 -1
- package/build/ReactionsManager.js +0 -307
- package/build/ReactionsManager.js.map +0 -1
- package/build/Todo.d.ts +0 -31
- package/build/Todo.d.ts.map +0 -1
- package/build/Todo.js +0 -73
- package/build/Todo.js.map +0 -1
- package/build/caches.d.ts +0 -6
- package/build/caches.d.ts.map +0 -1
- package/build/caches.js +0 -42
- package/build/caches.js.map +0 -1
- package/build/changes.d.ts +0 -79
- package/build/changes.d.ts.map +0 -1
- package/build/changes.js +0 -251
- package/build/changes.js.map +0 -1
- package/build/config.d.ts +0 -237
- package/build/config.d.ts.map +0 -1
- package/build/config.js +0 -298
- package/build/config.js.map +0 -1
- package/build/config.test.d.ts +0 -2
- package/build/config.test.d.ts.map +0 -1
- package/build/config.test.js +0 -53
- package/build/config.test.js.map +0 -1
- package/build/configure.d.ts +0 -13
- package/build/configure.d.ts.map +0 -1
- package/build/configure.js +0 -329
- package/build/configure.js.map +0 -1
- package/build/dataloaders/findByUniqueDataLoader.d.ts +0 -7
- package/build/dataloaders/findByUniqueDataLoader.d.ts.map +0 -1
- package/build/dataloaders/findByUniqueDataLoader.js +0 -47
- package/build/dataloaders/findByUniqueDataLoader.js.map +0 -1
- package/build/dataloaders/findCountDataLoader.d.ts +0 -7
- package/build/dataloaders/findCountDataLoader.d.ts.map +0 -1
- package/build/dataloaders/findCountDataLoader.js +0 -74
- package/build/dataloaders/findCountDataLoader.js.map +0 -1
- package/build/dataloaders/findDataLoader.d.ts +0 -37
- package/build/dataloaders/findDataLoader.d.ts.map +0 -1
- package/build/dataloaders/findDataLoader.js +0 -337
- package/build/dataloaders/findDataLoader.js.map +0 -1
- package/build/dataloaders/findIdsDataLoader.d.ts +0 -7
- package/build/dataloaders/findIdsDataLoader.d.ts.map +0 -1
- package/build/dataloaders/findIdsDataLoader.js +0 -74
- package/build/dataloaders/findIdsDataLoader.js.map +0 -1
- package/build/dataloaders/findOrCreateDataLoader.d.ts +0 -13
- package/build/dataloaders/findOrCreateDataLoader.d.ts.map +0 -1
- package/build/dataloaders/findOrCreateDataLoader.js +0 -174
- package/build/dataloaders/findOrCreateDataLoader.js.map +0 -1
- package/build/dataloaders/lensDataLoader.d.ts +0 -12
- package/build/dataloaders/lensDataLoader.d.ts.map +0 -1
- package/build/dataloaders/lensDataLoader.js +0 -180
- package/build/dataloaders/lensDataLoader.js.map +0 -1
- package/build/dataloaders/loadDataLoader.d.ts +0 -11
- package/build/dataloaders/loadDataLoader.d.ts.map +0 -1
- package/build/dataloaders/loadDataLoader.js +0 -54
- package/build/dataloaders/loadDataLoader.js.map +0 -1
- package/build/dataloaders/manyToManyDataLoader.d.ts +0 -8
- package/build/dataloaders/manyToManyDataLoader.d.ts.map +0 -1
- package/build/dataloaders/manyToManyDataLoader.js +0 -74
- package/build/dataloaders/manyToManyDataLoader.js.map +0 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.ts +0 -8
- package/build/dataloaders/manyToManyFindDataLoader.d.ts.map +0 -1
- package/build/dataloaders/manyToManyFindDataLoader.js +0 -70
- package/build/dataloaders/manyToManyFindDataLoader.js.map +0 -1
- package/build/dataloaders/oneToManyDataLoader.d.ts +0 -7
- package/build/dataloaders/oneToManyDataLoader.d.ts.map +0 -1
- package/build/dataloaders/oneToManyDataLoader.js +0 -60
- package/build/dataloaders/oneToManyDataLoader.js.map +0 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.ts +0 -8
- package/build/dataloaders/oneToManyFindDataLoader.d.ts.map +0 -1
- package/build/dataloaders/oneToManyFindDataLoader.js +0 -71
- package/build/dataloaders/oneToManyFindDataLoader.js.map +0 -1
- package/build/dataloaders/oneToOneDataLoader.d.ts +0 -7
- package/build/dataloaders/oneToOneDataLoader.d.ts.map +0 -1
- package/build/dataloaders/oneToOneDataLoader.js +0 -59
- package/build/dataloaders/oneToOneDataLoader.js.map +0 -1
- package/build/dataloaders/populateDataLoader.d.ts +0 -13
- package/build/dataloaders/populateDataLoader.d.ts.map +0 -1
- package/build/dataloaders/populateDataLoader.js +0 -148
- package/build/dataloaders/populateDataLoader.js.map +0 -1
- package/build/dataloaders/recursiveChildrenDataLoader.d.ts +0 -7
- package/build/dataloaders/recursiveChildrenDataLoader.d.ts.map +0 -1
- package/build/dataloaders/recursiveChildrenDataLoader.js +0 -77
- package/build/dataloaders/recursiveChildrenDataLoader.js.map +0 -1
- package/build/dataloaders/recursiveParentsDataLoader.d.ts +0 -7
- package/build/dataloaders/recursiveParentsDataLoader.d.ts.map +0 -1
- package/build/dataloaders/recursiveParentsDataLoader.js +0 -59
- package/build/dataloaders/recursiveParentsDataLoader.js.map +0 -1
- package/build/defaults.d.ts +0 -54
- package/build/defaults.d.ts.map +0 -1
- package/build/defaults.js +0 -282
- package/build/defaults.js.map +0 -1
- package/build/driverApi.d.ts +0 -19
- package/build/driverApi.d.ts.map +0 -1
- package/build/driverApi.js +0 -17
- package/build/driverApi.js.map +0 -1
- package/build/drivers/Driver.d.ts +0 -26
- package/build/drivers/Driver.d.ts.map +0 -1
- package/build/drivers/Driver.js +0 -3
- package/build/drivers/Driver.js.map +0 -1
- package/build/drivers/EntityWriter.d.ts +0 -64
- package/build/drivers/EntityWriter.d.ts.map +0 -1
- package/build/drivers/EntityWriter.js +0 -237
- package/build/drivers/EntityWriter.js.map +0 -1
- package/build/drivers/IdAssigner.d.ts +0 -50
- package/build/drivers/IdAssigner.d.ts.map +0 -1
- package/build/drivers/IdAssigner.js +0 -133
- package/build/drivers/IdAssigner.js.map +0 -1
- package/build/drivers/PostgresDriver.d.ts.map +0 -1
- package/build/drivers/PostgresDriver.js.map +0 -1
- package/build/drivers/buildRawQuery.d.ts +0 -20
- package/build/drivers/buildRawQuery.d.ts.map +0 -1
- package/build/drivers/buildRawQuery.js +0 -148
- package/build/drivers/buildRawQuery.js.map +0 -1
- package/build/drivers/buildUtils.d.ts +0 -4
- package/build/drivers/buildUtils.d.ts.map +0 -1
- package/build/drivers/buildUtils.js +0 -79
- package/build/drivers/buildUtils.js.map +0 -1
- package/build/drivers/index.d.ts +0 -5
- package/build/drivers/index.d.ts.map +0 -1
- package/build/drivers/index.js.map +0 -1
- package/build/fields.d.ts +0 -24
- package/build/fields.d.ts.map +0 -1
- package/build/fields.js +0 -161
- package/build/fields.js.map +0 -1
- package/build/getProperties.d.ts +0 -28
- package/build/getProperties.d.ts.map +0 -1
- package/build/getProperties.js +0 -141
- package/build/getProperties.js.map +0 -1
- package/build/json.d.ts +0 -77
- package/build/json.d.ts.map +0 -1
- package/build/json.js +0 -116
- package/build/json.js.map +0 -1
- package/build/k.d.ts +0 -2
- package/build/k.d.ts.map +0 -1
- package/build/k.js +0 -9
- package/build/k.js.map +0 -1
- package/build/keys.d.ts +0 -49
- package/build/keys.d.ts.map +0 -1
- package/build/keys.js +0 -195
- package/build/keys.js.map +0 -1
- package/build/keywords.d.ts +0 -5
- package/build/keywords.d.ts.map +0 -1
- package/build/keywords.js +0 -124
- package/build/keywords.js.map +0 -1
- package/build/loadHints.d.ts +0 -112
- package/build/loadHints.d.ts.map +0 -1
- package/build/loadHints.js +0 -75
- package/build/loadHints.js.map +0 -1
- package/build/loadLens.d.ts +0 -66
- package/build/loadLens.d.ts.map +0 -1
- package/build/loadLens.js +0 -287
- package/build/loadLens.js.map +0 -1
- package/build/logging/FactoryLogger.d.ts +0 -24
- package/build/logging/FactoryLogger.d.ts.map +0 -1
- package/build/logging/FactoryLogger.js +0 -77
- package/build/logging/FactoryLogger.js.map +0 -1
- package/build/logging/FieldLogger.d.ts +0 -27
- package/build/logging/FieldLogger.d.ts.map +0 -1
- package/build/logging/FieldLogger.js +0 -69
- package/build/logging/FieldLogger.js.map +0 -1
- package/build/logging/ReactionLogger.d.ts +0 -23
- package/build/logging/ReactionLogger.d.ts.map +0 -1
- package/build/logging/ReactionLogger.js +0 -65
- package/build/logging/ReactionLogger.js.map +0 -1
- package/build/newEntity.d.ts +0 -45
- package/build/newEntity.d.ts.map +0 -1
- package/build/newEntity.js +0 -106
- package/build/newEntity.js.map +0 -1
- package/build/newTestInstance.d.ts +0 -193
- package/build/newTestInstance.d.ts.map +0 -1
- package/build/newTestInstance.js +0 -738
- package/build/newTestInstance.js.map +0 -1
- package/build/normalizeHints.d.ts +0 -16
- package/build/normalizeHints.d.ts.map +0 -1
- package/build/normalizeHints.js +0 -31
- package/build/normalizeHints.js.map +0 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.ts +0 -9
- package/build/plugins/ImmutableEntitiesPlugin.d.ts.map +0 -1
- package/build/plugins/ImmutableEntitiesPlugin.js +0 -21
- package/build/plugins/ImmutableEntitiesPlugin.js.map +0 -1
- package/build/plugins/PreloadPlugin.d.ts +0 -69
- package/build/plugins/PreloadPlugin.d.ts.map +0 -1
- package/build/plugins/PreloadPlugin.js +0 -3
- package/build/plugins/PreloadPlugin.js.map +0 -1
- package/build/preloading/JsonAggregatePreloader.d.ts +0 -16
- package/build/preloading/JsonAggregatePreloader.d.ts.map +0 -1
- package/build/preloading/JsonAggregatePreloader.js +0 -238
- package/build/preloading/JsonAggregatePreloader.js.map +0 -1
- package/build/preloading/canPreload.d.ts +0 -3
- package/build/preloading/canPreload.d.ts.map +0 -1
- package/build/preloading/canPreload.js +0 -21
- package/build/preloading/canPreload.js.map +0 -1
- package/build/preloading/partitionHint.d.ts +0 -5
- package/build/preloading/partitionHint.d.ts.map +0 -1
- package/build/preloading/partitionHint.js +0 -56
- package/build/preloading/partitionHint.js.map +0 -1
- package/build/reactiveHints.d.ts +0 -129
- package/build/reactiveHints.d.ts.map +0 -1
- package/build/reactiveHints.js +0 -458
- package/build/reactiveHints.js.map +0 -1
- package/build/relations/AbstractPropertyImpl.d.ts +0 -8
- package/build/relations/AbstractPropertyImpl.d.ts.map +0 -1
- package/build/relations/AbstractPropertyImpl.js +0 -15
- package/build/relations/AbstractPropertyImpl.js.map +0 -1
- package/build/relations/AbstractRelationImpl.d.ts +0 -36
- package/build/relations/AbstractRelationImpl.d.ts.map +0 -1
- package/build/relations/AbstractRelationImpl.js +0 -19
- package/build/relations/AbstractRelationImpl.js.map +0 -1
- package/build/relations/Collection.d.ts +0 -28
- package/build/relations/Collection.d.ts.map +0 -1
- package/build/relations/Collection.js +0 -18
- package/build/relations/Collection.js.map +0 -1
- package/build/relations/CustomCollection.d.ts +0 -69
- package/build/relations/CustomCollection.d.ts.map +0 -1
- package/build/relations/CustomCollection.js +0 -166
- package/build/relations/CustomCollection.js.map +0 -1
- package/build/relations/CustomReference.d.ts +0 -71
- package/build/relations/CustomReference.d.ts.map +0 -1
- package/build/relations/CustomReference.js +0 -152
- package/build/relations/CustomReference.js.map +0 -1
- package/build/relations/LargeCollection.d.ts +0 -19
- package/build/relations/LargeCollection.d.ts.map +0 -1
- package/build/relations/LargeCollection.js +0 -3
- package/build/relations/LargeCollection.js.map +0 -1
- package/build/relations/ManyToManyCollection.d.ts +0 -44
- package/build/relations/ManyToManyCollection.d.ts.map +0 -1
- package/build/relations/ManyToManyCollection.js +0 -268
- package/build/relations/ManyToManyCollection.js.map +0 -1
- package/build/relations/ManyToManyLargeCollection.d.ts +0 -30
- package/build/relations/ManyToManyLargeCollection.d.ts.map +0 -1
- package/build/relations/ManyToManyLargeCollection.js +0 -119
- package/build/relations/ManyToManyLargeCollection.js.map +0 -1
- package/build/relations/ManyToOneReference.d.ts +0 -121
- package/build/relations/ManyToOneReference.d.ts.map +0 -1
- package/build/relations/ManyToOneReference.js +0 -389
- package/build/relations/ManyToOneReference.js.map +0 -1
- package/build/relations/OneToManyCollection.d.ts +0 -58
- package/build/relations/OneToManyCollection.d.ts.map +0 -1
- package/build/relations/OneToManyCollection.js +0 -347
- package/build/relations/OneToManyCollection.js.map +0 -1
- package/build/relations/OneToManyLargeCollection.d.ts +0 -26
- package/build/relations/OneToManyLargeCollection.d.ts.map +0 -1
- package/build/relations/OneToManyLargeCollection.js +0 -102
- package/build/relations/OneToManyLargeCollection.js.map +0 -1
- package/build/relations/OneToOneReference.d.ts +0 -93
- package/build/relations/OneToOneReference.d.ts.map +0 -1
- package/build/relations/OneToOneReference.js +0 -228
- package/build/relations/OneToOneReference.js.map +0 -1
- package/build/relations/PolymorphicReference.d.ts +0 -89
- package/build/relations/PolymorphicReference.d.ts.map +0 -1
- package/build/relations/PolymorphicReference.js +0 -244
- package/build/relations/PolymorphicReference.js.map +0 -1
- package/build/relations/ReactiveField.d.ts +0 -87
- package/build/relations/ReactiveField.d.ts.map +0 -1
- package/build/relations/ReactiveField.js +0 -149
- package/build/relations/ReactiveField.js.map +0 -1
- package/build/relations/ReactiveGetter.d.ts +0 -30
- package/build/relations/ReactiveGetter.d.ts.map +0 -1
- package/build/relations/ReactiveGetter.js +0 -38
- package/build/relations/ReactiveGetter.js.map +0 -1
- package/build/relations/ReactiveManyToMany.d.ts +0 -56
- package/build/relations/ReactiveManyToMany.d.ts.map +0 -1
- package/build/relations/ReactiveManyToMany.js +0 -243
- package/build/relations/ReactiveManyToMany.js.map +0 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.ts +0 -47
- package/build/relations/ReactiveManyToManyOtherSide.d.ts.map +0 -1
- package/build/relations/ReactiveManyToManyOtherSide.js +0 -155
- package/build/relations/ReactiveManyToManyOtherSide.js.map +0 -1
- package/build/relations/ReactiveQueryField.d.ts +0 -41
- package/build/relations/ReactiveQueryField.d.ts.map +0 -1
- package/build/relations/ReactiveQueryField.js +0 -125
- package/build/relations/ReactiveQueryField.js.map +0 -1
- package/build/relations/ReactiveReference.d.ts +0 -119
- package/build/relations/ReactiveReference.d.ts.map +0 -1
- package/build/relations/ReactiveReference.js +0 -333
- package/build/relations/ReactiveReference.js.map +0 -1
- package/build/relations/ReadOnlyCollection.d.ts +0 -19
- package/build/relations/ReadOnlyCollection.d.ts.map +0 -1
- package/build/relations/ReadOnlyCollection.js +0 -15
- package/build/relations/ReadOnlyCollection.js.map +0 -1
- package/build/relations/RecursiveCollection.d.ts +0 -84
- package/build/relations/RecursiveCollection.d.ts.map +0 -1
- package/build/relations/RecursiveCollection.js +0 -296
- package/build/relations/RecursiveCollection.js.map +0 -1
- package/build/relations/Reference.d.ts +0 -35
- package/build/relations/Reference.d.ts.map +0 -1
- package/build/relations/Reference.js +0 -21
- package/build/relations/Reference.js.map +0 -1
- package/build/relations/Relation.d.ts +0 -14
- package/build/relations/Relation.d.ts.map +0 -1
- package/build/relations/Relation.js +0 -12
- package/build/relations/Relation.js.map +0 -1
- package/build/relations/hasAsyncMethod.d.ts +0 -27
- package/build/relations/hasAsyncMethod.d.ts.map +0 -1
- package/build/relations/hasAsyncMethod.js +0 -47
- package/build/relations/hasAsyncMethod.js.map +0 -1
- package/build/relations/hasAsyncProperty.d.ts +0 -49
- package/build/relations/hasAsyncProperty.d.ts.map +0 -1
- package/build/relations/hasAsyncProperty.js +0 -98
- package/build/relations/hasAsyncProperty.js.map +0 -1
- package/build/relations/hasManyDerived.d.ts +0 -22
- package/build/relations/hasManyDerived.d.ts.map +0 -1
- package/build/relations/hasManyDerived.js +0 -32
- package/build/relations/hasManyDerived.js.map +0 -1
- package/build/relations/hasManyThrough.d.ts +0 -10
- package/build/relations/hasManyThrough.d.ts.map +0 -1
- package/build/relations/hasManyThrough.js +0 -24
- package/build/relations/hasManyThrough.js.map +0 -1
- package/build/relations/hasOneDerived.d.ts +0 -12
- package/build/relations/hasOneDerived.d.ts.map +0 -1
- package/build/relations/hasOneDerived.js +0 -24
- package/build/relations/hasOneDerived.js.map +0 -1
- package/build/relations/hasOneThrough.d.ts +0 -10
- package/build/relations/hasOneThrough.d.ts.map +0 -1
- package/build/relations/hasOneThrough.js +0 -24
- package/build/relations/hasOneThrough.js.map +0 -1
- package/build/relations/index.d.ts +0 -28
- package/build/relations/index.d.ts.map +0 -1
- package/build/relations/index.js +0 -88
- package/build/relations/index.js.map +0 -1
- package/build/rules.d.ts +0 -123
- package/build/rules.d.ts.map +0 -1
- package/build/rules.js +0 -231
- package/build/rules.js.map +0 -1
- package/build/runtimeConfig.d.ts +0 -17
- package/build/runtimeConfig.d.ts.map +0 -1
- package/build/runtimeConfig.js +0 -18
- package/build/runtimeConfig.js.map +0 -1
- package/build/serde.d.ts +0 -277
- package/build/serde.d.ts.map +0 -1
- package/build/serde.js +0 -517
- package/build/serde.js.map +0 -1
- package/build/temporal.d.ts +0 -16
- package/build/temporal.d.ts.map +0 -1
- package/build/temporal.js +0 -48
- package/build/temporal.js.map +0 -1
- package/build/temporalMappers.d.ts +0 -25
- package/build/temporalMappers.d.ts.map +0 -1
- package/build/temporalMappers.js +0 -59
- package/build/temporalMappers.js.map +0 -1
- package/build/typeMap.d.ts +0 -68
- package/build/typeMap.d.ts.map +0 -1
- package/build/typeMap.js +0 -3
- package/build/typeMap.js.map +0 -1
- package/build/unnest.d.ts +0 -13
- package/build/unnest.d.ts.map +0 -1
- package/build/unnest.js +0 -85
- package/build/unnest.js.map +0 -1
- package/build/upsert.d.ts +0 -42
- package/build/upsert.d.ts.map +0 -1
- package/build/upsert.js +0 -265
- package/build/upsert.js.map +0 -1
- package/build/utils.d.ts +0 -58
- package/build/utils.d.ts.map +0 -1
- package/build/utils.js +0 -236
- package/build/utils.js.map +0 -1
- package/build/withLoaded.d.ts +0 -56
- package/build/withLoaded.d.ts.map +0 -1
- package/build/withLoaded.js +0 -76
- package/build/withLoaded.js.map +0 -1
package/build/config.js
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigData = exports.ConfigApi = exports.constraintNameToValidationError = void 0;
|
|
4
|
-
exports.setBooted = setBooted;
|
|
5
|
-
exports.setAfterMetadataLocked = setAfterMetadataLocked;
|
|
6
|
-
exports.resetBootFlag = resetBootFlag;
|
|
7
|
-
exports.getCallerName = getCallerName;
|
|
8
|
-
exports.getFuzzyCallerName = getFuzzyCallerName;
|
|
9
|
-
exports.getFilePath = getFilePath;
|
|
10
|
-
exports.findUserCodeLine = findUserCodeLine;
|
|
11
|
-
const configure_1 = require("./configure");
|
|
12
|
-
const defaults_1 = require("./defaults");
|
|
13
|
-
const index_1 = require("./index");
|
|
14
|
-
const reactiveHints_1 = require("./reactiveHints");
|
|
15
|
-
exports.constraintNameToValidationError = {};
|
|
16
|
-
let booted = false;
|
|
17
|
-
let afterMetadataLocked = false;
|
|
18
|
-
/**
|
|
19
|
-
* Called at the end of `configureMetadata` to indicate the boot process is complete.
|
|
20
|
-
*
|
|
21
|
-
* We use this flag to prevent users from mistakenly calling `config` methods after the boot
|
|
22
|
-
* process is complete, i.e. from hooks or other post-boot invocations, where the calls are
|
|
23
|
-
* not guaranteed to work because Joist's reactivity graph has already been initialized.
|
|
24
|
-
*/
|
|
25
|
-
function setBooted() {
|
|
26
|
-
booted = true;
|
|
27
|
-
}
|
|
28
|
-
function setAfterMetadataLocked() {
|
|
29
|
-
afterMetadataLocked = true;
|
|
30
|
-
}
|
|
31
|
-
/** The public API to configure an Entity's hooks & validation rules. */
|
|
32
|
-
class ConfigApi {
|
|
33
|
-
__data = new ConfigData();
|
|
34
|
-
/**
|
|
35
|
-
* Maps a given `constraintName`, i.e. `authors_publisher_id_unique_index`, to a hard-coded-but-pretty validation errors.
|
|
36
|
-
*
|
|
37
|
-
* Note that the validationError must be hard-coded b/c we cannot tease out "which entity" caused a given
|
|
38
|
-
* constraint failure from the SQL database. If you really need pretty-and-custom validation errors, you'll
|
|
39
|
-
* need to check the constraint by hand ahead of time, before calling `em.flush`.
|
|
40
|
-
*/
|
|
41
|
-
addConstraintMessage(constraintName, validationError) {
|
|
42
|
-
this.ensurePreBoot(getCallerName(), "addConstraintMessage");
|
|
43
|
-
exports.constraintNameToValidationError[constraintName] = validationError;
|
|
44
|
-
}
|
|
45
|
-
addRule(ruleOrHint, maybeRule) {
|
|
46
|
-
// Keep the name for easy debugging/tracing later
|
|
47
|
-
const name = getCallerName();
|
|
48
|
-
this.ensurePreBoot(name, "addRule");
|
|
49
|
-
if (typeof ruleOrHint === "function") {
|
|
50
|
-
const fn = ruleOrHint;
|
|
51
|
-
this.__data.rules.push({ name, fn, hint: undefined });
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
const hint = ruleOrHint;
|
|
55
|
-
let loadHint;
|
|
56
|
-
// Create a wrapper around the user's function to populate
|
|
57
|
-
const fn = (entity) => {
|
|
58
|
-
// Ideally, we'd convert this outside `wrappedFn`, but we don't have `metadata` yet. So we do it lazily on the
|
|
59
|
-
// first call.
|
|
60
|
-
loadHint ??= (0, reactiveHints_1.convertToLoadHint)((0, index_1.getMetadata)(entity), hint);
|
|
61
|
-
if (Object.keys(loadHint).length > 0) {
|
|
62
|
-
return entity.em.populate(entity, loadHint).then(maybeRule);
|
|
63
|
-
}
|
|
64
|
-
return maybeRule(entity);
|
|
65
|
-
};
|
|
66
|
-
this.__data.rules.push({ name, fn, hint });
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
/** If both this entity, and `cstr` entities, are in the same `em.flush`, run us first. */
|
|
70
|
-
runHooksBefore(cstr) {
|
|
71
|
-
this.__data.runHooksBefore.push(cstr);
|
|
72
|
-
}
|
|
73
|
-
/** Deletes any entity/entities pointed to by `relation` when this entity is deleted. */
|
|
74
|
-
cascadeDelete(relation) {
|
|
75
|
-
this.ensurePreBoot(getCallerName(), "cascadeDelete");
|
|
76
|
-
this.__data.cascadeDeleteFields.push(relation);
|
|
77
|
-
}
|
|
78
|
-
touchOnChange(relation) {
|
|
79
|
-
this.ensurePreBoot(getCallerName(), "touchOnChange");
|
|
80
|
-
this.__data.touchOnChange.add(relation);
|
|
81
|
-
}
|
|
82
|
-
addHook(hook, ruleOrHint, maybeFn) {
|
|
83
|
-
this.ensurePreBoot(getCallerName(), "addHook");
|
|
84
|
-
if (typeof ruleOrHint === "function") {
|
|
85
|
-
this.__data.hooks[hook].push(ruleOrHint);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
const fn = async (entity, ctx) => {
|
|
89
|
-
// TODO Use this for reactive beforeFlush
|
|
90
|
-
const loaded = await entity.em.populate(entity, ruleOrHint);
|
|
91
|
-
return maybeFn(loaded, ctx);
|
|
92
|
-
};
|
|
93
|
-
// Squirrel our hint away where configureMetadata can find it
|
|
94
|
-
fn.hint = ruleOrHint;
|
|
95
|
-
this.__data.hooks[hook].push(fn);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
afterMetadata(fn) {
|
|
99
|
-
if (afterMetadataLocked) {
|
|
100
|
-
throw new Error(`config.afterMetadata on ${getCallerName()} must only be called on boot, before calling \`configureMetadata\` and not from other \`afterMetadata\` hooks.`);
|
|
101
|
-
}
|
|
102
|
-
this.__data.afterMetadataCallbacks.push(fn);
|
|
103
|
-
}
|
|
104
|
-
beforeDelete(ruleOrHint, maybeFn) {
|
|
105
|
-
this.addHook("beforeDelete", ruleOrHint, maybeFn);
|
|
106
|
-
}
|
|
107
|
-
beforeFlush(ruleOrHint, maybeFn) {
|
|
108
|
-
this.addHook("beforeFlush", ruleOrHint, maybeFn);
|
|
109
|
-
}
|
|
110
|
-
beforeCreate(ruleOrHint, maybeFn) {
|
|
111
|
-
this.addHook("beforeCreate", ruleOrHint, maybeFn);
|
|
112
|
-
}
|
|
113
|
-
beforeUpdate(ruleOrHint, maybeFn) {
|
|
114
|
-
this.addHook("beforeUpdate", ruleOrHint, maybeFn);
|
|
115
|
-
}
|
|
116
|
-
afterValidation(ruleOrHint, maybeFn) {
|
|
117
|
-
this.addHook("afterValidation", ruleOrHint, maybeFn);
|
|
118
|
-
}
|
|
119
|
-
beforeCommit(fn) {
|
|
120
|
-
this.addHook("beforeCommit", fn);
|
|
121
|
-
}
|
|
122
|
-
afterCommit(fn) {
|
|
123
|
-
this.addHook("afterCommit", fn);
|
|
124
|
-
}
|
|
125
|
-
addReaction(nameOrOptsOrHint, hintOrFn, maybeFn) {
|
|
126
|
-
// Keep the name so we can uniquely identify this reaction later and also aid debugging/tracing
|
|
127
|
-
const fn = maybeFn ?? hintOrFn;
|
|
128
|
-
const hint = (maybeFn ? hintOrFn : nameOrOptsOrHint);
|
|
129
|
-
const opts = maybeFn
|
|
130
|
-
? typeof nameOrOptsOrHint === "string"
|
|
131
|
-
? { name: nameOrOptsOrHint }
|
|
132
|
-
: nameOrOptsOrHint
|
|
133
|
-
: {};
|
|
134
|
-
const { name = getCallerName(), runOnce = false } = opts;
|
|
135
|
-
this.ensurePreBoot(name, "addReaction");
|
|
136
|
-
let loadHint;
|
|
137
|
-
// Create a wrapper around the user's function to populate
|
|
138
|
-
const wrappedFn = (entity, ctx) => {
|
|
139
|
-
// Ideally, we'd convert this outside `wrappedFn`, but we don't have `metadata` yet. So we do it lazily on the
|
|
140
|
-
// first call.
|
|
141
|
-
loadHint ??= (0, reactiveHints_1.convertToLoadHint)((0, index_1.getMetadata)(entity), hint);
|
|
142
|
-
if (Object.keys(loadHint).length > 0) {
|
|
143
|
-
return entity.em.populate(entity, loadHint).then((loaded) => fn(loaded, ctx));
|
|
144
|
-
}
|
|
145
|
-
return fn(entity, ctx);
|
|
146
|
-
};
|
|
147
|
-
this.__data.reactions.push({ name, fn: wrappedFn, hint, runOnce });
|
|
148
|
-
}
|
|
149
|
-
setDefault(fieldName, hintOrFnOrValue, fn) {
|
|
150
|
-
this.ensurePreBoot(getCallerName(), "setDefault");
|
|
151
|
-
if (fn) {
|
|
152
|
-
// If we're called once by the codegen, and again by the user, override the syncDefault
|
|
153
|
-
delete this.__data.syncDefaults[fieldName];
|
|
154
|
-
this.__data.asyncDefaults[fieldName] = new defaults_1.AsyncDefault(fieldName, hintOrFnOrValue, fn);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
this.__data.syncDefaults[fieldName] = hintOrFnOrValue;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* A noop method that exists solely to keep the `config.placeholder()` line in the initial entity file,
|
|
162
|
-
* until the user is ready to use it. */
|
|
163
|
-
placeholder() { }
|
|
164
|
-
ensurePreBoot(name, op) {
|
|
165
|
-
if (booted) {
|
|
166
|
-
// Detect if this is NextJS and we're in a hot-reload situation
|
|
167
|
-
if (isRunningInNextJs()) {
|
|
168
|
-
// Reset our bag of config data to collect only the new rules/hooks
|
|
169
|
-
this.__data = new ConfigData();
|
|
170
|
-
resetBootFlag();
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
throw new Error(`config.${op} call on ${name} must only be called on boot, before calling \`configureMetadata\`.`);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.ConfigApi = ConfigApi;
|
|
179
|
-
function isRunningInNextJs() {
|
|
180
|
-
return "__NEXT_HTTP_AGENT" in globalThis || "__NEXT_HTTPS_AGENT" in globalThis;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Allows projects to manually reset the internal `booted` flag.
|
|
184
|
-
*
|
|
185
|
-
* This is only necessary if they're using hot-reloading and reloading their entity files
|
|
186
|
-
* without restarting the server.
|
|
187
|
-
*
|
|
188
|
-
* Generally most tools like tsx or ts-node-dev reload the whole process, so don't need
|
|
189
|
-
* to call this, but if Joist is used in a framework that does actual-hot-reloading, this
|
|
190
|
-
* it will be necessary.
|
|
191
|
-
*/
|
|
192
|
-
function resetBootFlag() {
|
|
193
|
-
booted = false;
|
|
194
|
-
afterMetadataLocked = false;
|
|
195
|
-
(0, configure_1.resetConstructorMap)();
|
|
196
|
-
}
|
|
197
|
-
/** The internal state of an entity's configuration data, i.e. validation rules/hooks. */
|
|
198
|
-
class ConfigData {
|
|
199
|
-
afterMetadataCallbacks = [];
|
|
200
|
-
runHooksBefore = [];
|
|
201
|
-
/** The validation rules for this entity type. */
|
|
202
|
-
rules = [];
|
|
203
|
-
/** The reactions for this entity type. */
|
|
204
|
-
reactions = [];
|
|
205
|
-
/** The hooks for this entity type. */
|
|
206
|
-
hooks = {
|
|
207
|
-
beforeDelete: [],
|
|
208
|
-
beforeFlush: [],
|
|
209
|
-
beforeCreate: [],
|
|
210
|
-
beforeUpdate: [],
|
|
211
|
-
afterValidation: [],
|
|
212
|
-
beforeCommit: [],
|
|
213
|
-
afterCommit: [],
|
|
214
|
-
};
|
|
215
|
-
/** Synchronous defaults for this entity type, invoked on `em.create`. */
|
|
216
|
-
syncDefaults = {};
|
|
217
|
-
/** Asynchronous defaults for this entity type, invoked on `em.flush`. */
|
|
218
|
-
asyncDefaults = {};
|
|
219
|
-
// An array of the reactive rules that depend on this entity
|
|
220
|
-
reactiveRules = [];
|
|
221
|
-
// An array of the reactive fields and reactions that depend on this entity
|
|
222
|
-
reactables = [];
|
|
223
|
-
cascadeDeleteFields = [];
|
|
224
|
-
touchOnChange = new Set();
|
|
225
|
-
// Constantly converting reactive hints to load hints is expense, so cache them here
|
|
226
|
-
cachedReactiveLoadHints = {};
|
|
227
|
-
}
|
|
228
|
-
exports.ConfigData = ConfigData;
|
|
229
|
-
function getCallerName(extraFrames = 0) {
|
|
230
|
-
const err = getStack();
|
|
231
|
-
// E.g. at Object.<anonymous> (/home/stephen/homebound/graphql-service/src/entities/Activity.ts:86:8)
|
|
232
|
-
// (Make sure to drop lines that don't start with 'at' b/c the stack format can differ
|
|
233
|
-
// slightly i.e. if running via tsx/using a node loader (probably?)
|
|
234
|
-
const line = err.stack.split("\n").filter((line) => line.includes(" at "))[3 + extraFrames];
|
|
235
|
-
const parts = line.split("/");
|
|
236
|
-
// Get the last part, which will be the file name, i.e. Activity.ts:86:8
|
|
237
|
-
return parts[parts.length - 1].replace(/:\d+\)?$/, "");
|
|
238
|
-
}
|
|
239
|
-
function getFuzzyCallerName() {
|
|
240
|
-
const err = getStack();
|
|
241
|
-
const lines = err
|
|
242
|
-
.stack.split("\n")
|
|
243
|
-
// E.g. at Object.<anonymous> (/home/stephen/homebound/graphql-service/src/entities/Activity.ts:86:8)
|
|
244
|
-
.filter((line) => line.includes(" at "));
|
|
245
|
-
const line = findUserCodeLine(lines);
|
|
246
|
-
return getFilePath(line);
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Given a callstack line return the file name.
|
|
250
|
-
*
|
|
251
|
-
* I.e. `at Object.<anonymous> (/home/stephen/homebound/graphql-service/src/entities/Activity.ts:86:8)`
|
|
252
|
-
*/
|
|
253
|
-
function getFilePath(line) {
|
|
254
|
-
const parts = line.split("/");
|
|
255
|
-
return parts[parts.length - 1].replace(/:\d+\)?$/, ""); // Drop the `:8)`at the end
|
|
256
|
-
}
|
|
257
|
-
/** Given a callstack, uses heuristics to find the first line that looks like user code. */
|
|
258
|
-
function findUserCodeLine(lines) {
|
|
259
|
-
return (lines.find((line) => {
|
|
260
|
-
// When running Joist's own integration tests, if we ignore `/joist-orm/`, we'll end up ignoring
|
|
261
|
-
// everything because `joist-orm` is the name of the repository/working copy itself.
|
|
262
|
-
const withinWorkingCopyJoist = line.includes("/packages/orm/");
|
|
263
|
-
// But once we're not in a working copy, assume any `/joist-orm/` in the path === internal orm stack frames
|
|
264
|
-
const withinProductionJoist = !withinWorkingCopyJoist && line.includes("/joist-orm/src/");
|
|
265
|
-
const nodeInternals = line.includes("node:internal/") || line.includes("Promise.all");
|
|
266
|
-
const isUserCode = !withinWorkingCopyJoist && !withinProductionJoist && !nodeInternals;
|
|
267
|
-
// const isRecalc = line.includes(".recalcPending");
|
|
268
|
-
const isDefault = line.includes("/defaults.ts");
|
|
269
|
-
// Batched calls like findOrCreate won't have a stack trace back to the true caller, so just stop there
|
|
270
|
-
const isDataloader = line.includes("/dataloaders/");
|
|
271
|
-
// If this is the `newTestInstance` call
|
|
272
|
-
// What about:
|
|
273
|
-
// recalcSynchronousDerivedFields
|
|
274
|
-
return ((isDefault || isDataloader || isUserCode) &&
|
|
275
|
-
!line.includes("Codegen.ts") &&
|
|
276
|
-
// I wanted to exclude this, but it was actually our utils/entities.ts maybeSetDefault helper method
|
|
277
|
-
// !line.includes("entities.ts") &&
|
|
278
|
-
// Ignore loops in joist code like setOpts
|
|
279
|
-
!line.includes("at Array") &&
|
|
280
|
-
// Ignore the Author.ts constructor calling setOpts
|
|
281
|
-
!line.includes("at new "));
|
|
282
|
-
}) ?? (0, index_1.fail)("Could not find caller name"));
|
|
283
|
-
}
|
|
284
|
-
const getStack = "captureStackTrace" in Error ? getStackFromCapture : getStackFromObject;
|
|
285
|
-
function getStackFromCapture() {
|
|
286
|
-
const obj = {};
|
|
287
|
-
Error.captureStackTrace(obj);
|
|
288
|
-
return obj;
|
|
289
|
-
}
|
|
290
|
-
function getStackFromObject() {
|
|
291
|
-
try {
|
|
292
|
-
throw Error("");
|
|
293
|
-
}
|
|
294
|
-
catch (err) {
|
|
295
|
-
return err;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
//# sourceMappingURL=config.js.map
|
package/build/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAgDA,8BAEC;AAED,wDAEC;AA8RD,sCAIC;AA4GD,sCASC;AAED,gDAQC;AAOD,kCAGC;AAGD,4CA6BC;AAjgBD,2CAAkD;AAClD,yCAA0C;AAE1C,mCAciB;AACjB,mDAAoD;AAgBvC,QAAA,+BAA+B,GAA2B,EAAE,CAAC;AAI1E,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAEhC;;;;;;GAMG;AACH,SAAgB,SAAS;IACvB,MAAM,GAAG,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB;IACpC,mBAAmB,GAAG,IAAI,CAAC;AAC7B,CAAC;AAED,wEAAwE;AACxE,MAAa,SAAS;IACpB,MAAM,GAAG,IAAI,UAAU,EAAQ,CAAC;IAEhC;;;;;;OAMG;IACH,oBAAoB,CAAC,cAAsB,EAAE,eAAuB;QAClE,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,EAAE,sBAAsB,CAAC,CAAC;QAC5D,uCAA+B,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC;IACpE,CAAC;IAeD,OAAO,CAAC,UAAmC,EAAE,SAA+B;QAC1E,iDAAiD;QACjD,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACpC,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE,CAAC;YACrC,MAAM,EAAE,GAAG,UAAU,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,GAAG,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ACtB,CAAC;AACH,CAAC"}
|
package/build/config.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../src/config.test.ts"],"names":[],"mappings":""}
|
package/build/config.test.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const config_1 = require("./config");
|
|
4
|
-
describe("config", () => {
|
|
5
|
-
describe("findUserCodeLine", () => {
|
|
6
|
-
it("finds ReactiveReference recalc", () => {
|
|
7
|
-
const lines = [
|
|
8
|
-
" at getStackFromCapture (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/config.ts:388:9)",
|
|
9
|
-
" at getFuzzyCallerName (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/config.ts:340:15)",
|
|
10
|
-
" at FieldLogger.logSet (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/logging/FieldLogger.ts:52:36)",
|
|
11
|
-
" at setField (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/fields.ts:113:16)",
|
|
12
|
-
" at ReactiveReferenceImpl.setImpl (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/relations/ReactiveReference.ts:272:13)",
|
|
13
|
-
" at ReactiveReferenceImpl.doGet (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/relations/ReactiveReference.ts:228:14)",
|
|
14
|
-
" at <anonymous> (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/relations/ReactiveReference.ts:160:23)",
|
|
15
|
-
" at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
|
|
16
|
-
" at async Promise.allSettled (index 16)",
|
|
17
|
-
" at async ReactionsManager.recalcPendingDerivedValues (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/ReactionsManager.ts:180:23)",
|
|
18
|
-
" at async <anonymous> (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/EntityManager.ts:1263:7)",
|
|
19
|
-
" at async EntityManager.flush (/home/stephen/homebound/graphql-service/node_modules/joist-orm/src/EntityManager.ts:1256:5)",
|
|
20
|
-
" at async Object.savePersonalizationOptionGroup (/home/stephen/homebound/graphql-service/src/resolvers/mutations/designPackage/savePersonalizationOptionGroupResolver.ts:43:5)",
|
|
21
|
-
" at async run (/home/stephen/homebound/graphql-service/node_modules/joist-test-utils/src/run.ts:18:18)",
|
|
22
|
-
" at async <anonymous> (/home/stephen/homebound/graphql-service/src/resolvers/mutations/designPackage/savePersonalizationOptionGroupResolver.test.ts:29:7)",
|
|
23
|
-
];
|
|
24
|
-
expect((0, config_1.findUserCodeLine)(lines)).toMatchInlineSnapshot(`" at async Object.savePersonalizationOptionGroup (/home/stephen/homebound/graphql-service/src/resolvers/mutations/designPackage/savePersonalizationOptionGroupResolver.ts:43:5)"`);
|
|
25
|
-
});
|
|
26
|
-
it("works on cascadeDeletes", () => {
|
|
27
|
-
const lines = [
|
|
28
|
-
" at getStackFromCapture (/home/node/app/node_modules/joist-orm/src/config.ts:393:9)",
|
|
29
|
-
" at getFuzzyCallerName (/home/node/app/node_modules/joist-orm/src/config.ts:338:15)",
|
|
30
|
-
" at FieldLogger.logSet (/home/node/app/node_modules/joist-orm/src/logging/FieldLogger.ts:52:36)",
|
|
31
|
-
" at setField (/home/node/app/node_modules/joist-orm/src/fields.ts:113:16)",
|
|
32
|
-
" at ManyToOneReferenceImpl.setImpl (/home/node/app/node_modules/joist-orm/src/relations/ManyToOneReference.ts:231:13)",
|
|
33
|
-
" at ManyToOneReferenceImpl.set (/home/node/app/node_modules/joist-orm/src/relations/ManyToOneReference.ts:112:10)",
|
|
34
|
-
" at OneToManyCollection.remove (/home/node/app/node_modules/joist-orm/src/relations/OneToManyCollection.ts:234:34)",
|
|
35
|
-
" at ManyToOneReferenceImpl.cleanupOnEntityDeleted (/home/node/app/node_modules/joist-orm/src/relations/ManyToOneReference.ts:266:13)",
|
|
36
|
-
" at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
|
|
37
|
-
" at async Promise.all (index 6)",
|
|
38
|
-
" at async EntityManager.cascadeDeletes (/home/node/app/node_modules/joist-orm/src/EntityManager.ts:1769:5)",
|
|
39
|
-
" at async <anonymous> (/home/node/app/node_modules/joist-orm/src/EntityManager.ts:1341:11)",
|
|
40
|
-
" at async runHooksOnPendingEntities (/home/node/app/node_modules/joist-orm/src/EntityManager.ts:1322:9)",
|
|
41
|
-
" at async EntityManager.flush (/home/node/app/node_modules/joist-orm/src/EntityManager.ts:1388:29)",
|
|
42
|
-
" at async Object.savePersonalizationOptionGroup (/home/stephen/homebound/graphql-service/src/resolvers/mutations/designPackage/savePersonalizationOptionGroupResolver.ts:46:5)",
|
|
43
|
-
];
|
|
44
|
-
expect((0, config_1.findUserCodeLine)(lines)).toMatchInlineSnapshot(`" at async Object.savePersonalizationOptionGroup (/home/stephen/homebound/graphql-service/src/resolvers/mutations/designPackage/savePersonalizationOptionGroupResolver.ts:46:5)"`);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
describe("getFilePath", () => {
|
|
48
|
-
it("works", () => {
|
|
49
|
-
expect((0, config_1.getFilePath)(" at async Object.savePersonalizationOptionGroup (/home/stephen/homebound/graphql-service/src/resolvers/mutations/designPackage/savePersonalizationOptionGroupResolver.ts:43:5)")).toBe("savePersonalizationOptionGroupResolver.ts:43");
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=config.test.js.map
|
package/build/config.test.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.test.js","sourceRoot":"","sources":["../src/config.test.ts"],"names":[],"mappings":";;AAAA,qCAAyD;AAEzD,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;YACxC,MAAM,KAAK,GAAG;gBACZ,iHAAiH;gBACjH,iHAAiH;gBACjH,6HAA6H;gBAC7H,uGAAuG;gBACvG,iJAAiJ;gBACjJ,+IAA+I;gBAC/I,+HAA+H;gBAC/H,oFAAoF;gBACpF,4CAA4C;gBAC5C,0JAA0J;gBAC1J,uHAAuH;gBACvH,+HAA+H;gBAC/H,mLAAmL;gBACnL,2GAA2G;gBAC3G,8JAA8J;aAC/J,CAAC;YACF,MAAM,CAAC,IAAA,yBAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CACnD,qLAAqL,CACtL,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;YACjC,MAAM,KAAK,GAAG;gBACZ,wFAAwF;gBACxF,wFAAwF;gBACxF,oGAAoG;gBACpG,8EAA8E;gBAC9E,0HAA0H;gBAC1H,sHAAsH;gBACtH,uHAAuH;gBACvH,yIAAyI;gBACzI,oFAAoF;gBACpF,oCAAoC;gBACpC,+GAA+G;gBAC/G,+FAA+F;gBAC/F,4GAA4G;gBAC5G,uGAAuG;gBACvG,mLAAmL;aACpL,CAAC;YACF,MAAM,CAAC,IAAA,yBAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CACnD,qLAAqL,CACtL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;QAC3B,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YACf,MAAM,CACJ,IAAA,oBAAW,EACT,mLAAmL,CACpL,CACF,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/build/configure.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Entity } from "./Entity";
|
|
2
|
-
import { MaybeAbstractEntityConstructor, TaggedId } from "./EntityManager";
|
|
3
|
-
import { EntityMetadata } from "./EntityMetadata";
|
|
4
|
-
import { Reference } from "./relations";
|
|
5
|
-
/** Performs our boot-time initialization, i.e. hooking up reactivity. */
|
|
6
|
-
export declare function configureMetadata(metas: EntityMetadata[]): void;
|
|
7
|
-
export declare function resetConstructorMap(): void;
|
|
8
|
-
export declare function getConstructorFromTag(tag: string): MaybeAbstractEntityConstructor<any>;
|
|
9
|
-
export declare function getConstructorFromTaggedId(id: TaggedId): MaybeAbstractEntityConstructor<any>;
|
|
10
|
-
export declare function getMetadataForTable(tableName: string): EntityMetadata;
|
|
11
|
-
export declare function getMetadataForType(typeName: string): EntityMetadata;
|
|
12
|
-
export declare function maybeGetConstructorFromReference(value: string | Entity | Reference<any, any, any> | undefined): MaybeAbstractEntityConstructor<any> | undefined;
|
|
13
|
-
//# sourceMappingURL=configure.d.ts.map
|
package/build/configure.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAA+C,MAAM,kBAAkB,CAAC;AAM/F,OAAO,EAAiD,SAAS,EAAE,MAAM,aAAa,CAAC;AAavF,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI,CAyB/D;AAuBD,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,8BAA8B,CAAC,GAAG,CAAC,CAEtF;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,QAAQ,GAAG,8BAA8B,CAAC,GAAG,CAAC,CAG5F;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,CAErE;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAEnE;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,GAC5D,8BAA8B,CAAC,GAAG,CAAC,GAAG,SAAS,CAGjD"}
|