Add 'node:' prefix to import

This commit is contained in:
Cohee 2024-11-23 16:03:13 +02:00
parent 2e661c36e5
commit 049ae541aa

View File

@ -16,7 +16,7 @@ import {
} from '../../constants.js';
import { forwardFetchResponse, trimV1, getConfigValue } from '../../util.js';
import { setAdditionalHeaders } from '../../additional-headers.js';
import { createHash } from 'crypto';
import { createHash } from 'node:crypto';
export const router = express.Router();
@ -243,7 +243,7 @@ router.post('/props', jsonParser, async function (request, response) {
setAdditionalHeaders(request, args, baseUrl);
const apiType = request.body.api_type;
const propsUrl = baseUrl + "/props";
const propsUrl = baseUrl + '/props';
const propsReply = await fetch(propsUrl, args);
if (!propsReply.ok) {