Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quidproquo-actionprocessor-node

Package Overview
Dependencies
Maintainers
0
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quidproquo-actionprocessor-node - npm Package Compare versions

Comparing version 0.0.219 to 0.0.220

4

lib/commonjs/actionProcessor/core/network/NetworkActionProcessor.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc