@adobe/data 0.2.4 → 0.2.6
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/dist/ecs/database/create-database.d.ts +3 -1
- package/dist/ecs/database/create-database.js +2 -2
- package/dist/ecs/database/create-database.js.map +1 -1
- package/dist/ecs/database/create-database.test.js +17 -17
- package/dist/ecs/database/create-database.test.js.map +1 -1
- package/dist/ecs/database/database-schema/create-database-from-schema.d.ts +12 -0
- package/dist/ecs/database/database-schema/create-database-from-schema.js +8 -0
- package/dist/ecs/database/database-schema/create-database-from-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/create-database-schema-test.js +25 -0
- package/dist/ecs/database/database-schema/create-database-schema-test.js.map +1 -0
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +11 -5
- package/dist/ecs/database/database-schema/create-database-schema.js +2 -2
- package/dist/ecs/database/database-schema/create-database-schema.js.map +1 -1
- package/dist/ecs/database/database-schema/database-schema.d.ts +7 -4
- package/dist/ecs/database/database-schema/index.d.ts +1 -2
- package/dist/ecs/database/database-schema/index.js +1 -1
- package/dist/ecs/database/database-schema/index.js.map +1 -1
- package/dist/ecs/database/database.d.ts +4 -3
- package/dist/ecs/database/observe-dependent-value.d.ts +1 -1
- package/dist/ecs/database/observe-dependent-value.js +1 -1
- package/dist/ecs/database/observe-dependent-value.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.d.ts +3 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
- package/dist/ecs/database/transactional-store/transactional-store.d.ts +5 -3
- package/dist/ecs/store/archetype-components.d.ts +1 -0
- package/dist/ecs/{core-ecs/core-ecs-types.js → store/archetype-components.js} +1 -1
- package/dist/ecs/store/archetype-components.js.map +1 -0
- package/dist/ecs/store/core/core.d.ts +1 -1
- package/dist/ecs/store/core/create-core.d.ts +1 -2
- package/dist/ecs/store/create-store.d.ts +3 -2
- package/dist/ecs/store/create-store.js +6 -1
- package/dist/ecs/store/create-store.js.map +1 -1
- package/dist/ecs/store/create-store.test.js +17 -7
- package/dist/ecs/store/create-store.test.js.map +1 -1
- package/dist/ecs/store/index.d.ts +1 -0
- package/dist/ecs/store/index.js +1 -0
- package/dist/ecs/store/index.js.map +1 -1
- package/dist/ecs/store/store.d.ts +14 -2
- package/dist/internal/typed-array/get-byte-size.d.ts +1 -1
- package/dist/schema/schema.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/README.md +0 -310
- package/dist/_/data.d.ts +0 -11
- package/dist/_/data.js +0 -23
- package/dist/_/data.js.map +0 -1
- package/dist/_/equals.d.ts +0 -11
- package/dist/_/equals.js +0 -73
- package/dist/_/equals.js.map +0 -1
- package/dist/_/equals.test.js +0 -150
- package/dist/_/equals.test.js.map +0 -1
- package/dist/_/index.d.ts +0 -4
- package/dist/_/index.js +0 -24
- package/dist/_/index.js.map +0 -1
- package/dist/_/is-data.d.ts +0 -11
- package/dist/_/is-data.js +0 -2
- package/dist/_/is-data.js.map +0 -1
- package/dist/_/normalize.d.ts +0 -1
- package/dist/_/normalize.js +0 -34
- package/dist/_/normalize.js.map +0 -1
- package/dist/_/normalize.test.d.ts +0 -1
- package/dist/_/normalize.test.js +0 -48
- package/dist/_/normalize.test.js.map +0 -1
- package/dist/_/schema.test.d.ts +0 -1
- package/dist/_/schema.test.js +0 -16
- package/dist/_/schema.test.js.map +0 -1
- package/dist/blob-store/blob-store.d.ts +0 -94
- package/dist/blob-store/blob-store.js +0 -194
- package/dist/blob-store/blob-store.js.map +0 -1
- package/dist/blob-store/blob-store.test.d.ts +0 -1
- package/dist/blob-store/blob-store.test.js +0 -142
- package/dist/blob-store/blob-store.test.js.map +0 -1
- package/dist/cache/functions/bind-functions.d.ts +0 -6
- package/dist/cache/functions/bind-functions.js +0 -33
- package/dist/cache/functions/bind-functions.js.map +0 -1
- package/dist/cache/functions/omit.d.ts +0 -1
- package/dist/cache/functions/omit.js +0 -29
- package/dist/cache/functions/omit.js.map +0 -1
- package/dist/cache/functions/types.d.ts +0 -1
- package/dist/cache/functions/types.js +0 -23
- package/dist/cache/functions/types.js.map +0 -1
- package/dist/core/IsData.d.ts +0 -6
- package/dist/core/IsData.js +0 -2
- package/dist/core/IsData.js.map +0 -1
- package/dist/core/data.d.ts +0 -11
- package/dist/core/data.js +0 -23
- package/dist/core/data.js.map +0 -1
- package/dist/core/data.test.d.ts +0 -1
- package/dist/core/data.test.js +0 -48
- package/dist/core/data.test.js.map +0 -1
- package/dist/core/equals.d.ts +0 -11
- package/dist/core/equals.js +0 -73
- package/dist/core/equals.js.map +0 -1
- package/dist/core/equals.test.d.ts +0 -1
- package/dist/core/equals.test.js +0 -150
- package/dist/core/equals.test.js.map +0 -1
- package/dist/core/functions/array-equals-shallow.d.ts +0 -1
- package/dist/core/functions/array-equals-shallow.js +0 -34
- package/dist/core/functions/array-equals-shallow.js.map +0 -1
- package/dist/core/functions/deep-assign.d.ts +0 -11
- package/dist/core/functions/deep-assign.js +0 -61
- package/dist/core/functions/deep-assign.js.map +0 -1
- package/dist/core/functions/deep-assign.test.d.ts +0 -1
- package/dist/core/functions/deep-assign.test.js +0 -180
- package/dist/core/functions/deep-assign.test.js.map +0 -1
- package/dist/core/functions/deep-merge.d.ts +0 -32
- package/dist/core/functions/deep-merge.js +0 -54
- package/dist/core/functions/deep-merge.js.map +0 -1
- package/dist/core/functions/deep-merge.test.d.ts +0 -1
- package/dist/core/functions/deep-merge.test.js +0 -94
- package/dist/core/functions/deep-merge.test.js.map +0 -1
- package/dist/core/functions/index.d.ts +0 -1
- package/dist/core/functions/index.js +0 -23
- package/dist/core/functions/index.js.map +0 -1
- package/dist/core/functions/is-async-generator.d.ts +0 -1
- package/dist/core/functions/is-async-generator.js +0 -25
- package/dist/core/functions/is-async-generator.js.map +0 -1
- package/dist/core/functions/is-promise.d.ts +0 -1
- package/dist/core/functions/is-promise.js +0 -26
- package/dist/core/functions/is-promise.js.map +0 -1
- package/dist/core/functions/memoize-factory.d.ts +0 -1
- package/dist/core/functions/memoize-factory.js +0 -12
- package/dist/core/functions/memoize-factory.js.map +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.js +0 -24
- package/dist/core/index.js.map +0 -1
- package/dist/core/is-data.d.ts +0 -11
- package/dist/core/is-data.js +0 -2
- package/dist/core/is-data.js.map +0 -1
- package/dist/core/normalize.d.ts +0 -1
- package/dist/core/normalize.js +0 -34
- package/dist/core/normalize.js.map +0 -1
- package/dist/core/normalize.test.d.ts +0 -1
- package/dist/core/normalize.test.js +0 -48
- package/dist/core/normalize.test.js.map +0 -1
- package/dist/core/schema.test.d.ts +0 -1
- package/dist/core/schema.test.js +0 -16
- package/dist/core/schema.test.js.map +0 -1
- package/dist/ecs/action-ecs/action-ecs.d.ts +0 -19
- package/dist/ecs/action-ecs/action-ecs.js +0 -203
- package/dist/ecs/action-ecs/action-ecs.js.map +0 -1
- package/dist/ecs/action-ecs/action-ecs.test.d.ts +0 -1
- package/dist/ecs/action-ecs/action-ecs.test.js +0 -363
- package/dist/ecs/action-ecs/action-ecs.test.js.map +0 -1
- package/dist/ecs/action-ecs/action-types.d.ts +0 -106
- package/dist/ecs/action-ecs/action-types.js +0 -19
- package/dist/ecs/action-ecs/action-types.js.map +0 -1
- package/dist/ecs/action-ecs/index.d.ts +0 -3
- package/dist/ecs/action-ecs/index.js +0 -24
- package/dist/ecs/action-ecs/index.js.map +0 -1
- package/dist/ecs/action-ecs/sequential-action.d.ts +0 -18
- package/dist/ecs/action-ecs/sequential-action.js +0 -45
- package/dist/ecs/action-ecs/sequential-action.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs-serialization.test.d.ts +0 -1
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js +0 -231
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs-types.d.ts +0 -142
- package/dist/ecs/core-ecs/core-ecs-types.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs.d.ts +0 -7
- package/dist/ecs/core-ecs/core-ecs.js +0 -492
- package/dist/ecs/core-ecs/core-ecs.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs.test.d.ts +0 -1
- package/dist/ecs/core-ecs/core-ecs.test.js +0 -426
- package/dist/ecs/core-ecs/core-ecs.test.js.map +0 -1
- package/dist/ecs/core-ecs/index.d.ts +0 -1
- package/dist/ecs/core-ecs/index.js +0 -2
- package/dist/ecs/core-ecs/index.js.map +0 -1
- package/dist/ecs/database/database-schema/create-database-from-schemas.d.ts +0 -15
- package/dist/ecs/database/database-schema/create-database-from-schemas.js +0 -33
- package/dist/ecs/database/database-schema/create-database-from-schemas.js.map +0 -1
- package/dist/ecs/ecs/ecs-types.d.ts +0 -133
- package/dist/ecs/ecs/ecs-types.js +0 -23
- package/dist/ecs/ecs/ecs-types.js.map +0 -1
- package/dist/ecs/ecs/ecs-where-functions.d.ts +0 -6
- package/dist/ecs/ecs/ecs-where-functions.js +0 -91
- package/dist/ecs/ecs/ecs-where-functions.js.map +0 -1
- package/dist/ecs/ecs/ecs.d.ts +0 -13
- package/dist/ecs/ecs/ecs.js +0 -177
- package/dist/ecs/ecs/ecs.js.map +0 -1
- package/dist/ecs/ecs/ecs.test.d.ts +0 -1
- package/dist/ecs/ecs/ecs.test.js +0 -399
- package/dist/ecs/ecs/ecs.test.js.map +0 -1
- package/dist/ecs/ecs/index.d.ts +0 -2
- package/dist/ecs/ecs/index.js +0 -24
- package/dist/ecs/ecs/index.js.map +0 -1
- package/dist/ecs/store/resource-components copy.d.ts +0 -1
- package/dist/ecs/store/resource-components copy.js +0 -23
- package/dist/ecs/store/resource-components copy.js.map +0 -1
- package/dist/ecs/systems/index.d.ts +0 -2
- package/dist/ecs/systems/index.js +0 -2
- package/dist/ecs/systems/index.js.map +0 -1
- package/dist/ecs/systems/system-phase.d.ts +0 -5
- package/dist/ecs/systems/system-phase.js +0 -16
- package/dist/ecs/systems/system-phase.js.map +0 -1
- package/dist/ecs/systems/system.d.ts +0 -7
- package/dist/ecs/systems/system.js +0 -2
- package/dist/ecs/systems/system.js.map +0 -1
- package/dist/ecs/transaction-ecs/index.d.ts +0 -2
- package/dist/ecs/transaction-ecs/index.js +0 -24
- package/dist/ecs/transaction-ecs/index.js.map +0 -1
- package/dist/ecs/transaction-ecs/transaction-ecs.d.ts +0 -11
- package/dist/ecs/transaction-ecs/transaction-ecs.js +0 -184
- package/dist/ecs/transaction-ecs/transaction-ecs.js.map +0 -1
- package/dist/ecs/transaction-ecs/transaction-ecs.test.d.ts +0 -1
- package/dist/ecs/transaction-ecs/transaction-ecs.test.js +0 -599
- package/dist/ecs/transaction-ecs/transaction-ecs.test.js.map +0 -1
- package/dist/ecs/transaction-ecs/transaction-types.d.ts +0 -136
- package/dist/ecs/transaction-ecs/transaction-types.js +0 -2
- package/dist/ecs/transaction-ecs/transaction-types.js.map +0 -1
- package/dist/ecs/transaction-ecs/transactions.d.ts +0 -5
- package/dist/ecs/transaction-ecs/transactions.js +0 -158
- package/dist/ecs/transaction-ecs/transactions.js.map +0 -1
- package/dist/equalsShallow.d.ts +0 -1
- package/dist/equalsShallow.js +0 -37
- package/dist/equalsShallow.js.map +0 -1
- package/dist/equalsShallow.test.d.ts +0 -1
- package/dist/equalsShallow.test.js +0 -113
- package/dist/equalsShallow.test.js.map +0 -1
- package/dist/internal/object/mutable-clone.d.ts +0 -5
- package/dist/internal/object/mutable-clone.js +0 -4
- package/dist/internal/object/mutable-clone.js.map +0 -1
- package/dist/old-ecs/ecs/ecs-where-cache.test.d.ts +0 -1
- package/dist/old-ecs/ecs/ecs-where-cache.test.js +0 -164
- package/dist/old-ecs/ecs/ecs-where-cache.test.js.map +0 -1
- package/dist/package.json +0 -129
- package/dist/schema/FromSchema.d.ts +0 -25
- package/dist/schema/FromSchema.js +0 -2
- package/dist/schema/FromSchema.js.map +0 -1
- package/dist/service/isService.d.ts +0 -2
- package/dist/service/isService.js +0 -5
- package/dist/service/isService.js.map +0 -1
- package/dist/service/sequential-action.d.ts +0 -18
- package/dist/service/sequential-action.js +0 -45
- package/dist/service/sequential-action.js.map +0 -1
- package/dist/table/copy-to-gpu-buffer.d.ts +0 -2
- package/dist/table/copy-to-gpu-buffer.js +0 -16
- package/dist/table/copy-to-gpu-buffer.js.map +0 -1
- package/dist/table/create-composite-table.d.ts +0 -5
- package/dist/table/create-composite-table.js +0 -20
- package/dist/table/create-composite-table.js.map +0 -1
- package/dist/typed-buffer/create-composite-buffer.d.ts +0 -2
- package/dist/typed-buffer/create-composite-buffer.js +0 -85
- package/dist/typed-buffer/create-composite-buffer.js.map +0 -1
- package/dist/typed-buffer/create-composite-buffer.test.d.ts +0 -1
- package/dist/typed-buffer/create-composite-buffer.test.js +0 -291
- package/dist/typed-buffer/create-composite-buffer.test.js.map +0 -1
- package/dist/typed-buffer/create-mapped-buffer.d.ts +0 -6
- package/dist/typed-buffer/create-mapped-buffer.js +0 -32
- package/dist/typed-buffer/create-mapped-buffer.js.map +0 -1
- package/dist/typed-buffer/create-mapped-buffer.test.d.ts +0 -1
- package/dist/typed-buffer/create-mapped-buffer.test.js +0 -202
- package/dist/typed-buffer/create-mapped-buffer.test.js.map +0 -1
- package/dist/types/array/equalsShallow.d.ts +0 -1
- package/dist/types/array/equalsShallow.js +0 -37
- package/dist/types/array/equalsShallow.js.map +0 -1
- package/dist/types/array/equalsShallow.test.d.ts +0 -1
- package/dist/types/array/equalsShallow.test.js +0 -113
- package/dist/types/array/equalsShallow.test.js.map +0 -1
- package/dist/types/array/index.d.ts +0 -1
- package/dist/types/array/index.js +0 -2
- package/dist/types/array/index.js.map +0 -1
- package/dist/types/array-buffer-like/copy.d.ts +0 -1
- package/dist/types/array-buffer-like/copy.js +0 -469
- package/dist/types/array-buffer-like/copy.js.map +0 -1
- package/dist/types/array-buffer-like/grow.d.ts +0 -1
- package/dist/types/array-buffer-like/grow.js +0 -53
- package/dist/types/array-buffer-like/grow.js.map +0 -1
- package/dist/types/array-buffer-like/index.d.ts +0 -4
- package/dist/types/array-buffer-like/index.js +0 -26
- package/dist/types/array-buffer-like/index.js.map +0 -1
- package/dist/types/array-buffer-like/is-array-buffer.d.ts +0 -1
- package/dist/types/array-buffer-like/is-array-buffer.js +0 -445
- package/dist/types/array-buffer-like/is-array-buffer.js.map +0 -1
- package/dist/types/array-buffer-like/is-shared-array-buffer.d.ts +0 -1
- package/dist/types/array-buffer-like/is-shared-array-buffer.js +0 -445
- package/dist/types/array-buffer-like/is-shared-array-buffer.js.map +0 -1
- package/dist/types/data-view-32/create-data-view-32.d.ts +0 -2
- package/dist/types/data-view-32/create-data-view-32.js +0 -8
- package/dist/types/data-view-32/create-data-view-32.js.map +0 -1
- package/dist/types/data-view-32/data-view-32.d.ts +0 -5
- package/dist/types/data-view-32/data-view-32.js +0 -23
- package/dist/types/data-view-32/data-view-32.js.map +0 -1
- package/dist/types/data-view-32/index.d.ts +0 -2
- package/dist/types/data-view-32/index.js +0 -24
- package/dist/types/data-view-32/index.js.map +0 -1
- package/dist/types/object/index.d.ts +0 -2
- package/dist/types/object/index.js +0 -24
- package/dist/types/object/index.js.map +0 -1
- package/dist/types/object/map-entries.d.ts +0 -5
- package/dist/types/object/map-entries.js +0 -29
- package/dist/types/object/map-entries.js.map +0 -1
- package/dist/types/object/mutable-clone.d.ts +0 -5
- package/dist/types/object/mutable-clone.js +0 -4
- package/dist/types/object/mutable-clone.js.map +0 -1
- package/dist/types/remove-readonly.d.ts +0 -3
- package/dist/types/remove-readonly.js +0 -2
- package/dist/types/remove-readonly.js.map +0 -1
- package/dist/types/table/add-row.d.ts +0 -8
- package/dist/types/table/add-row.js +0 -40
- package/dist/types/table/add-row.js.map +0 -1
- package/dist/types/table/create-table.d.ts +0 -3
- package/dist/types/table/create-table.js +0 -33
- package/dist/types/table/create-table.js.map +0 -1
- package/dist/types/table/delete-row.d.ts +0 -9
- package/dist/types/table/delete-row.js +0 -18
- package/dist/types/table/delete-row.js.map +0 -1
- package/dist/types/table/ensure-capacity.d.ts +0 -2
- package/dist/types/table/ensure-capacity.js +0 -15
- package/dist/types/table/ensure-capacity.js.map +0 -1
- package/dist/types/table/get-row-data.d.ts +0 -3
- package/dist/types/table/get-row-data.js +0 -8
- package/dist/types/table/get-row-data.js.map +0 -1
- package/dist/types/table/index.d.ts +0 -8
- package/dist/types/table/index.js +0 -30
- package/dist/types/table/index.js.map +0 -1
- package/dist/types/table/row-index.d.ts +0 -8
- package/dist/types/table/row-index.js +0 -3
- package/dist/types/table/row-index.js.map +0 -1
- package/dist/types/table/table.d.ts +0 -13
- package/dist/types/table/table.js +0 -2
- package/dist/types/table/table.js.map +0 -1
- package/dist/types/table/update-row.d.ts +0 -8
- package/dist/types/table/update-row.js +0 -12
- package/dist/types/table/update-row.js.map +0 -1
- package/dist/types/typed-array/copy-to-gpu-buffer.d.ts +0 -2
- package/dist/types/typed-array/copy-to-gpu-buffer.js +0 -16
- package/dist/types/typed-array/copy-to-gpu-buffer.js.map +0 -1
- package/dist/types/typed-array/get-byte-size.d.ts +0 -2
- package/dist/types/typed-array/get-byte-size.js +0 -28
- package/dist/types/typed-array/get-byte-size.js.map +0 -1
- package/dist/types/typed-array/index.d.ts +0 -4
- package/dist/types/typed-array/index.js +0 -26
- package/dist/types/typed-array/index.js.map +0 -1
- package/dist/types/typed-array/typed-array-constructer.d.ts +0 -7
- package/dist/types/typed-array/typed-array-constructer.js +0 -2
- package/dist/types/typed-array/typed-array-constructer.js.map +0 -1
- package/dist/types/typed-array/typed-array.d.ts +0 -1
- package/dist/types/typed-array/typed-array.js +0 -23
- package/dist/types/typed-array/typed-array.js.map +0 -1
- package/dist/types/typed-buffer/copy-to-gpu-buffer.d.ts +0 -2
- package/dist/types/typed-buffer/copy-to-gpu-buffer.js +0 -16
- package/dist/types/typed-buffer/copy-to-gpu-buffer.js.map +0 -1
- package/dist/types/typed-buffer/create-array-buffer.d.ts +0 -4
- package/dist/types/typed-buffer/create-array-buffer.js +0 -29
- package/dist/types/typed-buffer/create-array-buffer.js.map +0 -1
- package/dist/types/typed-buffer/create-number-buffer.d.ts +0 -8
- package/dist/types/typed-buffer/create-number-buffer.js +0 -75
- package/dist/types/typed-buffer/create-number-buffer.js.map +0 -1
- package/dist/types/typed-buffer/create-struct-buffer.d.ts +0 -10
- package/dist/types/typed-buffer/create-struct-buffer.js +0 -78
- package/dist/types/typed-buffer/create-struct-buffer.js.map +0 -1
- package/dist/types/typed-buffer/create-typed-buffer.d.ts +0 -7
- package/dist/types/typed-buffer/create-typed-buffer.js +0 -17
- package/dist/types/typed-buffer/create-typed-buffer.js.map +0 -1
- package/dist/types/typed-buffer/index.d.ts +0 -6
- package/dist/types/typed-buffer/index.js +0 -28
- package/dist/types/typed-buffer/index.js.map +0 -1
- package/dist/types/typed-buffer/structs/assert-struct.d.ts +0 -8
- package/dist/types/typed-buffer/structs/assert-struct.js +0 -15
- package/dist/types/typed-buffer/structs/assert-struct.js.map +0 -1
- package/dist/types/typed-buffer/structs/create-read-struct.d.ts +0 -3
- package/dist/types/typed-buffer/structs/create-read-struct.js +0 -62
- package/dist/types/typed-buffer/structs/create-read-struct.js.map +0 -1
- package/dist/types/typed-buffer/structs/create-read-struct.test.d.ts +0 -1
- package/dist/types/typed-buffer/structs/create-read-struct.test.js +0 -189
- package/dist/types/typed-buffer/structs/create-read-struct.test.js.map +0 -1
- package/dist/types/typed-buffer/structs/create-write-struct.d.ts +0 -3
- package/dist/types/typed-buffer/structs/create-write-struct.js +0 -58
- package/dist/types/typed-buffer/structs/create-write-struct.js.map +0 -1
- package/dist/types/typed-buffer/structs/get-field-offset.d.ts +0 -2
- package/dist/types/typed-buffer/structs/get-field-offset.js +0 -14
- package/dist/types/typed-buffer/structs/get-field-offset.js.map +0 -1
- package/dist/types/typed-buffer/structs/get-struct-layout.d.ts +0 -5
- package/dist/types/typed-buffer/structs/get-struct-layout.js +0 -198
- package/dist/types/typed-buffer/structs/get-struct-layout.js.map +0 -1
- package/dist/types/typed-buffer/structs/get-struct-layout.test.d.ts +0 -1
- package/dist/types/typed-buffer/structs/get-struct-layout.test.js +0 -133
- package/dist/types/typed-buffer/structs/get-struct-layout.test.js.map +0 -1
- package/dist/types/typed-buffer/structs/index.d.ts +0 -1
- package/dist/types/typed-buffer/structs/index.js +0 -23
- package/dist/types/typed-buffer/structs/index.js.map +0 -1
- package/dist/types/typed-buffer/structs/read-struct.d.ts +0 -2
- package/dist/types/typed-buffer/structs/read-struct.js +0 -2
- package/dist/types/typed-buffer/structs/read-struct.js.map +0 -1
- package/dist/types/typed-buffer/structs/struct-layout.d.ts +0 -21
- package/dist/types/typed-buffer/structs/struct-layout.js +0 -23
- package/dist/types/typed-buffer/structs/struct-layout.js.map +0 -1
- package/dist/types/typed-buffer/structs/write-struct.d.ts +0 -2
- package/dist/types/typed-buffer/structs/write-struct.js +0 -2
- package/dist/types/typed-buffer/structs/write-struct.js.map +0 -1
- package/dist/types/typed-buffer/structs/write-struct.test.d.ts +0 -1
- package/dist/types/typed-buffer/structs/write-struct.test.js +0 -181
- package/dist/types/typed-buffer/structs/write-struct.test.js.map +0 -1
- package/dist/types/typed-buffer/typed-buffer.d.ts +0 -16
- package/dist/types/typed-buffer/typed-buffer.js +0 -2
- package/dist/types/typed-buffer/typed-buffer.js.map +0 -1
- package/dist/types/typed-buffer/typed-buffer.test.d.ts +0 -1
- package/dist/types/typed-buffer/typed-buffer.test.js +0 -223
- package/dist/types/typed-buffer/typed-buffer.test.js.map +0 -1
- package/dist/ui/decorators/apply-decorator.d.ts +0 -1
- package/dist/ui/decorators/apply-decorator.js +0 -18
- package/dist/ui/decorators/apply-decorator.js.map +0 -1
- package/dist/ui/decorators/apply-service-decorators.d.ts +0 -1
- package/dist/ui/decorators/apply-service-decorators.js +0 -12
- package/dist/ui/decorators/apply-service-decorators.js.map +0 -1
- package/dist/ui/decorators/require-service.d.ts +0 -1
- package/dist/ui/decorators/require-service.js +0 -13
- package/dist/ui/decorators/require-service.js.map +0 -1
- package/dist/ui/elements/index.d.ts +0 -3
- package/dist/ui/elements/index.js +0 -4
- package/dist/ui/elements/index.js.map +0 -1
- package/dist/ui/elements/service-application.d.ts +0 -8
- package/dist/ui/elements/service-application.js +0 -27
- package/dist/ui/elements/service-application.js.map +0 -1
- package/dist/ui/elements/service-context.d.ts +0 -1
- package/dist/ui/elements/service-context.js +0 -3
- package/dist/ui/elements/service-context.js.map +0 -1
- package/dist/ui/elements/service-element.d.ts +0 -6
- package/dist/ui/elements/service-element.js +0 -22
- package/dist/ui/elements/service-element.js.map +0 -1
- package/dist/ui/hooks/component/component.d.ts +0 -9
- package/dist/ui/hooks/component/component.js +0 -2
- package/dist/ui/hooks/component/component.js.map +0 -1
- package/dist/ui/hooks/component/stack.d.ts +0 -6
- package/dist/ui/hooks/component/stack.js +0 -15
- package/dist/ui/hooks/component/stack.js.map +0 -1
- package/dist/ui/hooks/index.d.ts +0 -7
- package/dist/ui/hooks/index.js +0 -9
- package/dist/ui/hooks/index.js.map +0 -1
- package/dist/ui/hooks/use-connected.d.ts +0 -2
- package/dist/ui/hooks/use-connected.js +0 -31
- package/dist/ui/hooks/use-connected.js.map +0 -1
- package/dist/ui/hooks/use-effect.d.ts +0 -3
- package/dist/ui/hooks/use-effect.js +0 -13
- package/dist/ui/hooks/use-effect.js.map +0 -1
- package/dist/ui/hooks/use-element.d.ts +0 -4
- package/dist/ui/hooks/use-element.js +0 -8
- package/dist/ui/hooks/use-element.js.map +0 -1
- package/dist/ui/hooks/use-memo.d.ts +0 -1
- package/dist/ui/hooks/use-memo.js +0 -12
- package/dist/ui/hooks/use-memo.js.map +0 -1
- package/dist/ui/hooks/use-observable-values.d.ts +0 -5
- package/dist/ui/hooks/use-observable-values.js +0 -8
- package/dist/ui/hooks/use-observable-values.js.map +0 -1
- package/dist/ui/hooks/use-observable.d.ts +0 -2
- package/dist/ui/hooks/use-observable.js +0 -12
- package/dist/ui/hooks/use-observable.js.map +0 -1
- package/dist/ui/hooks/use-ref.d.ts +0 -3
- package/dist/ui/hooks/use-ref.js +0 -6
- package/dist/ui/hooks/use-ref.js.map +0 -1
- package/dist/ui/hooks/use-resize-observer.d.ts +0 -10
- package/dist/ui/hooks/use-resize-observer.js +0 -20
- package/dist/ui/hooks/use-resize-observer.js.map +0 -1
- package/dist/ui/hooks/use-state.d.ts +0 -2
- package/dist/ui/hooks/use-state.js +0 -14
- package/dist/ui/hooks/use-state.js.map +0 -1
- package/dist/ui/hooks/use-window-event.d.ts +0 -1
- package/dist/ui/hooks/use-window-event.js +0 -10
- package/dist/ui/hooks/use-window-event.js.map +0 -1
- package/dist/ui/hooks/with-hooks.d.ts +0 -2
- package/dist/ui/hooks/with-hooks.js +0 -15
- package/dist/ui/hooks/with-hooks.js.map +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -2
- package/dist/ui/index.js.map +0 -1
- /package/dist/{_/equals.test.d.ts → ecs/database/database-schema/create-database-schema-test.d.ts} +0 -0
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
import { describe, it, expect } from 'vitest';
|
|
23
|
-
import { deepAssign } from './deep-assign.js';
|
|
24
|
-
describe('deepAssign', () => {
|
|
25
|
-
it('should merge flat objects by mutating target', () => {
|
|
26
|
-
const target = { a: 1 };
|
|
27
|
-
const source = { b: 2 };
|
|
28
|
-
const result = deepAssign(target, source);
|
|
29
|
-
expect(result).toEqual({ a: 1, b: 2 });
|
|
30
|
-
// Verify target was modified
|
|
31
|
-
expect(target).toEqual({ a: 1, b: 2 });
|
|
32
|
-
// Verify result is the same object as target
|
|
33
|
-
expect(result).toBe(target);
|
|
34
|
-
// Verify source wasn't modified
|
|
35
|
-
expect(source).toEqual({ b: 2 });
|
|
36
|
-
});
|
|
37
|
-
it('should deeply merge nested objects by mutating target', () => {
|
|
38
|
-
const target = {
|
|
39
|
-
a: { x: 1, y: 2 },
|
|
40
|
-
b: { z: 3 }
|
|
41
|
-
};
|
|
42
|
-
const source = {
|
|
43
|
-
a: { z: 3, w: 4 },
|
|
44
|
-
b: { q: 5 }
|
|
45
|
-
};
|
|
46
|
-
const result = deepAssign(target, source);
|
|
47
|
-
const expected = {
|
|
48
|
-
a: { x: 1, y: 2, z: 3, w: 4 },
|
|
49
|
-
b: { z: 3, q: 5 }
|
|
50
|
-
};
|
|
51
|
-
expect(result).toEqual(expected);
|
|
52
|
-
// Verify target was modified
|
|
53
|
-
expect(target).toEqual(expected);
|
|
54
|
-
// Verify nested objects are the same instances
|
|
55
|
-
expect(result.a).toBe(target.a);
|
|
56
|
-
expect(result.b).toBe(target.b);
|
|
57
|
-
});
|
|
58
|
-
it('should deeply merge nested objects by mutating target', () => {
|
|
59
|
-
const target = {
|
|
60
|
-
a: [1, 2, 3],
|
|
61
|
-
b: { z: 3 }
|
|
62
|
-
};
|
|
63
|
-
const source = {
|
|
64
|
-
a: { z: 3, w: 4 },
|
|
65
|
-
b: { q: 5 }
|
|
66
|
-
};
|
|
67
|
-
const result = deepAssign(target, source);
|
|
68
|
-
const expected = {
|
|
69
|
-
a: Object.assign([1, 2, 3], { z: 3, w: 4 }),
|
|
70
|
-
b: { z: 3, q: 5 }
|
|
71
|
-
};
|
|
72
|
-
expect(result).toEqual(expected);
|
|
73
|
-
// Verify target was modified
|
|
74
|
-
expect(target).toEqual(expected);
|
|
75
|
-
// Verify nested objects are the same instances
|
|
76
|
-
expect(result.a).toBe(target.a);
|
|
77
|
-
expect(result.b).toBe(target.b);
|
|
78
|
-
});
|
|
79
|
-
it('should throw when trying to overwrite primitive values', () => {
|
|
80
|
-
const target = {
|
|
81
|
-
a: 1,
|
|
82
|
-
b: { x: 1 }
|
|
83
|
-
};
|
|
84
|
-
const source = {
|
|
85
|
-
a: 2,
|
|
86
|
-
b: { x: 2 }
|
|
87
|
-
};
|
|
88
|
-
expect(() => deepAssign(target, source)).toThrow('Cannot overwrite existing value at path "a"');
|
|
89
|
-
// Verify target wasn't modified when error thrown
|
|
90
|
-
expect(target).toEqual({
|
|
91
|
-
a: 1,
|
|
92
|
-
b: { x: 1 }
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
it('should throw when trying to overwrite arrays', () => {
|
|
96
|
-
const target = {
|
|
97
|
-
a: [1, 2, 3],
|
|
98
|
-
b: { x: 1 }
|
|
99
|
-
};
|
|
100
|
-
const source = {
|
|
101
|
-
a: [4, 5, 6],
|
|
102
|
-
b: { x: 2 }
|
|
103
|
-
};
|
|
104
|
-
expect(() => deepAssign(target, source)).toThrow('Cannot overwrite existing value at path "a"');
|
|
105
|
-
// Verify target wasn't modified when error thrown
|
|
106
|
-
expect(target).toEqual({
|
|
107
|
-
a: [1, 2, 3],
|
|
108
|
-
b: { x: 1 }
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
it('should handle undefined values correctly', () => {
|
|
112
|
-
const target = {
|
|
113
|
-
a: undefined,
|
|
114
|
-
b: { x: undefined }
|
|
115
|
-
};
|
|
116
|
-
const source = {
|
|
117
|
-
a: 1,
|
|
118
|
-
b: { x: 2, y: 3 }
|
|
119
|
-
};
|
|
120
|
-
const result = deepAssign(target, source);
|
|
121
|
-
const expected = {
|
|
122
|
-
a: 1,
|
|
123
|
-
b: { x: 2, y: 3 }
|
|
124
|
-
};
|
|
125
|
-
expect(result).toEqual(expected);
|
|
126
|
-
// Verify target was modified
|
|
127
|
-
expect(target).toEqual(expected);
|
|
128
|
-
// Verify result is the same object as target
|
|
129
|
-
expect(result).toBe(target);
|
|
130
|
-
});
|
|
131
|
-
it('should handle deeply nested merges by mutating target', () => {
|
|
132
|
-
const target = {
|
|
133
|
-
a: {
|
|
134
|
-
b: {
|
|
135
|
-
c: {
|
|
136
|
-
d: { x: 1 }
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const source = {
|
|
142
|
-
a: {
|
|
143
|
-
b: {
|
|
144
|
-
c: {
|
|
145
|
-
d: { y: 2 }
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
const result = deepAssign(target, source);
|
|
151
|
-
const expected = {
|
|
152
|
-
a: {
|
|
153
|
-
b: {
|
|
154
|
-
c: {
|
|
155
|
-
d: { x: 1, y: 2 }
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
expect(result).toEqual(expected);
|
|
161
|
-
// Verify target was modified
|
|
162
|
-
expect(target).toEqual(expected);
|
|
163
|
-
// Verify all nested objects are the same instances
|
|
164
|
-
expect(result.a).toBe(target.a);
|
|
165
|
-
expect(result.a.b).toBe(target.a.b);
|
|
166
|
-
expect(result.a.b.c).toBe(target.a.b.c);
|
|
167
|
-
expect(result.a.b.c.d).toBe(target.a.b.c.d);
|
|
168
|
-
});
|
|
169
|
-
it('should handle empty objects', () => {
|
|
170
|
-
const target = {};
|
|
171
|
-
const source = { a: 1 };
|
|
172
|
-
const result = deepAssign(target, source);
|
|
173
|
-
expect(result).toEqual({ a: 1 });
|
|
174
|
-
// Verify target was modified
|
|
175
|
-
expect(target).toEqual({ a: 1 });
|
|
176
|
-
// Verify result is the same object as target
|
|
177
|
-
expect(result).toBe(target);
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
//# sourceMappingURL=deep-assign.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deep-assign.test.js","sourceRoot":"","sources":["../../../src/core/functions/deep-assign.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AACX,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACvC,6BAA6B;QAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACvC,6CAA6C;QAC7C,MAAM,CAAC,MAAM,CAA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ACnD,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACnC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACjC,6BAA6B;QAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACjC,6CAA6C;QAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Uses datacache to store results so we can avoid expensive recomputations of the same input.
|
|
3
|
-
* This function also uses preventParallelExecution to prevent multiple executions of the same function at the same time with the same arguments.
|
|
4
|
-
* @param fn The function to memoize by storing results in the DataCache.
|
|
5
|
-
* @param version The version of this function. If the function changes this must also change
|
|
6
|
-
* to avoid returning stale results from an older version of the function.
|
|
7
|
-
* @param name The name of this function which should be application unique to avoid hash collisions.
|
|
8
|
-
* @returns A function with the same signature but memoized results.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Recursively merges 2 pieces of `Data`, returns new `Data`.
|
|
12
|
-
* Inputs are not mutated.
|
|
13
|
-
*
|
|
14
|
-
* @param {Data} a First piece of `Data`.
|
|
15
|
-
* @param {Data} b The second piece of `Data`.
|
|
16
|
-
* @returns {Object} Returns new `Data`.
|
|
17
|
-
* @example
|
|
18
|
-
*
|
|
19
|
-
* const one = {
|
|
20
|
-
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
|
21
|
-
* };
|
|
22
|
-
*
|
|
23
|
-
* const other = {
|
|
24
|
-
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
|
25
|
-
* };
|
|
26
|
-
*
|
|
27
|
-
* deepMerge(one, other);
|
|
28
|
-
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
29
|
-
*/
|
|
30
|
-
export declare const deepMerge: <A, B>(a: A, b: B, options?: {
|
|
31
|
-
mergeArrays?: boolean;
|
|
32
|
-
}) => A & B;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Uses datacache to store results so we can avoid expensive recomputations of the same input.
|
|
3
|
-
* This function also uses preventParallelExecution to prevent multiple executions of the same function at the same time with the same arguments.
|
|
4
|
-
* @param fn The function to memoize by storing results in the DataCache.
|
|
5
|
-
* @param version The version of this function. If the function changes this must also change
|
|
6
|
-
* to avoid returning stale results from an older version of the function.
|
|
7
|
-
* @param name The name of this function which should be application unique to avoid hash collisions.
|
|
8
|
-
* @returns A function with the same signature but memoized results.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Recursively merges 2 pieces of `Data`, returns new `Data`.
|
|
12
|
-
* Inputs are not mutated.
|
|
13
|
-
*
|
|
14
|
-
* @param {Data} a First piece of `Data`.
|
|
15
|
-
* @param {Data} b The second piece of `Data`.
|
|
16
|
-
* @returns {Object} Returns new `Data`.
|
|
17
|
-
* @example
|
|
18
|
-
*
|
|
19
|
-
* const one = {
|
|
20
|
-
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
|
21
|
-
* };
|
|
22
|
-
*
|
|
23
|
-
* const other = {
|
|
24
|
-
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
|
25
|
-
* };
|
|
26
|
-
*
|
|
27
|
-
* deepMerge(one, other);
|
|
28
|
-
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
29
|
-
*/
|
|
30
|
-
export const deepMerge = (a, b, options = {}) => {
|
|
31
|
-
const { mergeArrays = true } = options;
|
|
32
|
-
// Handle null/undefined cases
|
|
33
|
-
if (a == null || typeof a !== 'object' || typeof b !== 'object')
|
|
34
|
-
return b;
|
|
35
|
-
// Handle arrays
|
|
36
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
37
|
-
if (mergeArrays) {
|
|
38
|
-
return [...a, ...b];
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return b;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
// Handle objects
|
|
45
|
-
const result = { ...a };
|
|
46
|
-
for (const key in b) {
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(b, key)) {
|
|
48
|
-
const value = b[key];
|
|
49
|
-
result[key] = deepMerge(a[key], value, options);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=deep-merge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deep-merge.js","sourceRoot":"","sources":["../../../src/core/functions/deep-merge.ts"],"names":[],"mappings":"AAuBA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAO,CAAI,EAAE,CAAI,EAAE,UAAqC,EAAE,EAAS,EAAE;IAC5F,MAAM,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACvC,8BAA8B;IAC9B,IAAI,CAAC,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAU,CAAC;IAEnF,gBAAgB;IAChB,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACzC,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAqB,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,OAAO,CAAU,CAAC;QACpB,CAAC;IACH,CAAC;IAED,iBAAiB;IACjB,MAAM,MAAM,GAAG,EAAE,GAAG,CAAC,EAA0B,CAAC;IAChD,KAAK,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;QACpB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;YACjD,MAAM,KAAK,GAAI,CAA0B,CAAC,GAAG,CAAC,CAAC;YAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAE,CAA0B,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;IACD,OAAO,MAAe,CAAC;AACzB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
import { deepMerge } from './deep-merge.js';
|
|
23
|
-
import { assert } from 'riteway/vitest';
|
|
24
|
-
import { describe, test } from 'vitest';
|
|
25
|
-
describe('deepMerge', () => {
|
|
26
|
-
test('should merge two objects', () => {
|
|
27
|
-
const a = { a: 1, b: 2 };
|
|
28
|
-
const b = { c: 3, d: 4 };
|
|
29
|
-
assert({
|
|
30
|
-
given: 'two objects without overlapping keys',
|
|
31
|
-
should: 'merge them',
|
|
32
|
-
actual: deepMerge(a, b),
|
|
33
|
-
expected: { a: 1, b: 2, c: 3, d: 4 },
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
test('should merge two objects with overlapping keys', () => {
|
|
37
|
-
const a = { a: 1, b: 2 };
|
|
38
|
-
const b = { b: 3, c: 4 };
|
|
39
|
-
assert({
|
|
40
|
-
given: 'two objects with overlapping keys',
|
|
41
|
-
should: 'merge them',
|
|
42
|
-
actual: deepMerge(a, b),
|
|
43
|
-
expected: { a: 1, b: 3, c: 4 },
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
test('should merge two objects with overlapping keys and arrays', () => {
|
|
47
|
-
const a = { a: 1, b: [1, 2] };
|
|
48
|
-
const b = { b: [3, 4], c: 4 };
|
|
49
|
-
assert({
|
|
50
|
-
given: 'two objects with overlapping keys and arrays',
|
|
51
|
-
should: 'merge them',
|
|
52
|
-
actual: deepMerge(a, b),
|
|
53
|
-
expected: { a: 1, b: [1, 2, 3, 4], c: 4 },
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
test('should merge two nested objects with overlapping keys', () => {
|
|
57
|
-
const a = { a: 1, b: { c: 2, d: 3 } };
|
|
58
|
-
const b = { b: { d: 4, e: 5 }, c: 6 };
|
|
59
|
-
assert({
|
|
60
|
-
given: 'two nested objects with overlapping keys',
|
|
61
|
-
should: 'merge them',
|
|
62
|
-
actual: deepMerge(a, b),
|
|
63
|
-
expected: { a: 1, b: { c: 2, d: 4, e: 5 }, c: 6 },
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
test('should merge two objects with null values', () => {
|
|
67
|
-
const a = { a: null, b: 2 };
|
|
68
|
-
const b = { b: null, c: 4 };
|
|
69
|
-
assert({
|
|
70
|
-
given: 'two objects with null values',
|
|
71
|
-
should: 'merge them',
|
|
72
|
-
actual: deepMerge(a, b),
|
|
73
|
-
expected: { a: null, b: null, c: 4 },
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
test('should merge two objects with undefined values', () => {
|
|
77
|
-
const a = { a: undefined, b: 2 };
|
|
78
|
-
const b = { b: undefined, c: 4 };
|
|
79
|
-
assert({
|
|
80
|
-
given: 'two objects with undefined values',
|
|
81
|
-
should: 'merge them',
|
|
82
|
-
actual: deepMerge(a, b),
|
|
83
|
-
expected: { a: undefined, b: undefined, c: 4 },
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
test('should not mutate the original objects', () => {
|
|
87
|
-
const a = { a: 1, b: 2 };
|
|
88
|
-
const b = { b: 3, c: 4 };
|
|
89
|
-
deepMerge(a, b);
|
|
90
|
-
assert({ given: 'the original objects', should: 'not be mutated', actual: a, expected: { a: 1, b: 2 } });
|
|
91
|
-
assert({ given: 'the original objects', should: 'not be mutated', actual: b, expected: { b: 3, c: 4 } });
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=deep-merge.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deep-merge.test.js","sourceRoot":"","sources":["../../../src/core/functions/deep-merge.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AACX,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAExC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,IAAI,CAAC,0BAA0B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACzB,MAAM,CAAC;YACL,KAAK,EAAE,sCAAsC;YAC7C,MAAM,EAAE,YAAY;YACpB,MAAM,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;YACvB,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;SACrC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAA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AAC,EAAE,CAAC,CAAC;YACvB,QAAQ,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE;SAC/C,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAClD,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACzB,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAChB,MAAM,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACzG,MAAM,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3G,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../internal/async-generator/is-async-generator.js';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
export * from '../../internal/async-generator/is-async-generator.js';
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/functions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,cAAc,sDAAsD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isAsyncGenerator<T>(value: any): value is AsyncGenerator<T>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
export function isAsyncGenerator(value) {
|
|
23
|
-
return value && typeof value[Symbol.asyncIterator] === 'function';
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=is-async-generator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-async-generator.js","sourceRoot":"","sources":["../../../src/core/functions/is-async-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,MAAM,UAAU,gBAAgB,CAAI,KAAU;IAC1C,OAAO,KAAK,IAAI,OAAO,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,UAAU,CAAC;AACtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isPromise<T = unknown>(obj: unknown): obj is Promise<T>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
export function isPromise(obj) {
|
|
23
|
-
const maybePromise = obj;
|
|
24
|
-
return (!!maybePromise && (typeof maybePromise === 'object' || typeof maybePromise === 'function') && typeof maybePromise?.then === 'function');
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=is-promise.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-promise.js","sourceRoot":"","sources":["../../../src/core/functions/is-promise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,MAAM,UAAU,SAAS,CAAc,GAAY;IAC/C,MAAM,YAAY,GAAG,GAAsC,CAAC;IAC5D,OAAO,CACH,CAAC,CAAC,YAAY,IAAI,CAAC,OAAO,YAAY,KAAK,QAAQ,IAAI,OAAO,YAAY,KAAK,UAAU,CAAC,IAAI,OAAO,YAAY,EAAE,IAAI,KAAK,UAAU,CACzI,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function memoizeFactory<K, V>(fn: (key: K) => V): (key: K) => V;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function memoizeFactory(fn) {
|
|
2
|
-
const cache = new Map();
|
|
3
|
-
return (key) => {
|
|
4
|
-
if (cache.has(key)) {
|
|
5
|
-
return cache.get(key);
|
|
6
|
-
}
|
|
7
|
-
const value = fn(key);
|
|
8
|
-
cache.set(key, value);
|
|
9
|
-
return value;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=memoize-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memoize-factory.js","sourceRoot":"","sources":["../../../src/core/functions/memoize-factory.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,cAAc,CAAM,EAAiB;IACjD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAQ,CAAC;IAC9B,OAAO,CAAC,GAAM,EAAK,EAAE;QACjB,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACjB,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;QAC3B,CAAC;QACD,MAAM,KAAK,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QACtB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtB,OAAO,KAAK,CAAC;IACjB,CAAC,CAAA;AACL,CAAC"}
|
package/dist/core/index.d.ts
DELETED
package/dist/core/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
export { equals } from "./equals.js";
|
|
23
|
-
export { normalize } from "./normalize.js";
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/dist/core/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAIX,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC"}
|
package/dist/core/is-data.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Primitive = string | number | boolean | null;
|
|
2
|
-
/** invariant type-equality check (handles `readonly` correctly) */
|
|
3
|
-
type EqualReadonly<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? (<T>() => T extends Y ? 1 : 2) extends (<T>() => T extends X ? 1 : 2) ? true : false : false;
|
|
4
|
-
/** are *all* own props already `readonly`? */
|
|
5
|
-
type IsFullyReadonly<T> = EqualReadonly<T, Readonly<T>>;
|
|
6
|
-
export type IsData<T> = [
|
|
7
|
-
T
|
|
8
|
-
] extends [Primitive] ? true : T extends ReadonlyArray<infer U> ? EqualReadonly<T, ReadonlyArray<U>> extends true ? IsData<U> : false : T extends object ? IsFullyReadonly<T> extends true ? {
|
|
9
|
-
[K in keyof T]-?: IsData<T[K]>;
|
|
10
|
-
}[keyof T] extends false ? false : true : false : false;
|
|
11
|
-
export {};
|
package/dist/core/is-data.js
DELETED
package/dist/core/is-data.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-data.js","sourceRoot":"","sources":["../../src/core/is-data.ts"],"names":[],"mappings":""}
|
package/dist/core/normalize.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function normalize<D>(d: D): D;
|
package/dist/core/normalize.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*MIT License
|
|
2
|
-
|
|
3
|
-
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.*/
|
|
22
|
-
export function normalize(d) {
|
|
23
|
-
// we could structured clone but let's explicitly shed any keys with undefined values.
|
|
24
|
-
return JSON.parse(JSON.stringify(d), (_key, value) => {
|
|
25
|
-
if (value && !Array.isArray(value) && typeof value === "object") {
|
|
26
|
-
return Object.fromEntries(Object.entries(value).sort(([a], [b]) =>
|
|
27
|
-
// not using String.localeCompare
|
|
28
|
-
// we want this consistent no matter locale
|
|
29
|
-
a < b ? -1 : a > b ? 1 : 0));
|
|
30
|
-
}
|
|
31
|
-
return value;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=normalize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../src/core/normalize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,uFAAuF;IACvF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAY,EAAE,KAAc,EAAE,EAAE;QACpE,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAChE,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,kCAAkC;YAClC,4CAA4C;YAC5C,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC3B,CACF,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|