@directus/api 35.0.2 → 35.1.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/dist/_virtual/rolldown_runtime.js +1 -24
- package/dist/ai/chat/controllers/chat.post.js +9 -22
- package/dist/ai/chat/controllers/object.post.js +58 -0
- package/dist/ai/chat/lib/create-ui-stream.js +10 -18
- package/dist/ai/chat/lib/transform-file-parts.js +1 -3
- package/dist/ai/chat/middleware/load-settings.js +1 -2
- package/dist/ai/chat/models/chat-request.js +2 -9
- package/dist/ai/chat/models/object-request.js +19 -0
- package/dist/ai/chat/router.js +3 -2
- package/dist/ai/chat/utils/add-additional-properties-to-json-schema.js +37 -0
- package/dist/ai/chat/utils/chat-request-tool-to-ai-sdk-tool.js +3 -8
- package/dist/ai/chat/utils/fix-error-tool-calls.js +4 -6
- package/dist/ai/chat/utils/format-context.js +17 -27
- package/dist/ai/chat/utils/parse-json-schema-7.js +3 -6
- package/dist/ai/chat/utils/zod-jsonschema7-parser.js +16 -0
- package/dist/ai/devtools/index.js +1 -2
- package/dist/ai/files/adapters/anthropic.js +1 -3
- package/dist/ai/files/adapters/google.js +5 -12
- package/dist/ai/files/adapters/openai.js +1 -3
- package/dist/ai/files/controllers/upload.js +8 -24
- package/dist/ai/files/lib/fetch-provider.js +1 -3
- package/dist/ai/files/lib/upload-to-provider.js +6 -16
- package/dist/ai/mcp/server.js +58 -102
- package/dist/ai/mcp/transport.js +2 -6
- package/dist/ai/providers/anthropic-file-support.js +28 -41
- package/dist/ai/providers/anthropic-tool-search.js +10 -14
- package/dist/ai/providers/index.js +0 -1
- package/dist/ai/providers/options.js +2 -7
- package/dist/ai/providers/registry.js +38 -48
- package/dist/ai/telemetry/braintrust.js +3 -9
- package/dist/ai/telemetry/index.js +14 -13
- package/dist/ai/telemetry/langfuse.js +8 -22
- package/dist/ai/tools/assets/index.js +15 -23
- package/dist/ai/tools/collections/index.js +9 -19
- package/dist/ai/tools/fields/index.js +13 -27
- package/dist/ai/tools/files/index.js +11 -24
- package/dist/ai/tools/flows/index.js +8 -16
- package/dist/ai/tools/folders/index.js +11 -23
- package/dist/ai/tools/items/index.js +19 -44
- package/dist/ai/tools/operations/index.js +7 -13
- package/dist/ai/tools/relations/index.js +5 -11
- package/dist/ai/tools/schema/index.js +39 -91
- package/dist/ai/tools/trigger-flow/index.js +9 -16
- package/dist/ai/tools/utils.js +4 -8
- package/dist/app.js +19 -51
- package/dist/auth/auth.js +3 -9
- package/dist/auth/drivers/ldap.js +39 -82
- package/dist/auth/drivers/local.js +4 -12
- package/dist/auth/drivers/oauth2.js +32 -63
- package/dist/auth/drivers/openid.js +49 -89
- package/dist/auth/drivers/saml.js +16 -31
- package/dist/auth/utils/generate-callback-url.js +2 -7
- package/dist/auth/utils/resolve-login-redirect.js +11 -21
- package/dist/auth.js +2 -5
- package/dist/bus/lib/use-bus.js +3 -7
- package/dist/cache.js +11 -24
- package/dist/cli/commands/bootstrap/index.js +10 -19
- package/dist/cli/commands/cache/clear.js +1 -3
- package/dist/cli/commands/database/migrate.js +2 -5
- package/dist/cli/commands/init/index.js +3 -5
- package/dist/cli/commands/init/questions.js +2 -3
- package/dist/cli/commands/schema/apply.js +39 -81
- package/dist/cli/commands/schema/snapshot.js +3 -8
- package/dist/cli/commands/users/create.js +3 -5
- package/dist/cli/commands/users/passwd.js +2 -5
- package/dist/cli/index.js +1 -2
- package/dist/cli/load-extensions.js +3 -6
- package/dist/cli/utils/create-db-connection.js +7 -12
- package/dist/cli/utils/create-env/index.js +2 -6
- package/dist/cli/utils/drivers.js +1 -3
- package/dist/controllers/access.js +15 -30
- package/dist/controllers/activity.js +5 -10
- package/dist/controllers/assets.js +24 -61
- package/dist/controllers/auth.js +19 -52
- package/dist/controllers/collections.js +8 -17
- package/dist/controllers/comments.js +15 -30
- package/dist/controllers/dashboards.js +13 -25
- package/dist/controllers/deployment-webhooks.js +6 -12
- package/dist/controllers/deployment.js +39 -90
- package/dist/controllers/extensions.js +53 -98
- package/dist/controllers/fields.js +17 -38
- package/dist/controllers/files.js +31 -68
- package/dist/controllers/flows.js +15 -30
- package/dist/controllers/folders.js +16 -32
- package/dist/controllers/graphql.js +2 -6
- package/dist/controllers/items.js +18 -38
- package/dist/controllers/mcp.js +4 -8
- package/dist/controllers/metrics.js +4 -12
- package/dist/controllers/not-found.js +2 -5
- package/dist/controllers/notifications.js +16 -32
- package/dist/controllers/operations.js +13 -25
- package/dist/controllers/panels.js +13 -25
- package/dist/controllers/permissions.js +18 -35
- package/dist/controllers/policies.js +15 -30
- package/dist/controllers/presets.js +16 -32
- package/dist/controllers/relations.js +12 -24
- package/dist/controllers/revisions.js +2 -3
- package/dist/controllers/roles.js +13 -25
- package/dist/controllers/schema.js +19 -30
- package/dist/controllers/server.js +32 -44
- package/dist/controllers/settings.js +5 -9
- package/dist/controllers/shares.js +20 -40
- package/dist/controllers/translations.js +16 -32
- package/dist/controllers/tus.js +4 -11
- package/dist/controllers/users.js +46 -100
- package/dist/controllers/utils/handle-registry-error.js +26 -0
- package/dist/controllers/utils.js +20 -41
- package/dist/controllers/versions.js +20 -41
- package/dist/database/errors/dialects/mssql.js +8 -21
- package/dist/database/errors/dialects/mysql.js +7 -14
- package/dist/database/errors/dialects/oracle.js +3 -6
- package/dist/database/errors/dialects/postgres.js +8 -18
- package/dist/database/errors/dialects/sqlite.js +16 -21
- package/dist/database/errors/translate.js +1 -2
- package/dist/database/get-ast-from-query/get-ast-from-query.js +4 -12
- package/dist/database/get-ast-from-query/lib/convert-wildcards.js +15 -29
- package/dist/database/get-ast-from-query/lib/parse-fields.js +17 -41
- package/dist/database/get-ast-from-query/utils/get-allowed-sort.js +5 -14
- package/dist/database/get-ast-from-query/utils/get-related-collection.js +2 -6
- package/dist/database/helpers/date/dialects/mysql.js +1 -1
- package/dist/database/helpers/date/dialects/oracle.js +3 -9
- package/dist/database/helpers/date/dialects/sqlite.js +3 -9
- package/dist/database/helpers/date/types.js +1 -3
- package/dist/database/helpers/fn/dialects/mssql.js +4 -12
- package/dist/database/helpers/fn/dialects/mysql.js +5 -14
- package/dist/database/helpers/fn/dialects/oracle.js +4 -12
- package/dist/database/helpers/fn/dialects/postgres.js +5 -14
- package/dist/database/helpers/fn/dialects/sqlite.js +4 -12
- package/dist/database/helpers/fn/json/parse-function.js +9 -27
- package/dist/database/helpers/fn/types.js +1 -3
- package/dist/database/helpers/geometry/dialects/mssql.js +1 -3
- package/dist/database/helpers/geometry/dialects/oracle.js +1 -3
- package/dist/database/helpers/geometry/dialects/postgres.js +1 -2
- package/dist/database/helpers/geometry/dialects/redshift.js +1 -3
- package/dist/database/helpers/geometry/dialects/sqlite.js +1 -2
- package/dist/database/helpers/index.js +1 -2
- package/dist/database/helpers/number/dialects/postgres.js +1 -3
- package/dist/database/helpers/number/utils/decimal-limit.js +2 -4
- package/dist/database/helpers/number/utils/maybe-stringify-big-int.js +1 -3
- package/dist/database/helpers/schema/dialects/cockroachdb.js +8 -15
- package/dist/database/helpers/schema/dialects/mssql.js +8 -15
- package/dist/database/helpers/schema/dialects/mysql.js +8 -14
- package/dist/database/helpers/schema/dialects/oracle.js +13 -28
- package/dist/database/helpers/schema/dialects/postgres.js +6 -10
- package/dist/database/helpers/schema/dialects/sqlite.js +1 -3
- package/dist/database/helpers/schema/types.js +12 -35
- package/dist/database/helpers/schema/utils/prep-query-params.js +4 -7
- package/dist/database/helpers/sequence/types.js +1 -3
- package/dist/database/index.js +41 -79
- package/dist/database/migrations/20201029A-remove-system-relations.js +1 -5
- package/dist/database/migrations/20201029B-remove-system-collections.js +1 -5
- package/dist/database/migrations/20201029C-remove-system-fields.js +1 -5
- package/dist/database/migrations/20201105A-add-cascade-system-relations.js +9 -15
- package/dist/database/migrations/20210225A-add-relations-sort-field.js +4 -6
- package/dist/database/migrations/20210415A-make-filesize-nullable.js +2 -4
- package/dist/database/migrations/20210506A-rename-interfaces.js +13 -20
- package/dist/database/migrations/20210518A-add-foreign-key-constraints.js +7 -18
- package/dist/database/migrations/20210519A-add-system-fk-triggers.js +58 -67
- package/dist/database/migrations/20210626A-change-filesize-bigint.js +2 -8
- package/dist/database/migrations/20210802A-replace-groups.js +7 -9
- package/dist/database/migrations/20210805A-update-groups.js +4 -14
- package/dist/database/migrations/20210805B-change-image-metadata-structure.js +2 -6
- package/dist/database/migrations/20210920A-webhooks-url-not-null.js +2 -6
- package/dist/database/migrations/20210927A-replace-fields-group.js +5 -11
- package/dist/database/migrations/20211007A-update-presets.js +4 -12
- package/dist/database/migrations/20220303A-remove-default-project-color.js +2 -4
- package/dist/database/migrations/20220322A-rename-field-typecast-flags.js +2 -6
- package/dist/database/migrations/20220325A-fix-typecast-flags.js +3 -8
- package/dist/database/migrations/20220402A-remove-default-value-panel-icon.js +2 -4
- package/dist/database/migrations/20220429A-add-flows.js +2 -4
- package/dist/database/migrations/20220801A-update-notifications-timestamp-column.js +2 -4
- package/dist/database/migrations/20230401A-update-material-icons.js +2 -4
- package/dist/database/migrations/20230526A-migrate-translation-strings.js +9 -16
- package/dist/database/migrations/20230721A-require-shares-fields.js +9 -20
- package/dist/database/migrations/20231009A-update-csv-fields-to-text.js +15 -22
- package/dist/database/migrations/20231009B-update-panel-options.js +4 -12
- package/dist/database/migrations/20240204A-marketplace.js +20 -26
- package/dist/database/migrations/20240311A-deprecate-webhooks.js +1 -1
- package/dist/database/migrations/20240716A-update-files-date-fields.js +8 -14
- package/dist/database/migrations/20240806A-permissions-policies.js +17 -39
- package/dist/database/migrations/20240909A-separate-comments.js +14 -17
- package/dist/database/migrations/20240924A-migrate-legacy-comments.js +6 -11
- package/dist/database/migrations/20240924B-populate-versioning-deltas.js +1 -3
- package/dist/database/migrations/20250224A-visual-editor.js +1 -2
- package/dist/database/migrations/20250609A-license-banner.js +1 -2
- package/dist/database/migrations/20250613A-add-project-id.js +2 -5
- package/dist/database/migrations/20251014A-add-project-owner.js +7 -10
- package/dist/database/migrations/20251028A-add-retention-indexes.js +7 -15
- package/dist/database/migrations/20260113A-add-revisions-index.js +7 -15
- package/dist/database/migrations/run.js +23 -50
- package/dist/database/run-ast/lib/apply-query/add-join.js +8 -20
- package/dist/database/run-ast/lib/apply-query/aggregate.js +1 -3
- package/dist/database/run-ast/lib/apply-query/filter/get-filter-type.js +3 -9
- package/dist/database/run-ast/lib/apply-query/filter/index.js +9 -27
- package/dist/database/run-ast/lib/apply-query/filter/operator.js +42 -107
- package/dist/database/run-ast/lib/apply-query/filter/validate-operator.js +3 -9
- package/dist/database/run-ast/lib/apply-query/get-filter-path.js +2 -6
- package/dist/database/run-ast/lib/apply-query/get-operation.js +9 -14
- package/dist/database/run-ast/lib/apply-query/index.js +20 -39
- package/dist/database/run-ast/lib/apply-query/join-filter-with-cases.js +3 -7
- package/dist/database/run-ast/lib/apply-query/pagination.js +2 -6
- package/dist/database/run-ast/lib/apply-query/search.js +17 -41
- package/dist/database/run-ast/lib/apply-query/sort.js +16 -30
- package/dist/database/run-ast/lib/get-db-query.js +7 -15
- package/dist/database/run-ast/lib/parse-current-level.js +10 -23
- package/dist/database/run-ast/modules/fetch-permitted-ast-root-fields.js +10 -14
- package/dist/database/run-ast/run-ast.js +30 -52
- package/dist/database/run-ast/utils/apply-case-when.js +1 -3
- package/dist/database/run-ast/utils/apply-function-to-column-name.js +2 -6
- package/dist/database/run-ast/utils/apply-parent-filters.js +14 -19
- package/dist/database/run-ast/utils/generate-alias.js +9 -14
- package/dist/database/run-ast/utils/get-column-pre-processor.js +14 -26
- package/dist/database/run-ast/utils/get-column.js +5 -14
- package/dist/database/run-ast/utils/get-inner-query-column-pre-processor.js +1 -3
- package/dist/database/run-ast/utils/merge-with-parent-items.js +31 -63
- package/dist/database/run-ast/utils/remove-temporary-fields.js +15 -29
- package/dist/database/run-ast/utils/with-preprocess-bindings.js +2 -6
- package/dist/database/seeds/run.js +19 -45
- package/dist/deployment/deployment.js +2 -8
- package/dist/deployment/drivers/netlify.js +43 -88
- package/dist/deployment/drivers/vercel.js +34 -72
- package/dist/deployment.js +8 -14
- package/dist/emitter.js +14 -21
- package/dist/extensions/index.js +1 -3
- package/dist/extensions/lib/get-extensions-path.js +1 -3
- package/dist/extensions/lib/get-extensions-settings.js +26 -42
- package/dist/extensions/lib/get-extensions.js +3 -7
- package/dist/extensions/lib/get-shared-deps-mapping.js +3 -7
- package/dist/extensions/lib/installation/index.js +1 -3
- package/dist/extensions/lib/installation/manager.js +9 -23
- package/dist/extensions/lib/sandbox/generate-host-function-reference.js +2 -5
- package/dist/extensions/lib/sandbox/register/call-reference.js +1 -1
- package/dist/extensions/lib/sandbox/register/filter.js +1 -2
- package/dist/extensions/lib/sandbox/register/operation.js +1 -2
- package/dist/extensions/lib/sandbox/register/route.js +2 -4
- package/dist/extensions/lib/sandbox/sdk/generators/log.js +1 -1
- package/dist/extensions/lib/sandbox/sdk/generators/request.js +13 -28
- package/dist/extensions/lib/sandbox/sdk/generators/sleep.js +2 -3
- package/dist/extensions/lib/sandbox/sdk/utils/wrap.js +4 -9
- package/dist/extensions/lib/sync/status.js +4 -11
- package/dist/extensions/lib/sync/sync.js +6 -12
- package/dist/extensions/lib/sync/tracker.js +7 -10
- package/dist/extensions/lib/sync/utils.js +5 -9
- package/dist/extensions/manager.js +59 -107
- package/dist/flows.js +233 -275
- package/dist/lock/lib/use-lock.js +3 -7
- package/dist/logger/index.js +37 -57
- package/dist/logger/redact-query.js +1 -3
- package/dist/mailer.js +12 -18
- package/dist/metrics/lib/create-metrics.js +69 -117
- package/dist/metrics/lib/use-metrics.js +3 -8
- package/dist/middleware/authenticate.js +1 -3
- package/dist/middleware/cache.js +5 -8
- package/dist/middleware/collection-exists.js +3 -8
- package/dist/middleware/cors.js +8 -10
- package/dist/middleware/error-handler.js +10 -21
- package/dist/middleware/extract-token.js +3 -9
- package/dist/middleware/graphql.js +16 -27
- package/dist/middleware/rate-limiter-global.js +1 -3
- package/dist/middleware/rate-limiter-ip.js +9 -11
- package/dist/middleware/rate-limiter-registration.js +9 -11
- package/dist/middleware/request-counter.js +8 -15
- package/dist/middleware/respond.js +8 -16
- package/dist/middleware/validate-batch.js +5 -15
- package/dist/operations/condition/index.js +4 -10
- package/dist/operations/exec/index.js +1 -2
- package/dist/operations/item-create/index.js +18 -26
- package/dist/operations/item-delete/index.js +21 -31
- package/dist/operations/item-read/index.js +21 -31
- package/dist/operations/item-update/index.js +23 -36
- package/dist/operations/log/index.js +1 -2
- package/dist/operations/mail/index.js +5 -8
- package/dist/operations/mail/rate-limiter.js +6 -10
- package/dist/operations/notification/index.js +13 -19
- package/dist/operations/request/index.js +8 -13
- package/dist/operations/throw-error/index.js +1 -2
- package/dist/operations/trigger/index.js +4 -8
- package/dist/packages/types/dist/index.js +219 -231
- package/dist/permissions/cache.js +2 -3
- package/dist/permissions/lib/fetch-permissions.js +1 -3
- package/dist/permissions/lib/fetch-policies.js +5 -10
- package/dist/permissions/modules/fetch-accountability-collection-access/fetch-accountability-collection-access.js +19 -32
- package/dist/permissions/modules/fetch-allowed-collections/fetch-allowed-collections.js +7 -12
- package/dist/permissions/modules/fetch-allowed-field-map/fetch-allowed-field-map.js +8 -17
- package/dist/permissions/modules/fetch-global-access/fetch-global-access.js +1 -1
- package/dist/permissions/modules/fetch-inconsistent-field-map/fetch-inconsistent-field-map.js +6 -10
- package/dist/permissions/modules/fetch-policies-ip-access/fetch-policies-ip-access.js +9 -15
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-children.js +2 -8
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-query.js +32 -34
- package/dist/permissions/modules/process-ast/lib/field-map-from-ast.js +2 -2
- package/dist/permissions/modules/process-ast/lib/get-cases.js +3 -8
- package/dist/permissions/modules/process-ast/lib/inject-cases.js +6 -19
- package/dist/permissions/modules/process-ast/process-ast.js +4 -12
- package/dist/permissions/modules/process-ast/utils/collections-in-field-map.js +2 -4
- package/dist/permissions/modules/process-ast/utils/dedupe-access.js +6 -10
- package/dist/permissions/modules/process-ast/utils/extract-paths-from-query.js +9 -25
- package/dist/permissions/modules/process-ast/utils/find-related-collection.js +1 -3
- package/dist/permissions/modules/process-ast/utils/flatten-filter.js +7 -10
- package/dist/permissions/modules/process-ast/utils/get-info-for-path.js +4 -6
- package/dist/permissions/modules/process-ast/utils/validate-path/create-error.js +1 -2
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-existence.js +3 -8
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-permissions.js +5 -13
- package/dist/permissions/modules/process-payload/lib/is-field-nullable.js +1 -2
- package/dist/permissions/modules/process-payload/process-payload.js +6 -15
- package/dist/permissions/modules/validate-access/lib/validate-collection-access.js +2 -3
- package/dist/permissions/modules/validate-access/lib/validate-item-access.js +14 -28
- package/dist/permissions/modules/validate-access/validate-access.js +5 -15
- package/dist/permissions/modules/validate-remaining-admin/validate-remaining-admin-count.js +1 -3
- package/dist/permissions/utils/extract-required-dynamic-variable-context.js +10 -15
- package/dist/permissions/utils/fetch-dynamic-variable-data.js +17 -35
- package/dist/permissions/utils/fetch-raw-permissions.js +3 -9
- package/dist/permissions/utils/fetch-share-info.js +1 -2
- package/dist/permissions/utils/filter-policies-by-ip.js +2 -6
- package/dist/permissions/utils/get-permissions-for-share.js +22 -47
- package/dist/permissions/utils/get-unaliased-field-key.js +2 -5
- package/dist/permissions/utils/merge-permissions.js +13 -36
- package/dist/permissions/utils/with-cache.js +1 -3
- package/dist/rate-limiter.js +2 -7
- package/dist/redis/lib/create-redis.js +1 -2
- package/dist/redis/lib/use-redis.js +1 -1
- package/dist/redis/utils/redis-config-available.js +1 -3
- package/dist/request/agent-with-ip-validation.js +3 -7
- package/dist/request/is-denied-ip.js +1 -3
- package/dist/schedules/metrics.js +4 -11
- package/dist/schedules/retention.js +17 -33
- package/dist/schedules/telemetry.js +1 -2
- package/dist/schedules/tus.js +5 -7
- package/dist/server.js +12 -24
- package/dist/services/access.js +1 -3
- package/dist/services/assets/name-deduper.js +2 -6
- package/dist/services/assets.js +43 -79
- package/dist/services/authentication.js +63 -96
- package/dist/services/collections.js +107 -218
- package/dist/services/comments.js +18 -32
- package/dist/services/deployment-projects.js +17 -31
- package/dist/services/deployment.js +63 -106
- package/dist/services/extensions.js +25 -63
- package/dist/services/fields/build-collection-and-field-relations.js +8 -14
- package/dist/services/fields/get-collection-meta-updates.js +4 -12
- package/dist/services/fields/get-collection-relation-list.js +2 -4
- package/dist/services/fields.js +162 -314
- package/dist/services/files/lib/extract-metadata.js +7 -20
- package/dist/services/files/utils/get-metadata.js +31 -64
- package/dist/services/files/utils/parse-image-metadata.js +7 -19
- package/dist/services/files.js +102 -173
- package/dist/services/flows.js +3 -6
- package/dist/services/folders.js +13 -17
- package/dist/services/graphql/errors/format.js +2 -2
- package/dist/services/graphql/index.js +4 -13
- package/dist/services/graphql/resolvers/get-collection-type.js +1 -3
- package/dist/services/graphql/resolvers/get-field-type.js +1 -3
- package/dist/services/graphql/resolvers/get-relation-type.js +1 -3
- package/dist/services/graphql/resolvers/mutation.js +6 -14
- package/dist/services/graphql/resolvers/query.js +3 -10
- package/dist/services/graphql/resolvers/system-admin.js +13 -27
- package/dist/services/graphql/resolvers/system-global.js +31 -71
- package/dist/services/graphql/resolvers/system.js +209 -245
- package/dist/services/graphql/schema/get-types.js +69 -101
- package/dist/services/graphql/schema/index.js +74 -92
- package/dist/services/graphql/schema/parse-args.js +1 -2
- package/dist/services/graphql/schema/parse-query.js +8 -21
- package/dist/services/graphql/schema/read.js +83 -106
- package/dist/services/graphql/schema/write.js +36 -41
- package/dist/services/graphql/subscription.js +30 -51
- package/dist/services/graphql/types/bigint.js +5 -15
- package/dist/services/graphql/types/string-or-float.js +2 -6
- package/dist/services/graphql/utils/add-path-to-validation-error.js +1 -3
- package/dist/services/graphql/utils/aggregate-query.js +2 -6
- package/dist/services/graphql/utils/dedupe-resolvers.js +8 -13
- package/dist/services/graphql/utils/filter-replace-m2a.js +9 -18
- package/dist/services/graphql/utils/process-error.js +21 -31
- package/dist/services/graphql/utils/replace-fragments.js +2 -5
- package/dist/services/graphql/utils/replace-funcs.js +2 -5
- package/dist/services/graphql/utils/sanitize-gql-schema.js +10 -21
- package/dist/services/import-export.js +68 -143
- package/dist/services/items.js +126 -271
- package/dist/services/mail/index.js +13 -26
- package/dist/services/mail/rate-limiter.js +6 -10
- package/dist/services/meta.js +4 -9
- package/dist/services/notifications.js +2 -3
- package/dist/services/operations.js +3 -6
- package/dist/services/payload.js +188 -316
- package/dist/services/permissions.js +14 -26
- package/dist/services/policies.js +7 -18
- package/dist/services/relations.js +82 -181
- package/dist/services/revisions.js +8 -15
- package/dist/services/roles.js +4 -12
- package/dist/services/schema.js +4 -9
- package/dist/services/server.js +31 -66
- package/dist/services/shares.js +25 -35
- package/dist/services/specifications.js +87 -139
- package/dist/services/tfa.js +8 -24
- package/dist/services/translations.js +6 -12
- package/dist/services/tus/data-store.js +23 -55
- package/dist/services/tus/lockers.js +4 -10
- package/dist/services/tus/server.js +2 -5
- package/dist/services/users.js +79 -153
- package/dist/services/utils.js +12 -31
- package/dist/services/versions.js +52 -96
- package/dist/services/websocket.js +8 -12
- package/dist/storage/get-storage-driver.js +2 -5
- package/dist/storage/register-drivers.js +1 -3
- package/dist/storage/register-locations.js +2 -4
- package/dist/synchronization.js +6 -17
- package/dist/telemetry/counter/use-buffered-counter.js +6 -22
- package/dist/telemetry/counter/use-counters.js +2 -6
- package/dist/telemetry/lib/send-report.js +2 -6
- package/dist/telemetry/lib/track.js +3 -8
- package/dist/telemetry/utils/check-user-limits.js +3 -9
- package/dist/telemetry/utils/format-api-request-counts.js +1 -3
- package/dist/telemetry/utils/get-extension-count.js +3 -8
- package/dist/telemetry/utils/get-item-count.js +2 -5
- package/dist/telemetry/utils/get-settings.js +2 -3
- package/dist/telemetry/utils/get-user-item-count.js +2 -4
- package/dist/telemetry/utils/should-check-user-limits.js +1 -3
- package/dist/types/index.js +0 -6
- package/dist/utils/apply-diff.js +111 -143
- package/dist/utils/apply-snapshot.js +1 -2
- package/dist/utils/calculate-field-depth.js +6 -19
- package/dist/utils/construct-flow-tree.js +5 -12
- package/dist/utils/create-admin.js +1 -2
- package/dist/utils/deep-map-response.js +31 -35
- package/dist/utils/encrypt.js +2 -3
- package/dist/utils/fetch-user-count/fetch-access-lookup.js +5 -15
- package/dist/utils/fetch-user-count/get-user-count-query.js +4 -12
- package/dist/utils/filter-items.js +9 -14
- package/dist/utils/freeze-schema.js +3 -8
- package/dist/utils/generate-translations.js +87 -137
- package/dist/utils/get-accountability-for-role.js +12 -17
- package/dist/utils/get-accountability-for-token.js +25 -31
- package/dist/utils/get-address.js +2 -7
- package/dist/utils/get-allowed-log-levels.js +1 -3
- package/dist/utils/get-auth-providers.js +12 -14
- package/dist/utils/get-cache-headers.js +2 -4
- package/dist/utils/get-cache-key.js +16 -4
- package/dist/utils/get-collection-from-alias.js +1 -6
- package/dist/utils/get-column-path.js +10 -21
- package/dist/utils/get-config-from-env.js +6 -15
- package/dist/utils/get-default-index-name.js +2 -4
- package/dist/utils/get-default-value.js +5 -9
- package/dist/utils/get-field-relational-depth.js +2 -5
- package/dist/utils/get-graphql-query-and-variables.js +1 -2
- package/dist/utils/get-graphql-type.js +1 -3
- package/dist/utils/get-ip-from-req.js +6 -15
- package/dist/utils/get-local-type.js +5 -13
- package/dist/utils/get-milliseconds.js +1 -3
- package/dist/utils/get-module-default.js +1 -3
- package/dist/utils/get-schema.js +9 -21
- package/dist/utils/get-secret.js +2 -6
- package/dist/utils/get-snapshot-diff.js +15 -23
- package/dist/utils/get-snapshot.js +6 -17
- package/dist/utils/is-directus-jwt.js +1 -2
- package/dist/utils/is-field-allowed.js +1 -3
- package/dist/utils/job-queue.js +2 -7
- package/dist/utils/jwt.js +7 -13
- package/dist/utils/md.js +1 -2
- package/dist/utils/parse-filter-key.js +2 -4
- package/dist/utils/parse-numeric-string.js +5 -11
- package/dist/utils/permissions-cacheable.js +9 -22
- package/dist/utils/redact-object.js +27 -57
- package/dist/utils/reduce-schema.js +8 -25
- package/dist/utils/sanitize-query.js +46 -98
- package/dist/utils/sanitize-schema.js +2 -3
- package/dist/utils/schedule.js +2 -6
- package/dist/utils/should-clear-cache.js +2 -6
- package/dist/utils/should-skip-cache.js +3 -8
- package/dist/utils/split-fields.js +4 -12
- package/dist/utils/stall.js +1 -3
- package/dist/utils/store.js +2 -5
- package/dist/utils/transaction.js +29 -58
- package/dist/utils/transformations.js +28 -43
- package/dist/utils/translations-shared.js +4 -12
- package/dist/utils/url.js +3 -10
- package/dist/utils/user-name.js +4 -12
- package/dist/utils/validate-diff.js +10 -35
- package/dist/utils/validate-env.js +3 -5
- package/dist/utils/validate-keys.js +4 -10
- package/dist/utils/validate-query.js +67 -118
- package/dist/utils/validate-snapshot.js +3 -9
- package/dist/utils/validate-storage.js +12 -19
- package/dist/utils/validate-user-count-integrity.js +3 -9
- package/dist/utils/verify-session-jwt.js +2 -6
- package/dist/utils/versioning/handle-version.js +10 -29
- package/dist/utils/versioning/merge-version-data.js +1 -5
- package/dist/utils/versioning/split-recursive.js +6 -3
- package/dist/websocket/authenticate.js +7 -18
- package/dist/websocket/collab/calculate-cache-metadata.js +33 -51
- package/dist/websocket/collab/collab.js +49 -113
- package/dist/websocket/collab/filter-to-fields.js +2 -5
- package/dist/websocket/collab/messenger.js +48 -73
- package/dist/websocket/collab/payload-permissions.js +20 -51
- package/dist/websocket/collab/permissions-cache.js +17 -46
- package/dist/websocket/collab/room.js +57 -124
- package/dist/websocket/collab/verify-permissions.js +37 -48
- package/dist/websocket/controllers/base.js +34 -61
- package/dist/websocket/controllers/graphql.js +11 -18
- package/dist/websocket/controllers/index.js +3 -12
- package/dist/websocket/controllers/logs.js +3 -7
- package/dist/websocket/errors.js +2 -5
- package/dist/websocket/handlers/heartbeat.js +11 -19
- package/dist/websocket/handlers/index.js +5 -15
- package/dist/websocket/handlers/items.js +15 -26
- package/dist/websocket/handlers/logs.js +24 -41
- package/dist/websocket/handlers/subscribe.js +37 -66
- package/dist/websocket/utils/get-expires-at-for-token.js +1 -3
- package/dist/websocket/utils/items.js +10 -27
- package/dist/websocket/utils/message.js +6 -10
- package/package.json +23 -23
- package/dist/__utils__/items-utils.js +0 -32
- package/dist/__utils__/schemas.js +0 -297
- package/dist/__utils__/snapshots.js +0 -899
- package/dist/database/run-ast/lib/apply-query/mock.js +0 -9
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +0 -445
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/index.js +0 -176
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/system/policy.js +0 -54
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/any/any.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/any/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/argument/argument.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/argument/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/array/array.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/array/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.js +0 -37
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/awaited/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/bigint/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/boolean/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/type.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/value.js +0 -35
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/composite/composite.js +0 -42
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/composite/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/computed/computed.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/computed/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/const/const.js +0 -52
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/const/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/immutable.js +0 -32
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/type.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/date/date.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/date/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/discard/discard.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/discard/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/enum/enum.js +0 -23
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/enum/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/error/error.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/error/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.js +0 -11
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.js +0 -25
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.js +0 -267
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.js +0 -29
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/index.js +0 -7
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.js +0 -11
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract.js +0 -25
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/function/function.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/function/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/kind.js +0 -204
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/type.js +0 -293
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/value.js +0 -68
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.js +0 -8
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/helpers/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/index.js +0 -6
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.js +0 -27
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.js +0 -67
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.js +0 -102
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/integer/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/integer/integer.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.js +0 -23
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.js +0 -35
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.js +0 -8
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.js +0 -30
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.js +0 -54
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/iterator/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/index.js +0 -6
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.js +0 -52
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.js +0 -38
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/literal/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/literal/literal.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.js +0 -86
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/compute.js +0 -144
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/module.js +0 -44
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/never/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/never/never.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/not/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/not/not.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/null/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/null/null.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/number/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/number/number.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/object/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/object/object.js +0 -33
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.js +0 -27
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit.js +0 -65
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/optional.js +0 -29
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/parameters/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/partial.js +0 -62
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/patterns/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.js +0 -27
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick.js +0 -63
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/promise/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/promise/promise.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.js +0 -29
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/record/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/record/record.js +0 -92
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/recursive/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/ref/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/ref/ref.js +0 -19
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/regexp/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.js +0 -19
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/format.js +0 -30
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/type.js +0 -30
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/required.js +0 -60
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/rest/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/rest/rest.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/return-type/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.js +0 -1
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/schema.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/sets/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/sets/set.js +0 -42
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/static/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/static/static.js +0 -1
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/string/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/string/string.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbol/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbols/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.js +0 -28
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.js +0 -37
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.js +0 -9
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.js +0 -125
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.js +0 -55
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/transform/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/transform/transform.js +0 -51
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/tuple/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/index.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/javascript.js +0 -123
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/json.js +0 -263
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/type.js +0 -191
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/undefined/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-create.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.js +0 -33
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-type.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unknown/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/void/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/void/void.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/value/guard/guard.js +0 -140
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/value/guard/index.js +0 -3
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +0 -1714
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +0 -1287
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +0 -2151
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +0 -8
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +0 -2082
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +0 -192
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +0 -158
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +0 -1535
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +0 -155
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +0 -244
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +0 -621
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +0 -890
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +0 -3558
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js +0 -13
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js +0 -115
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js +0 -77
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js +0 -13
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js +0 -30
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +0 -398
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/MockClient.js +0 -79
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/MockConnection.js +0 -64
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/Tracker.js +0 -185
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/constants.js +0 -30
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/index.js +0 -37
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/utils.js +0 -17
- package/dist/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.js +0 -1486
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +0 -18
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +0 -19
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +0 -15
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +0 -39
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +0 -14
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +0 -141
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +0 -43
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +0 -138
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +0 -25
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +0 -22
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +0 -27
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +0 -6
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +0 -12
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +0 -18
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +0 -27
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +0 -10
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +0 -36
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +0 -1258
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.js +0 -21
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +0 -478
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +0 -84
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +0 -85
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +0 -15
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +0 -158
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -8
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js +0 -41
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -50
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js +0 -38
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -66
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -2986
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/index.js +0 -24
- package/dist/test-utils/cache.js +0 -64
- package/dist/test-utils/controllers.js +0 -101
- package/dist/test-utils/database.js +0 -54
- package/dist/test-utils/emitter.js +0 -38
- package/dist/test-utils/env.js +0 -77
- package/dist/test-utils/knex.js +0 -222
- package/dist/test-utils/schema.js +0 -35
- package/dist/test-utils/services/fields-service.js +0 -38
- package/dist/test-utils/services/files-service.js +0 -35
- package/dist/test-utils/services/folders-service.js +0 -34
- package/dist/test-utils/services/items-service.js +0 -52
- package/dist/test-utils/storage.js +0 -150
package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
DELETED
|
@@ -1,890 +0,0 @@
|
|
|
1
|
-
import { isPrimitive, notNullish } from "./helpers.js";
|
|
2
|
-
|
|
3
|
-
//#region ../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
|
|
4
|
-
const comma = ",".charCodeAt(0);
|
|
5
|
-
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
-
const intToChar = new Uint8Array(64);
|
|
7
|
-
const charToInt = new Uint8Array(128);
|
|
8
|
-
for (let i = 0; i < chars.length; i++) {
|
|
9
|
-
const c = chars.charCodeAt(i);
|
|
10
|
-
intToChar[i] = c;
|
|
11
|
-
charToInt[c] = i;
|
|
12
|
-
}
|
|
13
|
-
function decodeInteger(reader, relative) {
|
|
14
|
-
let value = 0;
|
|
15
|
-
let shift = 0;
|
|
16
|
-
let integer = 0;
|
|
17
|
-
do {
|
|
18
|
-
const c = reader.next();
|
|
19
|
-
integer = charToInt[c];
|
|
20
|
-
value |= (integer & 31) << shift;
|
|
21
|
-
shift += 5;
|
|
22
|
-
} while (integer & 32);
|
|
23
|
-
const shouldNegate = value & 1;
|
|
24
|
-
value >>>= 1;
|
|
25
|
-
if (shouldNegate) {
|
|
26
|
-
value = -2147483648 | -value;
|
|
27
|
-
}
|
|
28
|
-
return relative + value;
|
|
29
|
-
}
|
|
30
|
-
function hasMoreVlq(reader, max) {
|
|
31
|
-
if (reader.pos >= max) return false;
|
|
32
|
-
return reader.peek() !== comma;
|
|
33
|
-
}
|
|
34
|
-
var StringReader = class {
|
|
35
|
-
constructor(buffer) {
|
|
36
|
-
this.pos = 0;
|
|
37
|
-
this.buffer = buffer;
|
|
38
|
-
}
|
|
39
|
-
next() {
|
|
40
|
-
return this.buffer.charCodeAt(this.pos++);
|
|
41
|
-
}
|
|
42
|
-
peek() {
|
|
43
|
-
return this.buffer.charCodeAt(this.pos);
|
|
44
|
-
}
|
|
45
|
-
indexOf(char) {
|
|
46
|
-
const { buffer, pos } = this;
|
|
47
|
-
const idx = buffer.indexOf(char, pos);
|
|
48
|
-
return idx === -1 ? buffer.length : idx;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
function decode(mappings) {
|
|
52
|
-
const { length } = mappings;
|
|
53
|
-
const reader = new StringReader(mappings);
|
|
54
|
-
const decoded = [];
|
|
55
|
-
let genColumn = 0;
|
|
56
|
-
let sourcesIndex = 0;
|
|
57
|
-
let sourceLine = 0;
|
|
58
|
-
let sourceColumn = 0;
|
|
59
|
-
let namesIndex = 0;
|
|
60
|
-
do {
|
|
61
|
-
const semi = reader.indexOf(";");
|
|
62
|
-
const line = [];
|
|
63
|
-
let sorted = true;
|
|
64
|
-
let lastCol = 0;
|
|
65
|
-
genColumn = 0;
|
|
66
|
-
while (reader.pos < semi) {
|
|
67
|
-
let seg;
|
|
68
|
-
genColumn = decodeInteger(reader, genColumn);
|
|
69
|
-
if (genColumn < lastCol) sorted = false;
|
|
70
|
-
lastCol = genColumn;
|
|
71
|
-
if (hasMoreVlq(reader, semi)) {
|
|
72
|
-
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
73
|
-
sourceLine = decodeInteger(reader, sourceLine);
|
|
74
|
-
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
75
|
-
if (hasMoreVlq(reader, semi)) {
|
|
76
|
-
namesIndex = decodeInteger(reader, namesIndex);
|
|
77
|
-
seg = [
|
|
78
|
-
genColumn,
|
|
79
|
-
sourcesIndex,
|
|
80
|
-
sourceLine,
|
|
81
|
-
sourceColumn,
|
|
82
|
-
namesIndex
|
|
83
|
-
];
|
|
84
|
-
} else {
|
|
85
|
-
seg = [
|
|
86
|
-
genColumn,
|
|
87
|
-
sourcesIndex,
|
|
88
|
-
sourceLine,
|
|
89
|
-
sourceColumn
|
|
90
|
-
];
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
93
|
-
seg = [genColumn];
|
|
94
|
-
}
|
|
95
|
-
line.push(seg);
|
|
96
|
-
reader.pos++;
|
|
97
|
-
}
|
|
98
|
-
if (!sorted) sort(line);
|
|
99
|
-
decoded.push(line);
|
|
100
|
-
reader.pos = semi + 1;
|
|
101
|
-
} while (reader.pos <= length);
|
|
102
|
-
return decoded;
|
|
103
|
-
}
|
|
104
|
-
function sort(line) {
|
|
105
|
-
line.sort(sortComparator$1);
|
|
106
|
-
}
|
|
107
|
-
function sortComparator$1(a, b) {
|
|
108
|
-
return a[0] - b[0];
|
|
109
|
-
}
|
|
110
|
-
const schemeRegex = /^[\w+.-]+:\/\//;
|
|
111
|
-
/**
|
|
112
|
-
* Matches the parts of a URL:
|
|
113
|
-
* 1. Scheme, including ":", guaranteed.
|
|
114
|
-
* 2. User/password, including "@", optional.
|
|
115
|
-
* 3. Host, guaranteed.
|
|
116
|
-
* 4. Port, including ":", optional.
|
|
117
|
-
* 5. Path, including "/", optional.
|
|
118
|
-
* 6. Query, including "?", optional.
|
|
119
|
-
* 7. Hash, including "#", optional.
|
|
120
|
-
*/
|
|
121
|
-
const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
122
|
-
/**
|
|
123
|
-
* File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start
|
|
124
|
-
* with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).
|
|
125
|
-
*
|
|
126
|
-
* 1. Host, optional.
|
|
127
|
-
* 2. Path, which may include "/", guaranteed.
|
|
128
|
-
* 3. Query, including "?", optional.
|
|
129
|
-
* 4. Hash, including "#", optional.
|
|
130
|
-
*/
|
|
131
|
-
const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
132
|
-
var UrlType;
|
|
133
|
-
(function(UrlType$1) {
|
|
134
|
-
UrlType$1[UrlType$1["Empty"] = 1] = "Empty";
|
|
135
|
-
UrlType$1[UrlType$1["Hash"] = 2] = "Hash";
|
|
136
|
-
UrlType$1[UrlType$1["Query"] = 3] = "Query";
|
|
137
|
-
UrlType$1[UrlType$1["RelativePath"] = 4] = "RelativePath";
|
|
138
|
-
UrlType$1[UrlType$1["AbsolutePath"] = 5] = "AbsolutePath";
|
|
139
|
-
UrlType$1[UrlType$1["SchemeRelative"] = 6] = "SchemeRelative";
|
|
140
|
-
UrlType$1[UrlType$1["Absolute"] = 7] = "Absolute";
|
|
141
|
-
})(UrlType || (UrlType = {}));
|
|
142
|
-
function isAbsoluteUrl(input) {
|
|
143
|
-
return schemeRegex.test(input);
|
|
144
|
-
}
|
|
145
|
-
function isSchemeRelativeUrl(input) {
|
|
146
|
-
return input.startsWith("//");
|
|
147
|
-
}
|
|
148
|
-
function isAbsolutePath(input) {
|
|
149
|
-
return input.startsWith("/");
|
|
150
|
-
}
|
|
151
|
-
function isFileUrl(input) {
|
|
152
|
-
return input.startsWith("file:");
|
|
153
|
-
}
|
|
154
|
-
function isRelative(input) {
|
|
155
|
-
return /^[.?#]/.test(input);
|
|
156
|
-
}
|
|
157
|
-
function parseAbsoluteUrl(input) {
|
|
158
|
-
const match = urlRegex.exec(input);
|
|
159
|
-
return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || "");
|
|
160
|
-
}
|
|
161
|
-
function parseFileUrl(input) {
|
|
162
|
-
const match = fileRegex.exec(input);
|
|
163
|
-
const path = match[2];
|
|
164
|
-
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match[3] || "", match[4] || "");
|
|
165
|
-
}
|
|
166
|
-
function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
167
|
-
return {
|
|
168
|
-
scheme,
|
|
169
|
-
user,
|
|
170
|
-
host,
|
|
171
|
-
port,
|
|
172
|
-
path,
|
|
173
|
-
query,
|
|
174
|
-
hash,
|
|
175
|
-
type: UrlType.Absolute
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
function parseUrl(input) {
|
|
179
|
-
if (isSchemeRelativeUrl(input)) {
|
|
180
|
-
const url$1 = parseAbsoluteUrl("http:" + input);
|
|
181
|
-
url$1.scheme = "";
|
|
182
|
-
url$1.type = UrlType.SchemeRelative;
|
|
183
|
-
return url$1;
|
|
184
|
-
}
|
|
185
|
-
if (isAbsolutePath(input)) {
|
|
186
|
-
const url$1 = parseAbsoluteUrl("http://foo.com" + input);
|
|
187
|
-
url$1.scheme = "";
|
|
188
|
-
url$1.host = "";
|
|
189
|
-
url$1.type = UrlType.AbsolutePath;
|
|
190
|
-
return url$1;
|
|
191
|
-
}
|
|
192
|
-
if (isFileUrl(input)) return parseFileUrl(input);
|
|
193
|
-
if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);
|
|
194
|
-
const url = parseAbsoluteUrl("http://foo.com/" + input);
|
|
195
|
-
url.scheme = "";
|
|
196
|
-
url.host = "";
|
|
197
|
-
url.type = input ? input.startsWith("?") ? UrlType.Query : input.startsWith("#") ? UrlType.Hash : UrlType.RelativePath : UrlType.Empty;
|
|
198
|
-
return url;
|
|
199
|
-
}
|
|
200
|
-
function stripPathFilename(path) {
|
|
201
|
-
if (path.endsWith("/..")) return path;
|
|
202
|
-
const index = path.lastIndexOf("/");
|
|
203
|
-
return path.slice(0, index + 1);
|
|
204
|
-
}
|
|
205
|
-
function mergePaths(url, base) {
|
|
206
|
-
normalizePath(base, base.type);
|
|
207
|
-
if (url.path === "/") {
|
|
208
|
-
url.path = base.path;
|
|
209
|
-
} else {
|
|
210
|
-
url.path = stripPathFilename(base.path) + url.path;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* The path can have empty directories "//", unneeded parents "foo/..", or current directory
|
|
215
|
-
* "foo/.". We need to normalize to a standard representation.
|
|
216
|
-
*/
|
|
217
|
-
function normalizePath(url, type) {
|
|
218
|
-
const rel = type <= UrlType.RelativePath;
|
|
219
|
-
const pieces = url.path.split("/");
|
|
220
|
-
let pointer = 1;
|
|
221
|
-
let positive = 0;
|
|
222
|
-
let addTrailingSlash = false;
|
|
223
|
-
for (let i = 1; i < pieces.length; i++) {
|
|
224
|
-
const piece = pieces[i];
|
|
225
|
-
if (!piece) {
|
|
226
|
-
addTrailingSlash = true;
|
|
227
|
-
continue;
|
|
228
|
-
}
|
|
229
|
-
addTrailingSlash = false;
|
|
230
|
-
if (piece === ".") continue;
|
|
231
|
-
if (piece === "..") {
|
|
232
|
-
if (positive) {
|
|
233
|
-
addTrailingSlash = true;
|
|
234
|
-
positive--;
|
|
235
|
-
pointer--;
|
|
236
|
-
} else if (rel) {
|
|
237
|
-
pieces[pointer++] = piece;
|
|
238
|
-
}
|
|
239
|
-
continue;
|
|
240
|
-
}
|
|
241
|
-
pieces[pointer++] = piece;
|
|
242
|
-
positive++;
|
|
243
|
-
}
|
|
244
|
-
let path = "";
|
|
245
|
-
for (let i = 1; i < pointer; i++) {
|
|
246
|
-
path += "/" + pieces[i];
|
|
247
|
-
}
|
|
248
|
-
if (!path || addTrailingSlash && !path.endsWith("/..")) {
|
|
249
|
-
path += "/";
|
|
250
|
-
}
|
|
251
|
-
url.path = path;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Attempts to resolve `input` URL/path relative to `base`.
|
|
255
|
-
*/
|
|
256
|
-
function resolve$2(input, base) {
|
|
257
|
-
if (!input && !base) return "";
|
|
258
|
-
const url = parseUrl(input);
|
|
259
|
-
let inputType = url.type;
|
|
260
|
-
if (base && inputType !== UrlType.Absolute) {
|
|
261
|
-
const baseUrl = parseUrl(base);
|
|
262
|
-
const baseType = baseUrl.type;
|
|
263
|
-
switch (inputType) {
|
|
264
|
-
case UrlType.Empty: url.hash = baseUrl.hash;
|
|
265
|
-
case UrlType.Hash: url.query = baseUrl.query;
|
|
266
|
-
case UrlType.Query:
|
|
267
|
-
case UrlType.RelativePath: mergePaths(url, baseUrl);
|
|
268
|
-
case UrlType.AbsolutePath:
|
|
269
|
-
url.user = baseUrl.user;
|
|
270
|
-
url.host = baseUrl.host;
|
|
271
|
-
url.port = baseUrl.port;
|
|
272
|
-
case UrlType.SchemeRelative: url.scheme = baseUrl.scheme;
|
|
273
|
-
}
|
|
274
|
-
if (baseType > inputType) inputType = baseType;
|
|
275
|
-
}
|
|
276
|
-
normalizePath(url, inputType);
|
|
277
|
-
const queryHash = url.query + url.hash;
|
|
278
|
-
switch (inputType) {
|
|
279
|
-
case UrlType.Hash:
|
|
280
|
-
case UrlType.Query: return queryHash;
|
|
281
|
-
case UrlType.RelativePath: {
|
|
282
|
-
const path = url.path.slice(1);
|
|
283
|
-
if (!path) return queryHash || ".";
|
|
284
|
-
if (isRelative(base || input) && !isRelative(path)) {
|
|
285
|
-
return "./" + path + queryHash;
|
|
286
|
-
}
|
|
287
|
-
return path + queryHash;
|
|
288
|
-
}
|
|
289
|
-
case UrlType.AbsolutePath: return url.path + queryHash;
|
|
290
|
-
default: return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
function resolve$1(input, base) {
|
|
294
|
-
if (base && !base.endsWith("/")) base += "/";
|
|
295
|
-
return resolve$2(input, base);
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Removes everything after the last "/", but leaves the slash.
|
|
299
|
-
*/
|
|
300
|
-
function stripFilename(path) {
|
|
301
|
-
if (!path) return "";
|
|
302
|
-
const index = path.lastIndexOf("/");
|
|
303
|
-
return path.slice(0, index + 1);
|
|
304
|
-
}
|
|
305
|
-
const COLUMN = 0;
|
|
306
|
-
const SOURCES_INDEX = 1;
|
|
307
|
-
const SOURCE_LINE = 2;
|
|
308
|
-
const SOURCE_COLUMN = 3;
|
|
309
|
-
const NAMES_INDEX = 4;
|
|
310
|
-
const REV_GENERATED_LINE = 1;
|
|
311
|
-
const REV_GENERATED_COLUMN = 2;
|
|
312
|
-
function maybeSort(mappings, owned) {
|
|
313
|
-
const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
|
|
314
|
-
if (unsortedIndex === mappings.length) return mappings;
|
|
315
|
-
if (!owned) mappings = mappings.slice();
|
|
316
|
-
for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {
|
|
317
|
-
mappings[i] = sortSegments(mappings[i], owned);
|
|
318
|
-
}
|
|
319
|
-
return mappings;
|
|
320
|
-
}
|
|
321
|
-
function nextUnsortedSegmentLine(mappings, start) {
|
|
322
|
-
for (let i = start; i < mappings.length; i++) {
|
|
323
|
-
if (!isSorted(mappings[i])) return i;
|
|
324
|
-
}
|
|
325
|
-
return mappings.length;
|
|
326
|
-
}
|
|
327
|
-
function isSorted(line) {
|
|
328
|
-
for (let j = 1; j < line.length; j++) {
|
|
329
|
-
if (line[j][COLUMN] < line[j - 1][COLUMN]) {
|
|
330
|
-
return false;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
return true;
|
|
334
|
-
}
|
|
335
|
-
function sortSegments(line, owned) {
|
|
336
|
-
if (!owned) line = line.slice();
|
|
337
|
-
return line.sort(sortComparator);
|
|
338
|
-
}
|
|
339
|
-
function sortComparator(a, b) {
|
|
340
|
-
return a[COLUMN] - b[COLUMN];
|
|
341
|
-
}
|
|
342
|
-
let found = false;
|
|
343
|
-
/**
|
|
344
|
-
* A binary search implementation that returns the index if a match is found.
|
|
345
|
-
* If no match is found, then the left-index (the index associated with the item that comes just
|
|
346
|
-
* before the desired index) is returned. To maintain proper sort order, a splice would happen at
|
|
347
|
-
* the next index:
|
|
348
|
-
*
|
|
349
|
-
* ```js
|
|
350
|
-
* const array = [1, 3];
|
|
351
|
-
* const needle = 2;
|
|
352
|
-
* const index = binarySearch(array, needle, (item, needle) => item - needle);
|
|
353
|
-
*
|
|
354
|
-
* assert.equal(index, 0);
|
|
355
|
-
* array.splice(index + 1, 0, needle);
|
|
356
|
-
* assert.deepEqual(array, [1, 2, 3]);
|
|
357
|
-
* ```
|
|
358
|
-
*/
|
|
359
|
-
function binarySearch(haystack, needle, low, high) {
|
|
360
|
-
while (low <= high) {
|
|
361
|
-
const mid = low + (high - low >> 1);
|
|
362
|
-
const cmp = haystack[mid][COLUMN] - needle;
|
|
363
|
-
if (cmp === 0) {
|
|
364
|
-
found = true;
|
|
365
|
-
return mid;
|
|
366
|
-
}
|
|
367
|
-
if (cmp < 0) {
|
|
368
|
-
low = mid + 1;
|
|
369
|
-
} else {
|
|
370
|
-
high = mid - 1;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
found = false;
|
|
374
|
-
return low - 1;
|
|
375
|
-
}
|
|
376
|
-
function upperBound(haystack, needle, index) {
|
|
377
|
-
for (let i = index + 1; i < haystack.length; index = i++) {
|
|
378
|
-
if (haystack[i][COLUMN] !== needle) break;
|
|
379
|
-
}
|
|
380
|
-
return index;
|
|
381
|
-
}
|
|
382
|
-
function lowerBound(haystack, needle, index) {
|
|
383
|
-
for (let i = index - 1; i >= 0; index = i--) {
|
|
384
|
-
if (haystack[i][COLUMN] !== needle) break;
|
|
385
|
-
}
|
|
386
|
-
return index;
|
|
387
|
-
}
|
|
388
|
-
function memoizedState() {
|
|
389
|
-
return {
|
|
390
|
-
lastKey: -1,
|
|
391
|
-
lastNeedle: -1,
|
|
392
|
-
lastIndex: -1
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* This overly complicated beast is just to record the last tested line/column and the resulting
|
|
397
|
-
* index, allowing us to skip a few tests if mappings are monotonically increasing.
|
|
398
|
-
*/
|
|
399
|
-
function memoizedBinarySearch(haystack, needle, state, key) {
|
|
400
|
-
const { lastKey, lastNeedle, lastIndex } = state;
|
|
401
|
-
let low = 0;
|
|
402
|
-
let high = haystack.length - 1;
|
|
403
|
-
if (key === lastKey) {
|
|
404
|
-
if (needle === lastNeedle) {
|
|
405
|
-
found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
|
|
406
|
-
return lastIndex;
|
|
407
|
-
}
|
|
408
|
-
if (needle >= lastNeedle) {
|
|
409
|
-
low = lastIndex === -1 ? 0 : lastIndex;
|
|
410
|
-
} else {
|
|
411
|
-
high = lastIndex;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
state.lastKey = key;
|
|
415
|
-
state.lastNeedle = needle;
|
|
416
|
-
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
417
|
-
}
|
|
418
|
-
function buildBySources(decoded, memos) {
|
|
419
|
-
const sources = memos.map(buildNullArray);
|
|
420
|
-
for (let i = 0; i < decoded.length; i++) {
|
|
421
|
-
const line = decoded[i];
|
|
422
|
-
for (let j = 0; j < line.length; j++) {
|
|
423
|
-
const seg = line[j];
|
|
424
|
-
if (seg.length === 1) continue;
|
|
425
|
-
const sourceIndex = seg[SOURCES_INDEX];
|
|
426
|
-
const sourceLine = seg[SOURCE_LINE];
|
|
427
|
-
const sourceColumn = seg[SOURCE_COLUMN];
|
|
428
|
-
const originalSource = sources[sourceIndex];
|
|
429
|
-
const originalLine = originalSource[sourceLine] || (originalSource[sourceLine] = []);
|
|
430
|
-
const memo = memos[sourceIndex];
|
|
431
|
-
let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));
|
|
432
|
-
memo.lastIndex = ++index;
|
|
433
|
-
insert(originalLine, index, [
|
|
434
|
-
sourceColumn,
|
|
435
|
-
i,
|
|
436
|
-
seg[COLUMN]
|
|
437
|
-
]);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
return sources;
|
|
441
|
-
}
|
|
442
|
-
function insert(array, index, value) {
|
|
443
|
-
for (let i = array.length; i > index; i--) {
|
|
444
|
-
array[i] = array[i - 1];
|
|
445
|
-
}
|
|
446
|
-
array[index] = value;
|
|
447
|
-
}
|
|
448
|
-
function buildNullArray() {
|
|
449
|
-
return { __proto__: null };
|
|
450
|
-
}
|
|
451
|
-
const LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
452
|
-
const COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
453
|
-
const LEAST_UPPER_BOUND = -1;
|
|
454
|
-
const GREATEST_LOWER_BOUND = 1;
|
|
455
|
-
var TraceMap = class {
|
|
456
|
-
constructor(map, mapUrl) {
|
|
457
|
-
const isString = typeof map === "string";
|
|
458
|
-
if (!isString && map._decodedMemo) return map;
|
|
459
|
-
const parsed = isString ? JSON.parse(map) : map;
|
|
460
|
-
const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
461
|
-
this.version = version;
|
|
462
|
-
this.file = file;
|
|
463
|
-
this.names = names || [];
|
|
464
|
-
this.sourceRoot = sourceRoot;
|
|
465
|
-
this.sources = sources;
|
|
466
|
-
this.sourcesContent = sourcesContent;
|
|
467
|
-
this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;
|
|
468
|
-
const from = resolve$1(sourceRoot || "", stripFilename(mapUrl));
|
|
469
|
-
this.resolvedSources = sources.map((s) => resolve$1(s || "", from));
|
|
470
|
-
const { mappings } = parsed;
|
|
471
|
-
if (typeof mappings === "string") {
|
|
472
|
-
this._encoded = mappings;
|
|
473
|
-
this._decoded = undefined;
|
|
474
|
-
} else {
|
|
475
|
-
this._encoded = undefined;
|
|
476
|
-
this._decoded = maybeSort(mappings, isString);
|
|
477
|
-
}
|
|
478
|
-
this._decodedMemo = memoizedState();
|
|
479
|
-
this._bySources = undefined;
|
|
480
|
-
this._bySourceMemos = undefined;
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* Typescript doesn't allow friend access to private fields, so this just casts the map into a type
|
|
485
|
-
* with public access modifiers.
|
|
486
|
-
*/
|
|
487
|
-
function cast(map) {
|
|
488
|
-
return map;
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
|
|
492
|
-
*/
|
|
493
|
-
function decodedMappings(map) {
|
|
494
|
-
var _a;
|
|
495
|
-
return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* A higher-level API to find the source/line/column associated with a generated line/column
|
|
499
|
-
* (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
|
|
500
|
-
* `source-map` library.
|
|
501
|
-
*/
|
|
502
|
-
function originalPositionFor(map, needle) {
|
|
503
|
-
let { line, column, bias } = needle;
|
|
504
|
-
line--;
|
|
505
|
-
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
506
|
-
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
507
|
-
const decoded = decodedMappings(map);
|
|
508
|
-
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
509
|
-
const segments = decoded[line];
|
|
510
|
-
const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
511
|
-
if (index === -1) return OMapping(null, null, null, null);
|
|
512
|
-
const segment = segments[index];
|
|
513
|
-
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
514
|
-
const { names, resolvedSources } = map;
|
|
515
|
-
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Finds the generated line/column position of the provided source/line/column source position.
|
|
519
|
-
*/
|
|
520
|
-
function generatedPositionFor(map, needle) {
|
|
521
|
-
const { source, line, column, bias } = needle;
|
|
522
|
-
return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* Iterates each mapping in generated position order.
|
|
526
|
-
*/
|
|
527
|
-
function eachMapping(map, cb) {
|
|
528
|
-
const decoded = decodedMappings(map);
|
|
529
|
-
const { names, resolvedSources } = map;
|
|
530
|
-
for (let i = 0; i < decoded.length; i++) {
|
|
531
|
-
const line = decoded[i];
|
|
532
|
-
for (let j = 0; j < line.length; j++) {
|
|
533
|
-
const seg = line[j];
|
|
534
|
-
const generatedLine = i + 1;
|
|
535
|
-
const generatedColumn = seg[0];
|
|
536
|
-
let source = null;
|
|
537
|
-
let originalLine = null;
|
|
538
|
-
let originalColumn = null;
|
|
539
|
-
let name = null;
|
|
540
|
-
if (seg.length !== 1) {
|
|
541
|
-
source = resolvedSources[seg[1]];
|
|
542
|
-
originalLine = seg[2] + 1;
|
|
543
|
-
originalColumn = seg[3];
|
|
544
|
-
}
|
|
545
|
-
if (seg.length === 5) name = names[seg[4]];
|
|
546
|
-
cb({
|
|
547
|
-
generatedLine,
|
|
548
|
-
generatedColumn,
|
|
549
|
-
source,
|
|
550
|
-
originalLine,
|
|
551
|
-
originalColumn,
|
|
552
|
-
name
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
function OMapping(source, line, column, name) {
|
|
558
|
-
return {
|
|
559
|
-
source,
|
|
560
|
-
line,
|
|
561
|
-
column,
|
|
562
|
-
name
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
function GMapping(line, column) {
|
|
566
|
-
return {
|
|
567
|
-
line,
|
|
568
|
-
column
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
572
|
-
let index = memoizedBinarySearch(segments, column, memo, line);
|
|
573
|
-
if (found) {
|
|
574
|
-
index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
|
|
575
|
-
} else if (bias === LEAST_UPPER_BOUND) index++;
|
|
576
|
-
if (index === -1 || index === segments.length) return -1;
|
|
577
|
-
return index;
|
|
578
|
-
}
|
|
579
|
-
function generatedPosition(map, source, line, column, bias, all) {
|
|
580
|
-
var _a;
|
|
581
|
-
line--;
|
|
582
|
-
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
583
|
-
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
584
|
-
const { sources, resolvedSources } = map;
|
|
585
|
-
let sourceIndex = sources.indexOf(source);
|
|
586
|
-
if (sourceIndex === -1) sourceIndex = resolvedSources.indexOf(source);
|
|
587
|
-
if (sourceIndex === -1) return all ? [] : GMapping(null, null);
|
|
588
|
-
const generated = (_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), cast(map)._bySourceMemos = sources.map(memoizedState)));
|
|
589
|
-
const segments = generated[sourceIndex][line];
|
|
590
|
-
if (segments == null) return all ? [] : GMapping(null, null);
|
|
591
|
-
const memo = cast(map)._bySourceMemos[sourceIndex];
|
|
592
|
-
const index = traceSegmentInternal(segments, memo, line, column, bias);
|
|
593
|
-
if (index === -1) return GMapping(null, null);
|
|
594
|
-
const segment = segments[index];
|
|
595
|
-
return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);
|
|
596
|
-
}
|
|
597
|
-
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
598
|
-
function normalizeWindowsPath(input = "") {
|
|
599
|
-
if (!input) {
|
|
600
|
-
return input;
|
|
601
|
-
}
|
|
602
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
603
|
-
}
|
|
604
|
-
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
605
|
-
function cwd() {
|
|
606
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
607
|
-
return process.cwd().replace(/\\/g, "/");
|
|
608
|
-
}
|
|
609
|
-
return "/";
|
|
610
|
-
}
|
|
611
|
-
const resolve = function(...arguments_) {
|
|
612
|
-
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
613
|
-
let resolvedPath = "";
|
|
614
|
-
let resolvedAbsolute = false;
|
|
615
|
-
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
616
|
-
const path = index >= 0 ? arguments_[index] : cwd();
|
|
617
|
-
if (!path || path.length === 0) {
|
|
618
|
-
continue;
|
|
619
|
-
}
|
|
620
|
-
resolvedPath = `${path}/${resolvedPath}`;
|
|
621
|
-
resolvedAbsolute = isAbsolute(path);
|
|
622
|
-
}
|
|
623
|
-
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
624
|
-
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
625
|
-
return `/${resolvedPath}`;
|
|
626
|
-
}
|
|
627
|
-
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
628
|
-
};
|
|
629
|
-
function normalizeString(path, allowAboveRoot) {
|
|
630
|
-
let res = "";
|
|
631
|
-
let lastSegmentLength = 0;
|
|
632
|
-
let lastSlash = -1;
|
|
633
|
-
let dots = 0;
|
|
634
|
-
let char = null;
|
|
635
|
-
for (let index = 0; index <= path.length; ++index) {
|
|
636
|
-
if (index < path.length) {
|
|
637
|
-
char = path[index];
|
|
638
|
-
} else if (char === "/") {
|
|
639
|
-
break;
|
|
640
|
-
} else {
|
|
641
|
-
char = "/";
|
|
642
|
-
}
|
|
643
|
-
if (char === "/") {
|
|
644
|
-
if (lastSlash === index - 1 || dots === 1);
|
|
645
|
-
else if (dots === 2) {
|
|
646
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
647
|
-
if (res.length > 2) {
|
|
648
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
649
|
-
if (lastSlashIndex === -1) {
|
|
650
|
-
res = "";
|
|
651
|
-
lastSegmentLength = 0;
|
|
652
|
-
} else {
|
|
653
|
-
res = res.slice(0, lastSlashIndex);
|
|
654
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
655
|
-
}
|
|
656
|
-
lastSlash = index;
|
|
657
|
-
dots = 0;
|
|
658
|
-
continue;
|
|
659
|
-
} else if (res.length > 0) {
|
|
660
|
-
res = "";
|
|
661
|
-
lastSegmentLength = 0;
|
|
662
|
-
lastSlash = index;
|
|
663
|
-
dots = 0;
|
|
664
|
-
continue;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
if (allowAboveRoot) {
|
|
668
|
-
res += res.length > 0 ? "/.." : "..";
|
|
669
|
-
lastSegmentLength = 2;
|
|
670
|
-
}
|
|
671
|
-
} else {
|
|
672
|
-
if (res.length > 0) {
|
|
673
|
-
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
674
|
-
} else {
|
|
675
|
-
res = path.slice(lastSlash + 1, index);
|
|
676
|
-
}
|
|
677
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
678
|
-
}
|
|
679
|
-
lastSlash = index;
|
|
680
|
-
dots = 0;
|
|
681
|
-
} else if (char === "." && dots !== -1) {
|
|
682
|
-
++dots;
|
|
683
|
-
} else {
|
|
684
|
-
dots = -1;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
return res;
|
|
688
|
-
}
|
|
689
|
-
const isAbsolute = function(p) {
|
|
690
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
691
|
-
};
|
|
692
|
-
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
693
|
-
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
|
|
694
|
-
const stackIgnorePatterns = [
|
|
695
|
-
"node:internal",
|
|
696
|
-
/\/packages\/\w+\/dist\//,
|
|
697
|
-
/\/@vitest\/\w+\/dist\//,
|
|
698
|
-
"/vitest/dist/",
|
|
699
|
-
"/vitest/src/",
|
|
700
|
-
"/vite-node/dist/",
|
|
701
|
-
"/vite-node/src/",
|
|
702
|
-
"/node_modules/chai/",
|
|
703
|
-
"/node_modules/tinypool/",
|
|
704
|
-
"/node_modules/tinyspy/",
|
|
705
|
-
"/deps/chunk-",
|
|
706
|
-
"/deps/@vitest",
|
|
707
|
-
"/deps/loupe",
|
|
708
|
-
"/deps/chai",
|
|
709
|
-
/node:\w+/,
|
|
710
|
-
/__vitest_test__/,
|
|
711
|
-
/__vitest_browser__/,
|
|
712
|
-
/\/deps\/vitest_/
|
|
713
|
-
];
|
|
714
|
-
function extractLocation(urlLike) {
|
|
715
|
-
if (!urlLike.includes(":")) {
|
|
716
|
-
return [urlLike];
|
|
717
|
-
}
|
|
718
|
-
const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
|
|
719
|
-
const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
720
|
-
if (!parts) {
|
|
721
|
-
return [urlLike];
|
|
722
|
-
}
|
|
723
|
-
let url = parts[1];
|
|
724
|
-
if (url.startsWith("async ")) {
|
|
725
|
-
url = url.slice(6);
|
|
726
|
-
}
|
|
727
|
-
if (url.startsWith("http:") || url.startsWith("https:")) {
|
|
728
|
-
const urlObj = new URL(url);
|
|
729
|
-
urlObj.searchParams.delete("import");
|
|
730
|
-
urlObj.searchParams.delete("browserv");
|
|
731
|
-
url = urlObj.pathname + urlObj.hash + urlObj.search;
|
|
732
|
-
}
|
|
733
|
-
if (url.startsWith("/@fs/")) {
|
|
734
|
-
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
|
735
|
-
url = url.slice(isWindows ? 5 : 4);
|
|
736
|
-
}
|
|
737
|
-
return [
|
|
738
|
-
url,
|
|
739
|
-
parts[2] || undefined,
|
|
740
|
-
parts[3] || undefined
|
|
741
|
-
];
|
|
742
|
-
}
|
|
743
|
-
function parseSingleFFOrSafariStack(raw) {
|
|
744
|
-
let line = raw.trim();
|
|
745
|
-
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {
|
|
746
|
-
return null;
|
|
747
|
-
}
|
|
748
|
-
if (line.includes(" > eval")) {
|
|
749
|
-
line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
|
|
750
|
-
}
|
|
751
|
-
if (!line.includes("@") && !line.includes(":")) {
|
|
752
|
-
return null;
|
|
753
|
-
}
|
|
754
|
-
const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/;
|
|
755
|
-
const matches = line.match(functionNameRegex);
|
|
756
|
-
const functionName = matches && matches[1] ? matches[1] : undefined;
|
|
757
|
-
const [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, ""));
|
|
758
|
-
if (!url || !lineNumber || !columnNumber) {
|
|
759
|
-
return null;
|
|
760
|
-
}
|
|
761
|
-
return {
|
|
762
|
-
file: url,
|
|
763
|
-
method: functionName || "",
|
|
764
|
-
line: Number.parseInt(lineNumber),
|
|
765
|
-
column: Number.parseInt(columnNumber)
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
function parseSingleStack(raw) {
|
|
769
|
-
const line = raw.trim();
|
|
770
|
-
if (!CHROME_IE_STACK_REGEXP.test(line)) {
|
|
771
|
-
return parseSingleFFOrSafariStack(line);
|
|
772
|
-
}
|
|
773
|
-
return parseSingleV8Stack(line);
|
|
774
|
-
}
|
|
775
|
-
function parseSingleV8Stack(raw) {
|
|
776
|
-
let line = raw.trim();
|
|
777
|
-
if (!CHROME_IE_STACK_REGEXP.test(line)) {
|
|
778
|
-
return null;
|
|
779
|
-
}
|
|
780
|
-
if (line.includes("(eval ")) {
|
|
781
|
-
line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
|
|
782
|
-
}
|
|
783
|
-
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
|
|
784
|
-
const location = sanitizedLine.match(/ (\(.+\)$)/);
|
|
785
|
-
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
|
|
786
|
-
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
|
|
787
|
-
let method = location && sanitizedLine || "";
|
|
788
|
-
let file = url && ["eval", "<anonymous>"].includes(url) ? undefined : url;
|
|
789
|
-
if (!file || !lineNumber || !columnNumber) {
|
|
790
|
-
return null;
|
|
791
|
-
}
|
|
792
|
-
if (method.startsWith("async ")) {
|
|
793
|
-
method = method.slice(6);
|
|
794
|
-
}
|
|
795
|
-
if (file.startsWith("file://")) {
|
|
796
|
-
file = file.slice(7);
|
|
797
|
-
}
|
|
798
|
-
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
799
|
-
if (method) {
|
|
800
|
-
method = method.replace(/__vite_ssr_import_\d+__\./g, "");
|
|
801
|
-
}
|
|
802
|
-
return {
|
|
803
|
-
method,
|
|
804
|
-
file,
|
|
805
|
-
line: Number.parseInt(lineNumber),
|
|
806
|
-
column: Number.parseInt(columnNumber)
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
function createStackString(stacks) {
|
|
810
|
-
return stacks.map((stack) => {
|
|
811
|
-
const line = `${stack.file}:${stack.line}:${stack.column}`;
|
|
812
|
-
if (stack.method) {
|
|
813
|
-
return ` at ${stack.method}(${line})`;
|
|
814
|
-
}
|
|
815
|
-
return ` at ${line}`;
|
|
816
|
-
}).join("\n");
|
|
817
|
-
}
|
|
818
|
-
function parseStacktrace(stack, options = {}) {
|
|
819
|
-
const { ignoreStackEntries = stackIgnorePatterns } = options;
|
|
820
|
-
const stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
|
|
821
|
-
return stacks.map((stack$1) => {
|
|
822
|
-
var _options$getSourceMap;
|
|
823
|
-
if (options.getUrlId) {
|
|
824
|
-
stack$1.file = options.getUrlId(stack$1.file);
|
|
825
|
-
}
|
|
826
|
-
const map = (_options$getSourceMap = options.getSourceMap) === null || _options$getSourceMap === void 0 ? void 0 : _options$getSourceMap.call(options, stack$1.file);
|
|
827
|
-
if (!map || typeof map !== "object" || !map.version) {
|
|
828
|
-
return shouldFilter(ignoreStackEntries, stack$1.file) ? null : stack$1;
|
|
829
|
-
}
|
|
830
|
-
const traceMap = new TraceMap(map);
|
|
831
|
-
const { line, column, source, name } = originalPositionFor(traceMap, stack$1);
|
|
832
|
-
let file = stack$1.file;
|
|
833
|
-
if (source) {
|
|
834
|
-
const fileUrl = stack$1.file.startsWith("file://") ? stack$1.file : `file://${stack$1.file}`;
|
|
835
|
-
const sourceRootUrl = map.sourceRoot ? new URL(map.sourceRoot, fileUrl) : fileUrl;
|
|
836
|
-
file = new URL(source, sourceRootUrl).pathname;
|
|
837
|
-
if (file.match(/\/\w:\//)) {
|
|
838
|
-
file = file.slice(1);
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
if (shouldFilter(ignoreStackEntries, file)) {
|
|
842
|
-
return null;
|
|
843
|
-
}
|
|
844
|
-
if (line != null && column != null) {
|
|
845
|
-
return {
|
|
846
|
-
line,
|
|
847
|
-
column,
|
|
848
|
-
file,
|
|
849
|
-
method: name || stack$1.method
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
return stack$1;
|
|
853
|
-
}).filter((s) => s != null);
|
|
854
|
-
}
|
|
855
|
-
function shouldFilter(ignoreStackEntries, file) {
|
|
856
|
-
return ignoreStackEntries.some((p) => file.match(p));
|
|
857
|
-
}
|
|
858
|
-
function parseFFOrSafariStackTrace(stack) {
|
|
859
|
-
return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);
|
|
860
|
-
}
|
|
861
|
-
function parseV8Stacktrace(stack) {
|
|
862
|
-
return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish);
|
|
863
|
-
}
|
|
864
|
-
function parseErrorStacktrace(e, options = {}) {
|
|
865
|
-
if (!e || isPrimitive(e)) {
|
|
866
|
-
return [];
|
|
867
|
-
}
|
|
868
|
-
if (e.stacks) {
|
|
869
|
-
return e.stacks;
|
|
870
|
-
}
|
|
871
|
-
const stackStr = e.stack || "";
|
|
872
|
-
let stackFrames = typeof stackStr === "string" ? parseStacktrace(stackStr, options) : [];
|
|
873
|
-
if (!stackFrames.length) {
|
|
874
|
-
const e_ = e;
|
|
875
|
-
if (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) {
|
|
876
|
-
stackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);
|
|
877
|
-
}
|
|
878
|
-
if (e_.sourceURL != null && e_.line != null && e_._column != null) {
|
|
879
|
-
stackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
if (options.frameFilter) {
|
|
883
|
-
stackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);
|
|
884
|
-
}
|
|
885
|
-
e.stacks = stackFrames;
|
|
886
|
-
return stackFrames;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
//#endregion
|
|
890
|
-
export { parseSingleStack };
|