node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

26
server/node_modules/purest/lib/url.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var def = require('../config/methods')
module.exports = (options) => {
if (options.url) {
return options
}
var method = Object.keys(options)
.find((key) => Object.keys(def.methods).includes(key))
if (/^https?/.test(options[method])) {
options.url = options[method]
return options
}
options.url = `${options.origin}/${options.path}`
.replace('{path}', options[method] || '')
.replace('{subdomain}', options.subdomain || '')
.replace('{version}', options.version || '')
.replace('{type}', options.type || '')
return options
}