@postman/wsdl-to-postman
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -45,3 +45,3 @@ // default options | ||
description: 'Select whether to resolve remote references.', | ||
external: true, | ||
external: false, | ||
usage: ['CONVERSION'] | ||
@@ -157,3 +157,3 @@ }, | ||
return optsArray.filter((option) => { | ||
return option.external === true; | ||
return option.disabled !== true; | ||
}); | ||
@@ -160,0 +160,0 @@ } |
@@ -20,3 +20,3 @@ /* eslint-disable no-restricted-modules */ | ||
} = require('../../lib/utils/textUtils'), | ||
{ fetch } = require('fetch-h2'), | ||
// { fetch } = require('fetch-h2'), | ||
{ | ||
@@ -146,12 +146,12 @@ WSDLMerger | ||
remoteReferencesToResolve.forEach((remoteReference) => { | ||
localPromises.push(fetch(remoteReference.schemaLocation).then(function (res) { | ||
const { schemaLocation } = remoteReference; | ||
if (res.status !== 200) { | ||
if (ignoreIOErrors) { | ||
return '{"$ref":}' + remoteReference.schemaLocation; | ||
} | ||
throw new Error(`Received status code ${res.status}: ${schemaLocation}`); | ||
} | ||
return res.text(); | ||
})); | ||
// localPromises.push(fetch(remoteReference.schemaLocation).then(function (res) { | ||
// const { schemaLocation } = remoteReference; | ||
// if (res.status !== 200) { | ||
// if (ignoreIOErrors) { | ||
// return '{"$ref":}' + remoteReference.schemaLocation; | ||
// } | ||
// throw new Error(`Received status code ${res.status}: ${schemaLocation}`); | ||
// } | ||
// return res.text(); | ||
// })); | ||
}); | ||
@@ -158,0 +158,0 @@ promise = Promise.all(localPromises).then((values) => { |
{ | ||
"name": "@postman/wsdl-to-postman", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Convert a given WSDL specification (1.1) to Postman Collection", | ||
@@ -62,3 +62,2 @@ "main": "index.js", | ||
"fast-xml-parser": "3.18.0", | ||
"fetch-h2": "3.0.0", | ||
"libxmljs": "0.19.7", | ||
@@ -65,0 +64,0 @@ "libxmljs2": "0.27.0", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
6088779
13
387
119158
1
35
- Removedfetch-h2@3.0.0
- Removed@types/tough-cookie@4.0.5(transitive)
- Removedalready@1.13.2(transitive)
- Removedcallguard@2.0.0(transitive)
- Removedfetch-h2@3.0.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedpsl@1.15.0(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedthroat@5.0.0(transitive)
- Removedthrough2@4.0.2(transitive)
- Removedto-arraybuffer@1.0.1(transitive)
- Removedtough-cookie@4.1.4(transitive)
- Removeduniversalify@0.2.0(transitive)
- Removedurl-parse@1.5.10(transitive)