@prosopo/env 3.1.2 → 3.1.4
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 +39 -0
- package/dist/cjs/env.cjs +1 -1
- package/dist/env.js +2 -2
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @prosopo/env
|
|
2
2
|
|
|
3
|
+
## 3.1.4
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 828066d: remove empty test npm scripts, add missing npm test scripts
|
|
7
|
+
- df4e030: Revising UAP rule getters
|
|
8
|
+
- 91bbe87: configure typecheck before bundle for vue packages
|
|
9
|
+
- 91bbe87: make typecheck script always recompile
|
|
10
|
+
- 346e092: NODE_ENV default to "development"
|
|
11
|
+
- 5d36e05: remove tsc --force
|
|
12
|
+
- Updated dependencies [828066d]
|
|
13
|
+
- Updated dependencies [df4e030]
|
|
14
|
+
- Updated dependencies [91bbe87]
|
|
15
|
+
- Updated dependencies [3ef4fd2]
|
|
16
|
+
- Updated dependencies [91bbe87]
|
|
17
|
+
- Updated dependencies [346e092]
|
|
18
|
+
- Updated dependencies [5d36e05]
|
|
19
|
+
- @prosopo/types-database@3.0.13
|
|
20
|
+
- @prosopo/types-env@2.7.17
|
|
21
|
+
- @prosopo/database@3.0.13
|
|
22
|
+
- @prosopo/common@3.1.2
|
|
23
|
+
- @prosopo/types@3.0.6
|
|
24
|
+
- @prosopo/config@3.1.3
|
|
25
|
+
- @prosopo/util@3.0.5
|
|
26
|
+
|
|
27
|
+
## 3.1.3
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- eb71691: configure typecheck before bundle for vue packages
|
|
31
|
+
- eb71691: make typecheck script always recompile
|
|
32
|
+
- Updated dependencies [eb71691]
|
|
33
|
+
- Updated dependencies [eb71691]
|
|
34
|
+
- @prosopo/types-database@3.0.12
|
|
35
|
+
- @prosopo/types-env@2.7.16
|
|
36
|
+
- @prosopo/database@3.0.12
|
|
37
|
+
- @prosopo/common@3.1.1
|
|
38
|
+
- @prosopo/types@3.0.5
|
|
39
|
+
- @prosopo/util@3.0.4
|
|
40
|
+
- @prosopo/config@3.1.2
|
|
41
|
+
|
|
3
42
|
## 3.1.2
|
|
4
43
|
### Patch Changes
|
|
5
44
|
|
package/dist/cjs/env.cjs
CHANGED
|
@@ -9,7 +9,7 @@ class Environment {
|
|
|
9
9
|
this.ready = false;
|
|
10
10
|
this.config = config;
|
|
11
11
|
this.defaultEnvironment = this.config.defaultEnvironment;
|
|
12
|
-
this.pair = pair;
|
|
12
|
+
this.pair = pair || keyring.getPair(config.account.secret);
|
|
13
13
|
this.authAccount = authAccount;
|
|
14
14
|
this.logger = common.getLogger(
|
|
15
15
|
common.parseLogLevel(this.config.logLevel),
|
package/dist/env.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { getLogger, parseLogLevel, ProsopoEnvError } from "@prosopo/common";
|
|
2
2
|
import { ProviderDatabase } from "@prosopo/database";
|
|
3
|
-
import { Keyring } from "@prosopo/keyring";
|
|
3
|
+
import { getPair, Keyring } from "@prosopo/keyring";
|
|
4
4
|
import { randomAsHex } from "@prosopo/util-crypto";
|
|
5
5
|
class Environment {
|
|
6
6
|
constructor(config, pair, authAccount) {
|
|
7
7
|
this.ready = false;
|
|
8
8
|
this.config = config;
|
|
9
9
|
this.defaultEnvironment = this.config.defaultEnvironment;
|
|
10
|
-
this.pair = pair;
|
|
10
|
+
this.pair = pair || getPair(config.account.secret);
|
|
11
11
|
this.authAccount = authAccount;
|
|
12
12
|
this.logger = getLogger(
|
|
13
13
|
parseLogLevel(this.config.logLevel),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/env",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Path env prosopo environment",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,21 +18,20 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
21
|
-
"build": "NODE_ENV=${NODE_ENV:-
|
|
21
|
+
"build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
22
22
|
"build:tsc": "tsc --build --verbose",
|
|
23
|
-
"build:cjs": "NODE_ENV=${NODE_ENV:-
|
|
24
|
-
"typecheck": "tsc --build --declaration --emitDeclarationOnly"
|
|
25
|
-
"test": "echo no tests"
|
|
23
|
+
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
24
|
+
"typecheck": "tsc --build --declaration --emitDeclarationOnly"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
28
27
|
"@polkadot/util": "12.6.2",
|
|
29
|
-
"@prosopo/common": "3.1.
|
|
30
|
-
"@prosopo/database": "3.0.
|
|
31
|
-
"@prosopo/types": "3.0.
|
|
32
|
-
"@prosopo/types-database": "3.0.
|
|
33
|
-
"@prosopo/types-env": "2.7.
|
|
34
|
-
"@prosopo/util": "3.0.
|
|
35
|
-
"@prosopo/config": "3.1.
|
|
28
|
+
"@prosopo/common": "3.1.2",
|
|
29
|
+
"@prosopo/database": "3.0.13",
|
|
30
|
+
"@prosopo/types": "3.0.6",
|
|
31
|
+
"@prosopo/types-database": "3.0.13",
|
|
32
|
+
"@prosopo/types-env": "2.7.17",
|
|
33
|
+
"@prosopo/util": "3.0.5",
|
|
34
|
+
"@prosopo/config": "3.1.3",
|
|
36
35
|
"@typegoose/auto-increment": "4.13.0",
|
|
37
36
|
"axios": "1.10.0",
|
|
38
37
|
"esbuild": "0.25.6",
|