@libp2p/config 1.1.6-f1de46607 → 1.1.7

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 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
- ```ts
38
+ ```TypeScript
37
39
  import { loadOrCreateSelfKey } from '@libp2p/config'
38
40
  import { keychain } from '@libp2p/keychain'
39
41
  import { LevelDatastore } from 'datastore-level'
@@ -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
- * ```ts
15
+ * ```TypeScript
14
16
  * import { loadOrCreateSelfKey } from '@libp2p/config'
15
17
  * import { keychain } from '@libp2p/keychain'
16
18
  * import { LevelDatastore } from 'datastore-level'
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,YAAY,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA"}
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
- * ```ts
15
+ * ```TypeScript
14
16
  * import { loadOrCreateSelfKey } from '@libp2p/config'
15
17
  * import { keychain } from '@libp2p/keychain'
16
18
  * import { LevelDatastore } from 'datastore-level'
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,4 @@
1
+ {
2
+ "LoadOrCreateSelfKeyOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_config.LoadOrCreateSelfKeyOptions.html",
3
+ "loadOrCreateSelfKey": "https://libp2p.github.io/js-libp2p/functions/_libp2p_config.loadOrCreateSelfKey.html"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/config",
3
- "version": "1.1.6-f1de46607",
3
+ "version": "1.1.7",
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",
@@ -45,10 +45,10 @@
45
45
  "doc-check": "aegir doc-check"
46
46
  },
47
47
  "dependencies": {
48
- "@libp2p/crypto": "5.1.1-f1de46607",
49
- "@libp2p/interface": "2.9.0-f1de46607",
50
- "@libp2p/keychain": "5.2.1-f1de46607",
51
- "@libp2p/logger": "5.1.15-f1de46607",
48
+ "@libp2p/crypto": "^5.1.2",
49
+ "@libp2p/interface": "^2.10.0",
50
+ "@libp2p/keychain": "^5.2.2",
51
+ "@libp2p/logger": "^5.1.16",
52
52
  "interface-datastore": "^8.3.1"
53
53
  },
54
54
  "devDependencies": {
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
- * ```ts
15
+ * ```TypeScript
14
16
  * import { loadOrCreateSelfKey } from '@libp2p/config'
15
17
  * import { keychain } from '@libp2p/keychain'
16
18
  * import { LevelDatastore } from 'datastore-level'