@helia/json 3.0.6-9de08ef → 3.0.6-bc64f47
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 +9 -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 +3 -2
- package/src/index.ts +9 -1
package/README.md
CHANGED
|
@@ -41,8 +41,10 @@ import { createHelia } from 'helia'
|
|
|
41
41
|
import { json } from '@helia/json'
|
|
42
42
|
import { CID } from 'multiformats/cid'
|
|
43
43
|
|
|
44
|
+
const helia = await createHelia()
|
|
44
45
|
const j = json(helia)
|
|
45
|
-
|
|
46
|
+
|
|
47
|
+
const cid = await j.add({
|
|
46
48
|
hello: 'world'
|
|
47
49
|
})
|
|
48
50
|
const obj = await j.get(cid)
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
* import { json } from '@helia/json'
|
|
13
13
|
* import { CID } from 'multiformats/cid'
|
|
14
14
|
*
|
|
15
|
+
* const helia = await createHelia()
|
|
15
16
|
* const j = json(helia)
|
|
16
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* const cid = await j.add({
|
|
17
19
|
* hello: 'world'
|
|
18
20
|
* })
|
|
19
21
|
* const obj = await j.get(cid)
|
|
@@ -50,9 +52,12 @@ export interface JSON {
|
|
|
50
52
|
* @example
|
|
51
53
|
*
|
|
52
54
|
* ```typescript
|
|
55
|
+
* import { createHelia } from 'helia'
|
|
53
56
|
* import { json } from '@helia/json'
|
|
54
57
|
*
|
|
58
|
+
* const helia = await createHelia()
|
|
55
59
|
* const j = json(helia)
|
|
60
|
+
*
|
|
56
61
|
* const cid = await str.add({ hello: 'world' })
|
|
57
62
|
*
|
|
58
63
|
* console.info(cid)
|
|
@@ -67,10 +72,13 @@ export interface JSON {
|
|
|
67
72
|
* @example
|
|
68
73
|
*
|
|
69
74
|
* ```typescript
|
|
75
|
+
* import { createHelia } from 'helia'
|
|
70
76
|
* import { json } from '@helia/json'
|
|
71
77
|
* import { CID } from 'multiformats/cid'
|
|
72
78
|
*
|
|
79
|
+
* const helia = await createHelia()
|
|
73
80
|
* const j = json(helia)
|
|
81
|
+
*
|
|
74
82
|
* const cid = CID.parse('bagaaierasords4njcts6vs7qvdjfcvgnume4hqohf65zsfguprqphs3icwea')
|
|
75
83
|
* const obj = await j.get(cid)
|
|
76
84
|
*
|
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;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAGtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAC7F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY,EAAE,eAAe,CAAC,sBAAsB,CAAC;IACvF,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY,EAAE,eAAe,CAAC,sBAAsB,CAAC;IACvF,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAE9D;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CAC5D;AA0BD;;GAEG;AACH,wBAAgB,IAAI,CAAE,KAAK,EAAE;IAAE,UAAU,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,CAE7D"}
|
package/dist/src/index.js
CHANGED
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
* import { json } from '@helia/json'
|
|
13
13
|
* import { CID } from 'multiformats/cid'
|
|
14
14
|
*
|
|
15
|
+
* const helia = await createHelia()
|
|
15
16
|
* const j = json(helia)
|
|
16
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* const cid = await j.add({
|
|
17
19
|
* hello: 'world'
|
|
18
20
|
* })
|
|
19
21
|
* const obj = await j.get(cid)
|
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;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAsEjD,MAAM,WAAW;IACE,UAAU,CAAgB;IAE3C,YAAa,UAA0B;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC9B,CAAC;IAED,KAAK,CAAC,GAAG,CAAE,GAAQ,EAAE,UAA+B,EAAE;QACpD,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QACjC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QACzD,MAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QAE9C,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,CAAA;QAEvD,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,KAAK,CAAC,GAAG,CAAM,GAAQ,EAAE,UAA+B,EAAE;QACxD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QAE9D,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAC9B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,IAAI,CAAE,KAAiC;IACrD,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,CAAA;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/json",
|
|
3
|
-
"version": "3.0.6-
|
|
3
|
+
"version": "3.0.6-bc64f47",
|
|
4
4
|
"description": "Add/get IPLD blocks containing json with your Helia node",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/json#readme",
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
"clean": "aegir clean",
|
|
129
129
|
"lint": "aegir lint",
|
|
130
130
|
"dep-check": "aegir dep-check",
|
|
131
|
+
"doc-check": "aegir doc-check",
|
|
131
132
|
"build": "aegir build",
|
|
132
133
|
"test": "aegir test",
|
|
133
134
|
"test:chrome": "aegir test -t browser --cov",
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"release": "aegir release"
|
|
140
141
|
},
|
|
141
142
|
"dependencies": {
|
|
142
|
-
"@helia/interface": "4.3.1-
|
|
143
|
+
"@helia/interface": "4.3.1-bc64f47",
|
|
143
144
|
"@libp2p/interface": "^2.0.0",
|
|
144
145
|
"interface-blockstore": "^5.2.10",
|
|
145
146
|
"multiformats": "^13.1.0",
|
package/src/index.ts
CHANGED
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
* import { json } from '@helia/json'
|
|
13
13
|
* import { CID } from 'multiformats/cid'
|
|
14
14
|
*
|
|
15
|
+
* const helia = await createHelia()
|
|
15
16
|
* const j = json(helia)
|
|
16
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* const cid = await j.add({
|
|
17
19
|
* hello: 'world'
|
|
18
20
|
* })
|
|
19
21
|
* const obj = await j.get(cid)
|
|
@@ -57,9 +59,12 @@ export interface JSON {
|
|
|
57
59
|
* @example
|
|
58
60
|
*
|
|
59
61
|
* ```typescript
|
|
62
|
+
* import { createHelia } from 'helia'
|
|
60
63
|
* import { json } from '@helia/json'
|
|
61
64
|
*
|
|
65
|
+
* const helia = await createHelia()
|
|
62
66
|
* const j = json(helia)
|
|
67
|
+
*
|
|
63
68
|
* const cid = await str.add({ hello: 'world' })
|
|
64
69
|
*
|
|
65
70
|
* console.info(cid)
|
|
@@ -75,10 +80,13 @@ export interface JSON {
|
|
|
75
80
|
* @example
|
|
76
81
|
*
|
|
77
82
|
* ```typescript
|
|
83
|
+
* import { createHelia } from 'helia'
|
|
78
84
|
* import { json } from '@helia/json'
|
|
79
85
|
* import { CID } from 'multiformats/cid'
|
|
80
86
|
*
|
|
87
|
+
* const helia = await createHelia()
|
|
81
88
|
* const j = json(helia)
|
|
89
|
+
*
|
|
82
90
|
* const cid = CID.parse('bagaaierasords4njcts6vs7qvdjfcvgnume4hqohf65zsfguprqphs3icwea')
|
|
83
91
|
* const obj = await j.get(cid)
|
|
84
92
|
*
|