@eui/mcp 1.5.1 → 1.5.2
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/main.js +540 -209
- package/package.json +3 -2
- package/dist/config/__tests__/schema.property.test.d.ts +0 -2
- package/dist/config/__tests__/schema.property.test.d.ts.map +0 -1
- package/dist/config/__tests__/schema.property.test.js +0 -203
- package/dist/config/__tests__/schema.property.test.js.map +0 -1
- package/dist/config/__tests__/schema.test.d.ts +0 -2
- package/dist/config/__tests__/schema.test.d.ts.map +0 -1
- package/dist/config/__tests__/schema.test.js +0 -454
- package/dist/config/__tests__/schema.test.js.map +0 -1
- package/dist/config/index.d.ts +0 -6
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -6
- package/dist/config/index.js.map +0 -1
- package/dist/config/loader.d.ts +0 -27
- package/dist/config/loader.d.ts.map +0 -1
- package/dist/config/loader.js +0 -224
- package/dist/config/loader.js.map +0 -1
- package/dist/config/schema.d.ts +0 -171
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -100
- package/dist/config/schema.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -27
- package/dist/index.js.map +0 -1
- package/dist/loader/__tests__/cache-manager.property.test.d.ts +0 -2
- package/dist/loader/__tests__/cache-manager.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/cache-manager.property.test.js +0 -245
- package/dist/loader/__tests__/cache-manager.property.test.js.map +0 -1
- package/dist/loader/__tests__/cache-manager.test.d.ts +0 -2
- package/dist/loader/__tests__/cache-manager.test.d.ts.map +0 -1
- package/dist/loader/__tests__/cache-manager.test.js +0 -256
- package/dist/loader/__tests__/cache-manager.test.js.map +0 -1
- package/dist/loader/__tests__/documentation-loader.integration.test.d.ts +0 -2
- package/dist/loader/__tests__/documentation-loader.integration.test.d.ts.map +0 -1
- package/dist/loader/__tests__/documentation-loader.integration.test.js +0 -498
- package/dist/loader/__tests__/documentation-loader.integration.test.js.map +0 -1
- package/dist/loader/__tests__/documentation-loader.property.test.d.ts +0 -2
- package/dist/loader/__tests__/documentation-loader.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/documentation-loader.property.test.js +0 -258
- package/dist/loader/__tests__/documentation-loader.property.test.js.map +0 -1
- package/dist/loader/__tests__/errors.test.d.ts +0 -2
- package/dist/loader/__tests__/errors.test.d.ts.map +0 -1
- package/dist/loader/__tests__/errors.test.js +0 -132
- package/dist/loader/__tests__/errors.test.js.map +0 -1
- package/dist/loader/__tests__/http-client.property.test.d.ts +0 -2
- package/dist/loader/__tests__/http-client.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/http-client.property.test.js +0 -288
- package/dist/loader/__tests__/http-client.property.test.js.map +0 -1
- package/dist/loader/__tests__/http-client.test.d.ts +0 -2
- package/dist/loader/__tests__/http-client.test.d.ts.map +0 -1
- package/dist/loader/__tests__/http-client.test.js +0 -497
- package/dist/loader/__tests__/http-client.test.js.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.property.test.d.ts +0 -2
- package/dist/loader/__tests__/local-documentation-source.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.property.test.js +0 -373
- package/dist/loader/__tests__/local-documentation-source.property.test.js.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.test.d.ts +0 -2
- package/dist/loader/__tests__/local-documentation-source.test.d.ts.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.test.js +0 -544
- package/dist/loader/__tests__/local-documentation-source.test.js.map +0 -1
- package/dist/loader/__tests__/path-type-detector.property.test.d.ts +0 -2
- package/dist/loader/__tests__/path-type-detector.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/path-type-detector.property.test.js +0 -245
- package/dist/loader/__tests__/path-type-detector.property.test.js.map +0 -1
- package/dist/loader/__tests__/path-type-detector.test.d.ts +0 -2
- package/dist/loader/__tests__/path-type-detector.test.d.ts.map +0 -1
- package/dist/loader/__tests__/path-type-detector.test.js +0 -390
- package/dist/loader/__tests__/path-type-detector.test.js.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts +0 -2
- package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.property.test.js +0 -462
- package/dist/loader/__tests__/remote-documentation-source.property.test.js.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.test.d.ts +0 -2
- package/dist/loader/__tests__/remote-documentation-source.test.d.ts.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.test.js +0 -707
- package/dist/loader/__tests__/remote-documentation-source.test.js.map +0 -1
- package/dist/loader/cache-manager.d.ts +0 -74
- package/dist/loader/cache-manager.d.ts.map +0 -1
- package/dist/loader/cache-manager.js +0 -107
- package/dist/loader/cache-manager.js.map +0 -1
- package/dist/loader/documentation-loader.d.ts +0 -57
- package/dist/loader/documentation-loader.d.ts.map +0 -1
- package/dist/loader/documentation-loader.js +0 -85
- package/dist/loader/documentation-loader.js.map +0 -1
- package/dist/loader/documentation-source.d.ts +0 -37
- package/dist/loader/documentation-source.d.ts.map +0 -1
- package/dist/loader/documentation-source.js +0 -2
- package/dist/loader/documentation-source.js.map +0 -1
- package/dist/loader/errors.d.ts +0 -34
- package/dist/loader/errors.d.ts.map +0 -1
- package/dist/loader/errors.js +0 -65
- package/dist/loader/errors.js.map +0 -1
- package/dist/loader/http-client.d.ts +0 -43
- package/dist/loader/http-client.d.ts.map +0 -1
- package/dist/loader/http-client.js +0 -144
- package/dist/loader/http-client.js.map +0 -1
- package/dist/loader/index.d.ts +0 -6
- package/dist/loader/index.d.ts.map +0 -1
- package/dist/loader/index.js +0 -5
- package/dist/loader/index.js.map +0 -1
- package/dist/loader/local-documentation-source.d.ts +0 -62
- package/dist/loader/local-documentation-source.d.ts.map +0 -1
- package/dist/loader/local-documentation-source.js +0 -192
- package/dist/loader/local-documentation-source.js.map +0 -1
- package/dist/loader/path-type-detector.d.ts +0 -34
- package/dist/loader/path-type-detector.d.ts.map +0 -1
- package/dist/loader/path-type-detector.js +0 -78
- package/dist/loader/path-type-detector.js.map +0 -1
- package/dist/loader/remote-documentation-source.d.ts +0 -108
- package/dist/loader/remote-documentation-source.d.ts.map +0 -1
- package/dist/loader/remote-documentation-source.js +0 -250
- package/dist/loader/remote-documentation-source.js.map +0 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/mcp/__tests__/server.property.test.d.ts +0 -2
- package/dist/mcp/__tests__/server.property.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/server.property.test.js +0 -286
- package/dist/mcp/__tests__/server.property.test.js.map +0 -1
- package/dist/mcp/__tests__/server.test.d.ts +0 -2
- package/dist/mcp/__tests__/server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/server.test.js +0 -101
- package/dist/mcp/__tests__/server.test.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -5
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -5
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -65
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -242
- package/dist/mcp/server.js.map +0 -1
- package/dist/publish/__tests__/publish-utils.test.d.ts +0 -5
- package/dist/publish/__tests__/publish-utils.test.d.ts.map +0 -1
- package/dist/publish/__tests__/publish-utils.test.js +0 -189
- package/dist/publish/__tests__/publish-utils.test.js.map +0 -1
- package/dist/publish/index.d.ts +0 -8
- package/dist/publish/index.d.ts.map +0 -1
- package/dist/publish/index.js +0 -8
- package/dist/publish/index.js.map +0 -1
- package/dist/publish/publish-utils.d.ts +0 -74
- package/dist/publish/publish-utils.d.ts.map +0 -1
- package/dist/publish/publish-utils.js +0 -170
- package/dist/publish/publish-utils.js.map +0 -1
- package/dist/query/__tests__/deprecation-parser.test.d.ts +0 -2
- package/dist/query/__tests__/deprecation-parser.test.d.ts.map +0 -1
- package/dist/query/__tests__/deprecation-parser.test.js +0 -154
- package/dist/query/__tests__/deprecation-parser.test.js.map +0 -1
- package/dist/query/__tests__/deprecation-query.test.d.ts +0 -2
- package/dist/query/__tests__/deprecation-query.test.d.ts.map +0 -1
- package/dist/query/__tests__/deprecation-query.test.js +0 -199
- package/dist/query/__tests__/deprecation-query.test.js.map +0 -1
- package/dist/query/__tests__/index-builder-debug.test.d.ts +0 -2
- package/dist/query/__tests__/index-builder-debug.test.d.ts.map +0 -1
- package/dist/query/__tests__/index-builder-debug.test.js +0 -34
- package/dist/query/__tests__/index-builder-debug.test.js.map +0 -1
- package/dist/query/__tests__/index-builder.property.test.d.ts +0 -2
- package/dist/query/__tests__/index-builder.property.test.d.ts.map +0 -1
- package/dist/query/__tests__/index-builder.property.test.js +0 -422
- package/dist/query/__tests__/index-builder.property.test.js.map +0 -1
- package/dist/query/__tests__/index-builder.test.d.ts +0 -2
- package/dist/query/__tests__/index-builder.test.d.ts.map +0 -1
- package/dist/query/__tests__/index-builder.test.js +0 -55
- package/dist/query/__tests__/index-builder.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter-deprecation.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter-deprecation.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter-deprecation.test.js +0 -159
- package/dist/query/__tests__/result-formatter-deprecation.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter.integration.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter.integration.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter.integration.test.js +0 -140
- package/dist/query/__tests__/result-formatter.integration.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter.property.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter.property.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter.property.test.js +0 -163
- package/dist/query/__tests__/result-formatter.property.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter.test.js +0 -85
- package/dist/query/__tests__/result-formatter.test.js.map +0 -1
- package/dist/query/__tests__/search-engine.property.test.d.ts +0 -2
- package/dist/query/__tests__/search-engine.property.test.d.ts.map +0 -1
- package/dist/query/__tests__/search-engine.property.test.js +0 -389
- package/dist/query/__tests__/search-engine.property.test.js.map +0 -1
- package/dist/query/component-query.d.ts +0 -33
- package/dist/query/component-query.d.ts.map +0 -1
- package/dist/query/component-query.js +0 -63
- package/dist/query/component-query.js.map +0 -1
- package/dist/query/deprecation-parser.d.ts +0 -46
- package/dist/query/deprecation-parser.d.ts.map +0 -1
- package/dist/query/deprecation-parser.js +0 -81
- package/dist/query/deprecation-parser.js.map +0 -1
- package/dist/query/deprecation-query.d.ts +0 -19
- package/dist/query/deprecation-query.d.ts.map +0 -1
- package/dist/query/deprecation-query.js +0 -73
- package/dist/query/deprecation-query.js.map +0 -1
- package/dist/query/index-builder.d.ts +0 -79
- package/dist/query/index-builder.d.ts.map +0 -1
- package/dist/query/index-builder.js +0 -217
- package/dist/query/index-builder.js.map +0 -1
- package/dist/query/index.d.ts +0 -5
- package/dist/query/index.d.ts.map +0 -1
- package/dist/query/index.js +0 -6
- package/dist/query/index.js.map +0 -1
- package/dist/query/result-formatter.d.ts +0 -135
- package/dist/query/result-formatter.d.ts.map +0 -1
- package/dist/query/result-formatter.js +0 -226
- package/dist/query/result-formatter.js.map +0 -1
- package/dist/query/search-engine.d.ts +0 -54
- package/dist/query/search-engine.d.ts.map +0 -1
- package/dist/query/search-engine.js +0 -178
- package/dist/query/search-engine.js.map +0 -1
- package/dist/tools/__tests__/deprecation-tools.test.d.ts +0 -2
- package/dist/tools/__tests__/deprecation-tools.test.d.ts.map +0 -1
- package/dist/tools/__tests__/deprecation-tools.test.js +0 -178
- package/dist/tools/__tests__/deprecation-tools.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-docs.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-docs.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-docs.property.test.js +0 -594
- package/dist/tools/__tests__/get-component-docs.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-docs.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-docs.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-docs.test.js +0 -137
- package/dist/tools/__tests__/get-component-docs.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-examples.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-examples.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-examples.property.test.js +0 -245
- package/dist/tools/__tests__/get-component-examples.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-examples.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-examples.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-examples.test.js +0 -128
- package/dist/tools/__tests__/get-component-examples.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-inputs.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.property.test.js +0 -310
- package/dist/tools/__tests__/get-component-inputs.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-inputs.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.test.js +0 -245
- package/dist/tools/__tests__/get-component-inputs.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-outputs.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.property.test.js +0 -227
- package/dist/tools/__tests__/get-component-outputs.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-outputs.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.test.js +0 -189
- package/dist/tools/__tests__/get-component-outputs.test.js.map +0 -1
- package/dist/tools/__tests__/get-library-version.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-library-version.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-library-version.property.test.js +0 -115
- package/dist/tools/__tests__/get-library-version.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-library-version.test.d.ts +0 -2
- package/dist/tools/__tests__/get-library-version.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-library-version.test.js +0 -97
- package/dist/tools/__tests__/get-library-version.test.js.map +0 -1
- package/dist/tools/__tests__/list-components.property.test.d.ts +0 -2
- package/dist/tools/__tests__/list-components.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/list-components.property.test.js +0 -241
- package/dist/tools/__tests__/list-components.property.test.js.map +0 -1
- package/dist/tools/__tests__/list-components.test.d.ts +0 -2
- package/dist/tools/__tests__/list-components.test.d.ts.map +0 -1
- package/dist/tools/__tests__/list-components.test.js +0 -170
- package/dist/tools/__tests__/list-components.test.js.map +0 -1
- package/dist/tools/__tests__/search-components.test.d.ts +0 -2
- package/dist/tools/__tests__/search-components.test.d.ts.map +0 -1
- package/dist/tools/__tests__/search-components.test.js +0 -239
- package/dist/tools/__tests__/search-components.test.js.map +0 -1
- package/dist/tools/get-component-docs.d.ts +0 -43
- package/dist/tools/get-component-docs.d.ts.map +0 -1
- package/dist/tools/get-component-docs.js +0 -55
- package/dist/tools/get-component-docs.js.map +0 -1
- package/dist/tools/get-component-examples.d.ts +0 -45
- package/dist/tools/get-component-examples.d.ts.map +0 -1
- package/dist/tools/get-component-examples.js +0 -56
- package/dist/tools/get-component-examples.js.map +0 -1
- package/dist/tools/get-component-inputs.d.ts +0 -44
- package/dist/tools/get-component-inputs.d.ts.map +0 -1
- package/dist/tools/get-component-inputs.js +0 -55
- package/dist/tools/get-component-inputs.js.map +0 -1
- package/dist/tools/get-component-outputs.d.ts +0 -44
- package/dist/tools/get-component-outputs.d.ts.map +0 -1
- package/dist/tools/get-component-outputs.js +0 -55
- package/dist/tools/get-component-outputs.js.map +0 -1
- package/dist/tools/get-deprecation-info.d.ts +0 -42
- package/dist/tools/get-deprecation-info.d.ts.map +0 -1
- package/dist/tools/get-deprecation-info.js +0 -55
- package/dist/tools/get-deprecation-info.js.map +0 -1
- package/dist/tools/get-eui-cli-guide.d.ts +0 -33
- package/dist/tools/get-eui-cli-guide.d.ts.map +0 -1
- package/dist/tools/get-eui-cli-guide.js +0 -160
- package/dist/tools/get-eui-cli-guide.js.map +0 -1
- package/dist/tools/get-eui-cli-instructions.d.ts +0 -33
- package/dist/tools/get-eui-cli-instructions.d.ts.map +0 -1
- package/dist/tools/get-eui-cli-instructions.js +0 -375
- package/dist/tools/get-eui-cli-instructions.js.map +0 -1
- package/dist/tools/get-library-version.d.ts +0 -34
- package/dist/tools/get-library-version.d.ts.map +0 -1
- package/dist/tools/get-library-version.js +0 -62
- package/dist/tools/get-library-version.js.map +0 -1
- package/dist/tools/index.d.ts +0 -12
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -13
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/list-components.d.ts +0 -69
- package/dist/tools/list-components.d.ts.map +0 -1
- package/dist/tools/list-components.js +0 -84
- package/dist/tools/list-components.js.map +0 -1
- package/dist/tools/list-deprecated.d.ts +0 -47
- package/dist/tools/list-deprecated.d.ts.map +0 -1
- package/dist/tools/list-deprecated.js +0 -56
- package/dist/tools/list-deprecated.js.map +0 -1
- package/dist/tools/search-components.d.ts +0 -69
- package/dist/tools/search-components.d.ts.map +0 -1
- package/dist/tools/search-components.js +0 -98
- package/dist/tools/search-components.js.map +0 -1
- package/dist/types/compodoc.d.ts +0 -262
- package/dist/types/compodoc.d.ts.map +0 -1
- package/dist/types/compodoc.js +0 -5
- package/dist/types/compodoc.js.map +0 -1
- package/dist/types/deprecation.d.ts +0 -33
- package/dist/types/deprecation.d.ts.map +0 -1
- package/dist/types/deprecation.js +0 -5
- package/dist/types/deprecation.js.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -5
- package/dist/types/index.js.map +0 -1
- package/dist/utils/__tests__/credential-masking.property.test.d.ts +0 -2
- package/dist/utils/__tests__/credential-masking.property.test.d.ts.map +0 -1
- package/dist/utils/__tests__/credential-masking.property.test.js +0 -145
- package/dist/utils/__tests__/credential-masking.property.test.js.map +0 -1
- package/dist/utils/__tests__/credential-masking.test.d.ts +0 -2
- package/dist/utils/__tests__/credential-masking.test.d.ts.map +0 -1
- package/dist/utils/__tests__/credential-masking.test.js +0 -188
- package/dist/utils/__tests__/credential-masking.test.js.map +0 -1
- package/dist/utils/__tests__/errors.test.d.ts +0 -2
- package/dist/utils/__tests__/errors.test.d.ts.map +0 -1
- package/dist/utils/__tests__/errors.test.js +0 -110
- package/dist/utils/__tests__/errors.test.js.map +0 -1
- package/dist/utils/__tests__/integration.test.d.ts +0 -2
- package/dist/utils/__tests__/integration.test.d.ts.map +0 -1
- package/dist/utils/__tests__/integration.test.js +0 -136
- package/dist/utils/__tests__/integration.test.js.map +0 -1
- package/dist/utils/__tests__/logger.test.d.ts +0 -2
- package/dist/utils/__tests__/logger.test.d.ts.map +0 -1
- package/dist/utils/__tests__/logger.test.js +0 -90
- package/dist/utils/__tests__/logger.test.js.map +0 -1
- package/dist/utils/__tests__/retry.test.d.ts +0 -2
- package/dist/utils/__tests__/retry.test.d.ts.map +0 -1
- package/dist/utils/__tests__/retry.test.js +0 -84
- package/dist/utils/__tests__/retry.test.js.map +0 -1
- package/dist/utils/circuit-breaker.d.ts +0 -91
- package/dist/utils/circuit-breaker.d.ts.map +0 -1
- package/dist/utils/circuit-breaker.js +0 -186
- package/dist/utils/circuit-breaker.js.map +0 -1
- package/dist/utils/credential-masking.d.ts +0 -90
- package/dist/utils/credential-masking.d.ts.map +0 -1
- package/dist/utils/credential-masking.js +0 -201
- package/dist/utils/credential-masking.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -68
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -184
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -156
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -242
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -16
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -24
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -55
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/retry.d.ts +0 -19
- package/dist/utils/retry.d.ts.map +0 -1
- package/dist/utils/retry.js +0 -81
- package/dist/utils/retry.js.map +0 -1
- package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts +0 -2
- package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/changelog-commit-grouping.property.test.js +0 -297
- package/dist/version/__tests__/changelog-commit-grouping.property.test.js.map +0 -1
- package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts +0 -2
- package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/changelog-commit-parsing.property.test.js +0 -396
- package/dist/version/__tests__/changelog-commit-parsing.property.test.js.map +0 -1
- package/dist/version/__tests__/changelog-file-updates.property.test.d.ts +0 -11
- package/dist/version/__tests__/changelog-file-updates.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/changelog-file-updates.property.test.js +0 -452
- package/dist/version/__tests__/changelog-file-updates.property.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-action.property.test.d.ts +0 -8
- package/dist/version/__tests__/dry-run-action.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-action.property.test.js +0 -50
- package/dist/version/__tests__/dry-run-action.property.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-changelog.property.test.d.ts +0 -8
- package/dist/version/__tests__/dry-run-changelog.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-changelog.property.test.js +0 -53
- package/dist/version/__tests__/dry-run-changelog.property.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-utils.test.d.ts +0 -7
- package/dist/version/__tests__/dry-run-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-utils.test.js +0 -195
- package/dist/version/__tests__/dry-run-utils.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-version.property.test.d.ts +0 -8
- package/dist/version/__tests__/dry-run-version.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-version.property.test.js +0 -59
- package/dist/version/__tests__/dry-run-version.property.test.js.map +0 -1
- package/dist/version/__tests__/git-tag-annotation.property.test.d.ts +0 -11
- package/dist/version/__tests__/git-tag-annotation.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/git-tag-annotation.property.test.js +0 -271
- package/dist/version/__tests__/git-tag-annotation.property.test.js.map +0 -1
- package/dist/version/__tests__/git-tag-format.property.test.d.ts +0 -11
- package/dist/version/__tests__/git-tag-format.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/git-tag-format.property.test.js +0 -411
- package/dist/version/__tests__/git-tag-format.property.test.js.map +0 -1
- package/dist/version/__tests__/git-tag-utils.test.d.ts +0 -2
- package/dist/version/__tests__/git-tag-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/git-tag-utils.test.js +0 -142
- package/dist/version/__tests__/git-tag-utils.test.js.map +0 -1
- package/dist/version/__tests__/npm-tag-selection.property.test.d.ts +0 -2
- package/dist/version/__tests__/npm-tag-selection.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/npm-tag-selection.property.test.js +0 -79
- package/dist/version/__tests__/npm-tag-selection.property.test.js.map +0 -1
- package/dist/version/__tests__/release-title-format.property.test.d.ts +0 -11
- package/dist/version/__tests__/release-title-format.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/release-title-format.property.test.js +0 -422
- package/dist/version/__tests__/release-title-format.property.test.js.map +0 -1
- package/dist/version/__tests__/release-utils.test.d.ts +0 -7
- package/dist/version/__tests__/release-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/release-utils.test.js +0 -176
- package/dist/version/__tests__/release-utils.test.js.map +0 -1
- package/dist/version/__tests__/rollback-changelog.property.test.d.ts +0 -8
- package/dist/version/__tests__/rollback-changelog.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/rollback-changelog.property.test.js +0 -61
- package/dist/version/__tests__/rollback-changelog.property.test.js.map +0 -1
- package/dist/version/__tests__/rollback-utils.test.d.ts +0 -7
- package/dist/version/__tests__/rollback-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/rollback-utils.test.js +0 -74
- package/dist/version/__tests__/rollback-utils.test.js.map +0 -1
- package/dist/version/__tests__/version-manager.property.test.d.ts +0 -2
- package/dist/version/__tests__/version-manager.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/version-manager.property.test.js +0 -143
- package/dist/version/__tests__/version-manager.property.test.js.map +0 -1
- package/dist/version/__tests__/version-manager.test.d.ts +0 -2
- package/dist/version/__tests__/version-manager.test.d.ts.map +0 -1
- package/dist/version/__tests__/version-manager.test.js +0 -203
- package/dist/version/__tests__/version-manager.test.js.map +0 -1
- package/dist/version/changelog-file-utils.d.ts +0 -69
- package/dist/version/changelog-file-utils.d.ts.map +0 -1
- package/dist/version/changelog-file-utils.js +0 -161
- package/dist/version/changelog-file-utils.js.map +0 -1
- package/dist/version/changelog-utils.d.ts +0 -98
- package/dist/version/changelog-utils.d.ts.map +0 -1
- package/dist/version/changelog-utils.js +0 -200
- package/dist/version/changelog-utils.js.map +0 -1
- package/dist/version/dry-run-utils.d.ts +0 -108
- package/dist/version/dry-run-utils.d.ts.map +0 -1
- package/dist/version/dry-run-utils.js +0 -128
- package/dist/version/dry-run-utils.js.map +0 -1
- package/dist/version/git-tag-utils.d.ts +0 -50
- package/dist/version/git-tag-utils.d.ts.map +0 -1
- package/dist/version/git-tag-utils.js +0 -66
- package/dist/version/git-tag-utils.js.map +0 -1
- package/dist/version/index.d.ts +0 -11
- package/dist/version/index.d.ts.map +0 -1
- package/dist/version/index.js +0 -11
- package/dist/version/index.js.map +0 -1
- package/dist/version/release-utils.d.ts +0 -94
- package/dist/version/release-utils.d.ts.map +0 -1
- package/dist/version/release-utils.js +0 -170
- package/dist/version/release-utils.js.map +0 -1
- package/dist/version/rollback-utils.d.ts +0 -47
- package/dist/version/rollback-utils.d.ts.map +0 -1
- package/dist/version/rollback-utils.js +0 -73
- package/dist/version/rollback-utils.js.map +0 -1
- package/dist/version/version-manager.d.ts +0 -98
- package/dist/version/version-manager.d.ts.map +0 -1
- package/dist/version/version-manager.js +0 -154
- package/dist/version/version-manager.js.map +0 -1
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Property-based tests for PathTypeDetector
|
|
3
|
-
* Feature: url-based-documentation-path
|
|
4
|
-
* Validates: Requirements 1.1, 1.2, 1.3, 1.4
|
|
5
|
-
*/
|
|
6
|
-
import { describe, it, expect } from '@jest/globals';
|
|
7
|
-
import * as fc from 'fast-check';
|
|
8
|
-
import { PathTypeDetector, PathType } from '../path-type-detector.js';
|
|
9
|
-
describe('PathTypeDetector Property Tests', () => {
|
|
10
|
-
describe('Property 1: Valid URL Acceptance', () => {
|
|
11
|
-
it('should accept all valid HTTP URLs', () => {
|
|
12
|
-
fc.assert(fc.property(
|
|
13
|
-
// Generate valid HTTP URLs
|
|
14
|
-
fc.record({
|
|
15
|
-
protocol: fc.constant('http'),
|
|
16
|
-
hostname: fc.oneof(fc.constant('localhost'), fc.constant('example.com'), fc.constant('api.example.com'), fc.constant('192.168.1.1'), fc.webUrl({ validSchemes: ['http'] }).map(url => new URL(url).hostname)),
|
|
17
|
-
port: fc.option(fc.integer({ min: 1, max: 65535 }), { nil: undefined }),
|
|
18
|
-
path: fc.option(fc.oneof(fc.constant(''), fc.constant('/'), fc.constant('/path'), fc.constant('/path/to/file.json'), fc.constant('/api/v1/docs')), { nil: '' }),
|
|
19
|
-
query: fc.option(fc.oneof(fc.constant(''), fc.constant('?key=value'), fc.constant('?foo=bar&baz=qux')), { nil: '' }),
|
|
20
|
-
}).map(({ protocol, hostname, port, path, query }) => {
|
|
21
|
-
const portStr = port ? `:${port}` : '';
|
|
22
|
-
return `${protocol}://${hostname}${portStr}${path}${query}`;
|
|
23
|
-
}), (httpUrl) => {
|
|
24
|
-
// When validating an HTTP URL
|
|
25
|
-
const isValid = PathTypeDetector.isValidUrl(httpUrl);
|
|
26
|
-
const isRemote = PathTypeDetector.isRemoteUrl(httpUrl);
|
|
27
|
-
const pathInfo = PathTypeDetector.detect(httpUrl);
|
|
28
|
-
// Then it should be accepted as valid
|
|
29
|
-
expect(isValid).toBe(true);
|
|
30
|
-
expect(isRemote).toBe(true);
|
|
31
|
-
expect(pathInfo.type).toBe(PathType.HTTP_URL);
|
|
32
|
-
expect(pathInfo.originalPath).toBe(httpUrl);
|
|
33
|
-
}), { numRuns: 20 });
|
|
34
|
-
});
|
|
35
|
-
it('should accept all valid HTTPS URLs', () => {
|
|
36
|
-
fc.assert(fc.property(
|
|
37
|
-
// Generate valid HTTPS URLs
|
|
38
|
-
fc.record({
|
|
39
|
-
protocol: fc.constant('https'),
|
|
40
|
-
hostname: fc.oneof(fc.constant('localhost'), fc.constant('example.com'), fc.constant('api.example.com'), fc.constant('secure.example.org'), fc.webUrl({ validSchemes: ['https'] }).map(url => new URL(url).hostname)),
|
|
41
|
-
port: fc.option(fc.integer({ min: 1, max: 65535 }), { nil: undefined }),
|
|
42
|
-
path: fc.option(fc.oneof(fc.constant(''), fc.constant('/'), fc.constant('/path'), fc.constant('/path/to/file.json'), fc.constant('/api/v1/docs')), { nil: '' }),
|
|
43
|
-
query: fc.option(fc.oneof(fc.constant(''), fc.constant('?key=value'), fc.constant('?foo=bar&baz=qux')), { nil: '' }),
|
|
44
|
-
}).map(({ protocol, hostname, port, path, query }) => {
|
|
45
|
-
const portStr = port ? `:${port}` : '';
|
|
46
|
-
return `${protocol}://${hostname}${portStr}${path}${query}`;
|
|
47
|
-
}), (httpsUrl) => {
|
|
48
|
-
// When validating an HTTPS URL
|
|
49
|
-
const isValid = PathTypeDetector.isValidUrl(httpsUrl);
|
|
50
|
-
const isRemote = PathTypeDetector.isRemoteUrl(httpsUrl);
|
|
51
|
-
const pathInfo = PathTypeDetector.detect(httpsUrl);
|
|
52
|
-
// Then it should be accepted as valid
|
|
53
|
-
expect(isValid).toBe(true);
|
|
54
|
-
expect(isRemote).toBe(true);
|
|
55
|
-
expect(pathInfo.type).toBe(PathType.HTTPS_URL);
|
|
56
|
-
expect(pathInfo.originalPath).toBe(httpsUrl);
|
|
57
|
-
}), { numRuns: 20 });
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
describe('Property 2: Valid Local Path Acceptance', () => {
|
|
61
|
-
it('should accept all valid local file paths', () => {
|
|
62
|
-
fc.assert(fc.property(
|
|
63
|
-
// Generate valid local paths
|
|
64
|
-
fc.oneof(
|
|
65
|
-
// Absolute paths
|
|
66
|
-
fc.constant('/usr/local/docs/documentation.json'), fc.constant('/home/user/project/docs.json'), fc.constant('/var/lib/data.json'), fc.constant('C:\\Users\\Documents\\file.json'), fc.constant('D:\\Projects\\docs\\data.json'),
|
|
67
|
-
// Relative paths
|
|
68
|
-
fc.constant('./documentation.json'), fc.constant('../docs/documentation.json'), fc.constant('docs/documentation.json'), fc.constant('./path/to/file.json'), fc.constant('relative/path.json'),
|
|
69
|
-
// Paths with spaces
|
|
70
|
-
fc.constant('/path/with spaces/file.json'), fc.constant('./my documents/data.json'),
|
|
71
|
-
// Paths with special characters
|
|
72
|
-
fc.constant('/path/with-dashes/file.json'), fc.constant('./path_with_underscores/file.json'), fc.constant('/path/with.dots/file.json')), (localPath) => {
|
|
73
|
-
// When validating a local path
|
|
74
|
-
const isRemote = PathTypeDetector.isRemoteUrl(localPath);
|
|
75
|
-
const pathInfo = PathTypeDetector.detect(localPath);
|
|
76
|
-
// Then it should be accepted as a local path
|
|
77
|
-
expect(isRemote).toBe(false);
|
|
78
|
-
expect(pathInfo.type).toBe(PathType.LOCAL);
|
|
79
|
-
expect(pathInfo.originalPath).toBe(localPath);
|
|
80
|
-
expect(pathInfo.normalizedPath).toBe(localPath.trim());
|
|
81
|
-
}), { numRuns: 20 });
|
|
82
|
-
});
|
|
83
|
-
it('should handle paths with leading/trailing whitespace', () => {
|
|
84
|
-
fc.assert(fc.property(fc.oneof(fc.constant('./documentation.json'), fc.constant('/usr/local/docs/file.json'), fc.constant('relative/path.json')), fc.nat({ max: 5 }), fc.nat({ max: 5 }), (basePath, leadingSpaces, trailingSpaces) => {
|
|
85
|
-
// Create path with whitespace
|
|
86
|
-
const pathWithWhitespace = ' '.repeat(leadingSpaces) + basePath + ' '.repeat(trailingSpaces);
|
|
87
|
-
// When detecting path type
|
|
88
|
-
const pathInfo = PathTypeDetector.detect(pathWithWhitespace);
|
|
89
|
-
// Then it should normalize the path
|
|
90
|
-
expect(pathInfo.type).toBe(PathType.LOCAL);
|
|
91
|
-
expect(pathInfo.originalPath).toBe(pathWithWhitespace);
|
|
92
|
-
expect(pathInfo.normalizedPath).toBe(basePath);
|
|
93
|
-
}), { numRuns: 20 });
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
describe('Property 3: Invalid URL Rejection', () => {
|
|
97
|
-
it('should reject URLs with invalid protocols', () => {
|
|
98
|
-
fc.assert(fc.property(
|
|
99
|
-
// Generate URLs with invalid protocols
|
|
100
|
-
fc.oneof(fc.constant('ftp://example.com/file.json'), fc.constant('file://localhost/path/to/file.json'), fc.constant('ws://example.com/socket'), fc.constant('wss://example.com/socket'), fc.constant('ssh://user@host/path'), fc.constant('git://github.com/repo.git'), fc.constant('mailto:user@example.com'), fc.constant('tel:+1234567890')), (invalidProtocolUrl) => {
|
|
101
|
-
// When checking if it's a remote URL
|
|
102
|
-
const isRemote = PathTypeDetector.isRemoteUrl(invalidProtocolUrl);
|
|
103
|
-
const pathInfo = PathTypeDetector.detect(invalidProtocolUrl);
|
|
104
|
-
// Then it should be rejected as a remote URL
|
|
105
|
-
expect(isRemote).toBe(false);
|
|
106
|
-
// It should be treated as a local path (fallback behavior)
|
|
107
|
-
expect(pathInfo.type).toBe(PathType.LOCAL);
|
|
108
|
-
}), { numRuns: 20 });
|
|
109
|
-
});
|
|
110
|
-
it('should reject malformed URLs', () => {
|
|
111
|
-
fc.assert(fc.property(
|
|
112
|
-
// Generate malformed URLs that should be rejected
|
|
113
|
-
fc.oneof(fc.constant('http://'), fc.constant('https://'), fc.constant('://example.com'), fc.constant('http:/example.com'), fc.constant('http//example.com'), fc.constant('htp://example.com'), fc.constant('not a url at all'), fc.constant('just some text'), fc.constant('')), (malformedUrl) => {
|
|
114
|
-
// When validating a malformed URL
|
|
115
|
-
const isValid = PathTypeDetector.isValidUrl(malformedUrl);
|
|
116
|
-
const isRemote = PathTypeDetector.isRemoteUrl(malformedUrl);
|
|
117
|
-
// Then it should be rejected as a remote URL
|
|
118
|
-
expect(isRemote).toBe(false);
|
|
119
|
-
// Empty string should also fail isValidUrl
|
|
120
|
-
if (malformedUrl === '') {
|
|
121
|
-
expect(isValid).toBe(false);
|
|
122
|
-
}
|
|
123
|
-
}), { numRuns: 20 });
|
|
124
|
-
});
|
|
125
|
-
it('should handle edge cases gracefully', () => {
|
|
126
|
-
fc.assert(fc.property(fc.oneof(
|
|
127
|
-
// URLs with unusual but technically valid formats
|
|
128
|
-
fc.constant('http://localhost'), fc.constant('https://127.0.0.1'), fc.constant('http://[::1]'), // IPv6
|
|
129
|
-
fc.constant('http://example.com:8080'), fc.constant('https://example.com/path?query=value#fragment'),
|
|
130
|
-
// Paths that might look like URLs
|
|
131
|
-
fc.constant('http:relative/path'), fc.constant('https:another/path'), fc.constant('http_not_a_url'), fc.constant('https_also_not_url')), (edgeCase) => {
|
|
132
|
-
// When detecting path type
|
|
133
|
-
const pathInfo = PathTypeDetector.detect(edgeCase);
|
|
134
|
-
// Then it should make a consistent decision
|
|
135
|
-
expect(pathInfo.type).toBeDefined();
|
|
136
|
-
expect([PathType.LOCAL, PathType.HTTP_URL, PathType.HTTPS_URL]).toContain(pathInfo.type);
|
|
137
|
-
expect(pathInfo.originalPath).toBe(edgeCase);
|
|
138
|
-
expect(pathInfo.normalizedPath).toBe(edgeCase.trim());
|
|
139
|
-
}), { numRuns: 20 });
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
describe('Property 4: Path Type Detection', () => {
|
|
143
|
-
it('should correctly determine path type for HTTP URLs', () => {
|
|
144
|
-
fc.assert(fc.property(
|
|
145
|
-
// Generate valid HTTP URLs
|
|
146
|
-
fc.record({
|
|
147
|
-
protocol: fc.constant('http'),
|
|
148
|
-
hostname: fc.oneof(fc.constant('localhost'), fc.constant('example.com'), fc.constant('api.example.com'), fc.constant('192.168.1.1')),
|
|
149
|
-
port: fc.option(fc.integer({ min: 1, max: 65535 }), { nil: undefined }),
|
|
150
|
-
path: fc.option(fc.oneof(fc.constant(''), fc.constant('/'), fc.constant('/path/to/file.json'), fc.constant('/api/v1/docs')), { nil: '' }),
|
|
151
|
-
}).map(({ protocol, hostname, port, path }) => {
|
|
152
|
-
const portStr = port ? `:${port}` : '';
|
|
153
|
-
return `${protocol}://${hostname}${portStr}${path}`;
|
|
154
|
-
}), (httpUrl) => {
|
|
155
|
-
// When detecting path type for an HTTP URL
|
|
156
|
-
const pathInfo = PathTypeDetector.detect(httpUrl);
|
|
157
|
-
// Then it should correctly identify it as HTTP_URL
|
|
158
|
-
expect(pathInfo.type).toBe(PathType.HTTP_URL);
|
|
159
|
-
expect(pathInfo.originalPath).toBe(httpUrl);
|
|
160
|
-
expect(pathInfo.normalizedPath).toBe(httpUrl);
|
|
161
|
-
}), { numRuns: 100 });
|
|
162
|
-
});
|
|
163
|
-
it('should correctly determine path type for HTTPS URLs', () => {
|
|
164
|
-
fc.assert(fc.property(
|
|
165
|
-
// Generate valid HTTPS URLs
|
|
166
|
-
fc.record({
|
|
167
|
-
protocol: fc.constant('https'),
|
|
168
|
-
hostname: fc.oneof(fc.constant('localhost'), fc.constant('example.com'), fc.constant('secure.example.org'), fc.constant('api.github.com')),
|
|
169
|
-
port: fc.option(fc.integer({ min: 1, max: 65535 }), { nil: undefined }),
|
|
170
|
-
path: fc.option(fc.oneof(fc.constant(''), fc.constant('/'), fc.constant('/path/to/file.json'), fc.constant('/api/v1/docs')), { nil: '' }),
|
|
171
|
-
}).map(({ protocol, hostname, port, path }) => {
|
|
172
|
-
const portStr = port ? `:${port}` : '';
|
|
173
|
-
return `${protocol}://${hostname}${portStr}${path}`;
|
|
174
|
-
}), (httpsUrl) => {
|
|
175
|
-
// When detecting path type for an HTTPS URL
|
|
176
|
-
const pathInfo = PathTypeDetector.detect(httpsUrl);
|
|
177
|
-
// Then it should correctly identify it as HTTPS_URL
|
|
178
|
-
expect(pathInfo.type).toBe(PathType.HTTPS_URL);
|
|
179
|
-
expect(pathInfo.originalPath).toBe(httpsUrl);
|
|
180
|
-
expect(pathInfo.normalizedPath).toBe(httpsUrl);
|
|
181
|
-
}), { numRuns: 100 });
|
|
182
|
-
});
|
|
183
|
-
it('should correctly determine path type for local paths', () => {
|
|
184
|
-
fc.assert(fc.property(
|
|
185
|
-
// Generate various local path formats
|
|
186
|
-
fc.oneof(
|
|
187
|
-
// Absolute Unix paths
|
|
188
|
-
fc.constant('/usr/local/docs/documentation.json'), fc.constant('/home/user/project/docs.json'), fc.constant('/var/lib/data.json'),
|
|
189
|
-
// Absolute Windows paths
|
|
190
|
-
fc.constant('C:\\Users\\Documents\\file.json'), fc.constant('D:\\Projects\\docs\\data.json'),
|
|
191
|
-
// Relative paths
|
|
192
|
-
fc.constant('./documentation.json'), fc.constant('../docs/documentation.json'), fc.constant('docs/documentation.json'), fc.constant('./path/to/file.json'), fc.constant('relative/path.json'),
|
|
193
|
-
// Paths with special characters
|
|
194
|
-
fc.constant('/path/with spaces/file.json'), fc.constant('./path-with-dashes/file.json'), fc.constant('./path_with_underscores/file.json'), fc.constant('/path/with.dots/file.json')), (localPath) => {
|
|
195
|
-
// When detecting path type for a local path
|
|
196
|
-
const pathInfo = PathTypeDetector.detect(localPath);
|
|
197
|
-
// Then it should correctly identify it as LOCAL
|
|
198
|
-
expect(pathInfo.type).toBe(PathType.LOCAL);
|
|
199
|
-
expect(pathInfo.originalPath).toBe(localPath);
|
|
200
|
-
expect(pathInfo.normalizedPath).toBe(localPath.trim());
|
|
201
|
-
}), { numRuns: 100 });
|
|
202
|
-
});
|
|
203
|
-
it('should correctly determine path type for ambiguous strings', () => {
|
|
204
|
-
fc.assert(fc.property(
|
|
205
|
-
// Generate strings that might be ambiguous
|
|
206
|
-
fc.oneof(
|
|
207
|
-
// Invalid protocols (should be treated as local)
|
|
208
|
-
fc.constant('ftp://example.com/file.json'), fc.constant('file://localhost/path/to/file.json'), fc.constant('ws://example.com/socket'),
|
|
209
|
-
// Malformed URLs (should be treated as local)
|
|
210
|
-
fc.constant('http://'), fc.constant('https://'), fc.constant('http:/example.com'), fc.constant('http//example.com'),
|
|
211
|
-
// Strings that look like URLs but aren't
|
|
212
|
-
fc.constant('http:relative/path'), fc.constant('https:another/path'), fc.constant('http_not_a_url'),
|
|
213
|
-
// Plain text (should be treated as local)
|
|
214
|
-
fc.constant('not a url at all'), fc.constant('just some text'), fc.constant('documentation.json')), (ambiguousPath) => {
|
|
215
|
-
// When detecting path type for an ambiguous string
|
|
216
|
-
const pathInfo = PathTypeDetector.detect(ambiguousPath);
|
|
217
|
-
// Then it should make a consistent determination
|
|
218
|
-
expect(pathInfo.type).toBeDefined();
|
|
219
|
-
expect([PathType.LOCAL, PathType.HTTP_URL, PathType.HTTPS_URL]).toContain(pathInfo.type);
|
|
220
|
-
expect(pathInfo.originalPath).toBe(ambiguousPath);
|
|
221
|
-
expect(pathInfo.normalizedPath).toBe(ambiguousPath.trim());
|
|
222
|
-
// If it's not a valid HTTP/HTTPS URL, it should be LOCAL
|
|
223
|
-
const isRemote = PathTypeDetector.isRemoteUrl(ambiguousPath);
|
|
224
|
-
if (!isRemote) {
|
|
225
|
-
expect(pathInfo.type).toBe(PathType.LOCAL);
|
|
226
|
-
}
|
|
227
|
-
}), { numRuns: 100 });
|
|
228
|
-
});
|
|
229
|
-
it('should handle whitespace consistently across all path types', () => {
|
|
230
|
-
fc.assert(fc.property(fc.oneof(fc.constant('http://example.com/file.json'), fc.constant('https://secure.example.com/docs'), fc.constant('./local/path.json'), fc.constant('/absolute/path.json'), fc.constant('relative/path.json')), fc.nat({ max: 5 }), fc.nat({ max: 5 }), (basePath, leadingSpaces, trailingSpaces) => {
|
|
231
|
-
// Create path with whitespace
|
|
232
|
-
const pathWithWhitespace = ' '.repeat(leadingSpaces) + basePath + ' '.repeat(trailingSpaces);
|
|
233
|
-
// When detecting path type
|
|
234
|
-
const pathInfo = PathTypeDetector.detect(pathWithWhitespace);
|
|
235
|
-
// Then it should normalize the path and detect type correctly
|
|
236
|
-
expect(pathInfo.originalPath).toBe(pathWithWhitespace);
|
|
237
|
-
expect(pathInfo.normalizedPath).toBe(basePath);
|
|
238
|
-
// The type should match what we'd get without whitespace
|
|
239
|
-
const expectedPathInfo = PathTypeDetector.detect(basePath);
|
|
240
|
-
expect(pathInfo.type).toBe(expectedPathInfo.type);
|
|
241
|
-
}), { numRuns: 100 });
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
//# sourceMappingURL=path-type-detector.property.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-type-detector.property.test.js","sourceRoot":"","sources":["../../../src/loader/__tests__/path-type-detector.property.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEtE,QAAQ,CAAC,iCAAiC,EAAE,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