@as-integrations/h3 1.2.0 → 1.2.1
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/index.cjs +123 -6
- package/dist/index.d.cts +42 -0
- package/dist/index.d.mts +42 -0
- package/dist/index.d.ts +42 -1
- package/dist/index.mjs +117 -11
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,124 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const server = require('@apollo/server');
|
|
4
|
+
const h3 = require('h3');
|
|
5
|
+
const graphqlWs = require('graphql-ws');
|
|
6
|
+
|
|
7
|
+
function defineGraphqlWebSocket(options) {
|
|
8
|
+
const server = graphqlWs.makeServer(options);
|
|
9
|
+
const peers = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
return h3.defineWebSocket({
|
|
11
|
+
open(peer) {
|
|
12
|
+
const client = {
|
|
13
|
+
handleMessage: () => {
|
|
14
|
+
throw new Error("Message received before handler was registered");
|
|
15
|
+
},
|
|
16
|
+
closed: () => {
|
|
17
|
+
throw new Error("Closed before handler was registered");
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
client.closed = server.opened(
|
|
21
|
+
{
|
|
22
|
+
// TODO: use protocol on socket once h3 exposes it
|
|
23
|
+
// https://github.com/unjs/crossws/issues/31
|
|
24
|
+
protocol: graphqlWs.GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
25
|
+
send: (message) => {
|
|
26
|
+
if (peers.has(peer)) {
|
|
27
|
+
peer.send(message);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
close: (_code, _reason) => {
|
|
31
|
+
if (peers.has(peer)) ;
|
|
32
|
+
},
|
|
33
|
+
onMessage: (cb) => client.handleMessage = cb
|
|
34
|
+
},
|
|
35
|
+
{ peer }
|
|
36
|
+
);
|
|
37
|
+
peers.set(peer, client);
|
|
38
|
+
},
|
|
39
|
+
message(peer, message) {
|
|
40
|
+
const client = peers.get(peer);
|
|
41
|
+
if (!client)
|
|
42
|
+
throw new Error("Message received for a missing client");
|
|
43
|
+
return client.handleMessage(message.text());
|
|
44
|
+
},
|
|
45
|
+
close(peer, details) {
|
|
46
|
+
const client = peers.get(peer);
|
|
47
|
+
if (!client)
|
|
48
|
+
throw new Error("Closing a missing client");
|
|
49
|
+
return client.closed(details.code ?? 1e3, details.reason ?? "");
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function defineGraphqlWebSocketHandler(options) {
|
|
54
|
+
return h3.defineWebSocketHandler(defineGraphqlWebSocket(options));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function startServerAndCreateH3Handler(server, options) {
|
|
58
|
+
server.startInBackgroundHandlingStartupErrorsByLoggingAndFailingAllRequests();
|
|
59
|
+
const defaultContext = () => Promise.resolve({});
|
|
60
|
+
const contextFunction = options?.context ?? defaultContext;
|
|
61
|
+
return h3.eventHandler({
|
|
62
|
+
async handler(event) {
|
|
63
|
+
if (h3.isMethod(event, "OPTIONS")) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
const graphqlRequest = await toGraphqlRequest(event);
|
|
68
|
+
const { body, headers, status } = await server.executeHTTPGraphQLRequest({
|
|
69
|
+
httpGraphQLRequest: graphqlRequest,
|
|
70
|
+
context: () => contextFunction({ event })
|
|
71
|
+
});
|
|
72
|
+
if (body.kind === "chunked") {
|
|
73
|
+
throw new Error("Incremental delivery not implemented");
|
|
74
|
+
}
|
|
75
|
+
h3.setHeaders(event, Object.fromEntries(headers));
|
|
76
|
+
event.res.statusCode = status || 200;
|
|
77
|
+
return body.string;
|
|
78
|
+
} catch (error) {
|
|
79
|
+
if (error instanceof SyntaxError) {
|
|
80
|
+
event.res.statusCode = 400;
|
|
81
|
+
return error.message;
|
|
82
|
+
} else {
|
|
83
|
+
throw error;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
websocket: options?.websocket
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
async function toGraphqlRequest(event) {
|
|
91
|
+
return {
|
|
92
|
+
method: event.req.method || "POST",
|
|
93
|
+
headers: normalizeHeaders(h3.getHeaders(event)),
|
|
94
|
+
search: normalizeQueryString(event.req.url),
|
|
95
|
+
body: await normalizeBody(event)
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function normalizeHeaders(headers) {
|
|
99
|
+
const headerMap = new server.HeaderMap();
|
|
100
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
101
|
+
if (Array.isArray(value)) {
|
|
102
|
+
headerMap.set(key, value.join(","));
|
|
103
|
+
} else if (value) {
|
|
104
|
+
headerMap.set(key, value);
|
|
105
|
+
}
|
|
6
106
|
}
|
|
7
|
-
|
|
107
|
+
return headerMap;
|
|
108
|
+
}
|
|
109
|
+
function normalizeQueryString(url) {
|
|
110
|
+
if (!url) {
|
|
111
|
+
return "";
|
|
112
|
+
}
|
|
113
|
+
return url.split("?")[1] || "";
|
|
114
|
+
}
|
|
115
|
+
async function normalizeBody(event) {
|
|
116
|
+
const PayloadMethods = ["PATCH", "POST", "PUT", "DELETE"];
|
|
117
|
+
if (h3.isMethod(event, PayloadMethods)) {
|
|
118
|
+
return await h3.readBody(event);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
exports.defineGraphqlWebSocket = defineGraphqlWebSocket;
|
|
123
|
+
exports.defineGraphqlWebSocketHandler = defineGraphqlWebSocketHandler;
|
|
124
|
+
exports.startServerAndCreateH3Handler = startServerAndCreateH3Handler;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseContext, ContextFunction, ApolloServer } from '@apollo/server';
|
|
2
|
+
import { Hooks, Peer } from 'crossws';
|
|
3
|
+
import { EventHandler, EventHandlerRequest, H3Event } from 'h3';
|
|
4
|
+
import { ConnectionInitMessage, ServerOptions } from 'graphql-ws';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The extra that will be put in the `Context`.
|
|
8
|
+
*
|
|
9
|
+
* @category Server/h3
|
|
10
|
+
*/
|
|
11
|
+
interface Extra {
|
|
12
|
+
/**
|
|
13
|
+
* The underlying WebSocket peer.
|
|
14
|
+
*/
|
|
15
|
+
readonly peer: Peer;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create the WebSocket hooks to be used with [h3](https://h3.unjs.io/).
|
|
19
|
+
*
|
|
20
|
+
* Use this over {@link defineGraphqlWebSocketHandler} if you need more control over the WebSocket server or
|
|
21
|
+
* if you want to add custom hooks (e.g. for authentication or logging).
|
|
22
|
+
*/
|
|
23
|
+
declare function defineGraphqlWebSocket<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): Partial<Hooks>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a event handler to be used with [h3](https://h3.unjs.io/).
|
|
26
|
+
*
|
|
27
|
+
* @category Server/h3
|
|
28
|
+
*/
|
|
29
|
+
declare function defineGraphqlWebSocketHandler<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): EventHandler<EventHandlerRequest, never>;
|
|
30
|
+
|
|
31
|
+
type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
32
|
+
interface H3ContextFunctionArgument {
|
|
33
|
+
event: H3Event;
|
|
34
|
+
}
|
|
35
|
+
interface H3HandlerOptions<TContext extends BaseContext> {
|
|
36
|
+
context?: ContextFunction<[H3ContextFunctionArgument], TContext>;
|
|
37
|
+
websocket?: Partial<Hooks>;
|
|
38
|
+
}
|
|
39
|
+
declare function startServerAndCreateH3Handler(server: ApolloServer<BaseContext>, options?: H3HandlerOptions<BaseContext>): EventHandler;
|
|
40
|
+
declare function startServerAndCreateH3Handler<TContext extends BaseContext>(server: ApolloServer<TContext>, options: WithRequired<H3HandlerOptions<TContext>, 'context'>): EventHandler;
|
|
41
|
+
|
|
42
|
+
export { type H3ContextFunctionArgument, type H3HandlerOptions, defineGraphqlWebSocket, defineGraphqlWebSocketHandler, startServerAndCreateH3Handler };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseContext, ContextFunction, ApolloServer } from '@apollo/server';
|
|
2
|
+
import { Hooks, Peer } from 'crossws';
|
|
3
|
+
import { EventHandler, EventHandlerRequest, H3Event } from 'h3';
|
|
4
|
+
import { ConnectionInitMessage, ServerOptions } from 'graphql-ws';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The extra that will be put in the `Context`.
|
|
8
|
+
*
|
|
9
|
+
* @category Server/h3
|
|
10
|
+
*/
|
|
11
|
+
interface Extra {
|
|
12
|
+
/**
|
|
13
|
+
* The underlying WebSocket peer.
|
|
14
|
+
*/
|
|
15
|
+
readonly peer: Peer;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create the WebSocket hooks to be used with [h3](https://h3.unjs.io/).
|
|
19
|
+
*
|
|
20
|
+
* Use this over {@link defineGraphqlWebSocketHandler} if you need more control over the WebSocket server or
|
|
21
|
+
* if you want to add custom hooks (e.g. for authentication or logging).
|
|
22
|
+
*/
|
|
23
|
+
declare function defineGraphqlWebSocket<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): Partial<Hooks>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a event handler to be used with [h3](https://h3.unjs.io/).
|
|
26
|
+
*
|
|
27
|
+
* @category Server/h3
|
|
28
|
+
*/
|
|
29
|
+
declare function defineGraphqlWebSocketHandler<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): EventHandler<EventHandlerRequest, never>;
|
|
30
|
+
|
|
31
|
+
type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
32
|
+
interface H3ContextFunctionArgument {
|
|
33
|
+
event: H3Event;
|
|
34
|
+
}
|
|
35
|
+
interface H3HandlerOptions<TContext extends BaseContext> {
|
|
36
|
+
context?: ContextFunction<[H3ContextFunctionArgument], TContext>;
|
|
37
|
+
websocket?: Partial<Hooks>;
|
|
38
|
+
}
|
|
39
|
+
declare function startServerAndCreateH3Handler(server: ApolloServer<BaseContext>, options?: H3HandlerOptions<BaseContext>): EventHandler;
|
|
40
|
+
declare function startServerAndCreateH3Handler<TContext extends BaseContext>(server: ApolloServer<TContext>, options: WithRequired<H3HandlerOptions<TContext>, 'context'>): EventHandler;
|
|
41
|
+
|
|
42
|
+
export { type H3ContextFunctionArgument, type H3HandlerOptions, defineGraphqlWebSocket, defineGraphqlWebSocketHandler, startServerAndCreateH3Handler };
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseContext, ContextFunction, ApolloServer } from '@apollo/server';
|
|
2
|
+
import { Hooks, Peer } from 'crossws';
|
|
3
|
+
import { EventHandler, EventHandlerRequest, H3Event } from 'h3';
|
|
4
|
+
import { ConnectionInitMessage, ServerOptions } from 'graphql-ws';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The extra that will be put in the `Context`.
|
|
8
|
+
*
|
|
9
|
+
* @category Server/h3
|
|
10
|
+
*/
|
|
11
|
+
interface Extra {
|
|
12
|
+
/**
|
|
13
|
+
* The underlying WebSocket peer.
|
|
14
|
+
*/
|
|
15
|
+
readonly peer: Peer;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create the WebSocket hooks to be used with [h3](https://h3.unjs.io/).
|
|
19
|
+
*
|
|
20
|
+
* Use this over {@link defineGraphqlWebSocketHandler} if you need more control over the WebSocket server or
|
|
21
|
+
* if you want to add custom hooks (e.g. for authentication or logging).
|
|
22
|
+
*/
|
|
23
|
+
declare function defineGraphqlWebSocket<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): Partial<Hooks>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a event handler to be used with [h3](https://h3.unjs.io/).
|
|
26
|
+
*
|
|
27
|
+
* @category Server/h3
|
|
28
|
+
*/
|
|
29
|
+
declare function defineGraphqlWebSocketHandler<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): EventHandler<EventHandlerRequest, never>;
|
|
30
|
+
|
|
31
|
+
type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
32
|
+
interface H3ContextFunctionArgument {
|
|
33
|
+
event: H3Event;
|
|
34
|
+
}
|
|
35
|
+
interface H3HandlerOptions<TContext extends BaseContext> {
|
|
36
|
+
context?: ContextFunction<[H3ContextFunctionArgument], TContext>;
|
|
37
|
+
websocket?: Partial<Hooks>;
|
|
38
|
+
}
|
|
39
|
+
declare function startServerAndCreateH3Handler(server: ApolloServer<BaseContext>, options?: H3HandlerOptions<BaseContext>): EventHandler;
|
|
40
|
+
declare function startServerAndCreateH3Handler<TContext extends BaseContext>(server: ApolloServer<TContext>, options: WithRequired<H3HandlerOptions<TContext>, 'context'>): EventHandler;
|
|
41
|
+
|
|
42
|
+
export { type H3ContextFunctionArgument, type H3HandlerOptions, defineGraphqlWebSocket, defineGraphqlWebSocketHandler, startServerAndCreateH3Handler };
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,120 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HeaderMap } from '@apollo/server';
|
|
2
|
+
import { defineWebSocket, defineWebSocketHandler, eventHandler, isMethod, setHeaders, getHeaders, readBody } from 'h3';
|
|
3
|
+
import { makeServer, GRAPHQL_TRANSPORT_WS_PROTOCOL } from 'graphql-ws';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
function defineGraphqlWebSocket(options) {
|
|
6
|
+
const server = makeServer(options);
|
|
7
|
+
const peers = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
return defineWebSocket({
|
|
9
|
+
open(peer) {
|
|
10
|
+
const client = {
|
|
11
|
+
handleMessage: () => {
|
|
12
|
+
throw new Error("Message received before handler was registered");
|
|
13
|
+
},
|
|
14
|
+
closed: () => {
|
|
15
|
+
throw new Error("Closed before handler was registered");
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
client.closed = server.opened(
|
|
19
|
+
{
|
|
20
|
+
// TODO: use protocol on socket once h3 exposes it
|
|
21
|
+
// https://github.com/unjs/crossws/issues/31
|
|
22
|
+
protocol: GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
23
|
+
send: (message) => {
|
|
24
|
+
if (peers.has(peer)) {
|
|
25
|
+
peer.send(message);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
close: (_code, _reason) => {
|
|
29
|
+
if (peers.has(peer)) ;
|
|
30
|
+
},
|
|
31
|
+
onMessage: (cb) => client.handleMessage = cb
|
|
32
|
+
},
|
|
33
|
+
{ peer }
|
|
34
|
+
);
|
|
35
|
+
peers.set(peer, client);
|
|
36
|
+
},
|
|
37
|
+
message(peer, message) {
|
|
38
|
+
const client = peers.get(peer);
|
|
39
|
+
if (!client)
|
|
40
|
+
throw new Error("Message received for a missing client");
|
|
41
|
+
return client.handleMessage(message.text());
|
|
42
|
+
},
|
|
43
|
+
close(peer, details) {
|
|
44
|
+
const client = peers.get(peer);
|
|
45
|
+
if (!client)
|
|
46
|
+
throw new Error("Closing a missing client");
|
|
47
|
+
return client.closed(details.code ?? 1e3, details.reason ?? "");
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function defineGraphqlWebSocketHandler(options) {
|
|
52
|
+
return defineWebSocketHandler(defineGraphqlWebSocket(options));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function startServerAndCreateH3Handler(server, options) {
|
|
56
|
+
server.startInBackgroundHandlingStartupErrorsByLoggingAndFailingAllRequests();
|
|
57
|
+
const defaultContext = () => Promise.resolve({});
|
|
58
|
+
const contextFunction = options?.context ?? defaultContext;
|
|
59
|
+
return eventHandler({
|
|
60
|
+
async handler(event) {
|
|
61
|
+
if (isMethod(event, "OPTIONS")) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
const graphqlRequest = await toGraphqlRequest(event);
|
|
66
|
+
const { body, headers, status } = await server.executeHTTPGraphQLRequest({
|
|
67
|
+
httpGraphQLRequest: graphqlRequest,
|
|
68
|
+
context: () => contextFunction({ event })
|
|
69
|
+
});
|
|
70
|
+
if (body.kind === "chunked") {
|
|
71
|
+
throw new Error("Incremental delivery not implemented");
|
|
72
|
+
}
|
|
73
|
+
setHeaders(event, Object.fromEntries(headers));
|
|
74
|
+
event.res.statusCode = status || 200;
|
|
75
|
+
return body.string;
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (error instanceof SyntaxError) {
|
|
78
|
+
event.res.statusCode = 400;
|
|
79
|
+
return error.message;
|
|
80
|
+
} else {
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
websocket: options?.websocket
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
async function toGraphqlRequest(event) {
|
|
89
|
+
return {
|
|
90
|
+
method: event.req.method || "POST",
|
|
91
|
+
headers: normalizeHeaders(getHeaders(event)),
|
|
92
|
+
search: normalizeQueryString(event.req.url),
|
|
93
|
+
body: await normalizeBody(event)
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function normalizeHeaders(headers) {
|
|
97
|
+
const headerMap = new HeaderMap();
|
|
98
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
99
|
+
if (Array.isArray(value)) {
|
|
100
|
+
headerMap.set(key, value.join(","));
|
|
101
|
+
} else if (value) {
|
|
102
|
+
headerMap.set(key, value);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return headerMap;
|
|
106
|
+
}
|
|
107
|
+
function normalizeQueryString(url) {
|
|
108
|
+
if (!url) {
|
|
109
|
+
return "";
|
|
110
|
+
}
|
|
111
|
+
return url.split("?")[1] || "";
|
|
112
|
+
}
|
|
113
|
+
async function normalizeBody(event) {
|
|
114
|
+
const PayloadMethods = ["PATCH", "POST", "PUT", "DELETE"];
|
|
115
|
+
if (isMethod(event, PayloadMethods)) {
|
|
116
|
+
return await readBody(event);
|
|
9
117
|
}
|
|
10
|
-
}
|
|
118
|
+
}
|
|
11
119
|
|
|
12
|
-
export
|
|
13
|
-
export const defineGraphqlWebSocket = _module.defineGraphqlWebSocket;
|
|
14
|
-
export const defineGraphqlWebSocketHandler = _module.defineGraphqlWebSocketHandler;
|
|
120
|
+
export { defineGraphqlWebSocket, defineGraphqlWebSocketHandler, startServerAndCreateH3Handler };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@as-integrations/h3",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "An Apollo Server integration for use with h3 or Nuxt",
|
|
5
5
|
"repository": "github:apollo-server-integrations/apollo-server-integration-h3",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"node": "^16.10.0 || >=18.0.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
|
+
"dev:prepare": "unbuild --stub",
|
|
64
65
|
"build": "unbuild",
|
|
65
66
|
"test": "vitest dev",
|
|
66
67
|
"test:integration": "jest",
|