ipfs-unixfs-importer 9.0.9 → 9.0.10

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/dir.d.ts CHANGED
@@ -14,7 +14,7 @@ export type DirProps = {
14
14
  parentKey?: string | undefined;
15
15
  unixfs?: import("ipfs-unixfs").UnixFS | undefined;
16
16
  mode?: number | undefined;
17
- mtime?: import("ipfs-unixfs/src/types").Mtime | undefined;
17
+ mtime?: import("ipfs-unixfs/types/src/types").Mtime | undefined;
18
18
  };
19
19
  /**
20
20
  * @typedef {import('./types').ImporterOptions} ImporterOptions
@@ -51,7 +51,7 @@ declare class Dir {
51
51
  parentKey: string | undefined;
52
52
  unixfs: import("ipfs-unixfs").UnixFS | undefined;
53
53
  mode: number | undefined;
54
- mtime: import("ipfs-unixfs/src/types").Mtime | undefined;
54
+ mtime: import("ipfs-unixfs/types/src/types").Mtime | undefined;
55
55
  /** @type {CID | undefined} */
56
56
  cid: CID | undefined;
57
57
  /** @type {number | undefined} */
@@ -1 +1 @@
1
- {"version":3,"file":"dir.d.ts","sourceRoot":"","sources":["../../src/dir.js"],"names":[],"mappings":";8BACa,OAAO,SAAS,EAAE,eAAe;2BACjC,OAAO,SAAS,EAAE,YAAY;qCAC9B,OAAO,SAAS,EAAE,sBAAsB;yBACxC,OAAO,sBAAsB,EAAE,UAAU;kBACzC,OAAO,kBAAkB,EAAE,GAAG;;UAG7B,OAAO;SACP,OAAO;UACP,MAAM;WACN,OAAO;UACP,OAAO;;;;;;;AAZrB;;;;;;;;;;;;;;;;;;GAkBG;AACH;IACE;;;OAGG;IACH,mBAHW,QAAQ,WACR,eAAe,EAoBzB;IAjBC,2CAA4B;IAE5B,cAAsB;IACtB,aAAoB;IACpB,aAAsB;IACtB,eAAwB;IACxB,cAAsB;IACtB,wBAA0B;IAC1B,8BAAgC;IAChC,iDAA0B;IAC1B,yBAAsB;IACtB,yDAAwB;IAExB,8BAA8B;IAC9B,KADW,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AEG;IACH,mBAFa,cAAc;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,sBAAsB,GAAG,GAAG,CAAA;KAAC,CAAC,CAEjD;IAE9B;;;OAGG;IACH,kBAHW,UAAU,GACR,cAAc,YAAY,CAAC,CAEV;CAC/B"}
@@ -23,7 +23,7 @@
23
23
  export function importer(source: AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate, blockstore: Blockstore, options?: UserImporterOptions): AsyncGenerator<{
24
24
  cid: import("multiformats").CID;
25
25
  path: string | undefined;
26
- unixfs: import("ipfs-unixfs/src").UnixFS | undefined;
26
+ unixfs: import("ipfs-unixfs").UnixFS | undefined;
27
27
  size: number;
28
28
  }, void, unknown>;
29
29
  export type Blockstore = import('interface-blockstore').Blockstore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ipfs-unixfs-importer",
3
- "version": "9.0.9",
3
+ "version": "9.0.10",
4
4
  "description": "JavaScript implementation of the UnixFs importer used by IPFS",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs-importer#readme",
@@ -19,18 +19,6 @@
19
19
  "npm": ">=7.0.0"
20
20
  },
21
21
  "types": "types/src/index.d.ts",
