@rest-vir/define-service 1.2.4 → 1.2.5
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.
|
@@ -86,9 +86,9 @@ export type EndpointInit<AllowedMethods extends RequireAtLeastOne<Record<HttpMet
|
|
|
86
86
|
* @package [`@rest-vir/define-service`](https://www.npmjs.com/package/@rest-vir/define-service)
|
|
87
87
|
*/
|
|
88
88
|
export declare const endpointInitShape: Shape<{
|
|
89
|
-
requestDataShape: Shape<import("@sinclair/typebox").
|
|
90
|
-
responseDataShape: Shape<import("@sinclair/typebox").
|
|
91
|
-
searchParamsShape: Shape<import("@sinclair/typebox").
|
|
89
|
+
requestDataShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
90
|
+
responseDataShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
91
|
+
searchParamsShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
92
92
|
/**
|
|
93
93
|
* Set a required client origin for this endpoint.
|
|
94
94
|
*
|
|
@@ -103,7 +103,7 @@ export declare const endpointInitShape: Shape<{
|
|
|
103
103
|
anyOrigin: boolean;
|
|
104
104
|
}> | import("@sinclair/typebox").TUnsafe<RegExp> | import("@sinclair/typebox").TString | import("@sinclair/typebox").TUnsafe<() => void>)[]>>)[]>>>;
|
|
105
105
|
methods: import("@sinclair/typebox").TUnsafe<Partial<Record<HttpMethod, boolean>>>;
|
|
106
|
-
bypassResponseValidation: Shape<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<(import("@sinclair/typebox").
|
|
106
|
+
bypassResponseValidation: Shape<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<(import("@sinclair/typebox").TBoolean | import("@sinclair/typebox").TNull | import("@sinclair/typebox").TUndefined)[]>>>;
|
|
107
107
|
customProps: Shape<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<(import("@sinclair/typebox").TUndefined | import("@sinclair/typebox").TUnsafe<Record<never, unknown>>)[]>>>;
|
|
108
108
|
}>;
|
|
109
109
|
/**
|
|
@@ -125,9 +125,9 @@ export type GenericWebSocketDefinition = Overwrite<WebSocketDefinition, {
|
|
|
125
125
|
* @package [`@rest-vir/define-service`](https://www.npmjs.com/package/@rest-vir/define-service)
|
|
126
126
|
*/
|
|
127
127
|
export declare const webSocketInitShape: Shape<{
|
|
128
|
-
messageFromClientShape: Shape<import("@sinclair/typebox").
|
|
129
|
-
messageFromHostShape: Shape<import("@sinclair/typebox").
|
|
130
|
-
searchParamsShape: Shape<import("@sinclair/typebox").
|
|
128
|
+
messageFromClientShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
129
|
+
messageFromHostShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
130
|
+
searchParamsShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
131
131
|
/**
|
|
132
132
|
* Set a required client origin for this WebSocket.
|
|
133
133
|
*
|
|
@@ -142,7 +142,7 @@ export declare const webSocketInitShape: Shape<{
|
|
|
142
142
|
anyOrigin: boolean;
|
|
143
143
|
}> | import("@sinclair/typebox").TUnsafe<RegExp> | import("@sinclair/typebox").TString | import("@sinclair/typebox").TUnsafe<() => void>)[]>>)[]>>>;
|
|
144
144
|
customProps: Shape<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<(import("@sinclair/typebox").TUndefined | import("@sinclair/typebox").TUnsafe<Record<never, unknown>>)[]>>>;
|
|
145
|
-
protocolsShape: Shape<import("@sinclair/typebox").
|
|
145
|
+
protocolsShape: Shape<import("@sinclair/typebox").TUnsafe<unknown>>;
|
|
146
146
|
}>;
|
|
147
147
|
/**
|
|
148
148
|
* Attaches message type-only getters to a WebSocket definition.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rest-vir/define-service",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Define an connect to a declarative and type safe REST and WebSocket service.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rest",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"test:update": "npm test update"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@augment-vir/assert": "^31.
|
|
44
|
-
"@augment-vir/common": "^31.
|
|
45
|
-
"date-vir": "^
|
|
46
|
-
"type-fest": "^
|
|
43
|
+
"@augment-vir/assert": "^31.40.0",
|
|
44
|
+
"@augment-vir/common": "^31.40.0",
|
|
45
|
+
"date-vir": "^8.0.0",
|
|
46
|
+
"type-fest": "^5.1.0",
|
|
47
47
|
"url-vir": "^2.1.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@augment-vir/test": "^31.
|
|
50
|
+
"@augment-vir/test": "^31.40.0",
|
|
51
51
|
"@web/dev-server-esbuild": "^1.0.4",
|
|
52
52
|
"@web/test-runner": "^0.20.2",
|
|
53
53
|
"@web/test-runner-commands": "^0.9.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
56
56
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
57
57
|
"markdown-code-example-inserter": "^3.0.3",
|
|
58
|
-
"object-shape-tester": "^6.
|
|
59
|
-
"typedoc": "^0.28.
|
|
58
|
+
"object-shape-tester": "^6.9.2",
|
|
59
|
+
"typedoc": "^0.28.14",
|
|
60
60
|
"ws": "^8.18.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|