Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a fixed file path for local includes #1089

Merged
merged 3 commits into from
Aug 28, 2019
Merged

Allow a fixed file path for local includes #1089

merged 3 commits into from
Aug 28, 2019

Conversation

mritzco
Copy link
Contributor

@mritzco mritzco commented Aug 27, 2019

NetSuite wsdl uses relative paths but when downloaded NS flattens all files in a single directory and fails to load.
This option loads all the files from the directory as provided by NetSuite zip file.

Using with node-suitetalk
https://github.com/felipechang/node-suitetalk

NetSuite wsdl uses relative paths but when downloaded NS flattens all files in a single directory and fails to load.
@coveralls
Copy link

coveralls commented Aug 27, 2019

Coverage Status

Coverage increased (+0.007%) to 94.486% when pulling 39760c1 on mritzco:master into 47dcede on vpulim:master.

@@ -1170,7 +1170,12 @@ export class WSDL {

let includePath: string;
if (!/^https?:/i.test(this.uri) && !/^https?:/i.test(include.location)) {
includePath = path.resolve(path.dirname(this.uri), include.location);
const isFixed = (this.options.wsdl_options !== undefined && this.options.wsdl_options.hasOwnProperty('fixedPath')) ? this.options.wsdl_options.fixedPath : false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this option to the readme please, with an explanation.

itzco added 2 commits August 28, 2019 17:11
NetSuite wsdl uses relative paths but when downloaded NS flattens all files in a single directory and fails to load.
@mritzco
Copy link
Contributor Author

mritzco commented Aug 28, 2019

Modified readme.md
I tried to ammend the previous commit but now the story looks very dirty. Let me know if I should create a new pull request with a single commit.

@jsdevel jsdevel merged commit ac9cdfd into vpulim:master Aug 28, 2019
@jsdevel
Copy link
Collaborator

jsdevel commented Aug 28, 2019

i can squash. thanks!

Danail-Irinkov pushed a commit to Danail-Irinkov/node-soap that referenced this pull request Jan 19, 2020
* Allow a fixed file path for local includes

NetSuite wsdl uses relative paths but when downloaded NS flattens all files in a single directory and fails to load.

* Allow a fixed file path for local includes

NetSuite wsdl uses relative paths but when downloaded NS flattens all files in a single directory and fails to load.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants