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

30
server/node_modules/request-multipart/multipart.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
var uuid = require('uuid').v4
var generate = require('./lib/multipart')
module.exports = (multipart) => ({options, options: {headers}}) => {
var header = Object.keys(headers)
.find((name) => name.toLowerCase() === 'content-type')
var regexp = /^multipart\/([^\s;]+)(?:; boundary=([^\s;]+))?(.*)/
var content = Array.isArray(multipart) ? 'related' : 'form-data'
var boundary = uuid()
var rest = ''
if (headers[header]) {
var match = headers[header].match(regexp)
if (match) {
content = match[1]
boundary = match[2] || boundary
rest = match[3] || ''
}
}
headers['content-type'] = `multipart/${content}; boundary=${boundary}${rest}`
var body = generate(multipart, boundary)
return {options, body}
}