@redocly/cli 2.33.1 → 2.34.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/LICENSE +7 -0
- package/THIRD_PARTY_NOTICES +767 -0
- package/lib/chunks/2ULY6UWW.js +13374 -0
- package/lib/chunks/4DNBVE5S.js +23 -0
- package/lib/chunks/5ILQMFXK.js +59 -0
- package/lib/chunks/7GOGGHM5.js +92239 -0
- package/lib/chunks/A6JSOHCP.js +41 -0
- package/lib/chunks/AIT3U3JT.js +22 -0
- package/lib/chunks/EIHBO33S.js +1133 -0
- package/lib/chunks/FDUPOI4C.js +19036 -0
- package/lib/chunks/FO6BDVGE.js +25 -0
- package/lib/chunks/FP2VGYMF.js +90 -0
- package/lib/chunks/GRMVFQAA.js +17782 -0
- package/lib/chunks/ICAVAH7N.js +387 -0
- package/lib/chunks/OEYVENNB.js +37533 -0
- package/lib/chunks/TS33ZDKX.js +35 -0
- package/lib/chunks/VUDTNFRL.js +42 -0
- package/lib/chunks/VXIQEZPR.js +2564 -0
- package/lib/chunks/W7G5WVPB.js +44 -0
- package/lib/chunks/XHPY6UJF.js +1638 -0
- package/lib/chunks/Y6DTFCLS.js +15 -0
- package/lib/chunks/YA5P3RI2.js +13 -0
- package/lib/chunks/ZIYSHX6D.js +3617 -0
- package/lib/index.js +13606 -620
- package/package.json +13 -53
- package/lib/auth/device-flow.d.ts +0 -24
- package/lib/auth/device-flow.d.ts.map +0 -1
- package/lib/auth/device-flow.js +0 -140
- package/lib/auth/device-flow.js.map +0 -1
- package/lib/auth/oauth-client.d.ts +0 -18
- package/lib/auth/oauth-client.d.ts.map +0 -1
- package/lib/auth/oauth-client.js +0 -117
- package/lib/auth/oauth-client.js.map +0 -1
- package/lib/commands/auth.d.ts +0 -12
- package/lib/commands/auth.d.ts.map +0 -1
- package/lib/commands/auth.js +0 -34
- package/lib/commands/auth.js.map +0 -1
- package/lib/commands/build-docs/index.d.ts +0 -4
- package/lib/commands/build-docs/index.d.ts.map +0 -1
- package/lib/commands/build-docs/index.js +0 -38
- package/lib/commands/build-docs/index.js.map +0 -1
- package/lib/commands/build-docs/template.hbs +0 -23
- package/lib/commands/build-docs/types.d.ts +0 -24
- package/lib/commands/build-docs/types.d.ts.map +0 -1
- package/lib/commands/build-docs/types.js +0 -2
- package/lib/commands/build-docs/types.js.map +0 -1
- package/lib/commands/build-docs/utils.d.ts +0 -8
- package/lib/commands/build-docs/utils.d.ts.map +0 -1
- package/lib/commands/build-docs/utils.js +0 -84
- package/lib/commands/build-docs/utils.js.map +0 -1
- package/lib/commands/bundle.d.ts +0 -20
- package/lib/commands/bundle.d.ts.map +0 -1
- package/lib/commands/bundle.js +0 -93
- package/lib/commands/bundle.js.map +0 -1
- package/lib/commands/eject.d.ts +0 -10
- package/lib/commands/eject.d.ts.map +0 -1
- package/lib/commands/eject.js +0 -26
- package/lib/commands/eject.js.map +0 -1
- package/lib/commands/generate-arazzo.d.ts +0 -8
- package/lib/commands/generate-arazzo.d.ts.map +0 -1
- package/lib/commands/generate-arazzo.js +0 -25
- package/lib/commands/generate-arazzo.js.map +0 -1
- package/lib/commands/join/index.d.ts +0 -4
- package/lib/commands/join/index.d.ts.map +0 -1
- package/lib/commands/join/index.js +0 -141
- package/lib/commands/join/index.js.map +0 -1
- package/lib/commands/join/types.d.ts +0 -22
- package/lib/commands/join/types.d.ts.map +0 -1
- package/lib/commands/join/types.js +0 -2
- package/lib/commands/join/types.js.map +0 -1
- package/lib/commands/join/utils/add-components-prefix.d.ts +0 -2
- package/lib/commands/join/utils/add-components-prefix.d.ts.map +0 -1
- package/lib/commands/join/utils/add-components-prefix.js +0 -9
- package/lib/commands/join/utils/add-components-prefix.js.map +0 -1
- package/lib/commands/join/utils/add-info-section.d.ts +0 -2
- package/lib/commands/join/utils/add-info-section.d.ts.map +0 -1
- package/lib/commands/join/utils/add-info-section.js +0 -19
- package/lib/commands/join/utils/add-info-section.js.map +0 -1
- package/lib/commands/join/utils/add-prefix.d.ts +0 -2
- package/lib/commands/join/utils/add-prefix.d.ts.map +0 -1
- package/lib/commands/join/utils/add-prefix.js +0 -4
- package/lib/commands/join/utils/add-prefix.js.map +0 -1
- package/lib/commands/join/utils/add-security-prefix.d.ts +0 -2
- package/lib/commands/join/utils/add-security-prefix.d.ts.map +0 -1
- package/lib/commands/join/utils/add-security-prefix.js +0 -12
- package/lib/commands/join/utils/add-security-prefix.js.map +0 -1
- package/lib/commands/join/utils/collect-components.d.ts +0 -7
- package/lib/commands/join/utils/collect-components.d.ts.map +0 -1
- package/lib/commands/join/utils/collect-components.js +0 -26
- package/lib/commands/join/utils/collect-components.js.map +0 -1
- package/lib/commands/join/utils/collect-external-docs.d.ts +0 -7
- package/lib/commands/join/utils/collect-external-docs.d.ts.map +0 -1
- package/lib/commands/join/utils/collect-external-docs.js +0 -15
- package/lib/commands/join/utils/collect-external-docs.js.map +0 -1
- package/lib/commands/join/utils/collect-paths.d.ts +0 -9
- package/lib/commands/join/utils/collect-paths.d.ts.map +0 -1
- package/lib/commands/join/utils/collect-paths.js +0 -172
- package/lib/commands/join/utils/collect-paths.js.map +0 -1
- package/lib/commands/join/utils/collect-webhooks.d.ts +0 -8
- package/lib/commands/join/utils/collect-webhooks.d.ts.map +0 -1
- package/lib/commands/join/utils/collect-webhooks.js +0 -46
- package/lib/commands/join/utils/collect-webhooks.js.map +0 -1
- package/lib/commands/join/utils/duplicate-tag-description-warning.d.ts +0 -2
- package/lib/commands/join/utils/duplicate-tag-description-warning.d.ts.map +0 -1
- package/lib/commands/join/utils/duplicate-tag-description-warning.js +0 -8
- package/lib/commands/join/utils/duplicate-tag-description-warning.js.map +0 -1
- package/lib/commands/join/utils/filter-conflicts.d.ts +0 -2
- package/lib/commands/join/utils/filter-conflicts.d.ts.map +0 -1
- package/lib/commands/join/utils/filter-conflicts.js +0 -4
- package/lib/commands/join/utils/filter-conflicts.js.map +0 -1
- package/lib/commands/join/utils/format-tags.d.ts +0 -4
- package/lib/commands/join/utils/format-tags.d.ts.map +0 -1
- package/lib/commands/join/utils/format-tags.js +0 -4
- package/lib/commands/join/utils/format-tags.js.map +0 -1
- package/lib/commands/join/utils/get-api-filename.d.ts +0 -2
- package/lib/commands/join/utils/get-api-filename.d.ts.map +0 -1
- package/lib/commands/join/utils/get-api-filename.js +0 -5
- package/lib/commands/join/utils/get-api-filename.js.map +0 -1
- package/lib/commands/join/utils/get-info-prefix.d.ts +0 -2
- package/lib/commands/join/utils/get-info-prefix.d.ts.map +0 -1
- package/lib/commands/join/utils/get-info-prefix.js +0 -17
- package/lib/commands/join/utils/get-info-prefix.js.map +0 -1
- package/lib/commands/join/utils/index.d.ts +0 -19
- package/lib/commands/join/utils/index.d.ts.map +0 -1
- package/lib/commands/join/utils/index.js +0 -19
- package/lib/commands/join/utils/index.js.map +0 -1
- package/lib/commands/join/utils/iterate-potential-conflicts.d.ts +0 -5
- package/lib/commands/join/utils/iterate-potential-conflicts.d.ts.map +0 -1
- package/lib/commands/join/utils/iterate-potential-conflicts.js +0 -53
- package/lib/commands/join/utils/iterate-potential-conflicts.js.map +0 -1
- package/lib/commands/join/utils/populate-tags.d.ts +0 -7
- package/lib/commands/join/utils/populate-tags.d.ts.map +0 -1
- package/lib/commands/join/utils/populate-tags.js +0 -77
- package/lib/commands/join/utils/populate-tags.js.map +0 -1
- package/lib/commands/join/utils/prefix-tag-suggestion.d.ts +0 -2
- package/lib/commands/join/utils/prefix-tag-suggestion.d.ts.map +0 -1
- package/lib/commands/join/utils/prefix-tag-suggestion.js +0 -6
- package/lib/commands/join/utils/prefix-tag-suggestion.js.map +0 -1
- package/lib/commands/join/utils/replace-$-refs.d.ts +0 -2
- package/lib/commands/join/utils/replace-$-refs.d.ts.map +0 -1
- package/lib/commands/join/utils/replace-$-refs.js +0 -29
- package/lib/commands/join/utils/replace-$-refs.js.map +0 -1
- package/lib/commands/join/utils/show-conflicts.d.ts +0 -2
- package/lib/commands/join/utils/show-conflicts.d.ts.map +0 -1
- package/lib/commands/join/utils/show-conflicts.js +0 -8
- package/lib/commands/join/utils/show-conflicts.js.map +0 -1
- package/lib/commands/lint.d.ts +0 -15
- package/lib/commands/lint.d.ts.map +0 -1
- package/lib/commands/lint.js +0 -112
- package/lib/commands/lint.js.map +0 -1
- package/lib/commands/preview-project/constants.d.ts +0 -15
- package/lib/commands/preview-project/constants.d.ts.map +0 -1
- package/lib/commands/preview-project/constants.js +0 -20
- package/lib/commands/preview-project/constants.js.map +0 -1
- package/lib/commands/preview-project/index.d.ts +0 -4
- package/lib/commands/preview-project/index.d.ts.map +0 -1
- package/lib/commands/preview-project/index.js +0 -54
- package/lib/commands/preview-project/index.js.map +0 -1
- package/lib/commands/preview-project/types.d.ts +0 -11
- package/lib/commands/preview-project/types.d.ts.map +0 -1
- package/lib/commands/preview-project/types.js +0 -2
- package/lib/commands/preview-project/types.js.map +0 -1
- package/lib/commands/respect/connection-client.d.ts +0 -12
- package/lib/commands/respect/connection-client.d.ts.map +0 -1
- package/lib/commands/respect/connection-client.js +0 -73
- package/lib/commands/respect/connection-client.js.map +0 -1
- package/lib/commands/respect/display-files-summary-table.d.ts +0 -12
- package/lib/commands/respect/display-files-summary-table.d.ts.map +0 -1
- package/lib/commands/respect/display-files-summary-table.js +0 -65
- package/lib/commands/respect/display-files-summary-table.js.map +0 -1
- package/lib/commands/respect/har-logs/har-logs.d.ts +0 -6
- package/lib/commands/respect/har-logs/har-logs.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/har-logs.js +0 -28
- package/lib/commands/respect/har-logs/har-logs.js.map +0 -1
- package/lib/commands/respect/har-logs/helpers/add-headers.d.ts +0 -2
- package/lib/commands/respect/har-logs/helpers/add-headers.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/helpers/add-headers.js +0 -17
- package/lib/commands/respect/har-logs/helpers/add-headers.js.map +0 -1
- package/lib/commands/respect/har-logs/helpers/build-headers.d.ts +0 -10
- package/lib/commands/respect/har-logs/helpers/build-headers.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/helpers/build-headers.js +0 -33
- package/lib/commands/respect/har-logs/helpers/build-headers.js.map +0 -1
- package/lib/commands/respect/har-logs/helpers/build-request-cookies.d.ts +0 -2
- package/lib/commands/respect/har-logs/helpers/build-request-cookies.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/helpers/build-request-cookies.js +0 -18
- package/lib/commands/respect/har-logs/helpers/build-request-cookies.js.map +0 -1
- package/lib/commands/respect/har-logs/helpers/build-response-cookies.d.ts +0 -2
- package/lib/commands/respect/har-logs/helpers/build-response-cookies.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/helpers/build-response-cookies.js +0 -40
- package/lib/commands/respect/har-logs/helpers/build-response-cookies.js.map +0 -1
- package/lib/commands/respect/har-logs/helpers/get-duration.d.ts +0 -2
- package/lib/commands/respect/har-logs/helpers/get-duration.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/helpers/get-duration.js +0 -6
- package/lib/commands/respect/har-logs/helpers/get-duration.js.map +0 -1
- package/lib/commands/respect/har-logs/index.d.ts +0 -2
- package/lib/commands/respect/har-logs/index.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/index.js +0 -2
- package/lib/commands/respect/har-logs/index.js.map +0 -1
- package/lib/commands/respect/har-logs/with-har.d.ts +0 -7
- package/lib/commands/respect/har-logs/with-har.d.ts.map +0 -1
- package/lib/commands/respect/har-logs/with-har.js +0 -182
- package/lib/commands/respect/har-logs/with-har.js.map +0 -1
- package/lib/commands/respect/index.d.ts +0 -27
- package/lib/commands/respect/index.d.ts.map +0 -1
- package/lib/commands/respect/index.js +0 -115
- package/lib/commands/respect/index.js.map +0 -1
- package/lib/commands/respect/json-logs.d.ts +0 -11
- package/lib/commands/respect/json-logs.d.ts.map +0 -1
- package/lib/commands/respect/json-logs.js +0 -85
- package/lib/commands/respect/json-logs.js.map +0 -1
- package/lib/commands/respect/mtls/resolve-mtls-certificates.d.ts +0 -9
- package/lib/commands/respect/mtls/resolve-mtls-certificates.d.ts.map +0 -1
- package/lib/commands/respect/mtls/resolve-mtls-certificates.js +0 -48
- package/lib/commands/respect/mtls/resolve-mtls-certificates.js.map +0 -1
- package/lib/commands/respect/mtls/validate-mtls-command-option.d.ts +0 -3
- package/lib/commands/respect/mtls/validate-mtls-command-option.d.ts.map +0 -1
- package/lib/commands/respect/mtls/validate-mtls-command-option.js +0 -55
- package/lib/commands/respect/mtls/validate-mtls-command-option.js.map +0 -1
- package/lib/commands/score/collect-metrics.d.ts +0 -17
- package/lib/commands/score/collect-metrics.d.ts.map +0 -1
- package/lib/commands/score/collect-metrics.js +0 -195
- package/lib/commands/score/collect-metrics.js.map +0 -1
- package/lib/commands/score/collectors/dependency-graph.d.ts +0 -9
- package/lib/commands/score/collectors/dependency-graph.d.ts.map +0 -1
- package/lib/commands/score/collectors/dependency-graph.js +0 -61
- package/lib/commands/score/collectors/dependency-graph.js.map +0 -1
- package/lib/commands/score/collectors/document-metrics.d.ts +0 -69
- package/lib/commands/score/collectors/document-metrics.d.ts.map +0 -1
- package/lib/commands/score/collectors/document-metrics.js +0 -343
- package/lib/commands/score/collectors/document-metrics.js.map +0 -1
- package/lib/commands/score/constants.d.ts +0 -4
- package/lib/commands/score/constants.d.ts.map +0 -1
- package/lib/commands/score/constants.js +0 -47
- package/lib/commands/score/constants.js.map +0 -1
- package/lib/commands/score/formatters/json.d.ts +0 -3
- package/lib/commands/score/formatters/json.d.ts.map +0 -1
- package/lib/commands/score/formatters/json.js +0 -20
- package/lib/commands/score/formatters/json.js.map +0 -1
- package/lib/commands/score/formatters/stylish.d.ts +0 -4
- package/lib/commands/score/formatters/stylish.d.ts.map +0 -1
- package/lib/commands/score/formatters/stylish.js +0 -235
- package/lib/commands/score/formatters/stylish.js.map +0 -1
- package/lib/commands/score/hotspots.d.ts +0 -3
- package/lib/commands/score/hotspots.d.ts.map +0 -1
- package/lib/commands/score/hotspots.js +0 -70
- package/lib/commands/score/hotspots.js.map +0 -1
- package/lib/commands/score/index.d.ts +0 -11
- package/lib/commands/score/index.d.ts.map +0 -1
- package/lib/commands/score/index.js +0 -69
- package/lib/commands/score/index.js.map +0 -1
- package/lib/commands/score/scoring.d.ts +0 -14
- package/lib/commands/score/scoring.d.ts.map +0 -1
- package/lib/commands/score/scoring.js +0 -136
- package/lib/commands/score/scoring.js.map +0 -1
- package/lib/commands/score/types.d.ts +0 -119
- package/lib/commands/score/types.d.ts.map +0 -1
- package/lib/commands/score/types.js +0 -2
- package/lib/commands/score/types.js.map +0 -1
- package/lib/commands/score/utils.d.ts +0 -2
- package/lib/commands/score/utils.d.ts.map +0 -1
- package/lib/commands/score/utils.js +0 -8
- package/lib/commands/score/utils.js.map +0 -1
- package/lib/commands/scorecard-classic/auth/login-handler.d.ts +0 -3
- package/lib/commands/scorecard-classic/auth/login-handler.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/auth/login-handler.js +0 -31
- package/lib/commands/scorecard-classic/auth/login-handler.js.map +0 -1
- package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.d.ts +0 -3
- package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.js +0 -28
- package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.js.map +0 -1
- package/lib/commands/scorecard-classic/formatters/json-formatter.d.ts +0 -27
- package/lib/commands/scorecard-classic/formatters/json-formatter.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/formatters/json-formatter.js +0 -67
- package/lib/commands/scorecard-classic/formatters/json-formatter.js.map +0 -1
- package/lib/commands/scorecard-classic/formatters/junit-formatter.d.ts +0 -3
- package/lib/commands/scorecard-classic/formatters/junit-formatter.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/formatters/junit-formatter.js +0 -67
- package/lib/commands/scorecard-classic/formatters/junit-formatter.js.map +0 -1
- package/lib/commands/scorecard-classic/formatters/stylish-formatter.d.ts +0 -3
- package/lib/commands/scorecard-classic/formatters/stylish-formatter.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/formatters/stylish-formatter.js +0 -57
- package/lib/commands/scorecard-classic/formatters/stylish-formatter.js.map +0 -1
- package/lib/commands/scorecard-classic/index.d.ts +0 -4
- package/lib/commands/scorecard-classic/index.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/index.js +0 -120
- package/lib/commands/scorecard-classic/index.js.map +0 -1
- package/lib/commands/scorecard-classic/remote/fetch-scorecard.d.ts +0 -9
- package/lib/commands/scorecard-classic/remote/fetch-scorecard.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/remote/fetch-scorecard.js +0 -126
- package/lib/commands/scorecard-classic/remote/fetch-scorecard.js.map +0 -1
- package/lib/commands/scorecard-classic/targets-handler/targets-handler.d.ts +0 -13
- package/lib/commands/scorecard-classic/targets-handler/targets-handler.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/targets-handler/targets-handler.js +0 -55
- package/lib/commands/scorecard-classic/targets-handler/targets-handler.js.map +0 -1
- package/lib/commands/scorecard-classic/types.d.ts +0 -27
- package/lib/commands/scorecard-classic/types.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/types.js +0 -2
- package/lib/commands/scorecard-classic/types.js.map +0 -1
- package/lib/commands/scorecard-classic/validation/plugin-evaluator.d.ts +0 -3
- package/lib/commands/scorecard-classic/validation/plugin-evaluator.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/validation/plugin-evaluator.js +0 -45
- package/lib/commands/scorecard-classic/validation/plugin-evaluator.js.map +0 -1
- package/lib/commands/scorecard-classic/validation/project-url.d.ts +0 -2
- package/lib/commands/scorecard-classic/validation/project-url.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/validation/project-url.js +0 -11
- package/lib/commands/scorecard-classic/validation/project-url.js.map +0 -1
- package/lib/commands/scorecard-classic/validation/validate-scorecard.d.ts +0 -21
- package/lib/commands/scorecard-classic/validation/validate-scorecard.d.ts.map +0 -1
- package/lib/commands/scorecard-classic/validation/validate-scorecard.js +0 -87
- package/lib/commands/scorecard-classic/validation/validate-scorecard.js.map +0 -1
- package/lib/commands/split/asyncapi/constants.d.ts +0 -6
- package/lib/commands/split/asyncapi/constants.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/constants.js +0 -71
- package/lib/commands/split/asyncapi/constants.js.map +0 -1
- package/lib/commands/split/asyncapi/find-asyncapi-component-types.d.ts +0 -2
- package/lib/commands/split/asyncapi/find-asyncapi-component-types.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/find-asyncapi-component-types.js +0 -8
- package/lib/commands/split/asyncapi/find-asyncapi-component-types.js.map +0 -1
- package/lib/commands/split/asyncapi/gather-asyncapi-component-files.d.ts +0 -9
- package/lib/commands/split/asyncapi/gather-asyncapi-component-files.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/gather-asyncapi-component-files.js +0 -28
- package/lib/commands/split/asyncapi/gather-asyncapi-component-files.js.map +0 -1
- package/lib/commands/split/asyncapi/iterate-asyncapi-channels.d.ts +0 -10
- package/lib/commands/split/asyncapi/iterate-asyncapi-channels.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/iterate-asyncapi-channels.js +0 -27
- package/lib/commands/split/asyncapi/iterate-asyncapi-channels.js.map +0 -1
- package/lib/commands/split/asyncapi/iterate-asyncapi-components.d.ts +0 -10
- package/lib/commands/split/asyncapi/iterate-asyncapi-components.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/iterate-asyncapi-components.js +0 -41
- package/lib/commands/split/asyncapi/iterate-asyncapi-components.js.map +0 -1
- package/lib/commands/split/asyncapi/iterate-asyncapi-operations.d.ts +0 -11
- package/lib/commands/split/asyncapi/iterate-asyncapi-operations.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/iterate-asyncapi-operations.js +0 -26
- package/lib/commands/split/asyncapi/iterate-asyncapi-operations.js.map +0 -1
- package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.d.ts +0 -3
- package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.js +0 -13
- package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.js.map +0 -1
- package/lib/commands/split/asyncapi/split-asyncapi-definition.d.ts +0 -9
- package/lib/commands/split/asyncapi/split-asyncapi-definition.d.ts.map +0 -1
- package/lib/commands/split/asyncapi/split-asyncapi-definition.js +0 -51
- package/lib/commands/split/asyncapi/split-asyncapi-definition.js.map +0 -1
- package/lib/commands/split/constants.d.ts +0 -7
- package/lib/commands/split/constants.d.ts.map +0 -1
- package/lib/commands/split/constants.js +0 -7
- package/lib/commands/split/constants.js.map +0 -1
- package/lib/commands/split/index.d.ts +0 -6
- package/lib/commands/split/index.d.ts.map +0 -1
- package/lib/commands/split/index.js +0 -46
- package/lib/commands/split/index.js.map +0 -1
- package/lib/commands/split/oas/constants.d.ts +0 -3
- package/lib/commands/split/oas/constants.d.ts.map +0 -1
- package/lib/commands/split/oas/constants.js +0 -23
- package/lib/commands/split/oas/constants.js.map +0 -1
- package/lib/commands/split/oas/split-oas-definition.d.ts +0 -3
- package/lib/commands/split/oas/split-oas-definition.d.ts.map +0 -1
- package/lib/commands/split/oas/split-oas-definition.js +0 -19
- package/lib/commands/split/oas/split-oas-definition.js.map +0 -1
- package/lib/commands/split/types.d.ts +0 -28
- package/lib/commands/split/types.d.ts.map +0 -1
- package/lib/commands/split/types.js +0 -2
- package/lib/commands/split/types.js.map +0 -1
- package/lib/commands/split/utils/crawl.d.ts +0 -2
- package/lib/commands/split/utils/crawl.d.ts.map +0 -1
- package/lib/commands/split/utils/crawl.js +0 -15
- package/lib/commands/split/utils/crawl.js.map +0 -1
- package/lib/commands/split/utils/create-component-dir.d.ts +0 -2
- package/lib/commands/split/utils/create-component-dir.d.ts.map +0 -1
- package/lib/commands/split/utils/create-component-dir.js +0 -8
- package/lib/commands/split/utils/create-component-dir.js.map +0 -1
- package/lib/commands/split/utils/does-file-differ.d.ts +0 -2
- package/lib/commands/split/utils/does-file-differ.d.ts.map +0 -1
- package/lib/commands/split/utils/does-file-differ.js +0 -7
- package/lib/commands/split/utils/does-file-differ.js.map +0 -1
- package/lib/commands/split/utils/extract-filename-from-path.d.ts +0 -2
- package/lib/commands/split/utils/extract-filename-from-path.d.ts.map +0 -1
- package/lib/commands/split/utils/extract-filename-from-path.js +0 -5
- package/lib/commands/split/utils/extract-filename-from-path.js.map +0 -1
- package/lib/commands/split/utils/find-component-type.d.ts +0 -3
- package/lib/commands/split/utils/find-component-type.d.ts.map +0 -1
- package/lib/commands/split/utils/find-component-type.js +0 -8
- package/lib/commands/split/utils/find-component-type.js.map +0 -1
- package/lib/commands/split/utils/gather-components-files.d.ts +0 -4
- package/lib/commands/split/utils/gather-components-files.d.ts.map +0 -1
- package/lib/commands/split/utils/gather-components-files.js +0 -12
- package/lib/commands/split/utils/gather-components-files.js.map +0 -1
- package/lib/commands/split/utils/get-file-name-path.d.ts +0 -2
- package/lib/commands/split/utils/get-file-name-path.d.ts.map +0 -1
- package/lib/commands/split/utils/get-file-name-path.js +0 -5
- package/lib/commands/split/utils/get-file-name-path.js.map +0 -1
- package/lib/commands/split/utils/implicitly-reference-discriminator.d.ts +0 -2
- package/lib/commands/split/utils/implicitly-reference-discriminator.d.ts.map +0 -1
- package/lib/commands/split/utils/implicitly-reference-discriminator.js +0 -31
- package/lib/commands/split/utils/implicitly-reference-discriminator.js.map +0 -1
- package/lib/commands/split/utils/is-not-security-component-type.d.ts +0 -2
- package/lib/commands/split/utils/is-not-security-component-type.d.ts.map +0 -1
- package/lib/commands/split/utils/is-not-security-component-type.js +0 -4
- package/lib/commands/split/utils/is-not-security-component-type.js.map +0 -1
- package/lib/commands/split/utils/is-supported-extension.d.ts +0 -2
- package/lib/commands/split/utils/is-supported-extension.d.ts.map +0 -1
- package/lib/commands/split/utils/is-supported-extension.js +0 -4
- package/lib/commands/split/utils/is-supported-extension.js.map +0 -1
- package/lib/commands/split/utils/iterate-components.d.ts +0 -3
- package/lib/commands/split/utils/iterate-components.d.ts.map +0 -1
- package/lib/commands/split/utils/iterate-components.js +0 -55
- package/lib/commands/split/utils/iterate-components.js.map +0 -1
- package/lib/commands/split/utils/iterate-path-items.d.ts +0 -3
- package/lib/commands/split/utils/iterate-path-items.d.ts.map +0 -1
- package/lib/commands/split/utils/iterate-path-items.js +0 -42
- package/lib/commands/split/utils/iterate-path-items.js.map +0 -1
- package/lib/commands/split/utils/remove-empty-components.d.ts +0 -4
- package/lib/commands/split/utils/remove-empty-components.d.ts.map +0 -1
- package/lib/commands/split/utils/remove-empty-components.js +0 -10
- package/lib/commands/split/utils/remove-empty-components.js.map +0 -1
- package/lib/commands/split/utils/replace-$-refs.d.ts +0 -3
- package/lib/commands/split/utils/replace-$-refs.d.ts.map +0 -1
- package/lib/commands/split/utils/replace-$-refs.js +0 -34
- package/lib/commands/split/utils/replace-$-refs.js.map +0 -1
- package/lib/commands/split/utils/replace-channel-refs.d.ts +0 -3
- package/lib/commands/split/utils/replace-channel-refs.d.ts.map +0 -1
- package/lib/commands/split/utils/replace-channel-refs.js +0 -30
- package/lib/commands/split/utils/replace-channel-refs.js.map +0 -1
- package/lib/commands/split/utils/starts-with-components.d.ts +0 -2
- package/lib/commands/split/utils/starts-with-components.d.ts.map +0 -1
- package/lib/commands/split/utils/starts-with-components.js +0 -5
- package/lib/commands/split/utils/starts-with-components.js.map +0 -1
- package/lib/commands/split/utils/traverse-directory-deep.d.ts +0 -3
- package/lib/commands/split/utils/traverse-directory-deep.d.ts.map +0 -1
- package/lib/commands/split/utils/traverse-directory-deep.js +0 -27
- package/lib/commands/split/utils/traverse-directory-deep.js.map +0 -1
- package/lib/commands/stats/index.d.ts +0 -9
- package/lib/commands/stats/index.d.ts.map +0 -1
- package/lib/commands/stats/index.js +0 -42
- package/lib/commands/stats/index.js.map +0 -1
- package/lib/commands/stats/print-stats/index.d.ts +0 -3
- package/lib/commands/stats/print-stats/index.d.ts.map +0 -1
- package/lib/commands/stats/print-stats/index.js +0 -22
- package/lib/commands/stats/print-stats/index.js.map +0 -1
- package/lib/commands/stats/print-stats/json.d.ts +0 -3
- package/lib/commands/stats/print-stats/json.d.ts.map +0 -1
- package/lib/commands/stats/print-stats/json.js +0 -13
- package/lib/commands/stats/print-stats/json.js.map +0 -1
- package/lib/commands/stats/print-stats/markdown.d.ts +0 -3
- package/lib/commands/stats/print-stats/markdown.d.ts.map +0 -1
- package/lib/commands/stats/print-stats/markdown.js +0 -10
- package/lib/commands/stats/print-stats/markdown.js.map +0 -1
- package/lib/commands/stats/print-stats/stylish.d.ts +0 -3
- package/lib/commands/stats/print-stats/stylish.d.ts.map +0 -1
- package/lib/commands/stats/print-stats/stylish.js +0 -11
- package/lib/commands/stats/print-stats/stylish.js.map +0 -1
- package/lib/commands/stats/visitor-and-accumulator-resolver.d.ts +0 -103
- package/lib/commands/stats/visitor-and-accumulator-resolver.d.ts.map +0 -1
- package/lib/commands/stats/visitor-and-accumulator-resolver.js +0 -46
- package/lib/commands/stats/visitor-and-accumulator-resolver.js.map +0 -1
- package/lib/commands/translations.d.ts +0 -8
- package/lib/commands/translations.d.ts.map +0 -1
- package/lib/commands/translations.js +0 -18
- package/lib/commands/translations.js.map +0 -1
- package/lib/index.d.ts +0 -3
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/reunite/api/api-client.d.ts +0 -83
- package/lib/reunite/api/api-client.d.ts.map +0 -1
- package/lib/reunite/api/api-client.js +0 -262
- package/lib/reunite/api/api-client.js.map +0 -1
- package/lib/reunite/api/api-keys.d.ts +0 -2
- package/lib/reunite/api/api-keys.d.ts.map +0 -1
- package/lib/reunite/api/api-keys.js +0 -7
- package/lib/reunite/api/api-keys.js.map +0 -1
- package/lib/reunite/api/domains.d.ts +0 -12
- package/lib/reunite/api/domains.d.ts.map +0 -1
- package/lib/reunite/api/domains.js +0 -52
- package/lib/reunite/api/domains.js.map +0 -1
- package/lib/reunite/api/index.d.ts +0 -4
- package/lib/reunite/api/index.d.ts.map +0 -1
- package/lib/reunite/api/index.js +0 -4
- package/lib/reunite/api/index.js.map +0 -1
- package/lib/reunite/api/types.d.ts +0 -103
- package/lib/reunite/api/types.d.ts.map +0 -1
- package/lib/reunite/api/types.js +0 -2
- package/lib/reunite/api/types.js.map +0 -1
- package/lib/reunite/commands/push-status.d.ts +0 -24
- package/lib/reunite/commands/push-status.d.ts.map +0 -1
- package/lib/reunite/commands/push-status.js +0 -199
- package/lib/reunite/commands/push-status.js.map +0 -1
- package/lib/reunite/commands/push.d.ts +0 -28
- package/lib/reunite/commands/push.d.ts.map +0 -1
- package/lib/reunite/commands/push.js +0 -135
- package/lib/reunite/commands/push.js.map +0 -1
- package/lib/reunite/commands/utils.d.ts +0 -26
- package/lib/reunite/commands/utils.d.ts.map +0 -1
- package/lib/reunite/commands/utils.js +0 -49
- package/lib/reunite/commands/utils.js.map +0 -1
- package/lib/reunite/utils.d.ts +0 -3
- package/lib/reunite/utils.d.ts.map +0 -1
- package/lib/reunite/utils.js +0 -3
- package/lib/reunite/utils.js.map +0 -1
- package/lib/types.d.ts +0 -33
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/lib/utils/assert-node-version.d.ts +0 -2
- package/lib/utils/assert-node-version.d.ts.map +0 -1
- package/lib/utils/assert-node-version.js +0 -14
- package/lib/utils/assert-node-version.js.map +0 -1
- package/lib/utils/constants.d.ts +0 -5
- package/lib/utils/constants.d.ts.map +0 -1
- package/lib/utils/constants.js +0 -5
- package/lib/utils/constants.js.map +0 -1
- package/lib/utils/error.d.ts +0 -4
- package/lib/utils/error.d.ts.map +0 -1
- package/lib/utils/error.js +0 -8
- package/lib/utils/error.js.map +0 -1
- package/lib/utils/fetch-with-timeout.d.ts +0 -6
- package/lib/utils/fetch-with-timeout.d.ts.map +0 -1
- package/lib/utils/fetch-with-timeout.js +0 -24
- package/lib/utils/fetch-with-timeout.js.map +0 -1
- package/lib/utils/get-command-name-from-args.d.ts +0 -3
- package/lib/utils/get-command-name-from-args.d.ts.map +0 -1
- package/lib/utils/get-command-name-from-args.js +0 -4
- package/lib/utils/get-command-name-from-args.js.map +0 -1
- package/lib/utils/json-stringify-with-array-buffer.d.ts +0 -2
- package/lib/utils/json-stringify-with-array-buffer.d.ts.map +0 -1
- package/lib/utils/json-stringify-with-array-buffer.js +0 -32
- package/lib/utils/json-stringify-with-array-buffer.js.map +0 -1
- package/lib/utils/miscellaneous.d.ts +0 -46
- package/lib/utils/miscellaneous.d.ts.map +0 -1
- package/lib/utils/miscellaneous.js +0 -443
- package/lib/utils/miscellaneous.js.map +0 -1
- package/lib/utils/network-check.d.ts +0 -2
- package/lib/utils/network-check.d.ts.map +0 -1
- package/lib/utils/network-check.js +0 -12
- package/lib/utils/network-check.js.map +0 -1
- package/lib/utils/otel.d.ts +0 -8
- package/lib/utils/otel.d.ts.map +0 -1
- package/lib/utils/otel.js +0 -40
- package/lib/utils/otel.js.map +0 -1
- package/lib/utils/package.d.ts +0 -2
- package/lib/utils/package.d.ts.map +0 -1
- package/lib/utils/package.js +0 -4
- package/lib/utils/package.js.map +0 -1
- package/lib/utils/platform.d.ts +0 -17
- package/lib/utils/platform.d.ts.map +0 -1
- package/lib/utils/platform.js +0 -30
- package/lib/utils/platform.js.map +0 -1
- package/lib/utils/proxy-agent.d.ts +0 -5
- package/lib/utils/proxy-agent.d.ts.map +0 -1
- package/lib/utils/proxy-agent.js +0 -41
- package/lib/utils/proxy-agent.js.map +0 -1
- package/lib/utils/read-env-variables.d.ts +0 -2
- package/lib/utils/read-env-variables.d.ts.map +0 -1
- package/lib/utils/read-env-variables.js +0 -18
- package/lib/utils/read-env-variables.js.map +0 -1
- package/lib/utils/spinner.d.ts +0 -11
- package/lib/utils/spinner.d.ts.map +0 -1
- package/lib/utils/spinner.js +0 -44
- package/lib/utils/spinner.js.map +0 -1
- package/lib/utils/strip-ansi-codes.d.ts +0 -2
- package/lib/utils/strip-ansi-codes.d.ts.map +0 -1
- package/lib/utils/strip-ansi-codes.js +0 -6
- package/lib/utils/strip-ansi-codes.js.map +0 -1
- package/lib/utils/telemetry.d.ts +0 -26
- package/lib/utils/telemetry.d.ts.map +0 -1
- package/lib/utils/telemetry.js +0 -291
- package/lib/utils/telemetry.js.map +0 -1
- package/lib/utils/update-version-notifier.d.ts +0 -3
- package/lib/utils/update-version-notifier.d.ts.map +0 -1
- package/lib/utils/update-version-notifier.js +0 -100
- package/lib/utils/update-version-notifier.js.map +0 -1
- package/lib/utils/validate-mount-path.d.ts +0 -2
- package/lib/utils/validate-mount-path.d.ts.map +0 -1
- package/lib/utils/validate-mount-path.js +0 -7
- package/lib/utils/validate-mount-path.js.map +0 -1
- package/lib/utils/validate-positive-number.d.ts +0 -2
- package/lib/utils/validate-positive-number.d.ts.map +0 -1
- package/lib/utils/validate-positive-number.js +0 -13
- package/lib/utils/validate-positive-number.js.map +0 -1
- package/lib/wrapper.d.ts +0 -11
- package/lib/wrapper.d.ts.map +0 -1
- package/lib/wrapper.js +0 -99
- package/lib/wrapper.js.map +0 -1
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__commonJS,
|
|
5
|
+
__require,
|
|
6
|
+
__toESM
|
|
7
|
+
} from "./5ILQMFXK.js";
|
|
8
|
+
|
|
9
|
+
// ../../node_modules/@redocly/cli-otel/node_modules/ulid/dist/index.umd.js
|
|
10
|
+
var require_index_umd = __commonJS({
|
|
11
|
+
"../../node_modules/@redocly/cli-otel/node_modules/ulid/dist/index.umd.js"(exports, module) {
|
|
12
|
+
(function(global2, factory) {
|
|
13
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.ULID = {}));
|
|
14
|
+
})(exports, (function(exports2) {
|
|
15
|
+
"use strict";
|
|
16
|
+
function createError(message) {
|
|
17
|
+
const err = new Error(message);
|
|
18
|
+
err.source = "ulid";
|
|
19
|
+
return err;
|
|
20
|
+
}
|
|
21
|
+
const ENCODING2 = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
22
|
+
const ENCODING_LEN2 = ENCODING2.length;
|
|
23
|
+
const TIME_MAX2 = Math.pow(2, 48) - 1;
|
|
24
|
+
const TIME_LEN2 = 10;
|
|
25
|
+
const RANDOM_LEN2 = 16;
|
|
26
|
+
function replaceCharAt(str, index, char) {
|
|
27
|
+
if (index > str.length - 1) {
|
|
28
|
+
return str;
|
|
29
|
+
}
|
|
30
|
+
return str.substr(0, index) + char + str.substr(index + 1);
|
|
31
|
+
}
|
|
32
|
+
function incrementBase32(str) {
|
|
33
|
+
let done = void 0;
|
|
34
|
+
let index = str.length;
|
|
35
|
+
let char;
|
|
36
|
+
let charIndex;
|
|
37
|
+
const maxCharIndex = ENCODING_LEN2 - 1;
|
|
38
|
+
while (!done && index-- >= 0) {
|
|
39
|
+
char = str[index];
|
|
40
|
+
charIndex = ENCODING2.indexOf(char);
|
|
41
|
+
if (charIndex === -1) {
|
|
42
|
+
throw createError("incorrectly encoded string");
|
|
43
|
+
}
|
|
44
|
+
if (charIndex === maxCharIndex) {
|
|
45
|
+
str = replaceCharAt(str, index, ENCODING2[0]);
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
done = replaceCharAt(str, index, ENCODING2[charIndex + 1]);
|
|
49
|
+
}
|
|
50
|
+
if (typeof done === "string") {
|
|
51
|
+
return done;
|
|
52
|
+
}
|
|
53
|
+
throw createError("cannot increment this string");
|
|
54
|
+
}
|
|
55
|
+
function randomChar2(prng) {
|
|
56
|
+
let rand = Math.floor(prng() * ENCODING_LEN2);
|
|
57
|
+
if (rand === ENCODING_LEN2) {
|
|
58
|
+
rand = ENCODING_LEN2 - 1;
|
|
59
|
+
}
|
|
60
|
+
return ENCODING2.charAt(rand);
|
|
61
|
+
}
|
|
62
|
+
function encodeTime2(now, len) {
|
|
63
|
+
if (isNaN(now)) {
|
|
64
|
+
throw new Error(now + " must be a number");
|
|
65
|
+
}
|
|
66
|
+
if (now > TIME_MAX2) {
|
|
67
|
+
throw createError("cannot encode time greater than " + TIME_MAX2);
|
|
68
|
+
}
|
|
69
|
+
if (now < 0) {
|
|
70
|
+
throw createError("time must be positive");
|
|
71
|
+
}
|
|
72
|
+
if (Number.isInteger(Number(now)) === false) {
|
|
73
|
+
throw createError("time must be an integer");
|
|
74
|
+
}
|
|
75
|
+
let mod;
|
|
76
|
+
let str = "";
|
|
77
|
+
for (; len > 0; len--) {
|
|
78
|
+
mod = now % ENCODING_LEN2;
|
|
79
|
+
str = ENCODING2.charAt(mod) + str;
|
|
80
|
+
now = (now - mod) / ENCODING_LEN2;
|
|
81
|
+
}
|
|
82
|
+
return str;
|
|
83
|
+
}
|
|
84
|
+
function encodeRandom2(len, prng) {
|
|
85
|
+
let str = "";
|
|
86
|
+
for (; len > 0; len--) {
|
|
87
|
+
str = randomChar2(prng) + str;
|
|
88
|
+
}
|
|
89
|
+
return str;
|
|
90
|
+
}
|
|
91
|
+
function decodeTime(id) {
|
|
92
|
+
if (id.length !== TIME_LEN2 + RANDOM_LEN2) {
|
|
93
|
+
throw createError("malformed ulid");
|
|
94
|
+
}
|
|
95
|
+
var time = id.substr(0, TIME_LEN2).split("").reverse().reduce((carry, char, index) => {
|
|
96
|
+
const encodingIndex = ENCODING2.indexOf(char);
|
|
97
|
+
if (encodingIndex === -1) {
|
|
98
|
+
throw createError("invalid character found: " + char);
|
|
99
|
+
}
|
|
100
|
+
return carry += encodingIndex * Math.pow(ENCODING_LEN2, index);
|
|
101
|
+
}, 0);
|
|
102
|
+
if (time > TIME_MAX2) {
|
|
103
|
+
throw createError("malformed ulid, timestamp too large");
|
|
104
|
+
}
|
|
105
|
+
return time;
|
|
106
|
+
}
|
|
107
|
+
function detectPrng(allowInsecure = false, root) {
|
|
108
|
+
if (!root) {
|
|
109
|
+
root = typeof window !== "undefined" ? window : null;
|
|
110
|
+
}
|
|
111
|
+
const browserCrypto = root && (root.crypto || root.msCrypto);
|
|
112
|
+
if (browserCrypto) {
|
|
113
|
+
return () => {
|
|
114
|
+
const buffer = new Uint8Array(1);
|
|
115
|
+
browserCrypto.getRandomValues(buffer);
|
|
116
|
+
return buffer[0] / 255;
|
|
117
|
+
};
|
|
118
|
+
} else {
|
|
119
|
+
try {
|
|
120
|
+
const nodeCrypto = __require("crypto");
|
|
121
|
+
return () => nodeCrypto.randomBytes(1).readUInt8() / 255;
|
|
122
|
+
} catch (e) {
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (allowInsecure) {
|
|
126
|
+
try {
|
|
127
|
+
console.error("secure crypto unusable, falling back to insecure Math.random()!");
|
|
128
|
+
} catch (e) {
|
|
129
|
+
}
|
|
130
|
+
return () => Math.random();
|
|
131
|
+
}
|
|
132
|
+
throw createError("secure crypto unusable, insecure Math.random not allowed");
|
|
133
|
+
}
|
|
134
|
+
function factory(currPrng) {
|
|
135
|
+
if (!currPrng) {
|
|
136
|
+
currPrng = detectPrng();
|
|
137
|
+
}
|
|
138
|
+
return function ulid3(seedTime) {
|
|
139
|
+
if (isNaN(seedTime)) {
|
|
140
|
+
seedTime = Date.now();
|
|
141
|
+
}
|
|
142
|
+
return encodeTime2(seedTime, TIME_LEN2) + encodeRandom2(RANDOM_LEN2, currPrng);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function monotonicFactory(currPrng) {
|
|
146
|
+
if (!currPrng) {
|
|
147
|
+
currPrng = detectPrng();
|
|
148
|
+
}
|
|
149
|
+
let lastTime = 0;
|
|
150
|
+
let lastRandom;
|
|
151
|
+
return function ulid3(seedTime) {
|
|
152
|
+
if (isNaN(seedTime)) {
|
|
153
|
+
seedTime = Date.now();
|
|
154
|
+
}
|
|
155
|
+
if (seedTime <= lastTime) {
|
|
156
|
+
const incrementedRandom = lastRandom = incrementBase32(lastRandom);
|
|
157
|
+
return encodeTime2(lastTime, TIME_LEN2) + incrementedRandom;
|
|
158
|
+
}
|
|
159
|
+
lastTime = seedTime;
|
|
160
|
+
const newRandom = lastRandom = encodeRandom2(RANDOM_LEN2, currPrng);
|
|
161
|
+
return encodeTime2(seedTime, TIME_LEN2) + newRandom;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
const ulid2 = factory();
|
|
165
|
+
exports2.decodeTime = decodeTime;
|
|
166
|
+
exports2.detectPrng = detectPrng;
|
|
167
|
+
exports2.encodeRandom = encodeRandom2;
|
|
168
|
+
exports2.encodeTime = encodeTime2;
|
|
169
|
+
exports2.factory = factory;
|
|
170
|
+
exports2.incrementBase32 = incrementBase32;
|
|
171
|
+
exports2.monotonicFactory = monotonicFactory;
|
|
172
|
+
exports2.randomChar = randomChar2;
|
|
173
|
+
exports2.replaceCharAt = replaceCharAt;
|
|
174
|
+
exports2.ulid = ulid2;
|
|
175
|
+
}));
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
// ../../node_modules/@redocly/cli-otel/lib/index.js
|
|
180
|
+
var import_ulid = __toESM(require_index_umd(), 1);
|
|
181
|
+
var z = Object.defineProperty;
|
|
182
|
+
var N = (e, n) => {
|
|
183
|
+
for (var o in n) z(e, o, { get: n[o], enumerable: true });
|
|
184
|
+
};
|
|
185
|
+
var j = {};
|
|
186
|
+
N(j, { CLOUD_EVENT_STANDARD_KEYS: () => b, mapToCloudEvent: () => q });
|
|
187
|
+
var b = ["id", "specversion", "object", "datacontenttype", "type", "time", "origin", "env", "category", "signal", "source", "subject", "subjects", "data", "actor", "requestId", "clientIp", "organizationId", "organizationSlug", "projectId", "projectSlug", "osPlatform", "userAgent", "sessionId"];
|
|
188
|
+
function q(e) {
|
|
189
|
+
let { type: n, data: o, actor: t, requestId: s, clientIp: r, origin: i, env: c, source: a, organizationId: m, organizationSlug: C, projectId: A, projectSlug: _, category: k = "product", signal: D = "log", osPlatform: h, userAgent: w, sessionId: P } = e, $ = !!(o && Array.isArray(o)), v = t ? { id: t.id ?? `ann_${(0, import_ulid.ulid)()}`, object: t.object ?? "user", uri: t.uri ?? "" } : null, E = `evt_${(0, import_ulid.ulid)()}`.toLowerCase(), x = /* @__PURE__ */ new Date(), I = a ?? v?.uri ?? null, T = { ...m !== void 0 && { organizationId: m }, ...C !== void 0 && { organizationSlug: C }, ...A !== void 0 && { projectId: A }, ..._ !== void 0 && { projectSlug: _ } }, g = { specversion: "1.0", object: "event", datacontenttype: "application/json; charset=utf-8", origin: i, env: c, category: k, signal: D, osPlatform: h, userAgent: w, clientIp: r, sessionId: P };
|
|
190
|
+
if ($) {
|
|
191
|
+
let u = o, B = u.map((y) => ({ id: y.id ?? "", object: y.object ?? "", uri: y.uri ?? "" })), U = u[0]?.id ?? null;
|
|
192
|
+
Object.assign(g, { ...T, id: E, type: n, time: x, source: I, actor: v, subject: U, subjects: B, data: u, requestId: s ?? "" });
|
|
193
|
+
} else {
|
|
194
|
+
let u = (Array.isArray(o) ? o[0] : o)?.id ?? null;
|
|
195
|
+
Object.assign(g, { ...T, id: E, type: n, time: x, source: I, actor: v, subject: u, requestId: s ?? "", data: o, ...a != null && { request: { source: a } } });
|
|
196
|
+
}
|
|
197
|
+
return g;
|
|
198
|
+
}
|
|
199
|
+
var O = "context";
|
|
200
|
+
var d = [O];
|
|
201
|
+
function f(e) {
|
|
202
|
+
return e.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
203
|
+
}
|
|
204
|
+
function S(e) {
|
|
205
|
+
let n = { updated: [], notUpdated: [] };
|
|
206
|
+
for (let o of e) {
|
|
207
|
+
if (!o || typeof o != "object") continue;
|
|
208
|
+
let t = o.object;
|
|
209
|
+
if (typeof t != "string") continue;
|
|
210
|
+
let s = o, r = n.notUpdated.find((i) => i.object === t);
|
|
211
|
+
r ? (n.updated = [r, s], n.notUpdated = n.notUpdated.filter((i) => i.object !== t)) : n.updated.some((i) => i.object === t) || n.notUpdated.push(s);
|
|
212
|
+
}
|
|
213
|
+
return n;
|
|
214
|
+
}
|
|
215
|
+
function p(e, n, o) {
|
|
216
|
+
let t = o ? `${o}.` : "", s = n === "" ? "" : `${n}.`;
|
|
217
|
+
return `${e}.${t}${s}`;
|
|
218
|
+
}
|
|
219
|
+
function R(e, n) {
|
|
220
|
+
let o = e[O];
|
|
221
|
+
return o === "before" || o === "after" ? o : n === 0 ? "after" : "before";
|
|
222
|
+
}
|
|
223
|
+
function l(e, n, o, t = true, s) {
|
|
224
|
+
let r = s?.length ? new Set(s) : null;
|
|
225
|
+
for (let [i, c] of Object.entries(e)) if (!r?.has(i) && c !== void 0) {
|
|
226
|
+
let a = t ? f(i) : i;
|
|
227
|
+
o[`${n}${a}`] = c;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function W(e, n, o) {
|
|
231
|
+
for (let [t, s] of Object.entries(e)) s == null || typeof s == "object" || (o[`${n}.${f(t)}`] = s);
|
|
232
|
+
}
|
|
233
|
+
function K(e, n, o) {
|
|
234
|
+
let t = n instanceof Date ? n.toISOString() : new Date(n).toISOString();
|
|
235
|
+
return { "cloudevents.event_id": e.id, "cloudevents.event_type": e.type, "cloudevents.event_source": e.source ?? void 0, "cloudevents.event_spec_version": e.specversion, "cloudevents.event_data_content_type": e.datacontenttype ?? "application/json; charset=utf-8", "cloudevents.event_time": t, "cloudevents.event_subject": e.subject ?? "", "cloudevents.page.uri": typeof location < "u" ? location.href : void 0, "cloudevents.event_version": o?.version, "cloudevents.event_origin": e.origin ?? o?.serviceName, "cloudevents.event_env": e.env, "cloudevents.event_source_details.id": e.actor?.id ?? "anonymous", "cloudevents.event_source_details.object": e.actor?.object ?? "anonymous", "cloudevents.event_source_details.uri": e.actor?.uri ?? void 0, "cloudevents.event_client_ip": e.clientIp, "cloudevents.event_object": e.object || "event", "cloudevents.event_category": e.category, "cloudevents.event_signal": e.signal, "cloudevents.event_actor.id": e.actor?.id ?? void 0, "cloudevents.event_actor.object": e.actor?.object ?? void 0, "cloudevents.event_actor.uri": e.actor?.uri ?? void 0, "cloudevents.event_organization_id": e.organizationId, "cloudevents.event_organization_slug": e.organizationSlug, "cloudevents.event_project_id": e.projectId, "cloudevents.event_project_slug": e.projectSlug, "cloudevents.event_request_id": e.requestId, "cloudevents.event_os_platform": e.osPlatform, "cloudevents.event_user_agent": e.userAgent, "cloudevents.event_session_id": e.sessionId };
|
|
236
|
+
}
|
|
237
|
+
function G(e, n, o) {
|
|
238
|
+
let t = e.data, s = { ...K(e, n, o) };
|
|
239
|
+
return L(t, s), X(e, s), Z(e, s), s;
|
|
240
|
+
}
|
|
241
|
+
function L(e, n) {
|
|
242
|
+
!e || typeof e != "object" || (Array.isArray(e) ? V(e, n) : H(e, n));
|
|
243
|
+
}
|
|
244
|
+
function V(e, n) {
|
|
245
|
+
e.some((t) => t && typeof t == "object" && typeof t.object == "string") ? Y(e, n) : F(e, n);
|
|
246
|
+
}
|
|
247
|
+
function Y(e, n) {
|
|
248
|
+
let o = S(e);
|
|
249
|
+
o.updated.forEach((t, s) => {
|
|
250
|
+
let r = p("cloudevents.event_data", t.object, R(t, s));
|
|
251
|
+
l(t, r, n, true, d);
|
|
252
|
+
}), o.notUpdated.forEach((t) => {
|
|
253
|
+
let s = p("cloudevents.event_data", t.object, void 0);
|
|
254
|
+
l(t, s, n, true, d);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
function F(e, n) {
|
|
258
|
+
for (let o of e) if (!(!o || typeof o != "object")) for (let [t, s] of Object.entries(o)) {
|
|
259
|
+
if (s === void 0) continue;
|
|
260
|
+
let r = f(t);
|
|
261
|
+
s !== null && typeof s == "object" && !Array.isArray(s) ? W(s, `cloudevents.event_data.${r}`, n) : n[`cloudevents.event_data.${r}`] = s;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function H(e, n) {
|
|
265
|
+
for (let [o, t] of Object.entries(e)) {
|
|
266
|
+
if (t == null) continue;
|
|
267
|
+
let s = f(o);
|
|
268
|
+
if (typeof t == "object" && !Array.isArray(t)) for (let [r, i] of Object.entries(t)) i != null && (typeof i == "string" || typeof i == "number" || typeof i == "boolean") && (n[`cloudevents.event_data.${s}.${r}`] = i);
|
|
269
|
+
else (typeof t == "string" || typeof t == "number" || typeof t == "boolean") && (n[`cloudevents.event_data.${s}`] = t);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
function X(e, n) {
|
|
273
|
+
if (!e.subjects || !Array.isArray(e.subjects)) return;
|
|
274
|
+
let o = S(e.subjects);
|
|
275
|
+
o.updated.forEach((t, s) => {
|
|
276
|
+
let r = p("cloudevents.event_subjects", t.object, R(t, s));
|
|
277
|
+
l(t, r, n, false, d);
|
|
278
|
+
}), o.notUpdated.forEach((t) => {
|
|
279
|
+
let s = p("cloudevents.event_subjects", t.object, void 0);
|
|
280
|
+
l(t, s, n, false, d);
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
function Z(e, n) {
|
|
284
|
+
for (let [o, t] of Object.entries(e)) if (!(b.includes(o) || t === void 0)) if (t instanceof Object) for (let [s, r] of Object.entries(t)) r !== void 0 && (n[`cloudevents.${o}.${s}`] = r);
|
|
285
|
+
else n[`cloudevents.${o}`] = t;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// ../../node_modules/ulid/dist/node/index.js
|
|
289
|
+
import crypto from "node:crypto";
|
|
290
|
+
var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
291
|
+
var ENCODING_LEN = 32;
|
|
292
|
+
var RANDOM_LEN = 16;
|
|
293
|
+
var TIME_LEN = 10;
|
|
294
|
+
var TIME_MAX = 281474976710655;
|
|
295
|
+
var ULIDErrorCode;
|
|
296
|
+
(function(ULIDErrorCode2) {
|
|
297
|
+
ULIDErrorCode2["Base32IncorrectEncoding"] = "B32_ENC_INVALID";
|
|
298
|
+
ULIDErrorCode2["DecodeTimeInvalidCharacter"] = "DEC_TIME_CHAR";
|
|
299
|
+
ULIDErrorCode2["DecodeTimeValueMalformed"] = "DEC_TIME_MALFORMED";
|
|
300
|
+
ULIDErrorCode2["EncodeTimeNegative"] = "ENC_TIME_NEG";
|
|
301
|
+
ULIDErrorCode2["EncodeTimeSizeExceeded"] = "ENC_TIME_SIZE_EXCEED";
|
|
302
|
+
ULIDErrorCode2["EncodeTimeValueMalformed"] = "ENC_TIME_MALFORMED";
|
|
303
|
+
ULIDErrorCode2["PRNGDetectFailure"] = "PRNG_DETECT";
|
|
304
|
+
ULIDErrorCode2["ULIDInvalid"] = "ULID_INVALID";
|
|
305
|
+
ULIDErrorCode2["Unexpected"] = "UNEXPECTED";
|
|
306
|
+
ULIDErrorCode2["UUIDInvalid"] = "UUID_INVALID";
|
|
307
|
+
})(ULIDErrorCode || (ULIDErrorCode = {}));
|
|
308
|
+
var ULIDError = class extends Error {
|
|
309
|
+
constructor(errorCode, message) {
|
|
310
|
+
super(`${message} (${errorCode})`);
|
|
311
|
+
this.name = "ULIDError";
|
|
312
|
+
this.code = errorCode;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
function randomChar(prng) {
|
|
316
|
+
const randomPosition = Math.floor(prng() * ENCODING_LEN) % ENCODING_LEN;
|
|
317
|
+
return ENCODING.charAt(randomPosition);
|
|
318
|
+
}
|
|
319
|
+
function detectPRNG(root) {
|
|
320
|
+
const rootLookup = detectRoot();
|
|
321
|
+
const globalCrypto = rootLookup && (rootLookup.crypto || rootLookup.msCrypto) || (typeof crypto !== "undefined" ? crypto : null);
|
|
322
|
+
if (typeof globalCrypto?.getRandomValues === "function") {
|
|
323
|
+
return () => {
|
|
324
|
+
const buffer = new Uint8Array(1);
|
|
325
|
+
globalCrypto.getRandomValues(buffer);
|
|
326
|
+
return buffer[0] / 256;
|
|
327
|
+
};
|
|
328
|
+
} else if (typeof globalCrypto?.randomBytes === "function") {
|
|
329
|
+
return () => globalCrypto.randomBytes(1).readUInt8() / 256;
|
|
330
|
+
} else if (crypto?.randomBytes) {
|
|
331
|
+
return () => crypto.randomBytes(1).readUInt8() / 256;
|
|
332
|
+
}
|
|
333
|
+
throw new ULIDError(ULIDErrorCode.PRNGDetectFailure, "Failed to find a reliable PRNG");
|
|
334
|
+
}
|
|
335
|
+
function detectRoot() {
|
|
336
|
+
if (inWebWorker())
|
|
337
|
+
return self;
|
|
338
|
+
if (typeof window !== "undefined") {
|
|
339
|
+
return window;
|
|
340
|
+
}
|
|
341
|
+
if (typeof global !== "undefined") {
|
|
342
|
+
return global;
|
|
343
|
+
}
|
|
344
|
+
if (typeof globalThis !== "undefined") {
|
|
345
|
+
return globalThis;
|
|
346
|
+
}
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
function encodeRandom(len, prng) {
|
|
350
|
+
let str = "";
|
|
351
|
+
for (; len > 0; len--) {
|
|
352
|
+
str = randomChar(prng) + str;
|
|
353
|
+
}
|
|
354
|
+
return str;
|
|
355
|
+
}
|
|
356
|
+
function encodeTime(now, len = TIME_LEN) {
|
|
357
|
+
if (isNaN(now)) {
|
|
358
|
+
throw new ULIDError(ULIDErrorCode.EncodeTimeValueMalformed, `Time must be a number: ${now}`);
|
|
359
|
+
} else if (now > TIME_MAX) {
|
|
360
|
+
throw new ULIDError(ULIDErrorCode.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${TIME_MAX}: ${now}`);
|
|
361
|
+
} else if (now < 0) {
|
|
362
|
+
throw new ULIDError(ULIDErrorCode.EncodeTimeNegative, `Time must be positive: ${now}`);
|
|
363
|
+
} else if (Number.isInteger(now) === false) {
|
|
364
|
+
throw new ULIDError(ULIDErrorCode.EncodeTimeValueMalformed, `Time must be an integer: ${now}`);
|
|
365
|
+
}
|
|
366
|
+
let mod, str = "";
|
|
367
|
+
for (let currentLen = len; currentLen > 0; currentLen--) {
|
|
368
|
+
mod = now % ENCODING_LEN;
|
|
369
|
+
str = ENCODING.charAt(mod) + str;
|
|
370
|
+
now = (now - mod) / ENCODING_LEN;
|
|
371
|
+
}
|
|
372
|
+
return str;
|
|
373
|
+
}
|
|
374
|
+
function inWebWorker() {
|
|
375
|
+
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
|
|
376
|
+
}
|
|
377
|
+
function ulid(seedTime, prng) {
|
|
378
|
+
const currentPRNG = prng || detectPRNG();
|
|
379
|
+
const seed = !seedTime || isNaN(seedTime) ? Date.now() : seedTime;
|
|
380
|
+
return encodeTime(seed, TIME_LEN) + encodeRandom(RANDOM_LEN, currentPRNG);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export {
|
|
384
|
+
j,
|
|
385
|
+
G,
|
|
386
|
+
ulid
|
|
387
|
+
};
|