@tonightpass/react 0.0.118 → 0.0.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonightpass/react",
3
- "version": "0.0.118",
3
+ "version": "0.0.119",
4
4
  "description": "@tonightpass react sdk.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,12 +10,25 @@
10
10
  "bugs": "https://github.com/tonightpass/tonightpass/issues",
11
11
  "homepage": "https://tonightpass.com",
12
12
  "license": "MIT",
13
+ "keywords": [
14
+ "tonightpass",
15
+ "react",
16
+ "hooks",
17
+ "components",
18
+ "typescript",
19
+ "javascript",
20
+ "sdk"
21
+ ],
22
+ "files": [
23
+ "dist",
24
+ "README.md"
25
+ ],
13
26
  "main": "dist/index.js",
14
27
  "module": "dist/index.mjs",
15
28
  "types": "dist/index.d.ts",
16
29
  "dependencies": {
17
30
  "swr": "^2.2.5",
18
- "tonightpass": "^0.0.117"
31
+ "tonightpass": "^0.0.118"
19
32
  },
20
33
  "peerDependencies": {
21
34
  "react": "*"
@@ -1,21 +0,0 @@
1
-
2
- > @tonightpass/react@0.0.118 build /home/runner/work/tonightpass/tonightpass/packages/react
3
- > tsup
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.3.5
8
- CLI Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/react/tsup.config.ts
9
- CLI Target: esnext
10
- CJS Build start
11
- ESM Build start
12
- CJS dist/index.js 476.00 B
13
- CJS dist/index.js.map 2.09 KB
14
- CJS ⚡️ Build success in 124ms
15
- ESM dist/index.mjs 322.00 B
16
- ESM dist/index.mjs.map 2.09 KB
17
- ESM ⚡️ Build success in 125ms
18
- DTS Build start
19
- DTS ⚡️ Build success in 3317ms
20
- DTS dist/index.d.ts 944.00 B
21
- DTS dist/index.d.mts 944.00 B
package/CHANGELOG.md DELETED
@@ -1,828 +0,0 @@
1
- # @tonightpass/react
2
-
3
- ## 0.0.118
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [[`92a0b47`](https://github.com/tonightpass/tonightpass/commit/92a0b47c202e21aeaa3bf2dc19be4a413703b833)]:
8
- - tonightpass@0.0.117
9
-
10
- ## 0.0.117
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies [[`29c2acb`](https://github.com/tonightpass/tonightpass/commit/29c2acbbac9ceb4bb0ba6f55b3bbec061a81f329)]:
15
- - tonightpass@0.0.116
16
-
17
- ## 0.0.116
18
-
19
- ### Patch Changes
20
-
21
- - Updated dependencies [[`7a18ad3`](https://github.com/tonightpass/tonightpass/commit/7a18ad39bb7f7a1df9440d71afef688f2dcdf520)]:
22
- - tonightpass@0.0.115
23
-
24
- ## 0.0.115
25
-
26
- ### Patch Changes
27
-
28
- - Updated dependencies [[`c67af31`](https://github.com/tonightpass/tonightpass/commit/c67af316e99afa56392704c802e5eb037d1b2e0e)]:
29
- - tonightpass@0.0.114
30
-
31
- ## 0.0.114
32
-
33
- ### Patch Changes
34
-
35
- - Updated dependencies [[`21e2771`](https://github.com/tonightpass/tonightpass/commit/21e2771ffc99fa394e5eb605e0d2c6ec05bf8d34)]:
36
- - tonightpass@0.0.113
37
-
38
- ## 0.0.113
39
-
40
- ### Patch Changes
41
-
42
- - Updated dependencies [[`f3c79e2`](https://github.com/tonightpass/tonightpass/commit/f3c79e2757290a037f6344cff0af4ac3d3e819ee)]:
43
- - tonightpass@0.0.112
44
-
45
- ## 0.0.112
46
-
47
- ### Patch Changes
48
-
49
- - Updated dependencies [[`3f68f6d`](https://github.com/tonightpass/tonightpass/commit/3f68f6d98f1aa4924eb81848cf4fd3ddfef92934)]:
50
- - tonightpass@0.0.111
51
-
52
- ## 0.0.111
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies [[`cf17374`](https://github.com/tonightpass/tonightpass/commit/cf17374cb712c828fcbcba223b554a97bd786ff1)]:
57
- - tonightpass@0.0.110
58
-
59
- ## 0.0.110
60
-
61
- ### Patch Changes
62
-
63
- - Updated dependencies [[`e28d776`](https://github.com/tonightpass/tonightpass/commit/e28d776f24a1a30a1e40dd7bf256e4c647c973c2)]:
64
- - tonightpass@0.0.109
65
-
66
- ## 0.0.109
67
-
68
- ### Patch Changes
69
-
70
- - Updated dependencies [[`4c5beb1`](https://github.com/tonightpass/tonightpass/commit/4c5beb171610e943692dec16ca1f60e9704a4409)]:
71
- - tonightpass@0.0.108
72
-
73
- ## 0.0.108
74
-
75
- ### Patch Changes
76
-
77
- - Updated dependencies [[`5c172ad`](https://github.com/tonightpass/tonightpass/commit/5c172ad4e7152f4ebd3567a8cc8693683120cc5b)]:
78
- - tonightpass@0.0.107
79
-
80
- ## 0.0.107
81
-
82
- ### Patch Changes
83
-
84
- - Updated dependencies [[`704be44`](https://github.com/tonightpass/tonightpass/commit/704be441b4bea857e2781a6058c6bae3a5dd50dd)]:
85
- - tonightpass@0.0.106
86
-
87
- ## 0.0.106
88
-
89
- ### Patch Changes
90
-
91
- - Updated dependencies [[`cdab1e2`](https://github.com/tonightpass/tonightpass/commit/cdab1e2673e8b5aa5e20d50a3ddee2c9642677c9)]:
92
- - tonightpass@0.0.105
93
-
94
- ## 0.0.105
95
-
96
- ### Patch Changes
97
-
98
- - Updated dependencies [[`b6e5f77`](https://github.com/tonightpass/tonightpass/commit/b6e5f7764cc7abc1843c1fa28e2b2da2daa5f2b8)]:
99
- - tonightpass@0.0.104
100
-
101
- ## 0.0.104
102
-
103
- ### Patch Changes
104
-
105
- - Updated dependencies [[`3d3f728`](https://github.com/tonightpass/tonightpass/commit/3d3f728c1a0ec29e9503037e56e6028220abb9a6)]:
106
- - tonightpass@0.0.103
107
-
108
- ## 0.0.103
109
-
110
- ### Patch Changes
111
-
112
- - Updated dependencies [[`b01ddf4`](https://github.com/tonightpass/tonightpass/commit/b01ddf4de1244a51f8d9a1deb6d0c2ee73d4a623)]:
113
- - tonightpass@0.0.102
114
-
115
- ## 0.0.102
116
-
117
- ### Patch Changes
118
-
119
- - Updated dependencies [[`869de31`](https://github.com/tonightpass/tonightpass/commit/869de31f840fa93d763e5ad4c275c5cc867b91fd)]:
120
- - tonightpass@0.0.101
121
-
122
- ## 0.0.101
123
-
124
- ### Patch Changes
125
-
126
- - Updated dependencies [[`f1a5956`](https://github.com/tonightpass/tonightpass/commit/f1a5956c1c10af1da6d7cf875b4e25c43727eb50)]:
127
- - tonightpass@0.0.100
128
-
129
- ## 0.0.100
130
-
131
- ### Patch Changes
132
-
133
- - Updated dependencies [[`d574763`](https://github.com/tonightpass/tonightpass/commit/d5747632e44521a283110dc15542e0e161b0ab08)]:
134
- - tonightpass@0.0.99
135
-
136
- ## 0.0.99
137
-
138
- ### Patch Changes
139
-
140
- - Updated dependencies [[`6fecd47`](https://github.com/tonightpass/tonightpass/commit/6fecd470fbc999bc72afba00b09ed58056cfdf44)]:
141
- - tonightpass@0.0.98
142
-
143
- ## 0.0.98
144
-
145
- ### Patch Changes
146
-
147
- - Updated dependencies [[`a9c46b5`](https://github.com/tonightpass/tonightpass/commit/a9c46b5b0efeb73afcc3ab1ae9a5c8ca9deec8c3)]:
148
- - tonightpass@0.0.97
149
-
150
- ## 0.0.97
151
-
152
- ### Patch Changes
153
-
154
- - Updated dependencies [[`d7f9e6c`](https://github.com/tonightpass/tonightpass/commit/d7f9e6cbd5d44fe0ac9edf09772cc4dd17d95702)]:
155
- - tonightpass@0.0.96
156
-
157
- ## 0.0.96
158
-
159
- ### Patch Changes
160
-
161
- - Updated dependencies [[`f3fcf23`](https://github.com/tonightpass/tonightpass/commit/f3fcf23fc3b88a3cd6d45c42e89c34b54d02a7b8)]:
162
- - tonightpass@0.0.95
163
-
164
- ## 0.0.95
165
-
166
- ### Patch Changes
167
-
168
- - Updated dependencies [[`eb08d5d`](https://github.com/tonightpass/tonightpass/commit/eb08d5d1b59fb1878d513daf4bffb1d7836f12b8)]:
169
- - tonightpass@0.0.94
170
-
171
- ## 0.0.94
172
-
173
- ### Patch Changes
174
-
175
- - Updated dependencies [[`9296b99`](https://github.com/tonightpass/tonightpass/commit/9296b99ad02acd42ee9e16df1341e845c9d1f531)]:
176
- - tonightpass@0.0.93
177
-
178
- ## 0.0.93
179
-
180
- ### Patch Changes
181
-
182
- - Updated dependencies [[`b206f3a`](https://github.com/tonightpass/tonightpass/commit/b206f3a1eddb428aa1c930274429f9b0a964247f)]:
183
- - tonightpass@0.0.92
184
-
185
- ## 0.0.92
186
-
187
- ### Patch Changes
188
-
189
- - Updated dependencies [[`fdadaae`](https://github.com/tonightpass/tonightpass/commit/fdadaae14650f9b81477b33fdfd1fb06ed5ecfa9)]:
190
- - tonightpass@0.0.91
191
-
192
- ## 0.0.91
193
-
194
- ### Patch Changes
195
-
196
- - Updated dependencies [[`6832c70`](https://github.com/tonightpass/tonightpass/commit/6832c70a6c93373c8784faaf8b47635b32958bf4), [`fedecd3`](https://github.com/tonightpass/tonightpass/commit/fedecd33cba5c371d558b0b15e2e9e9452134750)]:
197
- - tonightpass@0.0.90
198
-
199
- ## 0.0.90
200
-
201
- ### Patch Changes
202
-
203
- - Updated dependencies [[`38ab30d`](https://github.com/tonightpass/tonightpass/commit/38ab30d4a31931ec29b44def02edce2d6fb67ebb)]:
204
- - tonightpass@0.0.89
205
-
206
- ## 0.0.89
207
-
208
- ### Patch Changes
209
-
210
- - Updated dependencies [[`4535441`](https://github.com/tonightpass/tonightpass/commit/4535441e1615627dfe2e9a54c7f51a060ba0b903)]:
211
- - tonightpass@0.0.88
212
-
213
- ## 0.0.88
214
-
215
- ### Patch Changes
216
-
217
- - Updated dependencies [[`fbafc8b`](https://github.com/tonightpass/tonightpass/commit/fbafc8b43ce8aefb25dc2db2cc99a0f2abed2695)]:
218
- - tonightpass@0.0.87
219
-
220
- ## 0.0.87
221
-
222
- ### Patch Changes
223
-
224
- - Updated dependencies [[`0ffe35e`](https://github.com/tonightpass/tonightpass/commit/0ffe35e12f77eb04cb9cbd8017b9ea30d8baa47c)]:
225
- - tonightpass@0.0.86
226
-
227
- ## 0.0.86
228
-
229
- ### Patch Changes
230
-
231
- - Updated dependencies [[`069a9ad`](https://github.com/tonightpass/tonightpass/commit/069a9ad614f07767b68f380e3fd3b524d2ada55d)]:
232
- - tonightpass@0.0.85
233
-
234
- ## 0.0.85
235
-
236
- ### Patch Changes
237
-
238
- - Updated dependencies [[`32071ba`](https://github.com/tonightpass/tonightpass/commit/32071ba491f76e5fa985e0772b2092708e900685)]:
239
- - tonightpass@0.0.84
240
-
241
- ## 0.0.84
242
-
243
- ### Patch Changes
244
-
245
- - Updated dependencies [[`ee737eb`](https://github.com/tonightpass/tonightpass/commit/ee737eb18eb43534d3807b6523be13f5e9c1e244)]:
246
- - tonightpass@0.0.83
247
-
248
- ## 0.0.83
249
-
250
- ### Patch Changes
251
-
252
- - Updated dependencies [[`09a7e5f`](https://github.com/tonightpass/tonightpass/commit/09a7e5f9b7580f2b63b8ec07e6bf4dbdcde0f58f), [`b14490c`](https://github.com/tonightpass/tonightpass/commit/b14490c403be4623dde4228a90c9008246004342)]:
253
- - tonightpass@0.0.82
254
-
255
- ## 0.0.82
256
-
257
- ### Patch Changes
258
-
259
- - Updated dependencies [[`8b24471`](https://github.com/tonightpass/tonightpass/commit/8b244717d0f57ae5d6687587eb0d3d7c57e6ef35)]:
260
- - tonightpass@0.0.81
261
-
262
- ## 0.0.81
263
-
264
- ### Patch Changes
265
-
266
- - Updated dependencies [[`b75f934`](https://github.com/tonightpass/tonightpass/commit/b75f934693020428df387d0ce79fe55669bd0e94)]:
267
- - tonightpass@0.0.80
268
-
269
- ## 0.0.80
270
-
271
- ### Patch Changes
272
-
273
- - Updated dependencies [[`969a10d`](https://github.com/tonightpass/tonightpass/commit/969a10df15f0fa15980e0dfc5a25ed8ba7f56991)]:
274
- - tonightpass@0.0.79
275
-
276
- ## 0.0.79
277
-
278
- ### Patch Changes
279
-
280
- - Updated dependencies [[`1f42eb0`](https://github.com/tonightpass/tonightpass/commit/1f42eb0c66981c3f2b3374e1e0c86b6101319d0b)]:
281
- - tonightpass@0.0.78
282
-
283
- ## 0.0.78
284
-
285
- ### Patch Changes
286
-
287
- - Updated dependencies [[`9bbacf5`](https://github.com/tonightpass/tonightpass/commit/9bbacf5c7e50ff2477c4bd163a678a1dd3096c38)]:
288
- - tonightpass@0.0.77
289
-
290
- ## 0.0.77
291
-
292
- ### Patch Changes
293
-
294
- - Updated dependencies [[`46ce556`](https://github.com/tonightpass/tonightpass/commit/46ce5567a37b62e3f4d9501fcdda07a99e329067)]:
295
- - tonightpass@0.0.76
296
-
297
- ## 0.0.76
298
-
299
- ### Patch Changes
300
-
301
- - [`4606121`](https://github.com/tonightpass/tonightpass/commit/46061214a2877c105ca9a2f6f1f2a2a6bd222df8) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add swr config to api hook
302
-
303
- - Updated dependencies [[`4606121`](https://github.com/tonightpass/tonightpass/commit/46061214a2877c105ca9a2f6f1f2a2a6bd222df8)]:
304
- - tonightpass@0.0.75
305
-
306
- ## 0.0.75
307
-
308
- ### Patch Changes
309
-
310
- - Updated dependencies [[`56c3c06`](https://github.com/tonightpass/tonightpass/commit/56c3c06e61e60a22367f799b8475f577fee53357)]:
311
- - tonightpass@0.0.74
312
-
313
- ## 0.0.74
314
-
315
- ### Patch Changes
316
-
317
- - Updated dependencies [[`9550cbc`](https://github.com/tonightpass/tonightpass/commit/9550cbc9f34fa89551778480f2e4f09125fb36a2), [`6022352`](https://github.com/tonightpass/tonightpass/commit/6022352a59ff05fa06657453bd5d532dceb166e9)]:
318
- - tonightpass@0.0.73
319
-
320
- ## 0.0.73
321
-
322
- ### Patch Changes
323
-
324
- - Updated dependencies [[`09d99c6`](https://github.com/tonightpass/tonightpass/commit/09d99c6e7d56323559c9750607c5f55baee9b7da)]:
325
- - tonightpass@0.0.72
326
-
327
- ## 0.0.72
328
-
329
- ### Patch Changes
330
-
331
- - Updated dependencies [[`fc82c2e`](https://github.com/tonightpass/tonightpass/commit/fc82c2ed21e563cd60b0e3f6e5c550eac2a865a0)]:
332
- - tonightpass@0.0.71
333
-
334
- ## 0.0.71
335
-
336
- ### Patch Changes
337
-
338
- - Updated dependencies [[`3d9d8dc`](https://github.com/tonightpass/tonightpass/commit/3d9d8dce18d8bdde58ab30e38a5b70f0da9857ab)]:
339
- - tonightpass@0.0.70
340
-
341
- ## 0.0.70
342
-
343
- ### Patch Changes
344
-
345
- - Updated dependencies [[`c16e05f`](https://github.com/tonightpass/tonightpass/commit/c16e05fb1eba23d7b4668a670ce232ebb0fc1877)]:
346
- - tonightpass@0.0.69
347
-
348
- ## 0.0.69
349
-
350
- ### Patch Changes
351
-
352
- - Updated dependencies [[`ed0996d`](https://github.com/tonightpass/tonightpass/commit/ed0996da66461a2d92dff32d9d50a2a04a840e4d)]:
353
- - tonightpass@0.0.68
354
-
355
- ## 0.0.68
356
-
357
- ### Patch Changes
358
-
359
- - Updated dependencies [[`6922f46`](https://github.com/tonightpass/tonightpass/commit/6922f46fdfe419e658c0ac9f1cec5237dc86ea0f)]:
360
- - tonightpass@0.0.67
361
-
362
- ## 0.0.67
363
-
364
- ### Patch Changes
365
-
366
- - Updated dependencies [[`f8d4e42`](https://github.com/tonightpass/tonightpass/commit/f8d4e422d24d540d566ff356fb7733def762fbd8)]:
367
- - tonightpass@0.0.66
368
-
369
- ## 0.0.66
370
-
371
- ### Patch Changes
372
-
373
- - Updated dependencies [[`336b84e`](https://github.com/tonightpass/tonightpass/commit/336b84e188174b009ef8e8537fdfd52c2b09f2e5)]:
374
- - tonightpass@0.0.65
375
-
376
- ## 0.0.65
377
-
378
- ### Patch Changes
379
-
380
- - Updated dependencies [[`7f101a4`](https://github.com/tonightpass/tonightpass/commit/7f101a46dbe4698a62af7c5815a002890484368f)]:
381
- - tonightpass@0.0.64
382
-
383
- ## 0.0.64
384
-
385
- ### Patch Changes
386
-
387
- - Updated dependencies [[`790ae8e`](https://github.com/tonightpass/tonightpass/commit/790ae8eecfab6bd1818902f02a4c93e587462c89)]:
388
- - tonightpass@0.0.63
389
-
390
- ## 0.0.63
391
-
392
- ### Patch Changes
393
-
394
- - Updated dependencies [[`6730d29`](https://github.com/tonightpass/tonightpass/commit/6730d29f2f73043a8c717acfe69d1dc95f1f9f1f)]:
395
- - tonightpass@0.0.62
396
-
397
- ## 0.0.62
398
-
399
- ### Patch Changes
400
-
401
- - Updated dependencies [[`333df8c`](https://github.com/tonightpass/tonightpass/commit/333df8ce2ac3bd365536863394e55b88a182e93b)]:
402
- - tonightpass@0.0.61
403
-
404
- ## 0.0.61
405
-
406
- ### Patch Changes
407
-
408
- - Updated dependencies [[`168315c`](https://github.com/tonightpass/tonightpass/commit/168315c1c8266d3707692ae4d385282e1034b6f3)]:
409
- - tonightpass@0.0.60
410
-
411
- ## 0.0.60
412
-
413
- ### Patch Changes
414
-
415
- - Updated dependencies [[`fc6c475`](https://github.com/tonightpass/tonightpass/commit/fc6c47522df170de38a13c814e4cfc8cf55f08b5)]:
416
- - tonightpass@0.0.59
417
-
418
- ## 0.0.59
419
-
420
- ### Patch Changes
421
-
422
- - Updated dependencies [[`18e50a2`](https://github.com/tonightpass/tonightpass/commit/18e50a2789af421008fd6715eb326dec3b67a912)]:
423
- - tonightpass@0.0.58
424
-
425
- ## 0.0.58
426
-
427
- ### Patch Changes
428
-
429
- - Updated dependencies [[`d0a5007`](https://github.com/tonightpass/tonightpass/commit/d0a5007ff18f4b51c460a7a0b3c0b5322a4db004)]:
430
- - tonightpass@0.0.57
431
-
432
- ## 0.0.57
433
-
434
- ### Patch Changes
435
-
436
- - Updated dependencies [[`3e62e99`](https://github.com/tonightpass/tonightpass/commit/3e62e99623675b3bf16abf0beb8d63b26efddf88)]:
437
- - tonightpass@0.0.56
438
-
439
- ## 0.0.56
440
-
441
- ### Patch Changes
442
-
443
- - Updated dependencies [[`dd3b572`](https://github.com/tonightpass/tonightpass/commit/dd3b572af8f7657cf03bec655d4aed6d6fb3d821)]:
444
- - tonightpass@0.0.55
445
-
446
- ## 0.0.55
447
-
448
- ### Patch Changes
449
-
450
- - Updated dependencies [[`498a172`](https://github.com/tonightpass/tonightpass/commit/498a1727c460cd810138a1f879c000bccc793f16)]:
451
- - tonightpass@0.0.54
452
-
453
- ## 0.0.54
454
-
455
- ### Patch Changes
456
-
457
- - Updated dependencies [[`5f99503`](https://github.com/tonightpass/tonightpass/commit/5f995038b67779c45a1c8397c6c33f7cdfcea542)]:
458
- - tonightpass@0.0.53
459
-
460
- ## 0.0.53
461
-
462
- ### Patch Changes
463
-
464
- - Updated dependencies [[`484ff42`](https://github.com/tonightpass/tonightpass/commit/484ff42a47a84b8c06e1523dcf7f8f3ae3919255)]:
465
- - tonightpass@0.0.52
466
-
467
- ## 0.0.52
468
-
469
- ### Patch Changes
470
-
471
- - Updated dependencies [[`01c0806`](https://github.com/tonightpass/tonightpass/commit/01c0806ee7bd7a03a975be4345419b6c6b800778)]:
472
- - tonightpass@0.0.51
473
-
474
- ## 0.0.51
475
-
476
- ### Patch Changes
477
-
478
- - Updated dependencies [[`f873bef`](https://github.com/tonightpass/tonightpass/commit/f873befebed537f3982d63d0436bc4eaaa186aa1), [`8284b48`](https://github.com/tonightpass/tonightpass/commit/8284b484515c18b016e0a3aa816cf8d9e80cc4e4)]:
479
- - tonightpass@0.0.50
480
-
481
- ## 0.0.50
482
-
483
- ### Patch Changes
484
-
485
- - Updated dependencies [[`3ba3d9e`](https://github.com/tonightpass/tonightpass/commit/3ba3d9e118a5f4d86cd046895669f854952aaacf), [`f02fa95`](https://github.com/tonightpass/tonightpass/commit/f02fa95dd04876389affd5027c575a7553f9dfce), [`f02fa95`](https://github.com/tonightpass/tonightpass/commit/f02fa95dd04876389affd5027c575a7553f9dfce)]:
486
- - tonightpass@0.0.49
487
-
488
- ## 0.0.49
489
-
490
- ### Patch Changes
491
-
492
- - Updated dependencies [[`3b35df8`](https://github.com/tonightpass/tonightpass/commit/3b35df8c6187e6010c29cfd848f3d49ae40eeec3)]:
493
- - tonightpass@0.0.48
494
-
495
- ## 0.0.48
496
-
497
- ### Patch Changes
498
-
499
- - Updated dependencies [[`284e987`](https://github.com/tonightpass/tonightpass/commit/284e987bd20b892a9f6444955379d21d68d21a72)]:
500
- - tonightpass@0.0.47
501
-
502
- ## 0.0.47
503
-
504
- ### Patch Changes
505
-
506
- - Updated dependencies [[`6a67f86`](https://github.com/tonightpass/tonightpass/commit/6a67f8664fd3d0ca019e88825102add5a9e43e35)]:
507
- - tonightpass@0.0.46
508
-
509
- ## 0.0.46
510
-
511
- ### Patch Changes
512
-
513
- - Updated dependencies [[`f4b07ea`](https://github.com/tonightpass/tonightpass/commit/f4b07ea8c8c47f48eda65ec7aef06e3e7e532b4b)]:
514
- - tonightpass@0.0.45
515
-
516
- ## 0.0.45
517
-
518
- ### Patch Changes
519
-
520
- - Updated dependencies [[`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802), [`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802)]:
521
- - tonightpass@0.0.44
522
-
523
- ## 0.0.44
524
-
525
- ### Patch Changes
526
-
527
- - Updated dependencies [[`667bfd2`](https://github.com/tonightpass/tonightpass/commit/667bfd22d3267bd147f8878947d52ee2a4344281)]:
528
- - tonightpass@0.0.43
529
-
530
- ## 0.0.43
531
-
532
- ### Patch Changes
533
-
534
- - Updated dependencies [[`10b03df`](https://github.com/tonightpass/tonightpass/commit/10b03df81cb07b237fa54f1201231945ca89eac4)]:
535
- - tonightpass@0.0.42
536
-
537
- ## 0.0.42
538
-
539
- ### Patch Changes
540
-
541
- - Updated dependencies [[`f1d87e0`](https://github.com/tonightpass/tonightpass/commit/f1d87e06da339a908808dd331a0f4cb85bafaeff)]:
542
- - tonightpass@0.0.41
543
-
544
- ## 0.0.41
545
-
546
- ### Patch Changes
547
-
548
- - Updated dependencies [[`6376cfd`](https://github.com/tonightpass/tonightpass/commit/6376cfd580fb4f2dd5e68564eb96e19a4925de26)]:
549
- - tonightpass@0.0.40
550
-
551
- ## 0.0.40
552
-
553
- ### Patch Changes
554
-
555
- - Updated dependencies [[`01dceec`](https://github.com/tonightpass/tonightpass/commit/01dceecae7ef96360eae417ec6a61c91f50656b5)]:
556
- - tonightpass@0.0.39
557
-
558
- ## 0.0.39
559
-
560
- ### Patch Changes
561
-
562
- - Updated dependencies [[`370779f`](https://github.com/tonightpass/tonightpass/commit/370779fe1a778b113c5974dd0479ed541698f0f4)]:
563
- - tonightpass@0.0.38
564
-
565
- ## 0.0.38
566
-
567
- ### Patch Changes
568
-
569
- - Updated dependencies [[`c81da9c`](https://github.com/tonightpass/tonightpass/commit/c81da9c934b567b821d6154875b70e38f12a7b27)]:
570
- - tonightpass@0.0.37
571
-
572
- ## 0.0.37
573
-
574
- ### Patch Changes
575
-
576
- - Updated dependencies [[`b6ccf3e`](https://github.com/tonightpass/tonightpass/commit/b6ccf3e4e2028f302367963492495f1e39766a66)]:
577
- - tonightpass@0.0.36
578
-
579
- ## 0.0.36
580
-
581
- ### Patch Changes
582
-
583
- - Updated dependencies [[`0fcfd58`](https://github.com/tonightpass/tonightpass/commit/0fcfd5891ff1e010a8fb5d8e19b06d6565f3aecc)]:
584
- - tonightpass@0.0.35
585
-
586
- ## 0.0.35
587
-
588
- ### Patch Changes
589
-
590
- - Updated dependencies [[`8bdbbc9`](https://github.com/tonightpass/tonightpass/commit/8bdbbc9236b978cc1cb5683e2e063431c018875d)]:
591
- - tonightpass@0.0.34
592
-
593
- ## 0.0.34
594
-
595
- ### Patch Changes
596
-
597
- - Updated dependencies [[`b88f3c9`](https://github.com/tonightpass/tonightpass/commit/b88f3c9fe88f6c6a97ade72e8e645f0cc34fc8dc)]:
598
- - tonightpass@0.0.33
599
-
600
- ## 0.0.33
601
-
602
- ### Patch Changes
603
-
604
- - Updated dependencies [[`eaaef01`](https://github.com/tonightpass/tonightpass/commit/eaaef0116082deac3d6a0c1ed68730a0ab738d4e)]:
605
- - tonightpass@0.0.32
606
-
607
- ## 0.0.32
608
-
609
- ### Patch Changes
610
-
611
- - Updated dependencies [[`24a64ea`](https://github.com/tonightpass/tonightpass/commit/24a64ea7451fe03b7f04d760c821dabba3e96443)]:
612
- - tonightpass@0.0.31
613
-
614
- ## 0.0.31
615
-
616
- ### Patch Changes
617
-
618
- - Updated dependencies [[`02663f8`](https://github.com/tonightpass/tonightpass/commit/02663f8752ed198ae6c57ed7c41838a1353f905d)]:
619
- - tonightpass@0.0.30
620
-
621
- ## 0.0.30
622
-
623
- ### Patch Changes
624
-
625
- - Updated dependencies [[`f463152`](https://github.com/tonightpass/tonightpass/commit/f463152a13441ebd6ea4006ce971203eb17c9b85)]:
626
- - tonightpass@0.0.29
627
-
628
- ## 0.0.29
629
-
630
- ### Patch Changes
631
-
632
- - Updated dependencies [[`2b069df`](https://github.com/tonightpass/tonightpass/commit/2b069df59fcd5a51e4acf4ebd71826e878da7b31)]:
633
- - tonightpass@0.0.28
634
-
635
- ## 0.0.28
636
-
637
- ### Patch Changes
638
-
639
- - Updated dependencies [[`d3ef400`](https://github.com/tonightpass/tonightpass/commit/d3ef400d824daf8f4506a753a8b3b1abb80df068)]:
640
- - tonightpass@0.0.27
641
-
642
- ## 0.0.27
643
-
644
- ### Patch Changes
645
-
646
- - Updated dependencies [[`b18f698`](https://github.com/tonightpass/tonightpass/commit/b18f698d929e0f37e662b8db6df0e49155339f65)]:
647
- - tonightpass@0.0.26
648
-
649
- ## 0.0.26
650
-
651
- ### Patch Changes
652
-
653
- - Updated dependencies [[`3e3e46a`](https://github.com/tonightpass/tonightpass/commit/3e3e46aca54e867b6b88d7a57c2515fd3c0bf6f5)]:
654
- - tonightpass@0.0.25
655
-
656
- ## 0.0.25
657
-
658
- ### Patch Changes
659
-
660
- - Updated dependencies [[`6da4940`](https://github.com/tonightpass/tonightpass/commit/6da4940b7272bfbf2d4e1d9c309f7dfdd5542ddc)]:
661
- - tonightpass@0.0.24
662
-
663
- ## 0.0.24
664
-
665
- ### Patch Changes
666
-
667
- - Updated dependencies [[`994066c`](https://github.com/tonightpass/tonightpass/commit/994066c83c282d9645894366557bcaa276b23904)]:
668
- - tonightpass@0.0.23
669
-
670
- ## 0.0.23
671
-
672
- ### Patch Changes
673
-
674
- - Updated dependencies [[`e24d1ba`](https://github.com/tonightpass/tonightpass/commit/e24d1ba39a9d1fa311b480d11515819b20b0ce54)]:
675
- - tonightpass@0.0.22
676
-
677
- ## 0.0.22
678
-
679
- ### Patch Changes
680
-
681
- - Updated dependencies [[`04366e1`](https://github.com/tonightpass/tonightpass/commit/04366e12d773fe5538079874c0cfafbcd7149f70)]:
682
- - tonightpass@0.0.21
683
-
684
- ## 0.0.21
685
-
686
- ### Patch Changes
687
-
688
- - Updated dependencies [[`526dfe4`](https://github.com/tonightpass/tonightpass/commit/526dfe4fb6169bbadee2864ca6c17a9a04e61446)]:
689
- - tonightpass@0.0.20
690
-
691
- ## 0.0.20
692
-
693
- ### Patch Changes
694
-
695
- - Updated dependencies [[`5c24d62`](https://github.com/tonightpass/tonightpass/commit/5c24d621c8452de1885ab92e1588322828159ec2)]:
696
- - tonightpass@0.0.19
697
-
698
- ## 0.0.19
699
-
700
- ### Patch Changes
701
-
702
- - Updated dependencies [[`9b2d618`](https://github.com/tonightpass/tonightpass/commit/9b2d61837809607233152c69dadc7861f5eed469)]:
703
- - tonightpass@0.0.18
704
-
705
- ## 0.0.18
706
-
707
- ### Patch Changes
708
-
709
- - Updated dependencies [[`4f58bb8`](https://github.com/tonightpass/tonightpass/commit/4f58bb85cc530bed87ace1fb13e4afe34fb09d9e)]:
710
- - tonightpass@0.0.17
711
-
712
- ## 0.0.17
713
-
714
- ### Patch Changes
715
-
716
- - Updated dependencies [[`bc0b252`](https://github.com/tonightpass/tonightpass/commit/bc0b2527533944a433abc10e69a8dceeec773da2)]:
717
- - tonightpass@0.0.16
718
-
719
- ## 0.0.16
720
-
721
- ### Patch Changes
722
-
723
- - Updated dependencies [[`7c2353a`](https://github.com/tonightpass/tonightpass/commit/7c2353a308119eef0cb5515ad0140e8e8fd1093b)]:
724
- - tonightpass@0.0.15
725
-
726
- ## 0.0.15
727
-
728
- ### Patch Changes
729
-
730
- - Updated dependencies [[`79c52a5`](https://github.com/tonightpass/tonightpass/commit/79c52a50ec141a6e817b29377d3facde337c5c9e)]:
731
- - tonightpass@0.0.14
732
-
733
- ## 0.0.14
734
-
735
- ### Patch Changes
736
-
737
- - Updated dependencies [[`858e5f2`](https://github.com/tonightpass/tonightpass/commit/858e5f20f89db91a6d510453d8d6c089aa2792ce)]:
738
- - tonightpass@0.0.13
739
-
740
- ## 0.0.13
741
-
742
- ### Patch Changes
743
-
744
- - Updated dependencies [[`2c5b552`](https://github.com/tonightpass/tonightpass/commit/2c5b55231112404a705a1b822c67fdcd72cd467c)]:
745
- - tonightpass@0.0.12
746
-
747
- ## 0.0.12
748
-
749
- ### Patch Changes
750
-
751
- - Updated dependencies [[`e05e50e`](https://github.com/tonightpass/tonightpass/commit/e05e50eb071f55b46686f14f25ba01c1402cf84b)]:
752
- - tonightpass@0.0.11
753
-
754
- ## 0.0.11
755
-
756
- ### Patch Changes
757
-
758
- - Updated dependencies [[`d4d27fb`](https://github.com/tonightpass/tonightpass/commit/d4d27fb683212d88bf4c4650ce33ab376c23f445)]:
759
- - tonightpass@0.0.10
760
-
761
- ## 0.0.10
762
-
763
- ### Patch Changes
764
-
765
- - Updated dependencies [[`8f8bd1b`](https://github.com/tonightpass/tonightpass/commit/8f8bd1b21c684389c44c7b9ef4be3452061260e1)]:
766
- - tonightpass@0.0.9
767
-
768
- ## 0.0.9
769
-
770
- ### Patch Changes
771
-
772
- - Updated dependencies [[`d009e78`](https://github.com/tonightpass/tonightpass/commit/d009e7808d5874915dc7a40e244330a8c164cdff)]:
773
- - tonightpass@0.0.8
774
-
775
- ## 0.0.8
776
-
777
- ### Patch Changes
778
-
779
- - Updated dependencies [[`e84816c`](https://github.com/tonightpass/tonightpass/commit/e84816ce49b8602f6fd98c9148ed184b5060c35a)]:
780
- - tonightpass@0.0.7
781
-
782
- ## 0.0.7
783
-
784
- ### Patch Changes
785
-
786
- - Updated dependencies [[`24d1f03`](https://github.com/tonightpass/tonightpass/commit/24d1f0323507b176c8b5b19f64f1b63c874e9a31)]:
787
- - tonightpass@0.0.6
788
-
789
- ## 0.0.6
790
-
791
- ### Patch Changes
792
-
793
- - Updated dependencies [[`8f7a766`](https://github.com/tonightpass/tonightpass/commit/8f7a7661541f3927f4a4f31c119f8a866abd7133)]:
794
- - tonightpass@0.0.5
795
-
796
- ## 0.0.5
797
-
798
- ### Patch Changes
799
-
800
- - Updated dependencies [[`595b40e`](https://github.com/tonightpass/tonightpass/commit/595b40eae03123358dfe659e97087144df9052cc)]:
801
- - tonightpass@0.0.4
802
-
803
- ## 0.0.4
804
-
805
- ### Patch Changes
806
-
807
- - [`ef3cb97`](https://github.com/tonightpass/tonightpass/commit/ef3cb9700747e815bd9ec1757003e4eb1774865a) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update api hook path types
808
-
809
- ## 0.0.3
810
-
811
- ### Patch Changes
812
-
813
- - Updated dependencies [[`2166d44`](https://github.com/tonightpass/tonightpass/commit/2166d44417e5af6e1da86681330b4aa2892775e5)]:
814
- - tonightpass@0.0.3
815
-
816
- ## 0.0.2
817
-
818
- ### Patch Changes
819
-
820
- - Updated dependencies [[`276f52e`](https://github.com/tonightpass/tonightpass/commit/276f52eb551e2dce6173c3331119a68780cea8d0)]:
821
- - tonightpass@0.0.2
822
-
823
- ## 0.0.1
824
-
825
- ### Patch Changes
826
-
827
- - Updated dependencies [[`3218ecc`](https://github.com/tonightpass/tonightpass/commit/3218ecc8bdfda8d5bc1ca3988d8eb56de39d9ccb)]:
828
- - tonightpass@0.0.1
@@ -1 +0,0 @@
1
- export * from "./useAPI";
@@ -1,51 +0,0 @@
1
- import useSWR, { SWRConfiguration, SWRResponse } from "swr";
2
- import {
3
- Endpoints,
4
- APIRequestOptions,
5
- Client,
6
- PathsFor,
7
- DEFAULT_API_URL,
8
- TonightPassAPIError,
9
- Query,
10
- } from "tonightpass";
11
-
12
- export const client = new Client({ baseURL: DEFAULT_API_URL });
13
-
14
- type AnyEndpoint = Endpoints extends infer T ? T : never;
15
-
16
- type ForceAccept<T> = T extends never ? any : T;
17
-
18
- export type ResponseType<Path extends PathsFor<"GET">> = ForceAccept<
19
- Extract<AnyEndpoint, { path: Path; method: "GET" }>["res"]
20
- >;
21
-
22
- export type ErrorType<Path extends PathsFor<"GET">> = TonightPassAPIError<
23
- ResponseType<Path>
24
- >;
25
-
26
- export interface UseAPIConfig<Path extends PathsFor<"GET">>
27
- extends SWRConfiguration<ResponseType<Path>, ErrorType<Path>> {
28
- requestOptions?: APIRequestOptions;
29
- }
30
-
31
- export function useAPI<Path extends PathsFor<"GET">>(
32
- path: Path | null | undefined,
33
- query?: Query<Path>,
34
- config?: UseAPIConfig<Path>,
35
- ): SWRResponse<ResponseType<Path>, ErrorType<Path>> {
36
- const { requestOptions, ...swrConfig } = config || {};
37
-
38
- const fetcher = async ([fetchPath, fetchQuery]: [
39
- Path,
40
- Query<Path> | undefined,
41
- ]) => {
42
- const response = await client.get(fetchPath, fetchQuery, requestOptions);
43
- return response as unknown as ResponseType<Path>;
44
- };
45
-
46
- return useSWR<
47
- ResponseType<Path>,
48
- ErrorType<Path>,
49
- [Path, Query<Path> | undefined] | null
50
- >(path ? [path, query] : null, fetcher, swrConfig);
51
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./hooks";
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "resolveJsonModule": true,
5
- "esModuleInterop": true,
6
- "forceConsistentCasingInFileNames": true,
7
- "isolatedModules": true,
8
- "moduleResolution": "node",
9
- "preserveWatchOutput": true,
10
- "skipLibCheck": true,
11
- "noEmit": true,
12
- "strict": true,
13
- "strictPropertyInitialization": false,
14
- "experimentalDecorators": true
15
- },
16
- "exclude": ["node_modules"]
17
- }
package/tsup.config.ts DELETED
@@ -1,15 +0,0 @@
1
- import { defineConfig, Options } from "tsup";
2
-
3
- const config: Options = {
4
- format: ["cjs", "esm"],
5
- entry: ["src/index.ts"],
6
- splitting: true,
7
- sourcemap: true,
8
- clean: false,
9
- platform: "node",
10
- minify: true,
11
- treeshake: true,
12
- dts: true,
13
- };
14
-
15
- export default defineConfig(config);