Socket
Socket
Sign inDemoInstall

soap

Package Overview
Dependencies
47
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.44.0 to 0.45.0

5

History.md

@@ -0,1 +1,6 @@

0.45.0 / 2022-06-15
===================
* [FIX] axios peer dependency version (#1188)
* [MAINTENANCE] Upgrade formidable to v2 (#1183)
0.44.0 / 2022-06-06

@@ -2,0 +7,0 @@ ===================

57

lib/utils.js

@@ -5,3 +5,3 @@ "use strict";

var crypto = require("crypto");
var multipart_parser_js_1 = require("formidable/lib/multipart_parser.js");
var formidable_1 = require("formidable");
function passwordDigest(nonce, created, password) {

@@ -74,29 +74,32 @@ // digest = base64 ( sha1 ( nonce + created + password ) )

var partIndex = 0;
var parser = new multipart_parser_js_1.MultipartParser();
var parser = new formidable_1.MultipartParser();
parser.initWithBoundary(boundary);
parser.onPartBegin = function () {
resp.parts[partIndex] = {
body: null,
headers: {}
};
data = Buffer.from('');
};
parser.onHeaderField = function (b, start, end) {
headerName = b.slice(start, end).toString();
};
parser.onHeaderValue = function (b, start, end) {
headerValue = b.slice(start, end).toString();
};
parser.onHeaderEnd = function () {
resp.parts[partIndex].headers[headerName.toLowerCase()] = headerValue;
};
parser.onHeadersEnd = function () { };
parser.onPartData = function (b, start, end) {
data = Buffer.concat([data, b.slice(start, end)]);
};
parser.onPartEnd = function () {
resp.parts[partIndex].body = data;
partIndex++;
};
parser.onEnd = function () { };
parser.on('data', function (_a) {
var name = _a.name, buffer = _a.buffer, start = _a.start, end = _a.end;
switch (name) {
case 'partBegin':
resp.parts[partIndex] = {
body: null,
headers: {}
};
data = Buffer.from('');
break;
case 'headerField':
headerName = buffer.slice(start, end).toString();
break;
case 'headerValue':
headerValue = buffer.slice(start, end).toString();
break;
case 'headerEnd':
resp.parts[partIndex].headers[headerName.toLowerCase()] = headerValue;
break;
case 'partData':
data = Buffer.concat([data, buffer.slice(start, end)]);
break;
case 'partEnd':
resp.parts[partIndex].body = data;
partIndex++;
break;
}
});
parser.write(payload);

@@ -103,0 +106,0 @@ return resp;

{
"name": "soap",
"version": "0.44.0",
"version": "0.45.0",
"description": "A minimal node SOAP client",

@@ -12,3 +12,3 @@ "engines": {

"debug": "^4.3.2",
"formidable": "^1.2.2",
"formidable": "^2.0.1",
"get-stream": "^6.0.1",

@@ -23,3 +23,3 @@ "lodash": "^4.17.21",

"peerDependencies": {
"axios": "^0.21.1"
"axios": ">=0.21.1"
},

@@ -55,2 +55,3 @@ "repository": {

"@types/express": "^4.17.13",
"@types/formidable": "^2.0.4",
"@types/lodash": "^4.14.172",

@@ -57,0 +58,0 @@ "@types/node": "^11.15.54",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc