@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.
Files changed (317) hide show
  1. package/dist/{src/cache → cache}/cache-factory.d.ts +2 -2
  2. package/dist/{src/cache → cache}/cache-factory.js +1 -1
  3. package/dist/{src/cache → cache}/cache-manager.d.ts +2 -2
  4. package/dist/{src/cache → cache}/cache-manager.js +2 -2
  5. package/dist/{src/cache → cache}/hash-utils.d.ts +1 -1
  6. package/dist/{src/cache → cache}/hash-utils.js +1 -1
  7. package/dist/{src/cache → cache}/hashing.d.ts +1 -1
  8. package/dist/{src/cache → cache}/hashing.js +1 -1
  9. package/dist/{src/cache → cache}/index.d.ts +6 -6
  10. package/dist/{src/cache → cache}/index.js +5 -5
  11. package/dist/{src/cache → cache}/lru-cache.d.ts +1 -1
  12. package/dist/{src/cache → cache}/lru-cache.js +1 -1
  13. package/dist/{src/diff → diff}/annotators.d.ts +1 -1
  14. package/dist/{src/diff → diff}/change-reports.d.ts +1 -1
  15. package/dist/{src/diff → diff}/core.d.ts +2 -2
  16. package/dist/{src/diff → diff}/core.js +2 -2
  17. package/dist/{src/diff → diff}/enhanced-diff.d.ts +3 -3
  18. package/dist/{src/diff → diff}/enhanced-diff.js +5 -5
  19. package/dist/{src/diff → diff}/impact-strategies-refactored.d.ts +2 -2
  20. package/dist/{src/diff → diff}/impact-strategies.d.ts +2 -2
  21. package/dist/diff/index.d.ts +8 -0
  22. package/dist/diff/index.js +11 -0
  23. package/dist/{src/diff → diff}/metrics-calculator.d.ts +1 -1
  24. package/dist/{src/diff → diff}/risk-calculator.d.ts +1 -1
  25. package/dist/{src/diff → diff}/suggestion-generator.d.ts +2 -2
  26. package/dist/{src/errors → errors}/config-error.d.ts +1 -1
  27. package/dist/{src/errors → errors}/config-error.js +1 -1
  28. package/dist/{src/errors → errors}/error-factory.d.ts +7 -7
  29. package/dist/{src/errors → errors}/error-factory.js +7 -7
  30. package/dist/errors/index.d.ts +8 -0
  31. package/dist/errors/index.js +8 -0
  32. package/dist/{src/errors → errors}/loader-error.d.ts +1 -1
  33. package/dist/{src/errors → errors}/loader-error.js +1 -1
  34. package/dist/{src/errors → errors}/reference-error.d.ts +1 -1
  35. package/dist/{src/errors → errors}/reference-error.js +1 -1
  36. package/dist/{src/errors → errors}/schema-error.d.ts +1 -1
  37. package/dist/{src/errors → errors}/schema-error.js +1 -1
  38. package/dist/{src/errors → errors}/security-error.d.ts +1 -1
  39. package/dist/{src/errors → errors}/security-error.js +1 -1
  40. package/dist/{src/errors → errors}/semantic-error.d.ts +1 -1
  41. package/dist/{src/errors → errors}/semantic-error.js +1 -1
  42. package/dist/index.cjs +59 -0
  43. package/dist/index.d.ts +13 -0
  44. package/dist/{src/index.js → index.js} +13 -13
  45. package/dist/loader/index.d.ts +5 -0
  46. package/dist/loader/index.js +5 -0
  47. package/dist/{src/loader → loader}/security-validator.d.ts +1 -1
  48. package/dist/{src/loader → loader}/security-validator.js +1 -1
  49. package/dist/{src/loader → loader}/unispec-loader.d.ts +2 -2
  50. package/dist/{src/loader → loader}/unispec-loader.js +3 -3
  51. package/dist/{src/loader → loader}/yaml-loader.d.ts +1 -1
  52. package/dist/{src/loader → loader}/yaml-loader.js +1 -1
  53. package/dist/{src/normalizer → normalizer}/core.d.ts +2 -2
  54. package/dist/{src/normalizer → normalizer}/core.js +4 -4
  55. package/dist/{src/normalizer → normalizer}/graphql-normalizer.d.ts +1 -1
  56. package/dist/normalizer/index.d.ts +2 -0
  57. package/dist/{src/normalizer → normalizer}/index.js +1 -1
  58. package/dist/{src/normalizer → normalizer}/rest-normalizer.d.ts +1 -1
  59. package/dist/{src/normalizer → normalizer}/types.d.ts +1 -1
  60. package/dist/{src/normalizer → normalizer}/websocket-normalizer.d.ts +1 -1
  61. package/dist/{src/optimizer → optimizer}/core.d.ts +2 -2
  62. package/dist/{src/optimizer → optimizer}/core.js +2 -2
  63. package/dist/{src/optimizer → optimizer}/index.d.ts +4 -4
  64. package/dist/{src/optimizer → optimizer}/index.js +3 -3
  65. package/dist/{src/optimizer → optimizer}/optimization-functions.d.ts +2 -2
  66. package/dist/{src/optimizer → optimizer}/optimization-functions.js +2 -2
  67. package/dist/{src/optimizer → optimizer}/types.d.ts +1 -1
  68. package/dist/{src/schemas → schemas}/dedupe.d.ts +1 -1
  69. package/dist/{src/schemas → schemas}/dedupe.js +1 -1
  70. package/dist/schemas/index.d.ts +3 -0
  71. package/dist/schemas/index.js +6 -0
  72. package/dist/{src/schemas → schemas}/resolver.d.ts +1 -1
  73. package/dist/{src/schemas → schemas}/resolver.js +1 -1
  74. package/dist/{src/validator → validator}/ajv-validator.d.ts +1 -1
  75. package/dist/{src/validator → validator}/ajv-validator.js +1 -1
  76. package/dist/{src/validator → validator}/config-validator-main.d.ts +2 -2
  77. package/dist/{src/validator → validator}/config-validator-main.js +4 -4
  78. package/dist/{src/validator → validator}/config-validator.d.ts +1 -1
  79. package/dist/{src/validator → validator}/config-validator.js +1 -1
  80. package/dist/validator/index.d.ts +10 -0
  81. package/dist/validator/index.js +11 -0
  82. package/dist/{src/validator → validator}/reference-validator.d.ts +1 -1
  83. package/dist/{src/validator → validator}/reference-validator.js +1 -1
  84. package/dist/{src/validator → validator}/schema-references.d.ts +1 -1
  85. package/dist/{src/validator → validator}/semantic-validator.d.ts +1 -1
  86. package/dist/{src/validator → validator}/tests-validator.d.ts +2 -2
  87. package/dist/{src/validator → validator}/tests-validator.js +2 -2
  88. package/dist/{src/validator → validator}/types.d.ts +3 -3
  89. package/dist/{src/validator → validator}/unispec-validator.d.ts +2 -2
  90. package/dist/{src/validator → validator}/unispec-validator.js +5 -5
  91. package/dist/{src/validator → validator}/validator-factory.d.ts +3 -3
  92. package/dist/{src/validator → validator}/validator-factory.js +1 -1
  93. package/package.json +3 -3
  94. package/dist/cjs/tests/cache/cache.test.js +0 -274
  95. package/dist/cjs/tests/cache/utils.js +0 -32
  96. package/dist/cjs/tests/concurrency-normalizer-optimizer.test.js +0 -1
  97. package/dist/cjs/tests/diff/diff-annotators.test.js +0 -280
  98. package/dist/cjs/tests/diff/diff-comprehensive.test.js +0 -262
  99. package/dist/cjs/tests/diff/diff-extended.test.js +0 -235
  100. package/dist/cjs/tests/diff/diff.test.js +0 -189
  101. package/dist/cjs/tests/diff/utils.js +0 -8
  102. package/dist/cjs/tests/errors/errors-integration.test.js +0 -173
  103. package/dist/cjs/tests/errors/errors.test.js +0 -280
  104. package/dist/cjs/tests/errors/utils.js +0 -7
  105. package/dist/cjs/tests/loader/integration.test.js +0 -216
  106. package/dist/cjs/tests/loader/loader.test.js +0 -341
  107. package/dist/cjs/tests/normalizer/normalizer-comprehensive.test.js +0 -648
  108. package/dist/cjs/tests/normalizer/normalizer-invalid.test.js +0 -258
  109. package/dist/cjs/tests/normalizer/normalizer-valid.test.js +0 -238
  110. package/dist/cjs/tests/normalizer/utils.js +0 -47
  111. package/dist/cjs/tests/optimizer/compress-references.test.js +0 -304
  112. package/dist/cjs/tests/optimizer/deduplication.test.js +0 -132
  113. package/dist/cjs/tests/optimizer/integration.test.js +0 -131
  114. package/dist/cjs/tests/optimizer/optimization-report.test.js +0 -222
  115. package/dist/cjs/tests/optimizer/optimize-document.test.js +0 -187
  116. package/dist/cjs/tests/optimizer/orphaned-schemas.test.js +0 -194
  117. package/dist/cjs/tests/optimizer/sort-schemas.test.js +0 -131
  118. package/dist/cjs/tests/optimizer/utils.js +0 -209
  119. package/dist/cjs/tests/schemas/schemas-edge-cases.test.js +0 -223
  120. package/dist/cjs/tests/schemas/schemas.test.js +0 -400
  121. package/dist/cjs/tests/schemas/utils.js +0 -7
  122. package/dist/cjs/tests/utils.js +0 -131
  123. package/dist/cjs/tests/validator/config-validator.test.js +0 -78
  124. package/dist/cjs/tests/validator/debug-config.js +0 -1
  125. package/dist/cjs/tests/validator/debug-missing-service.js +0 -1
  126. package/dist/cjs/tests/validator/debug-other-configs.js +0 -1
  127. package/dist/cjs/tests/validator/debug-references.js +0 -1
  128. package/dist/cjs/tests/validator/unispec-validator.test.js +0 -103
  129. package/dist/cjs/tests/validator/utils.js +0 -25
  130. package/dist/src/diff/index.d.ts +0 -8
  131. package/dist/src/diff/index.js +0 -11
  132. package/dist/src/errors/index.d.ts +0 -8
  133. package/dist/src/errors/index.js +0 -8
  134. package/dist/src/index.d.ts +0 -13
  135. package/dist/src/loader/index.d.ts +0 -5
  136. package/dist/src/loader/index.js +0 -5
  137. package/dist/src/normalizer/index.d.ts +0 -2
  138. package/dist/src/schemas/index.d.ts +0 -3
  139. package/dist/src/schemas/index.js +0 -6
  140. package/dist/src/validator/index.d.ts +0 -10
  141. package/dist/src/validator/index.js +0 -11
  142. package/dist/tests/cache/cache.test.d.ts +0 -1
  143. package/dist/tests/cache/cache.test.js +0 -269
  144. package/dist/tests/cache/utils.d.ts +0 -4
  145. package/dist/tests/cache/utils.js +0 -24
  146. package/dist/tests/concurrency-normalizer-optimizer.test.d.ts +0 -0
  147. package/dist/tests/concurrency-normalizer-optimizer.test.js +0 -1
  148. package/dist/tests/diff/diff-annotators.test.d.ts +0 -1
  149. package/dist/tests/diff/diff-annotators.test.js +0 -275
  150. package/dist/tests/diff/diff-comprehensive.test.d.ts +0 -1
  151. package/dist/tests/diff/diff-comprehensive.test.js +0 -257
  152. package/dist/tests/diff/diff-extended.test.d.ts +0 -1
  153. package/dist/tests/diff/diff-extended.test.js +0 -230
  154. package/dist/tests/diff/diff.test.d.ts +0 -1
  155. package/dist/tests/diff/diff.test.js +0 -184
  156. package/dist/tests/diff/utils.d.ts +0 -2
  157. package/dist/tests/diff/utils.js +0 -3
  158. package/dist/tests/errors/errors-integration.test.d.ts +0 -1
  159. package/dist/tests/errors/errors-integration.test.js +0 -168
  160. package/dist/tests/errors/errors.test.d.ts +0 -1
  161. package/dist/tests/errors/errors.test.js +0 -275
  162. package/dist/tests/errors/utils.d.ts +0 -2
  163. package/dist/tests/errors/utils.js +0 -3
  164. package/dist/tests/loader/integration.test.d.ts +0 -1
  165. package/dist/tests/loader/integration.test.js +0 -211
  166. package/dist/tests/loader/loader.test.d.ts +0 -1
  167. package/dist/tests/loader/loader.test.js +0 -336
  168. package/dist/tests/normalizer/normalizer-comprehensive.test.d.ts +0 -1
  169. package/dist/tests/normalizer/normalizer-comprehensive.test.js +0 -643
  170. package/dist/tests/normalizer/normalizer-invalid.test.d.ts +0 -1
  171. package/dist/tests/normalizer/normalizer-invalid.test.js +0 -253
  172. package/dist/tests/normalizer/normalizer-valid.test.d.ts +0 -1
  173. package/dist/tests/normalizer/normalizer-valid.test.js +0 -233
  174. package/dist/tests/normalizer/utils.d.ts +0 -18
  175. package/dist/tests/normalizer/utils.js +0 -36
  176. package/dist/tests/optimizer/compress-references.test.d.ts +0 -1
  177. package/dist/tests/optimizer/compress-references.test.js +0 -299
  178. package/dist/tests/optimizer/deduplication.test.d.ts +0 -1
  179. package/dist/tests/optimizer/deduplication.test.js +0 -127
  180. package/dist/tests/optimizer/integration.test.d.ts +0 -1
  181. package/dist/tests/optimizer/integration.test.js +0 -126
  182. package/dist/tests/optimizer/optimization-report.test.d.ts +0 -1
  183. package/dist/tests/optimizer/optimization-report.test.js +0 -217
  184. package/dist/tests/optimizer/optimize-document.test.d.ts +0 -1
  185. package/dist/tests/optimizer/optimize-document.test.js +0 -182
  186. package/dist/tests/optimizer/orphaned-schemas.test.d.ts +0 -1
  187. package/dist/tests/optimizer/orphaned-schemas.test.js +0 -189
  188. package/dist/tests/optimizer/sort-schemas.test.d.ts +0 -1
  189. package/dist/tests/optimizer/sort-schemas.test.js +0 -126
  190. package/dist/tests/optimizer/utils.d.ts +0 -8
  191. package/dist/tests/optimizer/utils.js +0 -199
  192. package/dist/tests/schemas/schemas-edge-cases.test.d.ts +0 -1
  193. package/dist/tests/schemas/schemas-edge-cases.test.js +0 -218
  194. package/dist/tests/schemas/schemas.test.d.ts +0 -1
  195. package/dist/tests/schemas/schemas.test.js +0 -395
  196. package/dist/tests/schemas/utils.d.ts +0 -2
  197. package/dist/tests/schemas/utils.js +0 -3
  198. package/dist/tests/utils.d.ts +0 -10
  199. package/dist/tests/utils.js +0 -118
  200. package/dist/tests/validator/config-validator.test.d.ts +0 -1
  201. package/dist/tests/validator/config-validator.test.js +0 -73
  202. package/dist/tests/validator/debug-config.d.ts +0 -0
  203. package/dist/tests/validator/debug-config.js +0 -1
  204. package/dist/tests/validator/debug-missing-service.d.ts +0 -0
  205. package/dist/tests/validator/debug-missing-service.js +0 -1
  206. package/dist/tests/validator/debug-other-configs.d.ts +0 -0
  207. package/dist/tests/validator/debug-other-configs.js +0 -1
  208. package/dist/tests/validator/debug-references.d.ts +0 -0
  209. package/dist/tests/validator/debug-references.js +0 -1
  210. package/dist/tests/validator/unispec-validator.test.d.ts +0 -1
  211. package/dist/tests/validator/unispec-validator.test.js +0 -98
  212. package/dist/tests/validator/utils.d.ts +0 -6
  213. package/dist/tests/validator/utils.js +0 -20
  214. /package/dist/{src/cache → cache}/constants.d.ts +0 -0
  215. /package/dist/{src/cache → cache}/constants.js +0 -0
  216. /package/dist/{src/cache → cache}/types.d.ts +0 -0
  217. /package/dist/{src/cache → cache}/types.js +0 -0
  218. /package/dist/cjs/{src/cache → cache}/cache-factory.js +0 -0
  219. /package/dist/cjs/{src/cache → cache}/cache-manager.js +0 -0
  220. /package/dist/cjs/{src/cache → cache}/constants.js +0 -0
  221. /package/dist/cjs/{src/cache → cache}/hash-utils.js +0 -0
  222. /package/dist/cjs/{src/cache → cache}/hashing.js +0 -0
  223. /package/dist/cjs/{src/cache → cache}/index.js +0 -0
  224. /package/dist/cjs/{src/cache → cache}/lru-cache.js +0 -0
  225. /package/dist/cjs/{src/cache → cache}/types.js +0 -0
  226. /package/dist/cjs/{src/diff → diff}/annotators.js +0 -0
  227. /package/dist/cjs/{src/diff → diff}/change-reports.js +0 -0
  228. /package/dist/cjs/{src/diff → diff}/core.js +0 -0
  229. /package/dist/cjs/{src/diff → diff}/enhanced-diff.js +0 -0
  230. /package/dist/cjs/{src/diff → diff}/impact-strategies-refactored.js +0 -0
  231. /package/dist/cjs/{src/diff → diff}/impact-strategies.js +0 -0
  232. /package/dist/cjs/{src/diff → diff}/index.js +0 -0
  233. /package/dist/cjs/{src/diff → diff}/metrics-calculator.js +0 -0
  234. /package/dist/cjs/{src/diff → diff}/risk-calculator.js +0 -0
  235. /package/dist/cjs/{src/diff → diff}/suggestion-generator.js +0 -0
  236. /package/dist/cjs/{src/diff → diff}/types.js +0 -0
  237. /package/dist/cjs/{src/errors → errors}/base-error.js +0 -0
  238. /package/dist/cjs/{src/errors → errors}/config-error.js +0 -0
  239. /package/dist/cjs/{src/errors → errors}/error-factory.js +0 -0
  240. /package/dist/cjs/{src/errors → errors}/index.js +0 -0
  241. /package/dist/cjs/{src/errors → errors}/loader-error.js +0 -0
  242. /package/dist/cjs/{src/errors → errors}/reference-error.js +0 -0
  243. /package/dist/cjs/{src/errors → errors}/schema-error.js +0 -0
  244. /package/dist/cjs/{src/errors → errors}/security-error.js +0 -0
  245. /package/dist/cjs/{src/errors → errors}/semantic-error.js +0 -0
  246. /package/dist/cjs/{src/generated-schemas.js → generated-schemas.js} +0 -0
  247. /package/dist/cjs/{src/index.js → index.js} +0 -0
  248. /package/dist/cjs/{src/loader → loader}/index.js +0 -0
  249. /package/dist/cjs/{src/loader → loader}/security-validator.js +0 -0
  250. /package/dist/cjs/{src/loader → loader}/types.js +0 -0
  251. /package/dist/cjs/{src/loader → loader}/unispec-loader.js +0 -0
  252. /package/dist/cjs/{src/loader → loader}/yaml-loader.js +0 -0
  253. /package/dist/cjs/{src/normalizer → normalizer}/core.js +0 -0
  254. /package/dist/cjs/{src/normalizer → normalizer}/graphql-normalizer.js +0 -0
  255. /package/dist/cjs/{src/normalizer → normalizer}/index.js +0 -0
  256. /package/dist/cjs/{src/normalizer → normalizer}/rest-normalizer.js +0 -0
  257. /package/dist/cjs/{src/normalizer → normalizer}/types.js +0 -0
  258. /package/dist/cjs/{src/normalizer → normalizer}/utils.js +0 -0
  259. /package/dist/cjs/{src/normalizer → normalizer}/websocket-normalizer.js +0 -0
  260. /package/dist/cjs/{src/optimizer → optimizer}/core.js +0 -0
  261. /package/dist/cjs/{src/optimizer → optimizer}/index.js +0 -0
  262. /package/dist/cjs/{src/optimizer → optimizer}/optimization-functions.js +0 -0
  263. /package/dist/cjs/{src/optimizer → optimizer}/types.js +0 -0
  264. /package/dist/cjs/{src/optimizer → optimizer}/utils.js +0 -0
  265. /package/dist/cjs/{src/schemas → schemas}/dedupe.js +0 -0
  266. /package/dist/cjs/{src/schemas → schemas}/index.js +0 -0
  267. /package/dist/cjs/{src/schemas → schemas}/resolver.js +0 -0
  268. /package/dist/cjs/{src/schemas → schemas}/utils.js +0 -0
  269. /package/dist/cjs/{src/types → types}/index.js +0 -0
  270. /package/dist/cjs/{src/validator → validator}/ajv-validator.js +0 -0
  271. /package/dist/cjs/{src/validator → validator}/config-validator-main.js +0 -0
  272. /package/dist/cjs/{src/validator → validator}/config-validator.js +0 -0
  273. /package/dist/cjs/{src/validator → validator}/index.js +0 -0
  274. /package/dist/cjs/{src/validator → validator}/object-traversal.js +0 -0
  275. /package/dist/cjs/{src/validator → validator}/reference-validator.js +0 -0
  276. /package/dist/cjs/{src/validator → validator}/schema-references.js +0 -0
  277. /package/dist/cjs/{src/validator → validator}/semantic-validator.js +0 -0
  278. /package/dist/cjs/{src/validator → validator}/tests-validator.js +0 -0
  279. /package/dist/cjs/{src/validator → validator}/types.js +0 -0
  280. /package/dist/cjs/{src/validator → validator}/unispec-validator.js +0 -0
  281. /package/dist/cjs/{src/validator → validator}/validator-factory.js +0 -0
  282. /package/dist/cjs/{src/versions.js → versions.js} +0 -0
  283. /package/dist/{src/diff → diff}/annotators.js +0 -0
  284. /package/dist/{src/diff → diff}/change-reports.js +0 -0
  285. /package/dist/{src/diff → diff}/impact-strategies-refactored.js +0 -0
  286. /package/dist/{src/diff → diff}/impact-strategies.js +0 -0
  287. /package/dist/{src/diff → diff}/metrics-calculator.js +0 -0
  288. /package/dist/{src/diff → diff}/risk-calculator.js +0 -0
  289. /package/dist/{src/diff → diff}/suggestion-generator.js +0 -0
  290. /package/dist/{src/diff → diff}/types.d.ts +0 -0
  291. /package/dist/{src/diff → diff}/types.js +0 -0
  292. /package/dist/{src/errors → errors}/base-error.d.ts +0 -0
  293. /package/dist/{src/errors → errors}/base-error.js +0 -0
  294. /package/dist/{src/generated-schemas.d.ts → generated-schemas.d.ts} +0 -0
  295. /package/dist/{src/generated-schemas.js → generated-schemas.js} +0 -0
  296. /package/dist/{src/loader → loader}/types.d.ts +0 -0
  297. /package/dist/{src/loader → loader}/types.js +0 -0
  298. /package/dist/{src/normalizer → normalizer}/graphql-normalizer.js +0 -0
  299. /package/dist/{src/normalizer → normalizer}/rest-normalizer.js +0 -0
  300. /package/dist/{src/normalizer → normalizer}/types.js +0 -0
  301. /package/dist/{src/normalizer → normalizer}/utils.d.ts +0 -0
  302. /package/dist/{src/normalizer → normalizer}/utils.js +0 -0
  303. /package/dist/{src/normalizer → normalizer}/websocket-normalizer.js +0 -0
  304. /package/dist/{src/optimizer → optimizer}/types.js +0 -0
  305. /package/dist/{src/optimizer → optimizer}/utils.d.ts +0 -0
  306. /package/dist/{src/optimizer → optimizer}/utils.js +0 -0
  307. /package/dist/{src/schemas → schemas}/utils.d.ts +0 -0
  308. /package/dist/{src/schemas → schemas}/utils.js +0 -0
  309. /package/dist/{src/types → types}/index.d.ts +0 -0
  310. /package/dist/{src/types → types}/index.js +0 -0
  311. /package/dist/{src/validator → validator}/object-traversal.d.ts +0 -0
  312. /package/dist/{src/validator → validator}/object-traversal.js +0 -0
  313. /package/dist/{src/validator → validator}/schema-references.js +0 -0
  314. /package/dist/{src/validator → validator}/semantic-validator.js +0 -0
  315. /package/dist/{src/validator → validator}/types.js +0 -0
  316. /package/dist/{src/versions.d.ts → versions.d.ts} +0 -0
  317. /package/dist/{src/versions.js → versions.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { UniSpecCacheManager } from "./cache-manager.js";
2
- import type { CacheOptions } from "./types.js";
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,4 +1,4 @@
1
- import { UniSpecCacheManager } from "./cache-manager.js";
1
+ import { UniSpecCacheManager } from "./cache-manager";
2
2
  /**
3
3
  * Simple registry for test cleanup (minimal, not persistent global state)
4
4
  */
@@ -1,5 +1,5 @@
1
- import type { ValidationResult } from "../types/index.js";
2
- import type { CacheOptions, CacheStats } from "./types.js";
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.js";
2
- import { LRUCache } from "./lru-cache.js";
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 type { UniSpecDocument } from "../types/index.js";
1
+ import type { UniSpecDocument } from "@/types";
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,4 +1,4 @@
1
- import { generateOptimizedDiffHash, generateOptimizedDocumentHash, } from "./hashing.js";
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,4 +1,4 @@
1
- import type { UniSpecDocument } from "../types/index.js";
1
+ import type { UniSpecDocument } from "@/types";
2
2
  /**
3
3
  * Generate a secure hash for a document using optimized sorting and Web Crypto API.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { CACHE_CONSTANTS } from "../cache/constants.js";
1
+ import { CACHE_CONSTANTS } from "../cache/constants";
2
2
  /**
3
3
  * Secure document hashing utilities using Web Crypto API.
4
4
  */
@@ -1,6 +1,6 @@
1
- export { clearTestRegistry, createCacheManager, createNamedCacheManager, destroyManagers, getManagersStats, } from "./cache-factory.js";
2
- export { UniSpecCacheManager } from "./cache-manager.js";
3
- export { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants.js";
4
- export { generateDiffHash, generateDocumentHash, } from "./hash-utils.js";
5
- export { LRUCache } from "./lru-cache.js";
6
- export type { CacheEntry, CacheOptions, CacheSize, CacheStats, TTL, } from "./types.js";
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.js";
3
+ export { clearTestRegistry, createCacheManager, createNamedCacheManager, destroyManagers, getManagersStats, } from "./cache-factory";
4
4
  // Cache manager
5
- export { UniSpecCacheManager } from "./cache-manager.js";
6
- export { CACHE_CONSTANTS, CACHE_MESSAGES } from "./constants.js";
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.js";
8
+ export { generateDiffHash, generateDocumentHash, } from "./hash-utils";
9
9
  // Core cache implementation
10
- export { LRUCache } from "./lru-cache.js";
10
+ export { LRUCache } from "./lru-cache";
@@ -1,4 +1,4 @@
1
- import type { CacheOptions, CacheStats } from "./types.js";
1
+ import type { CacheOptions, CacheStats } from "./types";
2
2
  /**
3
3
  * Simple LRU (Least Recently Used) cache implementation.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { CACHE_CONSTANTS } from "./constants.js";
1
+ import { CACHE_CONSTANTS } from "./constants";
2
2
  /**
3
3
  * Simple LRU (Least Recently Used) cache implementation.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { UniSpecChange } from "./types.js";
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.js";
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 "../types/index.js";
2
- import { type DiffOptions, type DiffResult } from "./types.js";
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.js";
2
- import { DEFAULT_NAMED_COLLECTION_PATHS, } from "./types.js";
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 "../types/index.js";
2
- import { type RiskLevel } from "./risk-calculator.js";
3
- import type { UniSpecChange } from "./types.js";
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.js";
2
- import { ImpactAnalysisStrategyFactory } from "./impact-strategies-refactored.js";
3
- import { MetricsCalculatorService } from "./metrics-calculator.js";
4
- import { RiskLevelCalculator } from "./risk-calculator.js";
5
- import { SuggestionGeneratorService } from "./suggestion-generator.js";
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.js";
2
- import type { UniSpecChange } from "./types.js";
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.js";
2
- import type { UniSpecChange } from "./types.js";
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,4 +1,4 @@
1
- import type { EnhancedUniSpecChange } from "./enhanced-diff.js";
1
+ import type { EnhancedUniSpecChange } from "./enhanced-diff";
2
2
  /**
3
3
  * Service for calculating compatibility metrics from enhanced changes.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ChangeImpact } from "./enhanced-diff.js";
1
+ import type { ChangeImpact } from "./enhanced-diff";
2
2
  export type RiskLevel = "low" | "medium" | "high" | "critical";
3
3
  /**
4
4
  * Calculator for determining risk levels based on change impact.
@@ -1,5 +1,5 @@
1
- import type { ChangeImpact } from "./enhanced-diff.js";
2
- import type { UniSpecChange } from "./index.js";
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.js";
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.js";
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.js";
2
- import { UniSpecConfigError } from "./config-error.js";
3
- import { UniSpecLoaderError } from "./loader-error.js";
4
- import { UniSpecReferenceError } from "./reference-error.js";
5
- import { UniSpecSchemaError } from "./schema-error.js";
6
- import { UniSpecSecurityError } from "./security-error.js";
7
- import { UniSpecSemanticError } from "./semantic-error.js";
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.js";
2
- import { UniSpecConfigError } from "./config-error.js";
3
- import { UniSpecLoaderError } from "./loader-error.js";
4
- import { UniSpecReferenceError } from "./reference-error.js";
5
- import { UniSpecSchemaError } from "./schema-error.js";
6
- import { UniSpecSecurityError } from "./security-error.js";
7
- import { UniSpecSemanticError } from "./semantic-error.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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);
@@ -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/index.js";
7
+ export * from "./cache";
8
8
  // ============================================================================
9
9
  // DIFF AND CHANGE ANALYSIS
10
10
  // ============================================================================
11
- export * from "./diff/index.js";
11
+ export * from "./diff";
12
12
  // ============================================================================
13
13
  // DOCUMENT LOADING AND PARSING
14
14
  // ============================================================================
15
- export * from "./loader/index.js";
15
+ export * from "./loader";
16
16
  // ============================================================================
17
17
  // DOCUMENT NORMALIZATION
18
18
  // ============================================================================
19
- export * from "./normalizer/index.js";
19
+ export * from "./normalizer";
20
20
  // ============================================================================
21
21
  // DOCUMENT OPTIMIZATION
22
22
  // ============================================================================
23
- export * from "./optimizer/index.js";
23
+ export * from "./optimizer";
24
24
  // ============================================================================
25
25
  // SCHEMA MANAGEMENT
26
26
  // ============================================================================
27
- export * from "./schemas/index.js";
28
- export * from "./types/index.js";
27
+ export * from "./schemas";
28
+ export * from "./types";
29
29
  // ============================================================================
30
30
  // VALIDATION SYSTEM
31
31
  // ============================================================================
32
- export * from "./validator/index.js";
32
+ export * from "./validator";
33
33
  // ============================================================================
34
34
  // UTILITY FUNCTIONS
35
35
  // ============================================================================
36
- export * from "./validator/object-traversal.js";
37
- export * from "./validator/reference-validator.js";
38
- export * from "./validator/schema-references.js";
39
- export * from "./validator/semantic-validator.js";
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.js";
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";
@@ -0,0 +1,5 @@
1
+ // Export all loader functionality
2
+ export { validateDocumentSecurity } from "./security-validator";
3
+ export { ALLOWED_YAML_MODULES } from "./types";
4
+ export { loadUniSpec } from "./unispec-loader";
5
+ export { getYamlModule, validateYamlModule } from "./yaml-loader";
@@ -1,4 +1,4 @@
1
- import type { SecureLoadOptions } from "./types.js";
1
+ import type { SecureLoadOptions } from "./types";
2
2
  /**
3
3
  * Validate document security constraints using iterative approach to prevent stack overflow.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ErrorFactory } from "../errors/index.js";
1
+ import { ErrorFactory } from "@/errors";
2
2
  /**
3
3
  * Validate document security constraints using iterative approach to prevent stack overflow.
4
4
  */
@@ -1,5 +1,5 @@
1
- import type { UniSpecDocument } from "../types/index.js";
2
- import type { LoadOptions } from "./types.js";
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 "../errors/index.js";
2
- import { validateDocumentSecurity } from "./security-validator.js";
3
- import { getYamlModule } from "./yaml-loader.js";
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,4 +1,4 @@
1
- import type { YamlModule } from "./types.js";
1
+ import type { YamlModule } from "./types";
2
2
  /**
3
3
  * Securely load YAML module with validation.
4
4
  * Uses static import path and validates the module structure.
@@ -1,4 +1,4 @@
1
- import { ErrorFactory } from "../errors/index.js";
1
+ import { ErrorFactory } from "@/errors/index";
2
2
  // Static import with security validation
3
3
  let yamlModule = null;
4
4
  /**
@@ -1,5 +1,5 @@
1
- import type { UniSpecDocument } from "../types/index.js";
2
- import type { NormalizeOptions } from "./types.js";
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.js";
2
- import { normalizeRestRoutes } from "./rest-normalizer.js";
3
- import { normalizeValue } from "./utils.js";
4
- import { normalizeWebSocket } from "./websocket-normalizer.js";
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
  *
@@ -1,4 +1,4 @@
1
- import type { UniSpecDocument } from "../types/index.js";
1
+ import type { UniSpecDocument } from "@/types";
2
2
  /**
3
3
  * Normalize GraphQL operations by sorting them lexicographically by name within each operation type.
4
4
  *
@@ -0,0 +1,2 @@
1
+ export { normalizeUniSpec } from "./core";
2
+ export type { NormalizeOptions } from "./types";