@prosopo/types-env 2.1.5 → 2.1.6

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 @@
1
+ "use strict";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ require("./env.cjs");
3
+ require("./provider.cjs");
@@ -0,0 +1 @@
1
+ "use strict";
package/dist/env.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import type { Keyring } from "@polkadot/keyring";
2
+ import type { KeyringPair } from "@polkadot/keyring/types";
3
+ import type { Logger } from "@prosopo/common";
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
+ getDb(): IProviderDatabase;
16
+ isReady(): Promise<void>;
17
+ importDatabase(): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAc9C,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5E,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,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 ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=env.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=provider.js.map
@@ -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.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Types for prosopo environment",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -32,12 +32,12 @@
32
32
  "homepage": "https://github.com/prosopo/captcha#readme",
33
33
  "dependencies": {
34
34
  "@polkadot/keyring": "12.6.2",
35
- "@prosopo/common": "2.1.5",
36
- "@prosopo/types": "2.1.5",
37
- "@prosopo/types-database": "2.1.5"
35
+ "@prosopo/common": "2.1.6",
36
+ "@prosopo/types": "2.1.6",
37
+ "@prosopo/types-database": "2.1.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@prosopo/config": "2.1.5",
40
+ "@prosopo/config": "2.1.6",
41
41
  "@vitest/coverage-v8": "2.1.1",
42
42
  "concurrently": "9.0.1",
43
43
  "npm-run-all": "4.1.5",