quidproquo-actionprocessor-node
Advanced tools
Comparing version 0.0.219 to 0.0.220
@@ -29,8 +29,6 @@ "use strict"; | ||
const mimeType = headers['content-type'] || 'application/octet-stream'; | ||
const filename = ((_b = (_a = headers['content-disposition']) === null || _a === void 0 ? void 0 : _a.match(/filename="([^"]+)"/)) === null || _b === void 0 ? void 0 : _b[1]) || | ||
`file.${(0, mime_types_1.extension)(mimeType)}`; | ||
const filename = ((_b = (_a = headers['content-disposition']) === null || _a === void 0 ? void 0 : _a.match(/filename="([^"]+)"/)) === null || _b === void 0 ? void 0 : _b[1]) || `file.${(0, mime_types_1.extension)(mimeType)}`; | ||
return Object.assign(Object.assign({}, response), { data: { | ||
base64Data: Buffer.from(response.data).toString('base64'), | ||
mimetype: mimeType, | ||
// TODO: We could get a filename from Content-Disposition header | ||
filename, | ||
@@ -37,0 +35,0 @@ } }); |
@@ -14,4 +14,3 @@ import { actionResult, NetworkActionType, actionResultError, ErrorTypeEnum, } from 'quidproquo-core'; | ||
const mimeType = headers['content-type'] || 'application/octet-stream'; | ||
const filename = headers['content-disposition']?.match(/filename="([^"]+)"/)?.[1] || | ||
`file.${extension(mimeType)}`; | ||
const filename = headers['content-disposition']?.match(/filename="([^"]+)"/)?.[1] || `file.${extension(mimeType)}`; | ||
return { | ||
@@ -22,3 +21,2 @@ ...response, | ||
mimetype: mimeType, | ||
// TODO: We could get a filename from Content-Disposition header | ||
filename, | ||
@@ -25,0 +23,0 @@ }, |
{ | ||
"name": "quidproquo-actionprocessor-node", | ||
"version": "0.0.219", | ||
"version": "0.0.220", | ||
"description": "", | ||
@@ -35,3 +35,3 @@ "main": "./lib/commonjs/index.js", | ||
"mime-types": "^2.1.35", | ||
"quidproquo-core": "0.0.219", | ||
"quidproquo-core": "0.0.220", | ||
"uuid": "^9.0.0" | ||
@@ -42,5 +42,5 @@ }, | ||
"@types/uuid": "^9.0.0", | ||
"quidproquo-tsconfig": "0.0.219", | ||
"quidproquo-tsconfig": "0.0.220", | ||
"typescript": "^4.9.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57381
1057
+ Addedquidproquo-core@0.0.220(transitive)
- Removedquidproquo-core@0.0.219(transitive)
Updatedquidproquo-core@0.0.220