fs-extra downgrade
gitea/docker-discover/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2021-11-22 17:30:54 +01:00
parent 79671150c6
commit 6ac8afb6cb
3 changed files with 17 additions and 17 deletions

View File

@ -282,7 +282,7 @@ async function updateProxy(firstRun) {
return bMask - aMask;
}
let mapDir = `${tmpDir}/maps`;
const mapDir = `${tmpDir}/maps`;
if (await fs.pathExists(mapDir))
await fs.remove(mapDir, {recursive: true});
await fs.mkdir(mapDir);
@ -302,7 +302,7 @@ async function updateProxy(firstRun) {
});
await fs.close(fd);
}
return;
await updateProxy(true);
console.log('Listening for events.')

28
package-lock.json generated
View File

@ -1,7 +1,8 @@
{
"name": "docker-discover",
"requires": true,
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"JSONStream": {
"version": "1.3.2",
@ -157,13 +158,13 @@
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
},
"fs-extra": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz",
"integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
"requires": {
"graceful-fs": "^4.2.0",
"jsonfile": "^6.0.1",
"universalify": "^2.0.0"
"jsonfile": "^4.0.0",
"universalify": "^0.1.0"
}
},
"graceful-fs": {
@ -207,12 +208,11 @@
}
},
"jsonfile": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
"requires": {
"graceful-fs": "^4.1.6",
"universalify": "^2.0.0"
"graceful-fs": "^4.1.6"
}
},
"jsonparse": {
@ -447,9 +447,9 @@
}
},
"universalify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
"integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ=="
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="
},
"util-deprecate": {
"version": "1.0.2",

View File

@ -9,7 +9,7 @@
},
"dependencies": {
"dockerode": "^3.0.2",
"fs-extra": "^10.0.0",
"fs-extra": "^8.1.0",
"handlebars": "^4.7.2",
"node-ssh": "^7.0.0",
"require-yaml": "0.0.1",