obsidian-plugin-config 1.6.16 ā 1.6.18
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/bin/obsidian-inject.js
CHANGED
package/package.json
CHANGED
package/scripts/inject-core.ts
CHANGED
|
@@ -181,14 +181,14 @@ export async function showInjectionPlan(
|
|
|
181
181
|
console.log(` š Analyze centralized imports (manual commenting may be needed)`);
|
|
182
182
|
|
|
183
183
|
if (autoConfirm) {
|
|
184
|
-
console.log(`\nā
Auto-confirming
|
|
184
|
+
console.log(`\nā
Auto-confirming all file replacements...`);
|
|
185
185
|
rl.close();
|
|
186
186
|
return true;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
// No global confirmation needed - file-by-file confirmation will happen in diffAndPromptFiles
|
|
190
190
|
rl.close();
|
|
191
|
-
return
|
|
191
|
+
return true;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|
package/scripts/inject-path.ts
CHANGED
|
@@ -10,9 +10,7 @@ import {
|
|
|
10
10
|
readInjectionInfo,
|
|
11
11
|
showInjectionPlan
|
|
12
12
|
} from './inject-core.js';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
const rl = createReadlineInterface();
|
|
13
|
+
import { isValidPath } from './utils.js';
|
|
16
14
|
|
|
17
15
|
async function main(): Promise<void> {
|
|
18
16
|
try {
|
|
@@ -168,8 +166,6 @@ async function main(): Promise<void> {
|
|
|
168
166
|
`š„ Error: ${error instanceof Error ? error.message : String(error)}`
|
|
169
167
|
);
|
|
170
168
|
process.exit(1);
|
|
171
|
-
} finally {
|
|
172
|
-
rl.close();
|
|
173
169
|
}
|
|
174
170
|
}
|
|
175
171
|
|