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

27
server/node_modules/purest/lib/endpoint.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
var extend = require('@simov/deep-extend')
var def = require('../config/methods')
module.exports = (ctor, req) => {
var endpoint = (() => {
var all = extend({}, ctor.defaults || {}, req)
var aliases = (ctor.methods || {}).endpoint || def.purest.endpoint
var alias = ['endpoint'].concat(aliases).find((key) => all[key] !== undefined)
return all[alias] || 'default'
})()
var options = (ctor.config[ctor.provider] || {})[endpoint] || {}
if (options.auth) {
options._auth = options.auth
}
options = extend({}, options, ctor.defaults || {}, req)
var methods = Object.assign({}, def.methods, def.http, def.url, def.purest, ctor.methods || {})
return {options, methods}
}