@lage-run/hasher
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Fri, 18 Nov 2022 19:52:27 GMT", | ||
"date": "Wed, 15 Feb 2023 16:50:52 GMT", | ||
"tag": "@lage-run/hasher_v0.1.3", | ||
"version": "0.1.3", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "renovate@whitesourcesoftware.com", | ||
"package": "@lage-run/hasher", | ||
"commit": "b8e0ead727b1e7f7065f853e0a1ae677f4455a5b", | ||
"comment": "Update dependency workspace-tools to v0.30.0" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 18 Nov 2022 19:52:38 GMT", | ||
"tag": "@lage-run/hasher_v0.1.2", | ||
@@ -8,0 +23,0 @@ "version": "0.1.2", |
# Change Log - @lage-run/hasher | ||
This log was last generated on Fri, 18 Nov 2022 19:52:27 GMT and should not be manually modified. | ||
This log was last generated on Wed, 15 Feb 2023 16:50:52 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.1.3 | ||
Wed, 15 Feb 2023 16:50:52 GMT | ||
### Patches | ||
- Update dependency workspace-tools to v0.30.0 (renovate@whitesourcesoftware.com) | ||
## 0.1.2 | ||
Fri, 18 Nov 2022 19:52:27 GMT | ||
Fri, 18 Nov 2022 19:52:38 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -29,9 +29,9 @@ "use strict"; | ||
for (const [entry, value] of Object.entries(repoHashes)){ | ||
const pathParts1 = entry.split(/[\\/]/); | ||
const pathParts = entry.split(/[\\/]/); | ||
let node = pathTree; | ||
const packagePathParts = []; | ||
for (const part1 of pathParts1){ | ||
if (node[part1]) { | ||
node = node[part1]; | ||
packagePathParts.push(part1); | ||
for (const part of pathParts){ | ||
if (node[part]) { | ||
node = node[part]; | ||
packagePathParts.push(part); | ||
} else { | ||
@@ -38,0 +38,0 @@ break; |
@@ -243,6 +243,6 @@ "use strict"; | ||
const currentlyChangedFileHashes = getGitHashForFiles(filesToHash, packagePath, gitPath); | ||
for (const [filename1, hash] of currentlyChangedFileHashes){ | ||
result.set(filename1, hash); | ||
for (const [filename, hash] of currentlyChangedFileHashes){ | ||
result.set(filename, hash); | ||
} | ||
return result; | ||
} |
@@ -173,4 +173,4 @@ "use strict"; | ||
const hash = hashes[i]; | ||
const filePath1 = filesToHash[i]; | ||
state.set(filePath1, hash); | ||
const filePath = filesToHash[i]; | ||
state.set(filePath, hash); | ||
} | ||
@@ -177,0 +177,0 @@ } |
@@ -65,8 +65,8 @@ "use strict"; | ||
files.sort((a, b)=>a.localeCompare(b)); | ||
const hashes1 = []; | ||
const hashes = []; | ||
for (const file of files){ | ||
hashes1.push(file, repoHashes[file]); | ||
hashes.push(file, repoHashes[file]); | ||
} | ||
return (0, _helpersJs.hashStrings)(hashes1); | ||
return (0, _helpersJs.hashStrings)(hashes); | ||
} | ||
} |
import type { RepoInfo } from "./repoInfo.js"; | ||
export declare type PackageHashInfo = { | ||
export type PackageHashInfo = { | ||
name: string; | ||
@@ -4,0 +4,0 @@ filesHash: string; |
@@ -56,7 +56,7 @@ "use strict"; | ||
while(queue.length > 0){ | ||
const packageRoot1 = queue.shift(); | ||
if (!packageRoot1) { | ||
const packageRoot = queue.shift(); | ||
if (!packageRoot) { | ||
continue; | ||
} | ||
const packageHash = await (0, _hashOfPackageJs.getPackageHash)(packageRoot1, this.repoInfo); | ||
const packageHash = await (0, _hashOfPackageJs.getPackageHash)(packageRoot, this.repoInfo); | ||
addToQueue(packageHash.internalDependencies, queue, done, workspaceInfo); | ||
@@ -63,0 +63,0 @@ done.push(packageHash); |
import type { ParsedLock, WorkspaceInfo } from "workspace-tools"; | ||
export declare type Dependencies = { | ||
export type Dependencies = { | ||
[key in string]: string; | ||
}; | ||
export declare type ExternalDependenciesQueue = { | ||
export type ExternalDependenciesQueue = { | ||
name: string; | ||
@@ -7,0 +7,0 @@ versionRange: string; |
import type { WorkspaceInfo } from "workspace-tools"; | ||
export declare type Dependencies = { | ||
export type Dependencies = { | ||
[key in string]: string; | ||
@@ -4,0 +4,0 @@ }; |
{ | ||
"name": "@lage-run/hasher", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Hasher for Lage Targets", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"execa": "5.1.1", | ||
"workspace-tools": "0.29.1", | ||
"workspace-tools": "0.30.0", | ||
"find-up": "^5.0.0" | ||
@@ -22,0 +22,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110677
2525
+ Addedworkspace-tools@0.30.0(transitive)
- Removedworkspace-tools@0.29.1(transitive)
Updatedworkspace-tools@0.30.0