ipfs-utils
Advanced tools
Comparing version 6.0.7 to 6.0.8
@@ -0,1 +1,10 @@ | ||
## [6.0.8](https://github.com/ipfs/js-ipfs-utils/compare/v6.0.7...v6.0.8) (2021-04-30) | ||
### Bug Fixes | ||
* exclude glob-source.js in browser build ([#121](https://github.com/ipfs/js-ipfs-utils/issues/121)) ([c4071d9](https://github.com/ipfs/js-ipfs-utils/commit/c4071d902d65c7c76e934f43e1f80a209113eac5)) | ||
## [6.0.7](https://github.com/ipfs/js-ipfs-utils/compare/v6.0.6...v6.0.7) (2021-04-14) | ||
@@ -2,0 +11,0 @@ |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
declare function _exports(paths: Iterable<string> | AsyncIterable<string> | string, options?: { | ||
@@ -9,3 +10,3 @@ recursive?: boolean | undefined; | ||
mode?: number | undefined; | ||
mtime?: import("ipfs-unixfs").MtimeLike | undefined; | ||
mtime?: import("ipfs-unixfs/dist/src/types").MtimeLike | undefined; | ||
} | undefined): AsyncGenerator<{ | ||
@@ -19,6 +20,6 @@ path: string; | ||
mode: number | undefined; | ||
mtime: import("ipfs-unixfs").MtimeLike | undefined; | ||
mtime: import("ipfs-unixfs/dist/src/types").MtimeLike | undefined; | ||
}, void, unknown>; | ||
export = _exports; | ||
import fs = require("fs-extra"); | ||
import fs = require("fs"); | ||
//# sourceMappingURL=glob-source.d.ts.map |
{ | ||
"name": "ipfs-utils", | ||
"version": "6.0.7", | ||
"version": "6.0.8", | ||
"description": "Package to aggregate shared logic and dependencies for the IPFS ecosystem", | ||
@@ -18,6 +18,6 @@ "main": "src/index.js", | ||
"./src/path-join.js": "./src/path-join.browser.js", | ||
"./src/files/glob-source": false, | ||
"./test/files/glob-source.spec.js": false, | ||
"electron-fetch": false, | ||
"fs-extra": false, | ||
"graceful-fs": false | ||
"fs": false | ||
}, | ||
@@ -53,3 +53,2 @@ "types": "dist/src/index.d.ts", | ||
"err-code": "^3.0.1", | ||
"fs-extra": "^9.0.1", | ||
"is-electron": "^2.2.0", | ||
@@ -67,4 +66,2 @@ "iso-url": "^1.0.0", | ||
"devDependencies": { | ||
"@types/err-code": "^2.0.0", | ||
"@types/fs-extra": "^9.0.5", | ||
"aegir": "^33.1.0", | ||
@@ -89,3 +86,3 @@ "delay": "^5.0.0", | ||
"Hugo Dias <hugomrdias@gmail.com>", | ||
"Alex Potsides <alex@achingbrain.net>", | ||
"achingbrain <alex@achingbrain.net>", | ||
"Alan Shaw <alan.shaw@protocol.ai>", | ||
@@ -96,4 +93,5 @@ "Irakli Gozalishvili <contact@gozala.io>", | ||
"Marcin Rataj <lidel@lidel.org>", | ||
"Roderik van der Veer <roderik@settlemint.com>" | ||
"Roderik van der Veer <roderik@settlemint.com>", | ||
"Stepan Yurtsiv <yurtsiv.stepan@gmail.com>" | ||
] | ||
} |
'use strict' | ||
const fs = require('fs-extra') | ||
const fsp = require('fs').promises | ||
const fs = require('fs') | ||
const glob = require('it-glob') | ||
@@ -50,3 +51,3 @@ const Path = require('path') | ||
const absolutePath = Path.resolve(process.cwd(), path) | ||
const stat = await fs.stat(absolutePath) | ||
const stat = await fsp.stat(absolutePath) | ||
const prefix = Path.dirname(absolutePath) | ||
@@ -121,3 +122,3 @@ | ||
for await (const p of glob(path, '**/*', globOptions)) { | ||
const stat = await fs.stat(p) | ||
const stat = await fsp.stat(p) | ||
@@ -124,0 +125,0 @@ if (preserveMode || preserveMtime) { |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
66247
15
10
1328
6
- Removedfs-extra@^9.0.1
- Removedat-least-node@1.0.0(transitive)
- Removedfs-extra@9.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removeduniversalify@2.0.1(transitive)