deepflow 0.1.112 → 0.1.113
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/hooks/ac-coverage.js +4 -4
- package/hooks/df-spec-lint.js +2 -2
- package/package.json +1 -1
package/hooks/ac-coverage.js
CHANGED
|
@@ -140,12 +140,12 @@ function resolveTestFiles(args) {
|
|
|
140
140
|
|
|
141
141
|
function run(args) {
|
|
142
142
|
if (!args.spec) {
|
|
143
|
-
|
|
144
|
-
process.exit(
|
|
143
|
+
// Called as a PostToolUse hook without explicit args — no-op
|
|
144
|
+
process.exit(0);
|
|
145
145
|
}
|
|
146
146
|
if (!args.status) {
|
|
147
|
-
|
|
148
|
-
process.exit(
|
|
147
|
+
// Called as a PostToolUse hook without explicit args — no-op
|
|
148
|
+
process.exit(0);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
// Read spec
|
package/hooks/df-spec-lint.js
CHANGED
|
@@ -349,8 +349,8 @@ function extractSection(content, sectionName) {
|
|
|
349
349
|
if (require.main === module) {
|
|
350
350
|
const filePath = process.argv[2];
|
|
351
351
|
if (!filePath) {
|
|
352
|
-
|
|
353
|
-
process.exit(
|
|
352
|
+
// Called as a PostToolUse hook without a spec file argument — no-op
|
|
353
|
+
process.exit(0);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
const content = fs.readFileSync(filePath, 'utf8');
|