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

soap

Package Overview
Dependencies
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soap - npm Package Compare versions

Comparing version 0.11.2 to 0.11.3

7

History.md

@@ -0,1 +1,8 @@

0.11.3 / 2016-01-09
=================
* [ENHANCEMENT] Overriding the namespace prefix with empty prefix. (#779)
* [FIX] Wrong namespace on elements when complexType has same name. (#781)
* [FIX] Improved 'https' pattern matching for local files with name starting with 'http'. (#780)
* [FIX] Handles SOAP result null output. (#778)
0.11.2 / 2016-01-08

@@ -2,0 +9,0 @@ =================

2

lib/client.js

@@ -263,3 +263,3 @@ /*

// instead of sending the error, we pass the body in the response.
if(!output.$lookupTypes) {
if(!output || !output.$lookupTypes) {
debug('Response element is not present. Unable to convert response xml to json.');

@@ -266,0 +266,0 @@ // If the response is JSON then return it as-is.

@@ -1136,3 +1136,3 @@ /*

var includePath;
if (!/^https?/.test(self.uri) && !/^https?/.test(include.location)) {
if (!/^https?:/.test(self.uri) && !/^https?:/.test(include.location)) {
includePath = path.resolve(path.dirname(self.uri), include.location);

@@ -1605,2 +1605,3 @@ } else {

var nonSubNameSpace = '';
var emptyNonSubNameSpace = false;

@@ -1611,2 +1612,5 @@ var nameWithNsRegex = /^([^:]+):([^:]+)$/.exec(name);

name = nameWithNsRegex[2];
} else if(name[0] === ':'){
emptyNonSubNameSpace = true;
name = name.substr(1);
}

@@ -1737,3 +1741,3 @@

if (!Array.isArray(child)) {
parts.push(['<', nonSubNameSpace || ns, name, attr, xmlnsAttrib,
parts.push(['<', emptyNonSubNameSpace ? '' : nonSubNameSpace || ns, name, attr, xmlnsAttrib,
(child === null ? ' xsi:nil="true"' : ''), '>'].join(''));

@@ -1744,3 +1748,3 @@ }

if (!Array.isArray(child)) {
parts.push(['</', nonSubNameSpace || ns, name, '>'].join(''));
parts.push(['</', emptyNonSubNameSpace ? '' : nonSubNameSpace || ns, name, '>'].join(''));
}

@@ -1837,3 +1841,3 @@ }

var object = parameterTypeObj;
if (object.$name === childName) {
if (object.$name === childName && object.name === 'element') {
return object;

@@ -1890,2 +1894,6 @@ }

if (!found && object.$name === childName) {
return object;
}
return found;

@@ -2036,3 +2044,3 @@ };

var wsdl;
if (!/^https?/.test(uri)) {
if (!/^https?:/.test(uri)) {
debug('Reading file: %s', uri);

@@ -2039,0 +2047,0 @@ fs.readFile(uri, 'utf8', function(err, definition) {

{
"name": "soap",
"version": "0.11.2",
"version": "0.11.3",
"description": "A minimal node SOAP client",

@@ -5,0 +5,0 @@ "engines": {

@@ -305,3 +305,10 @@ # Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Gitter chat][gitter-image]][gitter-url]

- Remove namespace prefix of param
```javascript
client.MyService.MyPort.MyFunction({':name': 'value'}, function(err, result) {
// request body sent with `<name`, regardless of what the namespace should have been.
}, {timeout: 5000})
```
#### Options (optional)

@@ -308,0 +315,0 @@ - Accepts any option that the request module accepts, see [here.](https://github.com/mikeal/request)

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