diff --git a/.editorconfig b/.editorconfig
index f67814db2..4e2d6abe8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -14,6 +14,10 @@ insert_final_newline = false
indent_style = space
indent_size = 2
+[*.ts]
+indent_style = space
+indent_size = 2
+
[*.json]
indent_style = space
indent_size = 2
diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 000000000..a65b41774
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1 @@
+lib
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 000000000..160e92e8c
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,27 @@
+module.exports = {
+ parser: '@typescript-eslint/parser',
+ extends: [
+ 'plugin:@typescript-eslint/recommended',
+ 'prettier/@typescript-eslint',
+ 'plugin:prettier/recommended',
+ 'plugin:import/errors',
+ 'plugin:import/warnings',
+ 'plugin:import/typescript',
+ ],
+ parserOptions: {
+ ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
+ sourceType: 'module', // Allows for the use of imports
+ },
+ rules: {
+ '@typescript-eslint/camelcase': 0,
+ '@typescript-eslint/explicit-function-return-type': 0,
+ '@typescript-eslint/interface-name-prefix': 0,
+ '@typescript-eslint/no-empty-function': 0,
+ '@typescript-eslint/no-explicit-any': 0,
+ '@typescript-eslint/no-this-alias': 0,
+ '@typescript-eslint/no-unused-vars': 0,
+ '@typescript-eslint/no-use-before-define': 0,
+ 'prefer-spread': 'off',
+ 'prefer-rest-params': 'off',
+ },
+};
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
new file mode 100644
index 000000000..2deb6fd08
--- /dev/null
+++ b/.github/workflows/publish.yaml
@@ -0,0 +1,43 @@
+name: Publish
+
+on:
+ push:
+ branches:
+ - 'master'
+ paths-ignore:
+ - 'package.json'
+ - '**/*.md'
+
+permissions:
+ contents: write
+ deployments: write
+ actions: write
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ environment: prod
+ env:
+ GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
+ NPM_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
+ NODE_AUTH_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
+ steps:
+ - name: Checkout Repo
+ uses: actions/checkout@v4
+
+ - name: Setup Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22.x
+ registry-url: https://npm.pkg.github.com
+ cache: yarn
+
+ - name: Install Dependencies
+ run: yarn install --no-progress --frozen-lockfile
+
+ - name: Automated Version Bump
+ id: version-bump
+ uses: phips28/gh-action-bump-version@v11.0.7
+
+ - name: Publish
+ run: yarn publish --new-version ${{ steps.version-bump.outputs.newTag }} --no-git-tag-version
diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml
new file mode 100644
index 000000000..794ad8623
--- /dev/null
+++ b/.github/workflows/pull-request.yaml
@@ -0,0 +1,33 @@
+name: Pull Request
+
+on:
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ unit-test:
+ runs-on: ubuntu-latest
+ env:
+ GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
+ NPM_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
+ NODE_AUTH_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
+ steps:
+ - name: Checkout Repo
+ uses: actions/checkout@v4
+
+ - name: Setup Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22.x
+ registry-url: https://npm.pkg.github.com
+ cache: yarn
+
+ - name: Install Dependencies
+ run: yarn install --no-progress --frozen-lockfile
+
+ - name: Lint
+ run: yarn lint
+
+ - name: Run Unit Tests
+ run: yarn test
diff --git a/.gitignore b/.gitignore
index d6f9e40d5..3b2068915 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,9 +2,10 @@ node_modules
npm-debug.log
coverage
.nyc_output
-yarn.lock
+package-lock.json
.vscode
.idea
*.iml
/lib
/docs
+oohmedia-soap-*.tgz
\ No newline at end of file
diff --git a/.npmignore b/.npmignore
index 503b5ae6d..2f76ab055 100644
--- a/.npmignore
+++ b/.npmignore
@@ -7,3 +7,5 @@ PUBLISHING.md
.*
/src
/docs
+oohmedia-soap-*.tgz
+renovate.json
\ No newline at end of file
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 000000000..f04e75162
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,2 @@
+@oohmedia:registry=https://npm.pkg.github.com
+//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 000000000..2bd5a0a98
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+22
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 000000000..a3dc79b48
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,2 @@
+.history
+lib
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 000000000..d44017138
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,5 @@
+{
+ "singleQuote": true,
+ "trailingComma": "es5",
+ "printWidth": 100
+}
diff --git a/.sonarcloud.properties b/.sonarcloud.properties
new file mode 100644
index 000000000..cbf27b88a
--- /dev/null
+++ b/.sonarcloud.properties
@@ -0,0 +1,7 @@
+# Encoding of the source code. Default is default system encoding
+sonar.sourceEncoding=UTF-8
+# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
+# This property is optional if sonar.modules is set.
+sonar.sources=src
+sonar.tests=test
+sonar.cpd.exclusions=test/**/*
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 48506659a..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-sudo: false
-language: node_js
-notifications:
- email: false
-node_js:
- - "9"
- - "8"
- - "7"
- - "6"
- - "lts/*"
-env:
- - CXX=g++-4.8
-addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - g++-4.8
-before_install:
- - npm -g install npm@latest
-script:
- - npm run lint
- - npm run cover
- - npm run coveralls
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 88b91ba55..000000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Contribution Guidelines
-
-Thank you for your support! node-soap wouldn't be where it is today without contributors like you who are willing to take the time to improve it for everyone else.
-
-Because SOAP Web Services can differ amongst implementations, there is high risk involved in making changes. What works for your WSDL, might not work with another. It is therefore _essential_ that contributors to node-soap adhere to these guidelines.
-
-## Submitting a Pull Request
-* Pull Requests **must be rebased to the latest version of master and _squashed to a single commit_** i.e. `git checkout master;git pull upstream master;git checkout feature-branch;git rebase -i master`
-* Pull Requests **must have accompanying tests** (either Unit or Request/Response Sample tests are welcome). Your chances of getting the PR merged are very low if you don't provide any tests.
-* Pull Requests must have passing travis builds.
-* Pull Requests must be able to merge automatically from github.
-* Please **do not close a pull request due to a request to rebase**. Git is a powerful VCS and deserves your time in learning how to rebase properly. Pull Requests are updated automatically on github when you force push to your branch after rebasing.
-
-Very useful articles/help on this topic:
- - [GitHub Help - About Git rebase](https://help.github.com/articles/about-git-rebase/)
- - [GitHub Help - Using Git rebase](https://help.github.com/articles/using-git-rebase/)
-
-* Please use descriptive commit messages. Commit messages are used during the creation of history and release notes. You'll make the job of maintainers much easier by doing this.
-
-## Making Changes
-* Any and all pull requests to change documentation or typos are welcome!
-* Any WSDL checked in should be as small and as generic as possible. This is to keep the size of the codebase from growing too large and to keep the reason for submitting the WSDL clear I.E. if the WSDL was submitted because attributes were not being parsed on response XML, then it would be appropriate to submit a WSDL that defines a response with attributes *and nothing else*. If you find an issue with the parser not being able to handle large WSDLs, then it would be appropriate to submit a large WSDL to recreate the issue with.
-* If your Pull Request is WSDL related:
-````
- 1. Make your WSDL as generic as possible to recreate the issue
- 2. Add the WSDL to the appropriate path in test/wsdl.
- 3. Commit your changes to a feature branch within your fork.
- 4. Issue a pull request.
-````
-
-* If your Pull Request is client related:
-````
- 1. Capture the request / response XML via client.lastRequest and client.lastResponse as well as the WSDL.
- 2. Make the WSDL, request, and response XML as generic as possible.
- 3. Only include the messages or operations that are having issues.
- 4. Add the appropriate files to test/request-response-samples (see the README therein)
- 5. Commit your changes to a feature branch within your fork.
- 6. Issue a pull request
-````
-
-* If your Pull Request is neither WSDL nor client related:
-````
- 1. Provide a test of some form in an appropriate *-test.js file under test/
- 2. Commit your changes to a feature branch within your fork.
- 3. Issue a pull request.
-````
-
-## Issue Expiration
-Any pull request filed is subject to an expiration date. We will close any open Pull Request that has not received a response within a 2 week timeframe. The goal is not to sweep dirt under the rug, but to keep the focus on merging in pull requests. Please provide pull requests that meet the above criteria wherever possible.
-
-## Other ways you can contribute
-Please add response, request, and WSDL files to test/wsdl, and test/request-response-samples (see README therein). Doing so documents behavior and reduces the likelihood that bugs will be introduced by future pull requests.
diff --git a/History.md b/History.md
deleted file mode 100644
index 0cfed58b7..000000000
--- a/History.md
+++ /dev/null
@@ -1,584 +0,0 @@
-0.31.0 / 2020-02-21
-===================
-
-* [DOC] Update Readme.md (#1105)
-* [ENHANCEMENT] Client.*method*Async can have options as the second argument (#1104)
-* [FIX] Add WSDL xmlns header attribute (#1093)
-* [FIX] Catch errors when parsing WSDL (#1102)
-* [FIX] Fix min/maxOccurs parsing and handling (#1100)
-* [FIX] Fixes bug when envelopeKey is changed and WSSecurityCert is set (#1106)
-* [FIX] fix for circular descriptions (#1101)
-
-
-0.30.0 / 2019-10-16
-===================
-
-* [ENHANCEMENT] Allow a fixed file path for local includes (#1089)
-* [ENHANCEMENT] New XML Signing Options, extra tags to sign and small bug fix (#1091)
-* [ENHANCEMENT] added forceMTOM option and updated the Readme (#1086)
-* [FIX] Added undefined check in WSDL.processAttributes (#1090)
-* [FIX] Fixes bug where methodName would not be included in the response event (#1087)
-* [FIX] fixed MTOM removing soap12header (#1084)
-
-0.29.0 / 2019-07-26
-===================
-
-* [ENHANCEMENT] Added Options object for signer.computeSignature (#1066)
-* [FIX] Prototype pollution in lodash versions <=4.17.11. Hence, updating lodash version to ^4.17.15 in package.json and package-lock.json (#1085)
-* [FIX] Fix known vulnerabilities found by `npm audit` (#1083)
-* [FIX] Adjusts URL detection to be case insensitive (#1082)
-* [FIX] Fixed issue causing error message, "TypeError: Cannot read property 'output' of undefined" (#1081)
-
-0.28.0 / 2019-06-20
-===================
-
-* [ENHANCEMENT] Added support for parsing of doubles and floats. (#1065)
-* [ENHANCEMENT] Adds promise server authentication (#1069)
-* [ENHANCEMENT] Expose the WSDL class (#1071)
-* [ENHANCEMENT] Now supporting XSI namespace overrides (#1079)
-* [ENHANCEMENT] added possibility to add action to content-type header (#1073)
-* [ENHANCEMENT] client.addSoapHeader() dynamic SOAP header (#1062)
-* [ENHANCEMENT] emit response events allowing user override on response XML (#1070)
-* [FIX] Fix description for recursive wsdl with extended element (#1078)
-* [FIX] Fixes issue with unknown ReadableStream type (#1076)
-* [FIX] Update types to make `options` optional for createClientAsync (#1068)
-* [FIX] fix for soap 1.2 content-type header, missing action key (#1075)
-* [FIX] types: move forceSoap12Headers to IWsdlBaseOptions (#1063)
-* [MAINTENANCE] Updated read me to reflect changes in soap.listen (#1060)
-
-0.27.1 / 2019-04-19
-===================
-
-* [FIX] Move @types/request to dependencies (#1059)
-
-0.27.0 / 2019-04-18
-===================
-
-* [ENHANCEMENT] Added MTOM support for binary data (#1054)
-* [ENHANCEMENT] Added callback for soap.listen (#1055)
-* [ENHANCEMENT] add rsa-sha256 support for WSSecurityCert (#1052)
-* [ENHANCEMENT] adding promise support for server method handlers.
-* [FIX] Fixed PasswordDigest Generation (#1039)
-* [FIX] Fixed some issues with xsd elements (#1057)
-* [FIX] Handle response with error status code and without response body (#1053)
-* [FIX] Stringify wsdl-related error messages to avoid non-descriptive [object Object] output. (#1037)
-* [FIX] fix(compliance): updated the npm packages
-* [FIX] fix(wsdl): array namespace override with colon(:) (#1045)
-* [MAINTENANCE] adding source-map-support for ts mapping in stack trace; enabling tslint rules; added linting to travis; removing unnecessary self variables (#1047)
-* [MAINTENANCE] converting the project to TypeScript (#1044)
-* [MAINTENANCE] npm upgrade; removing ejs and external template files (#1046)
-* [MAINTENANCE] npmignore cleanup; adding some types to Client (#1049)
-
-0.26.0 / 2019-02-11
-===================
-
-* [FIX] WSDL: make merging external schema works correctly (#1023)
-* [FIX] WSDL: pass error from parsing XML as-is, not only its message (#1022)
-* [ENHANCEMENT] server: add option enableChunkedEncoding (#1043)
-* [FIX] fix a problem about Multi-Byte character (#1042)
-* [FIX] fix double transformationentries in WSSecCert
-* [MAINTENANCE] Add bodyParser.json middleware test
-* [FIX] processRequestXml only if req.body is not empty object
-* [MAINTENANCE] Fixing v10 ssl tests and removing jshint since it sucks and doesn't support es6. (we need to migrate to eslint).
-* [FIX] Arrays deserve namespace override too
-
-0.25.0 / 2018-08-19
-===================
-* [FIX] Improved deserialization on inline `simpleType` declarations (#1015)
-* [ENHANCEMENT] Added option to allow the user to dis-/enable the timestamp in `WSSecurtityCert` (defaults to "enabled" to maintain current behaviour) (#1017)
-* [DOC] Updated the "\*Async" result description (#1016)
-* [ENHANCEMENT] Added ability to resolve Schema-cross-reference namespaces in `client.describe()` (#1014)
-* [FIX] Fixed `.npmignore` patterns in order to publish only the necessary files (#1012)
-* [DOC] Removed formatting in code (#1011)
-* [ENHANCEMENT] Added initial NTLM support (#887)
-* [ENHANCEMENT] Added optional async authentication for the server (#1002)
-* [MAINTENANCE] End of support for `node < 6.x` in our Travis CI config!
-* [MAINTENANCE] Removed unnecessary `selectn` dependency (#975)
-* [ENHANCEMNET] Added support for attributes in root elements (#910)
-* [ENHANCEMENT] Added/updated TypeScript definitions (#991)
-* [ENHANCEMENT] Change signature of `server.authorizeConnection()` to include also the `res`ponse param. (#1006)
-* [FIX] WSSE Template - fix behaviour for template compilation in `__dirname` "unsafe" environments (e.g. `webpack` with target `node`) (#1008)
-
-0.24.0 / 2018-04-05
-===================
-* [DOC] Error on custom deserializer example (#1000)
-* [DOC] Fix broken link
-* [DOC] adding bullets to separate each option
-* [DOC] changed ClientSSLSecurity to ClientSSLSecurityPFX in the readme file
-* [DOC] clarify section on client events in Readme.md (#989)
-* [ENHANCEMENT] Added one-way response configuration options
-* [ENHANCEMENT] Adding support for SOAP 1.2 Envelope Headers in the server side (#1003)
-* [ENHANCEMENT] Enable multiArgs during promisification
-* [ENHANCEMENT] add Client.wsdl for accessing client.wsdl during soap.createClient() (#990)
-* [ENHANCEMENT] add option to remove element-by-element namespacing of json arrays (#994)
-* [ENHANCEMENT] add rawRequest to callback arguments (#992)
-* [FIX] Fixed checking for empty obj.Body before further actions (#986)
-* [FIX] Lookup definitions in child element first (#958)
-* [FIX] only detect xsi:nil if its value is `true` (#983)
-* [MAINTENANCE] Updating the coverage to use the new version of Istanbul framework, the nyc.
-* [MAINTENANCE] Upgrade Lodash to 4.17.5 (#1001)
-
-0.23.0 / 2017-10-18
-===================
-* [FIX] Fixing tests broken by #979
-* [FEATURE] replace non identifier chars to underscore (#978)
-* [FEATURE] Pool keep alive connections if forever option is used (#979)
-* [MAINTENANCE] Use assert.ifError function in tests (#976)
-* [FEATURE] Add function support for server addSoapHeader (#977)
-
-0.22.0 / 2017-10-02
-===================
-* [ENHANCEMENT] Added `forever` option to `ClientSSLSecurity` in order to allow `keep-alive` connections. (#974)
-* [ENHANCEMENT] Added `preserveWhitespace` option to prevent the client from trimming resolved `String` values. (#972)
-* [MAINTENANCE] Removed `compres` dependency in favor of `zlib`. (#971)
-* [MAINTENANCE] (Security) Updated `debug` dependency to avoid possible vulnerability. (#973)
-* [FIX] Updated `.travis.yml` to test against latest `node.js 4.8.x` release to avoid Travis CI error.
-* [FIX] Fix performance bug at POJO to XML conversion. (#968)
-* [ENHANCEMENT] Added possibility to override the `bluebird.js` suffix (default: "async"). (#961)
-* [DOC] Updated the `Security` section by listing all available optional methods. (#966)
-
-0.21.0 / 2017-08-28
-===================
-* [DOC] Removed issues from Contributing Readme (#963)
-* [DOC] Add server option details to readme.md (#965)
-* [DOC] Added details to clientSSLSecurity (#960)
-* [ENHANCEMENT] Added 'useEmptyTag' wsdlOption, which if set, creates instead of if no body is present (#962)
-* [ENHANCEMENT] Add typescript support (#955)
-* [FIX] `path.resolve` cannot resolve a null path (#959)
-* [MAINTENANCE] Updated minimum node version to 4.0.0 (#964)
-* [MAINTENANCE] Update `uuid` library to latest release (`3.1.0`) and use their newly introduced "modules" instead of the outdated/deprecated direct method calls.
-* [MAINTENANCE] Fixed JSHint indentation errors in `test/client-test.js`.
-
-0.20.0 / 2017-08-08
-===================
-* [ENHANCEMENT] Added `bluebird.js` promise library in order to provide `[methodName]Asyc` in `Client` (#956)
-* [ENHANCEMENT] Added `option` to handle `nilAsNull` in `SOAP` responses (#952)
-* [ENHANCEMENT] Added `option` to return a `SOAP Fault` instead of `stack` (error) on bad request (#951)
-* [MAINTENANCE] Removed uneccessary variable declaration in `http.js` (#948)
-* [ENHANCEMENT] Added possibiltiy to alter `XML` before it is sent (#943)
-* [FIX] Updated vulnerable module `finalhandler` to version `^1.0.3` (#946)
-* [ENHANCEMENT] Added possibility to submit `XML`-Strings to SOAP Client API (#918)
-
-0.19.2 / 2017-06-12
-===================
-* [FIX] Recursive types cause infinite loop (#940)
-* [DOC] Adding a note about consulting in the README. (#939)
-* [MAINTENANCE] Add yarn.lock to gitignore (#938)
-* [MAINTENANCE] Remove dependency to ursa (#928)
-
-0.19.1 / 2017-05-30
-===================
-* [FIX] Reverting #914. It broke existing behavior and prevented array type arguments. (#937)
-* [FIX] Add test for accepting array as parameter based on wsdl (#933)
-* [DOC] readme.md clarifications, examples and typos (#930)
-* [MAINTENANCE] Fix build by satisfying jshint indentation (#931)
-* [MAINTENANCE] Drop `travis-ci` test support for `node.js` < `4.x` (LTS) (#932)
-* [DOC] Update CONTRIBUTING.md
-* [DOC] typo in server example (#925)
-
-0.19.0 / 2017-03-16
-===================
-
-* [FIX] Fixed missing namespace declaration on `Array` if the namespace is already declared with another prefix. (#923)
-* [DOC] Fix spelling error (#917)
-* [FIX] Add `sequence` to field if it's defined within the `complextType` (#914)
-* [MAINTENANCE] Drop deprecated `node-uuid` package and use the `uuid` (successor) instead (#913)
-* [FIX] Only add references for the soap:Body and wsse:Security/Timestamp elements in WSSecurityCert (#911)
-* [MAINTENANCE] Updated `ejs` package version in `package.json` (#908)
-* [ENHANCEMENT] Added possiblity to pass your own "custom deserializer" within the `wsdlOptions` in `createClient()` method (#901)
-* [ENHANCEMENT] Added possibility to use your own "exchange ID" (#907)
-* [ENHANCEMENT] Added "exchange ID" (`eid`) in emitted client events (#903)
-* [ENHANCEMENT] Added option to suppress error stack in server response (#904)
-* [FIX] Set namespace prefix for first element if `elementFormDefault=unqualified` (#905)
-* [FIX] Fixed test (use `assert` instead of `should()` chain) in `test/server-test.js` (#906)
-* [DOC] Fix documentation in `test/request-response-samples/README.md` (#900)
-
-0.18.0 / 2016-11-25
-=================
-
-* [DOC] Added documentation for adding custom http header (#890)
-* [DOC] Update soap stub example (#883)
-* [ENHANCEMENT] Add body parameter to soap responding stub. (#897)
-* [ENHANCEMENT] Added Stream support. (#837)
-* [ENHANCEMENT] Avoid matching tags inside comments (#877)
-* [FIX] Ensure that supplied request-object is passed through. (#894)
-* [FIX] Fix exception 'Parameter 'url' must be a string, not object' (#870)
-* [FIX] Handle empty SOAP Body properly. (#891)
-* [FIX] Set lodash dependency version to ^3.10.1 (#895)
-* [MAINTENANCE] Fix test case description (#886)
-* [MAINTENANCE] Fixed request-response-samples-test so that tests with only request.xml and request.json actually get run (#878)
-* [MAINTENANCE] Fixing minor jshint issues. (#884)
-
-0.17.0 / 2016-06-23
-=================
-
-* [ENHANCEMENT] Add option for disabling the WSDL cache (#876)
-* [DOC] Add `escapeXML` option to README file (#874)
-* [DOC] updated readme for express support (#873)
-* [ENHANCEMENT] express server support (#872)
-* [ENHANCEMENT] better error 1. SOAP message missing evelope and body 2. request/response tests (#869)
-* [FIX] Fix possible crash when send empty post using postman (#861)
-* [FIX] fix ExtensionElement description to match order (#866)
-* [DOC] Added descriptions for actor, hasNonce & mustUndertand options (#865)
-* [FIX] Fix namespaces in client soap requests (#863)
-* [FIX] Always submit valid XML from the client. (#862)
-* [MAINTENANCE] mustUnderstand must be 0 or 1.. with tests (#850)
-* [MAINTENANCE] Remove special handling of methods only taking a string paramter (#854)
-
-0.16.0 / 2016-06-23
-=================
-* [ENHANCEMENT] Add nonce and soap:actor support for WSSecurity (#851)
-* [MAINTENANCE] Fix typo in readme (#853)
-* [FIX fixes and issue that causes the module to break if no re or req.headers present in client (#852)
-* [FIX] fixed the soap request envelop generation part when request has complex Type as root. (#849)
-* [FIX] Gracefully handle errors while parsing xml in xmlToObject and resume the parser with p.resume() (#842)
-* [FIX] XSD import in WSDL files and relative path (server creation) - resubmit (#846)
-* [ENHANCEMENT] Support array of certs for ClientSSLSecurity ca. (#841)
-* [MAINTENANCE] Attribute value of body id in double quotes (#843)
-* [MAINTENANCE] Bumping ursa to 0.9.4 (#836)
-* [ENHANCEMENT] Optionally add Created to wssecurity header (#833)
-* [MAINTENANCE] Clean up brace style (#835)
-* [FIX] Fix custom http client not being used when fetching related resources (#834)
-
-0.15.0 / 2016-05-09
-=================
-* [FIX] Make `ursa` an optional dependency since it's currently nearly impossible to install `soap` on a windows machine otherwise (#832)
-* [FIX] Fixed issue of referencing element in another namespace (#831)
-* [FIX] Fixed incorrect WSDL in `CDATA` tests (#830)
-* [FIX] Added mocks for node.js streams `cork`/`uncork` in tests (for `node >= 4.x`) (#829)
-* [ENHANCEMENT] Added basic `CDATA` support (#787)
-* [DOC] Added missing documentation about `Client.setEndpoint(url)` (#827)
-* [ENHANCEMENT] Added `toc` node-module in order to generate TOC in README.md via `npm run toc` command (#826)
-* [FIX] Fix `elementFormDefault` handling (#822)
-* [FIX] Added missing `compress` node-module to `package.json` dependencies (#823)
-* [ENHANCEMENT] The client `response` event is now triggered with the "raw" `IncomingMessage` object as second parameter (#816)
-* [DOC] Added note about the `keep-alive` workaround to prevent truncation of longer chunked reponses in `node > 0.10.x` (#818)
-* [ENHANCEMENT] Make it possible to overwrite the request module, e.g. for using `multipart-body` for file up- and downloads (#817)
-
-0.14.0 / 2016-04-12
-=================
-* [ENHANCEMENT] Allow to call methods with `callback` as last param in order to align with node.js `callback last` pattern (#814)
-* [ENHANCEMENT] Re-enabled `ignoreBaseNameSpaces` option (#809)
-* [FIX] Avoid overwriting request headers with options in client method invocation (#813)
-* [ENHANCEMENT] Accept `time` value in in `extraHeaders` options in order to retrieve the `lastElapsedTime` for the response (#811)
-* [ENHANCEMENT] Allow to set a custom envelope key for the SOAP request (#812)
-* [FIX] Removed double declaration of `WSDL` variable in `lib/soap.js` (#810)
-* [DOC] Added documentation for `wsdl_options` and `wsdl_headers` options in `createClient()` method (#806)
-* [ENHANCEMENT] Added support to override the namespace definition of the root element (#805)
-* [ENHANCEMENT] Ignore "whitespace only" differences in `request/response sample tests` in order to make differences easier to spot (#804)
-* [ENHANCEMENT] Added support for WSSecurity XML signing with x509 certificats. Dropped support for node.js < 0.10.x (#801)
-* [ENHANCEMENT] Remove assertions/checkin of certificates in `ClientSSLSecurity` (#800)
-
-0.13.0 / 2016-02-16
-=================
-* [FIX] Maintain `ignoredNamespaces` option when processing WSDL includes (#796)
-* [ENHANCEMENT] SOAP Headers for server response & `changeSoapHeader()` method for client & server (#792)
-* [ENHANCEMENT] Added XML declaration (version & encoding) to client requests (#797)
-* [DOC] Added example for `server.options` to README, fixed typos in CONTRIBUTING (#798)
-* [FIX] Keep `nsContext` stack consistent even on recursive calls (#799)
-* [FIX] Prevent NPE when processing an empty children array (#789)
-
-0.12.0 / 2016-02-02
-=================
-* [MAINTENANCE] updating lodash to 3.x.x
-* [FIX] Schema overwrite when include a xsd with (#788)
-
-0.11.4 / 2016-01-09
-=================
-* [MAINTENANCE] Adding coverage to project.
-
-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
-=================
-* [FIX] Return null instead of empty object. (#733, #707, #784)
-* [DOC] Adds commas and semicolons to listen(...) example. (#782)
-* [MAINTENANCE] Temporarily skiping test from #768.
-
-0.11.1 / 2015-12-15
-=================
-* [ENHANCEMENT] Adding ClientSSLSecurityPFX for use in requests (#768)
-* [FIX] Remove SOAPAction http header in SOAP 1.2, extra header was causing some servers to trip. (#775)
-* [FIX] When an error occur, send HTTP 500 status code. (#774)
-* [FIX] Fixed issue when an error was undefined: undefined. (#771)
-* [FIX] Add missing type attribute for PasswordText in WSSecurity and update related tests. (#754)
-
-0.11.0 / 2015-10-31
-=================
-* [ENHANCEMENT] Now passing request to services in server.js. (#769)
-* [ENHANCEMENT] Adding the ability to add headers in client requests. (#770)
-* [MAINTENANCE] Adding gitter badge to README and disabling issues. (#731)
-* [FIX] Stop sending Object prototype methods as XML. (#699)
-
-0.10.3 / 2015-10-23
-=================
-* [ENHANCEMENT] Adding createErroringStub to soap-stub. (#765)
-* [ENHANCEMENT] `forceSoap12Headers` option to add SOAP v1.2 request headers. (#755)
-
-0.10.2 / 2015-10-22
-=================
-* [ENHANCEMENT] Adding security to soap-stub. (#764)
-
-0.10.1 / 2015-10-22
-=================
-* [ENHANCEMENT] Adding soap-stub. (#763)
-
-0.10.0 / 2015-10-21
-=================
-* [FIX] xml namespace/element/type handling. (#756)
-
-0.9.5 / 2015-10-15
-=================
-* [FIX] Allow circular XSD files to be loaded. (#745)
-* [ENHANCEMENT] Timestamp is now optional. (#735)
-* [DOC] Formatting History.md 0.9.4 notes.
-
-0.9.4 / 2015-09-28
-=================
-* [MAINTENANCE] Adding node v4.0 to .travis.yml. (#729)
-* [MAINTENANCE] Increasing mocha test timeout to 10 seconds. (#732)
-* [FIX] Resolve element references when other types are referenced. (#725)
-* [DOC] Update Readme.md
-* [ENHANCEMENT] New Ignorebasenamespaces option. (#716)
-* [ENHANCEMENT] Add optional statusCode on soap fault. (#715)
-* [FIX] Fix for wsdl retrieval using soap.createClient with special options.httpClient. Before this, the specified client was not used when fetching the wsdl file. This fix will force the wsdl to use the specified httpClient. (#714)
-* [FIX] Allow WSDL to be loaded from HTTPS sites. (#694)
-
-0.9.3 / 2015-09-08
-=================
-* [ENHANCEMENT] Allow namespace overriding for elements. (#709)
-* [MAINTENANCE] Disable travis emails.
-
-0.9.2 / 2015-09-08
-=================
-* [ENHANCEMENT] Add support for xsd element ref. (#700)
-* [MAINTENANCE] Moving travis build to containers.
-* [MAINTENANCE] Add request sample for an operation without any parameters. (#703)
-* [DOC] update spelling and formatting to clarify several sections of Readme. (#708)
-* [ENHANCEMENT] Add the correct namespace alias for operations without parameters by simply removing the special case where input.parts is empty. If special logic is wanted for this case, it should be contained in objectToRpcXML in any case. (#703)
-* [FIX] Fix a typo in WSDL#findChildParameterObject. (#686)
-* [FIX] Fixed SOAP Fault errors not being raised as errors. (#676)
-* [FIX] Use diffrent namespace styles for soap fault 1.1 and 1.2. (#674)
-
-0.9.1 / 2015-05-30
-=================
-* [FIX] Received empty Strings are now returned as empty String rather than an empty Object. (#637)
-
-* [FIX] Get current namespace when parent namespace is an empty String. Fixes #533. (#661)
-
-* [DOC] Update README.md with documentation for #660 introduced customization of `httpClient` and `request` libs in `client.options`. (#664)
-
-* [FIX] Take configured "ignored namespaces" into account when processing `objectToXml()`. Fixes #537. (#662)
-
-* [LIC] Update license attribute to follow the new [npm conventions](https://docs.npmjs.com/files/package.json#license). (#663)
-
-* [ENHANCEMENT] Add ability to customize `http` client / `request` lib on client creation. (#660)
-
-* [FIX] Support `xsi:type` Schema on Element. Fixes #606. (#639)
-
-* [FIX] Make parsing of recursive Elements in `wsdl` work. (#658)
-
-0.9.0 / 2015-05-18
-=================
-* [FIX] Fix to allow request options and headers to persist for all includes. Fix to properly handle when an import/include starts with a schema element. (#608)
-
-* [FIX] Do not end request for keep-alive connections (#600)
-
-* [ENHANCEMENT] Added Client 'response' event (#610)
-
-* [FIX] If response is json, then error should not be thrown. Fix issue #580 (#581)
-
-* [FIX] Sub-namespace should be correct regardless of order of enumeration i.e. should not be overriden by other prop's namespace (#607)
-
-* [DOC] Added a section about Server Events to README.md (#596)
-
-* [ENHANCEMENT] Added Server 'request' event (#595)
-
-* [ENHANCEMENT] Add support for One-Way Operations (#590)
-
-* [FIX] `lib/wsdl.js` util function `extend()` doesn't throw an Error when handling elements that are not objects. (#589)
-
-* [ENHANCEMENT] ClientSSLSecurity now accepts a `ca`-certificate. (#588)
-
-* [ENHANCEMENT] ClientSSLSecurity should be able to take a Buffer as `key` and `cert` parameter. Additionally the certificates are checked whether they are correct or not (starting with `-----BEGIN`). (#586)
-
-* [ENHANCEMENT] Add support for sending NULL values (#578)
-
-* [ENHANCEMENT] Follow 302 redirects, don't mix quotes (#577)
-
-* [DOC] Update CONTRIBUTING.md
-
-* [FIX] Respond with security timestamp if request had one (#579)
-
-
-0.8.0 / 2015-02-17
-=================
-* [ENHANCEMENT] `node-soap` is now also compatible (and tested) with `node v0.12.0` and `io.js` too. (#571)
-
-* [FIX] Adds support for attributes in the `SOAP Body` Element (fixes #386). (#574)
-
-0.7.0 / 2015-02-10
-=================
-* [ENHANCEMENT] Server emits a `headers` event to globally handle SOAP Headers. (#564 )
-
-* [ENHANCEMENT] A service method can send back a SOAP Fault response to a client by throwing an object that contains a `Fault` property. (#563)
-
-* [FIX] Don't throw an Error if an `element` is not defined. (#562)
-
-* [ENHANCEMENT] Added more primitive types (`['positiveInteger', 'nonPositiveInteger', 'negativeInteger', 'nonNegativeInteger']`). (#560)
-
-* [FIX] Respect empty SOAP actions in operations. (#554)
-
-* [ENHANCEMENT] The client now emits `message`, `request` and `soapError` events. (#547, #559)
-
-* [ENHANCEMENT] The server is now aware of the SOAP header(s) from incoming request. (#551)
-
-* [ENHANCEMENT] Until now, only the SOAP Body was returned from the invoked client method. With this PR also the SOAP Header(s) will be returned. (#539)
-
-0.6.1 / 2014-12-20
-==================
-* [ENHANCEMENT] Allow logging of received `XML` prior to parsing and processing it, which allows better debugging of incoming`XML`. (#524)
-
-* [ENHANCEMENT] Add support for importing external `wsdl`. (#523)
-
-* [FIX] Use correct namespaces for elements which consist of an array. (#522)
-
-* [FIX] Use correct namespaces for elements which have a different base namespace. (#521)
-
-* [FIX] Don't throw an `Error` when `typeElement` is undefined in `ExtensionElement#description` method. (#515)
-
-* [FIX] Only supply `nonce` when a password digest is used to avoid `schema` validation errors. (#496)
-
-* [FIX] Allow `wsdl:documentation` element under `wsdl:message`. (#508)
-
-* [FIX] Use correct namespaces in sequences with imported elements. (#502)
-
-* [FIX] Ignore default `tns` and disabled default `tns` specification in first element of the body. (#506)
-
-* [ENHANCEMENT] Define `$xml` to pass plain `XML` object. (#485)
-The `$xml` key is used to pass an `XML` Object to the request without adding a namespace or parsing the string.
-
-* [FIX] Updated '#extend' method to avoid overriding properties and ensure the 'inheritance' of `` usage. (#493)
-
-0.6.0 / 2014-10-29
-=================
-* [ENHANCEMENT] Adding bearer security type Exporting security type for usage.
-* [ENHANCEMENT] The qualified elementFormQualified must be respected only when the current element is not a global element. The namespace attribute is only needed if it's not included in the xmlns.
-* [FIX] Remove automatic port appending to "Host" header.
-* [FIX] Avoid creating soap:Header container when there are no children.
-* [FIX] Allowing a 'null' argument for WSDL methods that take no arguments.
-* [FIX] Wrong initialization of xmlns array when handling rpc stype wsdl.
-* [FIX] Fault handling. err should be used less frequently now.
-* [FIX] Added checking if there is input and output for operations under bindings section.
-* [FIX] XSD conflict with same namespace.
-
-0.5.1 / 2014-07-11
-=================
-* [ENHANCEMENT] Add "defaults" parameter to BasicAuthSecurity's constructor
-* [ENHANCEMENT] Added possibility to set a custom `valueKey` for the parsed values from XML SOAP Response
-* [FIX] don't append port 80 to Host if not needed
-* [FIX] Remove possible existing BOM characters from XML String before passing it to `WSDL#_fromXML()` and parsing it.
-* [FIX] Handling nil attributes in response xml
-
-0.5.0 / 2014-07-11
-=================
-* [ENHANCEMENT] Allowing namespace prefixes to be ignored via config.
-* [ENHANCEMENT] wsdl should handle more types
-* [FIX] Handle defined messages ending with "Response", "Out", or "Output"
-* [FIX] Adding default attributesKey to server and allowing the property to be configurable fixing issue #406
-* [FIX] Remove extra characters before and after soap envelope
-* [FIX] Allow operations to not have definitions
-* [FIX] Ignore unknown elements
-* [FIX] Keep ns from top-level
-* [FIX] Check status code of invocation response
-
-0.4.7 / 2014-06-16
-=================
-* [ENHANCEMENT] Allow request elements to have both content and attributes.
-
-0.4.6 / 2014-06-16
-=================
-* Fix for the `elementFormDefault` functionality.
-* Fix determining the namespace for complex elements.
-* Add support for the `elementFormDefault` schema attribute.
-* Fixing duplicate code which had gotten introduced because of a merge.
-* Added the ability to specify elements in a $value attribute for complex types.
-* Allowing the property name "attributes" to be configurable.
-* Fix for andling object arrays.
-* Fix for WSDL and Schema interaction.
-* Allowing response.xml to be optional in tests.
-* Allowing request.xml and response.json to be optional for tests.
-* Fix for adding an undefined XML namespace.
-* Added some documentation on options object when calling createClient.
-* Fix for namespaces in headers not being added appropriately.
-
-0.4.5 / 2014-05-13
-=================
-* Fixed: Unspecified binding style defaults to 'document' (#346, #208)
-* Fixed: WSDL parse errors bubble up (#344)
-* Fixed: AssertionError: Invalid child type when WSDL contains imports (#322, #337)
-* Fixed: TargetNamespace not loaded when import in schema (#327, #325)
-
-0.4.4 / 2014-04-16
-=================
-* Added namespace prefixes to SOAP headers. #307
-* Provided more documentation around security protocols in the README. #321
-* Added lodash. #321
-* Added a deefault parameter to ClientSSLSecurity. #321
-* Fix to reset the generated namespace number. #308
-* Fixed maximum callstack errors on certain responses. #257
-
-0.4.3 / 2014-04-07
-=================
-* Refactored WS-security. small modifications to pull #275
-* Updated readme to add documentation for passing options to a client request
-* Added null check for portType and methods[methodname].output
-* Fixed issue where requests that included compex types led to invalid request XML.
-* Support for attributes array elements and support for complex extensions with array elements.
-* Make sure callback is done asynchronously for a cached wsdl
-* Added WSDL inheritance support (#133).
-
-0.4.2 / 2014-03-13
-=================
-* Added the ability to inspect and clear soap headers.
-* Reducing test wsdl size.
-* No longer prefixing elements with a default namespace prefix i.e. xmlns.
-
-0.4.1 / 2014-03-04
-=================
-Note: an error occurred publishing this version to npm. This version was tagged, so it can be referrenced via git.
- * package; increased minor version to 0.4.1
- * Adding an npmignore on test/
- * Tests are linted
- * Attributes may be added to requests and parsed from responses
- * Tests were added for ssl and client authentication
- * Support for import elements in WSDL documents.
- * Version in server response matches package.json
- * Describe errors fixed on OutputElements.
- * Support for Fault handling.
-
-0.4.0 / 2014-02-15
-==================
-
- * package; increased minor version to 0.4 (xml parser change, tests)
- * remove execute privileges on files #216
- * add travis #219
- * add jshint for index.js #220
- * remove execute permissions on .gitignore #227
- * fixed; fix requests if SOAP service is not on port 80, do not crash on errors #228
- * fixed; undefined value for json in client method when message names end with Out or Output. #243
- * add non xmlns attributes to elements during response parsing #241
- * package; replace expat dependency with sax #246
- * fixed; "Uncaught TypeError: Cannot read property '0' of undefined" #248
-
-0.3.2 / 2014-01-21
-==================
-
- * fixed; http request callback fires twice on error #120
- * fixed; handle connection errors #192
- * package; include mocha in devDependencies
diff --git a/PUBLISHING.md b/PUBLISHING.md
deleted file mode 100644
index abf976c34..000000000
--- a/PUBLISHING.md
+++ /dev/null
@@ -1,28 +0,0 @@
-Publishing
-===================
-
-This document describes the steps a maintainer of this project generally takes in
-order to publish a newer version of `node-soap`.
-
-## Ideals
-* Pull Requests that alter, add, or correct functionality have a single commit.
-* All commit messages are descriptive.
-* Maintainers spend little time looking at git history to update HISTORY.md.
-
-## Process
-1. Checkout the commit that you would like to publish. This is usually accomplished
- with `git checkout master`.
-2. Run `git log --oneline`
-3. Copy the commit messages above the last release commit message into History.md.
-4. Consolidate the commit messages:
- * Remove any futile commits I.E. "Removing white space"
- * Remove Pull Request merge commits. In some cases, you may need to reference the issue in
- order to get the commit message for that Pull Request.
- * Prefix commit messages with "Enhancement", "Fixed", "Deprecated" and so forth
- accordingly.
- * Reword line items as necessary.
-5. Update package.json to the appropriate version for the release.
-6. Commit your changes to master and push them up to github.
-7. Use the github interface to create a tag.
- * Use existing release notes as a reference when adding the release notes to github.
-8. `npm publish`.
diff --git a/Readme.md b/Readme.md
index a566b89ed..7115479f4 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,1395 +1,6 @@
-# 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]
+# @oohmedia/node-soap
-> A SOAP client and server for node.js.
+Fork of https://github.com/vpulim/node-soap.git.
-This module lets you connect to web services using SOAP. It also provides a server that allows you to run your own SOAP services.
-
-
-
-
-
-
-- [Features:](#features)
-- [Install](#install)
-- [Why can't I file an issue?](#why-cant-i-file-an-issue)
-- [Where can I find help?](#where-can-i-find-help)
-- [Module](#module)
- - [soap.createClient(url[, options], callback) - create a new SOAP client from a WSDL url. Also supports a local filesystem path.](#soapcreateclienturl-options-callback---create-a-new-soap-client-from-a-wsdl-url-also-supports-a-local-filesystem-path)
- - [soap.createClientAsync(url[, options]) - create a new SOAP client from a WSDL url. Also supports a local filesystem path.](#soapcreateclientasyncurl-options---create-a-new-soap-client-from-a-wsdl-url-also-supports-a-local-filesystem-path)
- - [soap.listen(*server*, *path*, *services*, *wsdl*, *callback*) - create a new SOAP server that listens on *path* and provides *services*.](#soaplistenserver-path-services-wsdl-callback---create-a-new-soap-server-that-listens-on-path-and-provides-services)
- - [Options](#options)
- - [Server Logging](#server-logging)
- - [Server Events](#server-events)
- - [Server Response on one-way calls](#server-response-on-one-way-calls)
- - [SOAP Fault](#soap-fault)
- - [Server security example using PasswordDigest](#server-security-example-using-passworddigest)
- - [Server connection authorization](#server-connection-authorization)
-- [SOAP Headers](#soap-headers)
- - [Received SOAP Headers](#received-soap-headers)
- - [Outgoing SOAP Headers](#outgoing-soap-headers)
-- [Client](#client)
- - [Client.describe() - description of services, ports and methods as a JavaScript object](#clientdescribe---description-of-services-ports-and-methods-as-a-javascript-object)
- - [Client.setSecurity(security) - use the specified security protocol](#clientsetsecuritysecurity---use-the-specified-security-protocol)
- - [Client.*method*(args, callback) - call *method* on the SOAP service.](#clientmethodargs-callback---call-method-on-the-soap-service)
- - [Client.*method*Async(args) - call *method* on the SOAP service.](#clientmethodasyncargs---call-method-on-the-soap-service)
- - [Client.*service*.*port*.*method*(args, callback[, options[, extraHeaders]]) - call a *method* using a specific *service* and *port*](#clientserviceportmethodargs-callback-options-extraheaders---call-a-method-using-a-specific-service-and-port)
- - [Overriding the namespace prefix](#overriding-the-namespace-prefix)
- - [Client.*lastRequest* - the property that contains last full soap request for client logging](#clientlastrequest---the-property-that-contains-last-full-soap-request-for-client-logging)
- - [Client.setEndpoint(url) - overwrite the SOAP service endpoint address](#clientsetendpointurl---overwrite-the-soap-service-endpoint-address)
- - [Client Events](#client-events)
- - [request](#request)
- - [message](#message)
- - [soapError](#soaperror)
- - [response](#response)
-- [Security](#security)
- - [BasicAuthSecurity](#basicauthsecurity)
- - [BearerSecurity](#bearersecurity)
- - [ClientSSLSecurity](#clientsslsecurity)
- - [ClientSSLSecurityPFX](#clientsslsecuritypfx)
- - [WSSecurity](#wssecurity)
- - [WSSecurityCert](#wssecuritycert)
- - [NTLMSecurity](#ntlmsecurity)
-- [Handling XML Attributes, Value and XML (wsdlOptions).](#handling-xml-attributes-value-and-xml-wsdloptions)
- - [Overriding the `value` key](#overriding-the-value-key)
- - [Overriding the `xml` key](#overriding-the-xml-key)
- - [Overriding the `attributes` key](#overriding-the-attributes-key)
- - [Specifying the exact namespace definition of the root element](#specifying-the-exact-namespace-definition-of-the-root-element)
- - [Custom Deserializer](#custom-deserializer)
-- [Handling "ignored" namespaces](#handling-ignored-namespaces)
-- [Handling "ignoreBaseNameSpaces" attribute](#handling-ignorebasenamespaces-attribute)
-- [soap-stub](#soap-stub)
- - [Example](#example)
-- [Contributors](#contributors)
-
-
-
-## Features:
-
-* Very simple API
-* Handles both RPC and Document schema types
-* Supports multiRef SOAP messages (thanks to [@kaven276](https://github.com/kaven276))
-* Support for both synchronous and asynchronous method handlers
-* WS-Security (currently only UsernameToken and PasswordText encoding is supported)
-* Supports [express](http://expressjs.com/) based web server(body parser middleware can be used)
-
-## Install
-
-Install with [npm](http://github.com/isaacs/npm):
-
-```
- npm install soap
-```
-
-## Why can't I file an issue?
-
-We've disabled issues in the repository and are now solely reviewing pull requests. The reasons why we disabled issues can be found here [#731](https://github.com/vpulim/node-soap/pull/731).
-
-## Where can I find help?
-
-Community support can be found on gitter:
-
-[![Gitter chat][gitter-image]][gitter-url]
-
-If you're looking for professional help you can contact the maintainers through this [google form](https://docs.google.com/forms/d/e/1FAIpQLSdj5EXxd5flcukLInmpFQhEvQYeERaReFFh9F0nqC_4EUmeLg/viewform).
-
-## Module
-
-### soap.createClient(url[, options], callback) - create a new SOAP client from a WSDL url. Also supports a local filesystem path.
-
-``` javascript
- var soap = require('soap');
- var url = 'http://example.com/wsdl?wsdl';
- var args = {name: 'value'};
- soap.createClient(url, function(err, client) {
- client.MyFunction(args, function(err, result) {
- console.log(result);
- });
- });
-```
-This client has a built in WSDL cache. You can use the `disableCache` option to disable it.
-
-### soap.createClientAsync(url[, options]) - create a new SOAP client from a WSDL url. Also supports a local filesystem path.
-
-``` javascript
- var soap = require('soap');
- var url = 'http://example.com/wsdl?wsdl';
- var args = {name: 'value'};
- soap.createClientAsync(url).then((client) => {
- return client.MyFunctionAsync(args);
- }).then((result) => {
- console.log(result);
- });
-```
-
-This client has a built in WSDL cache. You can use the `disableCache` option to disable it.
-
-#### Options
-
-The `options` argument allows you to customize the client with the following properties:
-
-- endpoint: to override the SOAP service's host specified in the `.wsdl` file.
-- envelopeKey: to set specific key instead of `
`.
-- preserveWhitespace: to preserve leading and trailing whitespace characters in text and cdata.
-- escapeXML: escape special XML characters in SOAP message (e.g. `&`, `>`, `<` etc), default: `true`.
-- suppressStack: suppress the full stack trace for error messages.
-- returnFault: return an `Invalid XML` SOAP fault on a bad request, default: `false`.
-- forceSoap12Headers: to set proper headers for SOAP v1.2.
-- httpClient: to provide your own http client that implements `request(rurl, data, callback, exheaders, exoptions)`.
-- request: to override the [request](https://github.com/request/request) module.
-- wsdl_headers: custom HTTP headers to be sent on WSDL requests.
-- wsdl_options: custom options for the request module on WSDL requests.
-- disableCache: don't cache WSDL files, request them every time.
-- overridePromiseSuffix: if your wsdl operations contains names with Async suffix, you will need to override the default promise suffix to a custom one, default: `Async`.
-- normalizeNames: if your wsdl operations contains names with non identifier characters (`[^a-z$_0-9]`), replace them with `_`. Note: if using this option, clients using wsdls with two operations like `soap:method` and `soap-method` will be overwritten. Then, use bracket notation instead (`client['soap:method']()`).
-- namespaceArrayElements: provides support for nonstandard array semantics. If true, JSON arrays of the form `{list: [{elem: 1}, {elem: 2}]}` are marshalled into xml as `12`. If false, marshalls into `12`. Default: `true`.
-
-Note: for versions of node >0.10.X, you may need to specify `{connection: 'keep-alive'}` in SOAP headers to avoid truncation of longer chunked responses.
-
-### soap.listen(*server*, *path*, *services*, *wsdl*, *callback*) - create a new SOAP server that listens on *path* and provides *services*.
-*server* can be a [http](https://nodejs.org/api/http.html) Server or [express](http://expressjs.com/) framework based server
-*wsdl* is an xml string that defines the service.
-*callback* a function to run after the server has been initialized.
-
-``` javascript
- var myService = {
- MyService: {
- MyPort: {
- MyFunction: function(args) {
- return {
- name: args.name
- };
- },
-
- // This is how to define an asynchronous function with a callback.
- MyAsyncFunction: function(args, callback) {
- // do some work
- callback({
- name: args.name
- });
- },
-
- // This is how to define an asynchronous function with a Promise.
- MyPromiseFunction: function(args) {
- return new Promise((resolve) => {
- // do some work
- resolve({
- name: args.name
- });
- });
- },
-
- // This is how to receive incoming headers
- HeadersAwareFunction: function(args, cb, headers) {
- return {
- name: headers.Token
- };
- },
-
- // You can also inspect the original `req`
- reallyDetailedFunction: function(args, cb, headers, req) {
- console.log('SOAP `reallyDetailedFunction` request from ' + req.connection.remoteAddress);
- return {
- name: headers.Token
- };
- }
- }
- }
- };
-
- var xml = require('fs').readFileSync('myservice.wsdl', 'utf8');
-
- //http server example
- var server = http.createServer(function(request,response) {
- response.end('404: Not Found: ' + request.url);
- });
-
- server.listen(8000);
- soap.listen(server, '/wsdl', myService, xml, function(){
- console.log('server initialized');
- });
-
- //express server example
- var app = express();
- //body parser middleware are supported (optional)
- app.use(bodyParser.raw({type: function(){return true;}, limit: '5mb'}));
- app.listen(8001, function(){
- //Note: /wsdl route will be handled by soap module
- //and all other routes & middleware will continue to work
- soap.listen(app, '/wsdl', myService, xml, function(){
- console.log('server initialized');
- });
- });
-
-```
-
-### Options
-You can pass in server and [WSDL Options](#handling-xml-attributes-value-and-xml-wsdloptions)
-using an options hash.
-
-Server options include the below:
-- `pfx`: A string or Buffer containing the private key, certificate and CA certs of the server in PFX or PKCS12 format. (Mutually exclusive with the key, cert and ca options.)
-- `key`: A string or Buffer containing the private key of the server in PEM format. (Could be an array of keys). (Required)
-- `passphrase`: A string of passphrase for the private key or pfx.
-- `cert`: A string or Buffer containing the certificate key of the server in PEM format. (Could be an array of certs). (Required)
-- `ca`: An array of strings or Buffers of trusted certificates in PEM format. If this is omitted several well known "root" CAs will be used, like VeriSign. These are used to authorize connections.
-- `crl` : Either a string or list of strings of PEM encoded CRLs (Certificate Revocation List)
-- `ciphers`: A string describing the ciphers to use or exclude, separated by :. The default cipher suite is:
-- `enableChunkedEncoding`: A boolean for controlling chunked transfer encoding in response. Some client (such as Windows 10's MDM enrollment SOAP client) is sensitive to transfer-encoding mode and can't accept chunked response. This option let user disable chunked transfer encoding for such a client. Default to `true` for backward compatibility.
-
-``` javascript
-var xml = require('fs').readFileSync('myservice.wsdl', 'utf8');
-
-soap.listen(server, {
- // Server options.
- path: '/wsdl',
- services: myService,
- xml: xml,
-
- // WSDL options.
- attributesKey: 'theAttrs',
- valueKey: 'theVal',
- xmlKey: 'theXml'
-});
-```
-
-### Server Logging
-
-If the `log` method is defined it will be called with 'received' and 'replied'
-along with data.
-
-``` javascript
- server = soap.listen(...)
- server.log = function(type, data) {
- // type is 'received' or 'replied'
- };
-```
-
-### Server Events
-
-Server instances emit the following events:
-
-* request - Emitted for every received messages.
- The signature of the callback is `function(request, methodName)`.
-* response - Emitted before sending SOAP response.
- The signature of the callback is `function(response, methodName)`.
-* headers - Emitted when the SOAP Headers are not empty.
- The signature of the callback is `function(headers, methodName)`.
-
-The sequence order of the calls is `request`, `headers` and then the dedicated
-service method.
-
-### Server Response on one-way calls
-
-The so called one-way (or asynchronous) calls occur when an operation is called with no output defined in WSDL.
-The server sends a response (defaults to status code 200 with no body) to the client disregarding the result of the operation.
-
-You can configure the response to match the appropriate client expectation to the SOAP standard implementation.
-Pass in `oneWay` object in server options. Use the following keys:
-`emptyBody`: if true, returns an empty body, otherwise no content at all (default is false)
-`responseCode`: default statusCode is 200, override it with this options (for example 202 for SAP standard compliant response)
-
-### SOAP Fault
-
-A service method can reply with a SOAP Fault to a client by `throw`ing an
-object with a `Fault` property.
-
-``` javascript
- throw {
- Fault: {
- Code: {
- Value: 'soap:Sender',
- Subcode: { value: 'rpc:BadArguments' }
- },
- Reason: { Text: 'Processing Error' }
- }
- };
-```
-
-To change the HTTP statusCode of the response include it on the fault. The statusCode property will not be put on the xml message.
-
-``` javascript
- throw {
- Fault: {
- Code: {
- Value: 'soap:Sender',
- Subcode: { value: 'rpc:BadArguments' }
- },
- Reason: { Text: 'Processing Error' },
- statusCode: 500
- }
- };
-```
-
-### Server security example using PasswordDigest
-
-If `server.authenticate` is not defined then no authentication will take place.
-
-Asynchronous authentication:
-``` javascript
- server = soap.listen(...)
- server.authenticate = function(security, callback) {
- var created, nonce, password, user, token;
- token = security.UsernameToken, user = token.Username,
- password = token.Password, nonce = token.Nonce, created = token.Created;
-
- myDatabase.getUser(user, function (err, dbUser) {
- if (err || !dbUser) {
- callback(false);
- return;
- }
-
- callback(password === soap.passwordDigest(nonce, created, dbUser.password));
- });
- };
-```
-
-Synchronous authentication:
-``` javascript
- server = soap.listen(...)
- server.authenticate = function(security) {
- var created, nonce, password, user, token;
- token = security.UsernameToken, user = token.Username,
- password = token.Password, nonce = token.Nonce, created = token.Created;
- return user === 'user' && password === soap.passwordDigest(nonce, created, 'password');
- };
-```
-
-### Server connection authorization
-
-The `server.authorizeConnection` method is called prior to the soap service method.
-If the method is defined and returns `false` then the incoming connection is
-terminated.
-
-``` javascript
- server = soap.listen(...)
- server.authorizeConnection = function(req) {
- return true; // or false
- };
-```
-
-
-## SOAP Headers
-
-### Received SOAP Headers
-
-A service method can look at the SOAP headers by providing a 3rd arguments.
-
-``` javascript
- {
- HeadersAwareFunction: function(args, cb, headers) {
- return {
- name: headers.Token
- };
- }
- }
-```
-
-It is also possible to subscribe to the 'headers' event.
-The event is triggered before the service method is called, and only when the
-SOAP Headers are not empty.
-
-``` javascript
- server = soap.listen(...)
- server.on('headers', function(headers, methodName) {
- // It is possible to change the value of the headers
- // before they are handed to the service method.
- // It is also possible to throw a SOAP Fault
- });
-```
-
-First parameter is the Headers object;
-second parameter is the name of the SOAP method that will called
-(in case you need to handle the headers differently based on the method).
-
-### Outgoing SOAP Headers
-
-Both client & server can define SOAP headers that will be added to what they send.
-They provide the following methods to manage the headers.
-
-
-#### *addSoapHeader*(soapHeader[, name, namespace, xmlns]) - add soapHeader to soap:Header node
-##### Parameters
- - `soapHeader` Object({rootName: {name: 'value'}}), strict xml-string,
- or function (server only)
-
-For servers only, `soapHeader` can be a function, which allows headers to be
-dynamically generated from information in the request. This function will be
-called with the following arguments for each received request:
-
- - `methodName` The name of the request method
- - `args` The arguments of the request
- - `headers` The headers in the request
- - `req` The original request object
-
-The return value of the function must be an Object({rootName: {name: 'value'}})
-or strict xml-string, which will be inserted as an outgoing header of the
-response to that request.
-
-For example:
-
-``` javascript
- server = soap.listen(...);
- server.addSoapHeader(function(methodName, args, headers, req) {
- console.log('Adding headers for method', methodName);
- return {
- MyHeader1: args.SomeValueFromArgs,
- MyHeader2: headers.SomeRequestHeader
- };
- // or you can return "SomeValue"
- });
-```
-
-##### Returns
-The index where the header is inserted.
-
-##### Optional parameters when first arg is object :
- - `name` Unknown parameter (it could just a empty string)
- - `namespace` prefix of xml namespace
- - `xmlns` URI
-
-#### *changeSoapHeader*(index, soapHeader[, name, namespace, xmlns]) - change an already existing soapHeader
-##### Parameters
- - `index` index of the header to replace with provided new value
- - `soapHeader` Object({rootName: {name: 'value'}}), strict xml-string
- or function (server only)
-
-See `addSoapHeader` for how to pass a function into `soapHeader`.
-
-#### *getSoapHeaders*() - return all defined headers
-
-#### *clearSoapHeaders*() - remove all defined headers
-
-
-## Client
-
-An instance of `Client` is passed to the `soap.createClient` callback. It is used to execute methods on the soap service.
-
-### Client.describe() - description of services, ports and methods as a JavaScript object
-
-``` javascript
- client.describe() // returns
- {
- MyService: {
- MyPort: {
- MyFunction: {
- input: {
- name: 'string'
- }
- }
- }
- }
- }
-```
-
-### Client.setSecurity(security) - use the specified security protocol
-
-### Client.*method*(args, callback, options) - call *method* on the SOAP service.
-
-``` javascript
- client.MyFunction({name: 'value'}, function(err, result, rawResponse, soapHeader, rawRequest) {
- // result is a javascript object
- // rawResponse is the raw xml response string
- // soapHeader is the response soap header as a javascript object
- // rawRequest is the raw xml request string
- })
-```
-
-The `args` argument allows you to supply arguments that generate an XML document inside of the SOAP Body section.
-
-The `options` object is optional and is passed to the `request`-module.
-Interesting properties might be:
-* `timeout`: Timeout in milliseconds
-* `forever`: Enables keep-alive connections and pools them
-* `attachments`: array of attachment objects. This converts the request into MTOM: _headers['Content-Type']='multipart/related; type="application/xop+xml"; start= ... '_
- ```
- [{
- mimetype: content mimetype,
- contentId: part id,
- name: file name,
- body: binary data
- },
- ...
- ]
- ```
-* `forceMTOM`: set to True if you want to send the request as MTOM even if you don't have attachments
-
-
-### Client.*method*Async(args, options) - call *method* on the SOAP service.
-
-``` javascript
- client.MyFunctionAsync({name: 'value'}).then((result) => {
- // result is a javascript array containing result, rawResponse, soapheader, and rawRequest
- // result is a javascript object
- // rawResponse is the raw xml response string
- // soapHeader is the response soap header as a javascript object
- // rawRequest is the raw xml request string
- })
-```
-
-The `args` argument allows you to supply arguments that generate an XML document inside of the SOAP Body section.
-
-The `options` object is optional and is passed to the `request`-module.
-Interesting properties might be:
-* `timeout`: Timeout in milliseconds
-* `forever`: Enables keep-alive connections and pools them
-* `attachments`: array of attachment objects. This converts the request into MTOM: _headers['Content-Type']='multipart/related; type="application/xop+xml"; start= ... '_
- ```
- [{
- mimetype: content mimetype,
- contentId: part id,
- name: file name,
- body: binary data
- },
- ...
- ]
- ```
-* `forceMTOM`: set to True if you want to send the request as MTOM even if you don't have attachments
-
-##### Example with JSON for the `args`
-The example above uses `{name: 'value'}` as the args. This may generate a SOAP messages such as:
-
-``` javascript
-
-
-
-
- value
-
-
-
-```
-
-Note that the "Request" element in the output above comes from the WSDL. If an element in `args` contains no namespace prefix, the default namespace is assumed. Otherwise, you must add the namespace prefixes to the element names as necessary (e.g., `ns1:name`).
-
-Currently, when supplying JSON args, elements may not contain both child elements and a text value, even though that is allowed in the XML specification.
-
-##### Example with XML String for the `args`
-You may pass in a fully-formed XML string instead the individual elements in JSON `args` and attributes that make up the XML. The XML string should not contain an XML declaration (e.g., ``) or a document type declaration (e.g., ``).
-
-```
- var args = { _xml: "
- elementvalue
- "
- };
-```
-You must specify all of the namespaces and namespace prefixes yourself. The element(s) from the WSDL are not utilized as they were in the "Example with JSON as the `args`" example above, which automatically populated the "Request" element.
-
-### Client.*service*.*port*.*method*(args, callback[, options[, extraHeaders]]) - call a *method* using a specific *service* and *port*
-
-``` javascript
- client.MyService.MyPort.MyFunction({name: 'value'}, function(err, result) {
- // result is a javascript object
- })
-```
-
-#### Options (optional)
- - Accepts any option that the request module accepts, see [here.](https://github.com/mikeal/request)
- - For example, you could set a timeout of 5 seconds on the request like this:
-``` javascript
- client.MyService.MyPort.MyFunction({name: 'value'}, function(err, result) {
- // result is a javascript object
- }, {timeout: 5000})
-```
-
-- You can measure the elapsed time on the request by passing the time option:
-``` javascript
- client.MyService.MyPort.MyFunction({name: 'value'}, function(err, result) {
- // client.lastElapsedTime - the elapsed time of the last request in milliseconds
- }, {time: true})
-```
-
-- Also, you could pass your soap request through a debugging proxy such as [Fiddler](http://www.telerik.com/fiddler) or [Betwixt](https://github.com/kdzwinel/betwixt).
-``` javascript
- client.MyService.MyPort.MyFunction({name: 'value'}, function(err, result) {
- // client.lastElapsedTime - the elapsed time of the last request in milliseconds
- }, {proxy: 'http://localhost:8888'})
-```
-
-- You can modify xml (string) before call:
- ``` javascript
- client.MyService.MyPort.MyFunction({name: 'value'}, function(err, result) {
- // client.lastElapsedTime - the elapsed time of the last request in milliseconds
- }, {postProcess: function(_xml) {
- return _xml.replace('text', 'newtext');
- }})
- ```
-
-#### Extra Headers (optional)
-
-Object properties define extra HTTP headers to be sent on the request.
-
-- Add custom User-Agent:
-```javascript
-client.addHttpHeader('User-Agent', `CustomUserAgent`);
-```
-
-#### Alternative method call using callback-last pattern
-
-To align method call signature with node' standard callback-last patter and event allow promisification of method calls, the following method signatures are also supported:
-
-```javascript
-client.MyService.MyPort.MyFunction({name: 'value'}, options, function (err, result) {
- // result is a javascript object
-})
-
-client.MyService.MyPort.MyFunction({name: 'value'}, options, extraHeaders, function (err, result) {
- // result is a javascript object
-})
-```
-
-### Overriding the namespace prefix
-`node-soap` is still working out some kinks regarding namespaces. If you find that an element is given the wrong namespace prefix in the request body, you can add the prefix to it's name in the containing object. I.E.:
-
-```javascript
- client.MyService.MyPort.MyFunction({'ns1:name': 'value'}, function(err, result) {
- // request body sent with `${body}`;
-
- const res = await httpClient.post(`${baseURL}/ProcessProspect`, data);
- // Optionally, deserialize request and return response status.
-}
-```
-
-
-## Security
-
-`node-soap` has several default security protocols. You can easily add your own
-as well. The interface is quite simple. Each protocol defines these optional methods:
-* `addOptions(options)` - a method that accepts an options arg that is eventually passed directly to `request`.
-* `addHeaders(headers)` - a method that accepts an argument with HTTP headers, to add new ones.
-* `toXML()` - a method that returns a string of XML to be appended to the SOAP headers. Not executed if `postProcess` is also defined.
-* `postProcess(xml, envelopeKey)` - a method that receives the the assembled request XML plus envelope key, and returns a processed string of XML. Executed before `options.postProcess`.
-
-### BasicAuthSecurity
-
-``` javascript
- client.setSecurity(new soap.BasicAuthSecurity('username', 'password'));
-```
-
-### BearerSecurity
-
-``` javascript
- client.setSecurity(new soap.BearerSecurity('token'));
-```
-
-### ClientSSLSecurity
-
-_Note_: If you run into issues using this protocol, consider passing these options
-as default request options to the constructor:
-* `rejectUnauthorized: false`
-* `strictSSL: false`
-* `secureOptions: constants.SSL_OP_NO_TLSv1_2` (this is likely needed for node >= 10.0)
-
-If you want to reuse tls sessions, you can use the option `forever: true`.
-
-``` javascript
-client.setSecurity(new soap.ClientSSLSecurity(
- '/path/to/key',
- 'path/to/cert',
- '/path/to/ca-cert', /*or an array of buffer: [fs.readFileSync('/path/to/ca-cert/1', 'utf8'),
- 'fs.readFileSync('/path/to/ca-cert/2', 'utf8')], */
- { /*default request options like */
- // strictSSL: true,
- // rejectUnauthorized: false,
- // hostname: 'some-hostname'
- // secureOptions: constants.SSL_OP_NO_TLSv1_2,
- // forever: true,
- },
- ));
-```
-
-### ClientSSLSecurityPFX
-
-_Note_: If you run into issues using this protocol, consider passing these options
-as default request options to the constructor:
-* `rejectUnauthorized: false`
-* `strictSSL: false`
-* `secureOptions: constants.SSL_OP_NO_TLSv1_2` (this is likely needed for node >= 10.0)
-
-If you want to reuse tls sessions, you can use the option `forever: true`.
-
-``` javascript
-client.setSecurity(new soap.ClientSSLSecurityPFX(
- '/path/to/pfx/cert', // or a buffer: [fs.readFileSync('/path/to/pfx/cert', 'utf8'),
- 'path/to/optional/passphrase',
- { /*default request options like */
- // strictSSL: true,
- // rejectUnauthorized: false,
- // hostname: 'some-hostname'
- // secureOptions: constants.SSL_OP_NO_TLSv1_2,
- // forever: true,
- },
- ));
-```
-
-### WSSecurity
-
-`WSSecurity` implements WS-Security. UsernameToken and PasswordText/PasswordDigest is supported.
-
-``` javascript
- var options = {
- hasNonce: true,
- actor: 'actor'
- };
- var wsSecurity = new soap.WSSecurity('username', 'password', options)
- client.setSecurity(wsSecurity);
-```
-the `options` object is optional and can contain the following properties:
-* `passwordType`: 'PasswordDigest' or 'PasswordText' (default: `'PasswordText'`)
-* `hasTimeStamp`: adds Timestamp element (default: `true`)
-* `hasTokenCreated`: adds Created element (default: `true`)
-* `hasNonce`: adds Nonce element (default: `false`)
-* `mustUnderstand`: adds mustUnderstand=1 attribute to security tag (default: `false`)
-* `actor`: if set, adds Actor attribute with given value to security tag (default: `''`)
-
-### WSSecurityCert
-
-WS-Security X509 Certificate support.
-
-``` javascript
- var privateKey = fs.readFileSync(privateKeyPath);
- var publicKey = fs.readFileSync(publicKeyPath);
- var password = ''; // optional password
- var options = {
- hasTimeStamp: true,
- additionalReferences: [
- 'wsa:Action',
- 'wsa:ReplyTo',
- 'wsa:To',
- ],
- signerOptions: {
- prefix: 'ds',
- attrs: { Id: 'Signature' },
- existingPrefixes: {
- wsse: 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
- }
- }
- var wsSecurity = new soap.WSSecurityCert(privateKey, publicKey, password, options);
- client.setSecurity(wsSecurity);
-```
-
-The `options` object is optional and can contain the following properties:
-* `hasTimeStamp`: Includes Timestamp tags (default: `true`)
-* `signatureTransformations`: sets the Reference Transforms Algorithm (default ['http://www.w3.org/2000/09/xmldsig#enveloped-signature', 'http://www.w3.org/2001/10/xml-exc-c14n#']). Type is a string array
-* `signatureAlgorithm`: set to `http://www.w3.org/2001/04/xmldsig-more#rsa-sha256` to use sha256
-* `additionalReferences` : (optional) Array of Soap headers that need to be signed. This need to be added using `client.addSoapHeader('header')`
-* `signerOptions`: (optional) passes options to the XML Signer package - from (https://github.com/yaronn/xml-crypto)
- * `existingPrefixes`: (optional) A hash of prefixes and namespaces prefix: namespace that shouldn't be in the signature because they already exist in the xml (default: `{ 'wsse': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' }`)
- * `prefix`: (optional) Adds this value as a prefix for the generated signature tags.
- * `attrs`: (optional) A hash of attributes and values attrName: value to add to the signature root node
-
-#### Option examples
-
-`hasTimeStamp:true`
-
-``` xml
-
-
- XXX
-
-
- 2019-10-01T08:17:50Z
- 2019-10-01T08:27:50Z
-
-
-
- ...
-
-
-
-
-
-
- XyZ=
-
-
-
-
-
-```
-
-`additionalReferences: ['To']`
-``` XML
-
- localhost.com
-
- XXX
-
-
-
-
-
-
-
-
-
-
-
- XYZ
-
-
-
- Rf6M4F4puQuQHJIPtJz1CZIVvF3qOdpEEcuAiooWkX5ecnAHSf3RW3sOIzFUWW7VOOncJcts/3xr8DuN4+8Wm9hx1MoOcWJ6kyRIdVNbQWLseIcAhxYCntRY57T2TBXzpb0UPA56pry1+TEcnIQXhdIzG5YT+tTVTp+SZHHcnlP5Y+yqnIOH9wzgRvAovbydTYPCODF7Ana9K/7CSGDe7vpVT85CUYUcJE4DfTxaRa9gKkKrBdPN9vFVi0WfxtMF4kv23cZRCZzS5+CoLfPlx3mq65gVXsqH01RLbktNJq9VaQKcZUgapmUCMzrYhqyzUQJ8HrSHqe+ya2GsjlB0VQ==
-
-
-
-
-
-
-
-
-
-```
-
-`signerOptions.prefix:'ds'`
-
-``` XML
-
- localhost.com
-
- XXX
-
-
-
-
-
-
-
-
-
-
-
- XYZ
-
-
-
- Rf6M4F4puQuQHJIPtJz1CZIVvF3qOdpEEcuAiooWkX5ecnAHSf3RW3sOIzFUWW7VOOncJcts/3xr8DuN4+8Wm9hx1MoOcWJ6kyRIdVNbQWLseIcAhxYCntRY57T2TBXzpb0UPA56pry1+TEcnIQXhdIzG5YT+tTVTp+SZHHcnlP5Y+yqnIOH9wzgRvAovbydTYPCODF7Ana9K/7CSGDe7vpVT85CUYUcJE4DfTxaRa9gKkKrBdPN9vFVi0WfxtMF4kv23cZRCZzS5+CoLfPlx3mq65gVXsqH01RLbktNJq9VaQKcZUgapmUCMzrYhqyzUQJ8HrSHqe+ya2GsjlB0VQ==
-
-
-
-
-
-
-
-
-
-```
-
-`signerOptions.attrs:{ Id: 'signature-100', foo:'bar'}`
-
-``` xml
-
-
- XXX
-
-
- 2019-10-01T08:17:50Z
- 2019-10-01T08:27:50Z
-
-
-
- ...
-
-
-
-
-
-
- XyZ=
-
-
-
-
-
-```
-
-### NTLMSecurity
-
-Parameter invocation:
-``` javascript
- client.setSecurity(new soap.NTLMSecurity('username', 'password', 'domain', 'workstation'));
-```
-This can also be set up with a JSON object, substituting values as appropriate, for example:
-``` javascript
- var loginData = {username: 'username', password: 'password', domain: 'domain', workstation: 'workstation'};
- client.setSecurity(new soap.NTLMSecurity(loginData));
-```
-
-## Handling XML Attributes, Value and XML (wsdlOptions).
-Sometimes it is necessary to override the default behaviour of `node-soap` in order to deal with the special requirements
-of your code base or a third library you use. Therefore you can use the `wsdlOptions` Object, which is passed in the
-`#createClient()` method and could have any (or all) of the following contents:
-```javascript
-var wsdlOptions = {
- attributesKey: 'theAttrs',
- valueKey: 'theVal',
- xmlKey: 'theXml'
-}
-```
-If nothing (or an empty Object `{}`) is passed to the `#createClient()` method, the `node-soap` defaults (`attributesKey: 'attributes'`, `valueKey: '$value'` and `xmlKey: '$xml'`) are used.
-
-### Overriding the `value` key
-By default, `node-soap` uses `$value` as the key for any parsed XML value which may interfere with your other code as it
-could be some reserved word, or the `$` in general cannot be used for a key to start with.
-
-You can define your own `valueKey` by passing it in the `wsdl_options` to the createClient call:
-```javascript
-var wsdlOptions = {
- valueKey: 'theVal'
-};
-
-soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', wsdlOptions, function (err, client) {
- // your code
-});
-```
-
-### Overriding the `xml` key
-By default, `node-soap` uses `$xml` as the key to pass through an XML string as is; without parsing or namespacing it. It overrides all the other content that the node might have otherwise had.
-
-For example :
-```javascript
-{
- dom: {
- nodeone: {
- $xml: '',
- siblingnode: 'Cant see me.'
- },
- nodetwo: {
- parentnode: {
- attributes: {
- type: 'type'
- },
- childnode: ''
- }
- }
- }
-};
-```
-could become
-```xml
-
-
-
-
-
-
-
-
-
-
-
-
-```
-
-You can define your own `xmlKey` by passing it in the `wsdl_options` object to the createClient call:
-```javascript
-var wsdlOptions = {
- xmlKey: 'theXml'
-};
-
-soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', wsdlOptions, function (err, client) {
- // your code
-});
-```
-
-### Overriding the `attributes` key
-By default, `node-soap` uses `attributes` as the key to define a nodes attributes.
-
-``` javascript
-{
- parentnode: {
- childnode: {
- attributes: {
- name: 'childsname'
- },
- $value: 'Value'
- }
- }
-}
-```
-could become
-``` xml
-
- Value
-
-```
-
-However, `attributes` may be a reserved key for some systems that actually want a node called `attributes`
-```xml
-
-
-```
-
-You can define your own `attributesKey` by passing it in the `wsdl_options` object to the createClient call:
-```javascript
-var wsdlOptions = {
- attributesKey: '$attributes'
-};
-
-soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', wsdlOptions, function (err, client) {
- client.method({
- parentnode: {
- childnode: {
- $attributes: {
- name: 'childsname'
- },
- $value: 'Value'
- }
- }
- });
-});
-```
-
-### Overriding imports relative paths
-
-By default, WSDL and schema files import other schemas and types using relative paths.
-
-However in some systems (i.e. NetSuite) when the wsdl is downloaded for offline caching, all files are flattened under a single directory and all the imports fail.
-Passing this option allows `node-soap` to correctly load all files.
-
-```javascript
-var options ={
- wsdl_options = { fixedPath: true }
-};
-soap.createClient(__dirname+'/wsdl/fixedPath/netsuite.wsdl', options, function(err, client) {
- // your code
-});
-```
-
-### Specifying the exact namespace definition of the root element
-In rare cases, you may want to precisely control the namespace definition that is included in the root element.
-
-You can specify the namespace definitions by setting the `overrideRootElement` key in the `wsdlOptions` like so:
-```javascript
-var wsdlOptions = {
- overrideRootElement: {
- namespace: 'xmlns:tns',
- xmlnsAttributes: [{
- name: 'xmlns:ns2',
- value: "http://tempuri.org/"
- }, {
- name: 'xmlns:ns3',
- value: "http://sillypets.com/xsd"
- }]
- }
-};
-```
-
-To see it in practice, have a look at the sample files in: [test/request-response-samples/addPets__force_namespaces](https://github.com/vpulim/node-soap/tree/master/test/request-response-samples/addPets__force_namespaces)
-
-### Custom Deserializer
-
-Sometimes it's useful to handle deserialization in your code instead of letting node-soap do it.
-For example if the soap response contains dates that are not in a format recognized by javascript, you might want to use your own function to handle them.
-
-To do so, you can pass a `customDeserializer` object in `options`. The properties of this object are the types that your deserializer handles itself.
-
-Example :
-```javascript
-
- var wsdlOptions = {
- customDeserializer: {
-
- // this function will be used to any date found in soap responses
- date: function (text, context) {
- /* text is the value of the xml element.
- context contains the name of the xml element and other infos :
- {
- name: 'lastUpdatedDate',
- object: {},
- schema: 'xsd:date',
- id: undefined,
- nil: false
- }
-
- */
- return text;
- }
- }
- };
-
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', wsdlOptions, function (err, client) {
- ...
- });
-
-```
-
-### Changing the tag formats to use self-closing (empty element) tags
-The XML specification specifies that there is no semantic difference between `` and ``, and node-soap defaults to using the `` format. But if your web service is particular, or if there is a stylistic preference, the `useEmptyTag` option causes tags with no contents to use the `` format instead.
-
-```javascript
-var wsdlOptions = {
- useEmptyTag: true
-};
-```
-
-For example: `{ MyTag: { attributes: { MyAttr: 'value' } } }` is:
-
-* **Without useEmptyTag**: ``
-* **With useEmptyTag set to true**: ``
-
-## Handling "ignored" namespaces
-If an Element in a `schema` definition depends on an Element which is present in the same namespace, normally the `tns:`
-namespace prefix is used to identify this Element. This is not much of a problem as long as you have just one `schema` defined
-(inline or in a separate file). If there are more `schema` files, the `tns:` in the generated `soap` file resolved mostly to the parent `wsdl` file,
- which was obviously wrong.
-
- `node-soap` now handles namespace prefixes which shouldn't be resolved (because it's not necessary) as so called `ignoredNamespaces`
- which default to an Array of 3 Strings (`['tns', 'targetNamespace', 'typedNamespace']`).
-
- If this is not sufficient for your purpose you can easily add more namespace prefixes to this Array, or override it in its entirety
- by passing an `ignoredNamespaces` object within the `options` you pass in `soap.createClient()` method.
-
- A simple `ignoredNamespaces` object, which only adds certain namespaces could look like this:
- ```
- var options = {
- ignoredNamespaces: {
- namespaces: ['namespaceToIgnore', 'someOtherNamespace']
- }
- }
- ```
- This would extend the `ignoredNamespaces` of the `WSDL` processor to `['tns', 'targetNamespace', 'typedNamespace', 'namespaceToIgnore', 'someOtherNamespace']`.
-
- If you want to override the default ignored namespaces you would simply pass the following `ignoredNamespaces` object within the `options`:
- ```
- var options = {
- ignoredNamespaces: {
- namespaces: ['namespaceToIgnore', 'someOtherNamespace'],
- override: true
- }
- }
- ```
- This would override the default `ignoredNamespaces` of the `WSDL` processor to `['namespaceToIgnore', 'someOtherNamespace']`. (This shouldn't be necessary, anyways).
-
- If you want to override the default ignored namespaces you would simply pass the following `ignoredNamespaces` object within the `options`:
- ```
- var options = {
- ignoredNamespaces: {
- namespaces: ['namespaceToIgnore', 'someOtherNamespace'],
- override: true
- }
- }
- ```
- This would override the default `ignoredNamespaces` of the `WSDL` processor to `['namespaceToIgnore', 'someOtherNamespace']`. (This shouldn't be necessary, anyways).
-
-## Handling "ignoreBaseNameSpaces" attribute
-If an Element in a `schema` definition depends has a basenamespace defined but the request does not need that value, for example you have a "sentJob" with basenamespace "v20"
-but the request need only: set in the tree structure, you need to set the ignoreBaseNameSpaces to true. This is set because in a lot of workaround the wsdl structure is not correctly
-set or the webservice bring errors.
-
-By default the attribute is set to true.
-An example to use:
-
-A simple `ignoredNamespaces` object, which only adds certain namespaces could look like this:
-```
-var options = {
-ignoredNamespaces: true
-}
-```
-
-## soap-stub
-
-Unit testing services that use soap clients can be very cumbersome. In order to get
-around this you can use `soap-stub` in conjunction with `sinon` to stub soap with
-your clients.
-
-### Example
-
-```javascript
-// test-initialization-script.js
-var sinon = require('sinon');
-var soapStub = require('soap/soap-stub');
-
-var urlMyApplicationWillUseWithCreateClient = 'http://path-to-my-wsdl';
-var clientStub = {
- SomeOperation: sinon.stub()
-};
-
-clientStub.SomeOperation.respondWithError = soapStub.createErroringStub({..error json...});
-clientStub.SomeOperation.respondWithSuccess = soapStub.createRespondingStub({..success json...});
-
-soapStub.registerClient('my client alias', urlMyApplicationWillUseWithCreateClient, clientStub);
-
-// test.js
-var soapStub = require('soap/soap-stub');
-
-describe('myService', function() {
- var clientStub;
- var myService;
-
- beforeEach(function() {
- clientStub = soapStub.getStub('my client alias');
- soapStub.reset();
- myService.init(clientStub);
- });
-
- describe('failures', function() {
- beforeEach(function() {
- clientStub.SomeOperation.respondWithError();
- });
-
- it('should handle error responses', function() {
- myService.somethingThatCallsSomeOperation(function(err, response) {
- // handle the error response.
- });
- });
- });
-});
-```
-
-
-## Contributors
-
- * Author: [Vinay Pulim](https://github.com/vpulim)
- * Maintainers:
- - [Joe Spencer](https://github.com/jsdevel)
- - [Heinz Romirer](https://github.com/herom)
- * [All Contributors](https://github.com/vpulim/node-soap/graphs/contributors)
-
-[downloads-image]: http://img.shields.io/npm/dm/soap.svg
-[npm-url]: https://npmjs.org/package/soap
-[npm-image]: http://img.shields.io/npm/v/soap.svg
-
-[travis-url]: https://travis-ci.org/vpulim/node-soap
-[travis-image]: http://img.shields.io/travis/vpulim/node-soap.svg
-
-[gitter-url]: https://gitter.im/vpulim/node-soap
-[gitter-image]: https://badges.gitter.im/vpulim/node-soap.png
-
-[coveralls-url]: https://coveralls.io/r/vpulim/node-soap
-[coveralls-image]: http://img.shields.io/coveralls/vpulim/node-soap/master.svg
+## License
+MIT
\ No newline at end of file
diff --git a/index.js b/index.js
index a1f02521a..521a4d743 100644
--- a/index.js
+++ b/index.js
@@ -1,3 +1,3 @@
-"use strict";
+'use strict';
module.exports = require('./lib/soap');
diff --git a/package-lock.json b/package-lock.json
deleted file mode 100644
index b06f44da4..000000000
--- a/package-lock.json
+++ /dev/null
@@ -1,3769 +0,0 @@
-{
- "name": "soap",
- "version": "0.29.0",
- "lockfileVersion": 1,
- "requires": true,
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.5.5",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz",
- "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==",
- "dev": true,
- "requires": {
- "@babel/highlight": "^7.0.0"
- }
- },
- "@babel/generator": {
- "version": "7.5.5",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.5.5.tgz",
- "integrity": "sha512-ETI/4vyTSxTzGnU2c49XHv2zhExkv9JHLTwDAFz85kmcwuShvYG2H08FwgIguQf4JC75CBnXAUM5PqeF4fj0nQ==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.5.5",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.13",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- },
- "dependencies": {
- "source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
- "dev": true
- }
- }
- },
- "@babel/helper-function-name": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz",
- "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "^7.0.0",
- "@babel/template": "^7.1.0",
- "@babel/types": "^7.0.0"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz",
- "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.0.0"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.4.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz",
- "integrity": "sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.4.4"
- }
- },
- "@babel/highlight": {
- "version": "7.5.0",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz",
- "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^4.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.5.5",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.5.5.tgz",
- "integrity": "sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g==",
- "dev": true
- },
- "@babel/template": {
- "version": "7.4.4",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.4.4.tgz",
- "integrity": "sha512-CiGzLN9KgAvgZsnivND7rkA+AeJ9JB0ciPOD4U59GKbQP2iQl+olF1l76kJOupqidozfZ32ghwBEJDhnk9MEcw==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.0.0",
- "@babel/parser": "^7.4.4",
- "@babel/types": "^7.4.4"
- }
- },
- "@babel/traverse": {
- "version": "7.5.5",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.5.5.tgz",
- "integrity": "sha512-MqB0782whsfffYfSjH4TM+LMjrJnhCNEDMDIjeTpl+ASaUvxcjoiVCo/sM1GhS1pHOXYfWVCYneLjMckuUxDaQ==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.5.5",
- "@babel/generator": "^7.5.5",
- "@babel/helper-function-name": "^7.1.0",
- "@babel/helper-split-export-declaration": "^7.4.4",
- "@babel/parser": "^7.5.5",
- "@babel/types": "^7.5.5",
- "debug": "^4.1.0",
- "globals": "^11.1.0",
- "lodash": "^4.17.13"
- }
- },
- "@babel/types": {
- "version": "7.5.5",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.5.5.tgz",
- "integrity": "sha512-s63F9nJioLqOlW3UkyMd+BYhXt44YuaFm/VV0VwuteqjYwRrObkU7ra9pY4wAJR3oXi8hJrMcrcJdO/HH33vtw==",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.13",
- "to-fast-properties": "^2.0.0"
- }
- },
- "@textlint/ast-node-types": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-4.2.1.tgz",
- "integrity": "sha512-Pqg1LTJpF929Ovi/lCaPqlyz8yDwBFbQulC0jyQcbRAoTxYS4AZMc48Ug2yk0so5hISQXKrlAxyVBmBVl9EKGA==",
- "dev": true
- },
- "@textlint/markdown-to-ast": {
- "version": "6.0.9",
- "resolved": "https://registry.npmjs.org/@textlint/markdown-to-ast/-/markdown-to-ast-6.0.9.tgz",
- "integrity": "sha512-hfAWBvTeUGh5t5kTn2U3uP3qOSM1BSrxzl1jF3nn0ywfZXpRBZr5yRjXnl4DzIYawCtZOshmRi/tI3/x4TE1jQ==",
- "dev": true,
- "requires": {
- "@textlint/ast-node-types": "^4.0.3",
- "debug": "^2.1.3",
- "remark-frontmatter": "^1.2.0",
- "remark-parse": "^5.0.0",
- "structured-source": "^3.0.2",
- "traverse": "^0.6.6",
- "unified": "^6.1.6"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- }
- }
- },
- "@types/bluebird": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.26.tgz",
- "integrity": "sha512-aj2mrBLn5ky0GmAg6IPXrQjnN0iB/ulozuJ+oZdrHRAzRbXjGmu4UXsNCjFvPbSaaPZmniocdOzsM392qLOlmQ==",
- "dev": true
- },
- "@types/body-parser": {
- "version": "1.17.0",
- "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.17.0.tgz",
- "integrity": "sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w==",
- "dev": true,
- "requires": {
- "@types/connect": "*",
- "@types/node": "*"
- }
- },
- "@types/caseless": {
- "version": "0.12.1",
- "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.1.tgz",
- "integrity": "sha512-FhlMa34NHp9K5MY1Uz8yb+ZvuX0pnvn3jScRSNAb75KHGB8d3rEU6hqMs3Z2vjuytcMfRg6c5CHMc3wtYyD2/A=="
- },
- "@types/connect": {
- "version": "3.4.32",
- "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.32.tgz",
- "integrity": "sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/debug": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.2.tgz",
- "integrity": "sha512-jkf6UiWUjcOqdQbatbvOm54/YbCdjt3JjiAzT/9KS2XtMmOkYHdKsI5u8fulhbuTUuiqNBfa6J5GSDiwjK+zLA==",
- "dev": true
- },
- "@types/events": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz",
- "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==",
- "dev": true
- },
- "@types/express": {
- "version": "4.16.1",
- "resolved": "https://registry.npmjs.org/@types/express/-/express-4.16.1.tgz",
- "integrity": "sha512-V0clmJow23WeyblmACoxbHBu2JKlE5TiIme6Lem14FnPW9gsttyHtk6wq7njcdIWH1njAaFgR8gW09lgY98gQg==",
- "dev": true,
- "requires": {
- "@types/body-parser": "*",
- "@types/express-serve-static-core": "*",
- "@types/serve-static": "*"
- }
- },
- "@types/express-serve-static-core": {
- "version": "4.16.1",
- "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.16.1.tgz",
- "integrity": "sha512-QgbIMRU1EVRry5cIu1ORCQP4flSYqLM1lS5LYyGWfKnFT3E58f0gKto7BR13clBFVrVZ0G0rbLZ1hUpSkgQQOA==",
- "dev": true,
- "requires": {
- "@types/node": "*",
- "@types/range-parser": "*"
- }
- },
- "@types/form-data": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz",
- "integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==",
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/fs-extra": {
- "version": "5.0.5",
- "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-5.0.5.tgz",
- "integrity": "sha512-w7iqhDH9mN8eLClQOYTkhdYUOSpp25eXxfc6VbFOGtzxW34JcvctH2bKjj4jD4++z4R5iO5D+pg48W2e03I65A==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/glob": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz",
- "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==",
- "dev": true,
- "requires": {
- "@types/events": "*",
- "@types/minimatch": "*",
- "@types/node": "*"
- }
- },
- "@types/handlebars": {
- "version": "4.0.40",
- "resolved": "https://registry.npmjs.org/@types/handlebars/-/handlebars-4.0.40.tgz",
- "integrity": "sha512-sGWNtsjNrLOdKha2RV1UeF8+UbQnPSG7qbe5wwbni0mw4h2gHXyPFUMOC+xwGirIiiydM/HSqjDO4rk6NFB18w==",
- "dev": true
- },
- "@types/highlight.js": {
- "version": "9.12.3",
- "resolved": "https://registry.npmjs.org/@types/highlight.js/-/highlight.js-9.12.3.tgz",
- "integrity": "sha512-pGF/zvYOACZ/gLGWdQH8zSwteQS1epp68yRcVLJMgUck/MjEn/FBYmPub9pXT8C1e4a8YZfHo1CKyV8q1vKUnQ==",
- "dev": true
- },
- "@types/lodash": {
- "version": "4.14.122",
- "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.122.tgz",
- "integrity": "sha512-9IdED8wU93ty8gP06ninox+42SBSJHp2IAamsSYMUY76mshRTeUsid/gtbl8ovnOwy8im41ib4cxTiIYMXGKew==",
- "dev": true
- },
- "@types/marked": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.4.2.tgz",
- "integrity": "sha512-cDB930/7MbzaGF6U3IwSQp6XBru8xWajF5PV2YZZeV8DyiliTuld11afVztGI9+yJZ29il5E+NpGA6ooV/Cjkg==",
- "dev": true
- },
- "@types/mime": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.1.tgz",
- "integrity": "sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw==",
- "dev": true
- },
- "@types/minimatch": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
- "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==",
- "dev": true
- },
- "@types/node": {
- "version": "11.11.0",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.0.tgz",
- "integrity": "sha512-D5Rt+HXgEywr3RQJcGlZUCTCx1qVbCZpVk3/tOOA6spLNZdGm8BU+zRgdRYDoF1pO3RuXLxADzMrF903JlQXqg=="
- },
- "@types/range-parser": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz",
- "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==",
- "dev": true
- },
- "@types/request": {
- "version": "2.48.1",
- "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.1.tgz",
- "integrity": "sha512-ZgEZ1TiD+KGA9LiAAPPJL68Id2UWfeSO62ijSXZjFJArVV+2pKcsVHmrcu+1oiE3q6eDGiFiSolRc4JHoerBBg==",
- "requires": {
- "@types/caseless": "*",
- "@types/form-data": "*",
- "@types/node": "*",
- "@types/tough-cookie": "*"
- }
- },
- "@types/sax": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.0.1.tgz",
- "integrity": "sha512-5O70hTAMd9zEOoHiDJ6lk/WvqQgH+aIqU6zkvPLKIl6WJkQeHecHRUWomkjQzAAYPG346nDNus7y724FzTwTKQ==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/serve-static": {
- "version": "1.13.2",
- "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.2.tgz",
- "integrity": "sha512-/BZ4QRLpH/bNYgZgwhKEh+5AsboDBcUdlBYgzoLX0fpj3Y2gp6EApyOlM3bK53wQS/OE1SrdSYBAbux2D1528Q==",
- "dev": true,
- "requires": {
- "@types/express-serve-static-core": "*",
- "@types/mime": "*"
- }
- },
- "@types/shelljs": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/@types/shelljs/-/shelljs-0.8.3.tgz",
- "integrity": "sha512-miY41hqc5SkRlsZDod3heDa4OS9xv8G77EMBQuSpqq86HBn66l7F+f8y9YKm+1PIuwC8QEZVwN8YxOOG7Y67fA==",
- "dev": true,
- "requires": {
- "@types/glob": "*",
- "@types/node": "*"
- }
- },
- "@types/tough-cookie": {
- "version": "2.3.5",
- "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.5.tgz",
- "integrity": "sha512-SCcK7mvGi3+ZNz833RRjFIxrn4gI1PPR3NtuIS+6vMkvmsGjosqTJwRt5bAEFLRz+wtJMWv8+uOnZf2hi2QXTg=="
- },
- "@types/uuid": {
- "version": "3.4.4",
- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.4.tgz",
- "integrity": "sha512-tPIgT0GUmdJQNSHxp0X2jnpQfBSTfGxUMc/2CXBU2mnyTFVYVa2ojpoQ74w0U2yn2vw3jnC640+77lkFFpdVDw==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
- "accepts": {
- "version": "1.3.5",
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
- "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
- "dev": true,
- "requires": {
- "mime-types": "~2.1.18",
- "negotiator": "0.6.1"
- }
- },
- "ajv": {
- "version": "6.9.1",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.1.tgz",
- "integrity": "sha512-XDN92U311aINL77ieWHmqCcNlwjoP5cHXDxIxbf2MaPYuCXOHS7gHH8jktxeK5omgd52XbSTX6a4Piwd1pQmzA==",
- "requires": {
- "fast-deep-equal": "^2.0.1",
- "fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.4.1",
- "uri-js": "^4.2.2"
- }
- },
- "anchor-markdown-header": {
- "version": "0.5.7",
- "resolved": "https://registry.npmjs.org/anchor-markdown-header/-/anchor-markdown-header-0.5.7.tgz",
- "integrity": "sha1-BFBj125qH5zTJ6V6ASaqD97Dcac=",
- "dev": true,
- "requires": {
- "emoji-regex": "~6.1.0"
- }
- },
- "ansi-colors": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz",
- "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==",
- "dev": true
- },
- "ansi-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
- "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
- "dev": true
- },
- "ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "dev": true,
- "requires": {
- "color-convert": "^1.9.0"
- }
- },
- "append-transform": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-1.0.0.tgz",
- "integrity": "sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw==",
- "dev": true,
- "requires": {
- "default-require-extensions": "^2.0.0"
- }
- },
- "archy": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz",
- "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=",
- "dev": true
- },
- "argparse": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
- "dev": true,
- "requires": {
- "sprintf-js": "~1.0.2"
- }
- },
- "array-flatten": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
- "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=",
- "dev": true
- },
- "asn1": {
- "version": "0.2.4",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
- "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
- "requires": {
- "safer-buffer": "~2.1.0"
- }
- },
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
- },
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
- },
- "aws-sign2": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
- "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
- },
- "aws4": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
- "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
- },
- "bail": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.3.tgz",
- "integrity": "sha512-1X8CnjFVQ+a+KW36uBNMTU5s8+v5FzeqrP7hTG5aTb4aPreSbZJlhwPon9VKMuEVgV++JM+SQrALY3kr7eswdg==",
- "dev": true
- },
- "balanced-match": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
- "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
- "dev": true
- },
- "bcrypt-pbkdf": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
- "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
- "requires": {
- "tweetnacl": "^0.14.3"
- }
- },
- "bluebird": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz",
- "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw=="
- },
- "body-parser": {
- "version": "1.18.3",
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz",
- "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=",
- "dev": true,
- "requires": {
- "bytes": "3.0.0",
- "content-type": "~1.0.4",
- "debug": "2.6.9",
- "depd": "~1.1.2",
- "http-errors": "~1.6.3",
- "iconv-lite": "0.4.23",
- "on-finished": "~2.3.0",
- "qs": "6.5.2",
- "raw-body": "2.3.3",
- "type-is": "~1.6.16"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- }
- }
- },
- "boundary": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/boundary/-/boundary-1.0.1.tgz",
- "integrity": "sha1-TWfcJgLAzBbdm85+v4fpSCkPWBI=",
- "dev": true
- },
- "brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dev": true,
- "requires": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "browser-stdout": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
- "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
- "dev": true
- },
- "buffer-from": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
- "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
- },
- "builtin-modules": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
- "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
- "dev": true
- },
- "bytes": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
- "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",
- "dev": true
- },
- "caching-transform": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-3.0.2.tgz",
- "integrity": "sha512-Mtgcv3lh3U0zRii/6qVgQODdPA4G3zhG+jtbCWj39RXuUFTMzH0vcdMtaJS1jPowd+It2Pqr6y3NJMQqOqCE2w==",
- "dev": true,
- "requires": {
- "hasha": "^3.0.0",
- "make-dir": "^2.0.0",
- "package-hash": "^3.0.0",
- "write-file-atomic": "^2.4.2"
- }
- },
- "camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
- "dev": true
- },
- "caseless": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
- "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
- },
- "chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- },
- "dependencies": {
- "supports-color": {
- "version": "5.5.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
- "dev": true,
- "requires": {
- "has-flag": "^3.0.0"
- }
- }
- }
- },
- "character-entities": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.2.tgz",
- "integrity": "sha512-sMoHX6/nBiy3KKfC78dnEalnpn0Az0oSNvqUWYTtYrhRI5iUIYsROU48G+E+kMFQzqXaJ8kHJZ85n7y6/PHgwQ==",
- "dev": true
- },
- "character-entities-legacy": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.2.tgz",
- "integrity": "sha512-9NB2VbXtXYWdXzqrvAHykE/f0QJxzaKIpZ5QzNZrrgQ7Iyxr2vnfS8fCBNVW9nUEZE0lo57nxKRqnzY/dKrwlA==",
- "dev": true
- },
- "character-reference-invalid": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.2.tgz",
- "integrity": "sha512-7I/xceXfKyUJmSAn/jw8ve/9DyOP7XxufNYLI9Px7CmsKgEUaZLUTax6nZxGQtaoiZCjpu6cHPj20xC/vqRReQ==",
- "dev": true
- },
- "cli": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz",
- "integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=",
- "dev": true,
- "requires": {
- "exit": "0.1.2",
- "glob": "^7.1.1"
- }
- },
- "cliui": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
- "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==",
- "dev": true,
- "requires": {
- "string-width": "^2.1.1",
- "strip-ansi": "^4.0.0",
- "wrap-ansi": "^2.0.0"
- }
- },
- "code-point-at": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
- "dev": true
- },
- "collapse-white-space": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.4.tgz",
- "integrity": "sha512-YfQ1tAUZm561vpYD+5eyWN8+UsceQbSrqqlc/6zDY2gtAE+uZLSdkkovhnGpmCThsvKBFakq4EdY/FF93E8XIw==",
- "dev": true
- },
- "color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "dev": true,
- "requires": {
- "color-name": "1.1.3"
- }
- },
- "color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
- "dev": true
- },
- "colors": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz",
- "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==",
- "dev": true
- },
- "combined-stream": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz",
- "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==",
- "requires": {
- "delayed-stream": "~1.0.0"
- }
- },
- "commander": {
- "version": "2.20.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
- "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
- "dev": true
- },
- "commondir": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
- "dev": true
- },
- "concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
- "dev": true
- },
- "concat-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz",
- "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
- "requires": {
- "buffer-from": "^1.0.0",
- "inherits": "^2.0.3",
- "readable-stream": "^3.0.2",
- "typedarray": "^0.0.6"
- },
- "dependencies": {
- "readable-stream": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.1.1.tgz",
- "integrity": "sha512-DkN66hPyqDhnIQ6Jcsvx9bFjhw214O4poMBcIMgPVpQvNy9a0e0Uhg5SqySyDKAmUlwt8LonTBz1ezOnM8pUdA==",
- "requires": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- }
- }
- }
- },
- "console-browserify": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz",
- "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=",
- "dev": true,
- "requires": {
- "date-now": "^0.1.4"
- }
- },
- "content-disposition": {
- "version": "0.5.2",
- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
- "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=",
- "dev": true
- },
- "content-type": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
- "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
- "dev": true
- },
- "convert-source-map": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz",
- "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==",
- "dev": true,
- "requires": {
- "safe-buffer": "~5.1.1"
- }
- },
- "cookie": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
- "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=",
- "dev": true
- },
- "cookie-signature": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
- "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=",
- "dev": true
- },
- "core-util-is": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
- },
- "coveralls": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.5.tgz",
- "integrity": "sha512-/KD7PGfZv/tjKB6LoW97jzIgFqem0Tu9tZL9/iwBnBd8zkIZp7vT1ZSHNvnr0GSQMV/LTMxUstWg8WcDDUVQKg==",
- "dev": true,
- "requires": {
- "growl": "~> 1.10.0",
- "js-yaml": "^3.13.1",
- "lcov-parse": "^0.0.10",
- "log-driver": "^1.2.7",
- "minimist": "^1.2.0",
- "request": "^2.86.0"
- }
- },
- "cp-file": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/cp-file/-/cp-file-6.2.0.tgz",
- "integrity": "sha512-fmvV4caBnofhPe8kOcitBwSn2f39QLjnAnGq3gO9dfd75mUytzKNZB1hde6QHunW2Rt+OwuBOMc3i1tNElbszA==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.2",
- "make-dir": "^2.0.0",
- "nested-error-stacks": "^2.0.0",
- "pify": "^4.0.1",
- "safe-buffer": "^5.0.1"
- }
- },
- "cross-spawn": {
- "version": "6.0.5",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
- "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
- "dev": true,
- "requires": {
- "nice-try": "^1.0.4",
- "path-key": "^2.0.1",
- "semver": "^5.5.0",
- "shebang-command": "^1.2.0",
- "which": "^1.2.9"
- }
- },
- "dashdash": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
- "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "date-now": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz",
- "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=",
- "dev": true
- },
- "debug": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
- "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
- "requires": {
- "ms": "^2.1.1"
- },
- "dependencies": {
- "ms": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
- "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
- }
- }
- },
- "decamelize": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
- "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
- "dev": true
- },
- "default-require-extensions": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-2.0.0.tgz",
- "integrity": "sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc=",
- "dev": true,
- "requires": {
- "strip-bom": "^3.0.0"
- }
- },
- "define-properties": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
- "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
- "dev": true,
- "requires": {
- "object-keys": "^1.0.12"
- }
- },
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
- },
- "depd": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
- "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
- },
- "destroy": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
- "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
- },
- "diff": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz",
- "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==",
- "dev": true
- },
- "doctoc": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/doctoc/-/doctoc-1.4.0.tgz",
- "integrity": "sha512-8IAq3KdMkxhXCUF+xdZxdJxwuz8N2j25sMgqiu4U4JWluN9tRKMlAalxGASszQjlZaBprdD2YfXpL3VPWUD4eg==",
- "dev": true,
- "requires": {
- "@textlint/markdown-to-ast": "~6.0.9",
- "anchor-markdown-header": "^0.5.5",
- "htmlparser2": "~3.9.2",
- "minimist": "~1.2.0",
- "underscore": "~1.8.3",
- "update-section": "^0.3.0"
- },
- "dependencies": {
- "underscore": {
- "version": "1.8.3",
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
- "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=",
- "dev": true
- }
- }
- },
- "dom-serializer": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz",
- "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==",
- "dev": true,
- "requires": {
- "domelementtype": "^1.3.0",
- "entities": "^1.1.1"
- }
- },
- "domelementtype": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
- "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==",
- "dev": true
- },
- "domhandler": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz",
- "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==",
- "dev": true,
- "requires": {
- "domelementtype": "1"
- }
- },
- "domutils": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz",
- "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==",
- "dev": true,
- "requires": {
- "dom-serializer": "0",
- "domelementtype": "1"
- }
- },
- "duplexer": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz",
- "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
- "dev": true
- },
- "ecc-jsbn": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
- "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
- "requires": {
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.1.0"
- }
- },
- "ee-first": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
- "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
- },
- "emoji-regex": {
- "version": "6.1.3",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-6.1.3.tgz",
- "integrity": "sha1-7HmjlpsC0uzytyJUJ5v5m8eoOTI=",
- "dev": true
- },
- "encodeurl": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
- "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
- },
- "end-of-stream": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz",
- "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==",
- "dev": true,
- "requires": {
- "once": "^1.4.0"
- }
- },
- "entities": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz",
- "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==",
- "dev": true
- },
- "error-ex": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
- "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
- "dev": true,
- "requires": {
- "is-arrayish": "^0.2.1"
- }
- },
- "es-abstract": {
- "version": "1.13.0",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz",
- "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.0",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "is-callable": "^1.1.4",
- "is-regex": "^1.0.4",
- "object-keys": "^1.0.12"
- }
- },
- "es-to-primitive": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz",
- "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==",
- "dev": true,
- "requires": {
- "is-callable": "^1.1.4",
- "is-date-object": "^1.0.1",
- "is-symbol": "^1.0.2"
- }
- },
- "es6-error": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
- "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
- "dev": true
- },
- "escape-html": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
- "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
- },
- "escape-string-regexp": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
- "dev": true
- },
- "esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
- "dev": true
- },
- "esutils": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
- "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
- "dev": true
- },
- "etag": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
- "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
- },
- "execa": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
- "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
- "dev": true,
- "requires": {
- "cross-spawn": "^6.0.0",
- "get-stream": "^4.0.0",
- "is-stream": "^1.1.0",
- "npm-run-path": "^2.0.0",
- "p-finally": "^1.0.0",
- "signal-exit": "^3.0.0",
- "strip-eof": "^1.0.0"
- }
- },
- "exit": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
- "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=",
- "dev": true
- },
- "express": {
- "version": "4.16.4",
- "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz",
- "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==",
- "dev": true,
- "requires": {
- "accepts": "~1.3.5",
- "array-flatten": "1.1.1",
- "body-parser": "1.18.3",
- "content-disposition": "0.5.2",
- "content-type": "~1.0.4",
- "cookie": "0.3.1",
- "cookie-signature": "1.0.6",
- "debug": "2.6.9",
- "depd": "~1.1.2",
- "encodeurl": "~1.0.2",
- "escape-html": "~1.0.3",
- "etag": "~1.8.1",
- "finalhandler": "1.1.1",
- "fresh": "0.5.2",
- "merge-descriptors": "1.0.1",
- "methods": "~1.1.2",
- "on-finished": "~2.3.0",
- "parseurl": "~1.3.2",
- "path-to-regexp": "0.1.7",
- "proxy-addr": "~2.0.4",
- "qs": "6.5.2",
- "range-parser": "~1.2.0",
- "safe-buffer": "5.1.2",
- "send": "0.16.2",
- "serve-static": "1.13.2",
- "setprototypeof": "1.1.0",
- "statuses": "~1.4.0",
- "type-is": "~1.6.16",
- "utils-merge": "1.0.1",
- "vary": "~1.1.2"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- }
- }
- },
- "extend": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
- "dev": true
- },
- "extsprintf": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
- "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
- },
- "fast-deep-equal": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
- "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
- },
- "fast-json-stable-stringify": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
- "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
- },
- "fault": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.2.tgz",
- "integrity": "sha512-o2eo/X2syzzERAtN5LcGbiVQ0WwZSlN3qLtadwAz3X8Bu+XWD16dja/KMsjZLiQr+BLGPDnHGkc4yUJf1Xpkpw==",
- "dev": true,
- "requires": {
- "format": "^0.2.2"
- }
- },
- "finalhandler": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz",
- "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==",
- "dev": true,
- "requires": {
- "debug": "2.6.9",
- "encodeurl": "~1.0.2",
- "escape-html": "~1.0.3",
- "on-finished": "~2.3.0",
- "parseurl": "~1.3.2",
- "statuses": "~1.4.0",
- "unpipe": "~1.0.0"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- }
- }
- },
- "find-cache-dir": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz",
- "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==",
- "dev": true,
- "requires": {
- "commondir": "^1.0.1",
- "make-dir": "^2.0.0",
- "pkg-dir": "^3.0.0"
- }
- },
- "find-up": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
- "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
- "dev": true,
- "requires": {
- "locate-path": "^3.0.0"
- }
- },
- "flat": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz",
- "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==",
- "dev": true,
- "requires": {
- "is-buffer": "~2.0.3"
- },
- "dependencies": {
- "is-buffer": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz",
- "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==",
- "dev": true
- }
- }
- },
- "foreground-child": {
- "version": "1.5.6",
- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-1.5.6.tgz",
- "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=",
- "dev": true,
- "requires": {
- "cross-spawn": "^4",
- "signal-exit": "^3.0.0"
- },
- "dependencies": {
- "cross-spawn": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz",
- "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=",
- "dev": true,
- "requires": {
- "lru-cache": "^4.0.1",
- "which": "^1.2.9"
- }
- }
- }
- },
- "forever-agent": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
- "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
- },
- "form-data": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
- "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
- "requires": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.6",
- "mime-types": "^2.1.12"
- }
- },
- "format": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",
- "integrity": "sha1-1hcBB+nv3E7TDJ3DkBbflCtctYs=",
- "dev": true
- },
- "formatio": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz",
- "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=",
- "dev": true,
- "requires": {
- "samsam": "~1.1"
- }
- },
- "forwarded": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
- "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=",
- "dev": true
- },
- "fresh": {
- "version": "0.5.2",
- "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
- "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
- },
- "fs-extra": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",
- "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.2",
- "jsonfile": "^4.0.0",
- "universalify": "^0.1.0"
- }
- },
- "fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
- "dev": true
- },
- "function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
- "dev": true
- },
- "get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "dev": true
- },
- "get-stream": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
- "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
- "dev": true,
- "requires": {
- "pump": "^3.0.0"
- }
- },
- "getpass": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
- "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "glob": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
- "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
- "dev": true,
- "requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "dependencies": {
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "dev": true,
- "requires": {
- "brace-expansion": "^1.1.7"
- }
- }
- }
- },
- "globals": {
- "version": "11.12.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
- "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
- "dev": true
- },
- "graceful-fs": {
- "version": "4.1.15",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz",
- "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
- "dev": true
- },
- "growl": {
- "version": "1.10.5",
- "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
- "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
- "dev": true
- },
- "handlebars": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz",
- "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==",
- "dev": true,
- "requires": {
- "neo-async": "^2.6.0",
- "optimist": "^0.6.1",
- "source-map": "^0.6.1",
- "uglify-js": "^3.1.4"
- }
- },
- "har-schema": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
- "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
- },
- "har-validator": {
- "version": "5.1.3",
- "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
- "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
- "requires": {
- "ajv": "^6.5.5",
- "har-schema": "^2.0.0"
- }
- },
- "has": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
- "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
- "dev": true,
- "requires": {
- "function-bind": "^1.1.1"
- }
- },
- "has-flag": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
- "dev": true
- },
- "has-symbols": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz",
- "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=",
- "dev": true
- },
- "hasha": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/hasha/-/hasha-3.0.0.tgz",
- "integrity": "sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=",
- "dev": true,
- "requires": {
- "is-stream": "^1.0.1"
- }
- },
- "he": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
- "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
- "dev": true
- },
- "highlight.js": {
- "version": "9.14.2",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.14.2.tgz",
- "integrity": "sha512-Nc6YNECYpxyJABGYJAyw7dBAYbXEuIzwzkqoJnwbc1nIpCiN+3ioYf0XrBnLiyyG0JLuJhpPtt2iTSbXiKLoyA==",
- "dev": true
- },
- "hosted-git-info": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
- "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==",
- "dev": true
- },
- "htmlparser2": {
- "version": "3.9.2",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz",
- "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=",
- "dev": true,
- "requires": {
- "domelementtype": "^1.3.0",
- "domhandler": "^2.3.0",
- "domutils": "^1.5.1",
- "entities": "^1.1.1",
- "inherits": "^2.0.1",
- "readable-stream": "^2.0.2"
- }
- },
- "http-errors": {
- "version": "1.6.3",
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
- "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
- "requires": {
- "depd": "~1.1.2",
- "inherits": "2.0.3",
- "setprototypeof": "1.1.0",
- "statuses": ">= 1.4.0 < 2"
- }
- },
- "http-signature": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
- "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
- "requires": {
- "assert-plus": "^1.0.0",
- "jsprim": "^1.2.2",
- "sshpk": "^1.7.0"
- }
- },
- "httpntlm": {
- "version": "1.7.6",
- "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.7.6.tgz",
- "integrity": "sha1-aZHoNSg2AH1nEBuD247Q+RX5BtA=",
- "requires": {
- "httpreq": ">=0.4.22",
- "underscore": "~1.7.0"
- }
- },
- "httpreq": {
- "version": "0.4.24",
- "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-0.4.24.tgz",
- "integrity": "sha1-QzX/2CzZaWaKOUZckprGHWOTYn8="
- },
- "iconv-lite": {
- "version": "0.4.23",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
- "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==",
- "dev": true,
- "requires": {
- "safer-buffer": ">= 2.1.2 < 3"
- }
- },
- "imurmurhash": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
- "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
- "dev": true
- },
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "dev": true,
- "requires": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "inherits": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
- "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
- },
- "interpret": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
- "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==",
- "dev": true
- },
- "invert-kv": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz",
- "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==",
- "dev": true
- },
- "ipaddr.js": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz",
- "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=",
- "dev": true
- },
- "is-alphabetical": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.2.tgz",
- "integrity": "sha512-V0xN4BYezDHcBSKb1QHUFMlR4as/XEuCZBzMJUU4n7+Cbt33SmUnSol+pnXFvLxSHNq2CemUXNdaXV6Flg7+xg==",
- "dev": true
- },
- "is-alphanumerical": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.2.tgz",
- "integrity": "sha512-pyfU/0kHdISIgslFfZN9nfY1Gk3MquQgUm1mJTjdkEPpkAKNWuBTSqFwewOpR7N351VkErCiyV71zX7mlQQqsg==",
- "dev": true,
- "requires": {
- "is-alphabetical": "^1.0.0",
- "is-decimal": "^1.0.0"
- }
- },
- "is-arrayish": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
- "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
- "dev": true
- },
- "is-buffer": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
- "dev": true
- },
- "is-callable": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz",
- "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==",
- "dev": true
- },
- "is-date-object": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz",
- "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=",
- "dev": true
- },
- "is-decimal": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.2.tgz",
- "integrity": "sha512-TRzl7mOCchnhchN+f3ICUCzYvL9ul7R+TYOsZ8xia++knyZAJfv/uA1FvQXsAnYIl1T3B2X5E/J7Wb1QXiIBXg==",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "dev": true
- },
- "is-hexadecimal": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.2.tgz",
- "integrity": "sha512-but/G3sapV3MNyqiDBLrOi4x8uCIw0RY3o/Vb5GT0sMFHrVV7731wFSVy41T5FO1og7G0gXLJh0MkgPRouko/A==",
- "dev": true
- },
- "is-plain-obj": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz",
- "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=",
- "dev": true
- },
- "is-regex": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz",
- "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=",
- "dev": true,
- "requires": {
- "has": "^1.0.1"
- }
- },
- "is-stream": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
- "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
- "dev": true
- },
- "is-symbol": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz",
- "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==",
- "dev": true,
- "requires": {
- "has-symbols": "^1.0.0"
- }
- },
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
- },
- "is-whitespace-character": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.2.tgz",
- "integrity": "sha512-SzM+T5GKUCtLhlHFKt2SDAX2RFzfS6joT91F2/WSi9LxgFdsnhfPK/UIA+JhRR2xuyLdrCys2PiFDrtn1fU5hQ==",
- "dev": true
- },
- "is-word-character": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.2.tgz",
- "integrity": "sha512-T3FlsX8rCHAH8e7RE7PfOPZVFQlcV3XRF9eOOBQ1uf70OxO7CjjSOjeImMPCADBdYWcStAbVbYvJ1m2D3tb+EA==",
- "dev": true
- },
- "isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "dev": true
- },
- "isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
- "dev": true
- },
- "isstream": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
- "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
- },
- "istanbul-lib-coverage": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz",
- "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==",
- "dev": true
- },
- "istanbul-lib-hook": {
- "version": "2.0.7",
- "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-2.0.7.tgz",
- "integrity": "sha512-vrRztU9VRRFDyC+aklfLoeXyNdTfga2EI3udDGn4cZ6fpSXpHLV9X6CHvfoMCPtggg8zvDDmC4b9xfu0z6/llA==",
- "dev": true,
- "requires": {
- "append-transform": "^1.0.0"
- }
- },
- "istanbul-lib-instrument": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz",
- "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==",
- "dev": true,
- "requires": {
- "@babel/generator": "^7.4.0",
- "@babel/parser": "^7.4.3",
- "@babel/template": "^7.4.0",
- "@babel/traverse": "^7.4.3",
- "@babel/types": "^7.4.0",
- "istanbul-lib-coverage": "^2.0.5",
- "semver": "^6.0.0"
- },
- "dependencies": {
- "semver": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.2.0.tgz",
- "integrity": "sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A==",
- "dev": true
- }
- }
- },
- "istanbul-lib-report": {
- "version": "2.0.8",
- "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz",
- "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==",
- "dev": true,
- "requires": {
- "istanbul-lib-coverage": "^2.0.5",
- "make-dir": "^2.1.0",
- "supports-color": "^6.1.0"
- },
- "dependencies": {
- "supports-color": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
- "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
- "dev": true,
- "requires": {
- "has-flag": "^3.0.0"
- }
- }
- }
- },
- "istanbul-lib-source-maps": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz",
- "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==",
- "dev": true,
- "requires": {
- "debug": "^4.1.1",
- "istanbul-lib-coverage": "^2.0.5",
- "make-dir": "^2.1.0",
- "rimraf": "^2.6.3",
- "source-map": "^0.6.1"
- }
- },
- "istanbul-reports": {
- "version": "2.2.6",
- "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.6.tgz",
- "integrity": "sha512-SKi4rnMyLBKe0Jy2uUdx28h8oG7ph2PPuQPvIAh31d+Ci+lSiEu4C+h3oBPuJ9+mPKhOyW0M8gY4U5NM1WLeXA==",
- "dev": true,
- "requires": {
- "handlebars": "^4.1.2"
- },
- "dependencies": {
- "handlebars": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz",
- "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==",
- "dev": true,
- "requires": {
- "neo-async": "^2.6.0",
- "optimist": "^0.6.1",
- "source-map": "^0.6.1",
- "uglify-js": "^3.1.4"
- }
- }
- }
- },
- "js-tokens": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
- "dev": true
- },
- "js-yaml": {
- "version": "3.13.1",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
- "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
- "dev": true,
- "requires": {
- "argparse": "^1.0.7",
- "esprima": "^4.0.0"
- }
- },
- "jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
- },
- "jsesc": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
- "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
- "dev": true
- },
- "jshint": {
- "version": "2.10.1",
- "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.10.1.tgz",
- "integrity": "sha512-9GpPfKeffYBl7oBDX2lHPG16j0AM7D2bn3aLy9DaWTr6CWa0i/7UGhX8WLZ7V14QQnnr4hXbjauTLYg06F+HYw==",
- "dev": true,
- "requires": {
- "cli": "~1.0.0",
- "console-browserify": "1.1.x",
- "exit": "0.1.x",
- "htmlparser2": "3.8.x",
- "lodash": "~4.17.10",
- "minimatch": "~3.0.2",
- "shelljs": "0.3.x",
- "strip-json-comments": "1.0.x"
- },
- "dependencies": {
- "domhandler": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz",
- "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=",
- "dev": true,
- "requires": {
- "domelementtype": "1"
- }
- },
- "domutils": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz",
- "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=",
- "dev": true,
- "requires": {
- "dom-serializer": "0",
- "domelementtype": "1"
- }
- },
- "entities": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz",
- "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=",
- "dev": true
- },
- "htmlparser2": {
- "version": "3.8.3",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz",
- "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=",
- "dev": true,
- "requires": {
- "domelementtype": "1",
- "domhandler": "2.3",
- "domutils": "1.5",
- "entities": "1.0",
- "readable-stream": "1.1"
- }
- },
- "isarray": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
- "dev": true
- },
- "readable-stream": {
- "version": "1.1.14",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
- "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
- "dev": true,
- "requires": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.1",
- "isarray": "0.0.1",
- "string_decoder": "~0.10.x"
- }
- },
- "string_decoder": {
- "version": "0.10.31",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
- "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
- "dev": true
- }
- }
- },
- "json-parse-better-errors": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
- "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",
- "dev": true
- },
- "json-schema": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
- "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
- },
- "json-schema-traverse": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
- },
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
- },
- "jsonfile": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
- "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.6"
- }
- },
- "jsprim": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
- "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
- "requires": {
- "assert-plus": "1.0.0",
- "extsprintf": "1.3.0",
- "json-schema": "0.2.3",
- "verror": "1.10.0"
- }
- },
- "lcid": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz",
- "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==",
- "dev": true,
- "requires": {
- "invert-kv": "^2.0.0"
- }
- },
- "lcov-parse": {
- "version": "0.0.10",
- "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz",
- "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=",
- "dev": true
- },
- "load-json-file": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
- "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.2",
- "parse-json": "^4.0.0",
- "pify": "^3.0.0",
- "strip-bom": "^3.0.0"
- },
- "dependencies": {
- "pify": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
- "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
- "dev": true
- }
- }
- },
- "locate-path": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
- "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
- "dev": true,
- "requires": {
- "p-locate": "^3.0.0",
- "path-exists": "^3.0.0"
- }
- },
- "lodash": {
- "version": "4.17.15",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
- "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
- },
- "lodash.flattendeep": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz",
- "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=",
- "dev": true
- },
- "log-driver": {
- "version": "1.2.7",
- "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz",
- "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==",
- "dev": true
- },
- "log-symbols": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz",
- "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==",
- "dev": true,
- "requires": {
- "chalk": "^2.0.1"
- }
- },
- "lolex": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz",
- "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=",
- "dev": true
- },
- "lru-cache": {
- "version": "4.1.5",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
- "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
- "dev": true,
- "requires": {
- "pseudomap": "^1.0.2",
- "yallist": "^2.1.2"
- }
- },
- "make-dir": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
- "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==",
- "dev": true,
- "requires": {
- "pify": "^4.0.1",
- "semver": "^5.6.0"
- }
- },
- "map-age-cleaner": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz",
- "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==",
- "dev": true,
- "requires": {
- "p-defer": "^1.0.0"
- }
- },
- "markdown-escapes": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.2.tgz",
- "integrity": "sha512-lbRZ2mE3Q9RtLjxZBZ9+IMl68DKIXaVAhwvwn9pmjnPLS0h/6kyBMgNhqi1xFJ/2yv6cSyv0jbiZavZv93JkkA==",
- "dev": true
- },
- "marked": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/marked/-/marked-0.4.0.tgz",
- "integrity": "sha512-tMsdNBgOsrUophCAFQl0XPe6Zqk/uy9gnue+jIIKhykO51hxyu6uNx7zBPy0+y/WKYVZZMspV9YeXLNdKk+iYw==",
- "dev": true
- },
- "media-typer": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
- "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
- "dev": true
- },
- "mem": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz",
- "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==",
- "dev": true,
- "requires": {
- "map-age-cleaner": "^0.1.1",
- "mimic-fn": "^2.0.0",
- "p-is-promise": "^2.0.0"
- }
- },
- "merge-descriptors": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
- "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=",
- "dev": true
- },
- "merge-source-map": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz",
- "integrity": "sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==",
- "dev": true,
- "requires": {
- "source-map": "^0.6.1"
- }
- },
- "methods": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
- "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
- "dev": true
- },
- "mime": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
- "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ=="
- },
- "mime-db": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz",
- "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ=="
- },
- "mime-types": {
- "version": "2.1.18",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",
- "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",
- "requires": {
- "mime-db": "~1.33.0"
- }
- },
- "mimic-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
- "dev": true
- },
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "dev": true,
- "requires": {
- "brace-expansion": "^1.1.7"
- }
- },
- "minimist": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
- "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
- "dev": true
- },
- "mkdirp": {
- "version": "0.5.1",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
- "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
- "dev": true,
- "requires": {
- "minimist": "0.0.8"
- },
- "dependencies": {
- "minimist": {
- "version": "0.0.8",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
- "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
- "dev": true
- }
- }
- },
- "mocha": {
- "version": "6.1.4",
- "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.1.4.tgz",
- "integrity": "sha512-PN8CIy4RXsIoxoFJzS4QNnCH4psUCPWc4/rPrst/ecSJJbLBkubMiyGCP2Kj/9YnWbotFqAoeXyXMucj7gwCFg==",
- "dev": true,
- "requires": {
- "ansi-colors": "3.2.3",
- "browser-stdout": "1.3.1",
- "debug": "3.2.6",
- "diff": "3.5.0",
- "escape-string-regexp": "1.0.5",
- "find-up": "3.0.0",
- "glob": "7.1.3",
- "growl": "1.10.5",
- "he": "1.2.0",
- "js-yaml": "3.13.1",
- "log-symbols": "2.2.0",
- "minimatch": "3.0.4",
- "mkdirp": "0.5.1",
- "ms": "2.1.1",
- "node-environment-flags": "1.0.5",
- "object.assign": "4.1.0",
- "strip-json-comments": "2.0.1",
- "supports-color": "6.0.0",
- "which": "1.3.1",
- "wide-align": "1.1.3",
- "yargs": "13.2.2",
- "yargs-parser": "13.0.0",
- "yargs-unparser": "1.5.0"
- },
- "dependencies": {
- "debug": {
- "version": "3.2.6",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
- "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
- "dev": true,
- "requires": {
- "ms": "^2.1.1"
- }
- },
- "diff": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
- "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
- "dev": true
- },
- "ms": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
- "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
- "dev": true
- },
- "strip-json-comments": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
- "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
- "dev": true
- }
- }
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
- },
- "negotiator": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
- "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=",
- "dev": true
- },
- "neo-async": {
- "version": "2.6.1",
- "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz",
- "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==",
- "dev": true
- },
- "nested-error-stacks": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz",
- "integrity": "sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==",
- "dev": true
- },
- "nice-try": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
- "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
- "dev": true
- },
- "node-environment-flags": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz",
- "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==",
- "dev": true,
- "requires": {
- "object.getownpropertydescriptors": "^2.0.3",
- "semver": "^5.7.0"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz",
- "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==",
- "dev": true
- }
- }
- },
- "normalize-package-data": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
- "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
- "dev": true,
- "requires": {
- "hosted-git-info": "^2.1.4",
- "resolve": "^1.10.0",
- "semver": "2 || 3 || 4 || 5",
- "validate-npm-package-license": "^3.0.1"
- }
- },
- "npm-run-path": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
- "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
- "dev": true,
- "requires": {
- "path-key": "^2.0.0"
- }
- },
- "number-is-nan": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
- "dev": true
- },
- "nyc": {
- "version": "14.1.1",
- "resolved": "https://registry.npmjs.org/nyc/-/nyc-14.1.1.tgz",
- "integrity": "sha512-OI0vm6ZGUnoGZv/tLdZ2esSVzDwUC88SNs+6JoSOMVxA+gKMB8Tk7jBwgemLx4O40lhhvZCVw1C+OYLOBOPXWw==",
- "dev": true,
- "requires": {
- "archy": "^1.0.0",
- "caching-transform": "^3.0.2",
- "convert-source-map": "^1.6.0",
- "cp-file": "^6.2.0",
- "find-cache-dir": "^2.1.0",
- "find-up": "^3.0.0",
- "foreground-child": "^1.5.6",
- "glob": "^7.1.3",
- "istanbul-lib-coverage": "^2.0.5",
- "istanbul-lib-hook": "^2.0.7",
- "istanbul-lib-instrument": "^3.3.0",
- "istanbul-lib-report": "^2.0.8",
- "istanbul-lib-source-maps": "^3.0.6",
- "istanbul-reports": "^2.2.4",
- "js-yaml": "^3.13.1",
- "make-dir": "^2.1.0",
- "merge-source-map": "^1.1.0",
- "resolve-from": "^4.0.0",
- "rimraf": "^2.6.3",
- "signal-exit": "^3.0.2",
- "spawn-wrap": "^1.4.2",
- "test-exclude": "^5.2.3",
- "uuid": "^3.3.2",
- "yargs": "^13.2.2",
- "yargs-parser": "^13.0.0"
- }
- },
- "oauth-sign": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
- "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
- },
- "object-keys": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
- "dev": true
- },
- "object.assign": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz",
- "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.2",
- "function-bind": "^1.1.1",
- "has-symbols": "^1.0.0",
- "object-keys": "^1.0.11"
- }
- },
- "object.getownpropertydescriptors": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz",
- "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.2",
- "es-abstract": "^1.5.1"
- }
- },
- "on-finished": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
- "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
- "requires": {
- "ee-first": "1.1.1"
- }
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dev": true,
- "requires": {
- "wrappy": "1"
- }
- },
- "optimist": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",
- "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
- "dev": true,
- "requires": {
- "minimist": "~0.0.1",
- "wordwrap": "~0.0.2"
- },
- "dependencies": {
- "minimist": {
- "version": "0.0.10",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
- "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
- "dev": true
- }
- }
- },
- "os-homedir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
- "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
- "dev": true
- },
- "os-locale": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz",
- "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==",
- "dev": true,
- "requires": {
- "execa": "^1.0.0",
- "lcid": "^2.0.0",
- "mem": "^4.0.0"
- }
- },
- "p-defer": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz",
- "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=",
- "dev": true
- },
- "p-finally": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
- "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
- "dev": true
- },
- "p-is-promise": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz",
- "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==",
- "dev": true
- },
- "p-limit": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz",
- "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==",
- "dev": true,
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
- "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
- "dev": true,
- "requires": {
- "p-limit": "^2.0.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "dev": true
- },
- "package-hash": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-3.0.0.tgz",
- "integrity": "sha512-lOtmukMDVvtkL84rJHI7dpTYq+0rli8N2wlnqUcBuDWCfVhRUfOmnR9SsoHFMLpACvEV60dX7rd0rFaYDZI+FA==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.15",
- "hasha": "^3.0.0",
- "lodash.flattendeep": "^4.4.0",
- "release-zalgo": "^1.0.0"
- }
- },
- "parse-entities": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-1.2.0.tgz",
- "integrity": "sha512-XXtDdOPLSB0sHecbEapQi6/58U/ODj/KWfIXmmMCJF/eRn8laX6LZbOyioMoETOOJoWRW8/qTSl5VQkUIfKM5g==",
- "dev": true,
- "requires": {
- "character-entities": "^1.0.0",
- "character-entities-legacy": "^1.0.0",
- "character-reference-invalid": "^1.0.0",
- "is-alphanumerical": "^1.0.0",
- "is-decimal": "^1.0.0",
- "is-hexadecimal": "^1.0.0"
- }
- },
- "parse-json": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
- "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
- "dev": true,
- "requires": {
- "error-ex": "^1.3.1",
- "json-parse-better-errors": "^1.0.1"
- }
- },
- "parseurl": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz",
- "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M="
- },
- "path-exists": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
- "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
- "dev": true
- },
- "path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
- "dev": true
- },
- "path-key": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
- "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
- "dev": true
- },
- "path-parse": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
- "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
- "dev": true
- },
- "path-to-regexp": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
- "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=",
- "dev": true
- },
- "path-type": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz",
- "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==",
- "dev": true,
- "requires": {
- "pify": "^3.0.0"
- },
- "dependencies": {
- "pify": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
- "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
- "dev": true
- }
- }
- },
- "performance-now": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
- "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
- },
- "pify": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
- "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
- "dev": true
- },
- "pkg-dir": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz",
- "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==",
- "dev": true,
- "requires": {
- "find-up": "^3.0.0"
- }
- },
- "progress": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
- "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
- "dev": true
- },
- "proxy-addr": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz",
- "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==",
- "dev": true,
- "requires": {
- "forwarded": "~0.1.2",
- "ipaddr.js": "1.8.0"
- }
- },
- "pseudomap": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
- "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
- "dev": true
- },
- "psl": {
- "version": "1.1.31",
- "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz",
- "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw=="
- },
- "pump": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
- "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
- "dev": true,
- "requires": {
- "end-of-stream": "^1.1.0",
- "once": "^1.3.1"
- }
- },
- "punycode": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
- "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
- },
- "qs": {
- "version": "6.5.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
- "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
- },
- "range-parser": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",
- "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4="
- },
- "raw-body": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz",
- "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==",
- "dev": true,
- "requires": {
- "bytes": "3.0.0",
- "http-errors": "1.6.3",
- "iconv-lite": "0.4.23",
- "unpipe": "1.0.0"
- }
- },
- "read-pkg": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
- "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",
- "dev": true,
- "requires": {
- "load-json-file": "^4.0.0",
- "normalize-package-data": "^2.3.2",
- "path-type": "^3.0.0"
- }
- },
- "read-pkg-up": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-4.0.0.tgz",
- "integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==",
- "dev": true,
- "requires": {
- "find-up": "^3.0.0",
- "read-pkg": "^3.0.0"
- }
- },
- "readable-stream": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz",
- "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=",
- "dev": true,
- "requires": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.1",
- "isarray": "~1.0.0",
- "process-nextick-args": "~1.0.6",
- "string_decoder": "~0.10.x",
- "util-deprecate": "~1.0.1"
- },
- "dependencies": {
- "process-nextick-args": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz",
- "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=",
- "dev": true
- },
- "string_decoder": {
- "version": "0.10.31",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
- "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
- "dev": true
- }
- }
- },
- "rechoir": {
- "version": "0.6.2",
- "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
- "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=",
- "dev": true,
- "requires": {
- "resolve": "^1.1.6"
- }
- },
- "release-zalgo": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz",
- "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=",
- "dev": true,
- "requires": {
- "es6-error": "^4.0.1"
- }
- },
- "remark-frontmatter": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/remark-frontmatter/-/remark-frontmatter-1.3.1.tgz",
- "integrity": "sha512-Zj/fDMYnSVgMCeKp8fXIhtMoZq4G6E1dnwfMoO8fVXrm/+oVSiN8YMREtwN2cctgK9EsnYSeS1ExX2hcX/fE1A==",
- "dev": true,
- "requires": {
- "fault": "^1.0.1",
- "xtend": "^4.0.1"
- }
- },
- "remark-parse": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-5.0.0.tgz",
- "integrity": "sha512-b3iXszZLH1TLoyUzrATcTQUZrwNl1rE70rVdSruJFlDaJ9z5aMkhrG43Pp68OgfHndL/ADz6V69Zow8cTQu+JA==",
- "dev": true,
- "requires": {
- "collapse-white-space": "^1.0.2",
- "is-alphabetical": "^1.0.0",
- "is-decimal": "^1.0.0",
- "is-whitespace-character": "^1.0.0",
- "is-word-character": "^1.0.0",
- "markdown-escapes": "^1.0.0",
- "parse-entities": "^1.1.0",
- "repeat-string": "^1.5.4",
- "state-toggle": "^1.0.0",
- "trim": "0.0.1",
- "trim-trailing-lines": "^1.0.0",
- "unherit": "^1.0.4",
- "unist-util-remove-position": "^1.0.0",
- "vfile-location": "^2.0.0",
- "xtend": "^4.0.1"
- }
- },
- "repeat-string": {
- "version": "1.6.1",
- "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
- "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
- "dev": true
- },
- "replace-ext": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz",
- "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=",
- "dev": true
- },
- "request": {
- "version": "2.88.0",
- "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
- "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
- "requires": {
- "aws-sign2": "~0.7.0",
- "aws4": "^1.8.0",
- "caseless": "~0.12.0",
- "combined-stream": "~1.0.6",
- "extend": "~3.0.2",
- "forever-agent": "~0.6.1",
- "form-data": "~2.3.2",
- "har-validator": "~5.1.0",
- "http-signature": "~1.2.0",
- "is-typedarray": "~1.0.0",
- "isstream": "~0.1.2",
- "json-stringify-safe": "~5.0.1",
- "mime-types": "~2.1.19",
- "oauth-sign": "~0.9.0",
- "performance-now": "^2.1.0",
- "qs": "~6.5.2",
- "safe-buffer": "^5.1.2",
- "tough-cookie": "~2.4.3",
- "tunnel-agent": "^0.6.0",
- "uuid": "^3.3.2"
- },
- "dependencies": {
- "extend": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
- },
- "mime-db": {
- "version": "1.38.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
- "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg=="
- },
- "mime-types": {
- "version": "2.1.22",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz",
- "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==",
- "requires": {
- "mime-db": "~1.38.0"
- }
- }
- }
- },
- "require-directory": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
- "dev": true
- },
- "require-main-filename": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
- "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
- "dev": true
- },
- "resolve": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz",
- "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==",
- "dev": true,
- "requires": {
- "path-parse": "^1.0.6"
- }
- },
- "resolve-from": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
- "dev": true
- },
- "rimraf": {
- "version": "2.6.3",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
- "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
- "dev": true,
- "requires": {
- "glob": "^7.1.3"
- }
- },
- "safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
- },
- "safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
- },
- "samsam": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz",
- "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=",
- "dev": true
- },
- "sax": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
- },
- "semver": {
- "version": "5.6.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz",
- "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==",
- "dev": true
- },
- "send": {
- "version": "0.16.2",
- "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz",
- "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==",
- "requires": {
- "debug": "2.6.9",
- "depd": "~1.1.2",
- "destroy": "~1.0.4",
- "encodeurl": "~1.0.2",
- "escape-html": "~1.0.3",
- "etag": "~1.8.1",
- "fresh": "0.5.2",
- "http-errors": "~1.6.2",
- "mime": "1.4.1",
- "ms": "2.0.0",
- "on-finished": "~2.3.0",
- "range-parser": "~1.2.0",
- "statuses": "~1.4.0"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "requires": {
- "ms": "2.0.0"
- }
- }
- }
- },
- "serve-static": {
- "version": "1.13.2",
- "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz",
- "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==",
- "requires": {
- "encodeurl": "~1.0.2",
- "escape-html": "~1.0.3",
- "parseurl": "~1.3.2",
- "send": "0.16.2"
- }
- },
- "set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
- "dev": true
- },
- "setprototypeof": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
- "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
- },
- "shebang-command": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
- "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
- "dev": true,
- "requires": {
- "shebang-regex": "^1.0.0"
- }
- },
- "shebang-regex": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
- "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
- "dev": true
- },
- "shelljs": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz",
- "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=",
- "dev": true
- },
- "should": {
- "version": "13.2.3",
- "resolved": "https://registry.npmjs.org/should/-/should-13.2.3.tgz",
- "integrity": "sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==",
- "dev": true,
- "requires": {
- "should-equal": "^2.0.0",
- "should-format": "^3.0.3",
- "should-type": "^1.4.0",
- "should-type-adaptors": "^1.0.1",
- "should-util": "^1.0.0"
- }
- },
- "should-equal": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-2.0.0.tgz",
- "integrity": "sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==",
- "dev": true,
- "requires": {
- "should-type": "^1.4.0"
- }
- },
- "should-format": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/should-format/-/should-format-3.0.3.tgz",
- "integrity": "sha1-m/yPdPo5IFxT04w01xcwPidxJPE=",
- "dev": true,
- "requires": {
- "should-type": "^1.3.0",
- "should-type-adaptors": "^1.0.1"
- }
- },
- "should-type": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/should-type/-/should-type-1.4.0.tgz",
- "integrity": "sha1-B1bYzoRt/QmEOmlHcZ36DUz/XPM=",
- "dev": true
- },
- "should-type-adaptors": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz",
- "integrity": "sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==",
- "dev": true,
- "requires": {
- "should-type": "^1.3.0",
- "should-util": "^1.0.0"
- }
- },
- "should-util": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/should-util/-/should-util-1.0.0.tgz",
- "integrity": "sha1-yYzaN0qmsZDfi6h8mInCtNtiAGM=",
- "dev": true
- },
- "signal-exit": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
- "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
- "dev": true
- },
- "sinon": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.7.tgz",
- "integrity": "sha1-RUKk9JugxFwF6y6d2dID4rjv4L8=",
- "dev": true,
- "requires": {
- "formatio": "1.1.1",
- "lolex": "1.3.2",
- "samsam": "1.1.2",
- "util": ">=0.10.3 <1"
- }
- },
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- },
- "source-map-support": {
- "version": "0.5.10",
- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.10.tgz",
- "integrity": "sha512-YfQ3tQFTK/yzlGJuX8pTwa4tifQj4QS2Mj7UegOu8jAz59MqIiMGPXxQhVQiIMNzayuUSF/jEuVnfFF5JqybmQ==",
- "dev": true,
- "requires": {
- "buffer-from": "^1.0.0",
- "source-map": "^0.6.0"
- }
- },
- "spawn-wrap": {
- "version": "1.4.2",
- "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-1.4.2.tgz",
- "integrity": "sha512-vMwR3OmmDhnxCVxM8M+xO/FtIp6Ju/mNaDfCMMW7FDcLRTPFWUswec4LXJHTJE2hwTI9O0YBfygu4DalFl7Ylg==",
- "dev": true,
- "requires": {
- "foreground-child": "^1.5.6",
- "mkdirp": "^0.5.0",
- "os-homedir": "^1.0.1",
- "rimraf": "^2.6.2",
- "signal-exit": "^3.0.2",
- "which": "^1.3.0"
- }
- },
- "spdx-correct": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
- "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==",
- "dev": true,
- "requires": {
- "spdx-expression-parse": "^3.0.0",
- "spdx-license-ids": "^3.0.0"
- }
- },
- "spdx-exceptions": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz",
- "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==",
- "dev": true
- },
- "spdx-expression-parse": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
- "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
- "dev": true,
- "requires": {
- "spdx-exceptions": "^2.1.0",
- "spdx-license-ids": "^3.0.0"
- }
- },
- "spdx-license-ids": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
- "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==",
- "dev": true
- },
- "sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
- "dev": true
- },
- "sshpk": {
- "version": "1.16.1",
- "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
- "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
- "requires": {
- "asn1": "~0.2.3",
- "assert-plus": "^1.0.0",
- "bcrypt-pbkdf": "^1.0.0",
- "dashdash": "^1.12.0",
- "ecc-jsbn": "~0.1.1",
- "getpass": "^0.1.1",
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.0.2",
- "tweetnacl": "~0.14.0"
- }
- },
- "state-toggle": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.1.tgz",
- "integrity": "sha512-Qe8QntFrrpWTnHwvwj2FZTgv+PKIsp0B9VxLzLLbSpPXWOgRgc5LVj/aTiSfK1RqIeF9jeC1UeOH8Q8y60A7og==",
- "dev": true
- },
- "statuses": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz",
- "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew=="
- },
- "string-width": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
- "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
- "dev": true,
- "requires": {
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^4.0.0"
- }
- },
- "string_decoder": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz",
- "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==",
- "requires": {
- "safe-buffer": "~5.1.0"
- }
- },
- "strip-ansi": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
- "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
- "dev": true,
- "requires": {
- "ansi-regex": "^3.0.0"
- }
- },
- "strip-bom": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
- "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM="
- },
- "strip-eof": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
- "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
- "dev": true
- },
- "strip-json-comments": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz",
- "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=",
- "dev": true
- },
- "structured-source": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/structured-source/-/structured-source-3.0.2.tgz",
- "integrity": "sha1-3YAkJeD1PcSm56yjdSkBoczaevU=",
- "dev": true,
- "requires": {
- "boundary": "^1.0.1"
- }
- },
- "supports-color": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz",
- "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==",
- "dev": true,
- "requires": {
- "has-flag": "^3.0.0"
- }
- },
- "test-exclude": {
- "version": "5.2.3",
- "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz",
- "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==",
- "dev": true,
- "requires": {
- "glob": "^7.1.3",
- "minimatch": "^3.0.4",
- "read-pkg-up": "^4.0.0",
- "require-main-filename": "^2.0.0"
- }
- },
- "timekeeper": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/timekeeper/-/timekeeper-2.1.2.tgz",
- "integrity": "sha512-fc1DDqbiyz5vxRO4xkiATwfWUw1FV7W20+FJYal1SnoIYgNuB4WNxYLtbG3zjUBwOSk3P4u1TgBAZYG/aqBWMw==",
- "dev": true
- },
- "to-fast-properties": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
- "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
- "dev": true
- },
- "tough-cookie": {
- "version": "2.4.3",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
- "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
- "requires": {
- "psl": "^1.1.24",
- "punycode": "^1.4.1"
- },
- "dependencies": {
- "punycode": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
- "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
- }
- }
- },
- "traverse": {
- "version": "0.6.6",
- "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz",
- "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=",
- "dev": true
- },
- "trim": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz",
- "integrity": "sha1-WFhUf2spB1fulczMZm+1AITEYN0=",
- "dev": true
- },
- "trim-right": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz",
- "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=",
- "dev": true
- },
- "trim-trailing-lines": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.1.tgz",
- "integrity": "sha512-bWLv9BbWbbd7mlqqs2oQYnLD/U/ZqeJeJwbO0FG2zA1aTq+HTvxfHNKFa/HGCVyJpDiioUYaBhfiT6rgk+l4mg==",
- "dev": true
- },
- "trough": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.3.tgz",
- "integrity": "sha512-fwkLWH+DimvA4YCy+/nvJd61nWQQ2liO/nF/RjkTpiOGi+zxZzVkhb1mvbHIIW4b/8nDsYI8uTmAlc0nNkRMOw==",
- "dev": true
- },
- "tslib": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
- "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==",
- "dev": true
- },
- "tslint": {
- "version": "5.18.0",
- "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.18.0.tgz",
- "integrity": "sha512-Q3kXkuDEijQ37nXZZLKErssQVnwCV/+23gFEMROi8IlbaBG6tXqLPQJ5Wjcyt/yHPKBC+hD5SzuGaMora+ZS6w==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.0.0",
- "builtin-modules": "^1.1.1",
- "chalk": "^2.3.0",
- "commander": "^2.12.1",
- "diff": "^3.2.0",
- "glob": "^7.1.1",
- "js-yaml": "^3.13.1",
- "minimatch": "^3.0.4",
- "mkdirp": "^0.5.1",
- "resolve": "^1.3.2",
- "semver": "^5.3.0",
- "tslib": "^1.8.0",
- "tsutils": "^2.29.0"
- },
- "dependencies": {
- "diff": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
- "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
- "dev": true
- }
- }
- },
- "tsutils": {
- "version": "2.29.0",
- "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz",
- "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==",
- "dev": true,
- "requires": {
- "tslib": "^1.8.1"
- }
- },
- "tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
- "requires": {
- "safe-buffer": "^5.0.1"
- }
- },
- "tweetnacl": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
- },
- "type-is": {
- "version": "1.6.16",
- "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz",
- "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==",
- "dev": true,
- "requires": {
- "media-typer": "0.3.0",
- "mime-types": "~2.1.18"
- }
- },
- "typedarray": {
- "version": "0.0.6",
- "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
- "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
- },
- "typedoc": {
- "version": "0.14.2",
- "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.14.2.tgz",
- "integrity": "sha512-aEbgJXV8/KqaVhcedT7xG6d2r+mOvB5ep3eIz1KuB5sc4fDYXcepEEMdU7XSqLFO5hVPu0nllHi1QxX2h/QlpQ==",
- "dev": true,
- "requires": {
- "@types/fs-extra": "^5.0.3",
- "@types/handlebars": "^4.0.38",
- "@types/highlight.js": "^9.12.3",
- "@types/lodash": "^4.14.110",
- "@types/marked": "^0.4.0",
- "@types/minimatch": "3.0.3",
- "@types/shelljs": "^0.8.0",
- "fs-extra": "^7.0.0",
- "handlebars": "^4.0.6",
- "highlight.js": "^9.13.1",
- "lodash": "^4.17.10",
- "marked": "^0.4.0",
- "minimatch": "^3.0.0",
- "progress": "^2.0.0",
- "shelljs": "^0.8.2",
- "typedoc-default-themes": "^0.5.0",
- "typescript": "3.2.x"
- },
- "dependencies": {
- "glob": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
- "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
- "dev": true,
- "requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- }
- },
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "dev": true,
- "requires": {
- "brace-expansion": "^1.1.7"
- }
- },
- "shelljs": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.3.tgz",
- "integrity": "sha512-fc0BKlAWiLpwZljmOvAOTE/gXawtCoNrP5oaY7KIaQbbyHeQVg01pSEuEGvGh3HEdBU4baCD7wQBwADmM/7f7A==",
- "dev": true,
- "requires": {
- "glob": "^7.0.0",
- "interpret": "^1.0.0",
- "rechoir": "^0.6.2"
- }
- },
- "typescript": {
- "version": "3.2.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.2.4.tgz",
- "integrity": "sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==",
- "dev": true
- }
- }
- },
- "typedoc-default-themes": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz",
- "integrity": "sha1-bcJDPnjti+qOiHo6zeLzF4W9Yic=",
- "dev": true
- },
- "typescript": {
- "version": "3.3.3333",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.3333.tgz",
- "integrity": "sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==",
- "dev": true
- },
- "uglify-js": {
- "version": "3.4.9",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz",
- "integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==",
- "dev": true,
- "optional": true,
- "requires": {
- "commander": "~2.17.1",
- "source-map": "~0.6.1"
- },
- "dependencies": {
- "commander": {
- "version": "2.17.1",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz",
- "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==",
- "dev": true,
- "optional": true
- }
- }
- },
- "underscore": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz",
- "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk="
- },
- "unherit": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.1.tgz",
- "integrity": "sha512-+XZuV691Cn4zHsK0vkKYwBEwB74T3IZIcxrgn2E4rKwTfFyI1zCh7X7grwh9Re08fdPlarIdyWgI8aVB3F5A5g==",
- "dev": true,
- "requires": {
- "inherits": "^2.0.1",
- "xtend": "^4.0.1"
- }
- },
- "unified": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/unified/-/unified-6.2.0.tgz",
- "integrity": "sha512-1k+KPhlVtqmG99RaTbAv/usu85fcSRu3wY8X+vnsEhIxNP5VbVIDiXnLqyKIG+UMdyTg0ZX9EI6k2AfjJkHPtA==",
- "dev": true,
- "requires": {
- "bail": "^1.0.0",
- "extend": "^3.0.0",
- "is-plain-obj": "^1.1.0",
- "trough": "^1.0.0",
- "vfile": "^2.0.0",
- "x-is-string": "^0.1.0"
- }
- },
- "unist-util-is": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-2.1.2.tgz",
- "integrity": "sha512-YkXBK/H9raAmG7KXck+UUpnKiNmUdB+aBGrknfQ4EreE1banuzrKABx3jP6Z5Z3fMSPMQQmeXBlKpCbMwBkxVw==",
- "dev": true
- },
- "unist-util-remove-position": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-1.1.2.tgz",
- "integrity": "sha512-XxoNOBvq1WXRKXxgnSYbtCF76TJrRoe5++pD4cCBsssSiWSnPEktyFrFLE8LTk3JW5mt9hB0Sk5zn4x/JeWY7Q==",
- "dev": true,
- "requires": {
- "unist-util-visit": "^1.1.0"
- }
- },
- "unist-util-stringify-position": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz",
- "integrity": "sha512-pNCVrk64LZv1kElr0N1wPiHEUoXNVFERp+mlTg/s9R5Lwg87f9bM/3sQB99w+N9D/qnM9ar3+AKDBwo/gm/iQQ==",
- "dev": true
- },
- "unist-util-visit": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-1.4.0.tgz",
- "integrity": "sha512-FiGu34ziNsZA3ZUteZxSFaczIjGmksfSgdKqBfOejrrfzyUy5b7YrlzT1Bcvi+djkYDituJDy2XB7tGTeBieKw==",
- "dev": true,
- "requires": {
- "unist-util-visit-parents": "^2.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-2.0.1.tgz",
- "integrity": "sha512-6B0UTiMfdWql4cQ03gDTCSns+64Zkfo2OCbK31Ov0uMizEz+CJeAp0cgZVb5Fhmcd7Bct2iRNywejT0orpbqUA==",
- "dev": true,
- "requires": {
- "unist-util-is": "^2.1.2"
- }
- },
- "universalify": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
- "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
- "dev": true
- },
- "unpipe": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
- "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
- "dev": true
- },
- "update-section": {
- "version": "0.3.3",
- "resolved": "https://registry.npmjs.org/update-section/-/update-section-0.3.3.tgz",
- "integrity": "sha1-RY8Xgg03gg3GDiC4bZQ5GwASMVg=",
- "dev": true
- },
- "uri-js": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
- "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
- "requires": {
- "punycode": "^2.1.0"
- }
- },
- "util": {
- "version": "0.11.1",
- "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz",
- "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==",
- "dev": true,
- "requires": {
- "inherits": "2.0.3"
- }
- },
- "util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
- },
- "utils-merge": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
- "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",
- "dev": true
- },
- "uuid": {
- "version": "3.3.2",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
- "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
- },
- "validate-npm-package-license": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
- "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
- "dev": true,
- "requires": {
- "spdx-correct": "^3.0.0",
- "spdx-expression-parse": "^3.0.0"
- }
- },
- "vary": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
- "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
- "dev": true
- },
- "verror": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
- "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
- "requires": {
- "assert-plus": "^1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "^1.2.0"
- }
- },
- "vfile": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/vfile/-/vfile-2.3.0.tgz",
- "integrity": "sha512-ASt4mBUHcTpMKD/l5Q+WJXNtshlWxOogYyGYYrg4lt/vuRjC1EFQtlAofL5VmtVNIZJzWYFJjzGWZ0Gw8pzW1w==",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.4",
- "replace-ext": "1.0.0",
- "unist-util-stringify-position": "^1.0.0",
- "vfile-message": "^1.0.0"
- }
- },
- "vfile-location": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-2.0.4.tgz",
- "integrity": "sha512-KRL5uXQPoUKu+NGvQVL4XLORw45W62v4U4gxJ3vRlDfI9QsT4ZN1PNXn/zQpKUulqGDpYuT0XDfp5q9O87/y/w==",
- "dev": true
- },
- "vfile-message": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-1.1.1.tgz",
- "integrity": "sha512-1WmsopSGhWt5laNir+633LszXvZ+Z/lxveBf6yhGsqnQIhlhzooZae7zV6YVM1Sdkw68dtAW3ow0pOdPANugvA==",
- "dev": true,
- "requires": {
- "unist-util-stringify-position": "^1.1.1"
- }
- },
- "which": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
- "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- },
- "which-module": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
- "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
- "dev": true
- },
- "wide-align": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
- "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
- "dev": true,
- "requires": {
- "string-width": "^1.0.2 || 2"
- }
- },
- "wordwrap": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
- "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=",
- "dev": true
- },
- "wrap-ansi": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
- "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
- "dev": true,
- "requires": {
- "string-width": "^1.0.1",
- "strip-ansi": "^3.0.1"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
- "dev": true,
- "requires": {
- "number-is-nan": "^1.0.0"
- }
- },
- "string-width": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
- "dev": true,
- "requires": {
- "code-point-at": "^1.0.0",
- "is-fullwidth-code-point": "^1.0.0",
- "strip-ansi": "^3.0.0"
- }
- },
- "strip-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
- "dev": true,
- "requires": {
- "ansi-regex": "^2.0.0"
- }
- }
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "dev": true
- },
- "write-file-atomic": {
- "version": "2.4.3",
- "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz",
- "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.11",
- "imurmurhash": "^0.1.4",
- "signal-exit": "^3.0.2"
- }
- },
- "x-is-string": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/x-is-string/-/x-is-string-0.1.0.tgz",
- "integrity": "sha1-R0tQhlrzpJqcRlfwWs0UVFj3fYI=",
- "dev": true
- },
- "xml-crypto": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/xml-crypto/-/xml-crypto-1.4.0.tgz",
- "integrity": "sha512-K8FRdRxICVulK4WhiTUcJrRyAIJFPVOqxfurA3x/JlmXBTxy+SkEENF6GeRt7p/rB6WSOUS9g0gXNQw5n+407g==",
- "requires": {
- "xmldom": "0.1.27",
- "xpath": "0.0.27"
- }
- },
- "xmldom": {
- "version": "0.1.27",
- "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz",
- "integrity": "sha1-1QH5ezvbQDr4757MIFcxh6rawOk="
- },
- "xpath": {
- "version": "0.0.27",
- "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.27.tgz",
- "integrity": "sha512-fg03WRxtkCV6ohClePNAECYsmpKKTv5L8y/X3Dn1hQrec3POx2jHZ/0P2qQ6HvsrU1BmeqXcof3NGGueG6LxwQ=="
- },
- "xtend": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
- "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=",
- "dev": true
- },
- "y18n": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
- "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
- "dev": true
- },
- "yallist": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
- "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
- "dev": true
- },
- "yargs": {
- "version": "13.2.2",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz",
- "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==",
- "dev": true,
- "requires": {
- "cliui": "^4.0.0",
- "find-up": "^3.0.0",
- "get-caller-file": "^2.0.1",
- "os-locale": "^3.1.0",
- "require-directory": "^2.1.1",
- "require-main-filename": "^2.0.0",
- "set-blocking": "^2.0.0",
- "string-width": "^3.0.0",
- "which-module": "^2.0.0",
- "y18n": "^4.0.0",
- "yargs-parser": "^13.0.0"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
- "dev": true
- },
- "emoji-regex": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
- "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
- "dev": true
- },
- "string-width": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "dev": true,
- "requires": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- }
- },
- "strip-ansi": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "dev": true,
- "requires": {
- "ansi-regex": "^4.1.0"
- }
- }
- }
- },
- "yargs-parser": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz",
- "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==",
- "dev": true,
- "requires": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- }
- },
- "yargs-unparser": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz",
- "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==",
- "dev": true,
- "requires": {
- "flat": "^4.1.0",
- "lodash": "^4.17.11",
- "yargs": "^12.0.5"
- },
- "dependencies": {
- "get-caller-file": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
- "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
- "dev": true
- },
- "require-main-filename": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
- "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
- "dev": true
- },
- "yargs": {
- "version": "12.0.5",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz",
- "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==",
- "dev": true,
- "requires": {
- "cliui": "^4.0.0",
- "decamelize": "^1.2.0",
- "find-up": "^3.0.0",
- "get-caller-file": "^1.0.1",
- "os-locale": "^3.0.0",
- "require-directory": "^2.1.1",
- "require-main-filename": "^1.0.1",
- "set-blocking": "^2.0.0",
- "string-width": "^2.0.0",
- "which-module": "^2.0.0",
- "y18n": "^3.2.1 || ^4.0.0",
- "yargs-parser": "^11.1.1"
- }
- },
- "yargs-parser": {
- "version": "11.1.1",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz",
- "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==",
- "dev": true,
- "requires": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- }
- }
- }
- }
- }
-}
diff --git a/package.json b/package.json
index 56fab3db3..204aeb90a 100644
--- a/package.json
+++ b/package.json
@@ -1,29 +1,24 @@
{
- "name": "soap",
- "version": "0.31.0",
+ "name": "@oohmedia/soap",
+ "version": "1.2.0",
"description": "A minimal node SOAP client",
"engines": {
- "node": ">=4.0.0"
+ "node": ">=22.x"
},
- "author": "Vinay Pulim ",
"dependencies": {
- "@types/request": "^2.48.1",
- "bluebird": "^3.5.0",
+ "@types/request": "^2.48.4",
"concat-stream": "^2.0.0",
"debug": "^4.1.1",
- "httpntlm": "^1.5.2",
+ "httpntlm": "^1.8.13",
"lodash": "^4.17.15",
- "request": ">=2.9.0",
- "sax": ">=0.6",
- "serve-static": "^1.11.1",
- "strip-bom": "^3.0.0",
- "uuid": "^3.1.0",
- "xml-crypto": "^1.4.0"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/vpulim/node-soap.git"
+ "pify": "^5.0.0",
+ "request": "^2.88.2",
+ "sax": "^1.2.4",
+ "strip-bom": "^4.0.0",
+ "uuid": "^7.0.3",
+ "xml-crypto": "^2.1.6"
},
+ "repository": "https://github.com/oohmedia/node-soap",
"main": "./index.js",
"types": "./lib/soap.d.ts",
"directories": {
@@ -31,49 +26,55 @@
"test": "./test"
},
"scripts": {
- "prepare": "npm run build",
+ "prepare": "yarn build",
"build": "tsc -p .",
"clean": "rm -rf lib",
"watch": "tsc -w -p .",
- "lint": "tslint -p tsconfig.json",
"toc": "./node_modules/.bin/doctoc Readme.md --github --maxlevel 3",
"cover": "nyc --extension=.ts --reporter=lcov --reporter=html --reporter=text mocha --timeout 15000 --exit test/*-test.js test/security/*.js",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v",
"docs": "typedoc --out docs",
- "test": "mocha --timeout 15000 --bail --exit test/*-test.js test/security/*.js"
+ "test": "NODE_OPTIONS='--openssl-legacy-provider' mocha --timeout 15000 --bail --exit test/*-test.js test/security/*.js",
+ "prettier": "prettier --write '**/*.ts' '**/*.js'",
+ "lint": "eslint '**/*.ts'"
},
- "keywords": [
- "soap"
- ],
"license": "MIT",
"devDependencies": {
- "@types/bluebird": "^3.5.26",
- "@types/debug": "^4.1.2",
- "@types/express": "^4.16.1",
- "@types/lodash": "^4.14.122",
- "@types/node": "^11.11.0",
- "@types/sax": "^1.0.1",
- "@types/uuid": "^3.4.4",
- "body-parser": "^1.15.2",
- "colors": "^1.3.3",
- "coveralls": "^3.0.5",
- "diff": "^4.0.1",
- "doctoc": "^1.4.0",
- "duplexer": "~0.1.1",
- "express": "^4.16.4",
- "finalhandler": "^1.1.1",
- "glob": "^7.1.3",
- "jshint": "^2.10.1",
- "mocha": "^6.1.4",
- "nyc": "^14.1.1",
- "readable-stream": "~2.0.2",
- "semver": "^5.6.0",
- "should": "^13.2.3",
- "sinon": "^1.17.7",
- "source-map-support": "^0.5.10",
- "timekeeper": "^2.1.2",
- "tslint": "^5.18.0",
- "typedoc": "^0.14.2",
- "typescript": "^3.3.3333"
+ "@types/debug": "4.1.5",
+ "@types/express": "4.17.6",
+ "@types/lodash": "4.14.150",
+ "@types/node": "13.13.0",
+ "@types/sax": "1.2.1",
+ "@types/uuid": "7.0.2",
+ "@typescript-eslint/eslint-plugin": "2.28.0",
+ "@typescript-eslint/parser": "2.28.0",
+ "colors": "1.4.0",
+ "coveralls": "^3.1.1",
+ "diff": "4.0.2",
+ "doctoc": "^2.2.1",
+ "duplexify": "4.1.1",
+ "eslint": "6.8.0",
+ "eslint-config-prettier": "6.10.1",
+ "eslint-plugin-import": "2.20.2",
+ "eslint-plugin-prettier": "3.1.3",
+ "express": "^4.18.2",
+ "finalhandler": "1.1.2",
+ "glob": "7.1.6",
+ "jshint": "2.11.0",
+ "mocha": "^11.7.1",
+ "nyc": "^17.1.0",
+ "prettier": "2.0.4",
+ "readable-stream": "3.6.0",
+ "serve-static": "1.14.1",
+ "should": "13.2.3",
+ "sinon": "9.0.2",
+ "source-map-support": "0.5.16",
+ "timekeeper": "2.2.0",
+ "typedoc": "^0.28.7",
+ "typescript": "3.8.3"
+ },
+ "resolutions": {
+ "json-schema": "^0.4.0",
+ "form-data": "^2.5.4"
}
}
diff --git a/renovate.json b/renovate.json
new file mode 100644
index 000000000..e7a710ea3
--- /dev/null
+++ b/renovate.json
@@ -0,0 +1,9 @@
+{
+ "extends": ["config:base"],
+ "packageRules": [
+ {
+ "depTypeList": ["devDependencies"],
+ "rangeStrategy": "pin"
+ }
+ ]
+}
diff --git a/soap-stub.js b/soap-stub.js
index 1b51d3445..7c8202c95 100644
--- a/soap-stub.js
+++ b/soap-stub.js
@@ -26,7 +26,7 @@ module.exports = {
getStub: getStub,
registerClient: registerClient,
reset: reset,
- security: require('./lib/security')
+ security: require('./lib/security'),
};
/**
@@ -75,8 +75,8 @@ function createClient(wsdlUrl, options, cb) {
* @return {Function}
*/
function createErroringStub(err) {
- return function() {
- this.args.forEach(function(argSet) {
+ return function () {
+ this.args.forEach(function (argSet) {
setTimeout(argSet[1].bind(null, err));
});
this.yields(err);
@@ -99,8 +99,8 @@ function createErroringStub(err) {
* @return {Function}
*/
function createRespondingStub(object, body) {
- return function() {
- this.args.forEach(function(argSet) {
+ return function () {
+ this.args.forEach(function (argSet) {
setTimeout(argSet[1].bind(null, null, object));
});
this.yields(null, object, body);
@@ -139,7 +139,7 @@ function getStub(aliasOrWsdlUrl) {
}
function resetStubbedMethods(client) {
- Object.keys(client).forEach(function(method) {
+ Object.keys(client).forEach(function (method) {
method = client[method];
if (typeof method === 'function' && typeof method.reset === 'function') {
method.reset();
diff --git a/src/client.ts b/src/client.ts
index 403eb148e..b7d3c962d 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -3,18 +3,17 @@
* MIT Licensed
*/
-import * as assert from 'assert';
-import * as BluebirdPromise from 'bluebird';
-import * as concatStream from 'concat-stream';
-import * as debugBuilder from 'debug';
+import assert from 'assert';
+import concatStream from 'concat-stream';
+import debugBuilder from 'debug';
import { EventEmitter } from 'events';
import { IncomingHttpHeaders } from 'http';
-import * as _ from 'lodash';
-import * as request from 'request';
+import _ from 'lodash';
+import request from 'request';
import { v4 as uuid4 } from 'uuid';
import { HttpClient, Request } from './http';
import { IHeaders, IOptions, ISecurity, SoapMethod } from './types';
-import { findPrefix } from './utils';
+import { findPrefix, promisifyAll } from './utils';
import { WSDL } from './wsdl';
import { IPort, OperationElement, ServiceElement } from './wsdl/elements';
@@ -74,11 +73,7 @@ export class Client extends EventEmitter {
this._initializeOptions(options);
this._initializeServices(endpoint);
this.httpClient = options.httpClient || new HttpClient(options);
- const promiseOptions: BluebirdPromise.PromisifyAllOptions = { multiArgs: true };
- if (options.overridePromiseSuffix) {
- promiseOptions.suffix = options.overridePromiseSuffix;
- }
- BluebirdPromise.promisifyAll(this, promiseOptions);
+ promisifyAll(this, options?.overridePromiseSuffix ?? 'Async');
}
/** add soapHeader to soap:Header node */
@@ -90,7 +85,13 @@ export class Client extends EventEmitter {
return this.soapHeaders.push(soapHeader) - 1;
}
- public changeSoapHeader(index: any, soapHeader: any, name?: any, namespace?: any, xmlns?: any): void {
+ public changeSoapHeader(
+ index: any,
+ soapHeader: any,
+ name?: any,
+ namespace?: any,
+ xmlns?: any
+ ): void {
if (!this.soapHeaders) {
this.soapHeaders = [];
}
@@ -123,7 +124,12 @@ export class Client extends EventEmitter {
this.httpHeaders = null;
}
- public addBodyAttribute(bodyAttribute: any, name?: string, namespace?: string, xmlns?: string): void {
+ public addBodyAttribute(
+ bodyAttribute: any,
+ name?: string,
+ namespace?: string,
+ xmlns?: string
+ ): void {
if (!this.bodyAttributes) {
this.bodyAttributes = [];
}
@@ -134,7 +140,9 @@ export class Client extends EventEmitter {
});
bodyAttribute = composition;
}
- if (bodyAttribute.substr(0, 1) !== ' ') { bodyAttribute = ' ' + bodyAttribute; }
+ if (bodyAttribute.substr(0, 1) !== ' ') {
+ bodyAttribute = ' ' + bodyAttribute;
+ }
this.bodyAttributes.push(bodyAttribute);
}
@@ -236,35 +244,49 @@ export class Client extends EventEmitter {
extraHeaders = options;
options = temp;
}
- this._invoke(method, args, location, (error, result, rawResponse, soapHeader, rawRequest) => {
- callback(error, result, rawResponse, soapHeader, rawRequest);
- }, options, extraHeaders);
+ this._invoke(
+ method,
+ args,
+ location,
+ (error, result, rawResponse, soapHeader, rawRequest) => {
+ callback(error, result, rawResponse, soapHeader, rawRequest);
+ },
+ options,
+ extraHeaders
+ );
};
}
private _processSoapHeader(soapHeader, name, namespace, xmlns) {
switch (typeof soapHeader) {
- case 'object':
- return this.wsdl.objectToXML(soapHeader, name, namespace, xmlns, true);
- case 'function':
- const _this = this;
- // arrow function does not support arguments variable
- // tslint:disable-next-line
- return function() {
- const result = soapHeader.apply(null, arguments);
-
- if (typeof result === 'object') {
- return _this.wsdl.objectToXML(result, name, namespace, xmlns, true);
- } else {
- return result;
- }
- };
- default:
- return soapHeader;
+ case 'object':
+ return this.wsdl.objectToXML(soapHeader, name, namespace, xmlns, true);
+ case 'function':
+ const _this = this;
+ // arrow function does not support arguments variable
+ // tslint:disable-next-line
+ return function () {
+ const result = soapHeader.apply(null, arguments);
+
+ if (typeof result === 'object') {
+ return _this.wsdl.objectToXML(result, name, namespace, xmlns, true);
+ } else {
+ return result;
+ }
+ };
+ default:
+ return soapHeader;
}
}
- private _invoke(method: OperationElement, args, location: string, callback, options, extraHeaders) {
+ private _invoke(
+ method: OperationElement,
+ args,
+ location: string,
+ callback,
+ options,
+ extraHeaders
+ ) {
const name = method.$name;
const input = method.input;
const output = method.output;
@@ -303,7 +325,7 @@ export class Client extends EventEmitter {
return callback(null, obj, body, obj.Header);
}
- if ( typeof obj.Body !== 'object' ) {
+ if (typeof obj.Body !== 'object') {
const error: ISoapError = new Error('Cannot parse response');
error.response = response;
error.body = body;
@@ -320,7 +342,7 @@ export class Client extends EventEmitter {
if (!result) {
['Response', 'Out', 'Output'].forEach((term) => {
if (obj.Body.hasOwnProperty(name + term)) {
- return result = obj.Body[name + term];
+ return (result = obj.Body[name + term]);
}
});
}
@@ -356,7 +378,7 @@ export class Client extends EventEmitter {
} else if (method.soapAction !== undefined && method.soapAction !== null) {
soapAction = method.soapAction;
} else {
- soapAction = ((ns.lastIndexOf('/') !== ns.length - 1) ? ns + '/' : ns) + name;
+ soapAction = (ns.lastIndexOf('/') !== ns.length - 1 ? ns + '/' : ns) + name;
}
if (this.wsdl.options.forceSoap12Headers) {
@@ -372,8 +394,12 @@ export class Client extends EventEmitter {
if (this.httpHeaders === null) {
headers = {};
} else {
- for (const header in this.httpHeaders) { headers[header] = this.httpHeaders[header]; }
- for (const attr in extraHeaders) { headers[attr] = extraHeaders[attr]; }
+ for (const header in this.httpHeaders) {
+ headers[header] = this.httpHeaders[header];
+ }
+ for (const attr in extraHeaders) {
+ headers[attr] = extraHeaders[attr];
+ }
}
// Allow the security object to add headers
@@ -384,50 +410,72 @@ export class Client extends EventEmitter {
this.security.addOptions(options);
}
- if ((style === 'rpc') && ( ( input.parts || input.name === 'element' ) || args === null) ) {
+ if (style === 'rpc' && (input.parts || input.name === 'element' || args === null)) {
assert.ok(!style || style === 'rpc', 'invalid message definition for document style binding');
- message = this.wsdl.objectToRpcXML(name, args, alias, ns, (input.name !== 'element' ));
- (method.inputSoap === 'encoded') && (encoding = 'soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" ');
+ message = this.wsdl.objectToRpcXML(name, args, alias, ns, input.name !== 'element');
+ method.inputSoap === 'encoded' &&
+ (encoding = 'soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" ');
} else {
assert.ok(!style || style === 'document', 'invalid message definition for rpc style binding');
// pass `input.$lookupType` if `input.$type` could not be found
- message = this.wsdl.objectToDocumentXML(input.$name, args, input.targetNSAlias, input.targetNamespace, (input.$type || input.$lookupType));
+ message = this.wsdl.objectToDocumentXML(
+ input.$name,
+ args,
+ input.targetNSAlias,
+ input.targetNamespace,
+ input.$type || input.$lookupType
+ );
}
let decodedHeaders;
if (this.soapHeaders) {
- decodedHeaders = this.soapHeaders.map((header) => {
- if (typeof header === 'function') {
- return header(method, location, soapAction, args);
- } else {
- return header;
- }
- }).join(' ');
+ decodedHeaders = this.soapHeaders
+ .map((header) => {
+ if (typeof header === 'function') {
+ return header(method, location, soapAction, args);
+ } else {
+ return header;
+ }
+ })
+ .join(' ');
}
- xml = '' +
- '<' + envelopeKey + ':Envelope ' +
- xmlnsSoap + ' ' +
+ xml =
+ '' +
+ '<' +
+ envelopeKey +
+ ':Envelope ' +
+ xmlnsSoap +
+ ' ' +
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
encoding +
- this.wsdl.xmlnsInEnvelope + '>' +
- ((decodedHeaders || this.security) ?
- (
- '<' + envelopeKey + ':Header' + (this.wsdl.xmlnsInHeader ? (' ' + this.wsdl.xmlnsInHeader) : '') + '>' +
+ this.wsdl.xmlnsInEnvelope +
+ '>' +
+ (decodedHeaders || this.security
+ ? '<' +
+ envelopeKey +
+ ':Header' +
+ (this.wsdl.xmlnsInHeader ? ' ' + this.wsdl.xmlnsInHeader : '') +
+ '>' +
(decodedHeaders ? decodedHeaders : '') +
(this.security && !this.security.postProcess ? this.security.toXML() : '') +
- '' + envelopeKey + ':Header>'
- )
- :
- ''
- ) +
- '<' + envelopeKey + ':Body' +
+ '' +
+ envelopeKey +
+ ':Header>'
+ : '') +
+ '<' +
+ envelopeKey +
+ ':Body' +
(this.bodyAttributes ? this.bodyAttributes.join(' ') : '') +
(this.security && this.security.postProcess ? ' Id="_0"' : '') +
'>' +
message +
- '' + envelopeKey + ':Body>' +
- '' + envelopeKey + ':Envelope>';
+ '' +
+ envelopeKey +
+ ':Body>' +
+ '' +
+ envelopeKey +
+ ':Envelope>';
if (this.security && this.security.postProcess) {
xml = this.security.postProcess(xml, envelopeKey);
@@ -474,15 +522,16 @@ export class Client extends EventEmitter {
// When the output element cannot be looked up in the wsdl, play it safe and
// don't stream
if (response.statusCode !== 200 || !output || !output.$lookupTypes) {
- response.pipe(concatStream({encoding: 'string'}, (body) => {
- this.lastResponse = body;
- this.lastResponseHeaders = response && response.headers;
- this.lastElapsedTime = Date.now() - startTime;
- this.emit('response', body, response, eid);
-
- return parseSync(body, response);
-
- }));
+ response.pipe(
+ concatStream({ encoding: 'string' }, (body) => {
+ this.lastResponse = body;
+ this.lastResponseHeaders = response && response.headers;
+ this.lastElapsedTime = Date.now() - startTime;
+ this.emit('response', body, response, eid);
+
+ return parseSync(body, response);
+ })
+ );
return;
}
@@ -505,21 +554,29 @@ export class Client extends EventEmitter {
return;
}
- req = this.httpClient.request(location, xml, (err, response, body) => {
- this.lastResponse = body;
- this.lastResponseHeaders = response && response.headers;
- this.lastElapsedTime = response && response.elapsedTime;
- this.emit('response', body, response, eid);
-
- if (err) {
- callback(err, undefined, undefined, undefined, xml);
- } else {
- return parseSync(body, response);
- }
- }, headers, options, this);
+ req = this.httpClient.request(
+ location,
+ xml,
+ (err, response, body) => {
+ this.lastResponse = body;
+ this.lastResponseHeaders = response && response.headers;
+ this.lastElapsedTime = response && response.elapsedTime;
+ this.emit('response', body, response, eid);
+
+ if (err) {
+ callback(err, undefined, undefined, undefined, xml);
+ } else {
+ return parseSync(body, response);
+ }
+ },
+ headers,
+ options,
+ this
+ );
// Added mostly for testability, but possibly useful for debugging
- if (req && req.headers && !options.ntlm) { // fixes an issue when req or req.headers is undefined, doesn't apply to ntlm requests
+ if (req && req.headers && !options.ntlm) {
+ // fixes an issue when req or req.headers is undefined, doesn't apply to ntlm requests
this.lastRequestHeaders = req.headers;
}
}
diff --git a/src/http.ts b/src/http.ts
index d6583e6e4..b58cd03fe 100644
--- a/src/http.ts
+++ b/src/http.ts
@@ -3,12 +3,12 @@
* MIT Licensed
*/
-import * as debugBuilder from 'debug';
-import * as httpNtlm from 'httpntlm';
-import * as _ from 'lodash';
-import * as req from 'request';
-import * as url from 'url';
-import * as uuid from 'uuid/v4';
+import debugBuilder from 'debug';
+import httpNtlm from 'httpntlm';
+import _ from 'lodash';
+import req from 'request';
+import url from 'url';
+import { v4 as uuidv4 } from 'uuid';
import { IHeaders, IOptions } from './types';
const debug = debugBuilder('node-soap');
@@ -50,7 +50,12 @@ export class HttpClient {
* @param {Object} exoptions Extra options
* @returns {Object} The http request object for the `request` module
*/
- public buildRequest(rurl: string, data: any, exheaders?: IHeaders, exoptions: IExOptions = {}): any {
+ public buildRequest(
+ rurl: string,
+ data: any,
+ exheaders?: IHeaders,
+ exoptions: IExOptions = {}
+ ): any {
const curl = url.parse(rurl);
const secure = curl.protocol === 'https:';
const host = curl.hostname;
@@ -59,11 +64,11 @@ export class HttpClient {
const method = data ? 'POST' : 'GET';
const headers: IHeaders = {
'User-Agent': 'node-soap/' + VERSION,
- 'Accept': 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8',
+ Accept: 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding': 'none',
'Accept-Charset': 'utf-8',
- 'Connection': exoptions.forever ? 'keep-alive' : 'close',
- 'Host': host + (isNaN(port) ? '' : ':' + port),
+ Connection: exoptions.forever ? 'keep-alive' : 'close',
+ Host: host + (isNaN(port) ? '' : ':' + port),
};
const mergeOptions = ['headers'];
const attachments: IAttachment[] = exoptions.attachments || [];
@@ -86,25 +91,30 @@ export class HttpClient {
};
if (exoptions.forceMTOM || attachments.length > 0) {
- const start = uuid();
+ const start = uuidv4();
let action = null;
if (headers['Content-Type'].indexOf('action') > -1) {
- for (const ct of headers['Content-Type'].split('; ')) {
- if (ct.indexOf('action') > -1) {
- action = ct;
- }
- }
+ for (const ct of headers['Content-Type'].split('; ')) {
+ if (ct.indexOf('action') > -1) {
+ action = ct;
+ }
+ }
}
headers['Content-Type'] =
- 'multipart/related; type="application/xop+xml"; start="<' + start + '>"; start-info="text/xml"; boundary=' + uuid();
+ 'multipart/related; type="application/xop+xml"; start="<' +
+ start +
+ '>"; start-info="text/xml"; boundary=' +
+ uuidv4();
if (action) {
- headers['Content-Type'] = headers['Content-Type'] + '; ' + action;
+ headers['Content-Type'] = headers['Content-Type'] + '; ' + action;
}
- const multipart: any[] = [{
- 'Content-Type': 'application/xop+xml; charset=UTF-8; type="text/xml"',
- 'Content-ID': '<' + start + '>',
- 'body': data,
- }];
+ const multipart: any[] = [
+ {
+ 'Content-Type': 'application/xop+xml; charset=UTF-8; type="text/xml"',
+ 'Content-ID': '<' + start + '>',
+ body: data,
+ },
+ ];
attachments.forEach((attachment) => {
multipart.push({
@@ -112,7 +122,7 @@ export class HttpClient {
'Content-Transfer-Encoding': 'binary',
'Content-ID': '<' + attachment.contentId + '>',
'Content-Disposition': 'attachment; filename="' + attachment.name + '"',
- 'body': attachment.body,
+ body: attachment.body,
});
});
options.multipart = multipart;
@@ -145,8 +155,9 @@ export class HttpClient {
if (typeof body === 'string') {
// Remove any extra characters that appear before or after the SOAP
// envelope.
- const match =
- body.replace(//, '').match(/(?:<\?[^?]*\?>[\s]*)?<([^:]*):Envelope([\S\s]*)<\/\1:Envelope>/i);
+ const match = body
+ .replace(//, '')
+ .match(/(?:<\?[^?]*\?>[\s]*)?<([^:]*):Envelope([\S\s]*)<\/\1:Envelope>/i);
if (match) {
body = match[0];
}
@@ -160,7 +171,7 @@ export class HttpClient {
callback: (error: any, res?: any, body?: any) => any,
exheaders?: IHeaders,
exoptions?: IExOptions,
- caller?,
+ caller?
) {
const options = this.buildRequest(rurl, data, exheaders, exoptions);
let req: req.Request;
@@ -175,7 +186,7 @@ export class HttpClient {
return callback(err);
}
// if result is stream
- if ( typeof res.body !== 'string') {
+ if (typeof res.body !== 'string') {
res.body = res.body.toString();
}
res.body = this.handleResponse(req, res, res.body);
@@ -194,7 +205,13 @@ export class HttpClient {
return req;
}
- public requestStream(rurl: string, data: any, exheaders?: IHeaders, exoptions?: IExOptions, caller?): req.Request {
+ public requestStream(
+ rurl: string,
+ data: any,
+ exheaders?: IHeaders,
+ exoptions?: IExOptions,
+ caller?
+ ): req.Request {
const options = this.buildRequest(rurl, data, exheaders, exoptions);
return this._request(options);
}
diff --git a/src/nscontext.ts b/src/nscontext.ts
index 55d8344d5..44cd44732 100644
--- a/src/nscontext.ts
+++ b/src/nscontext.ts
@@ -1,4 +1,3 @@
-
interface INamespace {
declared: boolean;
prefix: string;
@@ -13,7 +12,7 @@ interface INamespace {
*/
class NamespaceScope {
public parent: NamespaceScope;
- public namespaces: {[key: string]: INamespace};
+ public namespaces: { [key: string]: INamespace };
constructor(parent: NamespaceScope) {
this.parent = parent;
@@ -196,7 +195,7 @@ export class NamespaceContext {
} else {
// Try to generate a unique namespace
while (true) {
- prefix = 'ns' + (++this.prefixCount);
+ prefix = 'ns' + ++this.prefixCount;
if (!this.getNamespaceURI(prefix)) {
// The prefix is not used
break;
diff --git a/src/security/BasicAuthSecurity.ts b/src/security/BasicAuthSecurity.ts
index 9d283fbcd..b346df26c 100644
--- a/src/security/BasicAuthSecurity.ts
+++ b/src/security/BasicAuthSecurity.ts
@@ -1,5 +1,4 @@
-
-import * as _ from 'lodash';
+import _ from 'lodash';
import { IHeaders, ISecurity } from '../types';
export class BasicAuthSecurity implements ISecurity {
@@ -15,7 +14,8 @@ export class BasicAuthSecurity implements ISecurity {
}
public addHeaders(headers: IHeaders): void {
- headers.Authorization = 'Basic ' + new Buffer((this._username + ':' + this._password) || '').toString('base64');
+ headers.Authorization =
+ 'Basic ' + Buffer.from(this._username + ':' + this._password || '').toString('base64');
}
public toXML(): string {
diff --git a/src/security/BearerSecurity.ts b/src/security/BearerSecurity.ts
index d7619c661..5ab967143 100644
--- a/src/security/BearerSecurity.ts
+++ b/src/security/BearerSecurity.ts
@@ -1,5 +1,4 @@
-
-import * as _ from 'lodash';
+import _ from 'lodash';
import { IHeaders, ISecurity } from '../types';
export class BearerSecurity implements ISecurity {
diff --git a/src/security/ClientSSLSecurity.ts b/src/security/ClientSSLSecurity.ts
index babaf5d12..2c2c064a7 100644
--- a/src/security/ClientSSLSecurity.ts
+++ b/src/security/ClientSSLSecurity.ts
@@ -1,7 +1,6 @@
-
-import * as fs from 'fs';
-import * as https from 'https';
-import * as _ from 'lodash';
+import fs from 'fs';
+import https from 'https';
+import _ from 'lodash';
import { ISecurity } from '../types';
/**
@@ -14,7 +13,7 @@ import { ISecurity } from '../types';
* @param {Object} [defaults]
* @constructor
*/
-export class ClientSSLSecurity implements ISecurity {
+export class ClientSSLSecurity implements ISecurity {
private key: Buffer;
private cert: Buffer;
private ca;
@@ -22,7 +21,12 @@ export class ClientSSLSecurity implements ISecurity {
private agent: https.Agent;
constructor(key: string | Buffer, cert: string | Buffer, defaults?: any);
- constructor(key: string | Buffer, cert: string | Buffer, ca?: Buffer | string | any[], defaults?: any) {
+ constructor(
+ key: string | Buffer,
+ cert: string | Buffer,
+ ca?: Buffer | string | any[],
+ defaults?: any
+ ) {
if (key) {
if (Buffer.isBuffer(key)) {
this.key = key;
diff --git a/src/security/ClientSSLSecurityPFX.ts b/src/security/ClientSSLSecurityPFX.ts
index 71418084d..61bc45860 100644
--- a/src/security/ClientSSLSecurityPFX.ts
+++ b/src/security/ClientSSLSecurityPFX.ts
@@ -1,7 +1,6 @@
-
-import * as fs from 'fs';
-import * as https from 'https';
-import * as _ from 'lodash';
+import fs from 'fs';
+import https from 'https';
+import _ from 'lodash';
import { ISecurity } from '../types';
/**
diff --git a/src/security/NTLMSecurity.ts b/src/security/NTLMSecurity.ts
index b09a3abcb..59790a431 100644
--- a/src/security/NTLMSecurity.ts
+++ b/src/security/NTLMSecurity.ts
@@ -1,5 +1,4 @@
-
-import * as _ from 'lodash';
+import _ from 'lodash';
import { IHeaders, ISecurity } from '../types';
export class NTLMSecurity implements ISecurity {
diff --git a/src/security/WSSecurity.ts b/src/security/WSSecurity.ts
index 5d107bca1..edabb9c0c 100644
--- a/src/security/WSSecurity.ts
+++ b/src/security/WSSecurity.ts
@@ -1,5 +1,4 @@
-
-import * as crypto from 'crypto';
+import crypto from 'crypto';
import { ISecurity } from '../types';
import { passwordDigest, xmlEscape } from '../utils';
@@ -40,12 +39,18 @@ export class WSSecurity implements ISecurity {
this._passwordType = 'PasswordText';
}
- this._hasTimeStamp = options.hasTimeStamp || typeof options.hasTimeStamp === 'boolean' ? !!options.hasTimeStamp : true;
+ this._hasTimeStamp =
+ options.hasTimeStamp || typeof options.hasTimeStamp === 'boolean'
+ ? !!options.hasTimeStamp
+ : true;
/*jshint eqnull:true */
if (options.hasNonce != null) {
this._hasNonce = !!options.hasNonce;
}
- this._hasTokenCreated = options.hasTokenCreated || typeof options.hasTokenCreated === 'boolean' ? !!options.hasTokenCreated : true;
+ this._hasTokenCreated =
+ options.hasTokenCreated || typeof options.hasTokenCreated === 'boolean'
+ ? !!options.hasTokenCreated
+ : true;
if (options.actor != null) {
this._actor = options.actor;
}
@@ -60,21 +65,36 @@ export class WSSecurity implements ISecurity {
function pad(n) {
return n < 10 ? '0' + n : n;
}
- return d.getUTCFullYear() + '-'
- + pad(d.getUTCMonth() + 1) + '-'
- + pad(d.getUTCDate()) + 'T'
- + pad(d.getUTCHours()) + ':'
- + pad(d.getUTCMinutes()) + ':'
- + pad(d.getUTCSeconds()) + 'Z';
+ return (
+ d.getUTCFullYear() +
+ '-' +
+ pad(d.getUTCMonth() + 1) +
+ '-' +
+ pad(d.getUTCDate()) +
+ 'T' +
+ pad(d.getUTCHours()) +
+ ':' +
+ pad(d.getUTCMinutes()) +
+ ':' +
+ pad(d.getUTCSeconds()) +
+ 'Z'
+ );
}
const now = new Date();
const created = getDate(now);
let timeStampXml = '';
if (this._hasTimeStamp) {
- const expires = getDate( new Date(now.getTime() + (1000 * 600)) );
- timeStampXml = '' +
- '' + created + '' +
- '' + expires + '' +
+ const expires = getDate(new Date(now.getTime() + 1000 * 600));
+ timeStampXml =
+ '' +
+ '' +
+ created +
+ '' +
+ '' +
+ expires +
+ '' +
'';
}
@@ -87,26 +107,44 @@ export class WSSecurity implements ISecurity {
nonce = nHash.digest('base64');
}
if (this._passwordType === 'PasswordText') {
- password = '' + xmlEscape(this._password) + '';
+ password =
+ '' +
+ xmlEscape(this._password) +
+ '';
if (nonce) {
- password += '' + nonce + '';
+ password +=
+ '' +
+ nonce +
+ '';
}
} else {
- /* Specific Testcase for passwordDigest calculation cover this code
+ /* Specific Testcase for passwordDigest calculation cover this code
/* istanbul ignore next */
- password = '' + passwordDigest(nonce, created, this._password) + '' +
- '' + nonce + '';
+ password =
+ '' +
+ passwordDigest(nonce, created, this._password) +
+ '' +
+ '' +
+ nonce +
+ '';
}
- return '' +
timeStampXml +
- '' +
- '' + xmlEscape(this._username) + '' +
+ '' +
+ '' +
+ xmlEscape(this._username) +
+ '' +
password +
(this._hasTokenCreated ? '' + created + '' : '') +
'' +
- '';
+ ''
+ );
}
}
diff --git a/src/security/WSSecurityCert.ts b/src/security/WSSecurityCert.ts
index d585ba028..dee66dc2f 100644
--- a/src/security/WSSecurityCert.ts
+++ b/src/security/WSSecurityCert.ts
@@ -7,9 +7,20 @@ function addMinutes(date: Date, minutes: number) {
}
function dateStringForSOAP(date: Date): string {
- return date.getUTCFullYear() + '-' + ('0' + (date.getUTCMonth() + 1)).slice(-2) + '-' +
- ('0' + date.getUTCDate()).slice(-2) + 'T' + ('0' + date.getUTCHours()).slice(-2) + ':' +
- ('0' + date.getUTCMinutes()).slice(-2) + ':' + ('0' + date.getUTCSeconds()).slice(-2) + 'Z';
+ return (
+ date.getUTCFullYear() +
+ '-' +
+ ('0' + (date.getUTCMonth() + 1)).slice(-2) +
+ '-' +
+ ('0' + date.getUTCDate()).slice(-2) +
+ 'T' +
+ ('0' + date.getUTCHours()).slice(-2) +
+ ':' +
+ ('0' + date.getUTCMinutes()).slice(-2) +
+ ':' +
+ ('0' + date.getUTCSeconds()).slice(-2) +
+ 'Z'
+ );
}
function generateCreated(): string {
@@ -21,7 +32,7 @@ function generateExpires(): string {
}
function insertStr(src: string, dst: string, pos: number): string {
- return [ dst.slice(0, pos), src, dst.slice(pos) ].join('');
+ return [dst.slice(0, pos), src, dst.slice(pos)].join('');
}
function generateId(): string {
@@ -42,6 +53,7 @@ export interface IXmlSignerOptions {
prefix?: string;
attrs?: { [key: string]: string };
existingPrefixes?: { [key: string]: string };
+ location?: { action: string };
}
export class WSSecurityCert implements ISecurity {
@@ -55,8 +67,14 @@ export class WSSecurityCert implements ISecurity {
private expires: string;
private additionalReferences: string[] = [];
- constructor(privatePEM: any, publicP12PEM: any, password: any, options: IWSSecurityCertOptions = {}) {
- this.publicP12PEM = publicP12PEM.toString()
+ constructor(
+ privatePEM: any,
+ publicP12PEM: any,
+ password: any,
+ options: IWSSecurityCertOptions = {}
+ ) {
+ this.publicP12PEM = publicP12PEM
+ .toString()
.replace('-----BEGIN CERTIFICATE-----', '')
.replace('-----END CERTIFICATE-----', '')
.replace(/(\r\n|\n|\r)/gm, '');
@@ -66,8 +84,8 @@ export class WSSecurityCert implements ISecurity {
this.signer.signatureAlgorithm = options.signatureAlgorithm;
this.signer.addReference(
'//*[name(.)="soap:Body"]',
- [ 'http://www.w3.org/2001/10/xml-exc-c14n#' ],
- 'http://www.w3.org/2001/04/xmlenc#sha256',
+ ['http://www.w3.org/2001/10/xml-exc-c14n#'],
+ 'http://www.w3.org/2001/04/xmlenc#sha256'
);
}
@@ -85,7 +103,9 @@ export class WSSecurityCert implements ISecurity {
this.signerOptions.existingPrefixes.wsse = `${oasisBaseUri}/oasis-200401-wss-wssecurity-secext-1.0.xsd`;
}
} else {
- this.signerOptions = { existingPrefixes: { wsse: `${oasisBaseUri}/oasis-200401-wss-wssecurity-secext-1.0.xsd` } };
+ this.signerOptions = {
+ existingPrefixes: { wsse: `${oasisBaseUri}/oasis-200401-wss-wssecurity-secext-1.0.xsd` },
+ };
}
this.signer.signingKey = {
@@ -94,14 +114,20 @@ export class WSSecurityCert implements ISecurity {
};
this.x509Id = `x509-${generateId()}`;
this.hasTimeStamp = typeof options.hasTimeStamp === 'undefined' ? true : !!options.hasTimeStamp;
- this.signatureTransformations = Array.isArray(options.signatureTransformations) ? options.signatureTransformations
- : [ 'http://www.w3.org/2000/09/xmldsig#enveloped-signature', 'http://www.w3.org/2001/10/xml-exc-c14n#' ];
+ this.signatureTransformations = Array.isArray(options.signatureTransformations)
+ ? options.signatureTransformations
+ : [
+ 'http://www.w3.org/2000/09/xmldsig#enveloped-signature',
+ 'http://www.w3.org/2001/10/xml-exc-c14n#',
+ ];
this.signer.keyInfoProvider = {};
this.signer.keyInfoProvider.getKeyInfo = (key) => {
- return `` +
+ return (
+ `` +
`` +
- ``;
+ ``
+ );
};
}
@@ -134,24 +160,41 @@ export class WSSecurityCert implements ISecurity {
const references = this.signatureTransformations;
const bodyXpath = `//*[name(.)='${envelopeKey}:Body']`;
- if (!(this.signer.references.filter((ref) => (ref.xpath === bodyXpath)).length > 0)) {
+ if (!(this.signer.references.filter((ref) => ref.xpath === bodyXpath).length > 0)) {
this.signer.addReference(bodyXpath, references);
}
for (const name of this.additionalReferences) {
const xpath = `//*[name(.)='${name}']`;
- if (!(this.signer.references.filter((ref) => (ref.xpath === xpath)).length > 0)) {
+ if (!(this.signer.references.filter((ref) => ref.xpath === xpath).length > 0)) {
this.signer.addReference(xpath, references);
}
}
const timestampXpath = `//*[name(.)='wsse:Security']/*[local-name(.)='Timestamp']`;
- if (this.hasTimeStamp && !(this.signer.references.filter((ref) => (ref.xpath === timestampXpath)).length > 0)) {
+ if (
+ this.hasTimeStamp &&
+ !(this.signer.references.filter((ref) => ref.xpath === timestampXpath).length > 0)
+ ) {
this.signer.addReference(timestampXpath, references);
}
+ if (this.signerOptions?.location?.action && this.signerOptions?.location?.action !== 'append') {
+ // With the existingPrefixes.location.action option xml-crypto tries to insert a second root node to the xml.
+ // Only the 'append' case works as it appends to the root node.
+ // This is not allowed by xml-dom any longer as it is a security vulnerability.
+ // Refer https://nvd.nist.gov/vuln/detail/CVE-2022-39353
+ // It does not appear this can be fixed as it is a fundamental part of the way xml-crypto works.
+ // Refer https://github.com/yaronn/xml-crypto/blob/701616302d6f0ec752646632203b3dab717751c0/lib/signed-xml.js#L809
+ throw new Error('signerOptions.location.action = "append" is not supported');
+ }
+
this.signer.computeSignature(xmlWithSec, this.signerOptions);
- return insertStr(this.signer.getSignatureXml(), xmlWithSec, xmlWithSec.indexOf(''));
+ return insertStr(
+ this.signer.getSignatureXml(),
+ xmlWithSec,
+ xmlWithSec.indexOf('')
+ );
}
}
diff --git a/src/security/index.ts b/src/security/index.ts
index 1fead54cd..84aedcbd7 100644
--- a/src/security/index.ts
+++ b/src/security/index.ts
@@ -1,4 +1,3 @@
-
export * from './BasicAuthSecurity';
export * from './BearerSecurity';
export * from './ClientSSLSecurity';
diff --git a/src/server.ts b/src/server.ts
index 6b3e0141e..bca892194 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -4,9 +4,16 @@
*/
import { EventEmitter } from 'events';
-import * as http from 'http';
-import * as url from 'url';
-import { IOneWayOptions, ISecurity, IServerOptions, IServices, ISoapFault, ISoapServiceMethod } from './types';
+import http from 'http';
+import url from 'url';
+import {
+ IOneWayOptions,
+ ISecurity,
+ IServerOptions,
+ IServices,
+ ISoapFault,
+ ISoapServiceMethod,
+} from './types';
import { findPrefix } from './utils';
import { WSDL } from './wsdl';
import { BindingElement, IPort } from './wsdl/elements';
@@ -14,8 +21,7 @@ import { BindingElement, IPort } from './wsdl/elements';
let zlib;
try {
zlib = require('zlib');
-} catch (error) {
-}
+} catch (error) {}
interface IExpressApp {
route;
@@ -27,23 +33,31 @@ type Request = http.IncomingMessage & { body?: any };
type Response = http.ServerResponse;
function isExpress(server): server is IExpressApp {
- return (typeof server.route === 'function' && typeof server.use === 'function');
+ return typeof server.route === 'function' && typeof server.use === 'function';
}
function isPromiseLike(obj): obj is PromiseLike {
- return (!!obj && typeof obj.then === 'function');
+ return !!obj && typeof obj.then === 'function';
}
function getDateString(d) {
function pad(n) {
return n < 10 ? '0' + n : n;
}
- return d.getUTCFullYear() + '-'
- + pad(d.getUTCMonth() + 1) + '-'
- + pad(d.getUTCDate()) + 'T'
- + pad(d.getUTCHours()) + ':'
- + pad(d.getUTCMinutes()) + ':'
- + pad(d.getUTCSeconds()) + 'Z';
+ return (
+ d.getUTCFullYear() +
+ '-' +
+ pad(d.getUTCMonth() + 1) +
+ '-' +
+ pad(d.getUTCDate()) +
+ 'T' +
+ pad(d.getUTCHours()) +
+ ':' +
+ pad(d.getUTCMinutes()) +
+ ':' +
+ pad(d.getUTCSeconds()) +
+ 'Z'
+ );
}
// tslint:disable unified-signatures
@@ -76,17 +90,28 @@ export class Server extends EventEmitter {
public services: IServices;
public log: (type: string, data: any) => any;
public authorizeConnection: (req: Request, res?: Response) => boolean;
- public authenticate: (security: any, processAuthResult?: (result: boolean) => void, req?: Request, obj?: any) => boolean | void | Promise;
+ public authenticate: (
+ security: any,
+ processAuthResult?: (result: boolean) => void,
+ req?: Request,
+ obj?: any
+ ) => boolean | void | Promise;
private wsdl: WSDL;
private suppressStack: boolean;
private returnFault: boolean;
- private onewayOptions: IOneWayOptions & { statusCode?: number; };
+ private onewayOptions: IOneWayOptions & { statusCode?: number };
private enableChunkedEncoding: boolean;
private soapHeaders: any[];
private callback?: (err: any, res: any) => void;
- constructor(server: ServerType, path: string, services: IServices, wsdl: WSDL, options?: IServerOptions) {
+ constructor(
+ server: ServerType,
+ path: string,
+ services: IServices,
+ wsdl: WSDL,
+ options?: IServerOptions
+ ) {
super();
options = options || {
@@ -98,10 +123,10 @@ export class Server extends EventEmitter {
this.wsdl = wsdl;
this.suppressStack = options && options.suppressStack;
this.returnFault = options && options.returnFault;
- this.onewayOptions = options && options.oneWay || {};
+ this.onewayOptions = (options && options.oneWay) || {};
this.enableChunkedEncoding =
options.enableChunkedEncoding === undefined ? true : !!options.enableChunkedEncoding;
- this.callback = options.callback ? options.callback : () => { };
+ this.callback = options.callback ? options.callback : () => {};
if (path[path.length - 1] !== '/') {
path += '/';
}
@@ -155,7 +180,13 @@ export class Server extends EventEmitter {
return this.soapHeaders.push(soapHeader) - 1;
}
- public changeSoapHeader(index: any, soapHeader: any, name?: any, namespace?: any, xmlns?: any): void {
+ public changeSoapHeader(
+ index: any,
+ soapHeader: any,
+ name?: any,
+ namespace?: any,
+ xmlns?: any
+ ): void {
if (!this.soapHeaders) {
this.soapHeaders = [];
}
@@ -173,29 +204,29 @@ export class Server extends EventEmitter {
private _processSoapHeader(soapHeader, name, namespace, xmlns) {
switch (typeof soapHeader) {
- case 'object':
- return this.wsdl.objectToXML(soapHeader, name, namespace, xmlns, true);
- case 'function':
- const _this = this;
- // arrow function does not support arguments variable
- // tslint:disable-next-line
- return function() {
- const result = soapHeader.apply(null, arguments);
-
- if (typeof result === 'object') {
- return _this.wsdl.objectToXML(result, name, namespace, xmlns, true);
- } else {
- return result;
- }
- };
- default:
- return soapHeader;
+ case 'object':
+ return this.wsdl.objectToXML(soapHeader, name, namespace, xmlns, true);
+ case 'function':
+ const _this = this;
+ // arrow function does not support arguments variable
+ // tslint:disable-next-line
+ return function () {
+ const result = soapHeader.apply(null, arguments);
+
+ if (typeof result === 'object') {
+ return _this.wsdl.objectToXML(result, name, namespace, xmlns, true);
+ } else {
+ return result;
+ }
+ };
+ default:
+ return soapHeader;
}
}
private _initializeOptions(options: IServerOptions) {
this.wsdl.options.attributesKey = options.attributesKey || 'attributes';
- this.onewayOptions.statusCode = this.onewayOptions.responseCode ||Â 200;
+ this.onewayOptions.statusCode = this.onewayOptions.responseCode || 200;
this.onewayOptions.emptyBody = !!this.onewayOptions.emptyBody;
}
@@ -213,12 +244,16 @@ export class Server extends EventEmitter {
});
} catch (err) {
if (err.Fault !== undefined) {
- return this._sendError(err.Fault, (result, statusCode) => {
- this._sendHttpResponse(res, statusCode || 500, result);
- if (typeof this.log === 'function') {
- this.log('error', err);
- }
- }, new Date().toISOString());
+ return this._sendError(
+ err.Fault,
+ (result, statusCode) => {
+ this._sendHttpResponse(res, statusCode || 500, result);
+ if (typeof this.log === 'function') {
+ this.log('error', err);
+ }
+ },
+ new Date().toISOString()
+ );
} else {
error = err.stack ? (this.suppressStack === true ? err.message : err.stack) : err;
this._sendHttpResponse(res, /* statusCode */ 500, error);
@@ -290,7 +325,11 @@ export class Server extends EventEmitter {
let serviceName: string;
let portName: string;
const includeTimestamp = obj.Header && obj.Header.Security && obj.Header.Security.Timestamp;
- const authenticate = this.authenticate || function defaultAuthenticate() { return true; };
+ const authenticate =
+ this.authenticate ||
+ function defaultAuthenticate() {
+ return true;
+ };
const callback = (result, statusCode) => {
const response = { result: result };
@@ -299,7 +338,6 @@ export class Server extends EventEmitter {
};
const process = () => {
-
if (typeof this.log === 'function') {
this.log('info', 'Attempting to bind to ' + pathname);
}
@@ -347,24 +385,30 @@ export class Server extends EventEmitter {
try {
if (binding.style === 'rpc') {
- methodName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]);
+ methodName =
+ Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0];
this.emit('request', obj, methodName);
if (headers) {
this.emit('headers', headers, methodName);
}
- this._executeMethod({
- serviceName: serviceName,
- portName: portName,
- methodName: methodName,
- outputName: methodName + 'Response',
- args: body[methodName],
- headers: headers,
- style: 'rpc',
- }, req, callback);
+ this._executeMethod(
+ {
+ serviceName: serviceName,
+ portName: portName,
+ methodName: methodName,
+ outputName: methodName + 'Response',
+ args: body[methodName],
+ headers: headers,
+ style: 'rpc',
+ },
+ req,
+ callback
+ );
} else {
- const messageElemName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]);
+ const messageElemName =
+ Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0];
const pair = binding.topElements[messageElemName];
this.emit('request', obj, pair.methodName);
@@ -374,15 +418,20 @@ export class Server extends EventEmitter {
methodName = pair.methodName;
- this._executeMethod({
- serviceName: serviceName,
- portName: portName,
- methodName: pair.methodName,
- outputName: pair.outputName,
- args: body[messageElemName],
- headers: headers,
- style: 'document',
- }, req, callback, includeTimestamp);
+ this._executeMethod(
+ {
+ serviceName: serviceName,
+ portName: portName,
+ methodName: pair.methodName,
+ outputName: pair.outputName,
+ args: body[messageElemName],
+ headers: headers,
+ style: 'document',
+ },
+ req,
+ callback,
+ includeTimestamp
+ );
}
} catch (error) {
if (error.Fault !== undefined) {
@@ -404,14 +453,18 @@ export class Server extends EventEmitter {
authResultProcessed = true;
// Handle errors
if (authResult instanceof Error) {
- return this._sendError({
- Code: {
- Value: 'SOAP-ENV:Server',
- Subcode: { value: 'InternalServerError' },
+ return this._sendError(
+ {
+ Code: {
+ Value: 'SOAP-ENV:Server',
+ Subcode: { value: 'InternalServerError' },
+ },
+ Reason: { Text: authResult.toString() },
+ statusCode: 500,
},
- Reason: { Text: authResult.toString() },
- statusCode: 500,
- }, callback, includeTimestamp);
+ callback,
+ includeTimestamp
+ );
}
// Handle actual results
@@ -423,35 +476,51 @@ export class Server extends EventEmitter {
if (error.Fault !== undefined) {
return this._sendError(error.Fault, callback, includeTimestamp);
}
- return this._sendError({
- Code: {
- Value: 'SOAP-ENV:Server',
- Subcode: { value: 'InternalServerError' },
+ return this._sendError(
+ {
+ Code: {
+ Value: 'SOAP-ENV:Server',
+ Subcode: { value: 'InternalServerError' },
+ },
+ Reason: { Text: error.toString() },
+ statusCode: 500,
},
- Reason: { Text: error.toString() },
- statusCode: 500,
- }, callback, includeTimestamp);
+ callback,
+ includeTimestamp
+ );
}
} else {
- return this._sendError({
- Code: {
- Value: 'SOAP-ENV:Client',
- Subcode: { value: 'AuthenticationFailure' },
+ return this._sendError(
+ {
+ Code: {
+ Value: 'SOAP-ENV:Client',
+ Subcode: { value: 'AuthenticationFailure' },
+ },
+ Reason: { Text: 'Invalid username or password' },
+ statusCode: 401,
},
- Reason: { Text: 'Invalid username or password' },
- statusCode: 401,
- }, callback, includeTimestamp);
+ callback,
+ includeTimestamp
+ );
}
}
};
- const functionResult = authenticate(obj.Header && obj.Header.Security, processAuthResult, req, obj);
+ const functionResult = authenticate(
+ obj.Header && obj.Header.Security,
+ processAuthResult,
+ req,
+ obj
+ );
if (isPromiseLike(functionResult)) {
- functionResult.then((result: boolean) => {
- processAuthResult(result);
- }, (err: any) => {
- processAuthResult(err);
- });
+ functionResult.then(
+ (result: boolean) => {
+ processAuthResult(result);
+ },
+ (err: any) => {
+ processAuthResult(err);
+ }
+ );
}
if (typeof functionResult === 'boolean') {
processAuthResult(functionResult);
@@ -465,7 +534,7 @@ export class Server extends EventEmitter {
options: IExecuteMethodOptions,
req: Request,
callback: (result: any, statusCode?: number) => any,
- includeTimestamp?,
+ includeTimestamp?
) {
options = options || {};
let method: ISoapServiceMethod;
@@ -479,13 +548,15 @@ export class Server extends EventEmitter {
const style = options.style;
if (this.soapHeaders) {
- headers = this.soapHeaders.map((header) => {
- if (typeof header === 'function') {
- return header(methodName, args, options.headers, req);
- } else {
- return header;
- }
- }).join('\n');
+ headers = this.soapHeaders
+ .map((header) => {
+ if (typeof header === 'function') {
+ return header(methodName, args, options.headers, req);
+ } else {
+ return header;
+ }
+ })
+ .join('\n');
}
try {
@@ -505,27 +576,46 @@ export class Server extends EventEmitter {
if (error.Fault !== undefined) {
return this._sendError(error.Fault, callback, includeTimestamp);
} else {
- return this._sendError({
- Code: {
- Value: 'SOAP-ENV:Server',
- Subcode: { value: 'InternalServerError' },
+ return this._sendError(
+ {
+ Code: {
+ Value: 'SOAP-ENV:Server',
+ Subcode: { value: 'InternalServerError' },
+ },
+ Reason: { Text: error.toString() },
+ statusCode: 500,
},
- Reason: { Text: error.toString() },
- statusCode: 500,
- }, callback, includeTimestamp);
+ callback,
+ includeTimestamp
+ );
}
}
if (style === 'rpc') {
- body = this.wsdl.objectToRpcXML(outputName, result, '', this.wsdl.definitions.$targetNamespace);
+ body = this.wsdl.objectToRpcXML(
+ outputName,
+ result,
+ '',
+ this.wsdl.definitions.$targetNamespace
+ );
} else {
- const element = this.wsdl.definitions.services[serviceName].ports[portName].binding.methods[methodName].output;
- body = this.wsdl.objectToDocumentXML(outputName, result, element.targetNSAlias, element.targetNamespace);
+ const element = this.wsdl.definitions.services[serviceName].ports[portName].binding.methods[
+ methodName
+ ].output;
+ body = this.wsdl.objectToDocumentXML(
+ outputName,
+ result,
+ element.targetNSAlias,
+ element.targetNamespace
+ );
}
callback(this._envelope(body, headers, includeTimestamp));
};
- if (!this.wsdl.definitions.services[serviceName].ports[portName].binding.methods[methodName].output) {
+ if (
+ !this.wsdl.definitions.services[serviceName].ports[portName].binding.methods[methodName]
+ .output
+ ) {
// no output defined = one-way operation so return empty response
handled = true;
body = '';
@@ -549,11 +639,14 @@ export class Server extends EventEmitter {
const result = method(args, methodCallback, options.headers, req);
if (typeof result !== 'undefined') {
if (isPromiseLike(result)) {
- result.then((value) => {
- handleResult(null, value);
- }, (err) => {
- handleResult(err);
- });
+ result.then(
+ (value) => {
+ handleResult(null, value);
+ },
+ (err) => {
+ handleResult(err);
+ }
+ );
} else {
handleResult(null, result);
}
@@ -570,24 +663,33 @@ export class Server extends EventEmitter {
? 'http://www.w3.org/2003/05/soap-envelope'
: 'http://schemas.xmlsoap.org/soap/envelope/';
- let xml = '' +
- '' +
+ '';
+ this.wsdl.xmlnsInEnvelope +
+ '>';
headers = headers || '';
if (includeTimestamp) {
const now = new Date();
const created = getDateString(now);
- const expires = getDateString(new Date(now.getTime() + (1000 * 600)));
+ const expires = getDateString(new Date(now.getTime() + 1000 * 600));
- headers += '' +
' ' +
- ' ' + created + '' +
- ' ' + expires + '' +
+ ' ' +
+ created +
+ '' +
+ ' ' +
+ expires +
+ '' +
' ' +
' \n';
}
@@ -602,7 +704,11 @@ export class Server extends EventEmitter {
return xml;
}
- private _sendError(soapFault: ISoapFault, callback: (result: any, statusCode?: number) => any, includeTimestamp) {
+ private _sendError(
+ soapFault: ISoapFault,
+ callback: (result: any, statusCode?: number) => any,
+ includeTimestamp
+ ) {
let fault;
let statusCode: number;
@@ -632,11 +738,11 @@ export class Server extends EventEmitter {
}
/*
- * Calling res.write(result) follow by res.end() will cause Node.js to use
- * chunked encoding, while calling res.end(result) directly will cause
- * Node.js to calculate and send Content-Length header. See
- * nodejs/node#26005.
- */
+ * Calling res.write(result) follow by res.end() will cause Node.js to use
+ * chunked encoding, while calling res.end(result) directly will cause
+ * Node.js to calculate and send Content-Length header. See
+ * nodejs/node#26005.
+ */
if (this.enableChunkedEncoding) {
res.write(result);
diff --git a/src/soap.ts b/src/soap.ts
index 69739e6fd..d01ad6126 100644
--- a/src/soap.ts
+++ b/src/soap.ts
@@ -3,8 +3,7 @@
* MIT Licensed
*/
-import * as BluebirdPromise from 'bluebird';
-import * as debugBuilder from 'debug';
+import debugBuilder from 'debug';
import { Client } from './client';
import * as _security from './security';
import { Server, ServerType } from './server';
@@ -16,7 +15,15 @@ const debug = debugBuilder('node-soap:soap');
export const security = _security;
export { Client } from './client';
export { HttpClient } from './http';
-export { BasicAuthSecurity, BearerSecurity, ClientSSLSecurity, ClientSSLSecurityPFX, NTLMSecurity, WSSecurity, WSSecurityCert } from './security';
+export {
+ BasicAuthSecurity,
+ BearerSecurity,
+ ClientSSLSecurity,
+ ClientSSLSecurityPFX,
+ NTLMSecurity,
+ WSSecurity,
+ WSSecurityCert,
+} from './security';
export { Server } from './server';
export { passwordDigest } from './utils';
export * from './types';
@@ -26,7 +33,7 @@ type WSDLCallback = (error: any, result?: WSDL) => any;
function createCache() {
const cache: {
- [key: string]: WSDL,
+ [key: string]: WSDL;
} = {};
return (key: string, load: (cb: WSDLCallback) => any, callback: WSDLCallback) => {
if (!cache[key]) {
@@ -65,8 +72,18 @@ function _requestWSDL(url: string, options: IOptions, callback: WSDLCallback) {
export type CreateClientCallback = (err: any, client: Client) => void;
export function createClient(url: string, callback: CreateClientCallback, endpoint?: string): void;
-export function createClient(url: string, options: IOptions, callback: CreateClientCallback, endpoint?: string): void;
-export function createClient(url: string, p2: CreateClientCallback | IOptions, p3?: CreateClientCallback | string, p4?: string): void {
+export function createClient(
+ url: string,
+ options: IOptions,
+ callback: CreateClientCallback,
+ endpoint?: string
+): void;
+export function createClient(
+ url: string,
+ p2: CreateClientCallback | IOptions,
+ p3?: CreateClientCallback | string,
+ p4?: string
+): void {
let endpoint: string = p4;
let callback: CreateClientCallback;
let options: IOptions;
@@ -85,23 +102,44 @@ export function createClient(url: string, p2: CreateClientCallback | IOptions, p
});
}
-export function createClientAsync(url: string, options?: IOptions, endpoint?: string): BluebirdPromise {
+export function createClientAsync(
+ url: string,
+ options?: IOptions,
+ endpoint?: string
+): Promise {
if (typeof options === 'undefined') {
options = {};
}
- return new BluebirdPromise((resolve, reject) => {
- createClient(url, options, (err, client) => {
- if (err) {
- reject(err);
- }
- resolve(client);
- }, endpoint);
+ return new Promise((resolve, reject) => {
+ createClient(
+ url,
+ options,
+ (err, client) => {
+ if (err) {
+ reject(err);
+ }
+ resolve(client);
+ },
+ endpoint
+ );
});
}
-export function listen(server: ServerType, path: string, services: IServices, wsdl: string, callback?: (err: any, res: any) => void): Server;
+export function listen(
+ server: ServerType,
+ path: string,
+ services: IServices,
+ wsdl: string,
+ callback?: (err: any, res: any) => void
+): Server;
export function listen(server: ServerType, options: IServerOptions): Server;
-export function listen(server: ServerType, p2: string | IServerOptions, services?: IServices, xml?: string, callback?: (err: any, res: any) => void): Server {
+export function listen(
+ server: ServerType,
+ p2: string | IServerOptions,
+ services?: IServices,
+ xml?: string,
+ callback?: (err: any, res: any) => void
+): Server {
let options: IServerOptions;
let path: string;
let uri = '';
diff --git a/src/types.ts b/src/types.ts
index d3ed2debc..f41f84229 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,5 +1,4 @@
-
-import * as req from 'request';
+import req from 'request';
import { HttpClient } from './http';
export interface IHeaders {
@@ -12,10 +11,15 @@ export type SoapMethod = (
args: any,
callback: (err: any, result: any, rawResponse: any, soapHeader: any, rawRequest: any) => void,
options?: any,
- extraHeaders?: any,
+ extraHeaders?: any
) => void;
-export type ISoapServiceMethod = (args: any, callback?: (data: any) => void, headers?: any, req?: any) => any;
+export type ISoapServiceMethod = (
+ args: any,
+ callback?: (data: any) => void,
+ headers?: any,
+ req?: any
+) => any;
// SOAP Fault 1.1 & 1.2
export interface ISoapFaultError {
@@ -37,8 +41,8 @@ export interface ISoapFault11 {
// Role, Node, Detail. Should be added when soap module implements them
// https://www.w3.org/TR/soap12/#soapfault
export interface ISoapFault12 {
- Code: { Value: string; Subcode?: { value: string; }; };
- Reason: { Text: string; };
+ Code: { Value: string; Subcode?: { value: string } };
+ Reason: { Text: string };
statusCode?: number;
}
@@ -72,8 +76,8 @@ export interface IWsdlBaseOptions {
attributesKey?: string;
valueKey?: string;
xmlKey?: string;
- overrideRootElement?: { namespace: string; xmlnsAttributes?: IXmlAttribute[]; };
- ignoredNamespaces?: boolean | string[] | { namespaces?: string[]; override?: boolean; };
+ overrideRootElement?: { namespace: string; xmlnsAttributes?: IXmlAttribute[] };
+ ignoredNamespaces?: boolean | string[] | { namespaces?: string[]; override?: boolean };
ignoreBaseNameSpaces?: boolean;
/** escape special XML characters in SOAP message (e.g. &, >, < etc), default: true. */
escapeXML?: boolean;
diff --git a/src/utils.ts b/src/utils.ts
index a6904d333..68cdb1db9 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -1,5 +1,5 @@
-
-import * as crypto from 'crypto';
+import crypto from 'crypto';
+import pify from 'pify';
export function passwordDigest(nonce: string, created: string, password: string): string {
// digest = base64 ( sha1 ( nonce + created + password ) )
@@ -8,7 +8,7 @@ export function passwordDigest(nonce: string, created: string, password: string)
const NonceBytes = Buffer.from(nonce || '', 'base64');
const CreatedBytes = Buffer.from(created || '', 'utf8');
const PasswordBytes = Buffer.from(password || '', 'utf8');
- const FullBytes = Buffer.concat([NonceBytes, CreatedBytes, PasswordBytes ]);
+ const FullBytes = Buffer.concat([NonceBytes, CreatedBytes, PasswordBytes]);
pwHash.update(FullBytes);
return pwHash.digest('base64');
@@ -24,7 +24,9 @@ export const TNS_PREFIX = '__tns__'; // Prefix for targetNamespace
*/
export function findPrefix(xmlnsMapping, nsURI) {
for (const n in xmlnsMapping) {
- if (n === TNS_PREFIX) { continue; }
+ if (n === TNS_PREFIX) {
+ continue;
+ }
if (xmlnsMapping[n] === nsURI) {
return n;
}
@@ -50,7 +52,7 @@ export function splitQName(nsName: T) {
}
export function xmlEscape(obj) {
- if (typeof (obj) === 'string') {
+ if (typeof obj === 'string') {
if (obj.substr(0, 9) === '') {
return obj;
}
@@ -64,3 +66,37 @@ export function xmlEscape(obj) {
return obj;
}
+
+export function promisifyAll(obj, suffix = 'Async') {
+ const identifier = /^[a-z$_][a-z$_0-9]*$/i;
+
+ if (obj.___promisified) {
+ return obj;
+ }
+
+ const functionBlackListMap = Object.getOwnPropertyNames(Object.prototype).reduce(
+ (map, functionName) => {
+ map[functionName] = true;
+ return map;
+ },
+ {}
+ );
+
+ for (const key of Object.getOwnPropertyNames(obj)) {
+ if (functionBlackListMap[key] || !identifier.test(key)) {
+ continue;
+ }
+
+ const descriptor = Object.getOwnPropertyDescriptor(obj, key);
+
+ if (!descriptor.get) {
+ const func = obj[key];
+ if (typeof func === 'function') {
+ obj[`${key}${suffix}`] = pify(func, { multiArgs: true });
+ }
+ }
+ obj.___promisified = true;
+ }
+
+ return obj;
+}
diff --git a/src/wsdl/elements.ts b/src/wsdl/elements.ts
index 64cefc212..117944a52 100644
--- a/src/wsdl/elements.ts
+++ b/src/wsdl/elements.ts
@@ -1,7 +1,6 @@
-
import { ok as assert } from 'assert';
-import * as debugBuilder from 'debug';
-import * as _ from 'lodash';
+import debugBuilder from 'debug';
+import _ from 'lodash';
import { IWsdlBaseOptions } from '../types';
import { splitQName, TNS_PREFIX } from '../utils';
@@ -60,7 +59,7 @@ export interface IXmlNs {
}
export class Element {
- public readonly allowedChildren?: {[k: string]: typeof Element} = {};
+ public readonly allowedChildren?: { [k: string]: typeof Element } = {};
public $name?: string;
public $targetNamespace?;
public children: Element[] = [];
@@ -119,7 +118,13 @@ export class Element {
delete this.name;
}
- public startElement(stack: Element[], nsName: string, attrs, options: IWsdlBaseOptions, schemaXmlns) {
+ public startElement(
+ stack: Element[],
+ nsName: string,
+ attrs,
+ options: IWsdlBaseOptions,
+ schemaXmlns
+ ) {
if (!this.allowedChildren) {
return;
}
@@ -132,7 +137,6 @@ export class Element {
} else {
this.unexpected(nsName);
}
-
}
public endElement(stack: Element[], nsName: string) {
@@ -163,8 +167,7 @@ export class Element {
return this.$name || this.name;
}
- public init(): void {
- }
+ public init(): void {}
private _initializeOptions(options: IWsdlBaseOptions) {
if (options) {
@@ -226,20 +229,25 @@ export class ElementElement extends Element {
if (type) {
type = splitQName(type);
const typeName: string = type.name;
- const ns: string = xmlns && xmlns[type.prefix] ||
- ((definitions.xmlns[type.prefix] !== undefined || definitions.xmlns[this.targetNSAlias] !== undefined) && this.schemaXmlns[type.prefix]) ||
- definitions.xmlns[type.prefix];
+ const ns: string =
+ (xmlns && xmlns[type.prefix]) ||
+ ((definitions.xmlns[type.prefix] !== undefined ||
+ definitions.xmlns[this.targetNSAlias] !== undefined) &&
+ this.schemaXmlns[type.prefix]) ||
+ definitions.xmlns[type.prefix];
const schema = definitions.schemas[ns];
- const typeElement = schema && ( this.$type ? schema.complexTypes[typeName] || schema.types[typeName] : schema.elements[typeName] );
+ const typeElement =
+ schema &&
+ (this.$type
+ ? schema.complexTypes[typeName] || schema.types[typeName]
+ : schema.elements[typeName]);
if (ns && definitions.schemas[ns]) {
xmlns = definitions.schemas[ns].xmlns;
}
if (typeElement && !(typeName in Primitives)) {
-
if (!(typeName in definitions.descriptions.types)) {
-
let elem: any = {};
if (!this.$ref) {
definitions.descriptions.types[typeName] = elem;
@@ -273,7 +281,6 @@ export class ElementElement extends Element {
element[name] = definitions.descriptions.types[typeName];
}
}
-
} else {
element[name] = this.$type;
}
@@ -290,8 +297,7 @@ export class ElementElement extends Element {
}
}
-export class AnyElement extends Element {
-}
+export class AnyElement extends Element {}
export class InputElement extends Element {
public readonly allowedChildren = buildAllowedChildren([
@@ -344,9 +350,7 @@ export class OutputElement extends Element {
}
export class SimpleTypeElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'restriction',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['restriction']);
public description(definitions: DefinitionsElement) {
for (const child of this.children) {
@@ -370,7 +374,7 @@ export class RestrictionElement extends Element {
public description(definitions?: DefinitionsElement, xmlns?: IXmlNs) {
const children = this.children;
let desc;
- for (let i = 0, child; child = children[i]; i++) {
+ for (let i = 0, child; (child = children[i]); i++) {
if (child instanceof SequenceElement || child instanceof ChoiceElement) {
desc = child.description(definitions, xmlns);
break;
@@ -379,9 +383,11 @@ export class RestrictionElement extends Element {
if (desc && this.$base) {
const type = splitQName(this.$base);
const typeName = type.name;
- const ns = xmlns && xmlns[type.prefix] || definitions.xmlns[type.prefix];
+ const ns = (xmlns && xmlns[type.prefix]) || definitions.xmlns[type.prefix];
const schema = definitions.schemas[ns];
- const typeElement = schema && ( schema.complexTypes[typeName] || schema.types[typeName] || schema.elements[typeName] );
+ const typeElement =
+ schema &&
+ (schema.complexTypes[typeName] || schema.types[typeName] || schema.elements[typeName]);
desc.getBase = () => {
return typeElement.description(definitions, schema.xmlns);
@@ -391,20 +397,18 @@ export class RestrictionElement extends Element {
// then simple element
const base = this.$base ? this.$base + '|' : '';
- const restrictions = this.children.map((child) => {
- return child.description();
- }).join(',');
+ const restrictions = this.children
+ .map((child) => {
+ return child.description();
+ })
+ .join(',');
return [this.$base, restrictions].filter(Boolean).join('|');
}
}
export class ExtensionElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'all',
- 'choice',
- 'sequence',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['all', 'choice', 'sequence']);
public $base: string;
public description(definitions: DefinitionsElement, xmlns?: IXmlNs) {
@@ -417,14 +421,15 @@ export class ExtensionElement extends Element {
if (this.$base) {
const type = splitQName(this.$base);
const typeName = type.name;
- const ns = xmlns && xmlns[type.prefix] || definitions.xmlns[type.prefix];
+ const ns = (xmlns && xmlns[type.prefix]) || definitions.xmlns[type.prefix];
const schema = definitions.schemas[ns];
if (typeName in Primitives) {
return this.$base;
} else {
- const typeElement = schema && ( schema.complexTypes[typeName] ||
- schema.types[typeName] || schema.elements[typeName] );
+ const typeElement =
+ schema &&
+ (schema.complexTypes[typeName] || schema.types[typeName] || schema.elements[typeName]);
if (typeElement) {
const base = typeElement.description(definitions, schema.xmlns);
@@ -437,12 +442,7 @@ export class ExtensionElement extends Element {
}
export class ChoiceElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'any',
- 'choice',
- 'element',
- 'sequence',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['any', 'choice', 'element', 'sequence']);
public description(definitions: DefinitionsElement, xmlns: IXmlNs) {
const choice = {};
for (const child of this.children) {
@@ -474,12 +474,13 @@ export class ComplexTypeElement extends Element {
public description(definitions: DefinitionsElement, xmlns: IXmlNs) {
const children = this.children || [];
for (const child of children) {
- if (child instanceof ChoiceElement ||
+ if (
+ child instanceof ChoiceElement ||
child instanceof SequenceElement ||
child instanceof AllElement ||
child instanceof SimpleContentElement ||
- child instanceof ComplexContentElement) {
-
+ child instanceof ComplexContentElement
+ ) {
return child.description(definitions, xmlns);
}
}
@@ -488,9 +489,7 @@ export class ComplexTypeElement extends Element {
}
export class ComplexContentElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'extension',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['extension']);
public description(definitions: DefinitionsElement, xmlns: IXmlNs) {
for (const child of this.children) {
if (child instanceof ExtensionElement) {
@@ -502,9 +501,7 @@ export class ComplexContentElement extends Element {
}
export class SimpleContentElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'extension',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['extension']);
public description(definitions: DefinitionsElement, xmlns: IXmlNs) {
for (const child of this.children) {
if (child instanceof ExtensionElement) {
@@ -516,12 +513,7 @@ export class SimpleContentElement extends Element {
}
export class SequenceElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'any',
- 'choice',
- 'element',
- 'sequence',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['any', 'choice', 'element', 'sequence']);
public description(definitions: DefinitionsElement, xmlns: IXmlNs) {
const sequence = {};
for (const child of this.children) {
@@ -538,10 +530,7 @@ export class SequenceElement extends Element {
}
export class AllElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'choice',
- 'element',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['choice', 'element']);
public description(definitions: DefinitionsElement, xmlns: IXmlNs) {
const sequence = {};
for (const child of this.children) {
@@ -558,10 +547,7 @@ export class AllElement extends Element {
}
export class MessageElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'part',
- 'documentation',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['part', 'documentation']);
public element: ElementElement = null;
public parts = null;
@@ -611,10 +597,10 @@ export class MessageElement extends Element {
// if nested lookup types where found, prepare them for furter usage
if (lookupTypes.length > 0) {
- lookupTypes = lookupTypes.
- join('_').
- split('_').
- filter(function removeEmptyLookupTypes(type) {
+ lookupTypes = lookupTypes
+ .join('_')
+ .split('_')
+ .filter(function removeEmptyLookupTypes(type) {
return type !== '^';
});
@@ -629,18 +615,24 @@ export class MessageElement extends Element {
if (this.element.$type) {
const type = splitQName(this.element.$type);
- const typeNs = schema.xmlns && schema.xmlns[type.prefix] || definitions.xmlns[type.prefix];
+ const typeNs =
+ (schema.xmlns && schema.xmlns[type.prefix]) || definitions.xmlns[type.prefix];
if (typeNs) {
if (type.name in Primitives) {
- // this.element = this.element.$type;
+ // this.element = this.element.$type;
} else {
// first check local mapping of ns alias to namespace
schema = definitions.schemas[typeNs];
- const ctype = schema.complexTypes[type.name] || schema.types[type.name] || schema.elements[type.name];
-
- if (ctype) {
- this.parts = ctype.description(definitions, schema.xmlns);
+ if (schema) {
+ const ctype =
+ schema.complexTypes[type.name] ||
+ schema.types[type.name] ||
+ schema.elements[type.name];
+
+ if (ctype) {
+ this.parts = ctype.description(definitions, schema.xmlns);
+ }
}
}
}
@@ -654,7 +646,7 @@ export class MessageElement extends Element {
// rpc encoding
this.parts = {};
delete this.element;
- for (let i = 0; part = this.children[i]; i++) {
+ for (let i = 0; (part = this.children[i]); i++) {
if (part.name === 'documentation') {
//
continue;
@@ -665,7 +657,8 @@ export class MessageElement extends Element {
const type = nsName.name;
const schemaDefinition = definitions.schemas[ns];
if (typeof schemaDefinition !== 'undefined') {
- this.parts[part.$name] = definitions.schemas[ns].types[type] || definitions.schemas[ns].complexTypes[type];
+ this.parts[part.$name] =
+ definitions.schemas[ns].types[type] || definitions.schemas[ns].complexTypes[type];
} else {
this.parts[part.$name] = part.$type;
}
@@ -731,7 +724,7 @@ export class MessageElement extends Element {
if (element.hasOwnProperty('$type') && typeof element.$type === 'string') {
if (excluded.indexOf(element.$type.split(':')[0]) === -1) {
- resolvedType += ('_' + element.$type + '#' + element.$name);
+ resolvedType += '_' + element.$type + '#' + element.$name;
}
}
@@ -740,7 +733,7 @@ export class MessageElement extends Element {
const resolvedChildType = this._getNestedLookupTypeString(child).replace(/\^_/, '');
if (resolvedChildType && typeof resolvedChildType === 'string') {
- resolvedType += ('_' + resolvedChildType);
+ resolvedType += '_' + resolvedChildType;
}
});
}
@@ -766,9 +759,9 @@ export class SchemaElement extends Element {
'include',
'simpleType',
]);
- public complexTypes: {[name: string]: ComplexTypeElement} = {};
- public types: {[name: string]: SimpleTypeElement} = {};
- public elements: {[name: string]: ElementElement} = {};
+ public complexTypes: { [name: string]: ComplexTypeElement } = {};
+ public types: { [name: string]: SimpleTypeElement } = {};
+ public elements: { [name: string]: ElementElement } = {};
public includes: IInclude[] = [];
public $elementFormDefault;
@@ -781,9 +774,12 @@ export class SchemaElement extends Element {
_.merge(this.xmlns, source.xmlns);
// Merge attributes from source without overwriting our's
- _.merge(this, _.pickBy(source, (value, key) => {
- return key.startsWith('$') && !this.hasOwnProperty(key);
- }));
+ _.merge(
+ this,
+ _.pickBy(source, (value, key) => {
+ return key.startsWith('$') && !this.hasOwnProperty(key);
+ })
+ );
return this;
}
@@ -813,11 +809,8 @@ export class SchemaElement extends Element {
}
export class TypesElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'documentation',
- 'schema',
- ]);
- public schemas: {[name: string]: SchemaElement} = {};
+ public readonly allowedChildren = buildAllowedChildren(['documentation', 'schema']);
+ public schemas: { [name: string]: SchemaElement } = {};
// fix#325
public addChild(child) {
@@ -860,7 +853,7 @@ export class OperationElement extends Element {
public postProcess(definitions: DefinitionsElement, tag: string) {
const children = this.children;
- for (let i = 0, child; child = children[i]; i++) {
+ for (let i = 0, child; (child = children[i]); i++) {
if (child.name !== 'input' && child.name !== 'output') {
continue;
}
@@ -894,10 +887,7 @@ export class OperationElement extends Element {
}
export class PortTypeElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'documentation',
- 'operation',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['documentation', 'operation']);
public methods: {
[name: string]: OperationElement;
} = {};
@@ -907,7 +897,7 @@ export class PortTypeElement extends Element {
if (typeof children === 'undefined') {
return;
}
- for (let i = 0, child; child = children[i]; i++) {
+ for (let i = 0, child; (child = children[i]); i++) {
if (child.name !== 'operation') {
continue;
}
@@ -948,7 +938,7 @@ export class BindingElement extends Element {
public topElements?: ITopElements;
public transport = '';
public style = '';
- public methods: {[name: string]: OperationElement} = {};
+ public methods: { [name: string]: OperationElement } = {};
public $type?: string;
public addChild(child) {
@@ -968,7 +958,7 @@ export class BindingElement extends Element {
portType.postProcess(definitions);
this.methods = portType.methods;
- for (let i = 0, child; child = children[i]; i++) {
+ for (let i = 0, child; (child = children[i]); i++) {
if (child.name !== 'operation') {
continue;
}
@@ -1003,14 +993,11 @@ export class BindingElement extends Element {
}
export class PortElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'address',
- 'documentation',
- ]);
+ public readonly allowedChildren = buildAllowedChildren(['address', 'documentation']);
public location = null;
public addChild(child) {
- if (child.name === 'address' && typeof (child.$location) !== 'undefined') {
+ if (child.name === 'address' && typeof child.$location !== 'undefined') {
this.location = child.$location;
}
}
@@ -1022,17 +1009,14 @@ export interface IPort {
}
export class ServiceElement extends Element {
- public readonly allowedChildren = buildAllowedChildren([
- 'documentation',
- 'port',
- ]);
- public ports: {[name: string]: IPort} = {};
+ public readonly allowedChildren = buildAllowedChildren(['documentation', 'port']);
+ public ports: { [name: string]: IPort } = {};
public postProcess(definitions: DefinitionsElement) {
const children = this.children;
const bindings = definitions.bindings;
if (children && children.length > 0) {
- for (let i = 0, child; child = children[i]; i++) {
+ for (let i = 0, child; (child = children[i]); i++) {
if (child.name !== 'port') {
continue;
}
@@ -1073,21 +1057,23 @@ export class DefinitionsElement extends Element {
'types',
]);
public complexTypes;
- public messages: {[name: string]: MessageElement} = {};
- public portTypes: {[name: string]: PortTypeElement} = {};
- public bindings: {[name: string]: BindingElement} = {};
- public services: {[name: string]: ServiceElement} = {};
- public schemas: {[name: string]: SchemaElement} = {};
+ public messages: { [name: string]: MessageElement } = {};
+ public portTypes: { [name: string]: PortTypeElement } = {};
+ public bindings: { [name: string]: BindingElement } = {};
+ public services: { [name: string]: ServiceElement } = {};
+ public schemas: { [name: string]: SchemaElement } = {};
public descriptions: {
types: {
[key: string]: Element;
- },
+ };
} = {
types: {},
};
public init() {
- if (this.name !== 'definitions') { this.unexpected(this.nsName); }
+ if (this.name !== 'definitions') {
+ this.unexpected(this.nsName);
+ }
}
public addChild(child) {
@@ -1104,8 +1090,10 @@ export class DefinitionsElement extends Element {
} else if (child instanceof PortTypeElement) {
this.portTypes[child.$name] = child;
} else if (child instanceof BindingElement) {
- if (child.transport === 'http://schemas.xmlsoap.org/soap/http' ||
- child.transport === 'http://www.w3.org/2003/05/soap/bindings/HTTP/') {
+ if (
+ child.transport === 'http://schemas.xmlsoap.org/soap/http' ||
+ child.transport === 'http://www.w3.org/2003/05/soap/bindings/HTTP/'
+ ) {
this.bindings[child.$name] = child;
}
} else if (child instanceof ServiceElement) {
@@ -1167,7 +1155,7 @@ const ElementTypeMap: {
types: TypesElement,
};
-function buildAllowedChildren(elementList: string[]): {[k: string]: typeof Element} {
+function buildAllowedChildren(elementList: string[]): { [k: string]: typeof Element } {
const rtn = {};
for (const element of elementList) {
rtn[element.replace(/^_/, '')] = ElementTypeMap[element] || Element;
diff --git a/src/wsdl/index.ts b/src/wsdl/index.ts
index 6d5bbbca0..9975333c5 100644
--- a/src/wsdl/index.ts
+++ b/src/wsdl/index.ts
@@ -6,13 +6,14 @@
/*jshint proto:true*/
import { ok as assert } from 'assert';
-import * as debugBuilder from 'debug';
-import * as fs from 'fs';
-import * as _ from 'lodash';
-import * as path from 'path';
-import * as sax from 'sax';
-import * as stripBom from 'strip-bom';
-import * as url from 'url';
+import debugBuilder from 'debug';
+import fs from 'fs';
+import _ from 'lodash';
+import path from 'path';
+import sax from 'sax';
+// eslint-disable-next-line import/default
+import stripBom from 'strip-bom';
+import url from 'url';
import { HttpClient } from '../http';
import { NamespaceContext } from '../nscontext';
import { IOptions } from '../types';
@@ -37,11 +38,11 @@ function deepMerge(destination: A, source: B): A & B {
}
function appendColon(ns: string): string {
- return (ns && ns.charAt(ns.length - 1) !== ':') ? ns + ':' : ns;
+ return ns && ns.charAt(ns.length - 1) !== ':' ? ns + ':' : ns;
}
function noColonNameSpace(ns: string): string {
- return (ns && ns.charAt(ns.length - 1) === ':') ? ns.substring(0, ns.length - 1) : ns;
+ return ns && ns.charAt(ns.length - 1) === ':' ? ns.substring(0, ns.length - 1) : ns;
}
interface IInitializedOptions extends IOptions {
@@ -62,7 +63,7 @@ export class WSDL {
public WSDL_CACHE;
private callback: (err: Error, caller?) => void;
- private services: {[name: string]: elements.ServiceElement};
+ private services: { [name: string]: elements.ServiceElement };
private xml: string;
private _includesWsdl;
private _originalIgnoredNamespaces;
@@ -106,7 +107,7 @@ export class WSDL {
try {
this.definitions.deleteFixedAttrs();
- const services = this.services = this.definitions.services;
+ const services = (this.services = this.definitions.services);
if (services) {
for (name in services) {
services[name].postProcess(this.definitions);
@@ -130,15 +131,15 @@ export class WSDL {
continue;
}
const methods = binding.methods;
- const topEls: elements.ITopElements = binding.topElements = {};
+ const topEls: elements.ITopElements = (binding.topElements = {});
for (const methodName in methods) {
if (methods[methodName].input) {
const inputName = methods[methodName].input.$name;
let outputName = '';
- if (methods[methodName].output ) {
+ if (methods[methodName].output) {
outputName = methods[methodName].output.$name;
}
- topEls[inputName] = {methodName: methodName, outputName: outputName};
+ topEls[inputName] = { methodName: methodName, outputName: outputName };
}
}
}
@@ -151,7 +152,6 @@ export class WSDL {
this.callback(e);
}
});
-
});
}
@@ -209,7 +209,7 @@ export class WSDL {
},
},
};
- const stack: any[] = [{name: null, object: root, schema: schema}];
+ const stack: any[] = [{ name: null, object: root, schema: schema }];
const xmlns: any = {};
const refs = {};
@@ -237,13 +237,13 @@ export class WSDL {
// Determine if this is request or response
let isInput = false;
let isOutput = false;
- if ((/Response$/).test(name)) {
+ if (/Response$/.test(name)) {
isOutput = true;
name = name.replace(/Response$/, '');
- } else if ((/Request$/).test(name)) {
+ } else if (/Request$/.test(name)) {
isInput = true;
name = name.replace(/Request$/, '');
- } else if ((/Solicit$/).test(name)) {
+ } else if (/Solicit$/.test(name)) {
isInput = true;
name = name.replace(/Solicit$/, '');
}
@@ -274,13 +274,13 @@ export class WSDL {
if (attrs.href) {
id = attrs.href.substr(1);
if (!refs[id]) {
- refs[id] = {hrefs: [], obj: null};
+ refs[id] = { hrefs: [], obj: null };
}
- refs[id].hrefs.push({par: top.object, key: name, obj: obj});
+ refs[id].hrefs.push({ par: top.object, key: name, obj: obj });
}
- if (id = attrs.id) {
+ if ((id = attrs.id)) {
if (!refs[id]) {
- refs[id] = {hrefs: [], obj: null};
+ refs[id] = { hrefs: [], obj: null };
}
}
@@ -296,9 +296,13 @@ export class WSDL {
for (attributeName in elementAttributes) {
const res = splitQName(attributeName);
- if (res.name === 'nil' && xmlns[res.prefix] === XSI_URI && elementAttributes[attributeName] &&
- (elementAttributes[attributeName].toLowerCase() === 'true' || elementAttributes[attributeName] === '1')
- ) {
+ if (
+ res.name === 'nil' &&
+ xmlns[res.prefix] === XSI_URI &&
+ elementAttributes[attributeName] &&
+ (elementAttributes[attributeName].toLowerCase() === 'true' ||
+ elementAttributes[attributeName] === '1')
+ ) {
hasNilAttribute = true;
break;
}
@@ -313,7 +317,7 @@ export class WSDL {
let xsiType;
for (const prefix in xmlns) {
- if (xmlns[prefix] === XSI_URI && (`${prefix}:type` in elementAttributes)) {
+ if (xmlns[prefix] === XSI_URI && `${prefix}:type` in elementAttributes) {
xsiType = elementAttributes[`${prefix}:type`];
break;
}
@@ -337,7 +341,13 @@ export class WSDL {
if (topSchema && topSchema[name + '[]']) {
name = name + '[]';
}
- stack.push({name: originalName, object: obj, schema: (xsiTypeSchema || (topSchema && topSchema[name])), id: attrs.id, nil: hasNilAttribute});
+ stack.push({
+ name: originalName,
+ object: obj,
+ schema: xsiTypeSchema || (topSchema && topSchema[name]),
+ id: attrs.id,
+ nil: hasNilAttribute,
+ });
};
p.onclosetag = (nsName) => {
@@ -348,8 +358,13 @@ export class WSDL {
const topSchema = top.schema;
const name = splitQName(nsName).name;
- if (typeof cur.schema === 'string' && (cur.schema === 'string' || cur.schema.split(':')[1] === 'string')) {
- if (typeof obj === 'object' && Object.keys(obj).length === 0) { obj = cur.object = ''; }
+ if (
+ typeof cur.schema === 'string' &&
+ (cur.schema === 'string' || cur.schema.split(':')[1] === 'string')
+ ) {
+ if (typeof obj === 'object' && Object.keys(obj).length === 0) {
+ obj = cur.object = '';
+ }
}
if (cur.nil === true) {
@@ -426,7 +441,11 @@ export class WSDL {
const name = splitQName(top.schema).name;
let value;
- if (this.options && this.options.customDeserializer && this.options.customDeserializer[name]) {
+ if (
+ this.options &&
+ this.options.customDeserializer &&
+ this.options.customDeserializer[name]
+ ) {
value = this.options.customDeserializer[name](text, top);
} else {
if (name === 'int' || name === 'integer') {
@@ -464,19 +483,20 @@ export class WSDL {
saxStream.on('closetag', p.onclosetag);
saxStream.on('cdata', p.oncdata);
saxStream.on('text', p.ontext);
- xml.pipe(saxStream)
- .on('error', (err) => {
- callback(err);
- })
- .on('end', () => {
- let r;
- try {
- r = finish();
- } catch (e) {
- return callback(e);
- }
- callback(null, r);
- });
+ xml
+ .pipe(saxStream)
+ .on('error', (err) => {
+ callback(err);
+ })
+ .on('end', () => {
+ let r;
+ try {
+ r = finish();
+ } catch (e) {
+ return callback(e);
+ }
+ callback(null, r);
+ });
return;
}
p.write(xml).close();
@@ -503,7 +523,9 @@ export class WSDL {
string = string || body.Fault.faultstring;
detail = detail || body.Fault.detail;
- const error: any = new Error(code + ': ' + string + (detail ? ': ' + JSON.stringify(detail) : ''));
+ const error: any = new Error(
+ code + ': ' + string + (detail ? ': ' + JSON.stringify(detail) : '')
+ );
error.root = root;
throw error;
@@ -551,7 +573,13 @@ export class WSDL {
* @param {String} nsURI
* @param {String} type
*/
- public objectToDocumentXML(name: string, params, nsPrefix: string, nsURI?: string, type?: string) {
+ public objectToDocumentXML(
+ name: string,
+ params,
+ nsPrefix: string,
+ nsURI?: string,
+ type?: string
+ ) {
// If user supplies XML already, just use that. XML Declaration should not be present.
if (params && params._xml) {
return params._xml;
@@ -578,7 +606,7 @@ export class WSDL {
nsPrefix = nsPrefix || findPrefix(defs.xmlns, nsURI);
nsURI = nsURI || defs.xmlns[nsPrefix];
- nsPrefix = nsPrefix === TNS_PREFIX ? '' : (nsPrefix + ':');
+ nsPrefix = nsPrefix === TNS_PREFIX ? '' : nsPrefix + ':';
parts.push(['<', nsPrefix, name, '>'].join(''));
@@ -596,8 +624,12 @@ export class WSDL {
attributes.push(' ' + n + '=' + '"' + attrs[n] + '"');
}
}
- parts.push(['<', prefixedKey ].concat(attributes).concat('>').join(''));
- parts.push((typeof value === 'object') ? this.objectToXML(value, key, nsPrefix, nsURI) : xmlEscape(value));
+ parts.push(['<', prefixedKey].concat(attributes).concat('>').join(''));
+ parts.push(
+ typeof value === 'object'
+ ? this.objectToXML(value, key, nsPrefix, nsURI)
+ : xmlEscape(value)
+ );
parts.push(['', prefixedKey, '>'].join(''));
}
}
@@ -627,7 +659,16 @@ export class WSDL {
* @param {?} parameterTypeObject
* @param {NamespaceContext} nsContext Namespace context
*/
- public objectToXML(obj, name: string, nsPrefix: any, nsURI: string, isFirst?: boolean, xmlnsAttr?, schemaObject?, nsContext?: NamespaceContext) {
+ public objectToXML(
+ obj,
+ name: string,
+ nsPrefix: any,
+ nsURI: string,
+ isFirst?: boolean,
+ xmlnsAttr?,
+ schemaObject?,
+ nsContext?: NamespaceContext
+ ) {
const schema = this.definitions.schemas[nsURI];
let parentNsPrefix = nsPrefix ? nsPrefix.parent : undefined;
@@ -658,7 +699,9 @@ export class WSDL {
xmlnsAttrib += ' xmlns:' + nsPrefix + '="' + nsURI + '"';
}
// only add default namespace if the schema elementFormDefault is qualified
- if (qualified || soapHeader) { xmlnsAttrib += ' xmlns="' + nsURI + '"'; }
+ if (qualified || soapHeader) {
+ xmlnsAttrib += ' xmlns="' + nsURI + '"';
+ }
}
}
@@ -670,7 +713,10 @@ export class WSDL {
}
// explicitly use xmlns attribute if available
- if (xmlnsAttr && !(this.options.overrideRootElement && this.options.overrideRootElement.xmlnsAttributes)) {
+ if (
+ xmlnsAttr &&
+ !(this.options.overrideRootElement && this.options.overrideRootElement.xmlnsAttributes)
+ ) {
xmlnsAttrib = xmlnsAttr;
}
@@ -678,7 +724,11 @@ export class WSDL {
if (this.options.overrideRootElement && isFirst) {
ns = this.options.overrideRootElement.namespace;
- } else if (prefixNamespace && (qualified || isFirst || soapHeader) && !this.isIgnoredNameSpace(nsPrefix)) {
+ } else if (
+ prefixNamespace &&
+ (qualified || isFirst || soapHeader) &&
+ !this.isIgnoredNameSpace(nsPrefix)
+ ) {
ns = nsPrefix;
}
@@ -702,7 +752,16 @@ export class WSDL {
const arrayAttr = this.processAttributes(item, nsContext);
const correctOuterNsPrefix = nonSubNameSpace || parentNsPrefix || ns; // using the parent namespace prefix if given
- const body = this.objectToXML(item, name, nsPrefix, nsURI, false, null, schemaObject, nsContext);
+ const body = this.objectToXML(
+ item,
+ name,
+ nsPrefix,
+ nsURI,
+ false,
+ null,
+ schemaObject,
+ nsContext
+ );
let openingTagParts = ['<', name, arrayAttr, xmlnsAttrib];
if (!emptyNonSubNameSpaceForArray) {
@@ -730,7 +789,9 @@ export class WSDL {
}
} else if (typeof obj === 'object') {
for (name in obj) {
- if (!obj.hasOwnProperty(name)) { continue; }
+ if (!obj.hasOwnProperty(name)) {
+ continue;
+ }
// don't process attributes as element
if (name === this.options.attributesKey) {
continue;
@@ -767,16 +828,27 @@ export class WSDL {
}
if (isFirst) {
- value = this.objectToXML(child, name, nsPrefix, nsURI, false, null, schemaObject, nsContext);
+ value = this.objectToXML(
+ child,
+ name,
+ nsPrefix,
+ nsURI,
+ false,
+ null,
+ schemaObject,
+ nsContext
+ );
} else {
-
if (this.definitions.schemas) {
if (schema) {
const childSchemaObject = this.findChildSchemaObject(schemaObject, name);
// find sub namespace if not a primitive
- if (childSchemaObject &&
- ((childSchemaObject.$type && (childSchemaObject.$type.indexOf('xsd:') === -1)) ||
- childSchemaObject.$ref || childSchemaObject.$name)) {
+ if (
+ childSchemaObject &&
+ ((childSchemaObject.$type && childSchemaObject.$type.indexOf('xsd:') === -1) ||
+ childSchemaObject.$ref ||
+ childSchemaObject.$name)
+ ) {
/*if the base name space of the children is not in the ingoredSchemaNamspaces we use it.
This is because in some services the child nodes do not need the baseNameSpace.
*/
@@ -802,7 +874,8 @@ export class WSDL {
if (this.isIgnoredNameSpace(childNsPrefix)) {
childNsPrefix = nsPrefix;
}
- childNsURI = schema.xmlns[childNsPrefix] || this.definitions.xmlns[childNsPrefix];
+ childNsURI =
+ schema.xmlns[childNsPrefix] || this.definitions.xmlns[childNsPrefix];
}
let unqualified = false;
@@ -868,19 +941,41 @@ export class WSDL {
childXmlnsAttrib = null;
}
- value = this.objectToXML(child, name, childNsPrefix, childNsURI,
- false, childXmlnsAttrib, resolvedChildSchemaObject, nsContext);
- } else if (obj[this.options.attributesKey] && obj[this.options.attributesKey].xsi_type) {
+ value = this.objectToXML(
+ child,
+ name,
+ childNsPrefix,
+ childNsURI,
+ false,
+ childXmlnsAttrib,
+ resolvedChildSchemaObject,
+ nsContext
+ );
+ } else if (
+ obj[this.options.attributesKey] &&
+ obj[this.options.attributesKey].xsi_type
+ ) {
// if parent object has complex type defined and child not found in parent
const completeChildParamTypeObject = this.findChildSchemaObject(
obj[this.options.attributesKey].xsi_type.type,
- obj[this.options.attributesKey].xsi_type.xmlns);
+ obj[this.options.attributesKey].xsi_type.xmlns
+ );
nonSubNameSpace = obj[this.options.attributesKey].xsi_type.prefix;
- nsContext.addNamespace(obj[this.options.attributesKey].xsi_type.prefix,
- obj[this.options.attributesKey].xsi_type.xmlns);
- value = this.objectToXML(child, name, obj[this.options.attributesKey].xsi_type.prefix,
- obj[this.options.attributesKey].xsi_type.xmlns, false, null, null, nsContext);
+ nsContext.addNamespace(
+ obj[this.options.attributesKey].xsi_type.prefix,
+ obj[this.options.attributesKey].xsi_type.xmlns
+ );
+ value = this.objectToXML(
+ child,
+ name,
+ obj[this.options.attributesKey].xsi_type.prefix,
+ obj[this.options.attributesKey].xsi_type.xmlns,
+ false,
+ null,
+ null,
+ nsContext
+ );
} else {
if (Array.isArray(child)) {
if (emptyNonSubNameSpace) {
@@ -890,7 +985,16 @@ export class WSDL {
}
}
- value = this.objectToXML(child, name, nsPrefix, nsURI, false, null, null, nsContext);
+ value = this.objectToXML(
+ child,
+ name,
+ nsPrefix,
+ nsURI,
+ false,
+ null,
+ null,
+ nsContext
+ );
}
} else {
value = this.objectToXML(child, name, nsPrefix, nsURI, false, null, null, nsContext);
@@ -908,22 +1012,36 @@ export class WSDL {
const useEmptyTag = !value && this.options.useEmptyTag;
if (!Array.isArray(child)) {
// start tag
- parts.push(['<', emptyNonSubNameSpace ? '' : appendColon(nonSubNameSpace || ns), name, attr, xmlnsAttrib,
- (child === null ? ' xsi:nil="true"' : ''),
- useEmptyTag ? ' />' : '>',
- ].join(''));
+ parts.push(
+ [
+ '<',
+ emptyNonSubNameSpace ? '' : appendColon(nonSubNameSpace || ns),
+ name,
+ attr,
+ xmlnsAttrib,
+ child === null ? ' xsi:nil="true"' : '',
+ useEmptyTag ? ' />' : '>',
+ ].join('')
+ );
}
if (!useEmptyTag) {
parts.push(value);
if (!Array.isArray(child)) {
// end tag
- parts.push(['', emptyNonSubNameSpace ? '' : appendColon(nonSubNameSpace || ns), name, '>'].join(''));
+ parts.push(
+ [
+ '',
+ emptyNonSubNameSpace ? '' : appendColon(nonSubNameSpace || ns),
+ name,
+ '>',
+ ].join('')
+ );
}
}
}
} else if (obj !== undefined) {
- parts.push((this.options.escapeXML) ? xmlEscape(obj) : obj);
+ parts.push(this.options.escapeXML ? xmlEscape(obj) : obj);
}
nsContext.popContext();
return parts.join('');
@@ -1049,7 +1167,7 @@ export class WSDL {
}
if (object.children) {
- for (i = 0, child; child = object.children[i]; i++) {
+ for (i = 0, child; (child = object.children[i]); i++) {
found = this.findChildSchemaObject(child, childName, backtrace);
if (found) {
break;
@@ -1073,7 +1191,6 @@ export class WSDL {
}
}
}
-
}
if (!found && object.$name === childName) {
@@ -1089,12 +1206,17 @@ export class WSDL {
const ignoredNamespaces = options ? options.ignoredNamespaces : null;
- if (ignoredNamespaces &&
- (Array.isArray(ignoredNamespaces.namespaces) || typeof ignoredNamespaces.namespaces === 'string')) {
+ if (
+ ignoredNamespaces &&
+ (Array.isArray(ignoredNamespaces.namespaces) ||
+ typeof ignoredNamespaces.namespaces === 'string')
+ ) {
if (ignoredNamespaces.override) {
this.options.ignoredNamespaces = ignoredNamespaces.namespaces;
} else {
- this.options.ignoredNamespaces = this.ignoredNamespaces.concat(ignoredNamespaces.namespaces);
+ this.options.ignoredNamespaces = this.ignoredNamespaces.concat(
+ ignoredNamespaces.namespaces
+ );
}
} else {
this.options.ignoredNamespaces = this.ignoredNamespaces;
@@ -1159,7 +1281,11 @@ export class WSDL {
let includePath: string;
if (!/^https?:/i.test(this.uri) && !/^https?:/i.test(include.location)) {
- const isFixed = (this.options.wsdl_options !== undefined && this.options.wsdl_options.hasOwnProperty('fixedPath')) ? this.options.wsdl_options.fixedPath : false;
+ const isFixed =
+ this.options.wsdl_options !== undefined &&
+ this.options.wsdl_options.hasOwnProperty('fixedPath')
+ ? this.options.wsdl_options.fixedPath
+ : false;
if (isFixed) {
includePath = path.resolve(path.dirname(this.uri), path.parse(include.location).base);
} else {
@@ -1183,10 +1309,12 @@ export class WSDL {
if (wsdl.definitions instanceof elements.DefinitionsElement) {
_.mergeWith(this.definitions, wsdl.definitions, (a, b) => {
- return (a instanceof elements.SchemaElement) ? a.merge(b) : undefined;
+ return a instanceof elements.SchemaElement ? a.merge(b) : undefined;
});
} else {
- return callback(new Error('wsdl.defintions is not an instance of elements.DefinitionsElement'));
+ return callback(
+ new Error('wsdl.defintions is not an instance of elements.DefinitionsElement')
+ );
}
this._processNextInclude(includes, (err) => {
@@ -1206,7 +1334,7 @@ export class WSDL {
p.onopentag = (node) => {
const nsName = node.name;
- const attrs = node.attributes;
+ const attrs = node.attributes;
const top = stack[stack.length - 1];
const name = splitQName(nsName).name;
@@ -1262,9 +1390,7 @@ export class WSDL {
this.xml = xml;
}
- private _fromServices(services): void {
-
- }
+ private _fromServices(services): void {}
private _xmlnsMap(): string {
const xmlns = this.definitions.xmlns;
@@ -1275,12 +1401,12 @@ export class WSDL {
}
const ns = xmlns[alias];
switch (ns) {
- case 'http://xml.apache.org/xml-soap' : // apachesoap
- case 'http://schemas.xmlsoap.org/wsdl/' : // wsdl
- case 'http://schemas.xmlsoap.org/wsdl/soap/' : // wsdlsoap
+ case 'http://xml.apache.org/xml-soap': // apachesoap
+ case 'http://schemas.xmlsoap.org/wsdl/': // wsdl
+ case 'http://schemas.xmlsoap.org/wsdl/soap/': // wsdlsoap
case 'http://schemas.xmlsoap.org/wsdl/soap12/': // wsdlsoap12
- case 'http://schemas.xmlsoap.org/soap/encoding/' : // soapenc
- case 'http://www.w3.org/2001/XMLSchema' : // xsd
+ case 'http://schemas.xmlsoap.org/soap/encoding/': // soapenc
+ case 'http://www.w3.org/2001/XMLSchema': // xsd
continue;
}
if (~ns.indexOf('http://schemas.xmlsoap.org/')) {
@@ -1322,7 +1448,6 @@ function open_wsdl_recursive(uri: any, callback: WSDLCallback);
function open_wsdl_recursive(uri: any, options: IOptions, callback: WSDLCallback);
function open_wsdl_recursive(uri: any, p2: WSDLCallback | IOptions, p3?: WSDLCallback) {
let fromCache;
- let WSDL_CACHE;
let options: IOptions;
let callback: WSDLCallback;
@@ -1334,9 +1459,8 @@ function open_wsdl_recursive(uri: any, p2: WSDLCallback | IOptions, p3?: WSDLCal
callback = p3;
}
- WSDL_CACHE = options.WSDL_CACHE;
-
- if (fromCache = WSDL_CACHE[ uri ]) {
+ const { WSDL_CACHE } = options;
+ if ((fromCache = WSDL_CACHE[uri])) {
return callback.call(fromCache, null, fromCache);
}
@@ -1369,7 +1493,7 @@ export function open_wsdl(uri: any, p2: WSDLCallback | IOptions, p3?: WSDLCallba
callback(err);
} else {
wsdl = new WSDL(definition, uri, options);
- WSDL_CACHE[ uri ] = wsdl;
+ WSDL_CACHE[uri] = wsdl;
wsdl.WSDL_CACHE = WSDL_CACHE;
wsdl.onReady(callback);
}
@@ -1377,18 +1501,33 @@ export function open_wsdl(uri: any, p2: WSDLCallback | IOptions, p3?: WSDLCallba
} else {
debug('Reading url: %s', uri);
const httpClient = options.httpClient || new HttpClient(options);
- httpClient.request(uri, null /* options */, (err, response, definition) => {
- if (err) {
- callback(err);
- } else if (response && response.statusCode === 200) {
- wsdl = new WSDL(definition, uri, options);
- WSDL_CACHE[ uri ] = wsdl;
- wsdl.WSDL_CACHE = WSDL_CACHE;
- wsdl.onReady(callback);
- } else {
- callback(new Error('Invalid WSDL URL: ' + uri + '\n\n\r Code: ' + response.statusCode + '\n\n\r Response Body: ' + response.body));
- }
- }, request_headers, request_options);
+ httpClient.request(
+ uri,
+ null /* options */,
+ (err, response, definition) => {
+ if (err) {
+ callback(err);
+ } else if (response && response.statusCode === 200) {
+ wsdl = new WSDL(definition, uri, options);
+ WSDL_CACHE[uri] = wsdl;
+ wsdl.WSDL_CACHE = WSDL_CACHE;
+ wsdl.onReady(callback);
+ } else {
+ callback(
+ new Error(
+ 'Invalid WSDL URL: ' +
+ uri +
+ '\n\n\r Code: ' +
+ response.statusCode +
+ '\n\n\r Response Body: ' +
+ response.body
+ )
+ );
+ }
+ },
+ request_headers,
+ request_options
+ );
}
return wsdl;
diff --git a/test/_socketStream.js b/test/_socketStream.js
index 2174912e4..8072d81b9 100644
--- a/test/_socketStream.js
+++ b/test/_socketStream.js
@@ -1,28 +1,16 @@
'use strict';
var fs = require('fs'),
- duplexer = require('duplexer'),
- semver = require('semver'),
+ duplexify = require('duplexify'),
should = require('should'),
// stream = require('stream'),
stream = require('readable-stream');
module.exports = function createSocketStream(file, length) {
//Create a duplex stream
-
var httpReqStream = new stream.PassThrough();
var httpResStream = new stream.PassThrough();
- var socketStream = duplexer(httpReqStream, httpResStream);
-
- // Node 4.x requires cork/uncork
- socketStream.cork = function() {
- };
-
- socketStream.uncork = function() {
- };
-
- socketStream.destroy = function() {
- };
+ var socketStream = duplexify(httpReqStream, httpResStream);
socketStream.req = httpReqStream;
socketStream.res = httpResStream;
@@ -33,18 +21,13 @@ module.exports = function createSocketStream(file, length) {
var chunk = socketStream.req.read();
should.exist(chunk);
- var header = 'HTTP/1.1 200 OK\r\nContent-Type: text/xml; charset=utf-8\r\nContent-Length: ' + length + '\r\n\r\n';
+ var header =
+ 'HTTP/1.1 200 OK\r\nContent-Type: text/xml; charset=utf-8\r\nContent-Length: ' +
+ length +
+ '\r\n\r\n';
- //This is for compatibility with old node releases <= 0.10
- //Hackish
- if(semver.lt(process.version, '0.11.0'))
- {
- socketStream.on('data', function(data) {
- socketStream.ondata(data,0,length + header.length);
- });
- }
//Now write the response with the wsdl
- var state = socketStream.res.write(header+wsdl);
+ var state = socketStream.res.write(header + wsdl);
});
return socketStream;
diff --git a/test/client-customHttp-test.js b/test/client-customHttp-test.js
index b16efa26a..65b79d964 100644
--- a/test/client-customHttp-test.js
+++ b/test/client-customHttp-test.js
@@ -1,23 +1,21 @@
'use strict';
var fs = require('fs'),
- soap = require('..'),
- http = require('http'),
- assert = require('assert'),
- duplexer = require('duplexer'),
+ soap = require('..'),
+ http = require('http'),
+ assert = require('assert'),
+ duplexify = require('duplexify'),
req = require('request'),
httpClient = require('../lib/http.js').HttpClient,
- // stream = require('stream'),
+ // stream = require('stream'),
stream = require('readable-stream'),
util = require('util'),
events = require('events'),
- semver = require('semver'),
should = require('should');
-it('should allow customization of httpClient and the wsdl file download should pass through it', function(done) {
-
-//Make a custom http agent to use streams instead on net socket
- function CustomAgent(options, socket){
+it('should allow customization of httpClient and the wsdl file download should pass through it', function (done) {
+ //Make a custom http agent to use streams instead on net socket
+ function CustomAgent(options, socket) {
var self = this;
events.EventEmitter.call(this);
self.requests = [];
@@ -26,44 +24,34 @@ it('should allow customization of httpClient and the wsdl file download should p
self.options = options || {};
self.proxyOptions = {};
}
-
+
util.inherits(CustomAgent, events.EventEmitter);
-
- CustomAgent.prototype.addRequest = function(req, options) {
+
+ CustomAgent.prototype.addRequest = function (req, options) {
req.onSocket(this.proxyStream);
};
- //Create a duplex stream
-
+ //Create a duplex stream
+
var httpReqStream = new stream.PassThrough();
var httpResStream = new stream.PassThrough();
- var socketStream = duplexer(httpReqStream, httpResStream);
-
- // Node 4.x requires cork/uncork
- socketStream.cork = function() {
- };
-
- socketStream.uncork = function() {
- };
+ var socketStream = duplexify(httpReqStream, httpResStream);
- socketStream.destroy = function() {
- };
-
- //Custom httpClient
- function MyHttpClient (options, socket){
- httpClient.call(this,options);
+ //Custom httpClient
+ function MyHttpClient(options, socket) {
+ httpClient.call(this, options);
this.agent = new CustomAgent(options, socket);
}
-
+
util.inherits(MyHttpClient, httpClient);
-
- MyHttpClient.prototype.request = function(rurl, data, callback, exheaders, exoptions) {
+
+ MyHttpClient.prototype.request = function (rurl, data, callback, exheaders, exoptions) {
var self = this;
var options = self.buildRequest(rurl, data, exheaders, exoptions);
//Specify agent to use
options.agent = this.agent;
var headers = options.headers;
- var req = self._request(options, function(err, res, body) {
+ var req = self._request(options, function (err, res, body) {
if (err) {
return callback(err);
}
@@ -75,46 +63,37 @@ it('should allow customization of httpClient and the wsdl file download should p
}
return req;
};
-
+
var wsdl = fs.readFileSync('./test/wsdl/default_namespace.wsdl').toString('utf8');
- //Should be able to read from stream the request
+ //Should be able to read from stream the request
httpReqStream.once('readable', function readRequest() {
var chunk = httpReqStream.read();
should.exist(chunk);
-
- //This is for compatibility with old node releases <= 0.10
- //Hackish
- if(semver.lt(process.version, '0.11.0'))
- {
- socketStream.on('data', function(data) {
- socketStream.ondata(data,0,1984);
- });
- }
+
//Now write the response with the wsdl
- var state = httpResStream.write('HTTP/1.1 200 OK\r\nContent-Type: text/xml; charset=utf-8\r\nContent-Length: 1904\r\n\r\n'+wsdl);
+ var state = httpResStream.write(
+ 'HTTP/1.1 200 OK\r\nContent-Type: text/xml; charset=utf-8\r\nContent-Length: 1904\r\n\r\n' +
+ wsdl
+ );
});
var httpCustomClient = new MyHttpClient({}, socketStream);
var url = 'http://localhost:50000/Platform.asmx?wsdl';
- soap.createClient(url,
- {httpClient: httpCustomClient},
- function(err, client) {
- assert.ok(client);
- assert.ifError(err);
- assert.equal(client.httpClient, httpCustomClient);
- var description = (client.describe());
- assert.deepEqual(client.describe(), {
- MyService: {
- MyServicePort: {
- MyOperation: {
- input: {
- },
- output: {
- }
- }
- }
- }
- });
- done();
+ soap.createClient(url, { httpClient: httpCustomClient }, function (err, client) {
+ assert.ok(client);
+ assert.ifError(err);
+ assert.equal(client.httpClient, httpCustomClient);
+ var description = client.describe();
+ assert.deepEqual(client.describe(), {
+ MyService: {
+ MyServicePort: {
+ MyOperation: {
+ input: {},
+ output: {},
+ },
+ },
+ },
});
+ done();
+ });
});
diff --git a/test/client-customHttp-xsdinclude-test.js b/test/client-customHttp-xsdinclude-test.js
index b2314ff8b..fe4e31dbc 100644
--- a/test/client-customHttp-xsdinclude-test.js
+++ b/test/client-customHttp-xsdinclude-test.js
@@ -1,18 +1,17 @@
'use strict';
var soap = require('..'),
- http = require('http'),
- assert = require('assert'),
+ http = require('http'),
+ assert = require('assert'),
req = require('request'),
httpClient = require('../lib/http.js').HttpClient,
util = require('util'),
events = require('events'),
createSocketStream = require('./_socketStream');
-it('should allow customization of httpClient, the wsdl file, and associated data download should pass through it', function(done) {
-
+it('should allow customization of httpClient, the wsdl file, and associated data download should pass through it', function (done) {
//Make a custom http agent to use streams instead of a real net socket
- function CustomAgent(options, wsdl, xsd){
+ function CustomAgent(options, wsdl, xsd) {
var self = this;
events.EventEmitter.call(this);
self.requests = [];
@@ -25,7 +24,7 @@ it('should allow customization of httpClient, the wsdl file, and associated data
util.inherits(CustomAgent, events.EventEmitter);
- CustomAgent.prototype.addRequest = function(req, options) {
+ CustomAgent.prototype.addRequest = function (req, options) {
if (/\?xsd$/.test(req.path)) {
req.onSocket(this.xsdStream);
} else {
@@ -34,20 +33,20 @@ it('should allow customization of httpClient, the wsdl file, and associated data
};
//Custom httpClient
- function MyHttpClient (options, wsdlSocket, xsdSocket){
- httpClient.call(this,options);
+ function MyHttpClient(options, wsdlSocket, xsdSocket) {
+ httpClient.call(this, options);
this.agent = new CustomAgent(options, wsdlSocket, xsdSocket);
}
util.inherits(MyHttpClient, httpClient);
- MyHttpClient.prototype.request = function(rurl, data, callback, exheaders, exoptions) {
+ MyHttpClient.prototype.request = function (rurl, data, callback, exheaders, exoptions) {
var self = this;
var options = self.buildRequest(rurl, data, exheaders, exoptions);
//Specify agent to use
options.agent = this.agent;
var headers = options.headers;
- var req = self._request(options, function(err, res, body) {
+ var req = self._request(options, function (err, res, body) {
if (err) {
return callback(err);
}
@@ -60,33 +59,32 @@ it('should allow customization of httpClient, the wsdl file, and associated data
return req;
};
- var httpCustomClient = new MyHttpClient({},
+ var httpCustomClient = new MyHttpClient(
+ {},
createSocketStream(__dirname + '/wsdl/xsdinclude/xsd_include_http.wsdl', 2708),
createSocketStream(__dirname + '/wsdl/xsdinclude/types.xsd', 982)
);
var url = 'http://localhost:50000/Dummy.asmx?wsdl';
- soap.createClient(url,
- {httpClient: httpCustomClient},
- function(err, client) {
- assert.ok(client);
- assert.ifError(err);
- assert.equal(client.httpClient, httpCustomClient);
- var description = (client.describe());
- assert.deepEqual(client.describe(), {
- DummyService: {
- DummyPortType: {
- Dummy: {
- "input": {
- "ID": "IdType|xs:string|pattern",
- "Name": "NameType|xs:string|minLength,maxLength"
- },
- "output": {
- "Result": "dummy:DummyList"
- }
- }
- }
- }
- });
- done();
+ soap.createClient(url, { httpClient: httpCustomClient }, function (err, client) {
+ assert.ok(client);
+ assert.ifError(err);
+ assert.equal(client.httpClient, httpCustomClient);
+ var description = client.describe();
+ assert.deepEqual(client.describe(), {
+ DummyService: {
+ DummyPortType: {
+ Dummy: {
+ input: {
+ ID: 'IdType|xs:string|pattern',
+ Name: 'NameType|xs:string|minLength,maxLength',
+ },
+ output: {
+ Result: 'dummy:DummyList',
+ },
+ },
+ },
+ },
});
+ done();
+ });
});
diff --git a/test/client-options-fixpath-test.js b/test/client-options-fixpath-test.js
index 6dcbdd089..7e5f80e5c 100644
--- a/test/client-options-fixpath-test.js
+++ b/test/client-options-fixpath-test.js
@@ -1,21 +1,21 @@
'use strict';
var fs = require('fs'),
- soap = require('..'),
- http = require('http'),
- assert = require('assert');
+ soap = require('..'),
+ http = require('http'),
+ assert = require('assert');
-describe('SOAP Client', function() {
+describe('SOAP Client', function () {
var options = {
- 'attributesKey': "$attributes",
- 'namespaceArrayElements': false,
- 'wsdl_options': {
- 'fixedPath': true
- }
+ attributesKey: '$attributes',
+ namespaceArrayElements: false,
+ wsdl_options: {
+ fixedPath: true,
+ },
};
- it('should ignore relative paths from wsdl imports and use a single fixed directory', function(done) {
- soap.createClient(__dirname+'/wsdl/fixedPath/netsuite.wsdl', options, function(err, client) {
+ it('should ignore relative paths from wsdl imports and use a single fixed directory', function (done) {
+ soap.createClient(__dirname + '/wsdl/fixedPath/netsuite.wsdl', options, function (err, client) {
assert.ok(client);
assert.ifError(err);
diff --git a/test/client-options-test.js b/test/client-options-test.js
index 42963cd3c..8f8537889 100644
--- a/test/client-options-test.js
+++ b/test/client-options-test.js
@@ -1,33 +1,33 @@
'use strict';
var fs = require('fs'),
- soap = require('..'),
- http = require('http'),
- assert = require('assert');
+ soap = require('..'),
+ http = require('http'),
+ assert = require('assert');
-describe('SOAP Client', function() {
+describe('SOAP Client', function () {
var options = {
- 'ignoredNamespaces': {
- 'namespaces': ['ignoreThisNS'],
- 'override': true
+ ignoredNamespaces: {
+ namespaces: ['ignoreThisNS'],
+ override: true,
},
- 'overrideRootElement': {
- 'namespace': 'tns'
+ overrideRootElement: {
+ namespace: 'tns',
},
- 'overridePromiseSuffix': 'Test',
- 'request': 'customRequest',
- 'namespaceArrayElements': true
+ overridePromiseSuffix: 'Test',
+ request: 'customRequest',
+ namespaceArrayElements: true,
};
- it('should set WSDL options to those specified in createClient', function(done) {
- soap.createClient(__dirname+'/wsdl/json_response.wsdl', options, function(err, client) {
+ it('should set WSDL options to those specified in createClient', function (done) {
+ soap.createClient(__dirname + '/wsdl/json_response.wsdl', options, function (err, client) {
assert.ok(client);
assert.ifError(err);
assert.ok(client.wsdl.options.ignoredNamespaces[0] === 'ignoreThisNS');
assert.ok(client.wsdl.options.overrideRootElement.namespace === 'tns');
assert.ok(typeof client.MyOperationTest === 'function');
- assert.ok(client.wsdl.options.request, "customRequest");
+ assert.ok(client.wsdl.options.request, 'customRequest');
assert.ok(client.wsdl.options.namespaceArrayElements === true);
done();
});
diff --git a/test/client-test.js b/test/client-test.js
index 50f3e171e..59365f257 100644
--- a/test/client-test.js
+++ b/test/client-test.js
@@ -10,7 +10,7 @@ var fs = require('fs'),
[
{ suffix: '', options: {} },
- { suffix: ' (with streaming)', options: { stream: true } }
+ { suffix: ' (with streaming)', options: { stream: true } },
].forEach(function (meta) {
describe('SOAP Client' + meta.suffix, function () {
it('should error on invalid host', function (done) {
@@ -20,9 +20,9 @@ var fs = require('fs'),
});
});
- it('should detect uppercase schemas as urls', function(done) {
- soap.createClient('HTTP://localhost:1', function(err, client) {
- assert.ok(err)
+ it('should detect uppercase schemas as urls', function (done) {
+ soap.createClient('HTTP://localhost:1', function (err, client) {
+ assert.ok(err);
// ECONNREFUSED indicates that the WSDL path is being evaluated as a URL
// If instead ENOENT is returned, the WSDL path is being evaluated (incorrectly)
// as a file system path
@@ -33,7 +33,10 @@ var fs = require('fs'),
});
it('should add and clear soap headers', function (done) {
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) {
+ soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (
+ err,
+ client
+ ) {
assert.ok(client);
assert.ok(!client.getSoapHeaders());
@@ -57,7 +60,10 @@ var fs = require('fs'),
it('should issue async callback for cached wsdl', function (done) {
var called = false;
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) {
+ soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (
+ err,
+ client
+ ) {
assert.ok(client);
assert.ifError(err);
called = true;
@@ -68,61 +74,74 @@ var fs = require('fs'),
it('should allow customization of httpClient', function (done) {
var myHttpClient = {
- request: function () { }
+ request: function () {},
};
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl',
+ soap.createClient(
+ __dirname + '/wsdl/default_namespace.wsdl',
_.assign({ httpClient: myHttpClient }, meta.options),
function (err, client) {
assert.ok(client);
assert.ifError(err);
assert.equal(client.httpClient, myHttpClient);
done();
- });
+ }
+ );
});
it('should allow customization of request for http client', function (done) {
- var myRequest = function () {
- };
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl',
+ var myRequest = function () {};
+ soap.createClient(
+ __dirname + '/wsdl/default_namespace.wsdl',
_.assign({ request: myRequest }, meta.options),
function (err, client) {
assert.ok(client);
assert.ifError(err);
assert.equal(client.httpClient._request, myRequest);
done();
- });
+ }
+ );
});
-
it('should allow customization of envelope', function (done) {
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', _.assign({ envelopeKey: 'soapenv' }, meta.options), function (err, client) {
- assert.ok(client);
- assert.ifError(err);
+ soap.createClient(
+ __dirname + '/wsdl/default_namespace.wsdl',
+ _.assign({ envelopeKey: 'soapenv' }, meta.options),
+ function (err, client) {
+ assert.ok(client);
+ assert.ifError(err);
- client.MyOperation({}, function (err, result) {
- assert.notEqual(client.lastRequest.indexOf('xmlns:soapenv='), -1);
- done();
- });
- });
+ client.MyOperation({}, function (err, result) {
+ assert.notEqual(client.lastRequest.indexOf('xmlns:soapenv='), -1);
+ done();
+ });
+ }
+ );
});
-
it('should allow passing in XML strings', function (done) {
- soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', _.assign({ envelopeKey: 'soapenv' }, meta.options), function (err, client) {
- assert.ok(client);
- assert.ifError(err);
+ soap.createClient(
+ __dirname + '/wsdl/default_namespace.wsdl',
+ _.assign({ envelopeKey: 'soapenv' }, meta.options),
+ function (err, client) {
+ assert.ok(client);
+ assert.ifError(err);
- var xmlStr = '\n\t\n\t\t404 - Not Found\n\t\n\t\n\t\t