@prosopo/types-env 2.7.53 → 2.9.16

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/types-env@2.7.53 build:cjs
2
+ > @prosopo/types-env@2.9.16 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
@@ -23,12 +23,13 @@
23
23
  ViteCommonJSConfig: .
24
24
  {
25
25
  tsConfigPaths: [
26
- '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
27
- '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
28
- '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
26
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
29
27
  '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
28
+ '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
29
+ '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
30
30
  '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
31
31
  '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json',
32
+ '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
32
33
  '/home/runner/work/captcha/captcha/packages/user-access-policy/tsconfig.json',
33
34
  '/home/runner/work/captcha/captcha/packages/api-route/tsconfig.json',
34
35
  '/home/runner/work/captcha/captcha/packages/redis-client/tsconfig.json',
@@ -38,12 +39,13 @@ ViteCommonJSConfig: .
38
39
  }
39
40
  {
40
41
  externals: [
41
- '@prosopo/common',
42
- '@prosopo/locale',
43
- '@prosopo/types',
42
+ '@prosopo/logger',
44
43
  '@prosopo/util',
44
+ '@prosopo/types',
45
+ '@prosopo/locale',
45
46
  '@prosopo/util-crypto',
46
47
  '@prosopo/types-database',
48
+ '@prosopo/common',
47
49
  '@prosopo/user-access-policy',
48
50
  '@prosopo/api-route',
49
51
  '@prosopo/redis-client',
@@ -55,9 +57,10 @@ ViteCommonJSConfig: .
55
57
  Bundle build started
56
58
  transforming...
57
59
  Build end
58
- ✓ 3 modules transformed.
60
+ ✓ 4 modules transformed.
59
61
  rendering chunks...
60
62
  dist/cjs/env.cjs 0.01 kB
61
63
  dist/cjs/provider.cjs 0.01 kB
62
- dist/cjs/index.cjs 0.06 kB
63
- ✓ built in 101ms
64
+ dist/cjs/ipinfo.cjs 0.01 kB
65
+ dist/cjs/index.cjs 0.09 kB
66
+ ✓ built in 113ms
@@ -0,0 +1,50 @@
1
+
2
+ > @prosopo/types-env@2.9.16 build:tsc
3
+ > tsc --build --verbose
4
+
5
+ 8:14:55 AM - Projects in this build:
6
+ * ../../dev/config/tsconfig.json
7
+ * ../util/tsconfig.json
8
+ * ../logger/tsconfig.json
9
+ * ../locale/tsconfig.json
10
+ * ../util-crypto/tsconfig.json
11
+ * ../types/tsconfig.json
12
+ * ../common/tsconfig.json
13
+ * ../api-route/tsconfig.json
14
+ * ../redis-client/tsconfig.json
15
+ * ../api/tsconfig.json
16
+ * ../user-access-policy/tsconfig.json
17
+ * ../types-database/tsconfig.json
18
+ * ../keyring/tsconfig.json
19
+ * tsconfig.json
20
+
21
+ 8:14:55 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
22
+
23
+ 8:14:55 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
24
+
25
+ 8:14:55 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
26
+
27
+ 8:14:55 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
28
+
29
+ 8:14:55 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
30
+
31
+ 8:14:55 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
32
+
33
+ 8:14:55 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
34
+
35
+ 8:14:55 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
36
+
37
+ 8:14:55 AM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
38
+
39
+ 8:14:55 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
40
+
41
+ 8:14:56 AM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
42
+
43
+ 8:14:56 AM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/bannedDomain.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
44
+
45
+ 8:14:56 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
46
+
47
+ 8:14:56 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
48
+
49
+ 8:14:56 AM - Building project '/home/runner/work/captcha/captcha/packages/types-env/tsconfig.json'...
50
+
@@ -1,6 +1,10 @@
1
1
 
2
- > @prosopo/types-env@2.7.53 build
3
- > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV
2
+ > @prosopo/types-env@2.9.16 build
3
+ > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
+
5
+
6
+ > @prosopo/types-env@2.9.16 build:cross-env
7
+ > vite build --config vite.esm.config.ts --mode production
4
8
 
5
9
  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
6
10
 
@@ -23,12 +27,13 @@
23
27
  ViteEsmConfig: .
24
28
  {
25
29
  tsConfigPaths: [
26
- '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
27
- '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
28
- '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
30
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
29
31
  '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
32
+ '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
33
+ '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
30
34
  '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
31
35
  '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json',
36
+ '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
32
37
  '/home/runner/work/captcha/captcha/packages/user-access-policy/tsconfig.json',
33
38
  '/home/runner/work/captcha/captcha/packages/api-route/tsconfig.json',
34
39
  '/home/runner/work/captcha/captcha/packages/redis-client/tsconfig.json',
@@ -38,12 +43,13 @@ ViteEsmConfig: .
38
43
  }
39
44
  {
40
45
  externals: [
41
- '@prosopo/common',
42
- '@prosopo/locale',
43
- '@prosopo/types',
46
+ '@prosopo/logger',
44
47
  '@prosopo/util',
48
+ '@prosopo/types',
49
+ '@prosopo/locale',
45
50
  '@prosopo/util-crypto',
46
51
  '@prosopo/types-database',
52
+ '@prosopo/common',
47
53
  '@prosopo/user-access-policy',
48
54
  '@prosopo/api-route',
49
55
  '@prosopo/redis-client',
@@ -55,9 +61,10 @@ ViteEsmConfig: .
55
61
  Bundle build started
56
62
  transforming...
57
63
  Build end
58
- ✓ 3 modules transformed.
64
+ ✓ 4 modules transformed.
59
65
  rendering chunks...
60
66
  dist/env.js 0.00 kB
61
67
  dist/provider.js 0.00 kB
62
- dist/index.js 0.04 kB
63
- ✓ built in 130ms
68
+ dist/ipinfo.js 0.00 kB
69
+ dist/index.js 0.07 kB
70
+ ✓ built in 91ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,408 @@
1
1
  # @prosopo/types-env
2
2
 
3
+ ## 2.9.16
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [a1d60db]
7
+ - Updated dependencies [2392aaf]
8
+ - Updated dependencies [97cf7bd]
9
+ - Updated dependencies [6ca1125]
10
+ - Updated dependencies [32a591b]
11
+ - @prosopo/types@4.3.0
12
+ - @prosopo/types-database@4.8.0
13
+ - @prosopo/logger@1.0.2
14
+ - @prosopo/keyring@2.9.34
15
+
16
+ ## 2.9.15
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [6c26669]
20
+ - Updated dependencies [f7f9ec5]
21
+ - @prosopo/types@4.2.1
22
+ - @prosopo/types-database@4.7.8
23
+ - @prosopo/keyring@2.9.33
24
+
25
+ ## 2.9.14
26
+ ### Patch Changes
27
+
28
+ - 0fd81af: Extract the logger into its own `@prosopo/logger` package, out of `@prosopo/common`. Consumers now import logger symbols from `@prosopo/logger`; `@prosopo/common` no longer re-exports them. Unused `@prosopo/common` dependencies pruned where the only usage was the logger.
29
+ - Updated dependencies [0fd81af]
30
+ - @prosopo/logger@1.0.1
31
+ - @prosopo/types-database@4.7.7
32
+ - @prosopo/keyring@2.9.32
33
+
34
+ ## 2.9.13
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [cdbc5ed]
38
+ - Updated dependencies [4d9923e]
39
+ - Updated dependencies [20cae63]
40
+ - Updated dependencies [4d9923e]
41
+ - @prosopo/types-database@4.7.6
42
+ - @prosopo/types@4.2.0
43
+ - @prosopo/keyring@2.9.31
44
+
45
+ ## 2.9.12
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [d351362]
49
+ - @prosopo/types@4.1.4
50
+ - @prosopo/types-database@4.7.5
51
+ - @prosopo/keyring@2.9.30
52
+
53
+ ## 2.9.11
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [e2711ae]
57
+ - Updated dependencies [5786629]
58
+ - Updated dependencies [7e8cbb7]
59
+ - @prosopo/types@4.1.3
60
+ - @prosopo/types-database@4.7.4
61
+ - @prosopo/keyring@2.9.29
62
+ - @prosopo/common@3.1.36
63
+
64
+ ## 2.9.10
65
+ ### Patch Changes
66
+
67
+ - @prosopo/keyring@2.9.28
68
+ - @prosopo/types@4.1.2
69
+ - @prosopo/types-database@4.7.3
70
+
71
+ ## 2.9.9
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [91958da]
75
+ - @prosopo/types@4.1.1
76
+ - @prosopo/common@3.1.35
77
+ - @prosopo/types-database@4.7.2
78
+ - @prosopo/keyring@2.9.27
79
+
80
+ ## 2.9.8
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [6a741ce]
84
+ - @prosopo/types@4.1.0
85
+ - @prosopo/keyring@2.9.26
86
+ - @prosopo/types-database@4.7.1
87
+
88
+ ## 2.9.7
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [3c0be68]
92
+ - Updated dependencies [f9ea09d]
93
+ - Updated dependencies [d865319]
94
+ - Updated dependencies [753304b]
95
+ - Updated dependencies [8bb7286]
96
+ - Updated dependencies [f9ea09d]
97
+ - Updated dependencies [4aae4e6]
98
+ - Updated dependencies [4993813]
99
+ - @prosopo/types@4.0.0
100
+ - @prosopo/types-database@4.7.0
101
+ - @prosopo/keyring@2.9.25
102
+ - @prosopo/common@3.1.34
103
+
104
+ ## 2.9.6
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [819ed95]
108
+ - @prosopo/types-database@4.6.2
109
+ - @prosopo/types@3.16.1
110
+ - @prosopo/keyring@2.9.24
111
+
112
+ ## 2.9.5
113
+ ### Patch Changes
114
+
115
+ - @prosopo/types-database@4.6.1
116
+
117
+ ## 2.9.4
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [74092d0]
121
+ - @prosopo/types-database@4.6.0
122
+
123
+ ## 2.9.3
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [f6a4402]
127
+ - Updated dependencies [99dfb44]
128
+ - @prosopo/types-database@4.5.3
129
+ - @prosopo/types@3.16.0
130
+ - @prosopo/keyring@2.9.23
131
+
132
+ ## 2.9.2
133
+ ### Patch Changes
134
+
135
+ - Updated dependencies [3e54c0a]
136
+ - @prosopo/types@3.15.0
137
+ - @prosopo/keyring@2.9.22
138
+ - @prosopo/types-database@4.5.2
139
+
140
+ ## 2.9.1
141
+ ### Patch Changes
142
+
143
+ - Updated dependencies [946a8ba]
144
+ - Updated dependencies [5614814]
145
+ - @prosopo/types-database@4.5.1
146
+ - @prosopo/types@3.14.1
147
+ - @prosopo/common@3.1.33
148
+ - @prosopo/keyring@2.9.21
149
+
150
+ ## 2.9.0
151
+ ### Minor Changes
152
+
153
+ - 42650db: Add better spam rules and move ipinfo service to local instead of external
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies [fc514dd]
158
+ - Updated dependencies [42650db]
159
+ - @prosopo/types-database@4.5.0
160
+ - @prosopo/types@3.14.0
161
+ - @prosopo/common@3.1.32
162
+ - @prosopo/keyring@2.9.20
163
+
164
+ ## 2.8.15
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [4a9c518]
168
+ - @prosopo/common@3.1.31
169
+ - @prosopo/keyring@2.9.19
170
+ - @prosopo/types-database@4.4.14
171
+
172
+ ## 2.8.14
173
+ ### Patch Changes
174
+
175
+ - @prosopo/keyring@2.9.18
176
+ - @prosopo/types@3.13.3
177
+ - @prosopo/types-database@4.4.13
178
+
179
+ ## 2.8.13
180
+ ### Patch Changes
181
+
182
+ - @prosopo/keyring@2.9.17
183
+ - @prosopo/types@3.13.2
184
+ - @prosopo/types-database@4.4.12
185
+
186
+ ## 2.8.12
187
+ ### Patch Changes
188
+
189
+ - @prosopo/keyring@2.9.16
190
+ - @prosopo/types@3.13.1
191
+ - @prosopo/types-database@4.4.11
192
+
193
+ ## 2.8.11
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [e6d9553]
197
+ - @prosopo/types@3.13.0
198
+ - @prosopo/keyring@2.9.15
199
+ - @prosopo/types-database@4.4.10
200
+
201
+ ## 2.8.10
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [d5082a9]
205
+ - Updated dependencies [e1ea65f]
206
+ - Updated dependencies [c316257]
207
+ - @prosopo/types@3.12.3
208
+ - @prosopo/types-database@4.4.9
209
+ - @prosopo/keyring@2.9.14
210
+
211
+ ## 2.8.9
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [adb89a6]
215
+ - @prosopo/types-database@4.4.8
216
+ - @prosopo/types@3.12.2
217
+ - @prosopo/common@3.1.30
218
+ - @prosopo/keyring@2.9.13
219
+
220
+ ## 2.8.8
221
+ ### Patch Changes
222
+
223
+ - Updated dependencies [c5ee492]
224
+ - Updated dependencies [a90eb54]
225
+ - @prosopo/common@3.1.29
226
+ - @prosopo/types-database@4.4.7
227
+ - @prosopo/types@3.12.1
228
+ - @prosopo/keyring@2.9.12
229
+
230
+ ## 2.8.7
231
+ ### Patch Changes
232
+
233
+ - Updated dependencies [676c5f2]
234
+ - Updated dependencies [feaca02]
235
+ - @prosopo/keyring@2.9.11
236
+ - @prosopo/types@3.12.0
237
+ - @prosopo/types-database@4.4.6
238
+
239
+ ## 2.8.6
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [8148587]
243
+ - @prosopo/types-database@4.4.5
244
+ - @prosopo/types@3.11.1
245
+ - @prosopo/keyring@2.9.10
246
+
247
+ ## 2.8.5
248
+ ### Patch Changes
249
+
250
+ - Updated dependencies [90033e9]
251
+ - @prosopo/types-database@4.4.4
252
+
253
+ ## 2.8.4
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [7f6ffc5]
257
+ - @prosopo/types@3.11.0
258
+ - @prosopo/keyring@2.9.9
259
+ - @prosopo/types-database@4.4.3
260
+
261
+ ## 2.8.3
262
+ ### Patch Changes
263
+
264
+ - Updated dependencies [93fa086]
265
+ - @prosopo/types-database@4.4.2
266
+ - @prosopo/types@3.10.2
267
+ - @prosopo/keyring@2.9.8
268
+
269
+ ## 2.8.2
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies [cde7550]
273
+ - @prosopo/types-database@4.4.1
274
+ - @prosopo/types@3.10.1
275
+ - @prosopo/keyring@2.9.7
276
+
277
+ ## 2.8.1
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [ad6d622]
281
+ - Updated dependencies [fa95c5f]
282
+ - @prosopo/types-database@4.4.0
283
+ - @prosopo/types@3.10.0
284
+ - @prosopo/keyring@2.9.6
285
+
286
+ ## 2.8.0
287
+ ### Minor Changes
288
+
289
+ - ff58a70: Load the geolocation service at startup only
290
+
291
+ ### Patch Changes
292
+
293
+ - Updated dependencies [ff58a70]
294
+ - @prosopo/types@3.9.0
295
+ - @prosopo/keyring@2.9.5
296
+ - @prosopo/types-database@4.3.1
297
+
298
+ ## 2.7.66
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [3feeea4]
302
+ - @prosopo/types-database@4.3.0
303
+
304
+ ## 2.7.65
305
+ ### Patch Changes
306
+
307
+ - Updated dependencies [4c08158]
308
+ - Updated dependencies [d2431cd]
309
+ - @prosopo/types-database@4.2.4
310
+ - @prosopo/types@3.8.4
311
+ - @prosopo/keyring@2.9.4
312
+
313
+ ## 2.7.64
314
+ ### Patch Changes
315
+
316
+ - Updated dependencies [8dad7f3]
317
+ - @prosopo/types-database@4.2.3
318
+
319
+ ## 2.7.63
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [bd6995b]
323
+ - @prosopo/types@3.8.3
324
+ - @prosopo/types-database@4.2.2
325
+ - @prosopo/keyring@2.9.3
326
+
327
+ ## 2.7.62
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [9633e58]
331
+ - @prosopo/types-database@4.2.1
332
+ - @prosopo/types@3.8.2
333
+ - @prosopo/keyring@2.9.2
334
+
335
+ ## 2.7.61
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [f52a5c1]
339
+ - Updated dependencies [4299cae]
340
+ - @prosopo/types-database@4.2.0
341
+ - @prosopo/types@3.8.1
342
+ - @prosopo/keyring@2.9.1
343
+
344
+ ## 2.7.60
345
+ ### Patch Changes
346
+
347
+ - @prosopo/types-database@4.1.6
348
+
349
+ ## 2.7.59
350
+ ### Patch Changes
351
+
352
+ - 0a38892: feat/cross-os-testing
353
+ - a8faa9a: bump license year
354
+ - 3acc333: Release 3.3.0
355
+ - Updated dependencies [3acc333]
356
+ - Updated dependencies [3acc333]
357
+ - Updated dependencies [3acc333]
358
+ - Updated dependencies [0a38892]
359
+ - Updated dependencies [1ee3d80]
360
+ - Updated dependencies [a8faa9a]
361
+ - Updated dependencies [7543d17]
362
+ - Updated dependencies [fe9fe22]
363
+ - Updated dependencies [3acc333]
364
+ - @prosopo/types-database@4.1.5
365
+ - @prosopo/keyring@2.9.0
366
+ - @prosopo/types@3.8.0
367
+ - @prosopo/common@3.1.28
368
+
369
+ ## 2.7.58
370
+ ### Patch Changes
371
+
372
+ - @prosopo/types-database@4.1.4
373
+
374
+ ## 2.7.57
375
+ ### Patch Changes
376
+
377
+ - @prosopo/types-database@4.1.3
378
+
379
+ ## 2.7.56
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies [141e462]
383
+ - @prosopo/types@3.7.2
384
+ - @prosopo/keyring@2.8.43
385
+ - @prosopo/types-database@4.1.2
386
+
387
+ ## 2.7.55
388
+ ### Patch Changes
389
+
390
+ - Updated dependencies [345b25b]
391
+ - @prosopo/types-database@4.1.1
392
+ - @prosopo/types@3.7.1
393
+ - @prosopo/keyring@2.8.42
394
+
395
+ ## 2.7.54
396
+ ### Patch Changes
397
+
398
+ - Updated dependencies [ce70a2b]
399
+ - Updated dependencies [c2b940f]
400
+ - Updated dependencies [f6b5094]
401
+ - @prosopo/types@3.7.0
402
+ - @prosopo/types-database@4.1.0
403
+ - @prosopo/common@3.1.27
404
+ - @prosopo/keyring@2.8.41
405
+
3
406
  ## 2.7.53
4
407
  ### Patch Changes
5
408
 
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  require("./env.cjs");
3
3
  require("./provider.cjs");
4
+ require("./ipinfo.cjs");
@@ -0,0 +1 @@
1
+ "use strict";
package/dist/env.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import type { Keyring } from "@prosopo/keyring";
2
+ import type { Logger } from "@prosopo/logger";
3
+ import type { KeyringPair } from "@prosopo/types";
4
+ import type { AssetsResolver, EnvironmentTypes } from "@prosopo/types";
5
+ import type { ProsopoBasicConfigOutput } from "@prosopo/types";
6
+ import type { IProviderDatabase } from "@prosopo/types-database";
7
+ import type { IIpInfoService } from "./ipinfo.js";
8
+ export interface ProsopoEnvironment {
9
+ config: ProsopoBasicConfigOutput;
10
+ db: IProviderDatabase | undefined;
11
+ defaultEnvironment: EnvironmentTypes;
12
+ logger: Logger;
13
+ assetsResolver: AssetsResolver | undefined;
14
+ keyring: Keyring;
15
+ pair: KeyringPair | undefined;
16
+ authAccount: KeyringPair | undefined;
17
+ ipInfoService: IIpInfoService;
18
+ getDb(): IProviderDatabase;
19
+ isReady(): Promise<void>;
20
+ importDatabase(): Promise<void>;
21
+ }
22
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,wBAAwB,CAAC;IACjC,EAAE,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClC,kBAAkB,EAAE,gBAAgB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,cAAc,CAAC;IAC9B,KAAK,IAAI,iBAAiB,CAAC;IAC3B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from "./env.js";
2
+ export * from "./provider.js";
3
+ export * from "./ipinfo.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  import "./env.js";
2
2
  import "./provider.js";
3
+ import "./ipinfo.js";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IPInfoResponse } from "@prosopo/types";
2
+ export interface IIpInfoService {
3
+ initialize(): Promise<void>;
4
+ lookup(ip: string): Promise<IPInfoResponse>;
5
+ isAvailable(): boolean;
6
+ }
7
+ //# sourceMappingURL=ipinfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipinfo.d.ts","sourceRoot":"","sources":["../src/ipinfo.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC9B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,IAAI,OAAO,CAAC;CACvB"}
package/dist/ipinfo.js ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipinfo.js","sourceRoot":"","sources":["../src/ipinfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { ProsopoConfigOutput } from "@prosopo/types";
2
+ import type { ProsopoEnvironment } from "./env.js";
3
+ export interface ProviderEnvironment extends ProsopoEnvironment {
4
+ config: ProsopoConfigOutput;
5
+ }
6
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC9D,MAAM,EAAE,mBAAmB,CAAC;CAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/types-env",
3
- "version": "2.7.53",
3
+ "version": "2.9.16",
4
4
  "description": "Types for prosopo environment",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,14 +18,16 @@
18
18
  },
19
19
  "scripts": {
20
20
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
21
- "build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
21
+ "build": "npm run build:cross-env -- --mode ${NODE_ENV:-development}",
22
+ "build:cross-env": "vite build --config vite.esm.config.ts",
22
23
  "build:tsc": "tsc --build --verbose",
23
24
  "build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
24
25
  "typecheck": "tsc --project tsconfig.types.json"
25
26
  },
26
27
  "repository": {
27
28
  "type": "git",
28
- "url": "git+ssh://git@github.com/prosopo/captcha.git"
29
+ "url": "git+https://github.com/prosopo/captcha.git",
30
+ "directory": "packages/types-env"
29
31
  },
30
32
  "author": "Prosopo Limited",
31
33
  "license": "Apache-2.0",
@@ -34,13 +36,13 @@
34
36
  },
35
37
  "homepage": "https://github.com/prosopo/captcha#readme",
36
38
  "dependencies": {
37
- "@prosopo/common": "3.1.26",
38
- "@prosopo/keyring": "2.8.40",
39
- "@prosopo/types": "3.6.4",
40
- "@prosopo/types-database": "4.0.6"
39
+ "@prosopo/logger": "1.0.2",
40
+ "@prosopo/keyring": "2.9.34",
41
+ "@prosopo/types": "4.3.0",
42
+ "@prosopo/types-database": "4.8.0"
41
43
  },
42
44
  "devDependencies": {
43
- "@prosopo/config": "3.1.26",
45
+ "@prosopo/config": "3.3.1",
44
46
  "@types/node": "22.10.2",
45
47
  "@vitest/coverage-v8": "3.2.4",
46
48
  "concurrently": "9.0.1",
@@ -1,5 +1,5 @@
1
1
  import path from "node:path";
2
- // Copyright 2021-2025 Prosopo (UK) Ltd.
2
+ // Copyright 2021-2026 Prosopo (UK) Ltd.
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2025 Prosopo (UK) Ltd.
1
+ // Copyright 2021-2026 Prosopo (UK) Ltd.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.