@prosopo/types-env 2.7.52 → 2.7.59

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.
@@ -0,0 +1,63 @@
1
+
2
+ > @prosopo/types-env@2.7.59 build:cjs
3
+ > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
+
5
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
6
+
7
+ package.json:16:3:
8
+ 16 │ "types": "./dist/index.d.ts"
9
+ ╵ ~~~~~~~
10
+
11
+ The "import" condition comes earlier and will be used for all "import" statements:
12
+
13
+ package.json:14:3:
14
+ 14 │ "import": "./dist/index.js",
15
+ ╵ ~~~~~~~~
16
+
17
+ The "require" condition comes earlier and will be used for all "require" calls:
18
+
19
+ package.json:15:3:
20
+ 15 │ "require": "./dist/cjs/index.cjs",
21
+ ╵ ~~~~~~~~~
22
+
23
+ ViteCommonJSConfig: .
24
+ {
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',
29
+ '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
30
+ '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
31
+ '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json',
32
+ '/home/runner/work/captcha/captcha/packages/user-access-policy/tsconfig.json',
33
+ '/home/runner/work/captcha/captcha/packages/api-route/tsconfig.json',
34
+ '/home/runner/work/captcha/captcha/packages/redis-client/tsconfig.json',
35
+ '/home/runner/work/captcha/captcha/packages/api/tsconfig.json',
36
+ '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
37
+ ]
38
+ }
39
+ {
40
+ externals: [
41
+ '@prosopo/common',
42
+ '@prosopo/locale',
43
+ '@prosopo/types',
44
+ '@prosopo/util',
45
+ '@prosopo/util-crypto',
46
+ '@prosopo/types-database',
47
+ '@prosopo/user-access-policy',
48
+ '@prosopo/api-route',
49
+ '@prosopo/redis-client',
50
+ '@prosopo/api',
51
+ '@prosopo/keyring'
52
+ ]
53
+ }
54
+ vite v6.4.1 building SSR bundle for production...
55
+ Bundle build started
56
+ transforming...
57
+ Build end
58
+ ✓ 3 modules transformed.
59
+ rendering chunks...
60
+ dist/cjs/env.cjs 0.01 kB
61
+ dist/cjs/provider.cjs 0.01 kB
62
+ dist/cjs/index.cjs 0.06 kB
63
+ ✓ built in 137ms
@@ -0,0 +1,47 @@
1
+
2
+ > @prosopo/types-env@2.7.59 build:tsc
3
+ > tsc --build --verbose
4
+
5
+ 4:57:24 PM - Projects in this build:
6
+ * ../../dev/config/tsconfig.json
7
+ * ../locale/tsconfig.json
8
+ * ../util/tsconfig.json
9
+ * ../util-crypto/tsconfig.json
10
+ * ../types/tsconfig.json
11
+ * ../common/tsconfig.json
12
+ * ../api-route/tsconfig.json
13
+ * ../redis-client/tsconfig.json
14
+ * ../api/tsconfig.json
15
+ * ../user-access-policy/tsconfig.json
16
+ * ../types-database/tsconfig.json
17
+ * ../keyring/tsconfig.json
18
+ * tsconfig.json
19
+
20
+ 4:57:24 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/dependencies.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
21
+
22
+ 4:57:24 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
23
+
24
+ 4:57:24 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/verifyRecency.ts' is older than output '../util/tsconfig.tsbuildinfo'
25
+
26
+ 4:57:24 PM - 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'
27
+
28
+ 4:57:24 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
29
+
30
+ 4:57:24 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/logger.ts' is older than output '../common/tsconfig.tsbuildinfo'
31
+
32
+ 4:57:24 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
33
+
34
+ 4:57:24 PM - 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'
35
+
36
+ 4:57:25 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
37
+
38
+ 4:57:25 PM - 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'
39
+
40
+ 4:57:25 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/index.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
41
+
42
+ 4:57:25 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
43
+
44
+ 4:57:25 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
45
+
46
+ 4:57:25 PM - Building project '/home/runner/work/captcha/captcha/packages/types-env/tsconfig.json'...
47
+
@@ -0,0 +1,67 @@
1
+
2
+ > @prosopo/types-env@2.7.59 build
3
+ > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
+
5
+
6
+ > @prosopo/types-env@2.7.59 build:cross-env
7
+ > vite build --config vite.esm.config.ts --mode production
8
+
9
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
10
+
11
+ package.json:16:3:
12
+ 16 │ "types": "./dist/index.d.ts"
13
+ ╵ ~~~~~~~
14
+
15
+ The "import" condition comes earlier and will be used for all "import" statements:
16
+
17
+ package.json:14:3:
18
+ 14 │ "import": "./dist/index.js",
19
+ ╵ ~~~~~~~~
20
+
21
+ The "require" condition comes earlier and will be used for all "require" calls:
22
+
23
+ package.json:15:3:
24
+ 15 │ "require": "./dist/cjs/index.cjs",
25
+ ╵ ~~~~~~~~~
26
+
27
+ ViteEsmConfig: .
28
+ {
29
+ tsConfigPaths: [
30
+ '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
31
+ '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
32
+ '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
33
+ '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
34
+ '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
35
+ '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json',
36
+ '/home/runner/work/captcha/captcha/packages/user-access-policy/tsconfig.json',
37
+ '/home/runner/work/captcha/captcha/packages/api-route/tsconfig.json',
38
+ '/home/runner/work/captcha/captcha/packages/redis-client/tsconfig.json',
39
+ '/home/runner/work/captcha/captcha/packages/api/tsconfig.json',
40
+ '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
41
+ ]
42
+ }
43
+ {
44
+ externals: [
45
+ '@prosopo/common',
46
+ '@prosopo/locale',
47
+ '@prosopo/types',
48
+ '@prosopo/util',
49
+ '@prosopo/util-crypto',
50
+ '@prosopo/types-database',
51
+ '@prosopo/user-access-policy',
52
+ '@prosopo/api-route',
53
+ '@prosopo/redis-client',
54
+ '@prosopo/api',
55
+ '@prosopo/keyring'
56
+ ]
57
+ }
58
+ vite v6.4.1 building SSR bundle for production...
59
+ Bundle build started
60
+ transforming...
61
+ Build end
62
+ ✓ 3 modules transformed.
63
+ rendering chunks...
64
+ dist/env.js 0.00 kB
65
+ dist/provider.js 0.00 kB
66
+ dist/index.js 0.04 kB
67
+ ✓ built in 134ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @prosopo/types-env
2
2
 
