backfill-hasher
Advanced tools
Comparing version 3.0.1-alpha.0 to 3.0.3-alpha.0
@@ -5,2 +5,4 @@ "use strict"; | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const fsExtra = require("fs-extra"); | ||
const backfill_logger_1 = require("backfill-logger"); | ||
@@ -23,2 +25,10 @@ const resolveInternalDependencies_1 = require("./resolveInternalDependencies"); | ||
async function getPackageHash(packageRoot, workspaces, yarnLock) { | ||
const cacheFile = path.join(packageRoot, "node_modules", "backfill-hash.json"); | ||
try { | ||
const cachedValue = await fs.promises.readFile(cacheFile); | ||
const result = JSON.parse(cachedValue.toString()); | ||
return result; | ||
} | ||
catch { | ||
} | ||
const { name, dependencies, devDependencies } = require(path.join(packageRoot, "package.json")); | ||
@@ -46,5 +56,7 @@ const allDependencies = { | ||
}; | ||
await fsExtra.mkdirp(path.dirname(cacheFile)); | ||
await fs.promises.writeFile(cacheFile, JSON.stringify(packageHash)); | ||
return packageHash; | ||
} | ||
exports.getPackageHash = getPackageHash; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFzaE9mUGFja2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9oYXNoT2ZQYWNrYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaUNBQWlDO0FBQ2pDLDZCQUE2QjtBQUM3QixxREFBeUM7QUFFekMsK0VBQTRFO0FBQzVFLCtFQUE0RTtBQUM1RSwrQ0FBb0Q7QUFFcEQsdUNBQXdDO0FBV3hDLFNBQWdCLDhCQUE4QixDQUM1QyxnQkFBbUM7SUFFbkMsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFFOUQ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E2REMifQ== |
@@ -50,4 +50,4 @@ "use strict"; | ||
const internalPackagesHash = hashOfPackage_1.generateHashOfInternalPackages(done); | ||
const buildCommandHash = await helpers_1.hashStrings(this.buildCommandSignature); | ||
const combinedHash = await helpers_1.hashStrings([ | ||
const buildCommandHash = helpers_1.hashStrings(this.buildCommandSignature); | ||
const combinedHash = helpers_1.hashStrings([ | ||
internalPackagesHash, | ||
@@ -68,2 +68,2 @@ buildCommandHash | ||
exports.Hasher = Hasher; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxREFBeUM7QUFFekMsK0NBQW9EO0FBQ3BELG1EQUl5QjtBQUN6Qix1Q0FBd0Q7QUFDeEQseUNBQTJDO0FBQzNDLHFEQUkwQjtBQU8xQixTQUFTLE1BQU0sQ0FBQyxJQUF1QixFQUFFLFdBQW1CO0lBQzFELE9BQU8sT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxFQUFFLElBQUksRUFBRSxFQUFFLEVBQUUsQ0FBQyxJQUFJLEtBQUssV0FBVyxDQUFDLENBQUMsQ0FBQztBQUNoRSxDQUFDO0FBRUQsU0FBUyxTQUFTLENBQUMsS0FBZSxFQUFFLFdBQW1CO0lBQ3JELE9BQU8sS0FBSyxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDekMsQ0FBQztBQUVELFNBQWdCLFVBQVUsQ0FDeEIsZUFBeUIsRUFDekIsS0FBZSxFQUNmLElBQXVCLEVBQ3ZCLFVBQXlCO0lBRXpCLGVBQWUsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUU7UUFDN0IsTUFBTSxjQUFjLEdBQUcsa0NBQWlCLENBQUMsVUFBV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FDO0NBQ0Y7QUE1REQsd0JBNERDIn0= |
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "3.0.1-alpha.0", | ||
"version": "3.0.3-alpha.0", | ||
"main": "lib/index.js", | ||
@@ -21,4 +21,4 @@ "scripts": { | ||
"@yarnpkg/lockfile": "^1.1.0", | ||
"backfill-config": "^3.0.1-alpha.0", | ||
"backfill-logger": "^3.0.1-alpha.0", | ||
"backfill-config": "^3.0.3-alpha.0", | ||
"backfill-logger": "^3.0.3-alpha.0", | ||
"fast-glob": "^3.0.4", | ||
@@ -40,3 +40,3 @@ "find-up": "^4.1.0", | ||
}, | ||
"gitHead": "b67874e277f5f43c7cf4aa8e4e52565593e8025b" | ||
"gitHead": "0edd878be38a6f3af6e9fa07b84a8d1f1513760c" | ||
} |
@@ -10,2 +10,3 @@ import * as crypto from "crypto"; | ||
import { generateHashOfFiles } from "./hashOfFiles"; | ||
import { Dependencies } from "./resolveExternalDependencies"; | ||
@@ -43,3 +44,7 @@ import { hashStrings } from "./helpers"; | ||
): Promise<PackageHashInfo> { | ||
const cacheFile = path.join(packageRoot, "node_modules", "backfill-hash.json"); | ||
const cacheFile = path.join( | ||
packageRoot, | ||
"node_modules", | ||
"backfill-hash.json" | ||
); | ||
@@ -50,8 +55,4 @@ try { | ||
return result; | ||
} catch {} | ||
} | ||
catch { | ||
} | ||
const { name, dependencies, devDependencies } = require(path.join( | ||
@@ -58,0 +59,0 @@ packageRoot, |
Sorry, the diff of this file is not supported yet
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
256219
1472
8
+ Addedbackfill-config@3.0.3-alpha.0(transitive)
+ Addedbackfill-logger@3.0.3-alpha.0(transitive)
+ Addedbackfill-performance-logger@3.0.3-alpha.0(transitive)
- Removedbackfill-config@3.0.1-alpha.0(transitive)
- Removedbackfill-logger@3.0.1-alpha.0(transitive)
- Removedbackfill-performance-logger@3.0.1-alpha.0(transitive)