22
- "typesVersions": {
23
- "*": {
24
- "*": [
25
- "types/*",
26
- "types/src/*"
27
- ],
28
- "types/*": [
29
- "types/*",
30
- "types/src/*"
31
- ]
32
- }
33
- },
34
22
  "files": [
35
23
  "*",
36
24
  "!**/*.tsbuildinfo",
@@ -145,10 +133,9 @@
145
133
  "test:firefox": "aegir test -t browser -- --browser firefox",
146
134
  "build": "aegir build && cp -R types dist",
147
135
  "preleaseOnly": "npx json -I -f dist/package.json -e this.types='\"src/index.d.ts\"'",
148
- "clean": "rimraf ./dist",
136
+ "clean": "rimraf ./dist ./types",
149
137
  "lint": "aegir ts -p check && aegir lint",
150
- "coverage": "nyc -s npm run test -t node && nyc report --reporter=html",
151
- "de-pcheck": "aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert -i interface-blockstore",
138
+ "dep-check": "aegir dep-check -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert -i interface-blockstore",
152
139
  "release": "semantic-release"
153
140
  },
154
141
  "dependencies": {
@@ -176,7 +163,6 @@
176
163
  "crypto-browserify": "^3.12.0",
177
164
  "events": "^3.3.0",
178
165
  "it-buffer-stream": "^2.0.0",
179
- "nyc": "^15.0.0",
180
166
  "readable-stream": "^3.6.0",
181
167
  "rimraf": "^3.0.2",
182
168
  "util": "^0.12.3",
@@ -14,7 +14,7 @@ export type DirProps = {
14
14
  parentKey?: string | undefined;
15
15
  unixfs?: import("ipfs-unixfs").UnixFS | undefined;
16
16
  mode?: number | undefined;
17
- mtime?: import("ipfs-unixfs/src/types").Mtime | undefined;
17
+ mtime?: import("ipfs-unixfs/types/src/types").Mtime | undefined;
18
18
  };
19
19
  /**
20
20
  * @typedef {import('./types').ImporterOptions} ImporterOptions
@@ -51,7 +51,7 @@ declare class Dir {
51
51
  parentKey: string | undefined;
52
52
  unixfs: import("ipfs-unixfs").UnixFS | undefined;
53
53
  mode: number | undefined;
54
- mtime: import("ipfs-unixfs/src/types").Mtime | undefined;
54
+ mtime: import("ipfs-unixfs/types/src/types").Mtime | undefined;
55
55
  /** @type {CID | undefined} */
56
56
  cid: CID | undefined;
57
57
  /** @type {number | undefined} */
@@ -1 +1 @@
1
- {"version":3,"file":"dir.d.ts","sourceRoot":"","sources":["../../src/dir.js"],"names":[],"mappings":";8BACa,OAAO,SAAS,EAAE,eAAe;2BACjC,OAAO,SAAS,EAAE,YAAY;qCAC9B,OAAO,SAAS,EAAE,sBAAsB;yBACxC,OAAO,sBAAsB,EAAE,UAAU;kBACzC,OAAO,kBAAkB,EAAE,GAAG;;UAG7B,OAAO;SACP,OAAO;UACP,MAAM;WACN,OAAO;UACP,OAAO;;;;;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;IACtB,+DAAwB;IAExB,8BAA8B;IAC9B,KADW,GAAG,GAAG,SAAS,CACN;IACpB,iCAAiC;IACjC,MADW,MAAM,GAAG,SAAS,CACR;IAGvB;;;OAGG;IACH,UAHW,MAAM,SACN,sBAAsB,GAAG,GAAG,iBAEZ;IAE3B;;;OAGG;IACH,UAHW,MAAM,GACJ,QAAQ,sBAAsB,GAAG,GAAG,GAAG,SAAS,CAAC,CAI7D;IAED;;OAEG;IACH,mBAFa,cAAc;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,sBAAsB,GAAG,GAAG,CAAA;KAAC,CAAC,CAEjD;IAE9B;;;OAGG;IACH,kBAHW,UAAU,GACR,cAAc,YAAY,CAAC,CAEV;CAC/B"}
@@ -23,7 +23,7 @@
23
23
  export function importer(source: AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate, blockstore: Blockstore, options?: UserImporterOptions): AsyncGenerator<{
24
24
  cid: import("multiformats").CID;
25
25
  path: string | undefined;
26
- unixfs: import("ipfs-unixfs/src").UnixFS | undefined;
26
+ unixfs: import("ipfs-unixfs").UnixFS | undefined;
27
27
  size: number;
28
28
  }, void, unknown>;
29
29
  export type Blockstore = import('interface-blockstore').Blockstore;