3
+ ## 2.7.59
4
+ ### Patch Changes
5
+
6
+ - 0a38892: feat/cross-os-testing
7
+ - a8faa9a: bump license year
8
+ - 3acc333: Release 3.3.0
9
+ - Updated dependencies [3acc333]
10
+ - Updated dependencies [3acc333]
11
+ - Updated dependencies [3acc333]
12
+ - Updated dependencies [0a38892]
13
+ - Updated dependencies [1ee3d80]
14
+ - Updated dependencies [a8faa9a]
15
+ - Updated dependencies [7543d17]
16
+ - Updated dependencies [fe9fe22]
17
+ - Updated dependencies [3acc333]
18
+ - @prosopo/types-database@4.1.5
19
+ - @prosopo/keyring@2.9.0
20
+ - @prosopo/types@3.8.0
21
+ - @prosopo/common@3.1.28
22
+
23
+ ## 2.7.58
24
+ ### Patch Changes
25
+
26
+ - @prosopo/types-database@4.1.4
27
+
28
+ ## 2.7.57
29
+ ### Patch Changes
30
+
31
+ - @prosopo/types-database@4.1.3
32
+
33
+ ## 2.7.56
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [141e462]
37
+ - @prosopo/types@3.7.2
38
+ - @prosopo/keyring@2.8.43
39
+ - @prosopo/types-database@4.1.2
40
+
41
+ ## 2.7.55
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [345b25b]
45
+ - @prosopo/types-database@4.1.1
46
+ - @prosopo/types@3.7.1
47
+ - @prosopo/keyring@2.8.42
48
+
49
+ ## 2.7.54
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [ce70a2b]
53
+ - Updated dependencies [c2b940f]
54
+ - Updated dependencies [f6b5094]
55
+ - @prosopo/types@3.7.0
56
+ - @prosopo/types-database@4.1.0
57
+ - @prosopo/common@3.1.27
58
+ - @prosopo/keyring@2.8.41
59
+
60
+ ## 2.7.53
61
+ ### Patch Changes
62
+
63
+ - 7d5eb3f: bump
64
+ - Updated dependencies [7d5eb3f]
65
+ - @prosopo/common@3.1.26
66
+ - @prosopo/keyring@2.8.40
67
+ - @prosopo/types@3.6.4
68
+ - @prosopo/types-database@4.0.6
69
+
3
70
  ## 2.7.52
4
71
  ### Patch Changes
5
72
 
package/dist/env.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import type { Logger } from "@prosopo/common";
2
+ import type { Keyring } from "@prosopo/keyring";
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
+ export interface ProsopoEnvironment {
8
+ config: ProsopoBasicConfigOutput;
9
+ db: IProviderDatabase | undefined;
10
+ defaultEnvironment: EnvironmentTypes;
11
+ logger: Logger;
12
+ assetsResolver: AssetsResolver | undefined;
13
+ keyring: Keyring;
14
+ pair: KeyringPair | undefined;
15
+ authAccount: KeyringPair | undefined;
16
+ getDb(): IProviderDatabase;
17
+ isReady(): Promise<void>;
18
+ importDatabase(): Promise<void>;
19
+ }
20
+ //# 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,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,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;AAEjE,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,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,3 @@
1
+ export * from "./env.js";
2
+ export * from "./provider.js";
3
+ //# 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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -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.52",
3
+ "version": "2.7.59",
4
4
  "description": "Types for prosopo environment",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,8 @@
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"
@@ -34,13 +35,13 @@
34
35
  },
35
36
  "homepage": "https://github.com/prosopo/captcha#readme",
36
37
  "dependencies": {
37
- "@prosopo/common": "3.1.25",
38
- "@prosopo/keyring": "2.8.39",
39
- "@prosopo/types": "3.6.3",
40
- "@prosopo/types-database": "4.0.5"
38
+ "@prosopo/common": "3.1.28",
39
+ "@prosopo/keyring": "2.9.0",
40
+ "@prosopo/types": "3.8.0",
41
+ "@prosopo/types-database": "4.1.5"
41
42
  },
42
43
  "devDependencies": {
43
- "@prosopo/config": "3.1.25",
44
+ "@prosopo/config": "3.3.0",
44
45
  "@types/node": "22.10.2",
45
46
  "@vitest/coverage-v8": "3.2.4",
46
47
  "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.