@joshski/dust 0.1.109 → 0.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/artifacts/facts.d.ts +2 -5
- package/dist/artifacts/ideas.d.ts +2 -15
- package/dist/artifacts/index.d.ts +2 -38
- package/dist/artifacts/principles.d.ts +2 -7
- package/dist/artifacts/repository-principle-hierarchy.d.ts +16 -0
- package/dist/artifacts/tasks.d.ts +2 -8
- package/dist/artifacts/types.d.ts +98 -0
- package/dist/artifacts/workflow-tasks.d.ts +2 -16
- package/dist/artifacts.js +40 -4
- package/dist/audits.js +163 -0
- package/dist/bucket/repository-loop.d.ts +1 -1
- package/dist/bucket/repository-types.d.ts +58 -0
- package/dist/bucket/repository.d.ts +2 -52
- package/dist/bucket/server-messages.d.ts +8 -2
- package/dist/dust.js +644 -75
- package/dist/patch.js +5 -4
- package/dist/validation.js +5 -4
- package/package.json +1 -1
package/dist/patch.js
CHANGED
|
@@ -167,7 +167,7 @@ function isErrorCode(error, code) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// lib/validation/index.ts
|
|
170
|
-
import { relative } from "node:path";
|
|
170
|
+
import { relative, resolve as resolve3 } from "node:path";
|
|
171
171
|
|
|
172
172
|
// lib/validation/overlay-filesystem.ts
|
|
173
173
|
function createOverlayFileSystem(base, patchFiles, deletedPaths = new Set) {
|
|
@@ -1003,11 +1003,12 @@ function parsePatchFiles(dustPath, patch) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
async function validatePatch(fileSystem, dustPath, patch, options = {}) {
|
|
1005
1005
|
const cwd = options.cwd ?? process.cwd();
|
|
1006
|
-
const
|
|
1006
|
+
const resolvedDustPath = resolve3(dustPath);
|
|
1007
|
+
const { absolutePatchFiles, deletedPaths } = parsePatchFiles(resolvedDustPath, patch);
|
|
1007
1008
|
const overlayFs = createOverlayFileSystem(fileSystem, absolutePatchFiles, deletedPaths);
|
|
1008
1009
|
const violations = [];
|
|
1009
|
-
violations.push(...validatePatchRootEntries(fileSystem,
|
|
1010
|
-
const { context, violations: parseViolations } = await parseArtifacts(overlayFs,
|
|
1010
|
+
violations.push(...validatePatchRootEntries(fileSystem, resolvedDustPath, patch));
|
|
1011
|
+
const { context, violations: parseViolations } = await parseArtifacts(overlayFs, resolvedDustPath);
|
|
1011
1012
|
violations.push(...parseViolations);
|
|
1012
1013
|
violations.push(...validateArtifacts(context));
|
|
1013
1014
|
return {
|
package/dist/validation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// lib/validation/index.ts
|
|
2
|
-
import { relative } from "node:path";
|
|
2
|
+
import { relative, resolve as resolve3 } from "node:path";
|
|
3
3
|
|
|
4
4
|
// lib/filesystem/error-codes.ts
|
|
5
5
|
function isErrnoException(error) {
|
|
@@ -1000,11 +1000,12 @@ function parsePatchFiles(dustPath, patch) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
async function validatePatch(fileSystem, dustPath, patch, options = {}) {
|
|
1002
1002
|
const cwd = options.cwd ?? process.cwd();
|
|
1003
|
-
const
|
|
1003
|
+
const resolvedDustPath = resolve3(dustPath);
|
|
1004
|
+
const { absolutePatchFiles, deletedPaths } = parsePatchFiles(resolvedDustPath, patch);
|
|
1004
1005
|
const overlayFs = createOverlayFileSystem(fileSystem, absolutePatchFiles, deletedPaths);
|
|
1005
1006
|
const violations = [];
|
|
1006
|
-
violations.push(...validatePatchRootEntries(fileSystem,
|
|
1007
|
-
const { context, violations: parseViolations } = await parseArtifacts(overlayFs,
|
|
1007
|
+
violations.push(...validatePatchRootEntries(fileSystem, resolvedDustPath, patch));
|
|
1008
|
+
const { context, violations: parseViolations } = await parseArtifacts(overlayFs, resolvedDustPath);
|
|
1008
1009
|
violations.push(...parseViolations);
|
|
1009
1010
|
violations.push(...validateArtifacts(context));
|
|
1010
1011
|
return {
|