@helia/interface 1.2.0 → 1.2.2-45faaa7
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/dist/src/pins.d.ts +3 -2
- package/dist/src/pins.d.ts.map +1 -1
- package/package.json +3 -96
- package/src/pins.ts +3 -2
- package/dist/typedoc-urls.json +0 -22
package/dist/src/pins.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GetBlockProgressEvents } from './blocks';
|
|
1
2
|
import type { AbortOptions } from '@libp2p/interfaces';
|
|
2
3
|
import type { CID } from 'multiformats/cid';
|
|
3
4
|
import type { ProgressEvent, ProgressOptions } from 'progress-events';
|
|
@@ -7,8 +8,8 @@ export interface Pin {
|
|
|
7
8
|
depth: number;
|
|
8
9
|
metadata: Record<string, any>;
|
|
9
10
|
}
|
|
10
|
-
export type AddPinEvents = ProgressEvent<'helia:pin:add',
|
|
11
|
-
export interface AddOptions extends AbortOptions, ProgressOptions<AddPinEvents> {
|
|
11
|
+
export type AddPinEvents = ProgressEvent<'helia:pin:add', CID>;
|
|
12
|
+
export interface AddOptions extends AbortOptions, ProgressOptions<AddPinEvents | GetBlockProgressEvents> {
|
|
12
13
|
/**
|
|
13
14
|
* How deeply to pin the DAG, defaults to Infinity
|
|
14
15
|
*/
|
package/dist/src/pins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pins.d.ts","sourceRoot":"","sources":["../../src/pins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAErE,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;AAEzD,MAAM,WAAW,GAAG;IAClB,GAA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AE,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAErD;;;OAGG;IACH,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAEnD;;OAEG;IACH,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,KAAK,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;IAEjE;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CACpE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/interface",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2-45faaa7",
|
|
4
4
|
"description": "The Helia API",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/master/packages/interface#readme",
|
|
@@ -14,10 +14,6 @@
|
|
|
14
14
|
"keywords": [
|
|
15
15
|
"IPFS"
|
|
16
16
|
],
|
|
17
|
-
"engines": {
|
|
18
|
-
"node": ">=16.0.0",
|
|
19
|
-
"npm": ">=7.0.0"
|
|
20
|
-
},
|
|
21
17
|
"type": "module",
|
|
22
18
|
"types": "./dist/src/index.d.ts",
|
|
23
19
|
"typesVersions": {
|
|
@@ -62,97 +58,11 @@
|
|
|
62
58
|
"sourceType": "module"
|
|
63
59
|
}
|
|
64
60
|
},
|
|
65
|
-
"release": {
|
|
66
|
-
"branches": [
|
|
67
|
-
"main"
|
|
68
|
-
],
|
|
69
|
-
"plugins": [
|
|
70
|
-
[
|
|
71
|
-
"@semantic-release/commit-analyzer",
|
|
72
|
-
{
|
|
73
|
-
"preset": "conventionalcommits",
|
|
74
|
-
"releaseRules": [
|
|
75
|
-
{
|
|
76
|
-
"breaking": true,
|
|
77
|
-
"release": "major"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"revert": true,
|
|
81
|
-
"release": "patch"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "feat",
|
|
85
|
-
"release": "minor"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"type": "fix",
|
|
89
|
-
"release": "patch"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"type": "docs",
|
|
93
|
-
"release": "patch"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"type": "test",
|
|
97
|
-
"release": "patch"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"type": "deps",
|
|
101
|
-
"release": "patch"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"scope": "no-release",
|
|
105
|
-
"release": false
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
[
|
|
111
|
-
"@semantic-release/release-notes-generator",
|
|
112
|
-
{
|
|
113
|
-
"preset": "conventionalcommits",
|
|
114
|
-
"presetConfig": {
|
|
115
|
-
"types": [
|
|
116
|
-
{
|
|
117
|
-
"type": "feat",
|
|
118
|
-
"section": "Features"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"type": "fix",
|
|
122
|
-
"section": "Bug Fixes"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "chore",
|
|
126
|
-
"section": "Trivial Changes"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"type": "docs",
|
|
130
|
-
"section": "Documentation"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "deps",
|
|
134
|
-
"section": "Dependencies"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "test",
|
|
138
|
-
"section": "Tests"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"@semantic-release/changelog",
|
|
145
|
-
"@semantic-release/npm",
|
|
146
|
-
"@semantic-release/github",
|
|
147
|
-
"@semantic-release/git"
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
61
|
"scripts": {
|
|
151
62
|
"clean": "aegir clean",
|
|
152
63
|
"lint": "aegir lint",
|
|
153
64
|
"dep-check": "aegir dep-check",
|
|
154
|
-
"build": "aegir build"
|
|
155
|
-
"release": "aegir release"
|
|
65
|
+
"build": "aegir build"
|
|
156
66
|
},
|
|
157
67
|
"dependencies": {
|
|
158
68
|
"@libp2p/interface-libp2p": "^3.2.0",
|
|
@@ -165,9 +75,6 @@
|
|
|
165
75
|
"progress-events": "^1.0.0"
|
|
166
76
|
},
|
|
167
77
|
"devDependencies": {
|
|
168
|
-
"aegir": "^
|
|
169
|
-
},
|
|
170
|
-
"typedoc": {
|
|
171
|
-
"entryPoint": "./src/index.ts"
|
|
78
|
+
"aegir": "^40.0.8"
|
|
172
79
|
}
|
|
173
80
|
}
|
package/src/pins.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GetBlockProgressEvents } from './blocks'
|
|
1
2
|
import type { AbortOptions } from '@libp2p/interfaces'
|
|
2
3
|
import type { CID } from 'multiformats/cid'
|
|
3
4
|
import type { ProgressEvent, ProgressOptions } from 'progress-events'
|
|
@@ -11,9 +12,9 @@ export interface Pin {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type AddPinEvents =
|
|
14
|
-
ProgressEvent<'helia:pin:add',
|
|
15
|
+
ProgressEvent<'helia:pin:add', CID>
|
|
15
16
|
|
|
16
|
-
export interface AddOptions extends AbortOptions, ProgressOptions<AddPinEvents> {
|
|
17
|
+
export interface AddOptions extends AbortOptions, ProgressOptions<AddPinEvents | GetBlockProgressEvents> {
|
|
17
18
|
/**
|
|
18
19
|
* How deeply to pin the DAG, defaults to Infinity
|
|
19
20
|
*/
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AddOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.AddOptions.html",
|
|
3
|
-
"Blocks": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.Blocks.html",
|
|
4
|
-
"GetOfflineOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.GetOfflineOptions.html",
|
|
5
|
-
"IsPinnedOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.IsPinnedOptions.html",
|
|
6
|
-
"LsOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.LsOptions.html",
|
|
7
|
-
"Pin": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.Pin.html",
|
|
8
|
-
"Pins": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.Pins.html",
|
|
9
|
-
"RmOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.RmOptions.html",
|
|
10
|
-
"AddPinEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.AddPinEvents.html",
|
|
11
|
-
"DeleteBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.DeleteBlockProgressEvents.html",
|
|
12
|
-
"DeleteManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.DeleteManyBlocksProgressEvents.html",
|
|
13
|
-
"GetAllBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.GetAllBlocksProgressEvents.html",
|
|
14
|
-
"GetBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.GetBlockProgressEvents.html",
|
|
15
|
-
"GetManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.GetManyBlocksProgressEvents.html",
|
|
16
|
-
"HasBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.HasBlockProgressEvents.html",
|
|
17
|
-
"PutBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.PutBlockProgressEvents.html",
|
|
18
|
-
"PutManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.PutManyBlocksProgressEvents.html",
|
|
19
|
-
"GCOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.GCOptions.html",
|
|
20
|
-
"Helia": "https://ipfs.github.io/helia/interfaces/_helia_interface.Helia.html",
|
|
21
|
-
"GcEvents": "https://ipfs.github.io/helia/types/_helia_interface.GcEvents.html"
|
|
22
|
-
}
|