@inlang/sdk 0.36.2 → 2.0.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/database/initDb.d.ts +7 -0
- package/dist/database/initDb.d.ts.map +1 -0
- package/dist/database/initDb.js +36 -0
- package/dist/database/initDb.js.map +1 -0
- package/dist/database/initDbAndSchema.test.d.ts +2 -0
- package/dist/database/initDbAndSchema.test.d.ts.map +1 -0
- package/dist/database/initDbAndSchema.test.js +110 -0
- package/dist/database/initDbAndSchema.test.js.map +1 -0
- package/dist/database/jsonbPlugin.d.ts +20 -0
- package/dist/database/jsonbPlugin.d.ts.map +1 -0
- package/dist/database/jsonbPlugin.js +183 -0
- package/dist/database/jsonbPlugin.js.map +1 -0
- package/dist/database/jsonbPlugin.test.d.ts +2 -0
- package/dist/database/jsonbPlugin.test.d.ts.map +1 -0
- package/dist/database/jsonbPlugin.test.js +119 -0
- package/dist/database/jsonbPlugin.test.js.map +1 -0
- package/dist/database/schema.d.ts +74 -0
- package/dist/database/schema.d.ts.map +1 -0
- package/dist/database/schema.js +45 -0
- package/dist/database/schema.js.map +1 -0
- package/dist/helper.d.ts +71 -0
- package/dist/helper.d.ts.map +1 -0
- package/dist/helper.js +91 -0
- package/dist/helper.js.map +1 -0
- package/dist/human-id/human-id.d.ts +3 -0
- package/dist/human-id/human-id.d.ts.map +1 -0
- package/dist/human-id/human-id.js +12 -0
- package/dist/human-id/human-id.js.map +1 -0
- package/dist/human-id/words.d.ts.map +1 -0
- package/dist/human-id/words.js +1036 -0
- package/dist/human-id/words.js.map +1 -0
- package/dist/human-id/words.test.d.ts.map +1 -0
- package/dist/human-id/words.test.js +29 -0
- package/dist/human-id/words.test.js.map +1 -0
- package/dist/import-export/exportFiles.d.ts +11 -0
- package/dist/import-export/exportFiles.d.ts.map +1 -0
- package/dist/import-export/exportFiles.js +26 -0
- package/dist/import-export/exportFiles.js.map +1 -0
- package/dist/import-export/importFiles.d.ts +13 -0
- package/dist/import-export/importFiles.d.ts.map +1 -0
- package/dist/import-export/importFiles.js +124 -0
- package/dist/import-export/importFiles.js.map +1 -0
- package/dist/import-export/importFiles.test.d.ts +2 -0
- package/dist/import-export/importFiles.test.d.ts.map +1 -0
- package/dist/import-export/importFiles.test.js +179 -0
- package/dist/import-export/importFiles.test.js.map +1 -0
- package/dist/import-export/roundtrip.test.d.ts +2 -0
- package/dist/import-export/roundtrip.test.d.ts.map +1 -0
- package/dist/import-export/roundtrip.test.js +273 -0
- package/dist/import-export/roundtrip.test.js.map +1 -0
- package/dist/import-export/upsertBundleNestedMatchByProperties.d.ts +4 -0
- package/dist/import-export/upsertBundleNestedMatchByProperties.d.ts.map +1 -0
- package/dist/import-export/upsertBundleNestedMatchByProperties.js +58 -0
- package/dist/import-export/upsertBundleNestedMatchByProperties.js.map +1 -0
- package/dist/index.d.ts +21 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.d.ts +9 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.d.ts.map +1 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.js +84 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.js.map +1 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.test.d.ts +2 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.test.d.ts.map +1 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.test.js +85 -0
- package/dist/json-schema/old-v1-message/fromMessageV1.test.js.map +1 -0
- package/dist/json-schema/old-v1-message/schemaV1.d.ts +86 -0
- package/dist/json-schema/old-v1-message/schemaV1.d.ts.map +1 -0
- package/dist/json-schema/old-v1-message/schemaV1.js +35 -0
- package/dist/json-schema/old-v1-message/schemaV1.js.map +1 -0
- package/dist/json-schema/old-v1-message/toMessageV1.d.ts +9 -0
- package/dist/json-schema/old-v1-message/toMessageV1.d.ts.map +1 -0
- package/dist/json-schema/old-v1-message/toMessageV1.js +67 -0
- package/dist/json-schema/old-v1-message/toMessageV1.js.map +1 -0
- package/dist/json-schema/old-v1-message/toMessageV1.test.d.ts +2 -0
- package/dist/json-schema/old-v1-message/toMessageV1.test.d.ts.map +1 -0
- package/dist/json-schema/old-v1-message/toMessageV1.test.js +85 -0
- package/dist/json-schema/old-v1-message/toMessageV1.test.js.map +1 -0
- package/dist/json-schema/pattern.d.ts +190 -0
- package/dist/json-schema/pattern.d.ts.map +1 -0
- package/dist/json-schema/pattern.js +43 -0
- package/dist/json-schema/pattern.js.map +1 -0
- package/dist/json-schema/settings.d.ts +31 -0
- package/dist/json-schema/settings.d.ts.map +1 -0
- package/dist/json-schema/settings.js +96 -0
- package/dist/json-schema/settings.js.map +1 -0
- package/dist/json-schema/settings.test-d.d.ts +2 -0
- package/dist/json-schema/settings.test-d.d.ts.map +1 -0
- package/dist/json-schema/settings.test-d.js +20 -0
- package/dist/json-schema/settings.test-d.js.map +1 -0
- package/dist/lix-plugin/applyChanges.d.ts +3 -0
- package/dist/lix-plugin/applyChanges.d.ts.map +1 -0
- package/dist/lix-plugin/applyChanges.js +127 -0
- package/dist/lix-plugin/applyChanges.js.map +1 -0
- package/dist/lix-plugin/applyChanges.test.d.ts +2 -0
- package/dist/lix-plugin/applyChanges.test.d.ts.map +1 -0
- package/dist/lix-plugin/applyChanges.test.js +135 -0
- package/dist/lix-plugin/applyChanges.test.js.map +1 -0
- package/dist/lix-plugin/detectConflicts.d.ts +3 -0
- package/dist/lix-plugin/detectConflicts.d.ts.map +1 -0
- package/dist/lix-plugin/detectConflicts.js +47 -0
- package/dist/lix-plugin/detectConflicts.js.map +1 -0
- package/dist/lix-plugin/detectConflicts.test.d.ts +2 -0
- package/dist/lix-plugin/detectConflicts.test.d.ts.map +1 -0
- package/dist/lix-plugin/detectConflicts.test.js +251 -0
- package/dist/lix-plugin/detectConflicts.test.js.map +1 -0
- package/dist/lix-plugin/inlangLixPluginV1.d.ts +8 -0
- package/dist/lix-plugin/inlangLixPluginV1.d.ts.map +1 -0
- package/dist/lix-plugin/inlangLixPluginV1.js +109 -0
- package/dist/lix-plugin/inlangLixPluginV1.js.map +1 -0
- package/dist/lix-plugin/inlangLixPluginV1.test.d.ts +2 -0
- package/dist/lix-plugin/inlangLixPluginV1.test.d.ts.map +1 -0
- package/dist/lix-plugin/inlangLixPluginV1.test.js +418 -0
- package/dist/lix-plugin/inlangLixPluginV1.test.js.map +1 -0
- package/dist/lix-plugin/merge.test.d.ts +2 -0
- package/dist/lix-plugin/merge.test.d.ts.map +1 -0
- package/dist/lix-plugin/merge.test.js +120 -0
- package/dist/lix-plugin/merge.test.js.map +1 -0
- package/dist/lix-plugin/resolveConflictBySelecting.test.d.ts +2 -0
- package/dist/lix-plugin/resolveConflictBySelecting.test.d.ts.map +1 -0
- package/dist/lix-plugin/resolveConflictBySelecting.test.js +176 -0
- package/dist/lix-plugin/resolveConflictBySelecting.test.js.map +1 -0
- package/dist/migrations/v2/createMessageV1.d.ts +28 -0
- package/dist/migrations/v2/createMessageV1.d.ts.map +1 -0
- package/dist/migrations/v2/createMessageV1.js +31 -0
- package/dist/migrations/v2/createMessageV1.js.map +1 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.d.ts +9 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.d.ts.map +1 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.js +31 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.js.map +1 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.test.d.ts +2 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.test.d.ts.map +1 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.test.js +45 -0
- package/dist/migrations/v2/withLanguageTagToLocaleMigration.test.js.map +1 -0
- package/dist/plugin/cache.d.ts +6 -0
- package/dist/plugin/cache.d.ts.map +1 -0
- package/dist/plugin/cache.js +59 -0
- package/dist/plugin/cache.js.map +1 -0
- package/dist/plugin/cache.test.d.ts +2 -0
- package/dist/plugin/cache.test.d.ts.map +1 -0
- package/dist/plugin/cache.test.js +61 -0
- package/dist/plugin/cache.test.js.map +1 -0
- package/dist/plugin/errors.d.ts +41 -0
- package/dist/plugin/errors.d.ts.map +1 -0
- package/dist/plugin/errors.js +48 -0
- package/dist/plugin/errors.js.map +1 -0
- package/dist/plugin/importPlugins.d.ts +19 -0
- package/dist/plugin/importPlugins.d.ts.map +1 -0
- package/dist/plugin/importPlugins.js +43 -0
- package/dist/plugin/importPlugins.js.map +1 -0
- package/dist/plugin/importPlugins.test.d.ts +2 -0
- package/dist/plugin/importPlugins.test.d.ts.map +1 -0
- package/dist/plugin/importPlugins.test.js +95 -0
- package/dist/plugin/importPlugins.test.js.map +1 -0
- package/dist/plugin/meta/ideExtension.d.ts +54 -0
- package/dist/plugin/meta/ideExtension.d.ts.map +1 -0
- package/dist/plugin/meta/ideExtension.js +5 -0
- package/dist/plugin/meta/ideExtension.js.map +1 -0
- package/dist/plugin/schema.d.ts +152 -0
- package/dist/plugin/schema.d.ts.map +1 -0
- package/dist/plugin/schema.js +5 -0
- package/dist/plugin/schema.js.map +1 -0
- package/dist/project/api.d.ts +78 -0
- package/dist/project/api.d.ts.map +1 -0
- package/dist/project/api.js +5 -0
- package/dist/project/api.js.map +1 -0
- package/dist/project/initHandleSaveToLixOnChange.d.ts +14 -0
- package/dist/project/initHandleSaveToLixOnChange.d.ts.map +1 -0
- package/dist/project/initHandleSaveToLixOnChange.js +81 -0
- package/dist/project/initHandleSaveToLixOnChange.js.map +1 -0
- package/dist/project/loadProject.d.ts +43 -0
- package/dist/project/loadProject.d.ts.map +1 -0
- package/dist/project/loadProject.js +105 -0
- package/dist/project/loadProject.js.map +1 -0
- package/dist/project/loadProject.test.d.ts.map +1 -0
- package/dist/project/loadProject.test.js +123 -0
- package/dist/project/loadProject.test.js.map +1 -0
- package/dist/project/loadProjectFromDirectory.d.ts +87 -0
- package/dist/project/loadProjectFromDirectory.d.ts.map +1 -0
- package/dist/project/loadProjectFromDirectory.js +593 -0
- package/dist/project/loadProjectFromDirectory.js.map +1 -0
- package/dist/project/loadProjectFromDirectory.test.d.ts +2 -0
- package/dist/project/loadProjectFromDirectory.test.d.ts.map +1 -0
- package/dist/project/loadProjectFromDirectory.test.js +642 -0
- package/dist/project/loadProjectFromDirectory.test.js.map +1 -0
- package/dist/project/loadProjectInMemory.d.ts +8 -0
- package/dist/project/loadProjectInMemory.d.ts.map +1 -0
- package/dist/project/loadProjectInMemory.js +31 -0
- package/dist/project/loadProjectInMemory.js.map +1 -0
- package/dist/project/loadProjectInMemory.test.d.ts +2 -0
- package/dist/project/loadProjectInMemory.test.d.ts.map +1 -0
- package/dist/project/loadProjectInMemory.test.js +27 -0
- package/dist/project/loadProjectInMemory.test.js.map +1 -0
- package/dist/project/maybeCaptureTelemetry.d.ts +9 -0
- package/dist/project/maybeCaptureTelemetry.d.ts.map +1 -0
- package/dist/project/maybeCaptureTelemetry.js +46 -0
- package/dist/project/maybeCaptureTelemetry.js.map +1 -0
- package/dist/project/maybeCaptureTelemetry.test.d.ts +2 -0
- package/dist/project/maybeCaptureTelemetry.test.d.ts.map +1 -0
- package/dist/project/maybeCaptureTelemetry.test.js +60 -0
- package/dist/project/maybeCaptureTelemetry.test.js.map +1 -0
- package/dist/project/newProject.d.ts +17 -0
- package/dist/project/newProject.d.ts.map +1 -0
- package/dist/project/newProject.js +70 -0
- package/dist/project/newProject.js.map +1 -0
- package/dist/project/newProject.test.d.ts +2 -0
- package/dist/project/newProject.test.d.ts.map +1 -0
- package/dist/project/newProject.test.js +37 -0
- package/dist/project/newProject.test.js.map +1 -0
- package/dist/project/saveProjectToDirectory.d.ts +8 -0
- package/dist/project/saveProjectToDirectory.d.ts.map +1 -0
- package/dist/project/saveProjectToDirectory.js +86 -0
- package/dist/project/saveProjectToDirectory.js.map +1 -0
- package/dist/project/saveProjectToDirectory.test.d.ts +2 -0
- package/dist/project/saveProjectToDirectory.test.d.ts.map +1 -0
- package/dist/project/saveProjectToDirectory.test.js +245 -0
- package/dist/project/saveProjectToDirectory.test.js.map +1 -0
- package/dist/project/state/id$.d.ts +6 -0
- package/dist/project/state/id$.d.ts.map +1 -0
- package/dist/project/state/id$.js +19 -0
- package/dist/project/state/id$.js.map +1 -0
- package/dist/project/state/id$.test.d.ts +2 -0
- package/dist/project/state/id$.test.d.ts.map +1 -0
- package/dist/project/state/id$.test.js +36 -0
- package/dist/project/state/id$.test.js.map +1 -0
- package/dist/project/state/setSettings.d.ts +7 -0
- package/dist/project/state/setSettings.d.ts.map +1 -0
- package/dist/project/state/setSettings.js +16 -0
- package/dist/project/state/setSettings.js.map +1 -0
- package/dist/project/state/setSettings.test.d.ts +2 -0
- package/dist/project/state/setSettings.test.d.ts.map +1 -0
- package/dist/project/state/setSettings.test.js +58 -0
- package/dist/project/state/setSettings.test.js.map +1 -0
- package/dist/project/state/settings$.d.ts +7 -0
- package/dist/project/state/settings$.d.ts.map +1 -0
- package/dist/project/state/settings$.js +21 -0
- package/dist/project/state/settings$.js.map +1 -0
- package/dist/project/state/settings$.test.d.ts +2 -0
- package/dist/project/state/settings$.test.d.ts.map +1 -0
- package/dist/project/state/settings$.test.js +51 -0
- package/dist/project/state/settings$.test.js.map +1 -0
- package/dist/project/state/state.d.ts +58 -0
- package/dist/project/state/state.d.ts.map +1 -0
- package/dist/project/state/state.js +67 -0
- package/dist/project/state/state.js.map +1 -0
- package/dist/project/state/state.test.d.ts +2 -0
- package/dist/project/state/state.test.d.ts.map +1 -0
- package/dist/project/state/state.test.js +103 -0
- package/dist/project/state/state.test.js.map +1 -0
- package/dist/query-utilities/index.d.ts +6 -0
- package/dist/query-utilities/index.d.ts.map +1 -0
- package/dist/query-utilities/index.js +9 -0
- package/dist/query-utilities/index.js.map +1 -0
- package/dist/query-utilities/insertBundleNested.d.ts +4 -0
- package/dist/query-utilities/insertBundleNested.d.ts.map +1 -0
- package/dist/query-utilities/insertBundleNested.js +39 -0
- package/dist/query-utilities/insertBundleNested.js.map +1 -0
- package/dist/query-utilities/pollQuery.d.ts +14 -0
- package/dist/query-utilities/pollQuery.d.ts.map +1 -0
- package/dist/query-utilities/pollQuery.js +22 -0
- package/dist/query-utilities/pollQuery.js.map +1 -0
- package/dist/query-utilities/pollQuery.test.d.ts +2 -0
- package/dist/query-utilities/pollQuery.test.d.ts.map +1 -0
- package/dist/query-utilities/pollQuery.test.js +67 -0
- package/dist/query-utilities/pollQuery.test.js.map +1 -0
- package/dist/query-utilities/selectBundleNested.d.ts +107 -0
- package/dist/query-utilities/selectBundleNested.d.ts.map +1 -0
- package/dist/query-utilities/selectBundleNested.js +43 -0
- package/dist/query-utilities/selectBundleNested.js.map +1 -0
- package/dist/query-utilities/updateBundleNested.d.ts +12 -0
- package/dist/query-utilities/updateBundleNested.d.ts.map +1 -0
- package/dist/query-utilities/updateBundleNested.js +25 -0
- package/dist/query-utilities/updateBundleNested.js.map +1 -0
- package/dist/query-utilities/upsertBundleNested.d.ts +4 -0
- package/dist/query-utilities/upsertBundleNested.d.ts.map +1 -0
- package/dist/query-utilities/upsertBundleNested.js +50 -0
- package/dist/query-utilities/upsertBundleNested.js.map +1 -0
- package/dist/services/env-variables/index.d.ts +6 -0
- package/dist/services/env-variables/index.d.ts.map +1 -0
- package/dist/services/env-variables/index.js +9 -0
- package/dist/services/env-variables/index.js.map +1 -0
- package/dist/services/error-reporting/index.d.ts +15 -0
- package/dist/services/error-reporting/index.d.ts.map +1 -0
- package/dist/services/error-reporting/index.js +30 -0
- package/dist/services/error-reporting/index.js.map +1 -0
- package/dist/services/telemetry/capture.d.ts +23 -0
- package/dist/services/telemetry/capture.d.ts.map +1 -0
- package/dist/services/telemetry/capture.js +77 -0
- package/dist/services/telemetry/capture.js.map +1 -0
- package/dist/services/telemetry/capture.test.d.ts +2 -0
- package/dist/services/telemetry/capture.test.d.ts.map +1 -0
- package/dist/services/telemetry/capture.test.js +44 -0
- package/dist/services/telemetry/capture.test.js.map +1 -0
- package/dist/utilities/detectJsonFormatting.d.ts +11 -0
- package/dist/utilities/detectJsonFormatting.d.ts.map +1 -0
- package/dist/utilities/detectJsonFormatting.js +83 -0
- package/dist/utilities/detectJsonFormatting.js.map +1 -0
- package/dist/utilities/detectJsonFormatting.test.d.ts +2 -0
- package/dist/utilities/detectJsonFormatting.test.d.ts.map +1 -0
- package/dist/utilities/detectJsonFormatting.test.js +33 -0
- package/dist/utilities/detectJsonFormatting.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/LICENSE +21 -0
- package/node_modules/@lix-js/sdk/README.md +68 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.d.ts +7 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.js +20 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.js +22 -0
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.d.ts +18 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.js +36 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.js +139 -0
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/index.d.ts +4 -0
- package/node_modules/@lix-js/sdk/dist/account/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/index.js +4 -0
- package/node_modules/@lix-js/sdk/dist/account/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.d.ts +26 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.js +34 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.js +48 -0
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.d.ts +25 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.js +98 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.js +222 -0
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.d.ts +27 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.js +97 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.js +235 -0
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/index.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/change/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/index.js +3 -0
- package/node_modules/@lix-js/sdk/dist/change/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/mock-change.d.ts +10 -0
- package/node_modules/@lix-js/sdk/dist/change/mock-change.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change/mock-change.js +20 -0
- package/node_modules/@lix-js/sdk/dist/change/mock-change.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.d.ts +15 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.js +67 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.js +145 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.d.ts +23 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.js +50 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.js +182 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.d.ts +32 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.js +66 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.js +201 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.d.ts +14 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.js +67 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.js +182 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.d.ts +4 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.js +4 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.d.ts +12 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.js +48 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.js +95 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.js +72 -0
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.d.ts +13 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.js +25 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.js +47 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.d.ts +24 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.js +209 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.d.ts +7 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.js +80 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.js +373 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.js +26 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.js +138 -0
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.d.ts +40 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.js +2 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.js +34 -0
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.d.ts +19 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.js +36 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.js +106 -0
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.js +33 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.js +37 -0
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/index.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/change-set/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/change-set/index.js +3 -0
- package/node_modules/@lix-js/sdk/dist/change-set/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.js +266 -0
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.d.ts +18 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.js +36 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.js +118 -0
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/index.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/database/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/index.js +5 -0
- package/node_modules/@lix-js/sdk/dist/database/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.d.ts +7 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.js +95 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.js +497 -0
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.js +44 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.js +162 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.d.ts +12 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.js +149 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.js +162 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.js +100 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.js +107 -0
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.js +101 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.js +18 -0
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.d.ts +21 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.js +58 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.js +13 -0
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/schema.d.ts +212 -0
- package/node_modules/@lix-js/sdk/dist/database/schema.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/database/schema.js +2 -0
- package/node_modules/@lix-js/sdk/dist/database/schema.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.js +12 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.d.ts +21 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.js +40 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.js +38 -0
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/index.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/discussion/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/discussion/index.js +3 -0
- package/node_modules/@lix-js/sdk/dist/discussion/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/file/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/file/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.js +44 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.js +36 -0
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.d.ts +24 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.js +209 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.js +85 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.js +373 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.d.ts +13 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.js +25 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.js +47 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.js +26 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.js +138 -0
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/index.d.ts +17 -0
- package/node_modules/@lix-js/sdk/dist/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/index.js +17 -0
- package/node_modules/@lix-js/sdk/dist/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.d.ts +42 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.js +21 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.js +114 -0
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.js +7 -0
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/index.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/lix/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/index.js +8 -0
- package/node_modules/@lix-js/sdk/dist/lix/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.d.ts +9 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.d.ts +15 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.js +34 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.js +121 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.js +195 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.js +689 -0
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.js +26 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.js +21 -0
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.d.ts +12 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.js +19 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.js +30 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.d.ts +50 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.js +33 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.js +38 -0
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.d.ts +11 -0
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.js +11 -0
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.d.ts +10 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.js +69 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.js +297 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.d.ts +60 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.js +70 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.js +48 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.js +135 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.js +214 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.js +28 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.js +49 -0
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.d.ts +10 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.js +69 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.js +297 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.d.ts +61 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.js +71 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.js +48 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.js +135 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.js +214 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.js +24 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.js +49 -0
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/index.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/plugin/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/index.js +2 -0
- package/node_modules/@lix-js/sdk/dist/plugin/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.d.ts +114 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.js +2 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.js +40 -0
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.js +20 -0
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.d.ts +11 -0
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.js +15 -0
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.d.ts +15 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.js +18 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.js +55 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.d.ts +25 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.js +30 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.js +46 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.js +29 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.js +75 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.js +35 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.js +70 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.js +132 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.d.ts +29 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.js +44 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.js +71 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.d.ts +18 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.js +18 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.js +122 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.js +55 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.js +155 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.d.ts +25 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.js +29 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.js +43 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/index.d.ts +9 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/index.js +9 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.d.ts +18 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.js +25 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.js +85 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.d.ts +19 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.js +36 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.js +84 -0
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.d.ts +48 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.js +68 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.js +97 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.js +103 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.d.ts +53 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.js +2 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.js +3 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.js +44 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.js +108 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.js +38 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.js +72 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.js +41 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.js +146 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.js +142 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.js +231 -0
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.d.ts +18 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.js +33 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.js +54 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/index.d.ts +3 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/index.js +3 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.js +29 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.js +10 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.js +13 -0
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.d.ts +16 -0
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.js +62 -0
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.d.ts +20 -0
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.js +237 -0
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.js +113 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.js +340 -0
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.d.ts +12 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.js +35 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.js +308 -0
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.d.ts +5 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.js +74 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.js +243 -0
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.d.ts +27 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.js +74 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.js +126 -0
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/index.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/version/index.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/index.js +8 -0
- package/node_modules/@lix-js/sdk/dist/version/index.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.d.ts +8 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.js +67 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.js +434 -0
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.d.ts +27 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.js +91 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.js +227 -0
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.d.ts +13 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.js +36 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.js.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.d.ts +2 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.d.ts.map +1 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.js +323 -0
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.js.map +1 -0
- package/node_modules/@lix-js/sdk/package.json +52 -0
- package/node_modules/@lix-js/sdk/src/account/create-account.test.ts +26 -0
- package/node_modules/@lix-js/sdk/src/account/create-account.ts +26 -0
- package/node_modules/@lix-js/sdk/src/account/database-schema.test.ts +187 -0
- package/node_modules/@lix-js/sdk/src/account/database-schema.ts +58 -0
- package/node_modules/@lix-js/sdk/src/account/index.ts +3 -0
- package/node_modules/@lix-js/sdk/src/account/switch-account.test.ts +63 -0
- package/node_modules/@lix-js/sdk/src/account/switch-account.ts +39 -0
- package/node_modules/@lix-js/sdk/src/change/apply-changes.test.ts +268 -0
- package/node_modules/@lix-js/sdk/src/change/apply-changes.ts +114 -0
- package/node_modules/@lix-js/sdk/src/change/create-change.test.ts +296 -0
- package/node_modules/@lix-js/sdk/src/change/create-change.ts +129 -0
- package/node_modules/@lix-js/sdk/src/change/index.ts +2 -0
- package/node_modules/@lix-js/sdk/src/change/mock-change.ts +21 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/create-change-conflict.test.ts +173 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/create-change-conflict.ts +105 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-change-conflicts.test.ts +215 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-change-conflicts.ts +65 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-diverging-entity-conflict.test.ts +228 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-diverging-entity-conflict.ts +82 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/garbage-collect-change-conflicts.test.ts +219 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/garbage-collect-change-conflicts.ts +96 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/index.ts +3 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/resolve-conflict-by-selecting.test.ts +118 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/resolve-conflict-by-selecting.ts +66 -0
- package/node_modules/@lix-js/sdk/src/change-conflict/update-change-conflicts.ts +79 -0
- package/node_modules/@lix-js/sdk/src/change-schema/README.md +3 -0
- package/node_modules/@lix-js/sdk/src/change-schema/index.ts +4 -0
- package/node_modules/@lix-js/sdk/src/change-schema/types.test-d.ts +52 -0
- package/node_modules/@lix-js/sdk/src/change-schema/types.ts +53 -0
- package/node_modules/@lix-js/sdk/src/change-set/change-set-element-in-symmetric-difference.test.ts +128 -0
- package/node_modules/@lix-js/sdk/src/change-set/change-set-element-in-symmetric-difference.ts +52 -0
- package/node_modules/@lix-js/sdk/src/change-set/create-change-set.test.ts +43 -0
- package/node_modules/@lix-js/sdk/src/change-set/create-change-set.ts +41 -0
- package/node_modules/@lix-js/sdk/src/change-set/index.ts +2 -0
- package/node_modules/@lix-js/sdk/src/database/apply-schema.ts +270 -0
- package/node_modules/@lix-js/sdk/src/database/execute-sync.test.ts +152 -0
- package/node_modules/@lix-js/sdk/src/database/execute-sync.ts +47 -0
- package/node_modules/@lix-js/sdk/src/database/index.ts +4 -0
- package/node_modules/@lix-js/sdk/src/database/init-db.test.ts +628 -0
- package/node_modules/@lix-js/sdk/src/database/init-db.ts +111 -0
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v1.test.ts +204 -0
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v1.ts +55 -0
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.ts +204 -0
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.ts +194 -0
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/serialize-jsonb-plugin.test.ts +132 -0
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/serialize-jsonb-plugin.ts +122 -0
- package/node_modules/@lix-js/sdk/src/database/mutation-log/database-schema.ts +126 -0
- package/node_modules/@lix-js/sdk/src/database/mutation-log/lix-session.ts +19 -0
- package/node_modules/@lix-js/sdk/src/database/nano-id.test.ts +15 -0
- package/node_modules/@lix-js/sdk/src/database/nano-id.ts +72 -0
- package/node_modules/@lix-js/sdk/src/database/schema.ts +273 -0
- package/node_modules/@lix-js/sdk/src/discussion/create-comment.ts +18 -0
- package/node_modules/@lix-js/sdk/src/discussion/create-discussion.test.ts +45 -0
- package/node_modules/@lix-js/sdk/src/discussion/create-discussion.ts +48 -0
- package/node_modules/@lix-js/sdk/src/discussion/index.ts +2 -0
- package/node_modules/@lix-js/sdk/src/file/index.ts +1 -0
- package/node_modules/@lix-js/sdk/src/file/validate-file-path.test.ts +44 -0
- package/node_modules/@lix-js/sdk/src/file/validate-file-path.ts +60 -0
- package/node_modules/@lix-js/sdk/src/file-queue/file-handlers.ts +273 -0
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-process.test.ts +457 -0
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-process.ts +101 -0
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-settled.test.ts +56 -0
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-settled.ts +31 -0
- package/node_modules/@lix-js/sdk/src/file-queue/index.ts +1 -0
- package/node_modules/@lix-js/sdk/src/file-queue/with-skip-file-queue.test.ts +158 -0
- package/node_modules/@lix-js/sdk/src/file-queue/with-skip-file-queue.ts +33 -0
- package/node_modules/@lix-js/sdk/src/index.ts +16 -0
- package/node_modules/@lix-js/sdk/src/key-value/database-schema.test.ts +140 -0
- package/node_modules/@lix-js/sdk/src/key-value/database-schema.ts +66 -0
- package/node_modules/@lix-js/sdk/src/lix/close-lix.ts +8 -0
- package/node_modules/@lix-js/sdk/src/lix/index.ts +7 -0
- package/node_modules/@lix-js/sdk/src/lix/merge.get-leaf-changes-only-in-source.test.ts +143 -0
- package/node_modules/@lix-js/sdk/src/lix/merge.get-leaf-changes-only-in-source.ts +46 -0
- package/node_modules/@lix-js/sdk/src/lix/merge.test.ts +858 -0
- package/node_modules/@lix-js/sdk/src/lix/merge.ts +244 -0
- package/node_modules/@lix-js/sdk/src/lix/new-lix.test.ts +23 -0
- package/node_modules/@lix-js/sdk/src/lix/new-lix.ts +29 -0
- package/node_modules/@lix-js/sdk/src/lix/open-lix-in-memory.test.ts +34 -0
- package/node_modules/@lix-js/sdk/src/lix/open-lix-in-memory.ts +28 -0
- package/node_modules/@lix-js/sdk/src/lix/open-lix.test.ts +45 -0
- package/node_modules/@lix-js/sdk/src/lix/open-lix.ts +86 -0
- package/node_modules/@lix-js/sdk/src/lix/to-blob.ts +14 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/apply-own-change.test.ts +361 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/apply-own-change.ts +110 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/change-controlled-tables.test.ts +69 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/change-controlled-tables.ts +102 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/database-triggers.test.ts +259 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/database-triggers.ts +189 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/index.ts +1 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/with-skip-own-change-control.test.ts +57 -0
- package/node_modules/@lix-js/sdk/src/own-change-control/with-skip-own-change-control.ts +34 -0
- package/node_modules/@lix-js/sdk/src/plugin/index.ts +6 -0
- package/node_modules/@lix-js/sdk/src/plugin/lix-plugin.test-d.ts +45 -0
- package/node_modules/@lix-js/sdk/src/plugin/lix-plugin.ts +128 -0
- package/node_modules/@lix-js/sdk/src/plugin/load-plugin.ts +28 -0
- package/node_modules/@lix-js/sdk/src/plugin/with-transaction.ts +22 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-conflict-in-version.test.ts +62 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-conflict-in-version.ts +25 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-has-label.test.ts +52 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-has-label.ts +41 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-in-version.test.ts +82 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-in-version.ts +31 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-in-version.test.ts +77 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-in-version.ts +36 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.bench.ts +175 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.test.ts +84 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.ts +46 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf.test.ts +140 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf.ts +25 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-lowest-common-ancestor-of.test.ts +173 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-lowest-common-ancestor-of.ts +57 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-set-has-label.test.ts +50 -0
- package/node_modules/@lix-js/sdk/src/query-filter/change-set-has-label.ts +36 -0
- package/node_modules/@lix-js/sdk/src/query-filter/index.ts +8 -0
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-difference.test.ts +105 -0
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-difference.ts +37 -0
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-symmetric-difference.test.ts +104 -0
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-symmetric-difference.ts +52 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/create-server-api-handler.ts +84 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/environment/create-in-memory-environment.test.ts +131 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/environment/create-in-memory-environment.ts +115 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/environment/environment.ts +43 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/index.ts +5 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/get-v1.test.ts +147 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/get-v1.ts +61 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/new-v1.test.ts +103 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/new-v1.ts +46 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/pull-v1.test.ts +201 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/pull-v1.ts +57 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/push-v1.test.ts +302 -0
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/push-v1.ts +180 -0
- package/node_modules/@lix-js/sdk/src/snapshot/create-snapshot.test.ts +68 -0
- package/node_modules/@lix-js/sdk/src/snapshot/create-snapshot.ts +40 -0
- package/node_modules/@lix-js/sdk/src/snapshot/index.ts +2 -0
- package/node_modules/@lix-js/sdk/src/snapshot/json-sha-256.test.ts +12 -0
- package/node_modules/@lix-js/sdk/src/snapshot/json-sha-256.ts +35 -0
- package/node_modules/@lix-js/sdk/src/snapshot/mock-json-snapshot.ts +14 -0
- package/node_modules/@lix-js/sdk/src/sync/get-diffing-rows.ts +96 -0
- package/node_modules/@lix-js/sdk/src/sync/merge-state.ts +310 -0
- package/node_modules/@lix-js/sdk/src/sync/pull-from-server.test.ts +425 -0
- package/node_modules/@lix-js/sdk/src/sync/pull-from-server.ts +144 -0
- package/node_modules/@lix-js/sdk/src/sync/push-to-server.test.ts +391 -0
- package/node_modules/@lix-js/sdk/src/sync/push-to-server.ts +47 -0
- package/node_modules/@lix-js/sdk/src/sync/sync-process.test.ts +321 -0
- package/node_modules/@lix-js/sdk/src/sync/sync-process.ts +85 -0
- package/node_modules/@lix-js/sdk/src/version/create-version.test.ts +149 -0
- package/node_modules/@lix-js/sdk/src/version/create-version.ts +88 -0
- package/node_modules/@lix-js/sdk/src/version/index.ts +8 -0
- package/node_modules/@lix-js/sdk/src/version/merge-version.test.ts +530 -0
- package/node_modules/@lix-js/sdk/src/version/merge-version.ts +88 -0
- package/node_modules/@lix-js/sdk/src/version/switch-version.test.ts +292 -0
- package/node_modules/@lix-js/sdk/src/version/switch-version.ts +110 -0
- package/node_modules/@lix-js/sdk/src/version/update-changes-in-version.test.ts +371 -0
- package/node_modules/@lix-js/sdk/src/version/update-changes-in-version.ts +47 -0
- package/node_modules/sqlite-wasm-kysely/LICENSE +21 -0
- package/node_modules/sqlite-wasm-kysely/README.md +11 -0
- package/node_modules/sqlite-wasm-kysely/dist/dialect.d.ts +11 -0
- package/node_modules/sqlite-wasm-kysely/dist/dialect.js +13 -0
- package/node_modules/sqlite-wasm-kysely/dist/dialect.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/index.d.ts +2 -0
- package/node_modules/sqlite-wasm-kysely/dist/index.js +3 -0
- package/node_modules/sqlite-wasm-kysely/dist/index.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.d.ts +5 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.js +34 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.d.ts +8 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.js +57 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.d.ts +18 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.js +2 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.d.ts +13 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.js +57 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/index.d.ts +4 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/index.js +4 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/index.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.d.ts +3 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.js +5 -0
- package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.d.ts +9 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.js +12 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.d.ts +3 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.js +22 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.d.ts +7 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.js +15 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/index.d.ts +5 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/index.js +5 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/index.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.d.ts +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.js +13 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.d.ts +7 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.js +17 -0
- package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.js.map +1 -0
- package/node_modules/sqlite-wasm-kysely/package.json +34 -0
- package/node_modules/sqlite-wasm-kysely/src/dialect.ts +15 -0
- package/node_modules/sqlite-wasm-kysely/src/index.ts +2 -0
- package/node_modules/sqlite-wasm-kysely/src/kysely/ConnectionMutex.ts +23 -0
- package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmConnection.ts +57 -0
- package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmDialectConfig.ts +19 -0
- package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmDriver.ts +58 -0
- package/node_modules/sqlite-wasm-kysely/src/kysely/index.ts +4 -0
- package/node_modules/sqlite-wasm-kysely/src/kysely/sqliteModule.ts +7 -0
- package/node_modules/sqlite-wasm-kysely/src/util/contentFromDatabase.ts +13 -0
- package/node_modules/sqlite-wasm-kysely/src/util/createInMemoryDatabase.ts +30 -0
- package/node_modules/sqlite-wasm-kysely/src/util/importDatabase.ts +34 -0
- package/node_modules/sqlite-wasm-kysely/src/util/index.ts +5 -0
- package/node_modules/sqlite-wasm-kysely/src/util/loadDatabaseInMemory.ts +13 -0
- package/node_modules/sqlite-wasm-kysely/src/util/sqliteWasmBinary.ts +20 -0
- package/package.json +36 -38
- package/src/database/initDb.ts +34 -0
- package/src/database/initDbAndSchema.test.ts +125 -0
- package/src/database/jsonbPlugin.test.ts +154 -0
- package/src/database/jsonbPlugin.ts +215 -0
- package/src/database/schema.ts +127 -0
- package/src/helper.ts +113 -0
- package/src/human-id/human-id.ts +14 -0
- package/src/human-id/words.test.ts +27 -0
- package/src/human-id/words.ts +1035 -0
- package/src/import-export/exportFiles.ts +36 -0
- package/src/import-export/importFiles.test.ts +211 -0
- package/src/import-export/importFiles.ts +142 -0
- package/src/import-export/roundtrip.test.ts +313 -0
- package/src/import-export/upsertBundleNestedMatchByProperties.ts +74 -0
- package/src/index.ts +29 -37
- package/src/json-schema/old-v1-message/README.md +1 -0
- package/src/json-schema/old-v1-message/fromMessageV1.test.ts +87 -0
- package/src/json-schema/old-v1-message/fromMessageV1.ts +99 -0
- package/src/json-schema/old-v1-message/schemaV1.ts +66 -0
- package/src/json-schema/old-v1-message/toMessageV1.test.ts +87 -0
- package/src/json-schema/old-v1-message/toMessageV1.ts +79 -0
- package/src/json-schema/pattern.ts +59 -0
- package/src/json-schema/settings.test-d.ts +21 -0
- package/src/json-schema/settings.ts +138 -0
- package/src/lix-plugin/applyChanges.test.ts +150 -0
- package/src/lix-plugin/applyChanges.ts +171 -0
- package/src/lix-plugin/detectConflicts.test.ts +286 -0
- package/src/lix-plugin/detectConflicts.ts +62 -0
- package/src/lix-plugin/inlangLixPluginV1.test.ts +439 -0
- package/src/lix-plugin/inlangLixPluginV1.ts +132 -0
- package/src/lix-plugin/merge.test.ts +133 -0
- package/src/lix-plugin/resolveConflictBySelecting.test.ts +188 -0
- package/src/migrations/v2/createMessageV1.ts +37 -0
- package/src/migrations/v2/withLanguageTagToLocaleMigration.test.ts +51 -0
- package/src/migrations/v2/withLanguageTagToLocaleMigration.ts +31 -0
- package/src/plugin/cache.test.ts +83 -0
- package/src/plugin/cache.ts +79 -0
- package/src/plugin/errors.ts +67 -0
- package/src/plugin/importPlugins.test.ts +107 -0
- package/src/plugin/importPlugins.ts +60 -0
- package/src/plugin/meta/ideExtension.ts +56 -0
- package/src/plugin/schema.ts +165 -0
- package/src/project/api.ts +81 -0
- package/src/project/initHandleSaveToLixOnChange.ts +88 -0
- package/src/project/loadProject.test.ts +148 -0
- package/src/project/loadProject.ts +153 -0
- package/src/project/loadProjectFromDirectory.test.ts +819 -0
- package/src/project/loadProjectFromDirectory.ts +767 -0
- package/src/project/loadProjectInMemory.test.ts +29 -0
- package/src/project/loadProjectInMemory.ts +35 -0
- package/src/project/maybeCaptureTelemetry.test.ts +65 -0
- package/src/project/maybeCaptureTelemetry.ts +51 -0
- package/src/project/newProject.test.ts +36 -0
- package/src/project/newProject.ts +77 -0
- package/src/project/saveProjectToDirectory.test.ts +310 -0
- package/src/project/saveProjectToDirectory.ts +100 -0
- package/src/project/state/README.md +22 -0
- package/src/project/state/id$.test.ts +40 -0
- package/src/project/state/id$.ts +21 -0
- package/src/project/state/setSettings.test.ts +73 -0
- package/src/project/state/setSettings.ts +19 -0
- package/src/project/state/settings$.test.ts +63 -0
- package/src/project/state/settings$.ts +26 -0
- package/src/project/state/state.test.ts +128 -0
- package/src/project/state/state.ts +94 -0
- package/src/query-utilities/index.ts +5 -0
- package/src/query-utilities/insertBundleNested.ts +46 -0
- package/src/query-utilities/pollQuery.test.ts +88 -0
- package/src/query-utilities/pollQuery.ts +26 -0
- package/src/query-utilities/selectBundleNested.ts +46 -0
- package/src/query-utilities/updateBundleNested.ts +35 -0
- package/src/query-utilities/upsertBundleNested.ts +61 -0
- package/src/services/env-variables/createIndexFile.js +40 -0
- package/src/services/env-variables/index.d.ts +16 -0
- package/src/services/error-reporting/index.ts +28 -0
- package/src/services/telemetry/capture.test.ts +48 -0
- package/src/services/telemetry/capture.ts +98 -0
- package/src/utilities/detectJsonFormatting.test.ts +38 -0
- package/src/utilities/detectJsonFormatting.ts +109 -0
- package/dist/adapter/solidAdapter.d.ts +0 -33
- package/dist/adapter/solidAdapter.d.ts.map +0 -1
- package/dist/adapter/solidAdapter.js +0 -40
- package/dist/adapter/solidAdapter.test.d.ts +0 -2
- package/dist/adapter/solidAdapter.test.d.ts.map +0 -1
- package/dist/adapter/solidAdapter.test.js +0 -356
- package/dist/api.d.ts +0 -113
- package/dist/api.d.ts.map +0 -1
- package/dist/api.js +0 -1
- package/dist/api.test-d.d.ts +0 -2
- package/dist/api.test-d.d.ts.map +0 -1
- package/dist/api.test-d.js +0 -4
- package/dist/createMessageLintReportsQuery.d.ts +0 -12
- package/dist/createMessageLintReportsQuery.d.ts.map +0 -1
- package/dist/createMessageLintReportsQuery.js +0 -176
- package/dist/createMessagesQuery.d.ts +0 -19
- package/dist/createMessagesQuery.d.ts.map +0 -1
- package/dist/createMessagesQuery.js +0 -451
- package/dist/createMessagesQuery.test.d.ts +0 -2
- package/dist/createMessagesQuery.test.d.ts.map +0 -1
- package/dist/createMessagesQuery.test.js +0 -402
- package/dist/createNewProject.d.ts +0 -12
- package/dist/createNewProject.d.ts.map +0 -1
- package/dist/createNewProject.js +0 -38
- package/dist/createNewProject.test.d.ts +0 -2
- package/dist/createNewProject.test.d.ts.map +0 -1
- package/dist/createNewProject.test.js +0 -91
- package/dist/createNodeishFsWithAbsolutePaths.d.ts +0 -12
- package/dist/createNodeishFsWithAbsolutePaths.d.ts.map +0 -1
- package/dist/createNodeishFsWithAbsolutePaths.js +0 -38
- package/dist/createNodeishFsWithAbsolutePaths.test.d.ts +0 -2
- package/dist/createNodeishFsWithAbsolutePaths.test.d.ts.map +0 -1
- package/dist/createNodeishFsWithAbsolutePaths.test.js +0 -44
- package/dist/createNodeishFsWithWatcher.d.ts +0 -14
- package/dist/createNodeishFsWithWatcher.d.ts.map +0 -1
- package/dist/createNodeishFsWithWatcher.js +0 -75
- package/dist/createNodeishFsWithWatcher.test.d.ts +0 -2
- package/dist/createNodeishFsWithWatcher.test.d.ts.map +0 -1
- package/dist/createNodeishFsWithWatcher.test.js +0 -38
- package/dist/defaultProjectSettings.d.ts +0 -14
- package/dist/defaultProjectSettings.d.ts.map +0 -1
- package/dist/defaultProjectSettings.js +0 -22
- package/dist/env-variables/index.d.ts +0 -4
- package/dist/env-variables/index.d.ts.map +0 -1
- package/dist/env-variables/index.js +0 -3
- package/dist/errors.d.ts +0 -48
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -62
- package/dist/lint/index.d.ts +0 -3
- package/dist/lint/index.d.ts.map +0 -1
- package/dist/lint/index.js +0 -2
- package/dist/lint/message/errors.d.ts +0 -7
- package/dist/lint/message/errors.d.ts.map +0 -1
- package/dist/lint/message/errors.js +0 -9
- package/dist/lint/message/lintMessages.d.ts +0 -13
- package/dist/lint/message/lintMessages.d.ts.map +0 -1
- package/dist/lint/message/lintMessages.js +0 -12
- package/dist/lint/message/lintMessages.test.d.ts +0 -2
- package/dist/lint/message/lintMessages.test.d.ts.map +0 -1
- package/dist/lint/message/lintMessages.test.js +0 -107
- package/dist/lint/message/lintSingleMessage.d.ts +0 -19
- package/dist/lint/message/lintSingleMessage.d.ts.map +0 -1
- package/dist/lint/message/lintSingleMessage.js +0 -38
- package/dist/lint/message/lintSingleMessage.test.d.ts +0 -2
- package/dist/lint/message/lintSingleMessage.test.d.ts.map +0 -1
- package/dist/lint/message/lintSingleMessage.test.js +0 -161
- package/dist/listProjects.d.ts +0 -5
- package/dist/listProjects.d.ts.map +0 -1
- package/dist/listProjects.js +0 -38
- package/dist/listProjects.test.d.ts +0 -2
- package/dist/listProjects.test.d.ts.map +0 -1
- package/dist/listProjects.test.js +0 -72
- package/dist/loadProject.d.ts +0 -19
- package/dist/loadProject.d.ts.map +0 -1
- package/dist/loadProject.js +0 -343
- package/dist/loadProject.test.d.ts.map +0 -1
- package/dist/loadProject.test.js +0 -975
- package/dist/messages/errors.d.ts +0 -13
- package/dist/messages/errors.d.ts.map +0 -1
- package/dist/messages/errors.js +0 -18
- package/dist/messages/index.d.ts +0 -3
- package/dist/messages/index.d.ts.map +0 -1
- package/dist/messages/index.js +0 -2
- package/dist/messages/variant.d.ts +0 -46
- package/dist/messages/variant.d.ts.map +0 -1
- package/dist/messages/variant.js +0 -176
- package/dist/messages/variant.test.d.ts +0 -2
- package/dist/messages/variant.test.d.ts.map +0 -1
- package/dist/messages/variant.test.js +0 -439
- package/dist/migrations/maybeAddModuleCache.d.ts +0 -6
- package/dist/migrations/maybeAddModuleCache.d.ts.map +0 -1
- package/dist/migrations/maybeAddModuleCache.js +0 -62
- package/dist/migrations/maybeCreateFirstProjectId.d.ts +0 -16
- package/dist/migrations/maybeCreateFirstProjectId.d.ts.map +0 -1
- package/dist/migrations/maybeCreateFirstProjectId.js +0 -46
- package/dist/migrations/maybeCreateFirstProjectId.test.d.ts +0 -2
- package/dist/migrations/maybeCreateFirstProjectId.test.d.ts.map +0 -1
- package/dist/migrations/maybeCreateFirstProjectId.test.js +0 -24
- package/dist/migrations/migrateToDirectory.d.ts +0 -10
- package/dist/migrations/migrateToDirectory.d.ts.map +0 -1
- package/dist/migrations/migrateToDirectory.js +0 -48
- package/dist/migrations/migrateToDirectory.test.d.ts +0 -2
- package/dist/migrations/migrateToDirectory.test.d.ts.map +0 -1
- package/dist/migrations/migrateToDirectory.test.js +0 -48
- package/dist/parseConfig.d.ts +0 -8
- package/dist/parseConfig.d.ts.map +0 -1
- package/dist/parseConfig.js +0 -26
- package/dist/persistence/batchedIO.d.ts +0 -11
- package/dist/persistence/batchedIO.d.ts.map +0 -1
- package/dist/persistence/batchedIO.js +0 -49
- package/dist/persistence/batchedIO.test.d.ts +0 -2
- package/dist/persistence/batchedIO.test.d.ts.map +0 -1
- package/dist/persistence/batchedIO.test.js +0 -56
- package/dist/persistence/filelock/acquireFileLock.d.ts +0 -3
- package/dist/persistence/filelock/acquireFileLock.d.ts.map +0 -1
- package/dist/persistence/filelock/acquireFileLock.js +0 -111
- package/dist/persistence/filelock/releaseLock.d.ts +0 -3
- package/dist/persistence/filelock/releaseLock.d.ts.map +0 -1
- package/dist/persistence/filelock/releaseLock.js +0 -24
- package/dist/persistence/store.d.ts +0 -107
- package/dist/persistence/store.d.ts.map +0 -1
- package/dist/persistence/store.js +0 -99
- package/dist/persistence/store.test.d.ts +0 -2
- package/dist/persistence/store.test.d.ts.map +0 -1
- package/dist/persistence/store.test.js +0 -79
- package/dist/persistence/storeApi.d.ts +0 -22
- package/dist/persistence/storeApi.d.ts.map +0 -1
- package/dist/persistence/storeApi.js +0 -1
- package/dist/reactivity/map.d.ts +0 -67
- package/dist/reactivity/map.d.ts.map +0 -1
- package/dist/reactivity/map.js +0 -143
- package/dist/reactivity/solid.d.ts +0 -14
- package/dist/reactivity/solid.d.ts.map +0 -1
- package/dist/reactivity/solid.js +0 -15
- package/dist/reactivity/solid.test.d.ts +0 -2
- package/dist/reactivity/solid.test.d.ts.map +0 -1
- package/dist/reactivity/solid.test.js +0 -189
- package/dist/reactivity/trigger.d.ts +0 -11
- package/dist/reactivity/trigger.d.ts.map +0 -1
- package/dist/reactivity/trigger.js +0 -46
- package/dist/resolve-modules/cache.d.ts +0 -6
- package/dist/resolve-modules/cache.d.ts.map +0 -1
- package/dist/resolve-modules/cache.js +0 -58
- package/dist/resolve-modules/errors.d.ts +0 -41
- package/dist/resolve-modules/errors.d.ts.map +0 -1
- package/dist/resolve-modules/errors.js +0 -45
- package/dist/resolve-modules/import.d.ts +0 -19
- package/dist/resolve-modules/import.d.ts.map +0 -1
- package/dist/resolve-modules/import.js +0 -102
- package/dist/resolve-modules/import.test.d.ts +0 -2
- package/dist/resolve-modules/import.test.d.ts.map +0 -1
- package/dist/resolve-modules/import.test.js +0 -47
- package/dist/resolve-modules/index.d.ts +0 -3
- package/dist/resolve-modules/index.d.ts.map +0 -1
- package/dist/resolve-modules/index.js +0 -2
- package/dist/resolve-modules/message-lint-rules/errors.d.ts +0 -9
- package/dist/resolve-modules/message-lint-rules/errors.d.ts.map +0 -1
- package/dist/resolve-modules/message-lint-rules/errors.js +0 -6
- package/dist/resolve-modules/message-lint-rules/resolveMessageLintRules.d.ts +0 -9
- package/dist/resolve-modules/message-lint-rules/resolveMessageLintRules.d.ts.map +0 -1
- package/dist/resolve-modules/message-lint-rules/resolveMessageLintRules.js +0 -24
- package/dist/resolve-modules/plugins/errors.d.ts +0 -33
- package/dist/resolve-modules/plugins/errors.d.ts.map +0 -1
- package/dist/resolve-modules/plugins/errors.js +0 -38
- package/dist/resolve-modules/plugins/resolvePlugins.d.ts +0 -3
- package/dist/resolve-modules/plugins/resolvePlugins.d.ts.map +0 -1
- package/dist/resolve-modules/plugins/resolvePlugins.js +0 -92
- package/dist/resolve-modules/plugins/resolvePlugins.test.d.ts +0 -2
- package/dist/resolve-modules/plugins/resolvePlugins.test.d.ts.map +0 -1
- package/dist/resolve-modules/plugins/resolvePlugins.test.js +0 -252
- package/dist/resolve-modules/plugins/types.d.ts +0 -57
- package/dist/resolve-modules/plugins/types.d.ts.map +0 -1
- package/dist/resolve-modules/plugins/types.js +0 -1
- package/dist/resolve-modules/plugins/types.test.d.ts +0 -2
- package/dist/resolve-modules/plugins/types.test.d.ts.map +0 -1
- package/dist/resolve-modules/plugins/types.test.js +0 -45
- package/dist/resolve-modules/resolveModules.d.ts +0 -3
- package/dist/resolve-modules/resolveModules.d.ts.map +0 -1
- package/dist/resolve-modules/resolveModules.js +0 -80
- package/dist/resolve-modules/resolveModules.test.d.ts +0 -2
- package/dist/resolve-modules/resolveModules.test.d.ts.map +0 -1
- package/dist/resolve-modules/resolveModules.test.js +0 -185
- package/dist/resolve-modules/types.d.ts +0 -63
- package/dist/resolve-modules/types.d.ts.map +0 -1
- package/dist/resolve-modules/types.js +0 -1
- package/dist/resolve-modules/validateModuleSettings.test.d.ts +0 -2
- package/dist/resolve-modules/validateModuleSettings.test.d.ts.map +0 -1
- package/dist/resolve-modules/validateModuleSettings.test.js +0 -71
- package/dist/resolve-modules/validatedModuleSettings.d.ts +0 -7
- package/dist/resolve-modules/validatedModuleSettings.d.ts.map +0 -1
- package/dist/resolve-modules/validatedModuleSettings.js +0 -11
- package/dist/storage/helper.d.ts +0 -11
- package/dist/storage/helper.d.ts.map +0 -1
- package/dist/storage/helper.js +0 -63
- package/dist/storage/helpers.test.d.ts +0 -2
- package/dist/storage/helpers.test.d.ts.map +0 -1
- package/dist/storage/helpers.test.js +0 -84
- package/dist/storage/human-id/human-readable-id.d.ts +0 -3
- package/dist/storage/human-id/human-readable-id.d.ts.map +0 -1
- package/dist/storage/human-id/human-readable-id.js +0 -20
- package/dist/storage/human-id/words.d.ts.map +0 -1
- package/dist/storage/human-id/words.js +0 -1032
- package/dist/storage/human-id/words.test.d.ts.map +0 -1
- package/dist/storage/human-id/words.test.js +0 -25
- package/dist/telemetry/capture.d.ts +0 -21
- package/dist/telemetry/capture.d.ts.map +0 -1
- package/dist/telemetry/capture.js +0 -39
- package/dist/telemetry/groupIdentify.d.ts +0 -13
- package/dist/telemetry/groupIdentify.d.ts.map +0 -1
- package/dist/telemetry/groupIdentify.js +0 -35
- package/dist/test-utilities/createMessage.d.ts +0 -18
- package/dist/test-utilities/createMessage.d.ts.map +0 -1
- package/dist/test-utilities/createMessage.js +0 -17
- package/dist/test-utilities/createMessage.test.d.ts +0 -2
- package/dist/test-utilities/createMessage.test.d.ts.map +0 -1
- package/dist/test-utilities/createMessage.test.js +0 -106
- package/dist/test-utilities/index.d.ts +0 -3
- package/dist/test-utilities/index.d.ts.map +0 -1
- package/dist/test-utilities/index.js +0 -2
- package/dist/test-utilities/sleep.d.ts +0 -4
- package/dist/test-utilities/sleep.d.ts.map +0 -1
- package/dist/test-utilities/sleep.js +0 -9
- package/dist/v2/helper.d.ts +0 -43
- package/dist/v2/helper.d.ts.map +0 -1
- package/dist/v2/helper.js +0 -75
- package/dist/v2/helper.test.d.ts +0 -2
- package/dist/v2/helper.test.d.ts.map +0 -1
- package/dist/v2/helper.test.js +0 -92
- package/dist/v2/index.d.ts +0 -4
- package/dist/v2/index.d.ts.map +0 -1
- package/dist/v2/index.js +0 -2
- package/dist/v2/mocks/index.d.ts +0 -3
- package/dist/v2/mocks/index.d.ts.map +0 -1
- package/dist/v2/mocks/index.js +0 -2
- package/dist/v2/mocks/multipleMatcher/bundle.d.ts +0 -3
- package/dist/v2/mocks/multipleMatcher/bundle.d.ts.map +0 -1
- package/dist/v2/mocks/multipleMatcher/bundle.js +0 -194
- package/dist/v2/mocks/multipleMatcher/bundle.test.d.ts +0 -2
- package/dist/v2/mocks/multipleMatcher/bundle.test.d.ts.map +0 -1
- package/dist/v2/mocks/multipleMatcher/bundle.test.js +0 -10
- package/dist/v2/mocks/plural/bundle.d.ts +0 -3
- package/dist/v2/mocks/plural/bundle.d.ts.map +0 -1
- package/dist/v2/mocks/plural/bundle.js +0 -162
- package/dist/v2/mocks/plural/bundle.test.d.ts +0 -2
- package/dist/v2/mocks/plural/bundle.test.d.ts.map +0 -1
- package/dist/v2/mocks/plural/bundle.test.js +0 -15
- package/dist/v2/shim.d.ts +0 -12
- package/dist/v2/shim.d.ts.map +0 -1
- package/dist/v2/shim.js +0 -151
- package/dist/v2/shim.test.d.ts +0 -2
- package/dist/v2/shim.test.d.ts.map +0 -1
- package/dist/v2/shim.test.js +0 -49
- package/dist/v2/stubQueryApi.d.ts +0 -9
- package/dist/v2/stubQueryApi.d.ts.map +0 -1
- package/dist/v2/stubQueryApi.js +0 -38
- package/dist/v2/types.d.ts +0 -521
- package/dist/v2/types.d.ts.map +0 -1
- package/dist/v2/types.js +0 -78
- package/dist/validateProjectPath.d.ts +0 -17
- package/dist/validateProjectPath.d.ts.map +0 -1
- package/dist/validateProjectPath.js +0 -31
- package/dist/validateProjectPath.test.d.ts +0 -2
- package/dist/validateProjectPath.test.d.ts.map +0 -1
- package/dist/validateProjectPath.test.js +0 -40
- package/dist/versionedInterfaces.d.ts +0 -8
- package/dist/versionedInterfaces.d.ts.map +0 -1
- package/dist/versionedInterfaces.js +0 -8
- package/src/adapter/solidAdapter.test.ts +0 -472
- package/src/adapter/solidAdapter.ts +0 -79
- package/src/api.test-d.ts +0 -8
- package/src/api.ts +0 -116
- package/src/createMessageLintReportsQuery.ts +0 -225
- package/src/createMessagesQuery.test.ts +0 -538
- package/src/createMessagesQuery.ts +0 -635
- package/src/createNewProject.test.ts +0 -105
- package/src/createNewProject.ts +0 -46
- package/src/createNodeishFsWithAbsolutePaths.test.ts +0 -55
- package/src/createNodeishFsWithAbsolutePaths.ts +0 -52
- package/src/createNodeishFsWithWatcher.test.ts +0 -50
- package/src/createNodeishFsWithWatcher.ts +0 -85
- package/src/defaultProjectSettings.ts +0 -26
- package/src/env-variables/.prettierignore +0 -1
- package/src/env-variables/createIndexFile.js +0 -28
- package/src/env-variables/index.d.ts +0 -13
- package/src/errors.ts +0 -84
- package/src/lint/index.ts +0 -2
- package/src/lint/message/errors.ts +0 -9
- package/src/lint/message/lintMessages.test.ts +0 -126
- package/src/lint/message/lintMessages.ts +0 -25
- package/src/lint/message/lintSingleMessage.test.ts +0 -191
- package/src/lint/message/lintSingleMessage.ts +0 -57
- package/src/listProjects.test.ts +0 -91
- package/src/listProjects.ts +0 -48
- package/src/loadProject.test.ts +0 -1173
- package/src/loadProject.ts +0 -460
- package/src/messages/errors.ts +0 -25
- package/src/messages/index.ts +0 -2
- package/src/messages/variant.test.ts +0 -511
- package/src/messages/variant.ts +0 -247
- package/src/migrations/maybeAddModuleCache.ts +0 -68
- package/src/migrations/maybeCreateFirstProjectId.test.ts +0 -31
- package/src/migrations/maybeCreateFirstProjectId.ts +0 -51
- package/src/migrations/migrateToDirectory.test.ts +0 -54
- package/src/migrations/migrateToDirectory.ts +0 -62
- package/src/parseConfig.ts +0 -35
- package/src/persistence/batchedIO.test.ts +0 -63
- package/src/persistence/batchedIO.ts +0 -64
- package/src/persistence/filelock/acquireFileLock.ts +0 -129
- package/src/persistence/filelock/releaseLock.ts +0 -29
- package/src/persistence/store.test.ts +0 -102
- package/src/persistence/store.ts +0 -119
- package/src/persistence/storeApi.ts +0 -19
- package/src/reactivity/map.ts +0 -135
- package/src/reactivity/solid.test.ts +0 -222
- package/src/reactivity/solid.ts +0 -42
- package/src/reactivity/trigger.ts +0 -46
- package/src/resolve-modules/cache.ts +0 -89
- package/src/resolve-modules/errors.ts +0 -69
- package/src/resolve-modules/import.test.ts +0 -62
- package/src/resolve-modules/import.ts +0 -133
- package/src/resolve-modules/index.ts +0 -2
- package/src/resolve-modules/message-lint-rules/errors.ts +0 -9
- package/src/resolve-modules/message-lint-rules/resolveMessageLintRules.ts +0 -27
- package/src/resolve-modules/plugins/errors.ts +0 -56
- package/src/resolve-modules/plugins/resolvePlugins.test.ts +0 -301
- package/src/resolve-modules/plugins/resolvePlugins.ts +0 -129
- package/src/resolve-modules/plugins/types.test.ts +0 -53
- package/src/resolve-modules/plugins/types.ts +0 -76
- package/src/resolve-modules/resolveModules.test.ts +0 -224
- package/src/resolve-modules/resolveModules.ts +0 -113
- package/src/resolve-modules/types.ts +0 -72
- package/src/resolve-modules/validateModuleSettings.test.ts +0 -85
- package/src/resolve-modules/validatedModuleSettings.ts +0 -19
- package/src/storage/helper.ts +0 -74
- package/src/storage/helpers.test.ts +0 -95
- package/src/storage/human-id/human-readable-id.ts +0 -27
- package/src/storage/human-id/words.test.ts +0 -27
- package/src/storage/human-id/words.ts +0 -1035
- package/src/telemetry/capture.ts +0 -49
- package/src/telemetry/groupIdentify.ts +0 -41
- package/src/test-utilities/createMessage.test.ts +0 -118
- package/src/test-utilities/createMessage.ts +0 -21
- package/src/test-utilities/index.ts +0 -2
- package/src/test-utilities/sleep.ts +0 -11
- package/src/v2/helper.test.ts +0 -95
- package/src/v2/helper.ts +0 -98
- package/src/v2/index.ts +0 -3
- package/src/v2/mocks/index.ts +0 -2
- package/src/v2/mocks/multipleMatcher/bundle.test.ts +0 -11
- package/src/v2/mocks/multipleMatcher/bundle.ts +0 -196
- package/src/v2/mocks/plural/bundle.test.ts +0 -18
- package/src/v2/mocks/plural/bundle.ts +0 -164
- package/src/v2/shim.test.ts +0 -56
- package/src/v2/shim.ts +0 -173
- package/src/v2/stubQueryApi.ts +0 -43
- package/src/v2/types.ts +0 -159
- package/src/validateProjectPath.test.ts +0 -50
- package/src/validateProjectPath.ts +0 -38
- package/src/versionedInterfaces.ts +0 -9
- /package/dist/{storage/human-id → human-id}/words.d.ts +0 -0
- /package/dist/{storage/human-id → human-id}/words.test.d.ts +0 -0
- /package/dist/{loadProject.test.d.ts → project/loadProject.test.d.ts} +0 -0
package/src/loadProject.test.ts
DELETED
|
@@ -1,1173 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { describe, it, expect, vi } from "vitest"
|
|
3
|
-
import { loadProject } from "./loadProject.js"
|
|
4
|
-
import type {
|
|
5
|
-
ProjectSettings,
|
|
6
|
-
Plugin,
|
|
7
|
-
MessageLintRule,
|
|
8
|
-
Message,
|
|
9
|
-
NodeishFilesystemSubset,
|
|
10
|
-
} from "./versionedInterfaces.js"
|
|
11
|
-
import type { ImportFunction } from "./resolve-modules/index.js"
|
|
12
|
-
import type { InlangModule } from "@inlang/module"
|
|
13
|
-
import {
|
|
14
|
-
ProjectSettingsFileJSONSyntaxError,
|
|
15
|
-
ProjectSettingsFileNotFoundError,
|
|
16
|
-
ProjectSettingsInvalidError,
|
|
17
|
-
} from "./errors.js"
|
|
18
|
-
import { normalizePath } from "@lix-js/fs"
|
|
19
|
-
import { createMessage } from "./test-utilities/createMessage.js"
|
|
20
|
-
import { tryCatch } from "@inlang/result"
|
|
21
|
-
import { mockRepo } from "@lix-js/client"
|
|
22
|
-
import { type Snapshot } from "@lix-js/fs"
|
|
23
|
-
// eslint-disable-next-line no-restricted-imports -- test
|
|
24
|
-
import { readFileSync } from "node:fs"
|
|
25
|
-
// eslint-disable-next-line no-restricted-imports -- test
|
|
26
|
-
import { resolve } from "node:path"
|
|
27
|
-
|
|
28
|
-
// ------------------------------------------------------------------------------------------------
|
|
29
|
-
|
|
30
|
-
const getValue = <T>(subscribable: { subscribe: (subscriber: (value: T) => void) => void }): T => {
|
|
31
|
-
let value: T
|
|
32
|
-
subscribable.subscribe((v) => void (value = v))
|
|
33
|
-
return value!
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const settings: ProjectSettings = {
|
|
37
|
-
sourceLanguageTag: "en",
|
|
38
|
-
languageTags: ["en"],
|
|
39
|
-
modules: ["plugin.js", "lintRule.js"],
|
|
40
|
-
messageLintRuleLevels: {
|
|
41
|
-
"messageLintRule.project.missingTranslation": "error",
|
|
42
|
-
},
|
|
43
|
-
"plugin.project.i18next": {
|
|
44
|
-
pathPattern: "./examples/example01/{languageTag}.json",
|
|
45
|
-
variableReferencePattern: ["{", "}"],
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const mockPlugin: Plugin = {
|
|
50
|
-
id: "plugin.project.i18next",
|
|
51
|
-
description: { en: "Mock plugin description" },
|
|
52
|
-
displayName: { en: "Mock Plugin" },
|
|
53
|
-
|
|
54
|
-
loadMessages: () => exampleMessages,
|
|
55
|
-
saveMessages: () => undefined as any,
|
|
56
|
-
addCustomApi: () => ({
|
|
57
|
-
"app.project.ideExtension": {
|
|
58
|
-
messageReferenceMatcher: (text: string) => text as any,
|
|
59
|
-
},
|
|
60
|
-
}),
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// TODO: use `createMessage` utility
|
|
64
|
-
const exampleMessages: Message[] = [
|
|
65
|
-
{
|
|
66
|
-
id: "a",
|
|
67
|
-
alias: {},
|
|
68
|
-
selectors: [],
|
|
69
|
-
variants: [
|
|
70
|
-
{
|
|
71
|
-
languageTag: "en",
|
|
72
|
-
match: [],
|
|
73
|
-
pattern: [
|
|
74
|
-
{
|
|
75
|
-
type: "Text",
|
|
76
|
-
value: "test",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: "b",
|
|
84
|
-
alias: {},
|
|
85
|
-
selectors: [],
|
|
86
|
-
variants: [
|
|
87
|
-
{
|
|
88
|
-
languageTag: "en",
|
|
89
|
-
match: [],
|
|
90
|
-
pattern: [
|
|
91
|
-
{
|
|
92
|
-
type: "Text",
|
|
93
|
-
value: "test",
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
]
|
|
100
|
-
|
|
101
|
-
const exampleAliasedMessages: Message[] = [
|
|
102
|
-
{
|
|
103
|
-
id: "raw_tapir_pause_grateful",
|
|
104
|
-
alias: {
|
|
105
|
-
default: "a",
|
|
106
|
-
},
|
|
107
|
-
selectors: [],
|
|
108
|
-
variants: [
|
|
109
|
-
{
|
|
110
|
-
languageTag: "en",
|
|
111
|
-
match: [],
|
|
112
|
-
pattern: [
|
|
113
|
-
{
|
|
114
|
-
type: "Text",
|
|
115
|
-
value: "test",
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
id: "dizzy_halibut_dial_vaguely",
|
|
123
|
-
alias: {
|
|
124
|
-
default: "b",
|
|
125
|
-
},
|
|
126
|
-
selectors: [],
|
|
127
|
-
variants: [
|
|
128
|
-
{
|
|
129
|
-
languageTag: "en",
|
|
130
|
-
match: [],
|
|
131
|
-
pattern: [
|
|
132
|
-
{
|
|
133
|
-
type: "Text",
|
|
134
|
-
value: "test",
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
},
|
|
140
|
-
]
|
|
141
|
-
|
|
142
|
-
const mockMessageLintRule: MessageLintRule = {
|
|
143
|
-
id: "messageLintRule.project.mock",
|
|
144
|
-
description: { en: "Mock lint rule description" },
|
|
145
|
-
displayName: { en: "Mock Lint Rule" },
|
|
146
|
-
run: () => undefined,
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
const _import: ImportFunction = async (name) =>
|
|
150
|
-
({
|
|
151
|
-
default: name === "plugin.js" ? mockPlugin : mockMessageLintRule,
|
|
152
|
-
} satisfies InlangModule)
|
|
153
|
-
|
|
154
|
-
const ciTestRepoSnapshot = JSON.parse(
|
|
155
|
-
readFileSync(resolve(__dirname, "../mocks/ci-test-repo-no-shallow.json"), {
|
|
156
|
-
encoding: "utf-8",
|
|
157
|
-
})
|
|
158
|
-
) as Snapshot
|
|
159
|
-
|
|
160
|
-
// ------------------------------------------------------------------------------------------------
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Dear Developers,
|
|
164
|
-
*
|
|
165
|
-
* Inlang projects (folders) are not like .vscode, .git, or .github folders. Treat em
|
|
166
|
-
* like files: they can be renamed and moved around.
|
|
167
|
-
*/
|
|
168
|
-
it("should throw if a project (path) does not have a name", async () => {
|
|
169
|
-
const repo = await mockRepo()
|
|
170
|
-
const project = await tryCatch(() =>
|
|
171
|
-
loadProject({
|
|
172
|
-
projectPath: "/source-code/.inlang",
|
|
173
|
-
repo,
|
|
174
|
-
_import,
|
|
175
|
-
})
|
|
176
|
-
)
|
|
177
|
-
expect(project?.error?.message).toMatch('Expected a path ending in "{name}.inlang" but received ')
|
|
178
|
-
})
|
|
179
|
-
|
|
180
|
-
it("should throw if a project path does not end with .inlang", async () => {
|
|
181
|
-
const repo = await mockRepo()
|
|
182
|
-
|
|
183
|
-
const invalidPaths = [
|
|
184
|
-
"/source-code/frontend.inlang/settings",
|
|
185
|
-
"/source-code/frontend.inlang/settings.json",
|
|
186
|
-
"/source-code/frontend.inlang.md",
|
|
187
|
-
]
|
|
188
|
-
|
|
189
|
-
for (const invalidPath of invalidPaths) {
|
|
190
|
-
const project = await tryCatch(() =>
|
|
191
|
-
loadProject({
|
|
192
|
-
projectPath: invalidPath,
|
|
193
|
-
repo,
|
|
194
|
-
_import,
|
|
195
|
-
})
|
|
196
|
-
)
|
|
197
|
-
expect(project.error?.message).toMatch(
|
|
198
|
-
'Expected a path ending in "{name}.inlang" but received '
|
|
199
|
-
)
|
|
200
|
-
}
|
|
201
|
-
})
|
|
202
|
-
|
|
203
|
-
describe("initialization", () => {
|
|
204
|
-
it("should throw if projectPath is not an absolute path", async () => {
|
|
205
|
-
const repo = await mockRepo()
|
|
206
|
-
|
|
207
|
-
const result = await tryCatch(() =>
|
|
208
|
-
loadProject({
|
|
209
|
-
projectPath: "relative/path",
|
|
210
|
-
repo,
|
|
211
|
-
_import,
|
|
212
|
-
})
|
|
213
|
-
)
|
|
214
|
-
expect(result.error?.message).toBe('Expected an absolute path but received "relative/path".')
|
|
215
|
-
expect(result.data).toBeUndefined()
|
|
216
|
-
})
|
|
217
|
-
|
|
218
|
-
it("should generate projectId on missing projectid", async () => {
|
|
219
|
-
const repo = await mockRepo({ fromSnapshot: ciTestRepoSnapshot })
|
|
220
|
-
|
|
221
|
-
const existing = await repo.nodeishFs
|
|
222
|
-
.readFile("/project.inlang/project_id", {
|
|
223
|
-
encoding: "utf-8",
|
|
224
|
-
})
|
|
225
|
-
.catch((error) => {
|
|
226
|
-
return { error }
|
|
227
|
-
})
|
|
228
|
-
|
|
229
|
-
// @ts-ignore
|
|
230
|
-
expect(existing.error.code).toBe("ENOENT")
|
|
231
|
-
|
|
232
|
-
const result = await tryCatch(() =>
|
|
233
|
-
loadProject({
|
|
234
|
-
projectPath: "/project.inlang",
|
|
235
|
-
repo,
|
|
236
|
-
_import,
|
|
237
|
-
})
|
|
238
|
-
)
|
|
239
|
-
|
|
240
|
-
const newId = await repo.nodeishFs
|
|
241
|
-
.readFile("/project.inlang/project_id", {
|
|
242
|
-
encoding: "utf-8",
|
|
243
|
-
})
|
|
244
|
-
.catch((error) => {
|
|
245
|
-
return { error }
|
|
246
|
-
})
|
|
247
|
-
|
|
248
|
-
expect(newId).toBe("aef225403be8b526dfb492a4617fd59d8181e8fef2c7f4aff56ab299046e36ed")
|
|
249
|
-
|
|
250
|
-
expect(result.error).toBeUndefined()
|
|
251
|
-
expect(result.data).toBeDefined()
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
it("should reuse projectId on existing projectid", async () => {
|
|
255
|
-
const repo = await mockRepo({ fromSnapshot: ciTestRepoSnapshot })
|
|
256
|
-
|
|
257
|
-
await repo.nodeishFs.writeFile("/project.inlang/project_id", "testId")
|
|
258
|
-
|
|
259
|
-
const result = await tryCatch(() =>
|
|
260
|
-
loadProject({
|
|
261
|
-
projectPath: "/project.inlang",
|
|
262
|
-
repo,
|
|
263
|
-
_import,
|
|
264
|
-
})
|
|
265
|
-
)
|
|
266
|
-
|
|
267
|
-
const newId = await repo.nodeishFs
|
|
268
|
-
.readFile("/project.inlang/project_id", {
|
|
269
|
-
encoding: "utf-8",
|
|
270
|
-
})
|
|
271
|
-
.catch((error) => {
|
|
272
|
-
return { error }
|
|
273
|
-
})
|
|
274
|
-
|
|
275
|
-
expect(newId).toBe("testId")
|
|
276
|
-
|
|
277
|
-
expect(result.error).toBeUndefined()
|
|
278
|
-
expect(result.data).toBeDefined()
|
|
279
|
-
})
|
|
280
|
-
|
|
281
|
-
it.skipIf(() => process.platform !== "win32")("should resolve from a windows path", async () => {
|
|
282
|
-
const repo = await mockRepo()
|
|
283
|
-
const fs = repo.nodeishFs
|
|
284
|
-
await fs.mkdir("C:\\Users\\user\\project.inlang", { recursive: true })
|
|
285
|
-
await fs.writeFile("C:\\Users\\user\\project.inlang\\settings.json", JSON.stringify(settings))
|
|
286
|
-
|
|
287
|
-
const project = await loadProject({
|
|
288
|
-
projectPath: "C:\\Users\\user\\project.inlang",
|
|
289
|
-
repo,
|
|
290
|
-
_import,
|
|
291
|
-
})
|
|
292
|
-
|
|
293
|
-
expect(project.errors()).toEqual([])
|
|
294
|
-
})
|
|
295
|
-
|
|
296
|
-
describe("settings", () => {
|
|
297
|
-
it("should return an error if settings file is not found", async () => {
|
|
298
|
-
const repo = await mockRepo()
|
|
299
|
-
const fs = repo.nodeishFs
|
|
300
|
-
fs.mkdir("/user/project", { recursive: true })
|
|
301
|
-
|
|
302
|
-
const project = await loadProject({
|
|
303
|
-
projectPath: "/user/non-existend-project.inlang",
|
|
304
|
-
repo,
|
|
305
|
-
_import,
|
|
306
|
-
})
|
|
307
|
-
|
|
308
|
-
expect(project.errors()![0]).toBeInstanceOf(ProjectSettingsFileNotFoundError)
|
|
309
|
-
})
|
|
310
|
-
|
|
311
|
-
it("should return an error if settings file is not a valid JSON", async () => {
|
|
312
|
-
const repo = await mockRepo()
|
|
313
|
-
const fs = repo.nodeishFs
|
|
314
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
315
|
-
await fs.writeFile("/user/project.inlang/settings.json", "invalid json")
|
|
316
|
-
|
|
317
|
-
const project = await loadProject({
|
|
318
|
-
projectPath: "/user/project.inlang",
|
|
319
|
-
repo,
|
|
320
|
-
_import,
|
|
321
|
-
})
|
|
322
|
-
|
|
323
|
-
expect(project.errors()![0]).toBeInstanceOf(ProjectSettingsFileJSONSyntaxError)
|
|
324
|
-
})
|
|
325
|
-
|
|
326
|
-
it("should return an error if settings file is does not match schema", async () => {
|
|
327
|
-
const repo = await mockRepo()
|
|
328
|
-
const fs = repo.nodeishFs
|
|
329
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
330
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify({}))
|
|
331
|
-
|
|
332
|
-
const project = await loadProject({
|
|
333
|
-
projectPath: "/user/project.inlang",
|
|
334
|
-
repo,
|
|
335
|
-
_import,
|
|
336
|
-
})
|
|
337
|
-
|
|
338
|
-
expect(project.errors()![0]).toBeInstanceOf(ProjectSettingsInvalidError)
|
|
339
|
-
})
|
|
340
|
-
|
|
341
|
-
it("should return the parsed settings", async () => {
|
|
342
|
-
const repo = await mockRepo()
|
|
343
|
-
const fs = repo.nodeishFs
|
|
344
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
345
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
346
|
-
const project = await loadProject({
|
|
347
|
-
projectPath: "/user/project.inlang",
|
|
348
|
-
repo,
|
|
349
|
-
_import,
|
|
350
|
-
})
|
|
351
|
-
|
|
352
|
-
expect(project.settings()).toStrictEqual(settings)
|
|
353
|
-
})
|
|
354
|
-
|
|
355
|
-
it("should not re-write the settings to disk when initializing", async () => {
|
|
356
|
-
const repo = await mockRepo()
|
|
357
|
-
const fs = repo.nodeishFs
|
|
358
|
-
const settingsWithDifferentFormatting = JSON.stringify(settings, undefined, 4)
|
|
359
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
360
|
-
await fs.writeFile("/user/project.inlang/settings.json", settingsWithDifferentFormatting)
|
|
361
|
-
|
|
362
|
-
const project = await loadProject({
|
|
363
|
-
projectPath: "/user/project.inlang",
|
|
364
|
-
repo,
|
|
365
|
-
_import,
|
|
366
|
-
})
|
|
367
|
-
|
|
368
|
-
const settingsOnDisk = await fs.readFile("/user/project.inlang/settings.json", {
|
|
369
|
-
encoding: "utf-8",
|
|
370
|
-
})
|
|
371
|
-
expect(settingsOnDisk).toBe(settingsWithDifferentFormatting)
|
|
372
|
-
|
|
373
|
-
project.setSettings(project.settings())
|
|
374
|
-
// TODO: how can we await `setsettings` correctly
|
|
375
|
-
await new Promise((resolve) => setTimeout(resolve, 0))
|
|
376
|
-
|
|
377
|
-
const newsettingsOnDisk = await fs.readFile("/user/project.inlang/settings.json", {
|
|
378
|
-
encoding: "utf-8",
|
|
379
|
-
})
|
|
380
|
-
expect(newsettingsOnDisk).not.toBe(settingsWithDifferentFormatting)
|
|
381
|
-
})
|
|
382
|
-
})
|
|
383
|
-
|
|
384
|
-
describe("modules", () => {
|
|
385
|
-
it("should return an error if an error occurs while resolving a plugin", async () => {
|
|
386
|
-
const $badImport: ImportFunction = async () =>
|
|
387
|
-
({
|
|
388
|
-
default: {} as Plugin,
|
|
389
|
-
} satisfies InlangModule)
|
|
390
|
-
|
|
391
|
-
const repo = await mockRepo()
|
|
392
|
-
const fs = repo.nodeishFs
|
|
393
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
394
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
395
|
-
|
|
396
|
-
const project = await loadProject({
|
|
397
|
-
projectPath: "/user/project.inlang",
|
|
398
|
-
repo,
|
|
399
|
-
_import: $badImport,
|
|
400
|
-
})
|
|
401
|
-
|
|
402
|
-
expect(project.errors()).not.toHaveLength(0)
|
|
403
|
-
})
|
|
404
|
-
// it.todo("should throw if lintRules contain errors ???")
|
|
405
|
-
// it.todo("should return meta data")
|
|
406
|
-
// it.todo("should return plugins")
|
|
407
|
-
// it.todo("should return lint rules")
|
|
408
|
-
})
|
|
409
|
-
|
|
410
|
-
describe("flow", () => {
|
|
411
|
-
it.todo("should not call functions multiple times")
|
|
412
|
-
it.todo("should load modules after settings")
|
|
413
|
-
it.todo("should not load messages")
|
|
414
|
-
it.todo("should not call lint")
|
|
415
|
-
})
|
|
416
|
-
|
|
417
|
-
describe("instance object", () => {
|
|
418
|
-
it.todo("should contain all fields")
|
|
419
|
-
})
|
|
420
|
-
})
|
|
421
|
-
|
|
422
|
-
describe("functionality", () => {
|
|
423
|
-
describe("settings", () => {
|
|
424
|
-
it("should return the settings", async () => {
|
|
425
|
-
const repo = await mockRepo()
|
|
426
|
-
const fs = repo.nodeishFs
|
|
427
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
428
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
429
|
-
const project = await loadProject({
|
|
430
|
-
projectPath: "/user/project.inlang",
|
|
431
|
-
repo,
|
|
432
|
-
_import,
|
|
433
|
-
})
|
|
434
|
-
|
|
435
|
-
expect(getValue(project.settings)).toStrictEqual(settings)
|
|
436
|
-
})
|
|
437
|
-
|
|
438
|
-
it("should set a new settings", async () => {
|
|
439
|
-
const repo = await mockRepo()
|
|
440
|
-
const fs = repo.nodeishFs
|
|
441
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
442
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
443
|
-
const project = await loadProject({
|
|
444
|
-
projectPath: "/user/project.inlang",
|
|
445
|
-
repo,
|
|
446
|
-
_import,
|
|
447
|
-
})
|
|
448
|
-
|
|
449
|
-
expect(project.settings()).toStrictEqual(settings)
|
|
450
|
-
|
|
451
|
-
project.setSettings({ ...settings, languageTags: ["en", "de"] })
|
|
452
|
-
expect(getValue(project.settings)).toStrictEqual({ ...settings, languageTags: ["en", "de"] })
|
|
453
|
-
expect(project.settings()!.languageTags).toStrictEqual(["en", "de"])
|
|
454
|
-
|
|
455
|
-
project.setSettings({ ...settings, languageTags: ["en", "de", "fr"] })
|
|
456
|
-
expect(getValue(project.settings)).toStrictEqual({
|
|
457
|
-
...settings,
|
|
458
|
-
languageTags: ["en", "de", "fr"],
|
|
459
|
-
})
|
|
460
|
-
expect(project.settings()!.languageTags).toStrictEqual(["en", "de", "fr"])
|
|
461
|
-
})
|
|
462
|
-
})
|
|
463
|
-
|
|
464
|
-
describe("setSettings", () => {
|
|
465
|
-
it("should fail if settings are not valid", async () => {
|
|
466
|
-
const repo = await mockRepo()
|
|
467
|
-
const fs = repo.nodeishFs
|
|
468
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
469
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
470
|
-
const project = await loadProject({
|
|
471
|
-
projectPath: "/user/project.inlang",
|
|
472
|
-
repo,
|
|
473
|
-
_import,
|
|
474
|
-
})
|
|
475
|
-
|
|
476
|
-
const result = project.setSettings({} as ProjectSettings)
|
|
477
|
-
expect(result.data).toBeUndefined()
|
|
478
|
-
expect(result.error).toBeInstanceOf(ProjectSettingsInvalidError)
|
|
479
|
-
})
|
|
480
|
-
|
|
481
|
-
it("should throw an error if sourceLanguageTag is not in languageTags", async () => {
|
|
482
|
-
const repo = await mockRepo()
|
|
483
|
-
const fs = repo.nodeishFs
|
|
484
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
485
|
-
|
|
486
|
-
const settings: ProjectSettings = {
|
|
487
|
-
sourceLanguageTag: "en",
|
|
488
|
-
languageTags: ["de"],
|
|
489
|
-
modules: [],
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
493
|
-
|
|
494
|
-
const project = await loadProject({
|
|
495
|
-
projectPath: "/user/project.inlang",
|
|
496
|
-
repo,
|
|
497
|
-
_import,
|
|
498
|
-
})
|
|
499
|
-
|
|
500
|
-
expect(project.errors()).toHaveLength(1)
|
|
501
|
-
expect(project.errors()![0]).toBeInstanceOf(ProjectSettingsInvalidError)
|
|
502
|
-
})
|
|
503
|
-
|
|
504
|
-
it("should write settings to disk", async () => {
|
|
505
|
-
const repo = await mockRepo()
|
|
506
|
-
const fs = repo.nodeishFs
|
|
507
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
508
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
509
|
-
const project = await loadProject({
|
|
510
|
-
projectPath: "/user/project.inlang",
|
|
511
|
-
repo,
|
|
512
|
-
_import,
|
|
513
|
-
})
|
|
514
|
-
|
|
515
|
-
const before = await fs.readFile("/user/project.inlang/settings.json", { encoding: "utf-8" })
|
|
516
|
-
expect(before).toBeDefined()
|
|
517
|
-
|
|
518
|
-
const result = project.setSettings({ ...settings, languageTags: ["en", "nl", "de"] })
|
|
519
|
-
expect(result.data).toBeUndefined()
|
|
520
|
-
expect(result.error).toBeUndefined()
|
|
521
|
-
|
|
522
|
-
// TODO: how to wait for fs.writeFile to finish?
|
|
523
|
-
await new Promise((resolve) => setTimeout(resolve, 50))
|
|
524
|
-
|
|
525
|
-
const after = await fs.readFile("/user/project.inlang/settings.json", { encoding: "utf-8" })
|
|
526
|
-
expect(after).toBeDefined()
|
|
527
|
-
expect(after).not.toBe(before)
|
|
528
|
-
})
|
|
529
|
-
})
|
|
530
|
-
|
|
531
|
-
describe("installed", () => {
|
|
532
|
-
it("should return the installed items", async () => {
|
|
533
|
-
const repo = await mockRepo()
|
|
534
|
-
const fs = repo.nodeishFs
|
|
535
|
-
const settings: ProjectSettings = {
|
|
536
|
-
sourceLanguageTag: "en",
|
|
537
|
-
languageTags: ["en"],
|
|
538
|
-
modules: ["plugin.js", "lintRule.js"],
|
|
539
|
-
}
|
|
540
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
541
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
542
|
-
const project = await loadProject({
|
|
543
|
-
projectPath: "/user/project.inlang",
|
|
544
|
-
repo,
|
|
545
|
-
_import,
|
|
546
|
-
})
|
|
547
|
-
|
|
548
|
-
expect(project.installed.plugins()[0]).toStrictEqual({
|
|
549
|
-
id: mockPlugin.id,
|
|
550
|
-
description: mockPlugin.description,
|
|
551
|
-
displayName: mockPlugin.displayName,
|
|
552
|
-
module: settings.modules[0],
|
|
553
|
-
settingsSchema: mockPlugin.settingsSchema,
|
|
554
|
-
})
|
|
555
|
-
|
|
556
|
-
expect(project.installed.messageLintRules()[0]).toEqual({
|
|
557
|
-
id: mockMessageLintRule.id,
|
|
558
|
-
description: mockMessageLintRule.description,
|
|
559
|
-
displayName: mockMessageLintRule.displayName,
|
|
560
|
-
module: settings.modules[1],
|
|
561
|
-
level: "warning",
|
|
562
|
-
settingsSchema: mockMessageLintRule.settingsSchema,
|
|
563
|
-
})
|
|
564
|
-
})
|
|
565
|
-
|
|
566
|
-
it("should apply 'warning' as default lint level to lint rules that have no lint level defined in the settings", async () => {
|
|
567
|
-
const repo = await mockRepo()
|
|
568
|
-
const fs = repo.nodeishFs
|
|
569
|
-
|
|
570
|
-
const settings: ProjectSettings = {
|
|
571
|
-
sourceLanguageTag: "en",
|
|
572
|
-
languageTags: ["en"],
|
|
573
|
-
modules: ["plugin.js", "lintRule.js"],
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
577
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
578
|
-
|
|
579
|
-
const project = await loadProject({
|
|
580
|
-
projectPath: "/user/project.inlang",
|
|
581
|
-
repo,
|
|
582
|
-
_import,
|
|
583
|
-
})
|
|
584
|
-
|
|
585
|
-
expect(project.installed.messageLintRules()[0]?.level).toBe("warning")
|
|
586
|
-
})
|
|
587
|
-
|
|
588
|
-
// yep, this is a typical "hm, we have a bug here, let's write a test for it" test
|
|
589
|
-
it("should return lint reports if disabled is not set", async () => {
|
|
590
|
-
const _mockLintRule: MessageLintRule = {
|
|
591
|
-
id: "messageLintRule.namespace.mock",
|
|
592
|
-
description: { en: "Mock lint rule description" },
|
|
593
|
-
displayName: { en: "Mock Lint Rule" },
|
|
594
|
-
run: ({ report }) => {
|
|
595
|
-
report({
|
|
596
|
-
messageId: "some-message-1",
|
|
597
|
-
languageTag: "en",
|
|
598
|
-
body: { en: "lintrule1" },
|
|
599
|
-
})
|
|
600
|
-
},
|
|
601
|
-
}
|
|
602
|
-
const _mockPlugin: Plugin = {
|
|
603
|
-
id: "plugin.project.i18next",
|
|
604
|
-
description: { en: "Mock plugin description" },
|
|
605
|
-
displayName: { en: "Mock Plugin" },
|
|
606
|
-
|
|
607
|
-
loadMessages: () => [{ id: "some-message", alias: {}, selectors: [], variants: [] }],
|
|
608
|
-
saveMessages: () => undefined,
|
|
609
|
-
}
|
|
610
|
-
const repo = await mockRepo()
|
|
611
|
-
const fs = repo.nodeishFs
|
|
612
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
613
|
-
await fs.writeFile(
|
|
614
|
-
"/user/project.inlang/settings.json",
|
|
615
|
-
JSON.stringify({
|
|
616
|
-
sourceLanguageTag: "en",
|
|
617
|
-
languageTags: ["en"],
|
|
618
|
-
modules: ["plugin.js", "lintRule.js"],
|
|
619
|
-
} satisfies ProjectSettings)
|
|
620
|
-
)
|
|
621
|
-
|
|
622
|
-
const _import: ImportFunction = async (name) => {
|
|
623
|
-
return {
|
|
624
|
-
default: name === "plugin.js" ? _mockPlugin : _mockLintRule,
|
|
625
|
-
} satisfies InlangModule
|
|
626
|
-
}
|
|
627
|
-
const project = await loadProject({
|
|
628
|
-
projectPath: "/user/project.inlang",
|
|
629
|
-
repo,
|
|
630
|
-
_import,
|
|
631
|
-
})
|
|
632
|
-
|
|
633
|
-
await new Promise((resolve) => setTimeout(resolve, 510))
|
|
634
|
-
|
|
635
|
-
expect(await project.query.messageLintReports.getAll.settled()).toHaveLength(1)
|
|
636
|
-
expect((await project.query.messageLintReports.getAll.settled())?.[0]?.ruleId).toBe(
|
|
637
|
-
_mockLintRule.id
|
|
638
|
-
)
|
|
639
|
-
expect(project.installed.messageLintRules()).toHaveLength(1)
|
|
640
|
-
})
|
|
641
|
-
|
|
642
|
-
it("should return lint reports for a single message", async () => {
|
|
643
|
-
const _mockLintRule: MessageLintRule = {
|
|
644
|
-
id: "messageLintRule.namepsace.mock",
|
|
645
|
-
description: { en: "Mock lint rule description" },
|
|
646
|
-
displayName: { en: "Mock Lint Rule" },
|
|
647
|
-
|
|
648
|
-
run: ({ report }) => {
|
|
649
|
-
report({
|
|
650
|
-
messageId: "some-message",
|
|
651
|
-
languageTag: "en",
|
|
652
|
-
body: { en: "lintrule1" },
|
|
653
|
-
})
|
|
654
|
-
},
|
|
655
|
-
}
|
|
656
|
-
const _mockPlugin: Plugin = {
|
|
657
|
-
id: "plugin.project.i18next",
|
|
658
|
-
description: { en: "Mock plugin description" },
|
|
659
|
-
displayName: { en: "Mock Plugin" },
|
|
660
|
-
|
|
661
|
-
loadMessages: () => [{ id: "some-message", alias: {}, selectors: [], variants: [] }],
|
|
662
|
-
saveMessages: () => undefined,
|
|
663
|
-
}
|
|
664
|
-
const repo = await mockRepo()
|
|
665
|
-
const fs = repo.nodeishFs
|
|
666
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
667
|
-
await fs.writeFile(
|
|
668
|
-
"/user/project.inlang/settings.json",
|
|
669
|
-
JSON.stringify({
|
|
670
|
-
sourceLanguageTag: "en",
|
|
671
|
-
languageTags: ["en"],
|
|
672
|
-
modules: ["plugin.js", "lintRule.js"],
|
|
673
|
-
} satisfies ProjectSettings)
|
|
674
|
-
)
|
|
675
|
-
const _import: ImportFunction = async (name) => {
|
|
676
|
-
return {
|
|
677
|
-
default: name === "plugin.js" ? _mockPlugin : _mockLintRule,
|
|
678
|
-
} satisfies InlangModule
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
const project = await loadProject({
|
|
682
|
-
projectPath: "/user/project.inlang",
|
|
683
|
-
repo,
|
|
684
|
-
_import,
|
|
685
|
-
})
|
|
686
|
-
|
|
687
|
-
await new Promise((resolve) => setTimeout(resolve, 510))
|
|
688
|
-
|
|
689
|
-
expect(
|
|
690
|
-
await project.query.messageLintReports.get({ where: { messageId: "some-message" } })
|
|
691
|
-
).toHaveLength(1)
|
|
692
|
-
})
|
|
693
|
-
})
|
|
694
|
-
|
|
695
|
-
describe("errors", () => {
|
|
696
|
-
it("should return the errors", async () => {
|
|
697
|
-
const repo = await mockRepo()
|
|
698
|
-
const fs = repo.nodeishFs
|
|
699
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
700
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
701
|
-
const project = await loadProject({
|
|
702
|
-
projectPath: "/user/project.inlang",
|
|
703
|
-
repo,
|
|
704
|
-
_import,
|
|
705
|
-
})
|
|
706
|
-
project.errors.subscribe((errors) => {
|
|
707
|
-
expect(errors).toStrictEqual([])
|
|
708
|
-
})
|
|
709
|
-
})
|
|
710
|
-
})
|
|
711
|
-
|
|
712
|
-
describe("customApi", () => {
|
|
713
|
-
it("should return the app specific api", async () => {
|
|
714
|
-
const repo = await mockRepo()
|
|
715
|
-
const fs = repo.nodeishFs
|
|
716
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
717
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
718
|
-
const project = await loadProject({
|
|
719
|
-
projectPath: "/user/project.inlang",
|
|
720
|
-
repo,
|
|
721
|
-
_import,
|
|
722
|
-
})
|
|
723
|
-
|
|
724
|
-
project.customApi.subscribe((api) => {
|
|
725
|
-
expect(api["app.project.ideExtension"]).toBeDefined()
|
|
726
|
-
})
|
|
727
|
-
})
|
|
728
|
-
})
|
|
729
|
-
|
|
730
|
-
describe("messages", () => {
|
|
731
|
-
it("should return the messages", async () => {
|
|
732
|
-
const repo = await mockRepo()
|
|
733
|
-
const fs = repo.nodeishFs
|
|
734
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
735
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
736
|
-
const project = await loadProject({
|
|
737
|
-
projectPath: "/user/project.inlang",
|
|
738
|
-
repo,
|
|
739
|
-
_import,
|
|
740
|
-
})
|
|
741
|
-
|
|
742
|
-
expect(Object.values(project.query.messages.getAll())).toEqual(exampleMessages)
|
|
743
|
-
})
|
|
744
|
-
})
|
|
745
|
-
|
|
746
|
-
describe("messages with aliases", () => {
|
|
747
|
-
it("should return the messages", async () => {
|
|
748
|
-
const repo = await mockRepo()
|
|
749
|
-
const fs = repo.nodeishFs
|
|
750
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
751
|
-
await fs.writeFile(
|
|
752
|
-
"/user/project.inlang/settings.json",
|
|
753
|
-
JSON.stringify({ ...settings, experimental: { aliases: true } })
|
|
754
|
-
)
|
|
755
|
-
const project = await loadProject({
|
|
756
|
-
projectPath: "/user/project.inlang",
|
|
757
|
-
repo,
|
|
758
|
-
_import,
|
|
759
|
-
})
|
|
760
|
-
|
|
761
|
-
expect(Object.values(project.query.messages.getAll())).toEqual(exampleAliasedMessages)
|
|
762
|
-
})
|
|
763
|
-
})
|
|
764
|
-
|
|
765
|
-
describe("query", () => {
|
|
766
|
-
it("should call saveMessages() on updates", async () => {
|
|
767
|
-
const repo = await mockRepo()
|
|
768
|
-
const fs = repo.nodeishFs
|
|
769
|
-
|
|
770
|
-
const settings: ProjectSettings = {
|
|
771
|
-
sourceLanguageTag: "en",
|
|
772
|
-
languageTags: ["en", "de"],
|
|
773
|
-
modules: ["plugin.js"],
|
|
774
|
-
"plugin.project.json": {
|
|
775
|
-
pathPattern: "./resources/{languageTag}.json",
|
|
776
|
-
},
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
780
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
781
|
-
|
|
782
|
-
await fs.mkdir("./resources")
|
|
783
|
-
|
|
784
|
-
const mockSaveFn = vi.fn()
|
|
785
|
-
|
|
786
|
-
const _mockPlugin: Plugin = {
|
|
787
|
-
id: "plugin.project.json",
|
|
788
|
-
description: { en: "Mock plugin description" },
|
|
789
|
-
displayName: { en: "Mock Plugin" },
|
|
790
|
-
|
|
791
|
-
loadMessages: () => exampleMessages,
|
|
792
|
-
saveMessages: mockSaveFn,
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
const _import = async () => {
|
|
796
|
-
return {
|
|
797
|
-
default: _mockPlugin,
|
|
798
|
-
} satisfies InlangModule
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
const project = await loadProject({
|
|
802
|
-
projectPath: "/user/project.inlang",
|
|
803
|
-
repo,
|
|
804
|
-
_import,
|
|
805
|
-
})
|
|
806
|
-
|
|
807
|
-
await project.query.messages.upsert({
|
|
808
|
-
where: { id: "a" },
|
|
809
|
-
data: {
|
|
810
|
-
id: "a",
|
|
811
|
-
alias: {},
|
|
812
|
-
selectors: [],
|
|
813
|
-
variants: [
|
|
814
|
-
{
|
|
815
|
-
languageTag: "en",
|
|
816
|
-
match: [],
|
|
817
|
-
pattern: [
|
|
818
|
-
{
|
|
819
|
-
type: "Text",
|
|
820
|
-
value: "a en",
|
|
821
|
-
},
|
|
822
|
-
],
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
languageTag: "de",
|
|
826
|
-
match: [],
|
|
827
|
-
pattern: [
|
|
828
|
-
{
|
|
829
|
-
type: "Text",
|
|
830
|
-
value: "a de",
|
|
831
|
-
},
|
|
832
|
-
],
|
|
833
|
-
},
|
|
834
|
-
],
|
|
835
|
-
},
|
|
836
|
-
})
|
|
837
|
-
|
|
838
|
-
await project.query.messages.upsert({
|
|
839
|
-
where: { id: "b" },
|
|
840
|
-
data: {
|
|
841
|
-
id: "b",
|
|
842
|
-
alias: {},
|
|
843
|
-
selectors: [],
|
|
844
|
-
variants: [
|
|
845
|
-
{
|
|
846
|
-
languageTag: "en",
|
|
847
|
-
match: [],
|
|
848
|
-
pattern: [
|
|
849
|
-
{
|
|
850
|
-
type: "Text",
|
|
851
|
-
value: "b en",
|
|
852
|
-
},
|
|
853
|
-
],
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
languageTag: "de",
|
|
857
|
-
match: [],
|
|
858
|
-
pattern: [
|
|
859
|
-
{
|
|
860
|
-
type: "Text",
|
|
861
|
-
value: "b de",
|
|
862
|
-
},
|
|
863
|
-
],
|
|
864
|
-
},
|
|
865
|
-
],
|
|
866
|
-
},
|
|
867
|
-
})
|
|
868
|
-
|
|
869
|
-
// lets wait for the next tick
|
|
870
|
-
await new Promise((resolve) => setTimeout(resolve, 100))
|
|
871
|
-
|
|
872
|
-
expect(mockSaveFn.mock.calls.length).toBe(1)
|
|
873
|
-
|
|
874
|
-
expect(mockSaveFn.mock.calls[0][0].settings).toStrictEqual(settings)
|
|
875
|
-
|
|
876
|
-
expect(Object.values(mockSaveFn.mock.calls[0][0].messages)).toStrictEqual([
|
|
877
|
-
{
|
|
878
|
-
id: "a",
|
|
879
|
-
alias: {},
|
|
880
|
-
selectors: [],
|
|
881
|
-
variants: [
|
|
882
|
-
{
|
|
883
|
-
languageTag: "de",
|
|
884
|
-
match: [],
|
|
885
|
-
pattern: [
|
|
886
|
-
{
|
|
887
|
-
type: "Text",
|
|
888
|
-
value: "a de",
|
|
889
|
-
},
|
|
890
|
-
],
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
languageTag: "en",
|
|
894
|
-
match: [],
|
|
895
|
-
pattern: [
|
|
896
|
-
{
|
|
897
|
-
type: "Text",
|
|
898
|
-
value: "a en",
|
|
899
|
-
},
|
|
900
|
-
],
|
|
901
|
-
},
|
|
902
|
-
],
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
id: "b",
|
|
906
|
-
alias: {},
|
|
907
|
-
selectors: [],
|
|
908
|
-
variants: [
|
|
909
|
-
{
|
|
910
|
-
languageTag: "de",
|
|
911
|
-
match: [],
|
|
912
|
-
pattern: [
|
|
913
|
-
{
|
|
914
|
-
type: "Text",
|
|
915
|
-
value: "b de",
|
|
916
|
-
},
|
|
917
|
-
],
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
languageTag: "en",
|
|
921
|
-
match: [],
|
|
922
|
-
pattern: [
|
|
923
|
-
{
|
|
924
|
-
type: "Text",
|
|
925
|
-
value: "b en",
|
|
926
|
-
},
|
|
927
|
-
],
|
|
928
|
-
},
|
|
929
|
-
],
|
|
930
|
-
},
|
|
931
|
-
])
|
|
932
|
-
})
|
|
933
|
-
|
|
934
|
-
/*
|
|
935
|
-
* Passing all messages to saveMessages() simplifies plugins by an order of magnitude.
|
|
936
|
-
*
|
|
937
|
-
* The alternative would be to pass only the messages that changed to saveMessages().
|
|
938
|
-
* But, this would require plugins to maintain a separate data structure of messages
|
|
939
|
-
* and create optimizations, leading to (unjustified) complexity for plugin authors.
|
|
940
|
-
*
|
|
941
|
-
* Pros:
|
|
942
|
-
* - plugins don't need to transform the data (time complexity).
|
|
943
|
-
* - plugins don't to maintain a separate data structure (space complexity).
|
|
944
|
-
* - plugin authors don't need to deal with optimizations (ecosystem complexity).
|
|
945
|
-
*
|
|
946
|
-
* Cons:
|
|
947
|
-
* - Might be slow for a large number of messages. The requirement hasn't popped up yet though.
|
|
948
|
-
*/
|
|
949
|
-
it("should pass all messages, regardless of which message changed, to saveMessages()", async () => {
|
|
950
|
-
const repo = await mockRepo()
|
|
951
|
-
const fs = repo.nodeishFs
|
|
952
|
-
|
|
953
|
-
const settings: ProjectSettings = {
|
|
954
|
-
sourceLanguageTag: "en",
|
|
955
|
-
languageTags: ["en", "de"],
|
|
956
|
-
modules: ["plugin.js"],
|
|
957
|
-
"plugin.placeholder.name": {
|
|
958
|
-
pathPattern: "./resources/{languageTag}.json",
|
|
959
|
-
},
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
await fs.mkdir("./project.inlang", { recursive: true })
|
|
963
|
-
await fs.writeFile("./project.inlang/settings.json", JSON.stringify(settings))
|
|
964
|
-
|
|
965
|
-
const mockSaveFn = vi.fn()
|
|
966
|
-
|
|
967
|
-
const _mockPlugin: Plugin = {
|
|
968
|
-
id: "plugin.placeholder.name",
|
|
969
|
-
description: "Mock plugin description",
|
|
970
|
-
displayName: "Mock Plugin",
|
|
971
|
-
|
|
972
|
-
loadMessages: () => [
|
|
973
|
-
createMessage("first", { en: "first message" }),
|
|
974
|
-
createMessage("second", { en: "second message" }),
|
|
975
|
-
createMessage("third", { en: "third message" }),
|
|
976
|
-
],
|
|
977
|
-
saveMessages: mockSaveFn,
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
const _import = async () => {
|
|
981
|
-
return {
|
|
982
|
-
default: _mockPlugin,
|
|
983
|
-
} satisfies InlangModule
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
const project = await loadProject({
|
|
987
|
-
projectPath: "/project.inlang",
|
|
988
|
-
repo,
|
|
989
|
-
_import,
|
|
990
|
-
})
|
|
991
|
-
|
|
992
|
-
project.query.messages.create({ data: createMessage("fourth", { en: "fourth message" }) })
|
|
993
|
-
|
|
994
|
-
await new Promise((resolve) => setTimeout(resolve, 510))
|
|
995
|
-
|
|
996
|
-
expect(mockSaveFn.mock.calls.length).toBe(1)
|
|
997
|
-
expect(mockSaveFn.mock.calls[0][0].messages).toHaveLength(4)
|
|
998
|
-
|
|
999
|
-
project.query.messages.create({ data: createMessage("fifth", { en: "fifth message" }) })
|
|
1000
|
-
|
|
1001
|
-
await new Promise((resolve) => setTimeout(resolve, 510))
|
|
1002
|
-
|
|
1003
|
-
expect(mockSaveFn.mock.calls.length).toBe(2)
|
|
1004
|
-
expect(mockSaveFn.mock.calls[1][0].messages).toHaveLength(5)
|
|
1005
|
-
|
|
1006
|
-
project.query.messages.delete({ where: { id: "fourth" } })
|
|
1007
|
-
|
|
1008
|
-
await new Promise((resolve) => setTimeout(resolve, 510))
|
|
1009
|
-
|
|
1010
|
-
expect(mockSaveFn.mock.calls.length).toBe(3)
|
|
1011
|
-
expect(mockSaveFn.mock.calls[2][0].messages).toHaveLength(4)
|
|
1012
|
-
})
|
|
1013
|
-
})
|
|
1014
|
-
|
|
1015
|
-
describe("lint", () => {
|
|
1016
|
-
it("should return the message lint reports", async () => {
|
|
1017
|
-
const settings: ProjectSettings = {
|
|
1018
|
-
sourceLanguageTag: "en",
|
|
1019
|
-
languageTags: ["en"],
|
|
1020
|
-
modules: ["lintRule.js"],
|
|
1021
|
-
}
|
|
1022
|
-
const repo = await mockRepo()
|
|
1023
|
-
const fs = repo.nodeishFs
|
|
1024
|
-
await fs.mkdir("/user/project.inlang", { recursive: true })
|
|
1025
|
-
await fs.writeFile("/user/project.inlang/settings.json", JSON.stringify(settings))
|
|
1026
|
-
const project = await loadProject({
|
|
1027
|
-
projectPath: "/user/project.inlang",
|
|
1028
|
-
repo,
|
|
1029
|
-
_import: async () => ({
|
|
1030
|
-
default: mockMessageLintRule,
|
|
1031
|
-
}),
|
|
1032
|
-
})
|
|
1033
|
-
// TODO: test with real lint rules
|
|
1034
|
-
const r = await project.query.messageLintReports.getAll.settled()
|
|
1035
|
-
expect(r).toEqual([])
|
|
1036
|
-
})
|
|
1037
|
-
})
|
|
1038
|
-
|
|
1039
|
-
describe("watcher", () => {
|
|
1040
|
-
it("changing files in resources should trigger callback of message query", async () => {
|
|
1041
|
-
const repo = await mockRepo()
|
|
1042
|
-
const fs = repo.nodeishFs
|
|
1043
|
-
|
|
1044
|
-
const messages = {
|
|
1045
|
-
$schema: "https://inlang.com/schema/inlang-message-format",
|
|
1046
|
-
data: [
|
|
1047
|
-
{
|
|
1048
|
-
id: "test",
|
|
1049
|
-
selectors: [],
|
|
1050
|
-
variants: [
|
|
1051
|
-
{
|
|
1052
|
-
match: [],
|
|
1053
|
-
languageTag: "en",
|
|
1054
|
-
pattern: [
|
|
1055
|
-
{
|
|
1056
|
-
type: "Text",
|
|
1057
|
-
value: "test",
|
|
1058
|
-
},
|
|
1059
|
-
],
|
|
1060
|
-
},
|
|
1061
|
-
],
|
|
1062
|
-
},
|
|
1063
|
-
],
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
const newMessage = {
|
|
1067
|
-
id: "test2",
|
|
1068
|
-
selectors: [],
|
|
1069
|
-
variants: [
|
|
1070
|
-
{
|
|
1071
|
-
match: [],
|
|
1072
|
-
languageTag: "en",
|
|
1073
|
-
pattern: [
|
|
1074
|
-
{
|
|
1075
|
-
type: "Text",
|
|
1076
|
-
value: "test",
|
|
1077
|
-
},
|
|
1078
|
-
],
|
|
1079
|
-
},
|
|
1080
|
-
],
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
await fs.writeFile("./messages.json", JSON.stringify(messages))
|
|
1084
|
-
|
|
1085
|
-
const getMessages = async (customFs: NodeishFilesystemSubset) => {
|
|
1086
|
-
const file = await customFs.readFile("./messages.json", { encoding: "utf-8" })
|
|
1087
|
-
return JSON.parse(file.toString()).data
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
const mockMessageFormatPlugin: Plugin = {
|
|
1091
|
-
id: "plugin.inlang.messageFormat",
|
|
1092
|
-
description: { en: "Mock plugin description" },
|
|
1093
|
-
displayName: { en: "Mock Plugin" },
|
|
1094
|
-
|
|
1095
|
-
loadMessages: async (args) => await getMessages(args.nodeishFs),
|
|
1096
|
-
saveMessages: () => undefined as any,
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
const settings: ProjectSettings = {
|
|
1100
|
-
sourceLanguageTag: "en",
|
|
1101
|
-
languageTags: ["en"],
|
|
1102
|
-
modules: ["plugin.js"],
|
|
1103
|
-
"plugin.inlang.messageFormat": {
|
|
1104
|
-
filePath: "./messages.json",
|
|
1105
|
-
},
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
await fs.mkdir("./project.inlang", { recursive: true })
|
|
1109
|
-
await fs.writeFile("./project.inlang/settings.json", JSON.stringify(settings))
|
|
1110
|
-
|
|
1111
|
-
// establish watcher
|
|
1112
|
-
const project = await loadProject({
|
|
1113
|
-
projectPath: normalizePath("/project.inlang"),
|
|
1114
|
-
repo,
|
|
1115
|
-
_import: async () => ({
|
|
1116
|
-
default: mockMessageFormatPlugin,
|
|
1117
|
-
}),
|
|
1118
|
-
})
|
|
1119
|
-
|
|
1120
|
-
let counter = 0
|
|
1121
|
-
let messageCount = 0
|
|
1122
|
-
|
|
1123
|
-
project.query.messages.getAll.subscribe((messages) => {
|
|
1124
|
-
counter = counter + 1
|
|
1125
|
-
messageCount = messages.length
|
|
1126
|
-
})
|
|
1127
|
-
|
|
1128
|
-
// subscribe fires once
|
|
1129
|
-
expect(counter).toBe(1)
|
|
1130
|
-
|
|
1131
|
-
// saving the file without changing should not trigger a message query
|
|
1132
|
-
await fs.writeFile("./messages.json", JSON.stringify(messages))
|
|
1133
|
-
await new Promise((resolve) => setTimeout(resolve, 200)) // file event will lock a file and be handled sequentially - give it time to pickup the change
|
|
1134
|
-
|
|
1135
|
-
// we didn't change the message we write into message.json - shouldn't change the messages
|
|
1136
|
-
expect(counter).toBe(1)
|
|
1137
|
-
expect(messageCount).toBe(1)
|
|
1138
|
-
|
|
1139
|
-
// saving the file without changing should trigger a change
|
|
1140
|
-
messages.data[0]!.variants[0]!.pattern[0]!.value = "changed"
|
|
1141
|
-
await fs.writeFile("./messages.json", JSON.stringify(messages))
|
|
1142
|
-
await new Promise((resolve) => setTimeout(resolve, 200)) // file event will lock a file and be handled sequentially - give it time to pickup the change
|
|
1143
|
-
|
|
1144
|
-
expect(counter).toBe(2)
|
|
1145
|
-
expect(messageCount).toBe(1)
|
|
1146
|
-
|
|
1147
|
-
messages.data[0]!.variants[0]!.pattern[0]!.value = "changed3"
|
|
1148
|
-
|
|
1149
|
-
// change file - update message
|
|
1150
|
-
await fs.writeFile("./messages.json", JSON.stringify(messages))
|
|
1151
|
-
await new Promise((resolve) => setTimeout(resolve, 200)) // file event will lock a file and be handled sequentially - give it time to pickup the change
|
|
1152
|
-
|
|
1153
|
-
expect(counter).toBe(3)
|
|
1154
|
-
expect(messageCount).toBe(1)
|
|
1155
|
-
|
|
1156
|
-
// change file - add a message
|
|
1157
|
-
messages.data.push(newMessage)
|
|
1158
|
-
await fs.writeFile("./messages.json", JSON.stringify(messages))
|
|
1159
|
-
await new Promise((resolve) => setTimeout(resolve, 200)) // file event will lock a file and be handled sequentially - give it time to pickup the change
|
|
1160
|
-
|
|
1161
|
-
expect(counter).toBe(4)
|
|
1162
|
-
expect(messageCount).toBe(2)
|
|
1163
|
-
|
|
1164
|
-
// change file - remove a message
|
|
1165
|
-
messages.data.pop()
|
|
1166
|
-
await fs.writeFile("./messages.json", JSON.stringify(messages))
|
|
1167
|
-
await new Promise((resolve) => setTimeout(resolve, 200)) // file event will lock a file and be handled sequentially - give it time to pickup the change
|
|
1168
|
-
|
|
1169
|
-
expect(counter).toBe(5)
|
|
1170
|
-
expect(messageCount).toBe(1)
|
|
1171
|
-
})
|
|
1172
|
-
})
|
|
1173
|
-
})
|