Explicitly import Buffer. Specify jsdoc local extensions

This commit is contained in:
Cohee
2024-10-10 23:36:22 +03:00
parent d52b4fbbde
commit 1616e7e067
33 changed files with 93 additions and 77 deletions

View File

@@ -2,6 +2,7 @@
* When applied, this middleware will ensure the request contains the required header for basic authentication and only
* allow access to the endpoint after successful authentication.
*/
import { Buffer } from 'node:buffer';
import storage from 'node-persist';
import { getAllUserHandles, toKey, getPasswordHash } from '../users.js';
import { getConfig, getConfigValue } from '../util.js';

View File

@@ -1,3 +1,5 @@
import { Buffer } from 'node:buffer';
/**
* Decodes a file name from Latin1 to UTF-8.
* @param {string} str Input string