Add 'node:' prefix to import
| @@ -16,7 +16,7 @@ import { | |||
| 16 | } from '../../constants.js'; | 16 | } from '../../constants.js'; |
| 17 | import { forwardFetchResponse, trimV1, getConfigValue } from '../../util.js'; | 17 | import { forwardFetchResponse, trimV1, getConfigValue } from '../../util.js'; |
| 18 | import { setAdditionalHeaders } from '../../additional-headers.js'; | 18 | import { setAdditionalHeaders } from '../../additional-headers.js'; |
| 19 | import { createHash } from 'crypto'; | 19 | import { createHash } from 'node:crypto'; |
| 20 | 20 | ||
| 21 | export const router = express.Router(); | 21 | export const router = express.Router(); |
| 22 | 22 | ||
| @@ -243,7 +243,7 @@ router.post('/props', jsonParser, async function (request, response) { | |||
| 243 | setAdditionalHeaders(request, args, baseUrl); | 243 | setAdditionalHeaders(request, args, baseUrl); |
| 244 | 244 | ||
| 245 | const apiType = request.body.api_type; | 245 | const apiType = request.body.api_type; |
| 246 | const propsUrl = baseUrl + "/props"; | 246 | const propsUrl = baseUrl + '/props'; |
| 247 | const propsReply = await fetch(propsUrl, args); | 247 | const propsReply = await fetch(propsUrl, args); |
| 248 | 248 | ||
| 249 | if (!propsReply.ok) { | 249 | if (!propsReply.ok) { |