Socket
Socket
Sign inDemoInstall

soap

Package Overview
Dependencies
32
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

1

lib/wsdl/index.d.ts

@@ -5,2 +5,3 @@ import * as sax from 'sax';

import * as elements from './elements';
export declare function trim(text: any): any;
interface IInitializedOptions extends IOptions {

@@ -7,0 +8,0 @@ ignoredNamespaces?: string[];

14

lib/wsdl/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.open_wsdl = exports.WSDL = void 0;
exports.open_wsdl = exports.WSDL = exports.trim = void 0;
const assert_1 = require("assert");

@@ -25,7 +25,6 @@ const debugBuilder = require("debug");

const XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance';
const trimLeft = /^[\s\xA0]+/;
const trimRight = /[\s\xA0]+$/;
function trim(text) {
return text.replace(trimLeft, '').replace(trimRight, '');
return text.trim();
}
exports.trim = trim;
function deepMerge(destination, source) {

@@ -311,3 +310,3 @@ return _.mergeWith(destination, source, (a, b) => {

if (typeof obj === 'object' && Object.keys(obj).length === 0) {
obj = cur.object = '';
obj = cur.object = (this.options.preserveWhitespace ? cur.text || '' : '');
}

@@ -377,8 +376,11 @@ }

p.ontext = (text) => {
const top = stack[stack.length - 1];
const originalText = text;
text = trim(text);
if (!text.length) {
if (this.options.preserveWhitespace) {
top.text = (top.text || '') + originalText;
}
return;
}
const top = stack[stack.length - 1];
const name = (0, utils_1.splitQName)(top.schema).name;

@@ -385,0 +387,0 @@ let value;

{
"name": "soap",
"version": "1.0.1",
"version": "1.0.2",
"description": "A minimal node SOAP client",

@@ -10,2 +10,3 @@ "engines": {

"dependencies": {
"axios": "^1.6.8",
"axios-ntlm": "^1.4.2",

@@ -22,5 +23,2 @@ "debug": "^4.3.2",

},
"peerDependencies": {
"axios": "^1.6.1"
},
"repository": {

@@ -27,0 +25,0 @@ "type": "git",

@@ -626,3 +626,13 @@ # Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]

// client.lastElapsedTime - the elapsed time of the last request in milliseconds
}, {proxy: 'http://localhost:8888'})
}, {
proxy: {
protocol: 'https',
host: '127.0.0.1',
port: 9000,
auth: {
username: 'mikeymike',
password: 'rapunz3l'
}
}
})
```

@@ -919,2 +929,3 @@

}
}
}

@@ -921,0 +932,0 @@ var wsSecurity = new soap.WSSecurityCert(privateKey, publicKey, password, options);

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