Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump fs-extra and @types/fs-extra #5781

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/archive/cli-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"commander": "10.0.0",
"dotenv": "16.0.3",
"fake-indexeddb": "^4.0.1",
"fs-extra": "11.1.0"
"fs-extra": "11.2.0"
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/rimraf": "4.0.5",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
],
"dependencies": {
"ansi-regex": "5.0.1",
"fs-extra": "11.1.0",
"fs-extra": "11.2.0",
"logdown": "3.3.1",
"platform": "1.3.6"
},
"devDependencies": {
"@swc/core": "^1.3.10",
"@swc/jest": "^0.2.23",
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/jest": "^29.2.0",
"@types/platform": "1.3.6",
"@types/rimraf": "4.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/copy-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"axios": "1.6.8",
"copy": "0.3.2",
"cosmiconfig": "9.0.0",
"fs-extra": "11.1.0",
"fs-extra": "11.2.0",
"jszip": "3.10.1",
"logdown": "3.3.1",
"rimraf": "5.0.7"
Expand All @@ -22,7 +22,7 @@
"@swc/jest": "^0.2.23",
"@types/axios": "^0.14.0",
"@types/copy": "0.3.5",
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/jest": "^29.2.0",
"@types/rimraf": "4.0.5",
"jest": "^29.2.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/copy-config/src/CopyConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export class CopyConfig {

// Info: "fs.copy" creates all sub-folders which are needed along the way:
// see https://github.com/jprichardson/node-fs-extra/blob/7.0.1/lib/copy/copy.js#L43
await fs.copy(source, destination, {filter, overwrite: true, recursive: true});
// by default, fs.copy() copies folders recursively
await fs.copy(source, destination, {filter, overwrite: true});

return [destination];
}
Expand Down
4 changes: 2 additions & 2 deletions packages/license-collector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"collect-licenses": "src/cli.js"
},
"dependencies": {
"fs-extra": "11.1.0",
"fs-extra": "11.2.0",
"logdown": "3.3.1",
"npm-license-crawler": "0.2.1",
"npm-registry-package-info": "1.0.5"
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/license-checker": "^25",
"@types/npm-registry-package-info": "1.0.4",
"@types/rimraf": "4.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/store-engine-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"@wireapp/store-engine": "5.x.x"
},
"dependencies": {
"fs-extra": "11.1.0"
"fs-extra": "11.2.0"
},
"devDependencies": {
"@swc/core": "^1.3.10",
"@swc/jest": "^0.2.23",
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/jest": "^29.2.0",
"@types/node": "^20.1.0",
"@types/rimraf": "4.0.5",
Expand Down
6 changes: 1 addition & 5 deletions packages/store-engine-fs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ export class FileEngine implements CRUDEngine {
}

const filePath = this.resolvePath(tableName, primaryKey);
let newEntity: EntityType | string = entity;

if (typeof entity === 'object') {
newEntity = JSON.stringify(entity);
}
const newEntity: string = typeof entity === 'object' ? JSON.stringify(entity) : entity.toString();

try {
await fs.writeFile(filePath, newEntity, {flag: 'wx'});
Expand Down
53 changes: 26 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3787,12 +3787,13 @@ __metadata:
languageName: node
linkType: hard

"@types/fs-extra@npm:9.0.13":
version: 9.0.13
resolution: "@types/fs-extra@npm:9.0.13"
"@types/fs-extra@npm:11.0.4":
version: 11.0.4
resolution: "@types/fs-extra@npm:11.0.4"
dependencies:
"@types/jsonfile": "*"
"@types/node": "*"
checksum: add79e212acd5ac76b97b9045834e03a7996aef60a814185e0459088fd290519a3c1620865d588fa36c4498bf614210d2a703af5cf80aa1dbc125db78f6edac3
checksum: 242cb84157631f057f76495c8220707541882c00a00195b603d937fb55e471afecebcb089bab50233ed3a59c69fd68bf65c1f69dd7fafe2347e139cc15b9b0e5
languageName: node
linkType: hard

Expand Down Expand Up @@ -3891,6 +3892,15 @@ __metadata:
languageName: node
linkType: hard

"@types/jsonfile@npm:*":
version: 6.1.4
resolution: "@types/jsonfile@npm:6.1.4"
dependencies:
"@types/node": "*"
checksum: 309fda20eb5f1cf68f2df28931afdf189c5e7e6bec64ac783ce737bb98908d57f6f58757ad5da9be37b815645a6f914e2d4f3ac66c574b8fe1ba6616284d0e97
languageName: node
linkType: hard

"@types/jsrsasign@npm:10.5.14":
version: 10.5.14
resolution: "@types/jsrsasign@npm:10.5.14"
Expand Down Expand Up @@ -4742,12 +4752,12 @@ __metadata:
dependencies:
"@swc/core": ^1.3.10
"@swc/jest": ^0.2.23
"@types/fs-extra": 9.0.13
"@types/fs-extra": 11.0.4
"@types/jest": ^29.2.0
"@types/platform": 1.3.6
"@types/rimraf": 4.0.5
ansi-regex: 5.0.1
fs-extra: 11.1.0
fs-extra: 11.2.0
jest: ^29.2.1
logdown: 3.3.1
platform: 1.3.6
Expand All @@ -4764,13 +4774,13 @@ __metadata:
"@swc/jest": ^0.2.23
"@types/axios": ^0.14.0
"@types/copy": 0.3.5
"@types/fs-extra": 9.0.13
"@types/fs-extra": 11.0.4
"@types/jest": ^29.2.0
"@types/rimraf": 4.0.5
axios: 1.6.8
copy: 0.3.2
cosmiconfig: 9.0.0
fs-extra: 11.1.0
fs-extra: 11.2.0
jest: ^29.2.1
jszip: 3.10.1
logdown: 3.3.1
Expand Down Expand Up @@ -4881,11 +4891,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "@wireapp/license-collector@workspace:packages/license-collector"
dependencies:
"@types/fs-extra": 9.0.13
"@types/fs-extra": 11.0.4
"@types/license-checker": ^25
"@types/npm-registry-package-info": 1.0.4
"@types/rimraf": 4.0.5
fs-extra: 11.1.0
fs-extra: 11.2.0
license-checker: ^25.0.1
logdown: 3.3.1
npm-license-crawler: 0.2.1
Expand Down Expand Up @@ -5058,12 +5068,12 @@ __metadata:
dependencies:
"@swc/core": ^1.3.10
"@swc/jest": ^0.2.23
"@types/fs-extra": 9.0.13
"@types/fs-extra": 11.0.4
"@types/jest": ^29.2.0
"@types/node": ^20.1.0
"@types/rimraf": 4.0.5
"@wireapp/store-engine": "workspace:^"
fs-extra: 11.1.0
fs-extra: 11.2.0
jest: ^29.2.1
rimraf: 5.0.7
ts-node: 10.9.2
Expand Down Expand Up @@ -9543,14 +9553,14 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:11.1.0":
version: 11.1.0
resolution: "fs-extra@npm:11.1.0"
"fs-extra@npm:11.2.0, fs-extra@npm:^11.2.0":
version: 11.2.0
resolution: "fs-extra@npm:11.2.0"
dependencies:
graceful-fs: ^4.2.0
jsonfile: ^6.0.1
universalify: ^2.0.0
checksum: 5ca476103fa1f5ff4a9b3c4f331548f8a3c1881edaae323a4415d3153b5dc11dc6a981c8d1dd93eec8367ceee27b53f8bd27eecbbf66ffcdd04927510c171e7f
checksum: b12e42fa40ba47104202f57b8480dd098aa931c2724565e5e70779ab87605665594e76ee5fb00545f772ab9ace167fe06d2ab009c416dc8c842c5ae6df7aa7e8
languageName: node
linkType: hard

Expand All @@ -9565,17 +9575,6 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^11.2.0":
version: 11.2.0
resolution: "fs-extra@npm:11.2.0"
dependencies:
graceful-fs: ^4.2.0
jsonfile: ^6.0.1
universalify: ^2.0.0
checksum: b12e42fa40ba47104202f57b8480dd098aa931c2724565e5e70779ab87605665594e76ee5fb00545f772ab9ace167fe06d2ab009c416dc8c842c5ae6df7aa7e8
languageName: node
linkType: hard

"fs-extra@npm:^9.0.0":
version: 9.1.0
resolution: "fs-extra@npm:9.1.0"
Expand Down
Loading