chore(docs): lint
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,9 @@ const skip = ['node_modules', 'dist', 'turbo']
|
||||
|
||||
const getAllFiles = function (dirPath: string, needle?: string, arrayOfFiles: ChangelogFile[] = [], pkgName?: string) {
|
||||
readdirSync(dirPath).forEach((file) => {
|
||||
if (skip.includes(file)) return
|
||||
if (skip.includes(file)) {
|
||||
return
|
||||
}
|
||||
|
||||
if (statSync(`${dirPath}/${file}`).isDirectory()) {
|
||||
getAllFiles(`${dirPath}/${file}`, needle, arrayOfFiles, file)
|
||||
|
||||
@@ -31,13 +31,14 @@ function sendToAnalytics(metric, options) {
|
||||
})
|
||||
if (navigator.sendBeacon) {
|
||||
navigator.sendBeacon(vitalsUrl, blob)
|
||||
} else
|
||||
} else {
|
||||
fetch(vitalsUrl, {
|
||||
body: blob,
|
||||
method: 'POST',
|
||||
credentials: 'omit',
|
||||
keepalive: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function webVitals(options) {
|
||||
|
||||
Reference in New Issue
Block a user