@helia/unixfs 3.0.2-9ac5909 → 3.0.2-d1c497b
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MtimeLike } from 'ipfs-unixfs';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ImportCandidateStream } from 'ipfs-unixfs-importer';
|
|
3
3
|
export interface GlobSourceOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Include .dot files in matched paths
|
|
@@ -35,5 +35,5 @@ export interface GlobSourceResult {
|
|
|
35
35
|
/**
|
|
36
36
|
* Create an async iterator that yields paths that match requested glob pattern
|
|
37
37
|
*/
|
|
38
|
-
export declare function globSource(cwd: string, pattern: string, options?: GlobSourceOptions):
|
|
38
|
+
export declare function globSource(cwd: string, pattern: string, options?: GlobSourceOptions): ImportCandidateStream;
|
|
39
39
|
//# sourceMappingURL=glob-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob-source.d.ts","sourceRoot":"","sources":["../../../src/utils/glob-source.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"glob-source.d.ts","sourceRoot":"","sources":["../../../src/utils/glob-source.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAEjE,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAA;IAC9C,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAA;CAC7B;AAED;;GAEG;AACH,wBAAwB,UAAU,CAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,GAAG,qBAAqB,CAuCxH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/unixfs",
|
|
3
|
-
"version": "3.0.2-
|
|
3
|
+
"version": "3.0.2-d1c497b",
|
|
4
4
|
"description": "A Helia-compatible wrapper for UnixFS",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/unixfs#readme",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"release": "aegir release"
|
|
160
160
|
},
|
|
161
161
|
"dependencies": {
|
|
162
|
-
"@helia/interface": "4.1.0-
|
|
162
|
+
"@helia/interface": "4.1.0-d1c497b",
|
|
163
163
|
"@ipld/dag-pb": "^4.1.0",
|
|
164
164
|
"@libp2p/interface": "^1.1.4",
|
|
165
165
|
"@libp2p/logger": "^4.0.7",
|
package/src/utils/glob-source.ts
CHANGED
|
@@ -5,7 +5,7 @@ import glob from 'it-glob'
|
|
|
5
5
|
import { InvalidParametersError } from '../errors.js'
|
|
6
6
|
import { toMtime } from './to-mtime.js'
|
|
7
7
|
import type { MtimeLike } from 'ipfs-unixfs'
|
|
8
|
-
import type {
|
|
8
|
+
import type { ImportCandidateStream } from 'ipfs-unixfs-importer'
|
|
9
9
|
|
|
10
10
|
export interface GlobSourceOptions {
|
|
11
11
|
/**
|
|
@@ -49,7 +49,7 @@ export interface GlobSourceResult {
|
|
|
49
49
|
/**
|
|
50
50
|
* Create an async iterator that yields paths that match requested glob pattern
|
|
51
51
|
*/
|
|
52
|
-
export async function * globSource (cwd: string, pattern: string, options: GlobSourceOptions = {}):
|
|
52
|
+
export async function * globSource (cwd: string, pattern: string, options: GlobSourceOptions = {}): ImportCandidateStream {
|
|
53
53
|
if (typeof pattern !== 'string') {
|
|
54
54
|
throw new InvalidParametersError('Pattern must be a string')
|
|
55
55
|
}
|