@adobe/data 0.5.1 → 0.5.3
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/blob/blob-handle.d.ts +29 -0
- package/dist/blob/blob-handle.js +11 -0
- package/dist/blob/blob-handle.js.map +1 -0
- package/dist/blob/blob-meta.d.ts +23 -0
- package/dist/blob/blob-meta.js +12 -0
- package/dist/blob/blob-meta.js.map +1 -0
- package/dist/blob/download-handle.d.ts +4 -0
- package/dist/blob/download-handle.js +2 -0
- package/dist/blob/download-handle.js.map +1 -0
- package/dist/blob/index.d.ts +4 -0
- package/dist/blob/index.js +5 -0
- package/dist/blob/index.js.map +1 -0
- package/dist/blob/upload-handle.d.ts +4 -0
- package/dist/blob/upload-handle.js +2 -0
- package/dist/blob/upload-handle.js.map +1 -0
- package/dist/ecs/store/create-store.test.js +13 -0
- package/dist/ecs/store/create-store.test.js.map +1 -1
- package/dist/schema/schema.d.ts +8 -12
- package/dist/schema/schema.js.map +1 -1
- package/dist/service/is-service.js +1 -2
- package/dist/service/is-service.js.map +1 -1
- package/dist/service/progressive-result.d.ts +5 -6
- package/dist/service/progressive-result.js.map +1 -1
- package/dist/services/add-observable-actions.d.ts +29 -0
- package/dist/services/add-observable-actions.js +108 -0
- package/dist/services/add-observable-actions.js.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/{core → services}/index.js +3 -3
- package/dist/services/index.js.map +1 -0
- package/dist/services/is-service.d.ts +2 -0
- package/dist/{cache/functions/omit.js → services/is-service.js} +3 -7
- package/dist/services/is-service.js.map +1 -0
- package/dist/services/progressive-result.d.ts +96 -0
- package/dist/services/progressive-result.js +99 -0
- package/dist/services/progressive-result.js.map +1 -0
- package/dist/services/service.d.ts +4 -0
- package/dist/{cache/functions/types.js → services/service.js} +1 -1
- package/dist/services/service.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typed-buffer/structs/get-struct-layout.js +3 -3
- package/dist/typed-buffer/structs/get-struct-layout.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/replace.d.ts +7 -0
- package/dist/types/replace.js +5 -0
- package/dist/types/replace.js.map +1 -0
- package/package.json +8 -1
- package/dist/README.md +0 -310
- 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/hashing/arrayBufferToHex.d.ts +0 -1
- package/dist/cache/functions/hashing/arrayBufferToHex.js +0 -27
- package/dist/cache/functions/hashing/arrayBufferToHex.js.map +0 -1
- package/dist/cache/functions/omit.d.ts +0 -1
- package/dist/cache/functions/omit.js.map +0 -1
- package/dist/cache/functions/types.d.ts +0 -1
- package/dist/cache/functions/types.js.map +0 -1
- package/dist/core/data.d.ts +0 -22
- package/dist/core/data.js +0 -52
- 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/functions/array-equals.d.ts +0 -1
- package/dist/core/functions/array-equals.js +0 -34
- package/dist/core/functions/array-equals.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 -3
- package/dist/core/functions/index.js +0 -25
- 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/with-validation.d.ts +0 -5
- package/dist/core/functions/with-validation.js +0 -38
- package/dist/core/functions/with-validation.js.map +0 -1
- package/dist/core/functions/with-validation.test.d.ts +0 -1
- package/dist/core/functions/with-validation.test.js +0 -96
- package/dist/core/functions/with-validation.test.js.map +0 -1
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js.map +0 -1
- package/dist/core/schema/dynamic/dynamic-schema.d.ts +0 -27
- package/dist/core/schema/dynamic/dynamic-schema.js +0 -2
- package/dist/core/schema/dynamic/dynamic-schema.js.map +0 -1
- package/dist/core/schema/dynamic/enumerate-patches.d.ts +0 -9
- package/dist/core/schema/dynamic/enumerate-patches.js +0 -50
- package/dist/core/schema/dynamic/enumerate-patches.js.map +0 -1
- package/dist/core/schema/dynamic/enumerate-patches.test.d.ts +0 -134
- package/dist/core/schema/dynamic/enumerate-patches.test.js +0 -209
- package/dist/core/schema/dynamic/enumerate-patches.test.js.map +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.d.ts +0 -5
- package/dist/core/schema/dynamic/get-dynamic-schema.js +0 -26
- package/dist/core/schema/dynamic/get-dynamic-schema.js.map +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.test.d.ts +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.test.js +0 -94
- package/dist/core/schema/dynamic/get-dynamic-schema.test.js.map +0 -1
- package/dist/core/schema/dynamic/index.d.ts +0 -1
- package/dist/core/schema/dynamic/index.js +0 -2
- package/dist/core/schema/dynamic/index.js.map +0 -1
- package/dist/core/schema/dynamic/schema-path-value-path.d.ts +0 -5
- package/dist/core/schema/dynamic/schema-path-value-path.js +0 -12
- package/dist/core/schema/dynamic/schema-path-value-path.js.map +0 -1
- package/dist/core/schema/dynamic-schema.d.ts +0 -27
- package/dist/core/schema/dynamic-schema.js +0 -2
- package/dist/core/schema/dynamic-schema.js.map +0 -1
- package/dist/core/schema/index.d.ts +0 -4
- package/dist/core/schema/index.js +0 -26
- package/dist/core/schema/index.js.map +0 -1
- package/dist/core/schema/schema.d.ts +0 -122
- package/dist/core/schema/schema.js +0 -34
- package/dist/core/schema/schema.js.map +0 -1
- package/dist/core/schema/schemas.d.ts +0 -45
- package/dist/core/schema/schemas.js +0 -39
- package/dist/core/schema/schemas.js.map +0 -1
- package/dist/core/schema/ui-schema.d.ts +0 -25
- package/dist/core/schema/ui-schema.js +0 -2
- package/dist/core/schema/ui-schema.js.map +0 -1
- package/dist/core/schema/validation/is-valid.d.ts +0 -2
- package/dist/core/schema/validation/is-valid.js +0 -14
- package/dist/core/schema/validation/is-valid.js.map +0 -1
- package/dist/core/schema/validation/is-valid.test.d.ts +0 -1
- package/dist/core/schema/validation/is-valid.test.js +0 -40
- package/dist/core/schema/validation/is-valid.test.js.map +0 -1
- package/dist/core/schema/validation/validate.d.ts +0 -2
- package/dist/core/schema/validation/validate.js +0 -38
- package/dist/core/schema/validation/validate.js.map +0 -1
- package/dist/core/schema/validation/validate.test.d.ts +0 -1
- package/dist/core/schema/validation/validate.test.js +0 -106
- package/dist/core/schema/validation/validate.test.js.map +0 -1
- package/dist/core/schema/validation/with-validation.d.ts +0 -5
- package/dist/core/schema/validation/with-validation.js +0 -16
- package/dist/core/schema/validation/with-validation.js.map +0 -1
- package/dist/core/schema/validation/with-validation.test.d.ts +0 -1
- package/dist/core/schema/validation/with-validation.test.js +0 -96
- package/dist/core/schema/validation/with-validation.test.js.map +0 -1
- package/dist/core/schema.d.ts +0 -86
- package/dist/core/schema.js +0 -33
- package/dist/core/schema.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/core/schemas.d.ts +0 -45
- package/dist/core/schemas.js +0 -39
- package/dist/core/schemas.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 -362
- 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 -2
- package/dist/ecs/action-ecs/index.js +0 -23
- package/dist/ecs/action-ecs/index.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 -230
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs-types.d.ts +0 -141
- package/dist/ecs/core-ecs/core-ecs-types.js +0 -23
- 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 -425
- 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-schema-test.d.ts +0 -1
- package/dist/ecs/database/database-schema/create-database-schema-test.js +0 -42
- package/dist/ecs/database/database-schema/create-database-schema-test.js.map +0 -1
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +0 -12
- package/dist/ecs/database/database-schema/create-database-schema.js +0 -26
- package/dist/ecs/database/database-schema/create-database-schema.js.map +0 -1
- package/dist/ecs/database/database-schema/database-schema.d.ts +0 -15
- package/dist/ecs/database/database-schema/database-schema.js +0 -23
- package/dist/ecs/database/database-schema/database-schema.js.map +0 -1
- package/dist/ecs/database/database-schema/index.d.ts +0 -2
- package/dist/ecs/database/database-schema/index.js +0 -24
- package/dist/ecs/database/database-schema/index.js.map +0 -1
- package/dist/ecs/database/register-database-codec.d.ts +0 -1
- package/dist/ecs/database/register-database-codec.js +0 -35
- package/dist/ecs/database/register-database-codec.js.map +0 -1
- package/dist/ecs/database/register-database-codecs.d.ts +0 -1
- package/dist/ecs/database/register-database-codecs.js +0 -35
- package/dist/ecs/database/register-database-codecs.js.map +0 -1
- package/dist/ecs/database/register-store-codec.d.ts +0 -1
- package/dist/ecs/database/register-store-codec.js +0 -35
- package/dist/ecs/database/register-store-codec.js.map +0 -1
- package/dist/ecs/database/register-typed-buffer-codecs.d.ts +0 -1
- package/dist/ecs/database/register-typed-buffer-codecs.js +0 -80
- package/dist/ecs/database/register-typed-buffer-codecs.js.map +0 -1
- package/dist/ecs/database/transactional-store/apply-write-operations.d.ts +0 -7
- package/dist/ecs/database/transactional-store/apply-write-operations.js +0 -20
- package/dist/ecs/database/transactional-store/apply-write-operations.js.map +0 -1
- package/dist/ecs/database/transactional-store/applyWriteOperations.d.ts +0 -7
- package/dist/ecs/database/transactional-store/applyWriteOperations.js +0 -20
- package/dist/ecs/database/transactional-store/applyWriteOperations.js.map +0 -1
- package/dist/ecs/database/transactional-store/create-test-transaction.d.ts +0 -7
- package/dist/ecs/database/transactional-store/create-test-transaction.js +0 -7
- package/dist/ecs/database/transactional-store/create-test-transaction.js.map +0 -1
- package/dist/ecs/database/transactional-store/patch.d.ts +0 -3
- package/dist/ecs/database/transactional-store/patch.js +0 -7
- package/dist/ecs/database/transactional-store/patch.js.map +0 -1
- package/dist/ecs/database/transactional-store/undoable.d.ts +0 -13
- package/dist/ecs/database/transactional-store/undoable.js +0 -23
- package/dist/ecs/database/transactional-store/undoable.js.map +0 -1
- package/dist/ecs/database/transactional-store/with-undoable.d.ts +0 -10
- package/dist/ecs/database/transactional-store/with-undoable.js +0 -13
- package/dist/ecs/database/transactional-store/with-undoable.js.map +0 -1
- package/dist/ecs/database/with-undoable.d.ts +0 -10
- package/dist/ecs/database/with-undoable.js +0 -13
- package/dist/ecs/database/with-undoable.js.map +0 -1
- package/dist/ecs/ecs/ecs-types.d.ts +0 -132
- 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 -3
- package/dist/ecs/ecs/index.js +0 -3
- package/dist/ecs/ecs/index.js.map +0 -1
- package/dist/ecs/entity-location-table/register-database-codec.d.ts +0 -1
- package/dist/ecs/entity-location-table/register-database-codec.js +0 -35
- package/dist/ecs/entity-location-table/register-database-codec.js.map +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.d.ts +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.js +0 -42
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.js.map +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.test.d.ts +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.test.js +0 -70
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.test.js.map +0 -1
- package/dist/ecs/persistence-service/create-persistence-service.d.ts +0 -6
- package/dist/ecs/persistence-service/create-persistence-service.js +0 -24
- package/dist/ecs/persistence-service/create-persistence-service.js.map +0 -1
- package/dist/ecs/persistence-service/create-session-persistence-service.d.ts +0 -8
- package/dist/ecs/persistence-service/create-session-persistence-service.js +0 -49
- package/dist/ecs/persistence-service/create-session-persistence-service.js.map +0 -1
- package/dist/ecs/persistence-service/persistence-service copy.d.ts +0 -5
- package/dist/ecs/persistence-service/persistence-service copy.js +0 -2
- package/dist/ecs/persistence-service/persistence-service copy.js.map +0 -1
- package/dist/ecs/persistence-service/to-blob-refs.d.ts +0 -2
- package/dist/ecs/persistence-service/to-blob-refs.js +0 -3
- package/dist/ecs/persistence-service/to-blob-refs.js.map +0 -1
- package/dist/ecs/persistence-service/undo-redo-service.d.ts +0 -11
- package/dist/ecs/persistence-service/undo-redo-service.js +0 -23
- package/dist/ecs/persistence-service/undo-redo-service.js.map +0 -1
- package/dist/ecs/store/core/register-core-codec.d.ts +0 -1
- package/dist/ecs/store/core/register-core-codec.js +0 -45
- package/dist/ecs/store/core/register-core-codec.js.map +0 -1
- package/dist/ecs/store/core/register-core-codec.test.d.ts +0 -1
- package/dist/ecs/store/core/register-core-codec.test.js +0 -136
- package/dist/ecs/store/core/register-core-codec.test.js.map +0 -1
- package/dist/ecs/store/query.d.ts +0 -47
- package/dist/ecs/store/query.js +0 -2
- package/dist/ecs/store/query.js.map +0 -1
- package/dist/ecs/store/register-core-codec.d.ts +0 -1
- package/dist/ecs/store/register-core-codec.js +0 -38
- package/dist/ecs/store/register-core-codec.js.map +0 -1
- package/dist/ecs/store/register-store-codec.d.ts +0 -1
- package/dist/ecs/store/register-store-codec.js +0 -38
- package/dist/ecs/store/register-store-codec.js.map +0 -1
- package/dist/ecs/store/restore-store.d.ts +0 -12
- package/dist/ecs/store/restore-store.js +0 -91
- package/dist/ecs/store/restore-store.js.map +0 -1
- package/dist/ecs/store/select-options.d.ts +0 -1
- package/dist/ecs/store/select-options.js +0 -16
- package/dist/ecs/store/select-options.js.map +0 -1
- package/dist/ecs/store/select.d.ts +0 -44
- package/dist/ecs/store/select.js +0 -2
- package/dist/ecs/store/select.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 -135
- 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/ecs/undo-redo/create-undo-redo-actions.d.ts +0 -10
- package/dist/ecs/undo-redo/create-undo-redo-actions.js +0 -69
- package/dist/ecs/undo-redo/create-undo-redo-actions.js.map +0 -1
- package/dist/ecs/undo-redo/create-undo-redo-actions.test.d.ts +0 -1
- package/dist/ecs/undo-redo/create-undo-redo-actions.test.js +0 -295
- package/dist/ecs/undo-redo/create-undo-redo-actions.test.js.map +0 -1
- package/dist/ecs/undo-redo/do.d.ts +0 -3
- package/dist/ecs/undo-redo/do.js +0 -3
- package/dist/ecs/undo-redo/do.js.map +0 -1
- package/dist/ecs/undo-redo/index.d.ts +0 -1
- package/dist/ecs/undo-redo/index.js +0 -23
- package/dist/ecs/undo-redo/index.js.map +0 -1
- package/dist/functions/serialization/deserialize.d.ts +0 -1
- package/dist/functions/serialization/deserialize.js +0 -2
- package/dist/functions/serialization/deserialize.js.map +0 -1
- package/dist/functions/serialization/register-typed-array-codecs copy.d.ts +0 -1
- package/dist/functions/serialization/register-typed-array-codecs copy.js +0 -13
- package/dist/functions/serialization/register-typed-array-codecs copy.js.map +0 -1
- package/dist/functions/serialization/serialize-to-blobs copy.d.ts +0 -8
- package/dist/functions/serialization/serialize-to-blobs copy.js +0 -21
- package/dist/functions/serialization/serialize-to-blobs copy.js.map +0 -1
- package/dist/internal/typed-array/typed-array-constructer.d.ts +0 -7
- package/dist/internal/typed-array/typed-array-constructer.js +0 -2
- package/dist/internal/typed-array/typed-array-constructer.js.map +0 -1
- package/dist/internal/typed-array/typed-array.d.ts +0 -1
- package/dist/internal/typed-array/typed-array.js +0 -23
- package/dist/internal/typed-array/typed-array.js.map +0 -1
- package/dist/observe/with-map copy.d.ts +0 -5
- package/dist/observe/with-map copy.js +0 -14
- package/dist/observe/with-map copy.js.map +0 -1
- package/dist/package.json +0 -129
- package/dist/schema/f32 copy.d.ts +0 -6
- package/dist/schema/f32 copy.js +0 -6
- package/dist/schema/f32 copy.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -1
- package/dist/schemas/index.js +0 -23
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/schemas.d.ts +0 -45
- package/dist/schemas/schemas.js +0 -39
- package/dist/schemas/schemas.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/ensure-capacity copy.d.ts +0 -2
- package/dist/table/ensure-capacity copy.js +0 -15
- package/dist/table/ensure-capacity copy.js.map +0 -1
- package/dist/table/filter-rows.d.ts +0 -2
- package/dist/table/filter-rows.js +0 -15
- package/dist/table/filter-rows.js.map +0 -1
package/dist/package.json
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@adobe/data",
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"description": "Adobe data oriented programming library",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"sideEffects": true,
|
|
7
|
-
"private": false,
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "pnpm build-assembly && run-p build:*",
|
|
10
|
-
"build:code": "pnpm copy && tsc -b",
|
|
11
|
-
"build:apidocs": "typedoc",
|
|
12
|
-
"build-assembly": "run-p asbuild:release",
|
|
13
|
-
"clean": "rm -rf dist build node_modules",
|
|
14
|
-
"copy": "mkdir -p dist && cp README.md dist && sed '/publish\":/d' package.json > dist/package.json",
|
|
15
|
-
"deploy-docs": "pnpm build && ./scripts/deploy-docs.sh",
|
|
16
|
-
"dev": "run-p dev:*",
|
|
17
|
-
"dev:build": "pnpm copy && tsc -b -w --preserveWatchOutput",
|
|
18
|
-
"dev:test": "pnpm test",
|
|
19
|
-
"dev:apidocs": "nodemon -w README.md -w dist -x typedoc --delay 100",
|
|
20
|
-
"dev:assembly": "nodemon -w assembly -e ts -x pnpm run asbuild:release --delay 100",
|
|
21
|
-
"lint": "pnpm eslint .",
|
|
22
|
-
"lint-fix": "pnpm eslint . --fix",
|
|
23
|
-
"debug": "vitest --inspect-brk --no-file-parallelism --test-timeout 1000000",
|
|
24
|
-
"link": "pnpm build && pnpm link --global",
|
|
25
|
-
"bump": "pnpm version patch --no-git-tag-version && git commit -am 'bumped patch version' && pnpm run publish",
|
|
26
|
-
"pre-commit": "lint-staged",
|
|
27
|
-
"perftest": "node dist/perftest/index.js",
|
|
28
|
-
"test": "vitest",
|
|
29
|
-
"asbuild:debug": "asc assembly/index.ts -o dist/assembly/index.wasm --target debug --enable simd && echo built dist/assembly/index.wasm",
|
|
30
|
-
"asbuild:release": "asc assembly/index.ts -o dist/assembly/index.wasm --target release --enable simd --optimize && echo built dist/assembly/index.wasm",
|
|
31
|
-
"start": "npx serve ."
|
|
32
|
-
},
|
|
33
|
-
"exports": {
|
|
34
|
-
".": {
|
|
35
|
-
"import": "./dist/index.js",
|
|
36
|
-
"types": "./dist/index.d.ts"
|
|
37
|
-
},
|
|
38
|
-
"./cache": {
|
|
39
|
-
"import": "./dist/cache/index.js",
|
|
40
|
-
"types": "./dist/cache/index.d.ts"
|
|
41
|
-
},
|
|
42
|
-
"./schema": {
|
|
43
|
-
"import": "./dist/schema/index.js",
|
|
44
|
-
"types": "./dist/schema/index.d.ts"
|
|
45
|
-
},
|
|
46
|
-
"./types": {
|
|
47
|
-
"import": "./dist/types/index.js",
|
|
48
|
-
"types": "./dist/types/index.d.ts"
|
|
49
|
-
},
|
|
50
|
-
"./observe": {
|
|
51
|
-
"import": "./dist/observe/index.js",
|
|
52
|
-
"types": "./dist/observe/index.d.ts"
|
|
53
|
-
},
|
|
54
|
-
"./ecs": {
|
|
55
|
-
"import": "./dist/ecs/index.js",
|
|
56
|
-
"types": "./dist/ecs/index.d.ts"
|
|
57
|
-
},
|
|
58
|
-
"./old-ecs": {
|
|
59
|
-
"import": "./dist/old-ecs/index.js",
|
|
60
|
-
"types": "./dist/old-ecs/index.d.ts"
|
|
61
|
-
},
|
|
62
|
-
"./lit": {
|
|
63
|
-
"import": "./dist/lit/index.js",
|
|
64
|
-
"types": "./dist/lit/index.d.ts"
|
|
65
|
-
},
|
|
66
|
-
"./service": {
|
|
67
|
-
"import": "./dist/service/index.js",
|
|
68
|
-
"types": "./dist/service/index.d.ts"
|
|
69
|
-
},
|
|
70
|
-
"./table": {
|
|
71
|
-
"import": "./dist/table/index.js",
|
|
72
|
-
"types": "./dist/table/index.d.ts"
|
|
73
|
-
},
|
|
74
|
-
"./typed-buffer": {
|
|
75
|
-
"import": "./dist/typed-buffer/index.js",
|
|
76
|
-
"types": "./dist/typed-buffer/index.d.ts"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@assemblyscript/loader": "^0.27.30",
|
|
81
|
-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
82
|
-
"@types/jsonpath": "^0.2.4",
|
|
83
|
-
"@types/uuid": "^10.0.0",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
85
|
-
"@typescript-eslint/parser": "^6.21.0",
|
|
86
|
-
"@vitest/browser": "^1.6.0",
|
|
87
|
-
"@webgpu/types": "^0.1.61",
|
|
88
|
-
"assemblyscript": "^0.27.30",
|
|
89
|
-
"eslint": "^8.56.0",
|
|
90
|
-
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
91
|
-
"eslint-config-prettier": "^9.1.0",
|
|
92
|
-
"eslint-formatter-pretty": "^5.0.0",
|
|
93
|
-
"eslint-plugin-header": "^3.1.1",
|
|
94
|
-
"eslint-plugin-import": "^2.29.1",
|
|
95
|
-
"eslint-plugin-lit": "^1.11.0",
|
|
96
|
-
"eslint-plugin-lit-a11y": "^4.1.2",
|
|
97
|
-
"eslint-plugin-notice": "^0.9.10",
|
|
98
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
99
|
-
"glob": "^10.3.10",
|
|
100
|
-
"jsdom": "^24.1.0",
|
|
101
|
-
"lint-staged": "^13.2.2",
|
|
102
|
-
"nodemon": "^3.1.7",
|
|
103
|
-
"npm-run-all": "^4.1.5",
|
|
104
|
-
"playwright": "^1.46.1",
|
|
105
|
-
"prettier": "^3.2.5",
|
|
106
|
-
"prettier-package-json": "^2.8.0",
|
|
107
|
-
"pretty-quick": "^4.0.0",
|
|
108
|
-
"riteway": "v8.0.0-RC4",
|
|
109
|
-
"stylelint": "^16.2.1",
|
|
110
|
-
"stylelint-config-standard": "^36.0.0",
|
|
111
|
-
"typedoc": "^0.26.7",
|
|
112
|
-
"typescript": "^5.8.3",
|
|
113
|
-
"uuid": "^10.0.0",
|
|
114
|
-
"vite": "^5.1.1",
|
|
115
|
-
"vitest": "^1.6.0",
|
|
116
|
-
"webdriverio": "^9.0.9"
|
|
117
|
-
},
|
|
118
|
-
"lint-staged": {
|
|
119
|
-
"*.ts": "pnpm lint:ts && pnpm lint:css",
|
|
120
|
-
"*.css": "pnpm lint:css",
|
|
121
|
-
"package.json": "pnpm lint:packagejson"
|
|
122
|
-
},
|
|
123
|
-
"dependencies": {
|
|
124
|
-
"@cfworker/json-schema": "^4.1.1",
|
|
125
|
-
"@lit/context": "^1.1.5",
|
|
126
|
-
"jsonpath": "^1.1.1",
|
|
127
|
-
"lit": "^3.3.0"
|
|
128
|
-
}
|
|
129
|
-
}
|
package/dist/schema/f32 copy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"f32 copy.js","sourceRoot":"","sources":["../../src/schema/f32 copy.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,CAAW;CACG,CAAC"}
|
package/dist/schemas/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../core/schemas.js";
|
package/dist/schemas/index.js
DELETED
|
@@ -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 "../core/schemas.js";
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AACX,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Schema } from "../core/index.js";
|
|
2
|
-
export declare function Nullable<T extends Schema>(schema: T): {
|
|
3
|
-
oneOf: [T, {
|
|
4
|
-
type: "null";
|
|
5
|
-
}];
|
|
6
|
-
};
|
|
7
|
-
export declare function Tuple<T extends Schema, N extends number>(items: T, length: N): {
|
|
8
|
-
readonly type: "array";
|
|
9
|
-
readonly items: T;
|
|
10
|
-
readonly minItems: N;
|
|
11
|
-
readonly maxItems: N;
|
|
12
|
-
};
|
|
13
|
-
export declare const TrueSchema: {
|
|
14
|
-
readonly const: true;
|
|
15
|
-
};
|
|
16
|
-
export declare const BooleanSchema: {
|
|
17
|
-
readonly type: "boolean";
|
|
18
|
-
};
|
|
19
|
-
export declare const Float32Schema: {
|
|
20
|
-
readonly type: "number";
|
|
21
|
-
readonly precision: 1;
|
|
22
|
-
};
|
|
23
|
-
export declare const Float64Schema: {
|
|
24
|
-
readonly type: "number";
|
|
25
|
-
readonly precision: 2;
|
|
26
|
-
};
|
|
27
|
-
export declare const TimeSchema: {
|
|
28
|
-
readonly type: "number";
|
|
29
|
-
readonly precision: 2;
|
|
30
|
-
};
|
|
31
|
-
export declare const Uint8Schema: {
|
|
32
|
-
readonly type: "integer";
|
|
33
|
-
readonly minimum: 0;
|
|
34
|
-
readonly maximum: 255;
|
|
35
|
-
};
|
|
36
|
-
export declare const Uint16Schema: {
|
|
37
|
-
readonly type: "integer";
|
|
38
|
-
readonly minimum: 0;
|
|
39
|
-
readonly maximum: 65535;
|
|
40
|
-
};
|
|
41
|
-
export declare const Uint32Schema: {
|
|
42
|
-
readonly type: "integer";
|
|
43
|
-
readonly minimum: 0;
|
|
44
|
-
readonly maximum: 4294967295;
|
|
45
|
-
};
|
package/dist/schemas/schemas.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export function Nullable(schema) {
|
|
2
|
-
return {
|
|
3
|
-
oneOf: [schema, { type: "null" }],
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
export function Tuple(items, length) {
|
|
7
|
-
return { type: "array", items, minItems: length, maxItems: length };
|
|
8
|
-
}
|
|
9
|
-
export const TrueSchema = {
|
|
10
|
-
const: true,
|
|
11
|
-
};
|
|
12
|
-
export const BooleanSchema = {
|
|
13
|
-
type: "boolean",
|
|
14
|
-
};
|
|
15
|
-
export const Float32Schema = {
|
|
16
|
-
type: "number",
|
|
17
|
-
precision: 1,
|
|
18
|
-
};
|
|
19
|
-
export const Float64Schema = {
|
|
20
|
-
type: "number",
|
|
21
|
-
precision: 2,
|
|
22
|
-
};
|
|
23
|
-
export const TimeSchema = Float64Schema;
|
|
24
|
-
export const Uint8Schema = {
|
|
25
|
-
type: "integer",
|
|
26
|
-
minimum: 0,
|
|
27
|
-
maximum: 0xff,
|
|
28
|
-
};
|
|
29
|
-
export const Uint16Schema = {
|
|
30
|
-
type: "integer",
|
|
31
|
-
minimum: 0,
|
|
32
|
-
maximum: 0xffff,
|
|
33
|
-
};
|
|
34
|
-
export const Uint32Schema = {
|
|
35
|
-
type: "integer",
|
|
36
|
-
minimum: 0,
|
|
37
|
-
maximum: 0xffffffff,
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/schemas/schemas.ts"],"names":[],"mappings":"AAuBA,MAAM,UAAU,QAAQ,CACtB,MAAS;IAET,OAAO;QACL,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,KAAK,CAAqC,KAAQ,EAAE,MAAS;IAC3E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAA4B,CAAC;AAChG,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE,IAAI;CACc,CAAC;AAE5B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,SAAS;CACU,CAAC;AAE5B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;CACa,CAAC;AAE5B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;CACa,CAAC;AAE5B,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,IAAI;CACY,CAAC;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,MAAM;CACU,CAAC;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,UAAU;CACM,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Data } from '../core/data.js';
|
|
2
|
-
export type SequentialActionResult<Args extends Data[]> = {
|
|
3
|
-
update: (...args: Args) => SequentialActionResult<Args>;
|
|
4
|
-
cancel: () => void;
|
|
5
|
-
commit: () => void;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* A function that represents a transient, sequential series of actions that must end with a commit or cancel.
|
|
9
|
-
* This is the only service action which can return a value other than void.
|
|
10
|
-
* It is intended to be used for multiframe transactions.
|
|
11
|
-
*/
|
|
12
|
-
export type SequentialAction<Args extends Data[]> = (...args: Args) => SequentialActionResult<Args>;
|
|
13
|
-
/**
|
|
14
|
-
* Executes a sequential action using an async iterable iterator that provides the arguments.
|
|
15
|
-
* @param action - The action to execute.
|
|
16
|
-
* @param argProvider - An async iterable iterator of arguments to pass to the action.
|
|
17
|
-
*/
|
|
18
|
-
export declare function executeSequentialAction<Arg extends Data>(action: SequentialAction<[Arg]>, argProvider: AsyncIterableIterator<Arg>): Promise<void>;
|
|
@@ -1,45 +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
|
-
/**
|
|
23
|
-
* Executes a sequential action using an async iterable iterator that provides the arguments.
|
|
24
|
-
* @param action - The action to execute.
|
|
25
|
-
* @param argProvider - An async iterable iterator of arguments to pass to the action.
|
|
26
|
-
*/
|
|
27
|
-
export async function executeSequentialAction(action, argProvider) {
|
|
28
|
-
let sequence;
|
|
29
|
-
try {
|
|
30
|
-
// get the next arguments from the arg provider
|
|
31
|
-
for await (const arg of argProvider) {
|
|
32
|
-
// then write them into the multiframe transaction (persisting this set of updates into database)
|
|
33
|
-
sequence = (sequence?.update ?? action)(arg);
|
|
34
|
-
}
|
|
35
|
-
// everything succeeded, finalize this transaction.
|
|
36
|
-
sequence?.commit();
|
|
37
|
-
}
|
|
38
|
-
catch (e) {
|
|
39
|
-
// cancel the sequence
|
|
40
|
-
sequence?.cancel();
|
|
41
|
-
// allow the async iterable iterator to finalize and close any open resources
|
|
42
|
-
argProvider.throw?.(e);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=sequential-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sequential-action.js","sourceRoot":"","sources":["../../src/service/sequential-action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAiBX;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAmB,MAA+B,EAAE,WAAuC;IACpI,IAAI,QAAmD,CAAC;IACxD,IAAI,CAAC;QACD,gDAAgD;QAChD,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;YAClC,kGAAkG;YAClG,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACjD,CAAC;QACD,oDAAoD;QACpD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACvB,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACP,uBAAuB;QACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,8EAA8E;QAC9E,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;AACL,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const ensureCapacity = (table, minimumCapacity, growthFactor = 2) => {
|
|
2
|
-
// we don't actually loop, we just need to check the first columns length.
|
|
3
|
-
for (const name in table.columns) {
|
|
4
|
-
const currentCapacity = table.columns[name].size;
|
|
5
|
-
if (currentCapacity < minimumCapacity) {
|
|
6
|
-
const newCapacity = Math.max(minimumCapacity, currentCapacity * growthFactor);
|
|
7
|
-
for (const name in table.columns) {
|
|
8
|
-
const column = table.columns[name];
|
|
9
|
-
column.size = newCapacity;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=ensure-capacity%20copy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-capacity copy.js","sourceRoot":"","sources":["../../src/table/ensure-capacity copy.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAI,KAAe,EAAE,eAAuB,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE;IAC5F,0EAA0E;IAC1E,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QAC/B,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QACjD,IAAI,eAAe,GAAG,eAAe,EAAE,CAAC;YACpC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,eAAe,GAAG,YAAY,CAAC,CAAC;YAC9E,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;gBAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnC,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC;YAC9B,CAAC;QACL,CAAC;QACD,OAAO;IACX,CAAC;AACL,CAAC,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const filterRows = (table, minimumCapacity, growthFactor = 2) => {
|
|
2
|
-
// we don't actually loop, we just need to check the first columns length.
|
|
3
|
-
for (const name in table.columns) {
|
|
4
|
-
const currentCapacity = table.columns[name].size;
|
|
5
|
-
if (currentCapacity < minimumCapacity) {
|
|
6
|
-
const newCapacity = Math.max(minimumCapacity, currentCapacity * growthFactor);
|
|
7
|
-
for (const name in table.columns) {
|
|
8
|
-
const column = table.columns[name];
|
|
9
|
-
column.size = newCapacity;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=filter-rows.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-rows.js","sourceRoot":"","sources":["../../src/table/filter-rows.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAI,KAAe,EAAE,eAAuB,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE;IACxF,0EAA0E;IAC1E,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QAC/B,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QACjD,IAAI,eAAe,GAAG,eAAe,EAAE,CAAC;YACpC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,eAAe,GAAG,YAAY,CAAC,CAAC;YAC9E,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;gBAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnC,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC;YAC9B,CAAC;QACL,CAAC;QACD,OAAO;IACX,CAAC;AACL,CAAC,CAAA"}
|