@libp2p/config 1.1.6 → 1.1.7-aa25d38ab
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/README.md +3 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +8 -14
- package/src/index.ts +3 -1
- package/dist/typedoc-urls.json +0 -4
package/README.md
CHANGED
|
@@ -24,6 +24,8 @@ repo and examine the changes made.
|
|
|
24
24
|
|
|
25
25
|
-->
|
|
26
26
|
|
|
27
|
+
Utilities to make working with libp2p configuration simpler.
|
|
28
|
+
|
|
27
29
|
## Example - Load or create the "self" private key in a datastore
|
|
28
30
|
|
|
29
31
|
Most nodes will want to persist the same private key between restarts so this
|
|
@@ -33,7 +35,7 @@ will create a new one and save it in the keystore.
|
|
|
33
35
|
The options you pass to this function should be the same as those passed to
|
|
34
36
|
the `@libp2p/keychain` service you configure your node with.
|
|
35
37
|
|
|
36
|
-
```
|
|
38
|
+
```TypeScript
|
|
37
39
|
import { loadOrCreateSelfKey } from '@libp2p/config'
|
|
38
40
|
import { keychain } from '@libp2p/keychain'
|
|
39
41
|
import { LevelDatastore } from 'datastore-level'
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
+
* Utilities to make working with libp2p configuration simpler.
|
|
5
|
+
*
|
|
4
6
|
* @example Load or create the "self" private key in a datastore
|
|
5
7
|
*
|
|
6
8
|
* Most nodes will want to persist the same private key between restarts so this
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
* The options you pass to this function should be the same as those passed to
|
|
11
13
|
* the `@libp2p/keychain` service you configure your node with.
|
|
12
14
|
*
|
|
13
|
-
* ```
|
|
15
|
+
* ```TypeScript
|
|
14
16
|
* import { loadOrCreateSelfKey } from '@libp2p/config'
|
|
15
17
|
* import { keychain } from '@libp2p/keychain'
|
|
16
18
|
* import { LevelDatastore } from 'datastore-level'
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,YAAY,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
+
* Utilities to make working with libp2p configuration simpler.
|
|
5
|
+
*
|
|
4
6
|
* @example Load or create the "self" private key in a datastore
|
|
5
7
|
*
|
|
6
8
|
* Most nodes will want to persist the same private key between restarts so this
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
* The options you pass to this function should be the same as those passed to
|
|
11
13
|
* the `@libp2p/keychain` service you configure your node with.
|
|
12
14
|
*
|
|
13
|
-
* ```
|
|
15
|
+
* ```TypeScript
|
|
14
16
|
* import { loadOrCreateSelfKey } from '@libp2p/config'
|
|
15
17
|
* import { keychain } from '@libp2p/keychain'
|
|
16
18
|
* import { LevelDatastore } from 'datastore-level'
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7-aa25d38ab",
|
|
4
4
|
"description": "Helper functions to make dealing with libp2p config easier",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/config#readme",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"url": "https://github.com/libp2p/js-libp2p/issues"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
15
|
+
"access": "public",
|
|
16
|
+
"provenance": true
|
|
16
17
|
},
|
|
17
18
|
"type": "module",
|
|
18
19
|
"types": "./dist/src/index.d.ts",
|
|
@@ -28,13 +29,6 @@
|
|
|
28
29
|
"import": "./dist/src/index.js"
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
|
-
"eslintConfig": {
|
|
32
|
-
"extends": "ipfs",
|
|
33
|
-
"parserOptions": {
|
|
34
|
-
"project": true,
|
|
35
|
-
"sourceType": "module"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
32
|
"scripts": {
|
|
39
33
|
"build": "aegir build --bundle false",
|
|
40
34
|
"test": "aegir test -t node",
|
|
@@ -45,14 +39,14 @@
|
|
|
45
39
|
"doc-check": "aegir doc-check"
|
|
46
40
|
},
|
|
47
41
|
"dependencies": {
|
|
48
|
-
"@libp2p/crypto": "
|
|
49
|
-
"@libp2p/interface": "
|
|
50
|
-
"@libp2p/keychain": "
|
|
51
|
-
"@libp2p/logger": "
|
|
42
|
+
"@libp2p/crypto": "5.1.2-aa25d38ab",
|
|
43
|
+
"@libp2p/interface": "2.10.0-aa25d38ab",
|
|
44
|
+
"@libp2p/keychain": "5.2.2-aa25d38ab",
|
|
45
|
+
"@libp2p/logger": "5.1.16-aa25d38ab",
|
|
52
46
|
"interface-datastore": "^8.3.1"
|
|
53
47
|
},
|
|
54
48
|
"devDependencies": {
|
|
55
|
-
"aegir": "^
|
|
49
|
+
"aegir": "^47.0.6",
|
|
56
50
|
"datastore-core": "^10.0.2"
|
|
57
51
|
},
|
|
58
52
|
"sideEffects": false
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
+
* Utilities to make working with libp2p configuration simpler.
|
|
5
|
+
*
|
|
4
6
|
* @example Load or create the "self" private key in a datastore
|
|
5
7
|
*
|
|
6
8
|
* Most nodes will want to persist the same private key between restarts so this
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
* The options you pass to this function should be the same as those passed to
|
|
11
13
|
* the `@libp2p/keychain` service you configure your node with.
|
|
12
14
|
*
|
|
13
|
-
* ```
|
|
15
|
+
* ```TypeScript
|
|
14
16
|
* import { loadOrCreateSelfKey } from '@libp2p/config'
|
|
15
17
|
* import { keychain } from '@libp2p/keychain'
|
|
16
18
|
* import { LevelDatastore } from 'datastore-level'
|
package/dist/typedoc-urls.json
DELETED