@peerbit/program 5.2.17 → 5.3.0-2f6fc7f

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.
@@ -4,7 +4,7 @@ import type { AnyStore } from "@peerbit/any-store-interface";
4
4
  import { type Blocks } from "@peerbit/blocks-interface";
5
5
  import type { Ed25519PublicKey, Identity, PublicSignKey } from "@peerbit/crypto";
6
6
  import type { Indices } from "@peerbit/indexer-interface";
7
- import { type Keychain } from "@peerbit/keychain";
7
+ import { type IPeerbitKeychain } from "@peerbit/keychain";
8
8
  import { type PubSub } from "@peerbit/pubsub-interface";
9
9
  import type { Address } from "./address.js";
10
10
  import type { CanOpen, ExtractArgs, Manageable, OpenOptions } from "./handler.js";
@@ -17,7 +17,7 @@ export interface Client<T extends Manageable<ExtractArgs<T>>> {
17
17
  services: {
18
18
  pubsub: PubSub;
19
19
  blocks: Blocks;
20
- keychain: Keychain;
20
+ keychain: IPeerbitKeychain;
21
21
  };
22
22
  storage: AnyStore;
23
23
  indexer: Indices;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EACX,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,2BAA2B,CA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,CAAC;IACtB,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EACzC,OAAO,EAAE,CAAC,GAAG,OAAO,EACpB,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GACtB,OAAO,CAAC,CAAC,CAAC,CAAC;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,MAAM,2BAA2B,CAAC;AAOxD,OAAO,EAAiB,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAe,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,MAAM,2BAA2B,CAAC;AAOxD,OAAO,EAAyB,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAe,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
1
  {
2
- "name": "@peerbit/program",
3
- "version": "5.2.17",
4
- "description": "Program interface",
5
- "sideEffects": false,
6
- "type": "module",
7
- "types": "./dist/src/index.d.ts",
8
- "typesVersions": {
9
- "*": {
10
- "*": [
11
- "*",
12
- "dist/*",
13
- "dist/src/*",
14
- "dist/src/*/index"
15
- ],
16
- "src/*": [
17
- "*",
18
- "dist/*",
19
- "dist/src/*",
20
- "dist/src/*/index"
21
- ]
22
- }
23
- },
24
- "files": [
25
- "src",
26
- "dist",
27
- "!dist/e2e",
28
- "!dist/test",
29
- "!**/*.tsbuildinfo"
30
- ],
31
- "exports": {
32
- ".": {
33
- "types": "./dist/src/index.d.ts",
34
- "import": "./dist/src/index.js"
35
- }
36
- },
37
- "eslintConfig": {
38
- "extends": "peerbit",
39
- "parserOptions": {
40
- "project": true,
41
- "sourceType": "module"
42
- },
43
- "ignorePatterns": [
44
- "!.aegir.js",
45
- "test/ts-use",
46
- "*.d.ts"
47
- ]
48
- },
49
- "publishConfig": {
50
- "access": "public"
51
- },
52
- "scripts": {
53
- "clean": "aegir clean",
54
- "build": "aegir build --no-bundle",
55
- "test": "aegir test --target node",
56
- "lint": "aegir lint"
57
- },
58
- "author": "dao.xyz",
59
- "license": "MIT",
60
- "dependencies": {
61
- "@dao-xyz/borsh": "^5.2.3",
62
- "@peerbit/crypto": "2.3.11",
63
- "@peerbit/keychain": "^1.0.32",
64
- "@peerbit/blocks-interface": "^1.4.9",
65
- "@peerbit/pubsub-interface": "^4.0.4",
66
- "@peerbit/any-store-interface": "^1.0.0",
67
- "@peerbit/libp2p-test-utils": "^2.1.20"
68
- }
2
+ "name": "@peerbit/program",
3
+ "version": "5.3.0-2f6fc7f",
4
+ "description": "Program interface",
5
+ "sideEffects": false,
6
+ "type": "module",
7
+ "types": "./dist/src/index.d.ts",
8
+ "typesVersions": {
9
+ "*": {
10
+ "*": [
11
+ "*",
12
+ "dist/*",
13
+ "dist/src/*",
14
+ "dist/src/*/index"
15
+ ],
16
+ "src/*": [
17
+ "*",
18
+ "dist/*",
19
+ "dist/src/*",
20
+ "dist/src/*/index"
21
+ ]
22
+ }
23
+ },
24
+ "files": [
25
+ "src",
26
+ "dist",
27
+ "!dist/e2e",
28
+ "!dist/test",
29
+ "!**/*.tsbuildinfo"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/src/index.d.ts",
34
+ "import": "./dist/src/index.js"
35
+ }
36
+ },
37
+ "eslintConfig": {
38
+ "extends": "peerbit",
39
+ "parserOptions": {
40
+ "project": true,
41
+ "sourceType": "module"
42
+ },
43
+ "ignorePatterns": [
44
+ "!.aegir.js",
45
+ "test/ts-use",
46
+ "*.d.ts"
47
+ ]
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "scripts": {
53
+ "clean": "aegir clean",
54
+ "build": "aegir build --no-bundle",
55
+ "test": "aegir test --target node",
56
+ "lint": "aegir lint"
57
+ },
58
+ "author": "dao.xyz",
59
+ "license": "MIT",
60
+ "dependencies": {
61
+ "@dao-xyz/borsh": "^5.2.3",
62
+ "@peerbit/crypto": "2.3.11-2f6fc7f",
63
+ "@peerbit/keychain": "1.1.0-2f6fc7f",
64
+ "@peerbit/blocks-interface": "1.4.9-2f6fc7f",
65
+ "@peerbit/pubsub-interface": "4.0.4-2f6fc7f",
66
+ "@peerbit/any-store-interface": "1.0.0-2f6fc7f",
67
+ "@peerbit/libp2p-test-utils": "2.1.20-2f6fc7f"
68
+ }
69
69
  }
package/src/client.ts CHANGED
@@ -8,7 +8,7 @@ import type {
8
8
  PublicSignKey,
9
9
  } from "@peerbit/crypto";
10
10
  import type { Indices } from "@peerbit/indexer-interface";
11
- import { type Keychain } from "@peerbit/keychain";
11
+ import { type IPeerbitKeychain } from "@peerbit/keychain";
12
12
  import { type PubSub } from "@peerbit/pubsub-interface";
13
13
  import type { Address } from "./address.js";
14
14
  import type {
@@ -27,7 +27,7 @@ export interface Client<T extends Manageable<ExtractArgs<T>>> {
27
27
  services: {
28
28
  pubsub: PubSub;
29
29
  blocks: Blocks;
30
- keychain: Keychain;
30
+ keychain: IPeerbitKeychain;
31
31
  };
32
32
  storage: AnyStore;
33
33
  indexer: Indices;