@prosopo/types-env 2.7.13 → 2.7.14
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/CHANGELOG.md +22 -0
- package/dist/env.js +1 -2
- package/dist/index.js +2 -3
- package/dist/provider.js +1 -2
- package/package.json +15 -12
- package/vite.cjs.config.ts +4 -1
- package/vite.esm.config.ts +20 -0
- package/dist/env.d.ts +0 -20
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/provider.d.ts +0 -6
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @prosopo/types-env
|
|
2
2
|
|
|
3
|
+
## 2.7.14
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 93d5e50: ensure packages have @prosopo/config as dep for vite configs
|
|
7
|
+
- 3573f0b: fix npm scripts bundle command
|
|
8
|
+
- 3573f0b: build using vite, typecheck using tsc
|
|
9
|
+
- efd8102: Add tests for unwrap error helper
|
|
10
|
+
- 3573f0b: standardise all vite based npm scripts for bundling
|
|
11
|
+
- Updated dependencies [93d5e50]
|
|
12
|
+
- Updated dependencies [3573f0b]
|
|
13
|
+
- Updated dependencies [3573f0b]
|
|
14
|
+
- Updated dependencies [efd8102]
|
|
15
|
+
- Updated dependencies [93d5e50]
|
|
16
|
+
- Updated dependencies [63519d7]
|
|
17
|
+
- Updated dependencies [f29fc7e]
|
|
18
|
+
- Updated dependencies [3573f0b]
|
|
19
|
+
- Updated dependencies [2d0dd8a]
|
|
20
|
+
- @prosopo/types@3.0.4
|
|
21
|
+
- @prosopo/types-database@3.0.10
|
|
22
|
+
- @prosopo/common@3.1.0
|
|
23
|
+
- @prosopo/config@3.1.1
|
|
24
|
+
|
|
3
25
|
## 2.7.13
|
|
4
26
|
### Patch Changes
|
|
5
27
|
|
package/dist/env.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=env.js.map
|
|
1
|
+
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "./env.js";
|
|
2
|
+
import "./provider.js";
|
package/dist/provider.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=provider.js.map
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/types-env",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.14",
|
|
4
4
|
"description": "Types for prosopo environment",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"engines": {
|
|
8
9
|
"node": "20",
|
|
@@ -11,14 +12,17 @@
|
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"import": "./dist/index.js",
|
|
14
|
-
"require": "./dist/cjs/index.cjs"
|
|
15
|
+
"require": "./dist/cjs/index.cjs",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
"scripts": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"build": "tsc --build --verbose",
|
|
21
|
-
"build:cjs": "
|
|
20
|
+
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
21
|
+
"build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
22
|
+
"build:tsc": "tsc --build --verbose",
|
|
23
|
+
"build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
24
|
+
"typecheck": "tsc --build --declaration --emitDeclarationOnly",
|
|
25
|
+
"test": "echo no tests"
|
|
22
26
|
},
|
|
23
27
|
"repository": {
|
|
24
28
|
"type": "git",
|
|
@@ -31,18 +35,17 @@
|
|
|
31
35
|
},
|
|
32
36
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
33
37
|
"dependencies": {
|
|
34
|
-
"@prosopo/common": "3.0
|
|
35
|
-
"@prosopo/types": "3.0.
|
|
36
|
-
"@prosopo/types-database": "3.0.
|
|
38
|
+
"@prosopo/common": "3.1.0",
|
|
39
|
+
"@prosopo/types": "3.0.4",
|
|
40
|
+
"@prosopo/types-database": "3.0.10",
|
|
37
41
|
"@typegoose/auto-increment": "4.13.0",
|
|
38
42
|
"axios": "1.10.0",
|
|
39
43
|
"esbuild": "0.25.6",
|
|
40
|
-
"express": "4.21.2",
|
|
41
44
|
"openpgp": "5.11.3",
|
|
42
|
-
"webpack-dev-server": "5.2.2"
|
|
45
|
+
"webpack-dev-server": "5.2.2",
|
|
46
|
+
"@prosopo/config": "3.1.1"
|
|
43
47
|
},
|
|
44
48
|
"devDependencies": {
|
|
45
|
-
"@prosopo/config": "3.1.0",
|
|
46
49
|
"@vitest/coverage-v8": "3.0.9",
|
|
47
50
|
"concurrently": "9.0.1",
|
|
48
51
|
"del-cli": "6.0.0",
|
package/vite.cjs.config.ts
CHANGED
|
@@ -15,5 +15,8 @@ import path from "node:path";
|
|
|
15
15
|
import { ViteCommonJSConfig } from "@prosopo/config";
|
|
16
16
|
|
|
17
17
|
export default function () {
|
|
18
|
-
return ViteCommonJSConfig(
|
|
18
|
+
return ViteCommonJSConfig(
|
|
19
|
+
path.basename("."),
|
|
20
|
+
path.resolve("./tsconfig.json"),
|
|
21
|
+
);
|
|
19
22
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright 2021-2025 Prosopo (UK) Ltd.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
import path from "node:path";
|
|
16
|
+
import { ViteEsmConfig } from "@prosopo/config";
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
return ViteEsmConfig(path.basename("."), path.resolve("./tsconfig.json"));
|
|
20
|
+
}
|
package/dist/env.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
package/dist/env.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/env.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
package/dist/provider.d.ts
DELETED
package/dist/provider.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/provider.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":""}
|