@rexeus/typeweaver-types 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import type {
3
3
  IRequestValidator,
4
4
  SafeRequestValidationResult,
5
5
  } from "@rexeus/typeweaver-core";
6
- import { Validator } from "./Validator";
6
+ import { Validator } from "./Validator.js";
7
7
 
8
8
  export declare abstract class RequestValidator
9
9
  extends Validator
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * @generated by @rexeus/typeweaver
6
6
  */
7
- import { Validator } from "./Validator";
7
+ import { Validator } from "./Validator.js";
8
8
  /**
9
9
  * Abstract base class for HTTP request validation.
10
10
  *
@@ -7,7 +7,7 @@ import type {
7
7
  ResponseValidationError,
8
8
  SafeResponseValidationResult,
9
9
  } from "@rexeus/typeweaver-core";
10
- import { Validator } from "./Validator";
10
+ import { Validator } from "./Validator.js";
11
11
 
12
12
  export type ResponseEntry = {
13
13
  readonly name: string;
@@ -5,7 +5,7 @@
5
5
  * @generated by @rexeus/typeweaver
6
6
  */
7
7
  import { ResponseValidationError } from "@rexeus/typeweaver-core";
8
- import { Validator } from "./Validator";
8
+ import { Validator } from "./Validator.js";
9
9
  /**
10
10
  * Abstract base class for HTTP response validation.
11
11
  *
package/dist/lib/index.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * @generated by @rexeus/typeweaver
6
6
  */
7
7
 
8
- export * from "./definitionLookup";
9
- export * from "./RequestValidator";
10
- export * from "./ResponseValidator";
11
- export * from "./Validator";
8
+ export * from "./definitionLookup.js";
9
+ export * from "./RequestValidator.js";
10
+ export * from "./ResponseValidator.js";
11
+ export * from "./Validator.js";
@@ -12,7 +12,7 @@ import {
12
12
  type SafeRequestValidationResult,
13
13
  RequestValidationError
14
14
  } from "@rexeus/typeweaver-core";
15
- import { getOperationDefinition, RequestValidator } from "../lib/types";
15
+ import { getOperationDefinition, RequestValidator } from "../lib/types/index.js";
16
16
  import type { I<%= pascalCaseOperationId %>Request } from "<%= requestFile %>";
17
17
 
18
18
  const definition = getOperationDefinition(spec, "<%= resourceName %>", "<%= operationId %>");
@@ -12,7 +12,7 @@ import {
12
12
  getResponseDefinition,
13
13
  type ResponseEntry,
14
14
  ResponseValidator,
15
- } from "../lib/types";
15
+ } from "../lib/types/index.js";
16
16
  import type { <%= pascalCaseOperationId %>Response } from "<%= responseFile %>";
17
17
 
18
18
  const definition = getOperationDefinition(spec, "<%= resourceName %>", "<%= operationId %>");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rexeus/typeweaver-types",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Generates request and response types plus validators aligned with your API contract. Powered by Typeweaver 🧵✨",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -47,16 +47,16 @@
47
47
  },
48
48
  "homepage": "https://github.com/rexeus/typeweaver#readme",
49
49
  "peerDependencies": {
50
- "@rexeus/typeweaver-core": "^0.10.1",
51
- "@rexeus/typeweaver-gen": "^0.10.1"
50
+ "@rexeus/typeweaver-core": "^0.10.2",
51
+ "@rexeus/typeweaver-gen": "^0.10.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "test-utils": "file:../test-utils",
55
- "@rexeus/typeweaver-gen": "^0.10.1",
56
- "@rexeus/typeweaver-core": "^0.10.1"
55
+ "@rexeus/typeweaver-core": "^0.10.2",
56
+ "@rexeus/typeweaver-gen": "^0.10.2"
57
57
  },
58
58
  "dependencies": {
59
- "@rexeus/typeweaver-zod-to-ts": "^0.10.1"
59
+ "@rexeus/typeweaver-zod-to-ts": "^0.10.2"
60
60
  },
61
61
  "scripts": {
62
62
  "typecheck": "tsc --noEmit -p tsconfig.typecheck.json",