@tsed/socketio-testing 7.0.0-beta.1 → 7.0.0-beta.10

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/lib/cjs/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./services/SocketClientService"), exports);
4
+ tslib_1.__exportStar(require("./services/SocketClientService"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,8EAA+C","sourcesContent":["export * from \"./services/SocketClientService\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,yEAA+C","sourcesContent":["export * from \"./services/SocketClientService\";\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -29,15 +29,15 @@ let SocketClientService = class SocketClientService {
29
29
  this.logger.debug("Socket.io clients closed...");
30
30
  }
31
31
  };
32
- (0, tslib_1.__decorate)([
32
+ tslib_1.__decorate([
33
33
  (0, di_1.Configuration)(),
34
- (0, tslib_1.__metadata)("design:type", Object)
34
+ tslib_1.__metadata("design:type", Object)
35
35
  ], SocketClientService.prototype, "settings", void 0);
36
- (0, tslib_1.__decorate)([
36
+ tslib_1.__decorate([
37
37
  (0, common_1.Inject)(),
38
- (0, tslib_1.__metadata)("design:type", common_1.Logger)
38
+ tslib_1.__metadata("design:type", common_1.Logger)
39
39
  ], SocketClientService.prototype, "logger", void 0);
40
- SocketClientService = (0, tslib_1.__decorate)([
40
+ SocketClientService = tslib_1.__decorate([
41
41
  (0, di_1.Injectable)()
42
42
  ], SocketClientService);
43
43
  exports.SocketClientService = SocketClientService;
@@ -1 +1 @@
1
- {"version":3,"file":"SocketClientService.js","sourceRoot":"","sources":["../../../src/services/SocketClientService.ts"],"names":[],"mappings":";;;;AAAA,yCAAuD;AACvD,iCAAmD;AACnD,uDAA4C;AAG5C,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAOU,YAAO,GAAwB,IAAI,GAAG,EAAE,CAAC;IA4BnD,CAAC;IA1BC,KAAK,CAAC,GAAG,CAAC,YAAoB,GAAG,EAAE,IAAa;QAC9C,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAE,CAAC;SACrC;QAED,MAAM,EAAC,OAAO,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACpD,MAAM,GAAG,GAAG,UAAU,OAAO,IAAI,IAAI,GAAG,SAAS,EAAE,CAAC;QAEpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,IAAA,qBAAE,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAElD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAEpC,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC5B,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,OAAc,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAEnD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,UAAU;QACR,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AAjCC;IADC,IAAA,kBAAa,GAAE;;qDACgB;AAGhC;IADC,IAAA,eAAM,GAAE;2CACO,eAAM;mDAAC;AALZ,mBAAmB;IAD/B,IAAA,eAAU,GAAE;GACA,mBAAmB,CAmC/B;AAnCY,kDAAmB","sourcesContent":["import {Inject, Logger, OnDestroy} from \"@tsed/common\";\nimport {Configuration, Injectable} from \"@tsed/di\";\nimport {io, Socket} from \"socket.io-client\";\n\n@Injectable()\nexport class SocketClientService implements OnDestroy {\n @Configuration()\n private settings: Configuration;\n\n @Inject()\n private logger: Logger;\n\n private clients: Map<string, Socket> = new Map();\n\n async get(namespace: string = \"/\", path?: string): Promise<Socket> {\n if (this.clients.has(namespace)) {\n return this.clients.get(namespace)!;\n }\n\n const {address, port} = this.settings.getHttpPort();\n const uri = `http://${address}:${port}${namespace}`;\n\n this.logger.info(\"Bind Socket.io client on:\", uri);\n const client = io(uri, path ? {path} : undefined);\n\n this.clients.set(namespace, client);\n\n await new Promise((resolve) => {\n client.on(\"connect\", resolve as any);\n });\n\n this.logger.debug(\"Socket.io client connected...\");\n\n return client;\n }\n\n $onDestroy() {\n this.clients.forEach((client) => client.close());\n this.logger.debug(\"Socket.io clients closed...\");\n }\n}\n"]}
1
+ {"version":3,"file":"SocketClientService.js","sourceRoot":"","sources":["../../../src/services/SocketClientService.ts"],"names":[],"mappings":";;;;AAAA,yCAAuD;AACvD,iCAAmD;AACnD,uDAA4C;AAG5C,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAOU,YAAO,GAAwB,IAAI,GAAG,EAAE,CAAC;IA4BnD,CAAC;IA1BC,KAAK,CAAC,GAAG,CAAC,YAAoB,GAAG,EAAE,IAAa;QAC9C,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAE,CAAC;SACrC;QAED,MAAM,EAAC,OAAO,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACpD,MAAM,GAAG,GAAG,UAAU,OAAO,IAAI,IAAI,GAAG,SAAS,EAAE,CAAC;QAEpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,IAAA,qBAAE,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAElD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAEpC,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC5B,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,OAAc,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAEnD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,UAAU;QACR,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AAjCC;IADC,IAAA,kBAAa,GAAE;;qDACgB;AAGhC;IADC,IAAA,eAAM,GAAE;sCACO,eAAM;mDAAC;AALZ,mBAAmB;IAD/B,IAAA,eAAU,GAAE;GACA,mBAAmB,CAmC/B;AAnCY,kDAAmB","sourcesContent":["import {Inject, Logger, OnDestroy} from \"@tsed/common\";\nimport {Configuration, Injectable} from \"@tsed/di\";\nimport {io, Socket} from \"socket.io-client\";\n\n@Injectable()\nexport class SocketClientService implements OnDestroy {\n @Configuration()\n private settings: Configuration;\n\n @Inject()\n private logger: Logger;\n\n private clients: Map<string, Socket> = new Map();\n\n async get(namespace: string = \"/\", path?: string): Promise<Socket> {\n if (this.clients.has(namespace)) {\n return this.clients.get(namespace)!;\n }\n\n const {address, port} = this.settings.getHttpPort();\n const uri = `http://${address}:${port}${namespace}`;\n\n this.logger.info(\"Bind Socket.io client on:\", uri);\n const client = io(uri, path ? {path} : undefined);\n\n this.clients.set(namespace, client);\n\n await new Promise((resolve) => {\n client.on(\"connect\", resolve as any);\n });\n\n this.logger.debug(\"Socket.io client connected...\");\n\n return client;\n }\n\n $onDestroy() {\n this.clients.forEach((client) => client.close());\n this.logger.debug(\"Socket.io clients closed...\");\n }\n}\n"]}
package/lib/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./services/SocketClientService";
1
+ export * from "./services/SocketClientService.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tsed/socketio-testing",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.10",
4
4
  "description": "Socket.io testing package for Ts.ED framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
+ "module": "./lib/esm/index.js",
8
9
  "typings": "./lib/types/index.d.ts",
9
10
  "exports": {
10
11
  "types": "./lib/types/index.d.ts",
@@ -19,25 +20,25 @@
19
20
  "start": "ts-node -r tsconfig-paths/register test/app/index.ts"
20
21
  },
21
22
  "dependencies": {
22
- "tslib": "2.2.0"
23
+ "tslib": "2.3.1"
23
24
  },
24
25
  "devDependencies": {
25
- "@tsed/common": "7.0.0-beta.1",
26
- "@tsed/di": "7.0.0-beta.1",
26
+ "@tsed/common": "7.0.0-beta.10",
27
+ "@tsed/di": "7.0.0-beta.10",
27
28
  "socket.io-client": "^4.1.2"
28
29
  },
29
30
  "peerDependencies": {
30
- "@tsed/common": "^7.0.0-beta.1",
31
- "@tsed/core": "^7.0.0-beta.1",
32
- "@tsed/di": "^7.0.0-beta.1",
33
- "@tsed/socketio": "^7.0.0-beta.1",
31
+ "@tsed/common": "^7.0.0-beta.10",
32
+ "@tsed/core": "^7.0.0-beta.10",
33
+ "@tsed/di": "^7.0.0-beta.10",
34
+ "@tsed/socketio": "^7.0.0-beta.10",
34
35
  "socket.io-client": "^4.0.1"
35
36
  },
36
37
  "repository": "https://github.com/tsedio/tsed",
37
38
  "bugs": {
38
39
  "url": "https://github.com/tsedio/tsed/issues"
39
40
  },
40
- "homepage": "https://github.com/tsedio/tsed/tree/alpha/packages/third-parties/socketio-testing",
41
+ "homepage": "https://github.com/tsedio/tsed/tree/beta/packages/third-parties/socketio-testing",
41
42
  "author": "Romain Lenzotti",
42
43
  "license": "MIT"
43
44
  }
package/readme.md CHANGED
@@ -44,24 +44,20 @@ Then add the following configuration in your Server:
44
44
  import {Configuration} from "@tsed/common";
45
45
  import "@tsed/socketio"; // import socketio Ts.ED module
46
46
  import {resolve} from "path";
47
- const rootDir = resolve(__dirname)
48
47
 
49
48
  @Configuration({
50
- rootDir,
51
- socketIO: {
52
- // ... see configuration
53
- }
49
+ socketIO: {
50
+ // ... see configuration
51
+ }
54
52
  })
55
- export class Server {
56
-
57
- }
53
+ export class Server {}
58
54
  ```
59
55
 
60
56
  ## Socket Service
61
57
 
62
58
  > Socket.IO allows you to “namespace” your sockets, which essentially means assigning different endpoints or paths.
63
- This is a useful feature to minimize the number of resources (TCP connections) and at the same time separate concerns within your application
64
- by introducing separation between communication channels. See [namespace documentation](https://socket.io/docs/rooms-and-namespaces/#).
59
+ > This is a useful feature to minimize the number of resources (TCP connections) and at the same time separate concerns within your application
60
+ > by introducing separation between communication channels. See [namespace documentation](https://socket.io/docs/rooms-and-namespaces/#).
65
61
 
66
62
  All Socket service work under a namespace and you can create one Socket service per namespace.
67
63
 
@@ -73,31 +69,24 @@ import {SocketService, IO, Nsp, Socket, SocketSession} from "@tsed/socketio";
73
69
 
74
70
  @SocketService("/my-namespace")
75
71
  export class MySocketService {
76
-
77
- @Nsp nsp: SocketIO.Namespace;
78
-
79
- @Nsp("/my-other-namespace")
80
- nspOther: SocketIO.Namespace; // communication between two namespace
81
-
82
- constructor(@IO private io: SocketIO.Server) {}
83
- /**
84
- * Triggered the namespace is created
85
- */
86
- $onNamespaceInit(nsp: SocketIO.Namespace) {
87
-
88
- }
89
- /**
90
- * Triggered when a new client connects to the Namespace.
91
- */
92
- $onConnection(@Socket socket: SocketIO.Socket, @SocketSession session: SocketSession) {
93
-
94
- }
95
- /**
96
- * Triggered when a client disconnects from the Namespace.
97
- */
98
- $onDisconnect(@Socket socket: SocketIO.Socket) {
99
-
100
- }
72
+ @Nsp nsp: SocketIO.Namespace;
73
+
74
+ @Nsp("/my-other-namespace")
75
+ nspOther: SocketIO.Namespace; // communication between two namespace
76
+
77
+ constructor(@IO private io: SocketIO.Server) {}
78
+ /**
79
+ * Triggered the namespace is created
80
+ */
81
+ $onNamespaceInit(nsp: SocketIO.Namespace) {}
82
+ /**
83
+ * Triggered when a new client connects to the Namespace.
84
+ */
85
+ $onConnection(@Socket socket: SocketIO.Socket, @SocketSession session: SocketSession) {}
86
+ /**
87
+ * Triggered when a client disconnects from the Namespace.
88
+ */
89
+ $onDisconnect(@Socket socket: SocketIO.Socket) {}
101
90
  }
102
91
  ```
103
92
 
@@ -111,13 +100,14 @@ import {SocketService, Nsp} from "@tsed/socketio";
111
100
 
112
101
  @SocketService()
113
102
  export class MySocketService {
114
- @Nsp nsp: SocketIO.Namespace;
103
+ @Nsp nsp: SocketIO.Namespace;
115
104
 
116
- helloAll() {
117
- this.nsp.emit('hi', 'everyone!');
118
- }
105
+ helloAll() {
106
+ this.nsp.emit("hi", "everyone!");
107
+ }
119
108
  }
120
109
  ```
110
+
121
111
  Then, you can inject your socket service into another Service, Controller, etc... as following:
122
112
 
123
113
  ```typescript
@@ -126,16 +116,13 @@ import {MySocketService} from "../services/MySocketService";
126
116
 
127
117
  @Controller("/")
128
118
  export class MyCtrl {
129
-
130
- constructor(private mySocketService: MySocketService) {
131
-
132
- }
133
-
134
- @Get("/allo")
135
- allo() {
136
- this.mySocketService.helloAll();
137
- return "is sent";
138
- }
119
+ constructor(private mySocketService: MySocketService) {}
120
+
121
+ @Get("/allo")
122
+ allo() {
123
+ this.mySocketService.helloAll();
124
+ return "is sent";
125
+ }
139
126
  }
140
127
  ```
141
128
 
@@ -148,10 +135,10 @@ import {SocketService, Input, Emit, Args, Socket, Nsp} from "@tsed/socketio";
148
135
 
149
136
  @SocketService("/my-namespace")
150
137
  export class MySocketService {
151
- @Input("eventName")
152
- myMethod(@Args(0) userName: string, @Socket socket: SocketIO.Socket, @Nsp nsp: SocketIO.Namespace) {
153
- console.log(userName);
154
- }
138
+ @Input("eventName")
139
+ myMethod(@Args(0) userName: string, @Socket socket: SocketIO.Socket, @Nsp nsp: SocketIO.Namespace) {
140
+ console.log(userName);
141
+ }
155
142
  }
156
143
  ```
157
144
 
@@ -172,13 +159,14 @@ import {SocketService, Input, Emit, Args, Socket, Nsp} from "@tsed/socketio";
172
159
 
173
160
  @SocketService("/my-namespace")
174
161
  export class MySocketService {
175
- @Input("eventName")
176
- @Emit("responseEventName") // or Broadcast or BroadcastOthers
177
- async myMethod(@Args(0) userName: string, @Socket socket: SocketIO.Socket) {
178
- return "Message " + userName;
179
- }
162
+ @Input("eventName")
163
+ @Emit("responseEventName") // or Broadcast or BroadcastOthers
164
+ async myMethod(@Args(0) userName: string, @Socket socket: SocketIO.Socket) {
165
+ return "Message " + userName;
166
+ }
180
167
  }
181
168
  ```
169
+
182
170
  > The method accept a promise as returned value.
183
171
 
184
172
  ::: warning
@@ -194,17 +182,16 @@ import {SocketService, Input, Emit, Args, SocketSession} from "@tsed/socketio";
194
182
 
195
183
  @SocketService("/my-namespace")
196
184
  export class MySocketService {
197
- @Input("eventName")
198
- @Emit("responseEventName") // or Broadcast or BroadcastOthers
199
- async myMethod(@Args(0) userName: string, @SocketSession session: SocketSession) {
185
+ @Input("eventName")
186
+ @Emit("responseEventName") // or Broadcast or BroadcastOthers
187
+ async myMethod(@Args(0) userName: string, @SocketSession session: SocketSession) {
188
+ const user = session.get("user") || {};
189
+ user.name = userName;
200
190
 
201
- const user = session.get("user") || {}
202
- user.name = userName;
191
+ session.set("user", user);
203
192
 
204
- session.set("user", user);
205
-
206
- return user;
207
- }
193
+ return user;
194
+ }
208
195
  }
209
196
  ```
210
197
 
@@ -221,16 +208,16 @@ import {User} from "../models/User";
221
208
 
222
209
  @SocketMiddleware()
223
210
  export class UserConverterSocketMiddleware {
224
- async use(@Args() args: any[]) {
225
-
226
- let [user] = args;
227
- // update Arguments
228
- user = deserialize(user, {type: User});
229
-
230
- return [user];
231
- }
211
+ async use(@Args() args: any[]) {
212
+ let [user] = args;
213
+ // update Arguments
214
+ user = deserialize(user, {type: User});
215
+
216
+ return [user];
217
+ }
232
218
  }
233
219
  ```
220
+
234
221
  > The user instance will be forwarded to the next middleware and to your decorated method.
235
222
 
236
223
  You can also declare a middleware to handle an error with `@SocketMiddlewareError`.
@@ -241,10 +228,10 @@ import {SocketMiddlewareError, SocketErr, Socket} from "@tsed/socketio";
241
228
 
242
229
  @SocketMiddlewareError()
243
230
  export class ErrorHandlerSocketMiddleware {
244
- async use(@SocketErr err: any, @Socket socket: SocketIO.Socket) {
245
- console.error(err);
246
- socket.emit("error", {message: "An error has occured"})
247
- }
231
+ async use(@SocketErr err: any, @Socket socket: SocketIO.Socket) {
232
+ console.error(err);
233
+ socket.emit("error", {message: "An error has occured"});
234
+ }
248
235
  }
249
236
  ```
250
237
 
@@ -260,7 +247,7 @@ The call sequences is the following for each event request:
260
247
  - Middlewares attached with `@SocketUseBefore` on method,
261
248
  - The method,
262
249
  - Send response if the method is decorated with `@Emit`, `@Broadcast` or `@BroadcastOther`,
263
- - Middlewares attached with `@SocketUseAfter` on method,
250
+ - Middlewares attached with `@SocketUseAfter` on method,
264
251
  - Middlewares attached with `@SocketUseAfter` on class.
265
252
 
266
253
  Middlewares chain use the `Promise` to run it. If one of this middlewares/method emit an error, the first middleware error will be called.
@@ -274,20 +261,18 @@ import {User} from "../models/User";
274
261
  @SocketUseBefore(UserConverterSocketMiddleware) // global version
275
262
  @SocketUseAfter(ErrorHandlerSocketMiddleware)
276
263
  export class MySocketService {
277
-
278
- @Input("eventName")
279
- @Emit("responseEventName") // or Broadcast or BroadcastOthers
280
- @SocketUseBefore(UserConverterSocketMiddleware)
281
- @SocketUseAfter(ErrorHandlerSocketMiddleware)
282
- async myMethod(@Args(0) userName: User) {
283
-
284
- const user = session.get("user") || {}
285
- user.name = userName;
286
-
287
- session.set("user", user);
288
-
289
- return user;
290
- }
264
+ @Input("eventName")
265
+ @Emit("responseEventName") // or Broadcast or BroadcastOthers
266
+ @SocketUseBefore(UserConverterSocketMiddleware)
267
+ @SocketUseAfter(ErrorHandlerSocketMiddleware)
268
+ async myMethod(@Args(0) userName: User) {
269
+ const user = session.get("user") || {};
270
+ user.name = userName;
271
+
272
+ session.set("user", user);
273
+
274
+ return user;
275
+ }
291
276
  }
292
277
  ```
293
278
 
@@ -296,18 +281,17 @@ export class MySocketService {
296
281
  See our documentation https://tsed.io/#/api/index
297
282
 
298
283
  ## Contributors
284
+
299
285
  Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
300
286
 
301
287
  <a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
302
288
 
303
-
304
289
  ## Backers
305
290
 
306
291
  Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
307
292
 
308
293
  <a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/tiers/backer.svg?width=890"></a>
309
294
 
310
-
311
295
  ## Sponsors
312
296
 
313
297
  Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
@@ -8,16 +8,5 @@
8
8
  "declaration": true,
9
9
  "declarationDir": "./lib/types"
10
10
  },
11
- "exclude": [
12
- "node_modules",
13
- "test",
14
- "lib",
15
- "benchmark",
16
- "coverage",
17
- "spec",
18
- "**/*.benchmark.ts",
19
- "**/*.spec.ts",
20
- "keys",
21
- "jest.config.js"
22
- ]
11
+ "exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
23
12
  }