@unispechq/unispec-core 0.3.3 → 0.3.4
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/{src/cache → cache}/cache-factory.d.ts +2 -2
- package/dist/{src/cache → cache}/cache-factory.js +1 -1
- package/dist/{src/cache → cache}/cache-manager.d.ts +2 -2
- package/dist/{src/cache → cache}/cache-manager.js +2 -2
- package/dist/{src/cache → cache}/hash-utils.d.ts +1 -1
- package/dist/{src/cache → cache}/hash-utils.js +1 -1
- package/dist/{src/cache → cache}/hashing.d.ts +1 -1
- package/dist/{src/cache → cache}/hashing.js +1 -1
- package/dist/{src/cache → cache}/index.d.ts +6 -6
- package/dist/{src/cache → cache}/index.js +5 -5
- package/dist/{src/cache → cache}/lru-cache.d.ts +1 -1
- package/dist/{src/cache → cache}/lru-cache.js +1 -1
- package/dist/{src/diff → diff}/annotators.d.ts +1 -1
- package/dist/{src/diff → diff}/change-reports.d.ts +1 -1
- package/dist/{src/diff → diff}/core.d.ts +2 -2
- package/dist/{src/diff → diff}/core.js +2 -2
- package/dist/{src/diff → diff}/enhanced-diff.d.ts +3 -3
- package/dist/{src/diff → diff}/enhanced-diff.js +5 -5
- package/dist/{src/diff → diff}/impact-strategies-refactored.d.ts +2 -2
- package/dist/{src/diff → diff}/impact-strategies.d.ts +2 -2
- package/dist/diff/index.d.ts +8 -0
- package/dist/diff/index.js +11 -0
- package/dist/{src/diff → diff}/metrics-calculator.d.ts +1 -1
- package/dist/{src/diff → diff}/risk-calculator.d.ts +1 -1
- package/dist/{src/diff → diff}/suggestion-generator.d.ts +2 -2
- package/dist/{src/errors → errors}/config-error.d.ts +1 -1
- package/dist/{src/errors → errors}/config-error.js +1 -1
- package/dist/{src/errors → errors}/error-factory.d.ts +7 -7
- package/dist/{src/errors → errors}/error-factory.js +7 -7
- package/dist/errors/index.d.ts +8 -0
- package/dist/errors/index.js +8 -0
- package/dist/{src/errors → errors}/loader-error.d.ts +1 -1
- package/dist/{src/errors → errors}/loader-error.js +1 -1
- package/dist/{src/errors → errors}/reference-error.d.ts +1 -1
- package/dist/{src/errors → errors}/reference-error.js +1 -1
- package/dist/{src/errors → errors}/schema-error.d.ts +1 -1
- package/dist/{src/errors → errors}/schema-error.js +1 -1
- package/dist/{src/errors → errors}/security-error.d.ts +1 -1
- package/dist/{src/errors → errors}/security-error.js +1 -1
- package/dist/{src/errors → errors}/semantic-error.d.ts +1 -1
- package/dist/{src/errors → errors}/semantic-error.js +1 -1
- package/dist/index.cjs +59 -0
- package/dist/index.d.ts +13 -0
- package/dist/{src/index.js → index.js} +13 -13
- package/dist/loader/index.d.ts +5 -0
- package/dist/loader/index.js +5 -0
- package/dist/{src/loader → loader}/security-validator.d.ts +1 -1
- package/dist/{src/loader → loader}/security-validator.js +1 -1
- package/dist/{src/loader → loader}/unispec-loader.d.ts +2 -2
- package/dist/{src/loader → loader}/unispec-loader.js +3 -3
- package/dist/{src/loader → loader}/yaml-loader.d.ts +1 -1
- package/dist/{src/loader → loader}/yaml-loader.js +1 -1
- package/dist/{src/normalizer → normalizer}/core.d.ts +2 -2
- package/dist/{src/normalizer → normalizer}/core.js +4 -4
- package/dist/{src/normalizer → normalizer}/graphql-normalizer.d.ts +1 -1
- package/dist/normalizer/index.d.ts +2 -0
- package/dist/{src/normalizer → normalizer}/index.js +1 -1
- package/dist/{src/normalizer → normalizer}/rest-normalizer.d.ts +1 -1
- package/dist/{src/normalizer → normalizer}/types.d.ts +1 -1
- package/dist/{src/normalizer → normalizer}/websocket-normalizer.d.ts +1 -1
- package/dist/{src/optimizer → optimizer}/core.d.ts +2 -2
- package/dist/{src/optimizer → optimizer}/core.js +2 -2
- package/dist/{src/optimizer → optimizer}/index.d.ts +4 -4
- package/dist/{src/optimizer → optimizer}/index.js +3 -3
- package/dist/{src/optimizer → optimizer}/optimization-functions.d.ts +2 -2
- package/dist/{src/optimizer → optimizer}/optimization-functions.js +2 -2
- package/dist/{src/optimizer → optimizer}/types.d.ts +1 -1
- package/dist/{src/schemas → schemas}/dedupe.d.ts +1 -1
- package/dist/{src/schemas → schemas}/dedupe.js +1 -1
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.js +6 -0
- package/dist/{src/schemas → schemas}/resolver.d.ts +1 -1
- package/dist/{src/schemas → schemas}/resolver.js +1 -1
- package/dist/{src/validator → validator}/ajv-validator.d.ts +1 -1
- package/dist/{src/validator → validator}/ajv-validator.js +1 -1
- package/dist/{src/validator → validator}/config-validator-main.d.ts +2 -2
- package/dist/{src/validator → validator}/config-validator-main.js +4 -4
- package/dist/{src/validator → validator}/config-validator.d.ts +1 -1
- package/dist/{src/validator → validator}/config-validator.js +1 -1
- package/dist/validator/index.d.ts +10 -0
- package/dist/validator/index.js +11 -0
- package/dist/{src/validator → validator}/reference-validator.d.ts +1 -1
- package/dist/{src/validator → validator}/reference-validator.js +1 -1
- package/dist/{src/validator → validator}/schema-references.d.ts +1 -1
- package/dist/{src/validator → validator}/semantic-validator.d.ts +1 -1
- package/dist/{src/validator → validator}/tests-validator.d.ts +2 -2
- package/dist/{src/validator → validator}/tests-validator.js +2 -2
- package/dist/{src/validator → validator}/types.d.ts +3 -3
- package/dist/{src/validator → validator}/unispec-validator.d.ts +2 -2
- package/dist/{src/validator → validator}/unispec-validator.js +5 -5
- package/dist/{src/validator → validator}/validator-factory.d.ts +3 -3
- package/dist/{src/validator → validator}/validator-factory.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/tests/cache/cache.test.js +0 -274
- package/dist/cjs/tests/cache/utils.js +0 -32
- package/dist/cjs/tests/concurrency-normalizer-optimizer.test.js +0 -1
- package/dist/cjs/tests/diff/diff-annotators.test.js +0 -280
- package/dist/cjs/tests/diff/diff-comprehensive.test.js +0 -262
- package/dist/cjs/tests/diff/diff-extended.test.js +0 -235
- package/dist/cjs/tests/diff/diff.test.js +0 -189
- package/dist/cjs/tests/diff/utils.js +0 -8
- package/dist/cjs/tests/errors/errors-integration.test.js +0 -173
- package/dist/cjs/tests/errors/errors.test.js +0 -280
- package/dist/cjs/tests/errors/utils.js +0 -7
- package/dist/cjs/tests/loader/integration.test.js +0 -216
- package/dist/cjs/tests/loader/loader.test.js +0 -341
- package/dist/cjs/tests/normalizer/normalizer-comprehensive.test.js +0 -648
- package/dist/cjs/tests/normalizer/normalizer-invalid.test.js +0 -258
- package/dist/cjs/tests/normalizer/normalizer-valid.test.js +0 -238
- package/dist/cjs/tests/normalizer/utils.js +0 -47
- package/dist/cjs/tests/optimizer/compress-references.test.js +0 -304
- package/dist/cjs/tests/optimizer/deduplication.test.js +0 -132
- package/dist/cjs/tests/optimizer/integration.test.js +0 -131
- package/dist/cjs/tests/optimizer/optimization-report.test.js +0 -222
- package/dist/cjs/tests/optimizer/optimize-document.test.js +0 -187
- package/dist/cjs/tests/optimizer/orphaned-schemas.test.js +0 -194
- package/dist/cjs/tests/optimizer/sort-schemas.test.js +0 -131
- package/dist/cjs/tests/optimizer/utils.js +0 -209
- package/dist/cjs/tests/schemas/schemas-edge-cases.test.js +0 -223
- package/dist/cjs/tests/schemas/schemas.test.js +0 -400
- package/dist/cjs/tests/schemas/utils.js +0 -7
- package/dist/cjs/tests/utils.js +0 -131
- package/dist/cjs/tests/validator/config-validator.test.js +0 -78
- package/dist/cjs/tests/validator/debug-config.js +0 -1
- package/dist/cjs/tests/validator/debug-missing-service.js +0 -1
- package/dist/cjs/tests/validator/debug-other-configs.js +0 -1
- package/dist/cjs/tests/validator/debug-references.js +0 -1
- package/dist/cjs/tests/validator/unispec-validator.test.js +0 -103
- package/dist/cjs/tests/validator/utils.js +0 -25
- package/dist/src/diff/index.d.ts +0 -8
- package/dist/src/diff/index.js +0 -11
- package/dist/src/errors/index.d.ts +0 -8
- package/dist/src/errors/index.js +0 -8
- package/dist/src/index.d.ts +0 -13
- package/dist/src/loader/index.d.ts +0 -5
- package/dist/src/loader/index.js +0 -5
- package/dist/src/normalizer/index.d.ts +0 -2
- package/dist/src/schemas/index.d.ts +0 -3
- package/dist/src/schemas/index.js +0 -6
- package/dist/src/validator/index.d.ts +0 -10
- package/dist/src/validator/index.js +0 -11
- package/dist/tests/cache/cache.test.d.ts +0 -1
- package/dist/tests/cache/cache.test.js +0 -269
- package/dist/tests/cache/utils.d.ts +0 -4
- package/dist/tests/cache/utils.js +0 -24
- package/dist/tests/concurrency-normalizer-optimizer.test.d.ts +0 -0
- package/dist/tests/concurrency-normalizer-optimizer.test.js +0 -1
- package/dist/tests/diff/diff-annotators.test.d.ts +0 -1
- package/dist/tests/diff/diff-annotators.test.js +0 -275
- package/dist/tests/diff/diff-comprehensive.test.d.ts +0 -1
- package/dist/tests/diff/diff-comprehensive.test.js +0 -257
- package/dist/tests/diff/diff-extended.test.d.ts +0 -1
- package/dist/tests/diff/diff-extended.test.js +0 -230
- package/dist/tests/diff/diff.test.d.ts +0 -1
- package/dist/tests/diff/diff.test.js +0 -184
- package/dist/tests/diff/utils.d.ts +0 -2
- package/dist/tests/diff/utils.js +0 -3
- package/dist/tests/errors/errors-integration.test.d.ts +0 -1
- package/dist/tests/errors/errors-integration.test.js +0 -168
- package/dist/tests/errors/errors.test.d.ts +0 -1
- package/dist/tests/errors/errors.test.js +0 -275
- package/dist/tests/errors/utils.d.ts +0 -2
- package/dist/tests/errors/utils.js +0 -3
- package/dist/tests/loader/integration.test.d.ts +0 -1
- package/dist/tests/loader/integration.test.js +0 -211
- package/dist/tests/loader/loader.test.d.ts +0 -1
- package/dist/tests/loader/loader.test.js +0 -336
- package/dist/tests/normalizer/normalizer-comprehensive.test.d.ts +0 -1
- package/dist/tests/normalizer/normalizer-comprehensive.test.js +0 -643
- package/dist/tests/normalizer/normalizer-invalid.test.d.ts +0 -1
- package/dist/tests/normalizer/normalizer-invalid.test.js +0 -253
- package/dist/tests/normalizer/normalizer-valid.test.d.ts +0 -1
- package/dist/tests/normalizer/normalizer-valid.test.js +0 -233
- package/dist/tests/normalizer/utils.d.ts +0 -18
- package/dist/tests/normalizer/utils.js +0 -36
- package/dist/tests/optimizer/compress-references.test.d.ts +0 -1
- package/dist/tests/optimizer/compress-references.test.js +0 -299
- package/dist/tests/optimizer/deduplication.test.d.ts +0 -1
- package/dist/tests/optimizer/deduplication.test.js +0 -127
- package/dist/tests/optimizer/integration.test.d.ts +0 -1
- package/dist/tests/optimizer/integration.test.js +0 -126
- package/dist/tests/optimizer/optimization-report.test.d.ts +0 -1
- package/dist/tests/optimizer/optimization-report.test.js +0 -217
- package/dist/tests/optimizer/optimize-document.test.d.ts +0 -1
- package/dist/tests/optimizer/optimize-document.test.js +0 -182
- package/dist/tests/optimizer/orphaned-schemas.test.d.ts +0 -1
- package/dist/tests/optimizer/orphaned-schemas.test.js +0 -189
- package/dist/tests/optimizer/sort-schemas.test.d.ts +0 -1
- package/dist/tests/optimizer/sort-schemas.test.js +0 -126
- package/dist/tests/optimizer/utils.d.ts +0 -8
- package/dist/tests/optimizer/utils.js +0 -199
- package/dist/tests/schemas/schemas-edge-cases.test.d.ts +0 -1
- package/dist/tests/schemas/schemas-edge-cases.test.js +0 -218
- package/dist/tests/schemas/schemas.test.d.ts +0 -1
- package/dist/tests/schemas/schemas.test.js +0 -395
- package/dist/tests/schemas/utils.d.ts +0 -2
- package/dist/tests/schemas/utils.js +0 -3
- package/dist/tests/utils.d.ts +0 -10
- package/dist/tests/utils.js +0 -118
- package/dist/tests/validator/config-validator.test.d.ts +0 -1
- package/dist/tests/validator/config-validator.test.js +0 -73
- package/dist/tests/validator/debug-config.d.ts +0 -0
- package/dist/tests/validator/debug-config.js +0 -1
- package/dist/tests/validator/debug-missing-service.d.ts +0 -0
- package/dist/tests/validator/debug-missing-service.js +0 -1
- package/dist/tests/validator/debug-other-configs.d.ts +0 -0
- package/dist/tests/validator/debug-other-configs.js +0 -1
- package/dist/tests/validator/debug-references.d.ts +0 -0
- package/dist/tests/validator/debug-references.js +0 -1
- package/dist/tests/validator/unispec-validator.test.d.ts +0 -1
- package/dist/tests/validator/unispec-validator.test.js +0 -98
- package/dist/tests/validator/utils.d.ts +0 -6
- package/dist/tests/validator/utils.js +0 -20
- /package/dist/{src/cache → cache}/constants.d.ts +0 -0
- /package/dist/{src/cache → cache}/constants.js +0 -0
- /package/dist/{src/cache → cache}/types.d.ts +0 -0
- /package/dist/{src/cache → cache}/types.js +0 -0
- /package/dist/cjs/{src/cache → cache}/cache-factory.js +0 -0
- /package/dist/cjs/{src/cache → cache}/cache-manager.js +0 -0
- /package/dist/cjs/{src/cache → cache}/constants.js +0 -0
- /package/dist/cjs/{src/cache → cache}/hash-utils.js +0 -0
- /package/dist/cjs/{src/cache → cache}/hashing.js +0 -0
- /package/dist/cjs/{src/cache → cache}/index.js +0 -0
- /package/dist/cjs/{src/cache → cache}/lru-cache.js +0 -0
- /package/dist/cjs/{src/cache → cache}/types.js +0 -0
- /package/dist/cjs/{src/diff → diff}/annotators.js +0 -0
- /package/dist/cjs/{src/diff → diff}/change-reports.js +0 -0
- /package/dist/cjs/{src/diff → diff}/core.js +0 -0
- /package/dist/cjs/{src/diff → diff}/enhanced-diff.js +0 -0
- /package/dist/cjs/{src/diff → diff}/impact-strategies-refactored.js +0 -0
- /package/dist/cjs/{src/diff → diff}/impact-strategies.js +0 -0
- /package/dist/cjs/{src/diff → diff}/index.js +0 -0
- /package/dist/cjs/{src/diff → diff}/metrics-calculator.js +0 -0
- /package/dist/cjs/{src/diff → diff}/risk-calculator.js +0 -0
- /package/dist/cjs/{src/diff → diff}/suggestion-generator.js +0 -0
- /package/dist/cjs/{src/diff → diff}/types.js +0 -0
- /package/dist/cjs/{src/errors → errors}/base-error.js +0 -0
- /package/dist/cjs/{src/errors → errors}/config-error.js +0 -0
- /package/dist/cjs/{src/errors → errors}/error-factory.js +0 -0
- /package/dist/cjs/{src/errors → errors}/index.js +0 -0
- /package/dist/cjs/{src/errors → errors}/loader-error.js +0 -0
- /package/dist/cjs/{src/errors → errors}/reference-error.js +0 -0
- /package/dist/cjs/{src/errors → errors}/schema-error.js +0 -0
- /package/dist/cjs/{src/errors → errors}/security-error.js +0 -0
- /package/dist/cjs/{src/errors → errors}/semantic-error.js +0 -0
- /package/dist/cjs/{src/generated-schemas.js → generated-schemas.js} +0 -0
- /package/dist/cjs/{src/index.js → index.js} +0 -0
- /package/dist/cjs/{src/loader → loader}/index.js +0 -0
- /package/dist/cjs/{src/loader → loader}/security-validator.js +0 -0
- /package/dist/cjs/{src/loader → loader}/types.js +0 -0
- /package/dist/cjs/{src/loader → loader}/unispec-loader.js +0 -0
- /package/dist/cjs/{src/loader → loader}/yaml-loader.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/core.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/graphql-normalizer.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/index.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/rest-normalizer.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/types.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/utils.js +0 -0
- /package/dist/cjs/{src/normalizer → normalizer}/websocket-normalizer.js +0 -0
- /package/dist/cjs/{src/optimizer → optimizer}/core.js +0 -0
- /package/dist/cjs/{src/optimizer → optimizer}/index.js +0 -0
- /package/dist/cjs/{src/optimizer → optimizer}/optimization-functions.js +0 -0
- /package/dist/cjs/{src/optimizer → optimizer}/types.js +0 -0
- /package/dist/cjs/{src/optimizer → optimizer}/utils.js +0 -0
- /package/dist/cjs/{src/schemas → schemas}/dedupe.js +0 -0
- /package/dist/cjs/{src/schemas → schemas}/index.js +0 -0
- /package/dist/cjs/{src/schemas → schemas}/resolver.js +0 -0
- /package/dist/cjs/{src/schemas → schemas}/utils.js +0 -0
- /package/dist/cjs/{src/types → types}/index.js +0 -0
- /package/dist/cjs/{src/validator → validator}/ajv-validator.js +0 -0
- /package/dist/cjs/{src/validator → validator}/config-validator-main.js +0 -0
- /package/dist/cjs/{src/validator → validator}/config-validator.js +0 -0
- /package/dist/cjs/{src/validator → validator}/index.js +0 -0
- /package/dist/cjs/{src/validator → validator}/object-traversal.js +0 -0
- /package/dist/cjs/{src/validator → validator}/reference-validator.js +0 -0
- /package/dist/cjs/{src/validator → validator}/schema-references.js +0 -0
- /package/dist/cjs/{src/validator → validator}/semantic-validator.js +0 -0
- /package/dist/cjs/{src/validator → validator}/tests-validator.js +0 -0
- /package/dist/cjs/{src/validator → validator}/types.js +0 -0
- /package/dist/cjs/{src/validator → validator}/unispec-validator.js +0 -0
- /package/dist/cjs/{src/validator → validator}/validator-factory.js +0 -0
- /package/dist/cjs/{src/versions.js → versions.js} +0 -0
- /package/dist/{src/diff → diff}/annotators.js +0 -0
- /package/dist/{src/diff → diff}/change-reports.js +0 -0
- /package/dist/{src/diff → diff}/impact-strategies-refactored.js +0 -0
- /package/dist/{src/diff → diff}/impact-strategies.js +0 -0
- /package/dist/{src/diff → diff}/metrics-calculator.js +0 -0
- /package/dist/{src/diff → diff}/risk-calculator.js +0 -0
- /package/dist/{src/diff → diff}/suggestion-generator.js +0 -0
- /package/dist/{src/diff → diff}/types.d.ts +0 -0
- /package/dist/{src/diff → diff}/types.js +0 -0
- /package/dist/{src/errors → errors}/base-error.d.ts +0 -0
- /package/dist/{src/errors → errors}/base-error.js +0 -0
- /package/dist/{src/generated-schemas.d.ts → generated-schemas.d.ts} +0 -0
- /package/dist/{src/generated-schemas.js → generated-schemas.js} +0 -0
- /package/dist/{src/loader → loader}/types.d.ts +0 -0
- /package/dist/{src/loader → loader}/types.js +0 -0
- /package/dist/{src/normalizer → normalizer}/graphql-normalizer.js +0 -0
- /package/dist/{src/normalizer → normalizer}/rest-normalizer.js +0 -0
- /package/dist/{src/normalizer → normalizer}/types.js +0 -0
- /package/dist/{src/normalizer → normalizer}/utils.d.ts +0 -0
- /package/dist/{src/normalizer → normalizer}/utils.js +0 -0
- /package/dist/{src/normalizer → normalizer}/websocket-normalizer.js +0 -0
- /package/dist/{src/optimizer → optimizer}/types.js +0 -0
- /package/dist/{src/optimizer → optimizer}/utils.d.ts +0 -0
- /package/dist/{src/optimizer → optimizer}/utils.js +0 -0
- /package/dist/{src/schemas → schemas}/utils.d.ts +0 -0
- /package/dist/{src/schemas → schemas}/utils.js +0 -0
- /package/dist/{src/types → types}/index.d.ts +0 -0
- /package/dist/{src/types → types}/index.js +0 -0
- /package/dist/{src/validator → validator}/object-traversal.d.ts +0 -0
- /package/dist/{src/validator → validator}/object-traversal.js +0 -0
- /package/dist/{src/validator → validator}/schema-references.js +0 -0
- /package/dist/{src/validator → validator}/semantic-validator.js +0 -0
- /package/dist/{src/validator → validator}/types.js +0 -0
- /package/dist/{src/versions.d.ts → versions.d.ts} +0 -0
- /package/dist/{src/versions.js → versions.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UniSpecCacheManager } from "./cache-manager
|
|
2
|
-
import type { CacheOptions } from "./types
|
|
1
|
+
import { UniSpecCacheManager } from "./cache-manager";
|
|
2
|
+
import type { CacheOptions } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Create a new isolated cache manager instance.
|
|
5
5
|
* @param options - Cache configuration options
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ValidationResult } from "
|
|
2
|
-
import type { CacheOptions, CacheStats } from "./types
|
|
1
|
+
import type { ValidationResult } from "@/types";
|
|
2
|
+
import type { CacheOptions, CacheStats } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Cache manager for UniSpec operations.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants
|
|
2
|
-
import { LRUCache } from "./lru-cache
|
|
1
|
+
import { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants";
|
|
2
|
+
import { LRUCache } from "./lru-cache";
|
|
3
3
|
/**
|
|
4
4
|
* Cache manager for UniSpec operations.
|
|
5
5
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateOptimizedDiffHash, generateOptimizedDocumentHash, } from "./hashing
|
|
1
|
+
import { generateOptimizedDiffHash, generateOptimizedDocumentHash, } from "./hashing";
|
|
2
2
|
/**
|
|
3
3
|
* Generate a hash for a UniSpec document for caching purposes.
|
|
4
4
|
* Uses optimized hashing for better performance and collision resistance.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { clearTestRegistry, createCacheManager, createNamedCacheManager, destroyManagers, getManagersStats, } from "./cache-factory
|
|
2
|
-
export { UniSpecCacheManager } from "./cache-manager
|
|
3
|
-
export { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants
|
|
4
|
-
export { generateDiffHash, generateDocumentHash, } from "./hash-utils
|
|
5
|
-
export { LRUCache } from "./lru-cache
|
|
6
|
-
export type { CacheEntry, CacheOptions, CacheSize, CacheStats, TTL, } from "./types
|
|
1
|
+
export { clearTestRegistry, createCacheManager, createNamedCacheManager, destroyManagers, getManagersStats, } from "./cache-factory";
|
|
2
|
+
export { UniSpecCacheManager } from "./cache-manager";
|
|
3
|
+
export { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants";
|
|
4
|
+
export { generateDiffHash, generateDocumentHash, } from "./hash-utils";
|
|
5
|
+
export { LRUCache } from "./lru-cache";
|
|
6
|
+
export type { CacheEntry, CacheOptions, CacheSize, CacheStats, TTL, } from "./types";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Constants and messages
|
|
2
2
|
// Cache factory
|
|
3
|
-
export { clearTestRegistry, createCacheManager, createNamedCacheManager, destroyManagers, getManagersStats, } from "./cache-factory
|
|
3
|
+
export { clearTestRegistry, createCacheManager, createNamedCacheManager, destroyManagers, getManagersStats, } from "./cache-factory";
|
|
4
4
|
// Cache manager
|
|
5
|
-
export { UniSpecCacheManager } from "./cache-manager
|
|
6
|
-
export { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants
|
|
5
|
+
export { UniSpecCacheManager } from "./cache-manager";
|
|
6
|
+
export { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants";
|
|
7
7
|
// Hash utilities
|
|
8
|
-
export { generateDiffHash, generateDocumentHash, } from "./hash-utils
|
|
8
|
+
export { generateDiffHash, generateDocumentHash, } from "./hash-utils";
|
|
9
9
|
// Core cache implementation
|
|
10
|
-
export { LRUCache } from "./lru-cache
|
|
10
|
+
export { LRUCache } from "./lru-cache";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UniSpecChange } from "./types
|
|
1
|
+
import type { UniSpecChange } from "./types";
|
|
2
2
|
export declare function annotateRestChange(change: UniSpecChange): UniSpecChange;
|
|
3
3
|
export declare function annotateWebSocketChange(change: UniSpecChange): UniSpecChange;
|
|
4
4
|
export declare function annotateGraphQLChange(change: UniSpecChange): UniSpecChange;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnhancedDiffResult, EnhancedUniSpecChange } from "./enhanced-diff
|
|
1
|
+
import type { EnhancedDiffResult, EnhancedUniSpecChange } from "./enhanced-diff";
|
|
2
2
|
export interface ReportOptions {
|
|
3
3
|
format: "markdown" | "html" | "json";
|
|
4
4
|
includeSuggestions?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniSpecDocument } from "
|
|
2
|
-
import { type DiffOptions, type DiffResult } from "./types
|
|
1
|
+
import type { UniSpecDocument } from "@/types";
|
|
2
|
+
import { type DiffOptions, type DiffResult } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Compare two UniSpec documents and return detected changes.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { annotateGraphQLChange, annotateRestChange, annotateWebSocketChange, } from "./annotators
|
|
2
|
-
import { DEFAULT_NAMED_COLLECTION_PATHS, } from "./types
|
|
1
|
+
import { annotateGraphQLChange, annotateRestChange, annotateWebSocketChange, } from "./annotators";
|
|
2
|
+
import { DEFAULT_NAMED_COLLECTION_PATHS, } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Check if a value is a plain object (not array, null, or other object types).
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UniSpecDocument } from "
|
|
2
|
-
import { type RiskLevel } from "./risk-calculator
|
|
3
|
-
import type { UniSpecChange } from "./types
|
|
1
|
+
import type { UniSpecDocument } from "@/types";
|
|
2
|
+
import { type RiskLevel } from "./risk-calculator";
|
|
3
|
+
import type { UniSpecChange } from "./types";
|
|
4
4
|
export interface ChangeImpact {
|
|
5
5
|
backwardCompatibility: "compatible" | "incompatible" | "unknown";
|
|
6
6
|
clientImpact: "none" | "low" | "medium" | "high";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { diffUniSpec } from "./core
|
|
2
|
-
import { ImpactAnalysisStrategyFactory } from "./impact-strategies-refactored
|
|
3
|
-
import { MetricsCalculatorService } from "./metrics-calculator
|
|
4
|
-
import { RiskLevelCalculator } from "./risk-calculator
|
|
5
|
-
import { SuggestionGeneratorService } from "./suggestion-generator
|
|
1
|
+
import { diffUniSpec } from "./core";
|
|
2
|
+
import { ImpactAnalysisStrategyFactory } from "./impact-strategies-refactored";
|
|
3
|
+
import { MetricsCalculatorService } from "./metrics-calculator";
|
|
4
|
+
import { RiskLevelCalculator } from "./risk-calculator";
|
|
5
|
+
import { SuggestionGeneratorService } from "./suggestion-generator";
|
|
6
6
|
/**
|
|
7
7
|
* Service instances for better separation of concerns.
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChangeImpact } from "./enhanced-diff
|
|
2
|
-
import type { UniSpecChange } from "./types
|
|
1
|
+
import type { ChangeImpact } from "./enhanced-diff";
|
|
2
|
+
import type { UniSpecChange } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Strategy interface for analyzing change impact.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChangeImpact } from "./enhanced-diff
|
|
2
|
-
import type { UniSpecChange } from "./types
|
|
1
|
+
import type { ChangeImpact } from "./enhanced-diff";
|
|
2
|
+
import type { UniSpecChange } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Strategy interface for analyzing change impact.
|
|
5
5
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./change-reports";
|
|
2
|
+
export * from "./core";
|
|
3
|
+
export * from "./enhanced-diff";
|
|
4
|
+
export * from "./impact-strategies-refactored";
|
|
5
|
+
export * from "./metrics-calculator";
|
|
6
|
+
export * from "./risk-calculator";
|
|
7
|
+
export * from "./suggestion-generator";
|
|
8
|
+
export * from "./types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Export types
|
|
2
|
+
export * from "./change-reports";
|
|
3
|
+
// Export core functionality
|
|
4
|
+
export * from "./core";
|
|
5
|
+
// Export enhanced functionality
|
|
6
|
+
export * from "./enhanced-diff";
|
|
7
|
+
export * from "./impact-strategies-refactored";
|
|
8
|
+
export * from "./metrics-calculator";
|
|
9
|
+
export * from "./risk-calculator";
|
|
10
|
+
export * from "./suggestion-generator";
|
|
11
|
+
export * from "./types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChangeImpact } from "./enhanced-diff
|
|
2
|
-
import type { UniSpecChange } from "./index
|
|
1
|
+
import type { ChangeImpact } from "./enhanced-diff";
|
|
2
|
+
import type { UniSpecChange } from "./index";
|
|
3
3
|
/**
|
|
4
4
|
* Service for generating migration suggestions based on change impact.
|
|
5
5
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export declare class UniSpecConfigError extends UniSpecValidationError {
|
|
3
3
|
constructor(message: string, path?: string, details?: Record<string, unknown>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export class UniSpecConfigError extends UniSpecValidationError {
|
|
3
3
|
constructor(message, path = "", details) {
|
|
4
4
|
super(message, "config_error", path, "error", details);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
2
|
-
import { UniSpecConfigError } from "./config-error
|
|
3
|
-
import { UniSpecLoaderError } from "./loader-error
|
|
4
|
-
import { UniSpecReferenceError } from "./reference-error
|
|
5
|
-
import { UniSpecSchemaError } from "./schema-error
|
|
6
|
-
import { UniSpecSecurityError } from "./security-error
|
|
7
|
-
import { UniSpecSemanticError } from "./semantic-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
|
+
import { UniSpecConfigError } from "./config-error";
|
|
3
|
+
import { UniSpecLoaderError } from "./loader-error";
|
|
4
|
+
import { UniSpecReferenceError } from "./reference-error";
|
|
5
|
+
import { UniSpecSchemaError } from "./schema-error";
|
|
6
|
+
import { UniSpecSecurityError } from "./security-error";
|
|
7
|
+
import { UniSpecSemanticError } from "./semantic-error";
|
|
8
8
|
/**
|
|
9
9
|
* Error factory for creating specific error types.
|
|
10
10
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
2
|
-
import { UniSpecConfigError } from "./config-error
|
|
3
|
-
import { UniSpecLoaderError } from "./loader-error
|
|
4
|
-
import { UniSpecReferenceError } from "./reference-error
|
|
5
|
-
import { UniSpecSchemaError } from "./schema-error
|
|
6
|
-
import { UniSpecSecurityError } from "./security-error
|
|
7
|
-
import { UniSpecSemanticError } from "./semantic-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
|
+
import { UniSpecConfigError } from "./config-error";
|
|
3
|
+
import { UniSpecLoaderError } from "./loader-error";
|
|
4
|
+
import { UniSpecReferenceError } from "./reference-error";
|
|
5
|
+
import { UniSpecSchemaError } from "./schema-error";
|
|
6
|
+
import { UniSpecSecurityError } from "./security-error";
|
|
7
|
+
import { UniSpecSemanticError } from "./semantic-error";
|
|
8
8
|
/**
|
|
9
9
|
* Error factory for creating specific error types.
|
|
10
10
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { UniSpecValidationError } from "./base-error";
|
|
2
|
+
export { UniSpecConfigError } from "./config-error";
|
|
3
|
+
export { ErrorFactory } from "./error-factory";
|
|
4
|
+
export { UniSpecLoaderError } from "./loader-error";
|
|
5
|
+
export { UniSpecReferenceError } from "./reference-error";
|
|
6
|
+
export { UniSpecSchemaError } from "./schema-error";
|
|
7
|
+
export { UniSpecSecurityError } from "./security-error";
|
|
8
|
+
export { UniSpecSemanticError } from "./semantic-error";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { UniSpecValidationError } from "./base-error";
|
|
2
|
+
export { UniSpecConfigError } from "./config-error";
|
|
3
|
+
export { ErrorFactory } from "./error-factory";
|
|
4
|
+
export { UniSpecLoaderError } from "./loader-error";
|
|
5
|
+
export { UniSpecReferenceError } from "./reference-error";
|
|
6
|
+
export { UniSpecSchemaError } from "./schema-error";
|
|
7
|
+
export { UniSpecSecurityError } from "./security-error";
|
|
8
|
+
export { UniSpecSemanticError } from "./semantic-error";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export declare class UniSpecLoaderError extends UniSpecValidationError {
|
|
3
3
|
constructor(message: string, path?: string, details?: Record<string, unknown>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export class UniSpecLoaderError extends UniSpecValidationError {
|
|
3
3
|
constructor(message, path = "", details) {
|
|
4
4
|
super(message, "loader_error", path, "error", details);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export declare class UniSpecReferenceError extends UniSpecValidationError {
|
|
3
3
|
constructor(message: string, path?: string, details?: Record<string, unknown>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export class UniSpecReferenceError extends UniSpecValidationError {
|
|
3
3
|
constructor(message, path = "", details) {
|
|
4
4
|
super(message, "reference_error", path, "error", details);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export declare class UniSpecSchemaError extends UniSpecValidationError {
|
|
3
3
|
constructor(message: string, path?: string, details?: Record<string, unknown>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export class UniSpecSchemaError extends UniSpecValidationError {
|
|
3
3
|
constructor(message, path = "", details) {
|
|
4
4
|
super(message, "schema_error", path, "error", details);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export declare class UniSpecSecurityError extends UniSpecValidationError {
|
|
3
3
|
constructor(message: string, path?: string, details?: Record<string, unknown>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export class UniSpecSecurityError extends UniSpecValidationError {
|
|
3
3
|
constructor(message, path = "", details) {
|
|
4
4
|
super(message, "security_error", path, "error", details);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export declare class UniSpecSemanticError extends UniSpecValidationError {
|
|
3
3
|
constructor(message: string, path?: string, details?: Record<string, unknown>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniSpecValidationError } from "./base-error
|
|
1
|
+
import { UniSpecValidationError } from "./base-error";
|
|
2
2
|
export class UniSpecSemanticError extends UniSpecValidationError {
|
|
3
3
|
constructor(message, path = "", details) {
|
|
4
4
|
super(message, "semantic_error", path, "error", details);
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// CORE TYPES AND INTERFACES
|
|
4
|
+
// ============================================================================
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
// ============================================================================
|
|
21
|
+
// CACHING SYSTEM
|
|
22
|
+
// ============================================================================
|
|
23
|
+
__exportStar(require("./cache"), exports);
|
|
24
|
+
// ============================================================================
|
|
25
|
+
// DIFF AND CHANGE ANALYSIS
|
|
26
|
+
// ============================================================================
|
|
27
|
+
__exportStar(require("./diff"), exports);
|
|
28
|
+
// ============================================================================
|
|
29
|
+
// DOCUMENT LOADING AND PARSING
|
|
30
|
+
// ============================================================================
|
|
31
|
+
__exportStar(require("./loader"), exports);
|
|
32
|
+
// ============================================================================
|
|
33
|
+
// DOCUMENT NORMALIZATION
|
|
34
|
+
// ============================================================================
|
|
35
|
+
__exportStar(require("./normalizer"), exports);
|
|
36
|
+
// ============================================================================
|
|
37
|
+
// DOCUMENT OPTIMIZATION
|
|
38
|
+
// ============================================================================
|
|
39
|
+
__exportStar(require("./optimizer"), exports);
|
|
40
|
+
// ============================================================================
|
|
41
|
+
// SCHEMA MANAGEMENT
|
|
42
|
+
// ============================================================================
|
|
43
|
+
__exportStar(require("./schemas"), exports);
|
|
44
|
+
__exportStar(require("./types"), exports);
|
|
45
|
+
// ============================================================================
|
|
46
|
+
// VALIDATION SYSTEM
|
|
47
|
+
// ============================================================================
|
|
48
|
+
__exportStar(require("./validator"), exports);
|
|
49
|
+
// ============================================================================
|
|
50
|
+
// UTILITY FUNCTIONS
|
|
51
|
+
// ============================================================================
|
|
52
|
+
__exportStar(require("./validator/object-traversal"), exports);
|
|
53
|
+
__exportStar(require("./validator/reference-validator"), exports);
|
|
54
|
+
__exportStar(require("./validator/schema-references"), exports);
|
|
55
|
+
__exportStar(require("./validator/semantic-validator"), exports);
|
|
56
|
+
// ============================================================================
|
|
57
|
+
// VERSION INFORMATION
|
|
58
|
+
// ============================================================================
|
|
59
|
+
__exportStar(require("./versions"), exports);
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./cache";
|
|
2
|
+
export * from "./diff";
|
|
3
|
+
export * from "./loader";
|
|
4
|
+
export * from "./normalizer";
|
|
5
|
+
export * from "./optimizer";
|
|
6
|
+
export * from "./schemas";
|
|
7
|
+
export * from "./types";
|
|
8
|
+
export * from "./validator";
|
|
9
|
+
export * from "./validator/object-traversal";
|
|
10
|
+
export * from "./validator/reference-validator";
|
|
11
|
+
export * from "./validator/schema-references";
|
|
12
|
+
export * from "./validator/semantic-validator";
|
|
13
|
+
export * from "./versions";
|
|
@@ -4,40 +4,40 @@
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
// CACHING SYSTEM
|
|
6
6
|
// ============================================================================
|
|
7
|
-
export * from "./cache
|
|
7
|
+
export * from "./cache";
|
|
8
8
|
// ============================================================================
|
|
9
9
|
// DIFF AND CHANGE ANALYSIS
|
|
10
10
|
// ============================================================================
|
|
11
|
-
export * from "./diff
|
|
11
|
+
export * from "./diff";
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// DOCUMENT LOADING AND PARSING
|
|
14
14
|
// ============================================================================
|
|
15
|
-
export * from "./loader
|
|
15
|
+
export * from "./loader";
|
|
16
16
|
// ============================================================================
|
|
17
17
|
// DOCUMENT NORMALIZATION
|
|
18
18
|
// ============================================================================
|
|
19
|
-
export * from "./normalizer
|
|
19
|
+
export * from "./normalizer";
|
|
20
20
|
// ============================================================================
|
|
21
21
|
// DOCUMENT OPTIMIZATION
|
|
22
22
|
// ============================================================================
|
|
23
|
-
export * from "./optimizer
|
|
23
|
+
export * from "./optimizer";
|
|
24
24
|
// ============================================================================
|
|
25
25
|
// SCHEMA MANAGEMENT
|
|
26
26
|
// ============================================================================
|
|
27
|
-
export * from "./schemas
|
|
28
|
-
export * from "./types
|
|
27
|
+
export * from "./schemas";
|
|
28
|
+
export * from "./types";
|
|
29
29
|
// ============================================================================
|
|
30
30
|
// VALIDATION SYSTEM
|
|
31
31
|
// ============================================================================
|
|
32
|
-
export * from "./validator
|
|
32
|
+
export * from "./validator";
|
|
33
33
|
// ============================================================================
|
|
34
34
|
// UTILITY FUNCTIONS
|
|
35
35
|
// ============================================================================
|
|
36
|
-
export * from "./validator/object-traversal
|
|
37
|
-
export * from "./validator/reference-validator
|
|
38
|
-
export * from "./validator/schema-references
|
|
39
|
-
export * from "./validator/semantic-validator
|
|
36
|
+
export * from "./validator/object-traversal";
|
|
37
|
+
export * from "./validator/reference-validator";
|
|
38
|
+
export * from "./validator/schema-references";
|
|
39
|
+
export * from "./validator/semantic-validator";
|
|
40
40
|
// ============================================================================
|
|
41
41
|
// VERSION INFORMATION
|
|
42
42
|
// ============================================================================
|
|
43
|
-
export * from "./versions
|
|
43
|
+
export * from "./versions";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { validateDocumentSecurity } from "./security-validator";
|
|
2
|
+
export type { LoadOptions, SecureLoadOptions } from "./types";
|
|
3
|
+
export { ALLOWED_YAML_MODULES } from "./types";
|
|
4
|
+
export { loadUniSpec } from "./unispec-loader";
|
|
5
|
+
export { getYamlModule, validateYamlModule } from "./yaml-loader";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniSpecDocument } from "
|
|
2
|
-
import type { LoadOptions } from "./types
|
|
1
|
+
import type { UniSpecDocument } from "@/types";
|
|
2
|
+
import type { LoadOptions } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Load a UniSpec document from a raw input value.
|
|
5
5
|
* Supports:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ErrorFactory } from "
|
|
2
|
-
import { validateDocumentSecurity } from "./security-validator
|
|
3
|
-
import { getYamlModule } from "./yaml-loader
|
|
1
|
+
import { ErrorFactory } from "@/errors/index";
|
|
2
|
+
import { validateDocumentSecurity } from "./security-validator";
|
|
3
|
+
import { getYamlModule } from "./yaml-loader";
|
|
4
4
|
/**
|
|
5
5
|
* Load a UniSpec document from a raw input value.
|
|
6
6
|
* Supports:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniSpecDocument } from "
|
|
2
|
-
import type { NormalizeOptions } from "./types
|
|
1
|
+
import type { UniSpecDocument } from "@/types";
|
|
2
|
+
import type { NormalizeOptions } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Normalize a UniSpec document into a canonical, deterministic form.
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { normalizeGraphqlOperations } from "./graphql-normalizer
|
|
2
|
-
import { normalizeRestRoutes } from "./rest-normalizer
|
|
3
|
-
import { normalizeValue } from "./utils
|
|
4
|
-
import { normalizeWebSocket } from "./websocket-normalizer
|
|
1
|
+
import { normalizeGraphqlOperations } from "./graphql-normalizer";
|
|
2
|
+
import { normalizeRestRoutes } from "./rest-normalizer";
|
|
3
|
+
import { normalizeValue } from "./utils";
|
|
4
|
+
import { normalizeWebSocket } from "./websocket-normalizer";
|
|
5
5
|
/**
|
|
6
6
|
* Normalize a UniSpec document into a canonical, deterministic form.
|
|
7
7
|
*
|