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 `1 2`. If false, marshalls into ` 1 2 `. 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 + ':Body' + + '' + : '') + + '<' + + envelopeKey + + ':Body' + (this.bodyAttributes ? this.bodyAttributes.join(' ') : '') + (this.security && this.security.postProcess ? ' Id="_0"' : '') + '>' + message + - '' + - ''; + '' + + ''; 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([''].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([''].join('')); + parts.push( + [ + '', + ].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

404 - Not Found

\n\t\t\n\t\n'; - client.MyOperation({_xml: xmlStr}, function (err, result, raw, soapHeader) { + var xmlStr = + '\n\t\n\t\t404 - Not Found\n\t\n\t\n\t\t

404 - Not Found

\n\t\t\n\t\n'; + client.MyOperation({ _xml: xmlStr }, function (err, result, raw, soapHeader) { assert.ok(err); - assert.notEqual(raw.indexOf('html'), -1); + assert.notEqual(raw.indexOf('HTML'), -1); done(); }); - }); + } + ); }); it('should set binding style to "document" by default if not explicitly set in WSDL, per SOAP spec', function (done) { - soap.createClient(__dirname + '/wsdl/binding_document.wsdl', meta.options, function (err, client) { + soap.createClient(__dirname + '/wsdl/binding_document.wsdl', meta.options, function ( + err, + client + ) { assert.ok(client); assert.ifError(err); @@ -131,14 +150,19 @@ var fs = require('fs'), }); }); - it('should allow disabling the wsdl cache', function (done) { var spy = sinon.spy(wsdl, 'open_wsdl'); var options = _.assign({ disableCache: true }, meta.options); - soap.createClient(__dirname + '/wsdl/binding_document.wsdl', options, function (err1, client1) { + soap.createClient(__dirname + '/wsdl/binding_document.wsdl', options, function ( + err1, + client1 + ) { assert.ok(client1); assert.ok(!err1); - soap.createClient(__dirname + '/wsdl/binding_document.wsdl', options, function (err2, client2) { + soap.createClient(__dirname + '/wsdl/binding_document.wsdl', options, function ( + err2, + client2 + ) { assert.ok(client2); assert.ok(!err2); assert.ok(spy.calledTwice); @@ -157,14 +181,14 @@ var fs = require('fs'), mimetype: 'image/png', contentId: 'file_0', name: 'nodejs.png', - body: fs.createReadStream(__dirname + '/static/nodejs.png') + body: fs.createReadStream(__dirname + '/static/nodejs.png'), }; function parsePartHeaders(part) { const headersAndBody = part.split(/\r\n\r\n/); const headersParts = headersAndBody[0].split(/\r\n/); const headers = {}; - headersParts.forEach(header => { + headersParts.forEach((header) => { let index; if ((index = header.indexOf(':')) > -1) { headers[header.substring(0, index)] = header.substring(index + 1).trim(); @@ -174,59 +198,73 @@ var fs = require('fs'), } it('should send binary attachments using XOP + MTOM', function (done) { - server = http.createServer((req, res) => { - const bufs = []; - req.on('data', function (chunk) { - bufs.push(chunk); - }); - req.on('end', function () { - const body = Buffer.concat(bufs).toString().trim(); - const headers = req.headers; - const boundary = headers['content-type'].match(/boundary="?([^"]*"?)/)[1]; - const parts = body.split(new RegExp('--' + boundary + '-{0,2}')) - .filter(part => part) - .map(parsePartHeaders); - res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify({ contentType: headers['content-type'], parts: parts }), 'utf8'); + server = http + .createServer((req, res) => { + const bufs = []; + req.on('data', function (chunk) { + bufs.push(chunk); + }); + req.on('end', function () { + const body = Buffer.concat(bufs).toString().trim(); + const headers = req.headers; + const boundary = headers['content-type'].match(/boundary="?([^"]*"?)/)[1]; + const parts = body + .split(new RegExp('--' + boundary + '-{0,2}')) + .filter((part) => part) + .map(parsePartHeaders); + res.setHeader('Content-Type', 'application/json'); + res.end( + JSON.stringify({ contentType: headers['content-type'], parts: parts }), + 'utf8' + ); + }); + }) + .listen(port, hostname, function () { + soap.createClient( + __dirname + '/wsdl/attachments.wsdl', + meta.options, + function (initError, client) { + assert.ifError(initError); + + client.MyOperation( + {}, + function (error, response, body) { + assert.ifError(error); + const contentType = {}; + body.contentType.split(/;\s?/).forEach((dir) => { + const keyValue = dir.match(/(.*)="?([^"]*)?/); + if (keyValue && keyValue.length > 2) { + contentType[keyValue[1].trim()] = keyValue[2].trim(); + } else { + contentType.rootType = dir; + } + }); + assert.equal(contentType.rootType, 'multipart/related'); + assert.equal(body.parts.length, 2); + + const dataHeaders = body.parts[0]; + assert(dataHeaders['Content-Type'].indexOf('application/xop+xml') > -1); + assert.equal(dataHeaders['Content-ID'], contentType.start); + + const attachmentHeaders = body.parts[1]; + assert.equal(attachmentHeaders['Content-Type'], attachment.mimetype); + assert.equal(attachmentHeaders['Content-Transfer-Encoding'], 'binary'); + assert.equal(attachmentHeaders['Content-ID'], '<' + attachment.contentId + '>'); + assert(attachmentHeaders['Content-Disposition'].indexOf(attachment.name) > -1); + + server.close(); + done(); + }, + { attachments: [attachment] } + ); + }, + baseUrl + ); }); - }).listen(port, hostname, function () { - - soap.createClient(__dirname + '/wsdl/attachments.wsdl', meta.options, function (initError, client) { - assert.ifError(initError); - - client.MyOperation({}, function (error, response, body) { - assert.ifError(error); - const contentType = {}; - body.contentType.split(/;\s?/).forEach(dir => { - const keyValue = dir.match(/(.*)="?([^"]*)?/); - if (keyValue && keyValue.length > 2) { - contentType[keyValue[1].trim()] = keyValue[2].trim(); - } else { - contentType.rootType = dir; - } - }); - assert.equal(contentType.rootType, 'multipart/related'); - assert.equal(body.parts.length, 2); - - const dataHeaders = body.parts[0]; - assert(dataHeaders['Content-Type'].indexOf('application/xop+xml') > -1); - assert.equal(dataHeaders['Content-ID'], contentType.start); - - const attachmentHeaders = body.parts[1]; - assert.equal(attachmentHeaders['Content-Type'], attachment.mimetype); - assert.equal(attachmentHeaders['Content-Transfer-Encoding'], 'binary'); - assert.equal(attachmentHeaders['Content-ID'], '<' + attachment.contentId + '>'); - assert(attachmentHeaders['Content-Disposition'].indexOf(attachment.name) > -1); - - server.close(); - done(); - }, { attachments: [attachment] }); - }, baseUrl); - }); }); }); - describe('SOAP 1.2 and MTOM binary data', function (){ + describe('SOAP 1.2 and MTOM binary data', function () { var server = null; var hostname = '127.0.0.1'; var port = 15099; @@ -236,14 +274,14 @@ var fs = require('fs'), mimetype: 'image/png', contentId: 'file_0', name: 'nodejs.png', - body: fs.createReadStream(__dirname + '/static/nodejs.png') + body: fs.createReadStream(__dirname + '/static/nodejs.png'), }; function parsePartHeaders(part) { const headersAndBody = part.split(/\r\n\r\n/); const headersParts = headersAndBody[0].split(/\r\n/); const headers = {}; - headersParts.forEach(header => { + headersParts.forEach((header) => { let index; if ((index = header.indexOf(':')) > -1) { headers[header.substring(0, index)] = header.substring(index + 1).trim(); @@ -253,22 +291,28 @@ var fs = require('fs'), } before(function (done) { - server = http.createServer(function (req, res) { - var bufs = []; - req.on('data', function (chunk) { - bufs.push(chunk); - }); - req.on('end', function () { - const body = Buffer.concat(bufs).toString().trim(); - const headers = req.headers; - const boundary = headers['content-type'].match(/boundary="?([^"]*"?)/)[1]; - const parts = body.split(new RegExp('--' + boundary + '-{0,2}')) - .filter(part => part) - .map(parsePartHeaders); - res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify({ contentType: headers['content-type'], parts: parts }), 'utf8'); - }); - }).listen(port, hostname, done); + server = http + .createServer(function (req, res) { + var bufs = []; + req.on('data', function (chunk) { + bufs.push(chunk); + }); + req.on('end', function () { + const body = Buffer.concat(bufs).toString().trim(); + const headers = req.headers; + const boundary = headers['content-type'].match(/boundary="?([^"]*"?)/)[1]; + const parts = body + .split(new RegExp('--' + boundary + '-{0,2}')) + .filter((part) => part) + .map(parsePartHeaders); + res.setHeader('Content-Type', 'application/json'); + res.end( + JSON.stringify({ contentType: headers['content-type'], parts: parts }), + 'utf8' + ); + }); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -278,43 +322,61 @@ var fs = require('fs'), }); it('Should preserve SOAP 1.2 "action" header when sending MTOM request', function (done) { - soap.createClient(__dirname + '/wsdl/attachments.wsdl', _.assign({ forceSoap12Headers: true }, meta.options), function (initError, client) { - assert.ifError(initError); + soap.createClient( + __dirname + '/wsdl/attachments.wsdl', + _.assign({ forceSoap12Headers: true }, meta.options), + function (initError, client) { + assert.ifError(initError); - client.MyOperation({}, function (error, response, body, soapHeader, rawRequest) { - assert.ifError(error); - assert(body.contentType.indexOf('action') > -1); - done(); - }, { attachments: [attachment] }) - }, baseUrl) - }) + client.MyOperation( + {}, + function (error, response, body, soapHeader, rawRequest) { + assert.ifError(error); + assert(body.contentType.indexOf('action') > -1); + done(); + }, + { attachments: [attachment] } + ); + }, + baseUrl + ); + }); it('Should send MTOM request even without attachment', function (done) { - soap.createClient(__dirname + '/wsdl/attachments.wsdl', _.assign({ forceSoap12Headers: true }, meta.options), function (initError, client) { - assert.ifError(initError); - - client.MyOperation({}, function (error, response, body, soapHeader, rawRequest) { - assert.ifError(error); - const contentType = {}; - body.contentType.split(/;\s?/).forEach(dir => { - const keyValue = dir.match(/(.*)="?([^"]*)?/); - if (keyValue && keyValue.length > 2) { - contentType[keyValue[1].trim()] = keyValue[2].trim(); - } else { - contentType.rootType = dir; - } - }); - assert.equal(contentType.rootType, 'multipart/related'); - assert.equal(body.parts.length, 1); + soap.createClient( + __dirname + '/wsdl/attachments.wsdl', + _.assign({ forceSoap12Headers: true }, meta.options), + function (initError, client) { + assert.ifError(initError); - const dataHeaders = body.parts[0]; - assert(dataHeaders['Content-Type'].indexOf('application/xop+xml') > -1); - assert.equal(dataHeaders['Content-ID'], contentType.start); - done(); - }, { forceMTOM: true }) - }, baseUrl) - }) - }) + client.MyOperation( + {}, + function (error, response, body, soapHeader, rawRequest) { + assert.ifError(error); + const contentType = {}; + body.contentType.split(/;\s?/).forEach((dir) => { + const keyValue = dir.match(/(.*)="?([^"]*)?/); + if (keyValue && keyValue.length > 2) { + contentType[keyValue[1].trim()] = keyValue[2].trim(); + } else { + contentType.rootType = dir; + } + }); + assert.equal(contentType.rootType, 'multipart/related'); + assert.equal(body.parts.length, 1); + + const dataHeaders = body.parts[0]; + assert(dataHeaders['Content-Type'].indexOf('application/xop+xml') > -1); + assert.equal(dataHeaders['Content-ID'], contentType.start); + done(); + }, + { forceMTOM: true } + ); + }, + baseUrl + ); + }); + }); describe('Headers in request and last response', function () { var server = null; @@ -323,14 +385,16 @@ var fs = require('fs'), var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server = http.createServer(function (req, res) { - var status_value = (req.headers['test-header'] === 'test') ? 'pass' : 'fail'; + server = http + .createServer(function (req, res) { + var status_value = req.headers['test-header'] === 'test' ? 'pass' : 'fail'; - res.setHeader('status', status_value); - res.statusCode = 200; - res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); - res.end(); - }).listen(port, hostname, done); + res.setHeader('status', status_value); + res.statusCode = 200; + res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); + res.end(); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -339,311 +403,499 @@ var fs = require('fs'), done(); }); - it('should append `:' + port + '` to the Host header on for a request to a service on that port', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + it( + 'should append `:' + + port + + '` to the Host header on for a request to a service on that port', + function (done) { + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.notEqual(client.lastRequestHeaders.Host.indexOf(':' + port), -1); + client.MyOperation( + {}, + function (err, result) { + assert.notEqual(client.lastRequestHeaders.Host.indexOf(':' + port), -1); - done(); - }, null, { 'test-header': 'test' }); - }, baseUrl); - }); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + baseUrl + ); + } + ); it('should not append `:80` to the Host header on for a request to a service without a port explicitly defined', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.equal(client.lastRequestHeaders.Host.indexOf(':80'), -1); + client.MyOperation( + {}, + function (err, result) { + assert.equal(client.lastRequestHeaders.Host.indexOf(':80'), -1); - done(); - }, null, { 'test-header': 'test' }); - }, 'http://127.0.0.1'); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + 'http://127.0.0.1' + ); }); it('should not append `:443` to the Host header if endpoints runs on `https`', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function () { - assert.equal(client.lastRequestHeaders.Host.indexOf(':443'), -1); - done(); - }, null, { 'test-header': 'test' }); - }, 'https://127.0.0.1'); + client.MyOperation( + {}, + function () { + assert.equal(client.lastRequestHeaders.Host.indexOf(':443'), -1); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + 'https://127.0.0.1' + ); }); it('should append a port to the Host header if explicitly defined', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function () { - assert.ok(client.lastRequestHeaders.Host.indexOf(':443') > -1); - done(); - }, null, { 'test-header': 'test' }); - }, 'https://127.0.0.1:443'); + client.MyOperation( + {}, + function () { + assert.ok(client.lastRequestHeaders.Host.indexOf(':443') > -1); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + 'https://127.0.0.1:443' + ); }); - it('should have xml request modified', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function(err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function(err, result) { - assert.ok(result); - assert.ok(client.lastResponse); - assert.ok(client.lastResponseHeaders); - - done(); - }, { - postProcess: function(_xml) { - return _xml.replace('soap', 'SOAP'); - } - } - ); - }, baseUrl); - }); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastResponse); + assert.ok(client.lastResponseHeaders); + + done(); + }, + { + postProcess: function (_xml) { + return _xml.replace('soap', 'SOAP'); + }, + } + ); + }, + baseUrl + ); + }); it('should have the correct extra header in the request', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.ok(client.lastResponseHeaders); - assert.equal(client.lastResponseHeaders.status, 'pass'); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastResponseHeaders); + assert.equal(client.lastResponseHeaders.status, 'pass'); - done(); - }, null, { 'test-header': 'test' }); - }, baseUrl); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should have the wrong extra header in the request', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.ok(client.lastResponseHeaders); - assert.equal(client.lastResponseHeaders.status, 'fail'); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastResponseHeaders); + assert.equal(client.lastResponseHeaders.status, 'fail'); - done(); - }, null, { 'test-header': 'testBad' }); - }, baseUrl); + done(); + }, + null, + { 'test-header': 'testBad' } + ); + }, + baseUrl + ); }); it('should have lastResponse and lastResponseHeaders after the call', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.ok(client.lastResponse); - assert.ok(client.lastResponseHeaders); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastResponse); + assert.ok(client.lastResponseHeaders); - done(); - }, null, { 'test-header': 'test' }); - }, baseUrl); - }); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + baseUrl + ); + }); + + it('should remove add httpHeaders after the call', function (done) { + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - it ('should remove add httpHeaders after the call', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + client.addHttpHeader('foo', 'bar'); + assert.equal(client.getHttpHeaders().foo, 'bar'); - client.addHttpHeader('foo', 'bar'); - assert.equal(client.getHttpHeaders().foo, 'bar'); - - client.clearHttpHeaders(); - assert.equal(client.getHttpHeaders(), null); + client.clearHttpHeaders(); + assert.equal(client.getHttpHeaders(), null); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.equal(client.lastRequestHeaders.foo, undefined); + client.MyOperation({}, function (err, result) { + assert.ok(result); + assert.equal(client.lastRequestHeaders.foo, undefined); - done(); - }); - }, baseUrl); + done(); + }); + }, + baseUrl + ); }); it('should have rawRequest available in the callback', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result, rawResponse, headers, rawRequest) { - assert.ok(rawRequest); - assert.ok(typeof rawRequest === 'string'); + client.MyOperation( + {}, + function (err, result, rawResponse, headers, rawRequest) { + assert.ok(rawRequest); + assert.ok(typeof rawRequest === 'string'); - done(); - }, null, { 'test-header': 'test' }); - }, baseUrl); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should have lastElapsedTime after a call with the time option passed', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.ok(client.lastResponse); - assert.ok(client.lastResponseHeaders); - assert.ok(client.lastElapsedTime); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastResponse); + assert.ok(client.lastResponseHeaders); + assert.ok(client.lastElapsedTime); - done(); - }, { time: true }, { 'test-header': 'test' }); - }, baseUrl); + done(); + }, + { time: true }, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should add http headers in method call options', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.ok(client.lastRequestHeaders['test-header']); - assert.ok(client.lastRequestHeaders['options-test-header']); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastRequestHeaders['test-header']); + assert.ok(client.lastRequestHeaders['options-test-header']); - done(); - }, { headers: { 'options-test-header': 'test' } }, { 'test-header': 'test' }); - }, baseUrl); + done(); + }, + { headers: { 'options-test-header': 'test' } }, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should not return error in the call and return the json in body', function (done) { - soap.createClient(__dirname + '/wsdl/json_response.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - - client.MyOperation({}, function (err, result, body) { - assert.ok(result); + soap.createClient( + __dirname + '/wsdl/json_response.wsdl', + meta.options, + function (err, client) { + assert.ok(client); assert.ifError(err); - assert.ok(body); - done(); - }, null, { "test-header": 'test' }); - }, baseUrl); + + client.MyOperation( + {}, + function (err, result, body) { + assert.ok(result); + assert.ifError(err); + assert.ok(body); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should add proper headers for soap12', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace_soap12.wsdl', _.assign({ forceSoap12Headers: true }, meta.options), function (err, client) { - assert.ok(client); - assert.ifError(err); + soap.createClient( + __dirname + '/wsdl/default_namespace_soap12.wsdl', + _.assign({ forceSoap12Headers: true }, meta.options), + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result) { - assert.ok(result); - assert.ok(client.lastRequestHeaders); - assert.ok(client.lastRequest); - assert.equal(client.lastRequestHeaders['Content-Type'], 'application/soap+xml; charset=utf-8; action="MyOperation"'); - assert.notEqual(client.lastRequest.indexOf('xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\"'), -1); - assert(!client.lastRequestHeaders.SOAPAction); - done(); - }, null, { 'test-header': 'test' }); - }, baseUrl); + client.MyOperation( + {}, + function (err, result) { + assert.ok(result); + assert.ok(client.lastRequestHeaders); + assert.ok(client.lastRequest); + assert.equal( + client.lastRequestHeaders['Content-Type'], + 'application/soap+xml; charset=utf-8; action="MyOperation"' + ); + assert.notEqual( + client.lastRequest.indexOf( + 'xmlns:soap="http://www.w3.org/2003/05/soap-envelope"' + ), + -1 + ); + assert(!client.lastRequestHeaders.SOAPAction); + done(); + }, + null, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should allow calling the method with args, callback, options and extra headers', function (done) { - soap.createClient(__dirname + '/wsdl/json_response.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - - client.MyOperation({}, function (err, result, body) { + soap.createClient( + __dirname + '/wsdl/json_response.wsdl', + meta.options, + function (err, client) { + assert.ok(client); assert.ifError(err); - assert.ok(result); - assert.ok(body.tempResponse === 'temp'); - assert.ok(client.lastResponseHeaders.status === 'pass'); - assert.ok(client.lastRequestHeaders['options-test-header'] === 'test'); - done(); - }, { headers: { 'options-test-header': 'test' } }, { 'test-header': 'test' }); - }, baseUrl); + client.MyOperation( + {}, + function (err, result, body) { + assert.ifError(err); + assert.ok(result); + assert.ok(body.tempResponse === 'temp'); + assert.ok(client.lastResponseHeaders.status === 'pass'); + assert.ok(client.lastRequestHeaders['options-test-header'] === 'test'); + + done(); + }, + { headers: { 'options-test-header': 'test' } }, + { 'test-header': 'test' } + ); + }, + baseUrl + ); }); it('should allow calling the method with only a callback', function (done) { - soap.createClient(__dirname + '/wsdl/json_response.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - - client.MyOperation(function (err, result, body) { + soap.createClient( + __dirname + '/wsdl/json_response.wsdl', + meta.options, + function (err, client) { + assert.ok(client); assert.ifError(err); - assert.ok(result); - assert.ok(body.tempResponse === 'temp'); - assert.ok(client.lastResponseHeaders.status === 'fail'); - done(); - }); - }, baseUrl); + client.MyOperation(function (err, result, body) { + assert.ifError(err); + assert.ok(result); + assert.ok(body.tempResponse === 'temp'); + assert.ok(client.lastResponseHeaders.status === 'fail'); + + done(); + }); + }, + baseUrl + ); }); it('should allow calling the method with args, options and callback last', function (done) { - soap.createClient(__dirname + '/wsdl/json_response.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - - client.MyOperation({}, { headers: { 'options-test-header': 'test' } }, function (err, result, body) { + soap.createClient( + __dirname + '/wsdl/json_response.wsdl', + meta.options, + function (err, client) { + assert.ok(client); assert.ifError(err); - assert.ok(result); - assert.ok(body.tempResponse === 'temp'); - assert.ok(client.lastResponseHeaders.status === 'fail'); - assert.ok(client.lastRequestHeaders['options-test-header'] === 'test'); - done(); - }); - }, baseUrl); + client.MyOperation({}, { headers: { 'options-test-header': 'test' } }, function ( + err, + result, + body + ) { + assert.ifError(err); + assert.ok(result); + assert.ok(body.tempResponse === 'temp'); + assert.ok(client.lastResponseHeaders.status === 'fail'); + assert.ok(client.lastRequestHeaders['options-test-header'] === 'test'); + + done(); + }); + }, + baseUrl + ); }); it('should allow calling the method with args, options, extra headers and callback last', function (done) { - soap.createClient(__dirname + '/wsdl/json_response.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - - client.MyOperation({}, { headers: { 'options-test-header': 'test' } }, { 'test-header': 'test' }, function (err, result, body) { + soap.createClient( + __dirname + '/wsdl/json_response.wsdl', + meta.options, + function (err, client) { + assert.ok(client); assert.ifError(err); - assert.ok(result); - assert.ok(body.tempResponse === 'temp'); - assert.ok(client.lastResponseHeaders.status === 'pass'); - assert.ok(client.lastRequestHeaders['options-test-header'] === 'test'); - done(); - }); - }, baseUrl); + client.MyOperation( + {}, + { headers: { 'options-test-header': 'test' } }, + { 'test-header': 'test' }, + function (err, result, body) { + assert.ifError(err); + assert.ok(result); + assert.ok(body.tempResponse === 'temp'); + assert.ok(client.lastResponseHeaders.status === 'pass'); + assert.ok(client.lastRequestHeaders['options-test-header'] === 'test'); + + done(); + } + ); + }, + baseUrl + ); }); }); it('should add 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()); var soapheader = { - 'esnext': false, - 'moz': true, - 'boss': true, - 'node': true, - 'validthis': true, - 'globals': { - 'EventEmitter': true, - 'Promise': true - } + esnext: false, + moz: true, + boss: true, + node: true, + validthis: true, + globals: { + EventEmitter: true, + Promise: true, + }, }; client.addSoapHeader(soapheader); - assert.ok(client.getSoapHeaders()[0] === 'falsetruetruetruetruetruetrue'); + assert.ok( + client.getSoapHeaders()[0] === + 'falsetruetruetruetruetruetrue' + ); done(); }); }); it('should add dynamic 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()); let random; @@ -652,14 +904,17 @@ var fs = require('fs'), return { TeSt_location: location, TeSt_action: soapAction, - TeSt_random: random + TeSt_random: random, }; } client.addSoapHeader(dynamicHeader); assert.ok(typeof client.getSoapHeaders()[0] === 'function'); client.MyOperation({}, function (err, result) { - assert.notEqual(client.lastRequest.indexOf('http://www.example.com/v1'), -1); + assert.notEqual( + client.lastRequest.indexOf('http://www.example.com/v1'), + -1 + ); assert.notEqual(client.lastRequest.indexOf('MyOperation'), -1); assert.notEqual(client.lastRequest.indexOf(`${random}`), -1); done(); @@ -668,14 +923,19 @@ var fs = require('fs'), }); it('should add soap headers with a namespace', 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()); client.addSoapHeader({ header1: 'content' }, null, null, 'http://example.com'); assert.ok(client.getSoapHeaders().length === 1); - assert.ok(client.getSoapHeaders()[0] === 'content'); + assert.ok( + client.getSoapHeaders()[0] === 'content' + ); client.clearSoapHeaders(); assert.ok(!client.getSoapHeaders()); @@ -684,7 +944,10 @@ var fs = require('fs'), }); it('should add http 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.getHttpHeaders()); @@ -706,11 +969,13 @@ var fs = require('fs'), var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server = http.createServer(function (req, res) { - res.statusCode = 200; - res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); - res.end(); - }).listen(port, hostname, done); + server = http + .createServer(function (req, res) { + res.statusCode = 200; + res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); + res.end(); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -720,36 +985,42 @@ var fs = require('fs'), }); it('should reset the namespace number', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - assert.ok(client); - - var data = { - attributes: { - xsi_type: { - type: 'Ty', - xmlns: 'xmlnsTy' - } - } - }; + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + assert.ok(client); - var message = ''; - client.MyOperation(data, function (err, result) { - assert.ok(client.lastRequest); - assert.ok(client.lastMessage); - assert.ok(client.lastEndpoint); - assert.equal(client.lastMessage, message); + var data = { + attributes: { + xsi_type: { + type: 'Ty', + xmlns: 'xmlnsTy', + }, + }, + }; - delete data.attributes.xsi_type.namespace; + var message = + ''; client.MyOperation(data, function (err, result) { assert.ok(client.lastRequest); assert.ok(client.lastMessage); assert.ok(client.lastEndpoint); assert.equal(client.lastMessage, message); - done(); + delete data.attributes.xsi_type.namespace; + client.MyOperation(data, function (err, result) { + assert.ok(client.lastRequest); + assert.ok(client.lastMessage); + assert.ok(client.lastEndpoint); + assert.equal(client.lastMessage, message); + + done(); + }); }); - }); - }, baseUrl); + }, + baseUrl + ); }); }); @@ -762,23 +1033,29 @@ var fs = require('fs'), var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server1 = http.createServer(function (req, res) { - res.statusCode = 301; - res.setHeader('Location', 'http://' + hostname + ':' + (port + 1)); - res.end(); - }).listen(port, hostname, function () { - server2 = http.createServer(function (req, res) { - res.statusCode = 302; - res.setHeader('Location', 'http://' + hostname + ':' + (port + 2)); + server1 = http + .createServer(function (req, res) { + res.statusCode = 301; + res.setHeader('Location', 'http://' + hostname + ':' + (port + 1)); res.end(); - }).listen((port + 1), hostname, function () { - server3 = http.createServer(function (req, res) { - res.statusCode = 401; - res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); - res.end(); - }).listen((port + 2), hostname, done); + }) + .listen(port, hostname, function () { + server2 = http + .createServer(function (req, res) { + res.statusCode = 302; + res.setHeader('Location', 'http://' + hostname + ':' + (port + 2)); + res.end(); + }) + .listen(port + 1, hostname, function () { + server3 = http + .createServer(function (req, res) { + res.statusCode = 401; + res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); + res.end(); + }) + .listen(port + 2, hostname, done); + }); }); - }); }); after(function (done) { @@ -792,14 +1069,19 @@ var fs = require('fs'), }); it('should return an error', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - client.MyOperation({}, function (err, result) { - assert.ok(err); - assert.ok(err.response); - assert.equal(err.body, '{"tempResponse":"temp"}'); - done(); - }); - }, baseUrl); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + client.MyOperation({}, function (err, result) { + assert.ok(err); + assert.ok(err.response); + assert.equal(err.body, '{"tempResponse":"temp"}'); + done(); + }); + }, + baseUrl + ); }); }); @@ -813,11 +1095,13 @@ var fs = require('fs'), var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server = http.createServer(function (req, res) { - res.statusCode = 401; // This test case is nothing to do with status code. Set to 200 doesn't break test. - res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); - res.end(); - }).listen(port, hostname, done); + server = http + .createServer(function (req, res) { + res.statusCode = 401; // This test case is nothing to do with status code. Set to 200 doesn't break test. + res.write(JSON.stringify({ tempResponse: 'temp' }), 'utf8'); + res.end(); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -827,25 +1111,35 @@ var fs = require('fs'), }); it('should return an error', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - client.MyOperation({}, function (err, result) { - assert.ok(err); - assert.ok(err.response); - assert.ok(err.body); - done(); - }); - }, baseUrl); - }); - - it('should emit a \'soapError\' event', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - client.on('soapError', function (err) { - assert.ok(err); - }); - client.MyOperation({}, function (err, result) { - done(); - }); - }, baseUrl); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + client.MyOperation({}, function (err, result) { + assert.ok(err); + assert.ok(err.response); + assert.ok(err.body); + done(); + }); + }, + baseUrl + ); + }); + + it("should emit a 'soapError' event", function (done) { + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + client.on('soapError', function (err) { + assert.ok(err); + }); + client.MyOperation({}, function (err, result) { + done(); + }); + }, + baseUrl + ); }); }); @@ -856,10 +1150,12 @@ var fs = require('fs'), var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server = http.createServer(function (req, res) { - res.statusCode = 404; - res.end(); - }).listen(port, hostname, done); + server = http + .createServer(function (req, res) { + res.statusCode = 404; + res.end(); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -869,24 +1165,34 @@ var fs = require('fs'), }); it('should return an error', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - client.MyOperation({}, function (err, result) { - assert.ok(err); - assert.ok(err.response); - done(); - }); - }, baseUrl); - }); - - it('should emit a \'soapError\' event', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - client.on('soapError', function (err) { - assert.ok(err); - }); - client.MyOperation({}, function (err, result) { - done(); - }); - }, baseUrl); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + client.MyOperation({}, function (err, result) { + assert.ok(err); + assert.ok(err.response); + done(); + }); + }, + baseUrl + ); + }); + + it("should emit a 'soapError' event", function (done) { + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + client.on('soapError', function (err) { + assert.ok(err); + }); + client.MyOperation({}, function (err, result) { + done(); + }); + }, + baseUrl + ); }); }); @@ -897,11 +1203,13 @@ var fs = require('fs'), var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server = http.createServer(function (req, res) { - res.statusCode = 200; - res.write('', 'utf8'); - res.end(); - }).listen(port, hostname, done); + server = http + .createServer(function (req, res) { + res.statusCode = 200; + res.write('', 'utf8'); + res.end(); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -911,14 +1219,19 @@ var fs = require('fs'), }); it('should return an error', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - client.MyOperation({}, function (err, result) { - assert.ok(err); - assert.ok(err.response); - assert.ok(err.body); - done(); - }); - }, baseUrl); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + client.MyOperation({}, function (err, result) { + assert.ok(err); + assert.ok(err.response); + assert.ok(err.body); + done(); + }); + }, + baseUrl + ); }); }); @@ -926,13 +1239,15 @@ var fs = require('fs'), var server = null; var hostname = '127.0.0.1'; var port = 15099; - var baseUrl = 'http://' + hostname + ":" + port; + var baseUrl = 'http://' + hostname + ':' + port; before(function (done) { - server = http.createServer(function (req, res) { - res.statusCode = 200; - fs.createReadStream(__dirname + '/soap-failure.xml').pipe(res); - }).listen(port, hostname, done); + server = http + .createServer(function (req, res) { + res.statusCode = 200; + fs.createReadStream(__dirname + '/soap-failure.xml').pipe(res); + }) + .listen(port, hostname, done); }); after(function (done) { @@ -941,132 +1256,164 @@ var fs = require('fs'), done(); }); - it('Should emit the "message" event with Soap Body string and an exchange id', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - var didEmitEvent = false; - client.on('message', function (xml, eid) { - didEmitEvent = true; - // Should contain only message body - assert.equal(typeof xml, 'string'); - assert.equal(xml.indexOf('soap:Envelope'), -1); - assert.ok(eid); - }); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + var didEmitEvent = false; + client.on('message', function (xml, eid) { + didEmitEvent = true; + // Should contain only message body + assert.equal(typeof xml, 'string'); + assert.equal(xml.indexOf('soap:Envelope'), -1); + assert.ok(eid); + }); - client.MyOperation({}, function () { - assert.ok(didEmitEvent); - done(); - }); - }, baseUrl); + client.MyOperation({}, function () { + assert.ok(didEmitEvent); + done(); + }); + }, + baseUrl + ); }); it('Should emit the "request" event with entire XML message and an exchange id', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - var didEmitEvent = false; - client.on('request', function (xml, eid) { - didEmitEvent = true; - // Should contain entire soap message - assert.equal(typeof xml, 'string'); - assert.notEqual(xml.indexOf('soap:Envelope'), -1); - assert.ok(eid); - }); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + var didEmitEvent = false; + client.on('request', function (xml, eid) { + didEmitEvent = true; + // Should contain entire soap message + assert.equal(typeof xml, 'string'); + assert.notEqual(xml.indexOf('soap:Envelope'), -1); + assert.ok(eid); + }); - client.MyOperation({}, function () { - assert.ok(didEmitEvent); - done(); - }); - }, baseUrl); + client.MyOperation({}, function () { + assert.ok(didEmitEvent); + done(); + }); + }, + baseUrl + ); }); it('Should emit the "response" event with Soap Body string and Response object and an exchange id', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - var didEmitEvent = false; - client.on('response', function (xml, response, eid) { - didEmitEvent = true; - // Should contain entire soap message - assert.equal(typeof xml, 'string'); - assert.equal(xml.indexOf('soap:Envelope'), -1); - assert.ok(response); - assert.ok(eid); - }); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + var didEmitEvent = false; + client.on('response', function (xml, response, eid) { + didEmitEvent = true; + // Should contain entire soap message + assert.equal(typeof xml, 'string'); + assert.equal(xml.indexOf('soap:Envelope'), -1); + assert.ok(response); + assert.ok(eid); + }); - client.MyOperation({}, function () { - assert.ok(didEmitEvent); - done(); - }); - }, baseUrl); + client.MyOperation({}, function () { + assert.ok(didEmitEvent); + done(); + }); + }, + baseUrl + ); }); it('Should emit the "request" and "response" events with the same generated exchange id if none is given', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - var didEmitRequestEvent = false; - var didEmitResponseEvent = false; - var requestEid, responseEid; - - client.on('request', function (xml, eid) { - didEmitRequestEvent = true; - requestEid = eid; - assert.ok(eid); - }); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + var didEmitRequestEvent = false; + var didEmitResponseEvent = false; + var requestEid, responseEid; + + client.on('request', function (xml, eid) { + didEmitRequestEvent = true; + requestEid = eid; + assert.ok(eid); + }); - client.on('response', function (xml, response, eid) { - didEmitResponseEvent = true; - responseEid = eid; - assert.ok(eid); - }); + client.on('response', function (xml, response, eid) { + didEmitResponseEvent = true; + responseEid = eid; + assert.ok(eid); + }); - client.MyOperation({}, function () { - assert.ok(didEmitRequestEvent); - assert.ok(didEmitResponseEvent); - assert.equal(responseEid, requestEid); - done(); - }); - }, baseUrl); + client.MyOperation({}, function () { + assert.ok(didEmitRequestEvent); + assert.ok(didEmitResponseEvent); + assert.equal(responseEid, requestEid); + done(); + }); + }, + baseUrl + ); }); it('Should emit the "request" and "response" events with the given exchange id', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - var didEmitRequestEvent = false; - var didEmitResponseEvent = false; - var requestEid, responseEid; - - client.on('request', function (xml, eid) { - didEmitRequestEvent = true; - requestEid = eid; - assert.ok(eid); - }); - - client.on('response', function (xml, response, eid) { - didEmitResponseEvent = true; - responseEid = eid; - assert.ok(eid); - }); + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + var didEmitRequestEvent = false; + var didEmitResponseEvent = false; + var requestEid, responseEid; + + client.on('request', function (xml, eid) { + didEmitRequestEvent = true; + requestEid = eid; + assert.ok(eid); + }); - client.MyOperation({}, function () { - assert.ok(didEmitRequestEvent); - assert.ok(didEmitResponseEvent); - assert.equal('unit', requestEid); - assert.equal(responseEid, requestEid); - done(); - }, {exchangeId : 'unit'}); - }, baseUrl); - }); + client.on('response', function (xml, response, eid) { + didEmitResponseEvent = true; + responseEid = eid; + assert.ok(eid); + }); - it('should emit a \'soapError\' event with an exchange id', function (done) { - soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', meta.options, function (err, client) { - var didEmitEvent = false; - client.on('soapError', function (err, eid) { - didEmitEvent = true; - assert.ok(err.root.Envelope.Body.Fault); - assert.ok(eid); - }); - client.MyOperation({}, function (err, result) { - assert.ok(didEmitEvent); - done(); - }); - }, baseUrl); + client.MyOperation( + {}, + function () { + assert.ok(didEmitRequestEvent); + assert.ok(didEmitResponseEvent); + assert.equal('unit', requestEid); + assert.equal(responseEid, requestEid); + done(); + }, + { exchangeId: 'unit' } + ); + }, + baseUrl + ); + }); + + it("should emit a 'soapError' event with an exchange id", function (done) { + soap.createClient( + __dirname + '/wsdl/default_namespace.wsdl', + meta.options, + function (err, client) { + var didEmitEvent = false; + client.on('soapError', function (err, eid) { + didEmitEvent = true; + assert.ok(err.root.Envelope.Body.Fault); + assert.ok(eid); + }); + client.MyOperation({}, function (err, result) { + assert.ok(didEmitEvent); + done(); + }); + }, + baseUrl + ); }); - }); it('should return error in the call when Fault was returned', function (done) { @@ -1075,27 +1422,35 @@ var fs = require('fs'), var port = 15099; var baseUrl = 'http://' + hostname + ':' + port; - server = http.createServer(function (req, res) { - res.statusCode = 200; - res.write("\nTesttest errortest detail"); - res.end(); - }).listen(port, hostname, function () { - soap.createClient(__dirname + '/wsdl/json_response.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - - client.MyOperation({}, function (err, result, body) { - server.close(); - server = null; - assert.ok(err); - assert.strictEqual(err.message, 'Test: test error: "test detail"'); - assert.ok(result); - assert.ok(body); - done(); - }); - }, baseUrl); - }); + server = http + .createServer(function (req, res) { + res.statusCode = 200; + res.write( + '\nTesttest errortest detail' + ); + res.end(); + }) + .listen(port, hostname, function () { + soap.createClient( + __dirname + '/wsdl/json_response.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); + client.MyOperation({}, function (err, result, body) { + server.close(); + server = null; + assert.ok(err); + assert.strictEqual(err.message, 'Test: test error: "test detail"'); + assert.ok(result); + assert.ok(body); + done(); + }); + }, + baseUrl + ); + }); }); it('should return error in the call when Body was returned empty', function (done) { @@ -1104,47 +1459,59 @@ var fs = require('fs'), var port = 15099; var baseUrl = 'http://' + hostname + ':' + port; - server = http.createServer(function (req, res) { - res.statusCode = 200; - res.write(""); - res.end(); - }).listen(port, hostname, function () { - soap.createClient(__dirname + '/wsdl/empty_body.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); + server = http + .createServer(function (req, res) { + res.statusCode = 200; + res.write( + "" + ); + res.end(); + }) + .listen(port, hostname, function () { + soap.createClient( + __dirname + '/wsdl/empty_body.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); - client.MyOperation({}, function (err, result, body, responseSoapHeaders) { - server.close(); - server = null; - assert.ifError(err); - assert.ok(!responseSoapHeaders); - assert.ok(result); - assert.ok(body); - done(); - }); - }, baseUrl); - }); + client.MyOperation({}, function (err, result, body, responseSoapHeaders) { + server.close(); + server = null; + assert.ifError(err); + assert.ok(!responseSoapHeaders); + assert.ok(result); + assert.ok(body); + done(); + }); + }, + baseUrl + ); + }); }); describe('Method invocation', function () { - it('shall generate correct payload for methods with string parameter', function (done) { // Mock the http post function in order to easy be able to validate the // generated payload var stringParameterValue = 'MY_STRING_PARAMETER_VALUE'; - var expectedSoapBody = '' + + var expectedSoapBody = + '' + stringParameterValue + ''; var request = null; var mockRequestHandler = function (_request) { request = _request; return { - on: function () { } + on: function () {}, }; }; - var options = _.assign({ - request: mockRequestHandler, - }, meta.options); + var options = _.assign( + { + request: mockRequestHandler, + }, + meta.options + ); soap.createClient(__dirname + '/wsdl/builtin_types.wsdl', options, function (err, client) { assert.ok(client); @@ -1160,23 +1527,37 @@ var fs = require('fs'), }); it('shall generate correct payload for methods with array parameter', function (done) { - soap.createClient(__dirname + '/wsdl/list_parameter.wsdl', function(err, client) { + soap.createClient(__dirname + '/wsdl/list_parameter.wsdl', function (err, client) { assert.ok(client); - var pathToArrayContainer = 'TimesheetV201511Mobile.TimesheetV201511MobileSoap.AddTimesheet.input.input.PeriodList'; + var pathToArrayContainer = + 'TimesheetV201511Mobile.TimesheetV201511MobileSoap.AddTimesheet.input.input.PeriodList'; var arrayParameter = _.get(client.describe(), pathToArrayContainer)['PeriodType[]']; assert.ok(arrayParameter); - client.AddTimesheet({input: {PeriodList: {PeriodType: [{PeriodId: '1'}]}}}, function() { - var sentInputContent = client.lastRequest.substring(client.lastRequest.indexOf('') + ''.length, client.lastRequest.indexOf('')); - assert.equal(sentInputContent, '1'); - done(); - }); + client.AddTimesheet( + { input: { PeriodList: { PeriodType: [{ PeriodId: '1' }] } } }, + function () { + var sentInputContent = client.lastRequest.substring( + client.lastRequest.indexOf('') + ''.length, + client.lastRequest.indexOf('') + ); + assert.equal( + sentInputContent, + '1' + ); + done(); + } + ); }); }); it('shall generate correct payload for methods with array parameter with colon override', function (done) { - soap.createClient(__dirname + '/wsdl/array_namespace_override.wsdl', function(err, client) { + soap.createClient(__dirname + '/wsdl/array_namespace_override.wsdl', function ( + err, + client + ) { assert.ok(client); - var pathToArrayContainer = 'SampleArrayServiceImplService.SampleArrayServiceImplPort.createWebOrder.input.order'; + var pathToArrayContainer = + 'SampleArrayServiceImplService.SampleArrayServiceImplPort.createWebOrder.input.order'; var arrayParameter = _.get(client.describe(), pathToArrayContainer)['orderDetails[]']; assert.ok(arrayParameter); const input = { @@ -1184,36 +1565,52 @@ var fs = require('fs'), ':order': { ':orderDetails': { ':unitNo': 1234, - ':items':[{ ':itemDesc': 'item1'}, { ':itemDesc': 'item2'}] + ':items': [{ ':itemDesc': 'item1' }, { ':itemDesc': 'item2' }], }, }, }; - client.createWebOrder(input, function() { - var sentInputContent = client.lastRequest.substring(client.lastRequest.indexOf(''), client.lastRequest.lastIndexOf('') + ''.length); - assert.equal(sentInputContent, 'item1item2'); + client.createWebOrder(input, function () { + var sentInputContent = client.lastRequest.substring( + client.lastRequest.indexOf(''), + client.lastRequest.lastIndexOf('') + ''.length + ); + assert.equal( + sentInputContent, + 'item1item2' + ); done(); }); }); }); it('shall generate correct payload for methods with array parameter with parent namespace', function (done) { - soap.createClient(__dirname + '/wsdl/array_namespace_override.wsdl', function(err, client) { + soap.createClient(__dirname + '/wsdl/array_namespace_override.wsdl', function ( + err, + client + ) { assert.ok(client); - var pathToArrayContainer = 'SampleArrayServiceImplService.SampleArrayServiceImplPort.createWebOrder.input.order'; + var pathToArrayContainer = + 'SampleArrayServiceImplService.SampleArrayServiceImplPort.createWebOrder.input.order'; var arrayParameter = _.get(client.describe(), pathToArrayContainer)['orderDetails[]']; assert.ok(arrayParameter); const input = { ':clientId': 'test', ':order': { - 'orderDetails': { + orderDetails: { ':unitNo': 1234, - 'items':[{ ':itemDesc': 'item1'}, { ':itemDesc': 'item2'}] + items: [{ ':itemDesc': 'item1' }, { ':itemDesc': 'item2' }], }, }, }; - client.createWebOrder(input, function() { - var sentInputContent = client.lastRequest.substring(client.lastRequest.indexOf(''), client.lastRequest.lastIndexOf('') + ''.length); - assert.equal(sentInputContent, 'item1item2'); + client.createWebOrder(input, function () { + var sentInputContent = client.lastRequest.substring( + client.lastRequest.indexOf(''), + client.lastRequest.lastIndexOf('') + ''.length + ); + assert.equal( + sentInputContent, + 'item1item2' + ); done(); }); }); @@ -1221,33 +1618,61 @@ var fs = require('fs'), it('shall generate correct payload for methods with array parameter when individual array elements are not namespaced', function (done) { // used for servers that cannot aggregate individually namespaced array elements - soap.createClient(__dirname + '/wsdl/list_parameter.wsdl', {disableCache: true, namespaceArrayElements: false}, function(err, client) { - assert.ok(client); - var pathToArrayContainer = 'TimesheetV201511Mobile.TimesheetV201511MobileSoap.AddTimesheet.input.input.PeriodList'; - var arrayParameter = _.get(client.describe(), pathToArrayContainer)['PeriodType[]']; - assert.ok(arrayParameter); - client.AddTimesheet({input: {PeriodList: {PeriodType: [{PeriodId: '1'}, {PeriodId: '2'}]}}}, function() { - var sentInputContent = client.lastRequest.substring(client.lastRequest.indexOf('') + ''.length, client.lastRequest.indexOf('')); - assert.equal(sentInputContent, '12'); - done(); - }); - }); + soap.createClient( + __dirname + '/wsdl/list_parameter.wsdl', + { disableCache: true, namespaceArrayElements: false }, + function (err, client) { + assert.ok(client); + var pathToArrayContainer = + 'TimesheetV201511Mobile.TimesheetV201511MobileSoap.AddTimesheet.input.input.PeriodList'; + var arrayParameter = _.get(client.describe(), pathToArrayContainer)['PeriodType[]']; + assert.ok(arrayParameter); + client.AddTimesheet( + { input: { PeriodList: { PeriodType: [{ PeriodId: '1' }, { PeriodId: '2' }] } } }, + function () { + var sentInputContent = client.lastRequest.substring( + client.lastRequest.indexOf('') + ''.length, + client.lastRequest.indexOf('') + ); + assert.equal( + sentInputContent, + '12' + ); + done(); + } + ); + } + ); }); it('shall generate correct payload for methods with array parameter when individual array elements are namespaced', function (done) { // this is the default behavior for array element namespacing - soap.createClient(__dirname + '/wsdl/list_parameter.wsdl', {disableCache: true, namespaceArrayElements: true}, function(err, client) { - assert.ok(client); - assert.ok(client.wsdl.options.namespaceArrayElements === true); - var pathToArrayContainer = 'TimesheetV201511Mobile.TimesheetV201511MobileSoap.AddTimesheet.input.input.PeriodList'; - var arrayParameter = _.get(client.describe(), pathToArrayContainer)['PeriodType[]']; - assert.ok(arrayParameter); - client.AddTimesheet({input: {PeriodList: {PeriodType: [{PeriodId: '1'}, {PeriodId: '2'}]}}}, function() { - var sentInputContent = client.lastRequest.substring(client.lastRequest.indexOf('') + ''.length, client.lastRequest.indexOf('')); - assert.equal(sentInputContent, '12'); - done(); - }); - }); + soap.createClient( + __dirname + '/wsdl/list_parameter.wsdl', + { disableCache: true, namespaceArrayElements: true }, + function (err, client) { + assert.ok(client); + assert.ok(client.wsdl.options.namespaceArrayElements === true); + var pathToArrayContainer = + 'TimesheetV201511Mobile.TimesheetV201511MobileSoap.AddTimesheet.input.input.PeriodList'; + var arrayParameter = _.get(client.describe(), pathToArrayContainer)['PeriodType[]']; + assert.ok(arrayParameter); + client.AddTimesheet( + { input: { PeriodList: { PeriodType: [{ PeriodId: '1' }, { PeriodId: '2' }] } } }, + function () { + var sentInputContent = client.lastRequest.substring( + client.lastRequest.indexOf('') + ''.length, + client.lastRequest.indexOf('') + ); + assert.equal( + sentInputContent, + '12' + ); + done(); + } + ); + } + ); }); it('shall generate correct payload for recursively-defined types', function (done) { @@ -1257,114 +1682,129 @@ var fs = require('fs'), } assert.ok(client); - client.AddAttribute({ - "Requests":{ - "AddAttributeRequest":[ - { - "RequestIdx":1, - "Identifier":{ - "SystemNamespace":"bugrepro", - "ResellerId":1, - "CustomerNum":"860692", - "AccountUid":"80a6e559-4d65-11e7-bd5b-0050569a12d7" + client.AddAttribute( + { + Requests: { + AddAttributeRequest: [ + { + RequestIdx: 1, + Identifier: { + SystemNamespace: 'bugrepro', + ResellerId: 1, + CustomerNum: '860692', + AccountUid: '80a6e559-4d65-11e7-bd5b-0050569a12d7', + }, + Attr: { + AttributeId: 716, + IsTemplateAttribute: 0, + ReadOnly: 0, + CanBeModified: 1, + Name: 'domain', + AccountElements: { + AccountElement: [ + { + ElementId: 1693, + Name: 'domain', + Value: 'foo', + ReadOnly: 0, + CanBeModified: 1, + }, + ], + }, + }, + RequestedBy: 'blah', + RequestedByLogin: 'system', }, - "Attr":{ - "AttributeId":716, - "IsTemplateAttribute":0, - "ReadOnly":0, - "CanBeModified":1, - "Name":"domain", - "AccountElements":{ - "AccountElement":[ - { - "ElementId":1693, - "Name":"domain", - "Value":"foo", - "ReadOnly":0, - "CanBeModified":1 - } - ] - } - }, - "RequestedBy":"blah", - "RequestedByLogin":"system" - } - ] + ], + }, + }, + function () { + var sentInputContent = client.lastRequest.substring( + client.lastRequest.indexOf('') + ''.length, + client.lastRequest.indexOf('') + ); + assert.equal( + sentInputContent, + '1bugrepro186069280a6e559-4d65-11e7-bd5b-0050569a12d7716001domain1693domainfoo01blahsystem' + ); + done(); } - }, function () { - var sentInputContent = client.lastRequest.substring(client.lastRequest.indexOf('') + ''.length, client.lastRequest.indexOf('')); - assert.equal( - sentInputContent, - '1bugrepro186069280a6e559-4d65-11e7-bd5b-0050569a12d7716001domain1693domainfoo01blahsystem'); - done(); - }); + ); }); }); it('should resolve cross schema references', function () { - return soap.createClientAsync(__dirname + '/wsdl/cross_schema.wsdl') + return soap + .createClientAsync(__dirname + '/wsdl/cross_schema.wsdl') .then(function (client) { return assert.deepStrictEqual(client.describe().Service.Service.Operation.output, { OperationReturn: { result: 'xs:string', targetNSAlias: 'ns1', - targetNamespace: 'http://response.ws2.example.it' - } + targetNamespace: 'http://response.ws2.example.it', + }, }); }); }); }); - describe('Client created with createClientAsync', function () { it('should error on invalid host', function (done) { - soap.createClientAsync('http://localhost:1', meta.options) - .then(function (client) {}) - .catch(function (err) { - assert.ok(err); - done(); - }); + soap + .createClientAsync('http://localhost:1', meta.options) + .then(function (client) {}) + .catch(function (err) { + assert.ok(err); + done(); + }); }); it('should add and clear soap headers', function (done) { - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options).then(function (client) { - assert.ok(client); - assert.ok(!client.getSoapHeaders()); + soap + .createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) + .then(function (client) { + assert.ok(client); + assert.ok(!client.getSoapHeaders()); - var i1 = client.addSoapHeader('about-to-change-1'); - var i2 = client.addSoapHeader('about-to-change-2'); + var i1 = client.addSoapHeader('about-to-change-1'); + var i2 = client.addSoapHeader('about-to-change-2'); - assert.ok(i1 === 0); - assert.ok(i2 === 1); - assert.ok(client.getSoapHeaders().length === 2); + assert.ok(i1 === 0); + assert.ok(i2 === 1); + assert.ok(client.getSoapHeaders().length === 2); - client.changeSoapHeader(0, 'header1'); - client.changeSoapHeader(1, 'header2'); - assert.ok(client.getSoapHeaders()[0] === 'header1'); - assert.ok(client.getSoapHeaders()[1] === 'header2'); + client.changeSoapHeader(0, 'header1'); + client.changeSoapHeader(1, 'header2'); + assert.ok(client.getSoapHeaders()[0] === 'header1'); + assert.ok(client.getSoapHeaders()[1] === 'header2'); - client.clearSoapHeaders(); - assert.ok(!client.getSoapHeaders()); - done(); - }); + client.clearSoapHeaders(); + assert.ok(!client.getSoapHeaders()); + done(); + }); }); it('should issue async promise for cached wsdl', function (done) { var called = false; - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options).then(function (client) { - assert.ok(client); - called = true; - done(); - }); + soap + .createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) + .then(function (client) { + assert.ok(client); + called = true; + done(); + }); assert(!called); }); it('should allow customization of httpClient', function (done) { var myHttpClient = { - request: function () { } + request: function () {}, }; - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', - _.assign({ httpClient: myHttpClient }, meta.options)) + soap + .createClientAsync( + __dirname + '/wsdl/default_namespace.wsdl', + _.assign({ httpClient: myHttpClient }, meta.options) + ) .then(function (client) { assert.ok(client); assert.equal(client.httpClient, myHttpClient); @@ -1373,10 +1813,12 @@ var fs = require('fs'), }); it('should allow customization of request for http client', function (done) { - var myRequest = function () { - }; - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', - _.assign({ request: myRequest }, meta.options)) + var myRequest = function () {}; + soap + .createClientAsync( + __dirname + '/wsdl/default_namespace.wsdl', + _.assign({ request: myRequest }, meta.options) + ) .then(function (client) { assert.ok(client); assert.equal(client.httpClient._request, myRequest); @@ -1385,22 +1827,28 @@ var fs = require('fs'), }); it('should set binding style to "document" by default if not explicitly set in WSDL, per SOAP spec', function (done) { - soap.createClientAsync(__dirname + '/wsdl/binding_document.wsdl', meta.options) - .then(function (client) { - assert.ok(client); - assert.ok(client.wsdl.definitions.bindings.mySoapBinding.style === 'document'); - done(); - }); + soap + .createClientAsync(__dirname + '/wsdl/binding_document.wsdl', meta.options) + .then(function (client) { + assert.ok(client); + assert.ok(client.wsdl.definitions.bindings.mySoapBinding.style === 'document'); + done(); + }); }); it('should allow passing in XML strings', function (done) { - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', _.assign({envelopeKey: 'soapenv'}, meta.options)) + soap + .createClientAsync( + __dirname + '/wsdl/default_namespace.wsdl', + _.assign({ envelopeKey: 'soapenv' }, meta.options) + ) .then(function (client) { assert.ok(client); - var xmlStr = '\n\t\n\t\t404 - Not Found\n\t\n\t\n\t\t

404 - Not Found

\n\t\t\n\t\n'; - return client.MyOperationAsync({_xml: xmlStr}); + var xmlStr = + '\n\t\n\t\t404 - Not Found\n\t\n\t\n\t\t

404 - Not Found

\n\t\t\n\t\n'; + return client.MyOperationAsync({ _xml: xmlStr }); }) - .spread(function (result, raw, soapHeader) {}) + .then(function ([result, raw, soapHeader]) {}) .catch(function (err) { done(); }); @@ -1408,162 +1856,203 @@ var fs = require('fs'), it('should allow customization of envelope', function (done) { var client; - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', _.assign({ envelopeKey: 'soapenv' }, meta.options)) - .then(function (createdClient) { - assert.ok(createdClient); - client = createdClient; - return client.MyOperationAsync({}); - }) - .then(function (response) {}) - .catch(function (err) { - assert.notEqual(client.lastRequest.indexOf('xmlns:soapenv='), -1); - done(); - }); + soap + .createClientAsync( + __dirname + '/wsdl/default_namespace.wsdl', + _.assign({ envelopeKey: 'soapenv' }, meta.options) + ) + .then(function (createdClient) { + assert.ok(createdClient); + client = createdClient; + return client.MyOperationAsync({}); + }) + .then(function (response) {}) + .catch(function (err) { + assert.notEqual(client.lastRequest.indexOf('xmlns:soapenv='), -1); + done(); + }); }); it('should add soap headers', function (done) { - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) - .then(function (client) { - assert.ok(client); - assert.ok(!client.getSoapHeaders()); - var soapheader = { - 'esnext': false, - 'moz': true, - 'boss': true, - 'node': true, - 'validthis': true, - 'globals': { - 'EventEmitter': true, - 'Promise': true - } - }; + soap + .createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) + .then(function (client) { + assert.ok(client); + assert.ok(!client.getSoapHeaders()); + var soapheader = { + esnext: false, + moz: true, + boss: true, + node: true, + validthis: true, + globals: { + EventEmitter: true, + Promise: true, + }, + }; - client.addSoapHeader(soapheader); + client.addSoapHeader(soapheader); - assert.ok(client.getSoapHeaders()[0] === 'falsetruetruetruetruetruetrue'); - done(); - }); + assert.ok( + client.getSoapHeaders()[0] === + 'falsetruetruetruetruetruetrue' + ); + done(); + }); }); it('should allow disabling the wsdl cache', function (done) { var spy = sinon.spy(wsdl, 'open_wsdl'); var options = _.assign({ disableCache: true }, meta.options); - soap.createClientAsync(__dirname + '/wsdl/binding_document.wsdl', options) - .then(function (client) { - assert.ok(client); - return soap.createClientAsync(__dirname + '/wsdl/binding_document.wsdl', options); - }) - .then(function (client) { - assert.ok(client); - assert.ok(spy.calledTwice); - wsdl.open_wsdl.restore(); - done(); - }); + soap + .createClientAsync(__dirname + '/wsdl/binding_document.wsdl', options) + .then(function (client) { + assert.ok(client); + return soap.createClientAsync(__dirname + '/wsdl/binding_document.wsdl', options); + }) + .then(function (client) { + assert.ok(client); + assert.ok(spy.calledTwice); + wsdl.open_wsdl.restore(); + done(); + }); }); it('should add http headers', function (done) { - soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) - .then(function (client) { - assert.ok(client); - assert.ok(!client.getHttpHeaders()); + soap + .createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) + .then(function (client) { + assert.ok(client); + assert.ok(!client.getHttpHeaders()); - client.addHttpHeader('foo', 'bar'); + client.addHttpHeader('foo', 'bar'); - assert.ok(client.getHttpHeaders()); - assert.equal(client.getHttpHeaders().foo, 'bar'); + assert.ok(client.getHttpHeaders()); + assert.equal(client.getHttpHeaders().foo, 'bar'); - client.clearHttpHeaders(); - assert.equal(client.getHttpHeaders(), null); - done(); - }); + client.clearHttpHeaders(); + assert.equal(client.getHttpHeaders(), null); + done(); + }); }); - }); - describe('Client created with option normalizeNames', function(){ - + describe('Client created with option normalizeNames', function () { it('should create node-style method with normalized name (a valid Javascript identifier)', function (done) { - soap.createClient(__dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', _.assign({ normalizeNames: true }, meta.options), function (err, client) { - assert.ok(client); - assert.ifError(err); - client.prefixed_MyOperation({},function(err, result){ - // only need to check that a valid request is generated, response isn't needed - assert.ok(client.lastRequest); - done(); - }); - }); + soap.createClient( + __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', + _.assign({ normalizeNames: true }, meta.options), + function (err, client) { + assert.ok(client); + assert.ifError(err); + client.prefixed_MyOperation({}, function (err, result) { + // only need to check that a valid request is generated, response isn't needed + assert.ok(client.lastRequest); + done(); + }); + } + ); }); it('should create node-style method with non-normalized name on Client.service.port.method style invocation', function (done) { - soap.createClient(__dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - /*jshint -W069 */ - assert.throws(function(){client.MyService.MyServicePort['prefixed_MyOperation']({});},TypeError); - /*jshint +W069 */ - client.MyService.MyServicePort['prefixed-MyOperation']({},function(err, result){ - // only need to check that a valid request is generated, response isn't needed - assert.ok(client.lastRequest); - done(); - }); - }); - }); - - it('should create promise-style method with normalized name (a valid Javascript identifier)', function (done) { - soap.createClient(__dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', _.assign({ normalizeNames: true }, meta.options), function (err, client) { - assert.ok(client); - assert.ifError(err); - client.prefixed_MyOperationAsync({}) - .then(function(result){}) - .catch(function(err){ + soap.createClient( + __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); + /*jshint -W069 */ + assert.throws(function () { + client.MyService.MyServicePort['prefixed_MyOperation']({}); + }, TypeError); + /*jshint +W069 */ + client.MyService.MyServicePort['prefixed-MyOperation']({}, function (err, result) { // only need to check that a valid request is generated, response isn't needed assert.ok(client.lastRequest); done(); }); - }); + } + ); + }); + + it('should create promise-style method with normalized name (a valid Javascript identifier)', function (done) { + soap.createClient( + __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', + _.assign({ normalizeNames: true }, meta.options), + function (err, client) { + assert.ok(client); + assert.ifError(err); + client + .prefixed_MyOperationAsync({}) + .then(function (result) {}) + .catch(function (err) { + // only need to check that a valid request is generated, response isn't needed + assert.ok(client.lastRequest); + done(); + }); + } + ); }); it('should not create methods with invalid Javascript identifier', function (done) { - soap.createClient(__dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', _.assign({ normalizeNames: true }, meta.options), function (err, client) { - assert.ok(client); - assert.ifError(err); - assert.throws(function() {client['prefixed-MyOperationAsync']({});}, TypeError); - assert.throws(function() {client['prefixed-MyOperation']({});}, TypeError); - done(); - }); + soap.createClient( + __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', + _.assign({ normalizeNames: true }, meta.options), + function (err, client) { + assert.ok(client); + assert.ifError(err); + assert.throws(function () { + client['prefixed-MyOperationAsync']({}); + }, TypeError); + assert.throws(function () { + client['prefixed-MyOperation']({}); + }, TypeError); + done(); + } + ); }); it('should create node-style method with invalid Javascript identifier if option normalizeNames is not used', function (done) { - soap.createClient(__dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - client['prefixed-MyOperation']({}, function(err, result){ - // only need to check that a valid request is generated, response isn't needed - assert.ok(client.lastRequest); - done(); - }); - }); + soap.createClient( + __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); + client['prefixed-MyOperation']({}, function (err, result) { + // only need to check that a valid request is generated, response isn't needed + assert.ok(client.lastRequest); + done(); + }); + } + ); }); it('does not create a promise-style method with invalid Javascript identifier if option normalizeNames is not used', function (done) { - soap.createClient(__dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', meta.options, function (err, client) { - assert.ok(client); - assert.ifError(err); - assert.throws(function() {client['prefixed-MyOperationAsync']({});}, TypeError); - done(); - }); + soap.createClient( + __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl', + meta.options, + function (err, client) { + assert.ok(client); + assert.ifError(err); + assert.throws(function () { + client['prefixed-MyOperationAsync']({}); + }, TypeError); + done(); + } + ); }); }); }); }); -it('shall generate correct header for custom defined header arguments', function(done) { +it('shall generate correct header for custom defined header arguments', function (done) { soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl').then(function (client) { - client.addSoapHeader('test-header-namespace') + client.addSoapHeader('test-header-namespace'); client.wsdl.xmlnsInHeader = 'xmlns="https://example.com/v1"'; var expectedDefinedHeader = ''; - client.MyOperation(function(err, result, rawResponse, soapHeader, rawRequest) { + client.MyOperation(function (err, result, rawResponse, soapHeader, rawRequest) { var definedSoapHeader = client.lastRequest.match(/)/)[0]; assert.ok(definedSoapHeader === expectedDefinedHeader); done(); diff --git a/test/express-server-test.js b/test/express-server-test.js index 879489c89..e4c45b9a0 100644 --- a/test/express-server-test.js +++ b/test/express-server-test.js @@ -3,21 +3,23 @@ var request = require('request'); var assert = require('assert'); var express = require('express'); -var bodyParser = require('body-parser'); var soap = require('../'); var expressServer; var server; var port; var url; -var wsdl = 'WSDL File for HelloService'; -var requestXML = '' + +var wsdl = + 'WSDL File for HelloService'; +var requestXML = + '' + '' + '' + 'tarun' + '' + '' + ''; -var responseXML = '' + +var responseXML = + '' + '' + '' + '' + @@ -27,18 +29,17 @@ var responseXML = '' + ''; describe('Express server without middleware', function () { - before(function (done) { var service = { Hello_Service: { Hello_Port: { sayHello: function (args) { return { - greeting: args.firstName + greeting: args.firstName, }; - } - } - } + }, + }, + }, }; expressServer = express(); @@ -57,81 +58,98 @@ describe('Express server without middleware', function () { }); it('should handle body without middleware', function (done) { - request({ - url: url + '/SayHello', - method: 'POST', - headers: { - SOAPAction: "sayHello", - "Content-Type": 'text/xml; charset="utf-8"' + request( + { + url: url + '/SayHello', + method: 'POST', + headers: { + SOAPAction: 'sayHello', + 'Content-Type': 'text/xml; charset="utf-8"', + }, + body: requestXML, }, - body: requestXML - }, function (err, response, body) { - if (err) { - throw err; + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, responseXML); + done(); } - assert.equal(body, responseXML); - done(); - }); + ); }); it('should serve wsdl', function (done) { - request({ - url: url + '/SayHello?wsdl', - method: 'GET', - headers: { - "Content-Type": 'text/xml; charset="utf-8"' - } - }, function (err, response, body) { - if (err) { - throw err; + request( + { + url: url + '/SayHello?wsdl', + method: 'GET', + headers: { + 'Content-Type': 'text/xml; charset="utf-8"', + }, + }, + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, wsdl); + done(); } - assert.equal(body, wsdl); - done(); - }); + ); }); it('should handle other routes as usual', function (done) { - expressServer.route('/test/r1').get(function (req, res, next) { - //make sure next() works as well - return next(); - }, function (req, res) { - return res.status(200).send('test passed'); - }); + expressServer.route('/test/r1').get( + function (req, res, next) { + //make sure next() works as well + return next(); + }, + function (req, res) { + return res.status(200).send('test passed'); + } + ); - request({ - url: url + '/test/r1', - method: 'GET' - }, function (err, response, body) { - if (err) { - throw err; + request( + { + url: url + '/test/r1', + method: 'GET', + }, + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, 'test passed'); + done(); } - assert.equal(body, 'test passed'); - done(); - }); + ); }); - }); describe('Express server with middleware', function () { - before(function (done) { - var wsdl = 'WSDL File for HelloService'; + var wsdl = + 'WSDL File for HelloService'; var service = { Hello_Service: { Hello_Port: { sayHello: function (args) { return { - greeting: args.firstName + greeting: args.firstName, }; - } - } - } + }, + }, + }, }; expressServer = express(); - expressServer.use(bodyParser.raw({ type: function () { return true; }, limit: '5mb' })); + expressServer.use( + express.raw({ + type: function () { + return true; + }, + limit: '5mb', + }) + ); server = expressServer.listen(51515, function () { - var soapServer = soap.listen(expressServer, '/SayHello', service, wsdl); url = 'http://' + server.address().address + ':' + server.address().port; @@ -148,46 +166,46 @@ describe('Express server with middleware', function () { }); it('should allow parsing body via express middleware', function (done) { - request({ - url: url + '/SayHello', - method: 'POST', - headers: { - SOAPAction: "sayHello", - "Content-Type": 'text/xml; charset="utf-8"' + request( + { + url: url + '/SayHello', + method: 'POST', + headers: { + SOAPAction: 'sayHello', + 'Content-Type': 'text/xml; charset="utf-8"', + }, + body: requestXML, }, - body: requestXML - }, function (err, response, body) { - if (err) { - throw err; + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, responseXML); + done(); } - assert.equal(body, responseXML); - done(); - }); + ); }); - }); - -describe('Express server with bodyParser.json middleware', function () { - +describe('Express server with express.json middleware', function () { before(function (done) { - var wsdl = 'WSDL File for HelloService'; + var wsdl = + 'WSDL File for HelloService'; var service = { Hello_Service: { Hello_Port: { sayHello: function (args) { return { - greeting: args.firstName + greeting: args.firstName, }; - } - } - } + }, + }, + }, }; expressServer = express(); - expressServer.use(bodyParser.json()); + expressServer.use(express.json()); server = expressServer.listen(51515, function () { - var soapServer = soap.listen(expressServer, '/SayHello', service, wsdl); url = 'http://' + server.address().address + ':' + server.address().port; @@ -203,21 +221,24 @@ describe('Express server with bodyParser.json middleware', function () { server.close(); }); - it('should not parse body on bodyParser.json middleware', function (done) { - request({ - url: url + '/SayHello', - method: 'POST', - headers: { - SOAPAction: "sayHello", - "Content-Type": 'text/xml; charset="utf-8"' + it('should not parse body on express.json middleware', function (done) { + request( + { + url: url + '/SayHello', + method: 'POST', + headers: { + SOAPAction: 'sayHello', + 'Content-Type': 'text/xml; charset="utf-8"', + }, + body: requestXML, }, - body: requestXML - }, function (err, response, body) { - if (err) { - throw err; + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, responseXML); + done(); } - assert.equal(body, responseXML); - done(); - }); + ); }); }); diff --git a/test/post-data-concat-test.js b/test/post-data-concat-test.js index c6d325bfa..3310e3329 100644 --- a/test/post-data-concat-test.js +++ b/test/post-data-concat-test.js @@ -5,55 +5,56 @@ var soap = require('..'); var assert = require('assert'); var http = require('http'); - describe('post data concat test', function () { - var server = http.createServer(function (req, res) { }); - - before(function () { - server.listen(51515); - }); - - after(function () { - server.close(); - }); - - it('should consider the situation about multi-byte character between two tcp packets', function (done) { - var check = function (a, b) { - if (a && b) { - assert(a === b); - done(); - } - }; - - var wsdl = 'test/wsdl/default_namespace.wsdl'; - var xml = fs.readFileSync(wsdl, 'utf8'); - var service = { - MyService: { - MyServicePort: { - MyOperation: function (arg) { - check(arg, postdata); - return "0"; - } - } - } - }; - - soap.listen(server, '/wsdl', service, xml); - - var postdata = ""; - for (var i = 0; i < 20000; i++) { - postdata += "测试"; - } - - soap.createClient(wsdl, { - endpoint: 'http://localhost:51515/wsdl' - }, function (error, client) { - assert(!error); - client.MyOperation(postdata, function (error, response) { - assert(!error); - }); + var server = http.createServer(function (req, res) {}); + + before(function () { + server.listen(51515); + }); + + after(function () { + server.close(); + }); + + it('should consider the situation about multi-byte character between two tcp packets', function (done) { + var check = function (a, b) { + if (a && b) { + assert(a === b); + done(); + } + }; + + var wsdl = 'test/wsdl/default_namespace.wsdl'; + var xml = fs.readFileSync(wsdl, 'utf8'); + var service = { + MyService: { + MyServicePort: { + MyOperation: function (arg) { + check(arg, postdata); + return '0'; + }, + }, + }, + }; + + soap.listen(server, '/wsdl', service, xml); + + var postdata = ''; + for (var i = 0; i < 20000; i++) { + postdata += '测试'; + } + + soap.createClient( + wsdl, + { + endpoint: 'http://localhost:51515/wsdl', + }, + function (error, client) { + assert(!error); + client.MyOperation(postdata, function (error, response) { + assert(!error); }); - - }); + } + ); + }); }); - diff --git a/test/request-no-envelope-body-test.js b/test/request-no-envelope-body-test.js index b0c3d72c4..b682104e0 100644 --- a/test/request-no-envelope-body-test.js +++ b/test/request-no-envelope-body-test.js @@ -7,55 +7,63 @@ var soap = require('../'); var server; var port; -describe('No envelope and body elements', function() { - var wsdl = 'WSDL File for HelloService'; - before(function(done){ - server = http.createServer(function(req, res) { - res.statusCode = 404; - res.end(); - }).listen(51515, function() { - var soapServer = soap.listen(server, '/SayHello', { - Hello_Service: { - Hello_Port: { - sayHello: function(args){ - return { - greeting: args.firstName - }; - } - } - } - }, wsdl); - done(); - }); +describe('No envelope and body elements', function () { + var wsdl = + 'WSDL File for HelloService'; + before(function (done) { + server = http + .createServer(function (req, res) { + res.statusCode = 404; + res.end(); + }) + .listen(51515, function () { + var soapServer = soap.listen( + server, + '/SayHello', + { + Hello_Service: { + Hello_Port: { + sayHello: function (args) { + return { + greeting: args.firstName, + }; + }, + }, + }, + }, + wsdl + ); + done(); + }); }); - after(function(){ + after(function () { server.close(); }); - it('should throw an error when Body and Envelope are missing', - function(done){ - var requestXML = 'tarun'; - var url = 'http://' + server.address().address + ':' + server.address().port; + it('should throw an error when Body and Envelope are missing', function (done) { + var requestXML = + 'tarun'; + var url = 'http://' + server.address().address + ':' + server.address().port; - if (server.address().address === '0.0.0.0' || server.address().address === '::') { - url = - 'http://127.0.0.1:' + server.address().port; - } + if (server.address().address === '0.0.0.0' || server.address().address === '::') { + url = 'http://127.0.0.1:' + server.address().port; + } - request({ + request( + { url: url + '/SayHello', method: 'POST', - headers: {SOAPAction: "sayHello", - "Content-Type": 'text/xml; charset="utf-8"'}, - body: requestXML - }, function(err, response, body){ - if(err){ + headers: { SOAPAction: 'sayHello', 'Content-Type': 'text/xml; charset="utf-8"' }, + body: requestXML, + }, + function (err, response, body) { + if (err) { throw err; } assert.equal(body.indexOf('Failed to parse the SOAP Message body') !== -1, true); done(); - }); - }); - + } + ); + }); }); diff --git a/test/request-response-samples-test.js b/test/request-response-samples-test.js index d24e290ad..f94eb2f54 100644 --- a/test/request-response-samples-test.js +++ b/test/request-response-samples-test.js @@ -1,8 +1,8 @@ 'use strict'; var assert = require('assert'); -var fs = require('fs'); -var glob = require('glob'); +var fs = require('fs'); +var glob = require('glob'); var http = require('http'); var path = require('path'); var timekeeper = require('timekeeper'); @@ -12,32 +12,36 @@ var soap = require('../'); var WSSecurity = require('../lib/security').WSSecurity; var server; var port; -var tests = glob.sync('./request-response-samples/*', {cwd:__dirname}) - .map(function(node){return path.resolve(__dirname, node);}) - .filter(function(node){return fs.statSync(node).isDirectory();}); +var tests = glob + .sync('./request-response-samples/*', { cwd: __dirname }) + .map(function (node) { + return path.resolve(__dirname, node); + }) + .filter(function (node) { + return fs.statSync(node).isDirectory(); + }); var suite = {}; -function normalizeWhiteSpace(raw) -{ - var normalized = raw.replace(/\r\n|\r|\n/g, ''); // strip line endings +function normalizeWhiteSpace(raw) { + var normalized = raw.replace(/\r\n|\r|\n/g, ''); // strip line endings normalized = normalized.replace(/\s\s+/g, ' '); // convert whitespace to spaces - normalized = normalized.replace(/> <'); // get rid of spaces between elements + normalized = normalized.replace(/> <'); // get rid of spaces between elements return normalized; } var requestContext = { //set these two within each test - expectedRequest:null, - responseToSend:null, - doneHandler:null, - requestHandler:function(req, res){ + expectedRequest: null, + responseToSend: null, + doneHandler: null, + requestHandler: function (req, res) { var chunks = []; - req.on('data', function(chunk){ + req.on('data', function (chunk) { // ignore eol on sample files. chunks.push(chunk.toString().replace(/\r?\n$/m, '')); }); - req.on('end', function(){ - if(!requestContext.expectedRequest)return res.end(requestContext.responseToSend); + req.on('end', function () { + if (!requestContext.expectedRequest) return res.end(requestContext.responseToSend); var actualRequest = normalizeWhiteSpace(chunks.join('')); var expectedRequest = normalizeWhiteSpace(requestContext.expectedRequest); @@ -45,10 +49,14 @@ var requestContext = { if (actualRequest !== expectedRequest) { var diff = jsdiff.diffChars(actualRequest, expectedRequest); var comparison = ''; - diff.forEach(function(part) { + diff.forEach(function (part) { var color = 'grey'; - if (part.added) { color = 'green'; } - if (part.removed) { color = 'red'; } + if (part.added) { + color = 'green'; + } + if (part.removed) { + color = 'red'; + } comparison += part.value[color]; }); console.log(comparison); @@ -56,16 +64,16 @@ var requestContext = { assert.equal(actualRequest, expectedRequest); - if(!requestContext.responseToSend)return requestContext.doneHandler(); + if (!requestContext.responseToSend) return requestContext.doneHandler(); res.end(requestContext.responseToSend); requestContext.expectedRequest = null; requestContext.responseToSend = null; }); - } + }, }; -tests.forEach(function(test){ +tests.forEach(function (test) { var nameParts = path.basename(test).split('__'); var name = nameParts[1].replace(/_/g, ' '); var methodName = nameParts[0]; @@ -84,47 +92,90 @@ tests.forEach(function(test){ var wsdlOptions = {}; //headerJSON is optional - if(fs.existsSync(headerJSON))headerJSON = require(headerJSON); + if (fs.existsSync(headerJSON)) headerJSON = require(headerJSON); else headerJSON = {}; //securityJSON is optional - if(fs.existsSync(securityJSON))securityJSON = require(securityJSON); + if (fs.existsSync(securityJSON)) securityJSON = require(securityJSON); else securityJSON = {}; //responseJSON is optional - if (fs.existsSync(responseJSON))responseJSON = require(responseJSON); - else if(fs.existsSync(responseJSONError))responseJSON = require(responseJSONError); + if (fs.existsSync(responseJSON)) responseJSON = require(responseJSON); + else if (fs.existsSync(responseJSONError)) responseJSON = require(responseJSONError); else responseJSON = null; //responseSoapHeaderJSON is optional - if (fs.existsSync(responseSoapHeaderJSON))responseSoapHeaderJSON = require(responseSoapHeaderJSON); + if (fs.existsSync(responseSoapHeaderJSON)) + responseSoapHeaderJSON = require(responseSoapHeaderJSON); else responseSoapHeaderJSON = null; //requestXML is optional - if(fs.existsSync(requestXML))requestXML = ''+fs.readFileSync(requestXML); + if (fs.existsSync(requestXML)) requestXML = '' + fs.readFileSync(requestXML); else requestXML = null; //responseXML is optional - if(fs.existsSync(responseXML))responseXML = ''+fs.readFileSync(responseXML); + if (fs.existsSync(responseXML)) responseXML = '' + fs.readFileSync(responseXML); else responseXML = null; //requestJSON is required as node-soap will expect a request object anyway requestJSON = require(requestJSON); //options is optional - if (fs.existsSync(options))options = require(options); + if (fs.existsSync(options)) options = require(options); else options = {}; //wsdlOptions is optional - if(fs.existsSync(wsdlOptionsFile)) wsdlOptions = require(wsdlOptionsFile); - else if(fs.existsSync(wsdlJSOptionsFile)) wsdlOptions = require(wsdlJSOptionsFile); + if (fs.existsSync(wsdlOptionsFile)) wsdlOptions = require(wsdlOptionsFile); + else if (fs.existsSync(wsdlJSOptionsFile)) wsdlOptions = require(wsdlJSOptionsFile); else wsdlOptions = {}; - generateTest(name, methodName, wsdl, headerJSON, securityJSON, requestXML, requestJSON, responseXML, responseJSON, responseSoapHeaderJSON, wsdlOptions, options, false); - generateTest(name, methodName, wsdl, headerJSON, securityJSON, requestXML, requestJSON, responseXML, responseJSON, responseSoapHeaderJSON, wsdlOptions, options, true); + generateTest( + name, + methodName, + wsdl, + headerJSON, + securityJSON, + requestXML, + requestJSON, + responseXML, + responseJSON, + responseSoapHeaderJSON, + wsdlOptions, + options, + false + ); + generateTest( + name, + methodName, + wsdl, + headerJSON, + securityJSON, + requestXML, + requestJSON, + responseXML, + responseJSON, + responseSoapHeaderJSON, + wsdlOptions, + options, + true + ); }); -function generateTest(name, methodName, wsdlPath, headerJSON, securityJSON, requestXML, requestJSON, responseXML, responseJSON, responseSoapHeaderJSON, wsdlOptions, options, usePromises){ +function generateTest( + name, + methodName, + wsdlPath, + headerJSON, + securityJSON, + requestXML, + requestJSON, + responseXML, + responseJSON, + responseSoapHeaderJSON, + wsdlOptions, + options, + usePromises +) { var methodCaller = cbCaller; if (usePromises) { @@ -133,98 +184,146 @@ function generateTest(name, methodName, wsdlPath, headerJSON, securityJSON, requ methodCaller = promiseCaller; } - suite[name] = function(done){ - if(requestXML) requestContext.expectedRequest = requestXML; - if(responseXML) requestContext.responseToSend = responseXML; + suite[name] = function (done) { + if (requestXML) requestContext.expectedRequest = requestXML; + if (responseXML) requestContext.responseToSend = responseXML; requestContext.doneHandler = done; - soap.createClient(wsdlPath, wsdlOptions, function(err, client){ - if (headerJSON) { - for (var headerKey in headerJSON) { - client.addSoapHeader(headerJSON[headerKey], headerKey); + soap.createClient( + wsdlPath, + wsdlOptions, + function (err, client) { + if (headerJSON) { + for (var headerKey in headerJSON) { + client.addSoapHeader(headerJSON[headerKey], headerKey); + } + } + if (securityJSON && securityJSON.type === 'ws') { + client.setSecurity( + new WSSecurity(securityJSON.username, securityJSON.password, securityJSON.options) + ); } - } - if (securityJSON && securityJSON.type === 'ws') { - client.setSecurity(new WSSecurity(securityJSON.username, securityJSON.password, securityJSON.options)); - } - //throw more meaningful error - if(typeof client[methodName] !== 'function'){ - throw new Error('method ' + methodName + ' does not exists in wsdl specified in test wsdl: ' + wsdlPath); - } + //throw more meaningful error + if (typeof client[methodName] !== 'function') { + throw new Error( + 'method ' + methodName + ' does not exists in wsdl specified in test wsdl: ' + wsdlPath + ); + } - methodCaller(client, methodName, requestJSON, responseJSON, responseSoapHeaderJSON, options, done); - }, 'http://localhost:'+port+'/Message/Message.dll?Handler=Default'); + methodCaller( + client, + methodName, + requestJSON, + responseJSON, + responseSoapHeaderJSON, + options, + done + ); + }, + 'http://localhost:' + port + '/Message/Message.dll?Handler=Default' + ); }; } -function cbCaller(client, methodName, requestJSON, responseJSON, responseSoapHeaderJSON, options, done){ - client[methodName](requestJSON, function(err, json, body, soapHeader){ - if(requestJSON){ - if (err) { - assert.notEqual('undefined: undefined', err.message); - assert.deepEqual(err.root, responseJSON); - } else { - // assert.deepEqual(json, responseJSON); - assert.equal(JSON.stringify(typeof json === 'undefined' ? null : json), JSON.stringify(responseJSON)); - if(responseSoapHeaderJSON){ - assert.equal(JSON.stringify(soapHeader), JSON.stringify(responseSoapHeaderJSON)); +function cbCaller( + client, + methodName, + requestJSON, + responseJSON, + responseSoapHeaderJSON, + options, + done +) { + client[methodName]( + requestJSON, + function (err, json, body, soapHeader) { + if (requestJSON) { + if (err) { + assert.notEqual('undefined: undefined', err.message); + assert.deepEqual(err.root, responseJSON); + } else { + // assert.deepEqual(json, responseJSON); + assert.equal( + JSON.stringify(typeof json === 'undefined' ? null : json), + JSON.stringify(responseJSON) + ); + if (responseSoapHeaderJSON) { + assert.equal(JSON.stringify(soapHeader), JSON.stringify(responseSoapHeaderJSON)); + } } } - } - done(); - }, options); + done(); + }, + options + ); } -function promiseCaller(client, methodName, requestJSON, responseJSON, responseSoapHeaderJSON, options, done){ - client[methodName](requestJSON).then(function(responseArr){ - var json = responseArr[0]; - var body = responseArr[1]; - var soapHeader = responseArr[2]; - - if(requestJSON){ - // assert.deepEqual(json, responseJSON); - assert.equal(JSON.stringify(typeof json === 'undefined' ? null : json), JSON.stringify(responseJSON)); - if(responseSoapHeaderJSON){ - assert.equal(JSON.stringify(soapHeader), JSON.stringify(responseSoapHeaderJSON)); +function promiseCaller( + client, + methodName, + requestJSON, + responseJSON, + responseSoapHeaderJSON, + options, + done +) { + client[methodName](requestJSON) + .then(function (responseArr) { + var json = responseArr[0]; + var body = responseArr[1]; + var soapHeader = responseArr[2]; + + if (requestJSON) { + // assert.deepEqual(json, responseJSON); + assert.equal( + JSON.stringify(typeof json === 'undefined' ? null : json), + JSON.stringify(responseJSON) + ); + if (responseSoapHeaderJSON) { + assert.equal(JSON.stringify(soapHeader), JSON.stringify(responseSoapHeaderJSON)); + } } - } - }).catch(function(err) { - if(requestJSON){ - assert.notEqual('undefined: undefined', err.message); - assert.deepEqual(err.root, responseJSON); - } - }).finally(function() { - done(); - }); + }) + .catch(function (err) { + if (requestJSON) { + assert.notEqual('undefined: undefined', err.message); + assert.deepEqual(err.root, responseJSON); + } + }) + .finally(function () { + done(); + }); } -describe('Request Response Sampling', function() { +describe('Request Response Sampling', function () { var origRandom = Math.random; - before(function(done){ + before(function (done) { timekeeper.freeze(Date.parse('2014-10-12T01:02:03Z')); - Math.random = function() { return 1; }; + Math.random = function () { + return 1; + }; server = http.createServer(requestContext.requestHandler); - server.listen(0, function(e){ - if(e)return done(e); + server.listen(0, function (e) { + if (e) return done(e); port = server.address().port; done(); }); }); - beforeEach(function(){ + beforeEach(function () { requestContext.expectedRequest = null; requestContext.responseToSend = null; requestContext.doneHandler = null; }); - after(function(){ + after(function () { timekeeper.reset(); Math.random = origRandom; server.close(); }); - Object.keys(suite).map(function(key) { + Object.keys(suite).map(function (key) { it(key, suite[key]); }); }); diff --git a/test/request-response-samples/Dummy__should_handle_inline_types/wsdl_options.js b/test/request-response-samples/Dummy__should_handle_inline_types/wsdl_options.js index 74a8dd050..d055cdb20 100644 --- a/test/request-response-samples/Dummy__should_handle_inline_types/wsdl_options.js +++ b/test/request-response-samples/Dummy__should_handle_inline_types/wsdl_options.js @@ -2,12 +2,12 @@ exports.customDeserializer = { DateTime: (text) => new Date(text), TimeHourMinute: (text) => { // Return number of minutes since midnight - const results = text.split(':').map(t => parseInt(t, 10)); + const results = text.split(':').map((t) => parseInt(t, 10)); return results[0] * 60 + results[1]; }, NestedSimpleType: (text) => { // Return number of minutes since midnight - const results = text.split(':').map(t => parseInt(t, 10)); + const results = text.split(':').map((t) => parseInt(t, 10)); return results[0] * 60 + results[1]; - } + }, }; diff --git a/test/request-response-samples/RetrieveCustomerDetails__returning_a_date_should_parse_the_date/wsdl_options.js b/test/request-response-samples/RetrieveCustomerDetails__returning_a_date_should_parse_the_date/wsdl_options.js index 0c01d95d7..8fa538518 100644 --- a/test/request-response-samples/RetrieveCustomerDetails__returning_a_date_should_parse_the_date/wsdl_options.js +++ b/test/request-response-samples/RetrieveCustomerDetails__returning_a_date_should_parse_the_date/wsdl_options.js @@ -1,10 +1,9 @@ -"use strict"; +'use strict'; exports.customDeserializer = { - date: function (text, context) { return text; - } + }, }; exports.ignoreBaseNameSpaces = false; diff --git a/test/security/BasicAuthSecurity.js b/test/security/BasicAuthSecurity.js index 00aecd8bb..d3be77541 100644 --- a/test/security/BasicAuthSecurity.js +++ b/test/security/BasicAuthSecurity.js @@ -1,32 +1,32 @@ 'use strict'; -describe('BasicAuthSecurity', function() { +describe('BasicAuthSecurity', function () { var BasicAuthSecurity = require('../../').BasicAuthSecurity; - var username = "admin"; - var password = "password1234"; + var username = 'admin'; + var password = 'password1234'; - it('is a function', function() { + it('is a function', function () { BasicAuthSecurity.should.be.type('function'); }); - describe('defaultOption param', function() { - it('is accepted as the third param', function() { + describe('defaultOption param', function () { + it('is accepted as the third param', function () { new BasicAuthSecurity(username, password, {}); }); - it('Should have Authorization header when addHeaders is invoked', function() { + it('Should have Authorization header when addHeaders is invoked', function () { var security = new BasicAuthSecurity(username, password, {}); var headers = {}; security.addHeaders(headers); headers.should.have.property('Authorization'); }); - it('is used in addOptions', function() { + it('is used in addOptions', function () { var options = {}; var defaultOptions = { foo: 3 }; var instance = new BasicAuthSecurity(username, password, defaultOptions); instance.addOptions(options); - options.should.have.property("foo", 3); + options.should.have.property('foo', 3); }); }); }); diff --git a/test/security/BearerSecurity.js b/test/security/BearerSecurity.js index edb759b3e..8099346a8 100644 --- a/test/security/BearerSecurity.js +++ b/test/security/BearerSecurity.js @@ -1,31 +1,31 @@ 'use strict'; -describe('BearerSecurity', function() { +describe('BearerSecurity', function () { var BearerSecurity = require('../../').BearerSecurity; - var token = "token"; + var token = 'token'; - it('is a function', function() { + it('is a function', function () { BearerSecurity.should.be.type('function'); }); - describe('defaultOption param', function() { - it('is accepted as the second param', function() { + describe('defaultOption param', function () { + it('is accepted as the second param', function () { new BearerSecurity(token, {}); }); - it('is used in addOptions', function() { + it('is used in addOptions', function () { var options = {}; var defaultOptions = { foo: 2 }; var instance = new BearerSecurity(token, defaultOptions); instance.addOptions(options); - options.should.have.property("foo", 2); + options.should.have.property('foo', 2); }); it('should return the authoriation header on calling addHeader', () => { const security = new BearerSecurity(token, {}); let headers = {}; security.addHeaders(headers); - headers.should.have.property('Authorization', "Bearer token"); + headers.should.have.property('Authorization', 'Bearer token'); }); }); }); diff --git a/test/security/ClientSSLSecurity.js b/test/security/ClientSSLSecurity.js index 78f7f5ae2..bacd12099 100644 --- a/test/security/ClientSSLSecurity.js +++ b/test/security/ClientSSLSecurity.js @@ -1,34 +1,35 @@ 'use strict'; var fs = require('fs'), - join = require('path').join; + join = require('path').join; -describe('ClientSSLSecurity', function() { +describe('ClientSSLSecurity', function () { var ClientSSLSecurity = require('../../').ClientSSLSecurity; var cert = __filename; var key = __filename; - it('is a function', function() { + it('is a function', function () { ClientSSLSecurity.should.be.type('function'); }); - describe('defaultOption param', function() { - it('is accepted as the third param', function() { + describe('defaultOption param', function () { + it('is accepted as the third param', function () { new ClientSSLSecurity(null, null, {}); }); - it('is used in addOptions', function() { + it('is used in addOptions', function () { var options = {}; var defaultOptions = { foo: 5 }; var instance = new ClientSSLSecurity(null, null, defaultOptions); instance.addOptions(options); - options.should.have.property("foo", 5); + options.should.have.property('foo', 5); }); }); - it('should accept extraneous data before cert encapsulation boundaries per rfc 7468', function () { - var certBuffer = fs.readFileSync(join(__dirname, '..', 'certs', 'agent2-cert-with-extra-data.pem')); + var certBuffer = fs.readFileSync( + join(__dirname, '..', 'certs', 'agent2-cert-with-extra-data.pem') + ); var instanceCert = new ClientSSLSecurity(null, certBuffer); }); @@ -39,9 +40,9 @@ describe('ClientSSLSecurity', function() { instance; instance = new ClientSSLSecurity(keyBuffer, certBuffer, certBuffer); - instance.should.have.property("ca", certBuffer); - instance.should.have.property("cert", certBuffer); - instance.should.have.property("key", keyBuffer); + instance.should.have.property('ca', certBuffer); + instance.should.have.property('cert', certBuffer); + instance.should.have.property('key', keyBuffer); }); it('should accept a String as argument for the key or cert', function () { @@ -52,16 +53,16 @@ describe('ClientSSLSecurity', function() { instance; instance = new ClientSSLSecurity(keyString, certString, certString); - instance.should.have.property("ca", certBuffer); - instance.should.have.property("cert", certBuffer); - instance.should.have.property("key", keyBuffer); + instance.should.have.property('ca', certBuffer); + instance.should.have.property('cert', certBuffer); + instance.should.have.property('key', keyBuffer); }); it('should not accept a integer as argument for the key', function () { var instance; try { instance = new ClientSSLSecurity(10); - } catch(error) { + } catch (error) { // do nothing } should(instance).not.be.ok(); @@ -71,7 +72,7 @@ describe('ClientSSLSecurity', function() { var instance; try { instance = new ClientSSLSecurity(null, 10); - } catch(error) { + } catch (error) { // do nothing } should(instance).not.be.ok(); @@ -89,7 +90,7 @@ describe('ClientSSLSecurity', function() { it('should accept a Array as argument for the ca', function () { var caList = []; var instance = new ClientSSLSecurity(null, null, caList); - instance.should.have.property("ca", caList); + instance.should.have.property('ca', caList); }); describe('forever parameter', function () { @@ -106,8 +107,8 @@ describe('ClientSSLSecurity', function() { it('should return the same agent if parameter is present', function () { var instance = new ClientSSLSecurity(); - var firstOptions = {forever: true}; - var secondOptions = {forever: true}; + var firstOptions = { forever: true }; + var secondOptions = { forever: true }; instance.addOptions(firstOptions); instance.addOptions(secondOptions); @@ -116,7 +117,7 @@ describe('ClientSSLSecurity', function() { }); it('should return the same agent if set in defaults', function () { - var instance = new ClientSSLSecurity(null, null, null, {forever: true}); + var instance = new ClientSSLSecurity(null, null, null, { forever: true }); var firstOptions = {}; var secondOptions = {}; diff --git a/test/security/ClientSSLSecurityPFX.js b/test/security/ClientSSLSecurityPFX.js index 1d07609c0..65dec274c 100644 --- a/test/security/ClientSSLSecurityPFX.js +++ b/test/security/ClientSSLSecurityPFX.js @@ -1,27 +1,27 @@ 'use strict'; var fs = require('fs'), - join = require('path').join; + join = require('path').join; -describe('ClientSSLSecurityPFX', function() { +describe('ClientSSLSecurityPFX', function () { var ClientSSLSecurityPFX = require('../../').ClientSSLSecurityPFX; var pfx = __filename; - it('should be function', function() { + it('should be function', function () { ClientSSLSecurityPFX.should.be.type('function'); }); - describe('defaultOption param', function() { - it('should be accepted as the second param', function() { + describe('defaultOption param', function () { + it('should be accepted as the second param', function () { new ClientSSLSecurityPFX(null, {}); }); - it('should be used in addOptions', function() { + it('should be used in addOptions', function () { var options = {}; var defaultOptions = { foo: 5 }; var instance = new ClientSSLSecurityPFX(null, defaultOptions); instance.addOptions(options); - options.should.have.property("foo", 5); + options.should.have.property('foo', 5); }); }); @@ -55,11 +55,11 @@ describe('ClientSSLSecurityPFX', function() { passphrase: 'test2test', }; var options = { - port: 1338 + port: 1338, }; instance.addOptions(options); - var server = https.createServer(soptions, function(req, res) { + var server = https.createServer(soptions, function (req, res) { req.socket.should.have.property('authorized', true); // Doesn't work in older versions of nodejs // req.socket.should.have.property('authorizationError', null); @@ -67,12 +67,14 @@ describe('ClientSSLSecurityPFX', function() { res.end('OK'); }); - server.listen(soptions.port, soptions.host, function() { + server.listen(soptions.port, soptions.host, function () { var data = ''; - https.get(options, function(res) { - res.on('data', function(data_) { data += data_; }); - res.on('end', function() { + https.get(options, function (res) { + res.on('data', function (data_) { + data += data_; + }); + res.on('end', function () { server.close(); data.should.equal('OK'); done(); @@ -86,8 +88,8 @@ describe('ClientSSLSecurityPFX', function() { instance; instance = new ClientSSLSecurityPFX(pfkBuffer, 'test2est'); - instance.should.have.property("pfx", pfkBuffer); - instance.should.have.property("passphrase", 'test2est'); + instance.should.have.property('pfx', pfkBuffer); + instance.should.have.property('passphrase', 'test2est'); }); it('should accept a Buffer as argument for the pfx cert', function () { @@ -95,7 +97,7 @@ describe('ClientSSLSecurityPFX', function() { instance; instance = new ClientSSLSecurityPFX(pfkBuffer); - instance.should.have.property("pfx", pfkBuffer); + instance.should.have.property('pfx', pfkBuffer); }); it('should return a blank when toXML is called', function () { @@ -112,7 +114,7 @@ describe('ClientSSLSecurityPFX', function() { instance; instance = new ClientSSLSecurityPFX(join(__dirname, '..', 'certs', 'pfk-buffer.pfx')); - instance.should.have.property("pfx", pfkBuffer); + instance.should.have.property('pfx', pfkBuffer); }); it('should have an options with addOptions', function () { @@ -122,8 +124,8 @@ describe('ClientSSLSecurityPFX', function() { instance = new ClientSSLSecurityPFX(pfkBuffer, 'test2est'); var options = { foo: 5 }; instance.addOptions(options); - options.should.have.property("pfx", pfkBuffer); - options.should.have.property("passphrase", 'test2est'); - options.should.have.property("foo", 5); + options.should.have.property('pfx', pfkBuffer); + options.should.have.property('passphrase', 'test2est'); + options.should.have.property('foo', 5); }); }); diff --git a/test/security/NTLMSecurity.js b/test/security/NTLMSecurity.js index 482d357a8..a343d2a22 100644 --- a/test/security/NTLMSecurity.js +++ b/test/security/NTLMSecurity.js @@ -1,13 +1,13 @@ 'use strict'; -describe('NTLMSecurity', function() { +describe('NTLMSecurity', function () { var NTLMSecurity = require('../../').NTLMSecurity; - var username = "admin"; - var password = "password1234"; - var domain = "LOCAL"; - var workstation = "MACHINE"; + var username = 'admin'; + var password = 'password1234'; + var domain = 'LOCAL'; + var workstation = 'MACHINE'; - it('is a function', function() { + it('is a function', function () { NTLMSecurity.should.be.type('function'); }); @@ -17,7 +17,7 @@ describe('NTLMSecurity', function() { username: username, password: password, domain: domain, - workstation: workstation + workstation: workstation, }; var instance = new NTLMSecurity(options); instance.defaults.should.have.property('username', options.username); @@ -27,7 +27,7 @@ describe('NTLMSecurity', function() { instance.defaults.should.have.property('ntlm', true); }); - it('should accept valid variables', function() { + it('should accept valid variables', function () { var instance = new NTLMSecurity(username, password, domain, workstation); instance.defaults.should.have.property('username', username); instance.defaults.should.have.property('password', password); @@ -36,9 +36,9 @@ describe('NTLMSecurity', function() { instance.defaults.should.have.property('ntlm', true); }); }); - + describe('addHeaders', function () { - it('should set connection as \'keep-alive\'', function () { + it("should set connection as 'keep-alive'", function () { var headers = {}; var instance = new NTLMSecurity(username, password); instance.addHeaders(headers); @@ -46,13 +46,13 @@ describe('NTLMSecurity', function() { }); }); - describe('defaultOption param', function() { - it('is used in addOptions', function() { + describe('defaultOption param', function () { + it('is used in addOptions', function () { var options = {}; var instance = new NTLMSecurity(username, password); instance.addOptions(options); - options.should.have.property("username", username); - options.should.have.property("password", password); + options.should.have.property('username', username); + options.should.have.property('password', password); }); }); }); diff --git a/test/security/PasswordDigest.js b/test/security/PasswordDigest.js index 43ae4c20b..bc1746fc7 100644 --- a/test/security/PasswordDigest.js +++ b/test/security/PasswordDigest.js @@ -1,22 +1,20 @@ 'use strict'; var Utils = require('../../lib/utils'), - assert = require('assert'); + assert = require('assert'); describe('PasswordDigest', function () { + var nonce = '2FW1CIo2ZUOJmSjVRcJZlQ=='; + var created = '2019-02-12T12:34:12.110Z'; + var password = 'vM3s1hKVMy6zBOn'; + var expected = 'wM9xjA92wCw+QcQI1urjZ6B8+LQ='; - var nonce = "2FW1CIo2ZUOJmSjVRcJZlQ=="; - var created = "2019-02-12T12:34:12.110Z"; - var password = "vM3s1hKVMy6zBOn"; - var expected = "wM9xjA92wCw+QcQI1urjZ6B8+LQ="; + it('is a function', function () { + Utils.passwordDigest.should.be.type('function'); + }); - it('is a function', function () { - Utils.passwordDigest.should.be.type('function'); - }); - - it('should calculate a valid passworddigest ', function () { - - var result = Utils.passwordDigest(nonce, created, password); - assert.equal(result, expected); - }); + it('should calculate a valid passworddigest ', function () { + var result = Utils.passwordDigest(nonce, created, password); + assert.equal(result, expected); + }); }); diff --git a/test/security/WSSecurity.js b/test/security/WSSecurity.js index b2bbeb8b5..75ac4f16b 100644 --- a/test/security/WSSecurity.js +++ b/test/security/WSSecurity.js @@ -3,20 +3,20 @@ var fs = require('fs'), join = require('path').join; -describe('WSSecurity', function() { +describe('WSSecurity', function () { var WSSecurity = require('../../').WSSecurity; - it('is a function', function() { + it('is a function', function () { WSSecurity.should.be.type('function'); }); - it('should accept valid constructor variables', function() { + it('should accept valid constructor variables', function () { var username = 'myUser'; var password = 'myPass'; var options = { passwordType: 'PasswordText', hasNonce: true, - actor: 'urn:sample' + actor: 'urn:sample', }; var instance = new WSSecurity(username, password, options); instance.should.have.property('_username', username); @@ -26,7 +26,7 @@ describe('WSSecurity', function() { instance.should.have.property('_actor', options.actor); }); - it('should accept passwordType as 3rd arg', function() { + it('should accept passwordType as 3rd arg', function () { var username = 'myUser'; var password = 'myPass'; var passwordType = 'PasswordText'; @@ -38,35 +38,44 @@ describe('WSSecurity', function() { instance.should.not.have.property('_actor'); }); - it('should insert a WSSecurity when postProcess is called', function() { + it('should insert a WSSecurity when postProcess is called', function () { var username = 'my&User'; var password = 'my&Pass'; var options = { passwordType: 'PassWordText', hasNonce: true, - actor: 'urn:sample' + actor: 'urn:sample', }; var instance = new WSSecurity(username, password, options); var xml = instance.toXML(); xml.should.containEql(''); + xml.should.containEql( + 'xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ' + ); + xml.should.containEql( + 'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">' + ); xml.should.containEql(''); + xml.should.containEql( + 'Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' + ); xml.should.containEql('my&Pass'); - xml.should.containEql(''); + xml.should.containEql( + '' + ); xml.should.containEql(''); xml.should.containEql(''); xml.should.containEql(''); - }); }); diff --git a/test/security/WSSecurityCert.js b/test/security/WSSecurityCert.js index 3446aecae..1503f5893 100644 --- a/test/security/WSSecurityCert.js +++ b/test/security/WSSecurityCert.js @@ -2,12 +2,15 @@ var fs = require('fs'), join = require('path').join; +const should = require("should"); describe('WSSecurityCert', function () { var WSSecurityCert = require('../../').WSSecurityCert; var cert = fs.readFileSync(join(__dirname, '..', 'certs', 'agent2-cert.pem')); var key = fs.readFileSync(join(__dirname, '..', 'certs', 'agent2-key.pem')); - var keyWithPassword = fs.readFileSync(join(__dirname, '..', 'certs', 'agent2-key-with-password.pem')); // The passphrase protecting the private key is "soap" + var keyWithPassword = fs.readFileSync( + join(__dirname, '..', 'certs', 'agent2-key-with-password.pem') + ); // The passphrase protecting the private key is "soap" it('is a function', function () { WSSecurityCert.should.be.type('function'); @@ -25,7 +28,7 @@ describe('WSSecurityCert', function () { try { var instance = new WSSecurityCert('*****', cert, ''); - instance.postProcess('', 'soap'); + instance.postProcess('', 'soap'); } catch (e) { passed = false; } @@ -37,75 +40,116 @@ describe('WSSecurityCert', function () { it('should insert a WSSecurity signing block when postProcess is called (private key is raw)', function () { var instance = new WSSecurityCert(key, cert, ''); - var xml = instance.postProcess('', 'soap'); + var xml = instance.postProcess('', 'soap'); xml.should.containEql(''); + xml.should.containEql( + '' + ); xml.should.containEql('' + instance.created); xml.should.containEql('' + instance.expires); xml.should.containEql(''); xml.should.containEql(''); + xml.should.containEql( + 'ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>' + ); xml.should.containEql(instance.publicP12PEM); xml.should.containEql(instance.signer.getSignatureXml()); }); it('should insert a WSSecurity signing block when postProcess is called (private key is protected by a passphrase)', function () { var instance = new WSSecurityCert(keyWithPassword, cert, 'soap'); - var xml = instance.postProcess('', 'soap'); + var xml = instance.postProcess('', 'soap'); xml.should.containEql(''); + xml.should.containEql( + '' + ); xml.should.containEql('' + instance.created); xml.should.containEql('' + instance.expires); xml.should.containEql(''); xml.should.containEql(''); + xml.should.containEql( + 'ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>' + ); xml.should.containEql(instance.publicP12PEM); xml.should.containEql(instance.signer.getSignatureXml()); }); it('should only add two Reference elements, for Soap Body and Timestamp inside wsse:Security element', function () { var instance = new WSSecurityCert(key, cert, ''); - var xml = instance.postProcess('', 'soap'); + var xml = instance.postProcess( + '', + 'soap' + ); xml.match(/', 'soap'); - var xml = instance.postProcess('', 'soap'); + var _ = instance.postProcess( + '', + 'soap' + ); + var xml = instance.postProcess( + '', + 'soap' + ); xml.match(/'); + var xml = instance.postProcess( + '', + 'soap' + ); + xml.should.not.containEql( + '' + ); xml.should.not.containEql('' + instance.created); xml.should.not.containEql('' + instance.expires); }); @@ -113,40 +157,61 @@ describe('WSSecurityCert', function () { it('should use rsa-sha256 signature method when the signatureAlgorithm option is set to WSSecurityCert', function () { var instance = new WSSecurityCert(key, cert, '', { hasTimeStamp: false, - signatureAlgorithm: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256' + signatureAlgorithm: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256', }); - var xml = instance.postProcess('', 'soap'); - xml.should.containEql('SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"'); + var xml = instance.postProcess( + '', + 'soap' + ); + xml.should.containEql( + 'SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"' + ); }); it('should use default xmlns:wsse if no signerOptions.existingPrefixes is provided', function () { var instance = new WSSecurityCert(key, cert, ''); - var xml = instance.postProcess('', 'soap') - xml.should.containEql('xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"'); + var xml = instance.postProcess( + '', + 'soap' + ); + xml.should.containEql( + 'xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"' + ); }); - it('should still add wsse if another signerOption attribute is passed through ', function(){ - var instance = new WSSecurityCert(key, cert, '', { signerOptions: { prefix: 'ds'} }); - var xml = instance.postProcess('', 'soap') - xml.should.containEql('xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"'); + it('should still add wsse if another signerOption attribute is passed through ', function () { + var instance = new WSSecurityCert(key, cert, '', { signerOptions: { prefix: 'ds' } }); + var xml = instance.postProcess( + '', + 'soap' + ); + xml.should.containEql( + 'xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"' + ); xml.should.containEql(''); }); - it('should contain a provided prefix when signerOptions.existingPrefixes is provided', function () { + it('should throw an error when signerOptions.location.action is "after"', function () { var instance = new WSSecurityCert(key, cert, '', { signerOptions: { location: { action: 'after' }, - existingPrefixes: { wsse: 'https://localhost/node-soap.xsd' } - } + existingPrefixes: { wsse: 'https://localhost/node-soap.xsd' }, + }, }); - var xml = instance.postProcess('', 'soap') - xml.should.containEql(''); + (function () {instance.postProcess( + '', + 'soap' + ); + }.should.throw('signerOptions.location.action = "append" is not supported')); }); it('should contain the prefix to the generated Signature tags', function () { var instance = new WSSecurityCert(key, cert, '', { signerOptions: { prefix: 'ds', - } + }, }); - var xml = instance.postProcess('', 'soap'); + var xml = instance.postProcess( + '', + 'soap' + ); xml.should.containEql(''); xml.should.containEql(''); xml.should.containEql('', 'soap'); - xml.should.containEql(''); + var xml = instance.postProcess( + '', + 'soap' + ); + xml.should.containEql( + '' + ); }); it('should sign additional headers that are added via additionalReferences', function () { var instance = new WSSecurityCert(key, cert, '', { - additionalReferences: [ - 'To', - 'Action' - ], + additionalReferences: ['To', 'Action'], }); - var xml = instance.postProcess('localhost.comtesting', 'soap'); + var xml = instance.postProcess( + 'localhost.comtesting', + 'soap' + ); xml.should.containEql(''); xml.should.containEql(''); }); it('should add a WSSecurity signing block when valid envelopeKey is passed', function () { var instance = new WSSecurityCert(key, cert, ''); - var xml = instance.postProcess('', 'soapenv'); + var xml = instance.postProcess( + '', + 'soapenv' + ); xml.should.containEql('', 'soap'); + xml = instance.postProcess( + '', + 'soap' + ); } catch (e) { // do nothing } diff --git a/test/server-authentication-test.js b/test/server-authentication-test.js index eff5daa1e..1666dc47b 100644 --- a/test/server-authentication-test.js +++ b/test/server-authentication-test.js @@ -1,11 +1,11 @@ -"use strict"; +'use strict'; var fs = require('fs'), - soap = require('..'), - assert = require('assert'), - request = require('request'), - http = require('http'), - lastReqAddress; + soap = require('..'), + assert = require('assert'), + request = require('request'), + http = require('http'), + lastReqAddress; var test = {}; test.server = null; @@ -16,47 +16,45 @@ test.authenticateProxy = function authenticate(security, callback) { test.service = { StockQuoteService: { StockQuotePort: { - GetLastTradePrice: function(args, cb, soapHeader) { + GetLastTradePrice: function (args, cb, soapHeader) { return { price: 19.56 }; - } - } - } + }, + }, + }, }; -describe('SOAP Server', function() { - before(function(done) { - fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function(err, data) { +describe('SOAP Server', function () { + before(function (done) { + fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function (err, data) { assert.ifError(err); test.wsdl = data; done(); }); }); - beforeEach(function(done) { - test.server = http.createServer(function(req, res) { + beforeEach(function (done) { + test.server = http.createServer(function (req, res) { res.statusCode = 404; res.end(); }); - test.server.listen(15099, null, null, function() { + test.server.listen(15099, null, null, function () { test.soapServer = soap.listen(test.server, '/stockquote', test.service, test.wsdl); test.soapServer.authenticate = test.authenticateProxy; - test.baseUrl = - 'http://' + test.server.address().address + ":" + test.server.address().port; + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { - test.baseUrl = - 'http://127.0.0.1:' + test.server.address().port; + test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } done(); }); }); - afterEach(function(done) { - test.server.close(function() { + afterEach(function (done) { + test.server.close(function () { test.server = null; test.authenticate = null; delete test.soapServer; @@ -65,18 +63,18 @@ describe('SOAP Server', function() { }); }); - it('should succeed on valid synchronous authentication', function(done) { - test.authenticate = function(security, callback) { + it('should succeed on valid synchronous authentication', function (done) { + test.authenticate = function (security, callback) { setTimeout(function delayed() { callback(false); // Ignored }, 10); return true; }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.equal(19.56, parseFloat(result.price)); done(); @@ -84,18 +82,18 @@ describe('SOAP Server', function() { }); }); - it('should succeed on valid asynchronous authentication', function(done) { - test.authenticate = function(security, callback) { + it('should succeed on valid asynchronous authentication', function (done) { + test.authenticate = function (security, callback) { setTimeout(function delayed() { callback(true); }, 10); return null; // Ignored }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.equal(19.56, parseFloat(result.price)); done(); @@ -103,19 +101,19 @@ describe('SOAP Server', function() { }); }); - it('should succeed on valid promise authentication', function(done) { - test.authenticate = function(security) { + it('should succeed on valid promise authentication', function (done) { + test.authenticate = function (security) { return new Promise((resolve) => { setTimeout(function delayed() { resolve(true); }, 10); - }) + }); }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.equal(19.56, parseFloat(result.price)); done(); @@ -123,18 +121,18 @@ describe('SOAP Server', function() { }); }); - it('should fail on invalid synchronous authentication', function(done) { - test.authenticate = function(security, callback) { + it('should fail on invalid synchronous authentication', function (done) { + test.authenticate = function (security, callback) { setTimeout(function delayed() { callback(true); // Ignored }, 10); return false; }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function (err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault.Code.Value); assert.equal(err.root.Envelope.Body.Fault.Code.Value, 'SOAP-ENV:Client'); @@ -145,17 +143,17 @@ describe('SOAP Server', function() { }); }); - it('should fail on invalid asynchronous authentication', function(done) { - test.authenticate = function(security, callback) { + it('should fail on invalid asynchronous authentication', function (done) { + test.authenticate = function (security, callback) { setTimeout(function delayed() { callback(false); }, 10); }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function (err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault.Code.Value); assert.equal(err.root.Envelope.Body.Fault.Code.Value, 'SOAP-ENV:Client'); @@ -166,19 +164,19 @@ describe('SOAP Server', function() { }); }); - it('should fail on invalid promise authentication', function(done) { - test.authenticate = function(security) { + it('should fail on invalid promise authentication', function (done) { + test.authenticate = function (security) { return new Promise((resolve) => { setTimeout(function delayed() { resolve(false); }, 10); - }) + }); }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function (err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault.Code.Value); assert.equal(err.root.Envelope.Body.Fault.Code.Value, 'SOAP-ENV:Client'); @@ -189,17 +187,17 @@ describe('SOAP Server', function() { }); }); - it('should return an internal error on asynchronous authentication returning an error object', function(done) { - test.authenticate = function(security, callback) { + it('should return an internal error on asynchronous authentication returning an error object', function (done) { + test.authenticate = function (security, callback) { setTimeout(function delayed() { callback(new Error('test')); }, 10); }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function (err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault.Code.Value); assert.equal(err.root.Envelope.Body.Fault.Code.Value, 'SOAP-ENV:Server'); @@ -210,17 +208,17 @@ describe('SOAP Server', function() { }); }); - it('should return an internal error on promise authentication throwing an error', function(done) { - test.authenticate = function(security) { + it('should return an internal error on promise authentication throwing an error', function (done) { + test.authenticate = function (security) { return new Promise((resolve) => { throw new Error('test'); }); }; - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function (err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault.Code.Value); assert.equal(err.root.Envelope.Body.Fault.Code.Value, 'SOAP-ENV:Server'); diff --git a/test/server-compress-test.js b/test/server-compress-test.js index 54c7cded3..ea6d36d79 100644 --- a/test/server-compress-test.js +++ b/test/server-compress-test.js @@ -7,7 +7,8 @@ var assert = require('assert'); var http = require('http'); var zlib = require('zlib'); -var path = 'test/request-response-samples/DefaultNamespace__no_xmlns_prefix_used_for_default_namespace/'; +var path = + 'test/request-response-samples/DefaultNamespace__no_xmlns_prefix_used_for_default_namespace/'; var wsdl = path + 'soap.wsdl'; @@ -17,94 +18,100 @@ var request = fs.readFileSync(path + '/request.xml', 'utf8'); var response = fs.readFileSync(path + '/response.xml', 'utf8'); var service = { - MyService: { - MyServicePort: { - DefaultNamespace: function (args) { - return JSON.parse(json); - } - } - } + MyService: { + MyServicePort: { + DefaultNamespace: function (args) { + return JSON.parse(json); + }, + }, + }, }; describe('SOAP Server', function () { - // This test sends two requests and checks the responses for equality. The - // first request is sent through a soap client. The second request sends the - // same request in gzipped format. - var server = http.createServer(function (req, res) {}); + // This test sends two requests and checks the responses for equality. The + // first request is sent through a soap client. The second request sends the + // same request in gzipped format. + var server = http.createServer(function (req, res) {}); - before(function () { - server.listen(8000); - soap.listen(server, '/wsdl', service, xml); - }); - - after(function () { - server.close(); - }); + before(function () { + server.listen(8000); + soap.listen(server, '/wsdl', service, xml); + }); + after(function () { + server.close(); + }); - it('should properly handle compression', function (done) { - - var clientResponse, - gzipResponse; + it('should properly handle compression', function (done) { + var clientResponse, gzipResponse; - // If both arguments are defined, check if they are equal and exit the test. - var check = function (a, b) { - if (a && b) { - try { - assert(a === b); - done(); - } catch (e) { - done(e); - } - } - }; + // If both arguments are defined, check if they are equal and exit the test. + var check = function (a, b) { + if (a && b) { + try { + assert(a === b); + done(); + } catch (e) { + done(e); + } + } + }; - soap.createClient(wsdl, { - endpoint: 'http://localhost:8000/wsdl' - }, function (error, client) { - try { - assert(!error); - } catch (e) { - done(e); - } - client.DefaultNamespace(json, function (error, response) { - try { - assert(!error); - } catch (e) { - done(e); - } - clientResponse = client.lastResponse; - check(clientResponse, gzipResponse); - }); - }); + soap.createClient( + wsdl, + { + endpoint: 'http://localhost:8000/wsdl', + }, + function (error, client) { + try { + assert(!error); + } catch (e) { + done(e); + } + client.DefaultNamespace(json, function (error, response) { + try { + assert(!error); + } catch (e) { + done(e); + } + clientResponse = client.lastResponse; + check(clientResponse, gzipResponse); + }); + } + ); - var gzip = zlib.createGzip(); + var gzip = zlib.createGzip(); - // Construct a request with the appropriate headers. - gzip.pipe(http.request({ - host: 'localhost', - path: '/wsdl', - port: 8000, - method: 'POST', - headers: { - 'content-type': 'text/xml; charset=utf-8', - 'content-encoding': 'gzip', - 'soapaction': '"DefaultNamespace"' - } - }, function (res) { - var body = ''; - res.on('data', function (data) { - // Parse the response body. - body += data; - }); - res.on('end', function () { - gzipResponse = body; - check(clientResponse, gzipResponse); - // Don't forget to close the server. - }); - })); + // Construct a request with the appropriate headers. + gzip.pipe( + http.request( + { + host: 'localhost', + path: '/wsdl', + port: 8000, + method: 'POST', + headers: { + 'content-type': 'text/xml; charset=utf-8', + 'content-encoding': 'gzip', + soapaction: '"DefaultNamespace"', + }, + }, + function (res) { + var body = ''; + res.on('data', function (data) { + // Parse the response body. + body += data; + }); + res.on('end', function () { + gzipResponse = body; + check(clientResponse, gzipResponse); + // Don't forget to close the server. + }); + } + ) + ); - // Send the request body through the gzip stream to the server. - gzip.end(request); - }); + // Send the request body through the gzip stream to the server. + gzip.end(request); + }); }); diff --git a/test/server-options-test.js b/test/server-options-test.js index 00778cf39..4e960ad87 100644 --- a/test/server-options-test.js +++ b/test/server-options-test.js @@ -1,20 +1,19 @@ -"use strict"; +'use strict'; var fs = require('fs'), - soap = require('..'), - assert = require('assert'), - request = require('request'), - http = require('http'), - lastReqAddress; + soap = require('..'), + assert = require('assert'), + request = require('request'), + http = require('http'), + lastReqAddress; var test = {}; test.server = null; test.service = { StockQuoteService: { StockQuotePort: { - GetLastTradePrice: function(args, cb, soapHeader) { - if (soapHeader) - return { price: soapHeader.SomeToken }; + GetLastTradePrice: function (args, cb, soapHeader) { + if (soapHeader) return { price: soapHeader.SomeToken }; if (args.tickerSymbol === 'trigger error') { throw new Error('triggered server error'); } else if (args.tickerSymbol === 'Async') { @@ -23,18 +22,18 @@ test.service = { throw { Fault: { Code: { - Value: "soap:Sender", - Subcode: { value: "rpc:BadArguments" } + Value: 'soap:Sender', + Subcode: { value: 'rpc:BadArguments' }, }, - Reason: { Text: "Processing Error" } - } + Reason: { Text: 'Processing Error' }, + }, }; } else if (args.tickerSymbol === 'SOAP Fault v1.1') { throw { Fault: { - faultcode: "soap:Client.BadArguments", - faultstring: "Error while processing arguments" - } + faultcode: 'soap:Client.BadArguments', + faultstring: 'Error while processing arguments', + }, }; } else if (args.tickerSymbol === 'xml response') { return '100'; @@ -43,51 +42,50 @@ test.service = { } }, - SetTradePrice: function(args, cb, soapHeader) { - }, + SetTradePrice: function (args, cb, soapHeader) {}, - IsValidPrice: function(args, cb, soapHeader, req) { + IsValidPrice: function (args, cb, soapHeader, req) { lastReqAddress = req.connection.remoteAddress; var validationError = { Fault: { Code: { - Value: "soap:Sender", - Subcode: { value: "rpc:BadArguments" } + Value: 'soap:Sender', + Subcode: { value: 'rpc:BadArguments' }, }, - Reason: { Text: "Processing Error" }, - statusCode: 500 - } + Reason: { Text: 'Processing Error' }, + statusCode: 500, + }, }; - var isValidPrice = function() { + var isValidPrice = function () { var price = args.price; - if(isNaN(price) || (price === ' ')) { + if (isNaN(price) || price === ' ') { return cb(validationError); } price = parseInt(price, 10); - var validPrice = (price > 0 && price < Math.pow(10, 5)); + var validPrice = price > 0 && price < Math.pow(10, 5); return cb(null, { valid: validPrice }); }; setTimeout(isValidPrice, 10); - } - } - } + }, + }, + }, }; -describe('SOAP Server with Options', function() { - before(function(done) { - fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function(err, data) { +describe('SOAP Server with Options', function () { + before(function (done) { + fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function (err, data) { assert.ifError(err); test.wsdl = data; done(); }); }); - beforeEach(function(done) { - test.server = http.createServer(function(req, res) { + beforeEach(function (done) { + test.server = http.createServer(function (req, res) { res.statusCode = 404; res.end(); }); @@ -95,8 +93,8 @@ describe('SOAP Server with Options', function() { done(); }); - afterEach(function(done) { - test.server.close(function() { + afterEach(function (done) { + test.server.close(function () { test.server = null; delete test.soapServer; test.soapServer = null; @@ -104,47 +102,53 @@ describe('SOAP Server with Options', function() { }); }); - it('should start server with callback in options parameter', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: false, - callback: function (err) { - assert.ifError(err); - done(); - } - }, test.service, test.wsdl); - }); - }); - - it('should start server with callback as normal parameter', function(done) { + it('should start server with callback in options parameter', function (done) { test.server.listen(15099, null, null, function () { test.soapServer = soap.listen( test.server, - "/stockquote", + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: false, + callback: function (err) { + assert.ifError(err); + done(); + }, + }, test.service, - test.wsdl, - function (err) { - assert.ifError(err); - done(); - } + test.wsdl ); }); }); - it('should be running with escapeXML false', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: false - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should start server with callback as normal parameter', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen(test.server, '/stockquote', test.service, test.wsdl, function ( + err + ) { + assert.ifError(err); + done(); + }); + }); + }); + + it('should be running with escapeXML false', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: false, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -152,7 +156,7 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } // console.log(test.baseUrl); - request(test.baseUrl, function(err, res, body) { + request(test.baseUrl, function (err, res, body) { assert.ifError(err); console.log(body); done(); @@ -160,25 +164,28 @@ describe('SOAP Server with Options', function() { }); }); - it('should be running with escapeXML true', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: true - }, test.service, test.wsdl); - test.baseUrl = - 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should be running with escapeXML true', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: true, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { - test.baseUrl = - 'http://127.0.0.1:' + test.server.address().port; + test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - request(test.baseUrl, function(err, res, body) { + request(test.baseUrl, function (err, res, body) { assert.ifError(err); console.log(body); done(); @@ -186,18 +193,23 @@ describe('SOAP Server with Options', function() { }); }); - - it('should escapeXML in response body', function(done) { - var responseData = '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns3:UpdateProfileResponse xmlns:ns3="http://www.bigdatacollect.or/Name/Types" xmlns="http://www.bigdatacollect.or/Common/Types"><ns3:Result resultStatusFlag="SUCCESS"><IDs><UniqueID source="TESTSOURCE">100</UniqueID></IDs></ns3:Result></ns3:UpdateProfileResponse></S:Body></S:Envelope>'; - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: true - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should escapeXML in response body', function (done) { + var responseData = + '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns3:UpdateProfileResponse xmlns:ns3="http://www.bigdatacollect.or/Name/Types" xmlns="http://www.bigdatacollect.or/Common/Types"><ns3:Result resultStatusFlag="SUCCESS"><IDs><UniqueID source="TESTSOURCE">100</UniqueID></IDs></ns3:Result></ns3:UpdateProfileResponse></S:Body></S:Envelope>'; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: true, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -205,9 +217,9 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'xml response' }, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'xml response' }, function (err, response, body) { assert.ifError(err); assert.strictEqual(body, responseData); done(); @@ -216,17 +228,23 @@ describe('SOAP Server with Options', function() { }); }); - it('should not escapeXML response in body', function(done) { - var responseData = '100'; - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: false - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should not escapeXML response in body', function (done) { + var responseData = + '100'; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: false, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -234,9 +252,9 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'xml response' }, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'xml response' }, function (err, response, body) { assert.ifError(err); assert.strictEqual(body, responseData); done(); @@ -245,16 +263,21 @@ describe('SOAP Server with Options', function() { }); }); - it('should disclose error stack in server response', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: false - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should disclose error stack in server response', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: false, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -262,38 +285,46 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - request.post({ - url: test.baseUrl + '/stockquote?wsdl', - body : '' + - ' ' + - ' ' + - ' ' + - ' ' + - '', - headers: {'Content-Type': 'text/xml'} - }, function(err, res, body) { - assert.ifError(err); - assert.equal(res.statusCode, 500); - assert.ok(body.indexOf('\n at') !== -1); - done(); - } + request.post( + { + url: test.baseUrl + '/stockquote?wsdl', + body: + '' + + ' ' + + ' ' + + ' ' + + ' ' + + '', + headers: { 'Content-Type': 'text/xml' }, + }, + function (err, res, body) { + assert.ifError(err); + assert.equal(res.statusCode, 500); + assert.ok(body.indexOf('\n at') !== -1); + done(); + } ); }); }); - it('should not disclose error stack in server response', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: false, - suppressStack: true - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should not disclose error stack in server response', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: false, + suppressStack: true, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -301,38 +332,46 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - request.post({ - url: test.baseUrl + '/stockquote?wsdl', - body : '' + - ' ' + - ' ' + - ' ' + - ' ' + - '', - headers: {'Content-Type': 'text/xml'} - }, function(err, res, body) { - assert.ifError(err); - assert.equal(res.statusCode, 500); - assert.equal(body.indexOf('\n at'), -1); - done(); - } + request.post( + { + url: test.baseUrl + '/stockquote?wsdl', + body: + '' + + ' ' + + ' ' + + ' ' + + ' ' + + '', + headers: { 'Content-Type': 'text/xml' }, + }, + function (err, res, body) { + assert.ifError(err); + assert.equal(res.statusCode, 500); + assert.equal(body.indexOf('\n at'), -1); + done(); + } ); }); }); - - it('should return soap fault in server response', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - escapeXML: false, - returnFault: true - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + + it('should return soap fault in server response', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + escapeXML: false, + returnFault: true, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -340,37 +379,44 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - request.post({ - url: test.baseUrl + '/stockquote?wsdl', - body : '' + - ' ' + - ' ' + - ' ' + - ' ' + - '', - headers: {'Content-Type': 'text/xml'} - }, function(err, res, body) { - assert.ifError(err); - assert.equal(res.statusCode, 500); - assert.ok(body.match(/.*<\/faultcode>/g), - "Invalid XML"); - done(); - } + request.post( + { + url: test.baseUrl + '/stockquote?wsdl', + body: + '' + + ' ' + + ' ' + + ' ' + + ' ' + + '', + headers: { 'Content-Type': 'text/xml' }, + }, + function (err, res, body) { + assert.ifError(err); + assert.equal(res.statusCode, 500); + assert.ok(body.match(/.*<\/faultcode>/g), 'Invalid XML'); + done(); + } ); }); }); - it('should not return a SOAP 12 envelope when headers are not forced', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - forceSoap12Headers: false - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should not return a SOAP 12 envelope when headers are not forced', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + forceSoap12Headers: false, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -378,33 +424,40 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } // console.log(test.baseUrl); - request.post({ - url: test.baseUrl + '/stockquote', - body: '' + - ' ' + - ' ' + - '' - }, function(err, res, body) { - assert.ifError(err); - assert.ok( - body.indexOf('xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"') > -1 - ); - done(); - }); + request.post( + { + url: test.baseUrl + '/stockquote', + body: + '' + + ' ' + + ' ' + + '', + }, + function (err, res, body) { + assert.ifError(err); + assert.ok(body.indexOf('xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"') > -1); + done(); + } + ); }); }); - it('should return a SOAP 12 envelope when headers are forced', function(done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - uri: __dirname + '/wsdl/strict/', - forceSoap12Headers: true - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + it('should return a SOAP 12 envelope when headers are forced', function (done) { + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + uri: __dirname + '/wsdl/strict/', + forceSoap12Headers: true, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -412,34 +465,41 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } // console.log(test.baseUrl); - request.post({ - url: test.baseUrl + '/stockquote', - body: '' + - ' ' + - ' ' + - '' - }, function(err, res, body) { - assert.ifError(err); - assert.ok( - body.indexOf('xmlns:soap="http://www.w3.org/2003/05/soap-envelope"') > -1 - ); - done(); - }); + request.post( + { + url: test.baseUrl + '/stockquote', + body: + '' + + ' ' + + ' ' + + '', + }, + function (err, res, body) { + assert.ifError(err); + assert.ok(body.indexOf('xmlns:soap="http://www.w3.org/2003/05/soap-envelope"') > -1); + done(); + } + ); }); }); it('should return configured statusCode on one-way operations', function (done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - oneWay: { - responseCode: 202 - } - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + oneWay: { + responseCode: 202, + }, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -447,33 +507,39 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); client.on('response', function (xml, response) { assert.equal(response.statusCode, 202); done(); }); - client.SetTradePrice({ tickerSymbol: 'GOOG' }, function(err, result, body) { + client.SetTradePrice({ tickerSymbol: 'GOOG' }, function (err, result, body) { assert.ifError(err); - assert.equal(result,null); - assert.equal(body,''); + assert.equal(result, null); + assert.equal(body, ''); }); }); }); }); it('should return empty body on one-way operations if configured', function (done) { - var responseData = ''; - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - oneWay: { - emptyBody: true - } - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + var responseData = + ''; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + oneWay: { + emptyBody: true, + }, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -481,9 +547,9 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.SetTradePrice({ tickerSymbol: 'GOOG' }, function(err, result, body) { + client.SetTradePrice({ tickerSymbol: 'GOOG' }, function (err, result, body) { assert.ifError(err); assert.strictEqual(body, responseData); done(); @@ -492,13 +558,18 @@ describe('SOAP Server with Options', function() { }); }); it('should use chunked transfer encoding by default', function (done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -506,16 +577,16 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.on('response', function(body, response, eid) { + client.on('response', function (body, response, eid) { var headers = response.headers; assert.strictEqual(headers['transfer-encoding'], 'chunked'); assert.equal(headers['content-length'], undefined); - }) + }); - client.SetTradePrice({ tickerSymbol: 'GOOG' }, function(err, result, body) { + client.SetTradePrice({ tickerSymbol: 'GOOG' }, function (err, result, body) { assert.ifError(err); done(); }); @@ -523,14 +594,19 @@ describe('SOAP Server with Options', function() { }); }); it('should use chunked transfer encoding when enabled in options', function (done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - enableChunkedEncoding: true, - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + enableChunkedEncoding: true, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -538,16 +614,16 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.on('response', function(body, response, eid) { + client.on('response', function (body, response, eid) { var headers = response.headers; assert.strictEqual(headers['transfer-encoding'], 'chunked'); assert.equal(headers['content-length'], undefined); - }) + }); - client.SetTradePrice({ tickerSymbol: 'GOOG' }, function(err, result, body) { + client.SetTradePrice({ tickerSymbol: 'GOOG' }, function (err, result, body) { assert.ifError(err); done(); }); @@ -555,14 +631,19 @@ describe('SOAP Server with Options', function() { }); }); it('should not use chunked transfer encoding when disabled in options', function (done) { - test.server.listen(15099, null, null, function() { - test.soapServer = soap.listen(test.server, { - path: '/stockquote', - services: test.service, - xml: test.wsdl, - enableChunkedEncoding: false, - }, test.service, test.wsdl); - test.baseUrl = 'http://' + test.server.address().address + ":" + test.server.address().port; + test.server.listen(15099, null, null, function () { + test.soapServer = soap.listen( + test.server, + { + path: '/stockquote', + services: test.service, + xml: test.wsdl, + enableChunkedEncoding: false, + }, + test.service, + test.wsdl + ); + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request @@ -570,16 +651,16 @@ describe('SOAP Server with Options', function() { test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.on('response', function(body, response, eid) { + client.on('response', function (body, response, eid) { var headers = response.headers; assert.notEqual(headers['content-length'], undefined); assert.equal(headers['transfer-encoding'], undefined); - }) + }); - client.SetTradePrice({ tickerSymbol: 'GOOG' }, function(err, result, body) { + client.SetTradePrice({ tickerSymbol: 'GOOG' }, function (err, result, body) { assert.ifError(err); done(); }); diff --git a/test/server-receive-complex-type.js b/test/server-receive-complex-type.js index b012d2174..9b6d659c6 100644 --- a/test/server-receive-complex-type.js +++ b/test/server-receive-complex-type.js @@ -1,120 +1,120 @@ -'use strict'; - -var request = require('request'); -var assert = require('assert'); -var http = require('http'); -var soap = require('..'); -var server; -var url; - -var wsdl = ` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`; - -var requestXML = `dGVzdG==dGVzdG=={001,MON,DVL,203,1}`; - -var responseXMLGood = `1.2.3.4`; - -var responseXMLBad = `SOAP-ENV:ServerInternalServerErrorTypeError: Cannot read property 'output' of undefined`; - - var service = { - IHSDTPSClientservice: { - IHSDTPSClientPort: { - GetVersion: function(args, callback, headers, req) { - return { - 'return': '1.2.3.4' - }; - } - } - } - }; - -describe('server receive complex type test', function () { - - before(function (done) { - - server = http.createServer(function(request,response) { - response.end('404: Not Found: ' + request.url); - }); - - server.listen(51515, function () { - var soapServer = soap.listen(server, '/GetVersion', service, wsdl); - - soapServer.on('response', function(response, methodName){ - assert.equal(methodName, 'GetVersion'); - }); - - url = 'http://' + server.address().address + ':' + server.address().port; - if (server.address().address === '0.0.0.0' || server.address().address === '::') { - url = 'http://127.0.0.1:' + server.address().port; - } - done(); - }); - }); - - after(function () { - server.close(); - }); - - it('should return good response', function (done) { - request({ - url: url + '/GetVersion', - method: 'POST', - headers: { - SOAPAction: "urn:uHSD_Intf-IHSDTPSClient#GetVersion", - "Content-Type": 'text/xml; charset="utf-8"' - }, - body: requestXML - }, function (err, response, body) { - if (err) { - throw err; - } - assert.equal(body, responseXMLGood); - done(); - }); - }); - -}); +'use strict'; + +var request = require('request'); +var assert = require('assert'); +var http = require('http'); +var soap = require('..'); +var server; +var url; + +var wsdl = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`; + +var requestXML = `dGVzdG==dGVzdG=={001,MON,DVL,203,1}`; + +var responseXMLGood = `1.2.3.4`; + +var responseXMLBad = `SOAP-ENV:ServerInternalServerErrorTypeError: Cannot read property 'output' of undefined`; + +var service = { + IHSDTPSClientservice: { + IHSDTPSClientPort: { + GetVersion: function (args, callback, headers, req) { + return { + return: '1.2.3.4', + }; + }, + }, + }, +}; + +describe('server receive complex type test', function () { + before(function (done) { + server = http.createServer(function (request, response) { + response.end('404: Not Found: ' + request.url); + }); + + server.listen(51515, function () { + var soapServer = soap.listen(server, '/GetVersion', service, wsdl); + + soapServer.on('response', function (response, methodName) { + assert.equal(methodName, 'GetVersion'); + }); + + url = 'http://' + server.address().address + ':' + server.address().port; + if (server.address().address === '0.0.0.0' || server.address().address === '::') { + url = 'http://127.0.0.1:' + server.address().port; + } + done(); + }); + }); + + after(function () { + server.close(); + }); + + it('should return good response', function (done) { + request( + { + url: url + '/GetVersion', + method: 'POST', + headers: { + SOAPAction: 'urn:uHSD_Intf-IHSDTPSClient#GetVersion', + 'Content-Type': 'text/xml; charset="utf-8"', + }, + body: requestXML, + }, + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, responseXMLGood); + done(); + } + ); + }); +}); diff --git a/test/server-response-event-test.js b/test/server-response-event-test.js index 441837f3e..d08ef0d3f 100644 --- a/test/server-response-event-test.js +++ b/test/server-response-event-test.js @@ -7,8 +7,10 @@ var soap = require('../'); var server; var url; -var wsdl = 'WSDL File for HelloService'; -var requestXML = '' + +var wsdl = + 'WSDL File for HelloService'; +var requestXML = + '' + '' + '' + 'Bob' + @@ -16,7 +18,8 @@ var requestXML = '' '' + ''; -var responseXML = '' + +var responseXML = + '' + '' + '' + '' + @@ -25,7 +28,8 @@ var responseXML = '' + '' + ''; -var responseXMLChanged = '' + +var responseXMLChanged = + '' + '' + '' + '' + @@ -34,34 +38,31 @@ var responseXMLChanged = '' + '' + ''; - var service = { - Hello_Service: { - Hello_Port: { - sayHello: function (args) { - return { - greeting: args.firstName - }; - } - } - } - }; +var service = { + Hello_Service: { + Hello_Port: { + sayHello: function (args) { + return { + greeting: args.firstName, + }; + }, + }, + }, +}; describe('server response event test', function () { - before(function (done) { - - - server = http.createServer(function(request,response) { + server = http.createServer(function (request, response) { response.end('404: Not Found: ' + request.url); }); - + server.listen(51515, function () { var soapServer = soap.listen(server, '/SayHello', service, wsdl); - - soapServer.on('response', function(response, methodName){ + + soapServer.on('response', function (response, methodName) { assert.equal(response.result, responseXML); assert.equal(methodName, 'sayHello'); - response.result = response.result.replace('Bob','John'); + response.result = response.result.replace('Bob', 'John'); }); url = 'http://' + server.address().address + ':' + server.address().port; @@ -77,21 +78,23 @@ describe('server response event test', function () { }); it('should replace Bob with John', function (done) { - request({ - url: url + '/SayHello', - method: 'POST', - headers: { - SOAPAction: "sayHello", - "Content-Type": 'text/xml; charset="utf-8"' + request( + { + url: url + '/SayHello', + method: 'POST', + headers: { + SOAPAction: 'sayHello', + 'Content-Type': 'text/xml; charset="utf-8"', + }, + body: requestXML, }, - body: requestXML - }, function (err, response, body) { - if (err) { - throw err; + function (err, response, body) { + if (err) { + throw err; + } + assert.equal(body, responseXMLChanged); + done(); } - assert.equal(body, responseXMLChanged); - done(); - }); + ); }); - }); diff --git a/test/server-test.js b/test/server-test.js index 10edb098c..46c951c3d 100644 --- a/test/server-test.js +++ b/test/server-test.js @@ -1,20 +1,19 @@ -"use strict"; +'use strict'; var fs = require('fs'), - soap = require('..'), - assert = require('assert'), - request = require('request'), - http = require('http'), - lastReqAddress; + soap = require('..'), + assert = require('assert'), + request = require('request'), + http = require('http'), + lastReqAddress; var test = {}; test.server = null; test.service = { StockQuoteService: { StockQuotePort: { - GetLastTradePrice: function(args, cb, soapHeader) { - if (soapHeader) - return { price: soapHeader.SomeToken }; + GetLastTradePrice: function (args, cb, soapHeader) { + if (soapHeader) return { price: soapHeader.SomeToken }; if (args.tickerSymbol === 'trigger error') { throw new Error('triggered server error'); } else if (args.tickerSymbol === 'Async') { @@ -31,91 +30,88 @@ test.service = { throw { Fault: { Code: { - Value: "soap:Sender", - Subcode: { value: "rpc:BadArguments" } + Value: 'soap:Sender', + Subcode: { value: 'rpc:BadArguments' }, }, - Reason: { Text: "Processing Error" } - } + Reason: { Text: 'Processing Error' }, + }, }; } else if (args.tickerSymbol === 'SOAP Fault v1.1') { throw { Fault: { - faultcode: "soap:Client.BadArguments", - faultstring: "Error while processing arguments" - } + faultcode: 'soap:Client.BadArguments', + faultstring: 'Error while processing arguments', + }, }; } else { return { price: 19.56, tax: -1.23 }; } }, - SetTradePrice: function(args, cb, soapHeader) { - }, + SetTradePrice: function (args, cb, soapHeader) {}, - IsValidPrice: function(args, cb, soapHeader, req) { + IsValidPrice: function (args, cb, soapHeader, req) { lastReqAddress = req.connection.remoteAddress; var validationError = { Fault: { Code: { - Value: "soap:Sender", - Subcode: { value: "rpc:BadArguments" } + Value: 'soap:Sender', + Subcode: { value: 'rpc:BadArguments' }, }, - Reason: { Text: "Processing Error" }, - statusCode: 500 - } + Reason: { Text: 'Processing Error' }, + statusCode: 500, + }, }; - var isValidPrice = function() { + var isValidPrice = function () { var price = args.price; - if(isNaN(price) || (price === ' ')) { + if (isNaN(price) || price === ' ') { return cb(validationError); } price = parseInt(price, 10); - var validPrice = (price > 0 && price < Math.pow(10, 5)); + var validPrice = price > 0 && price < Math.pow(10, 5); return cb(null, { valid: validPrice }); }; setTimeout(isValidPrice, 10); - } - } - } + }, + }, + }, }; -describe('SOAP Server', function() { - before(function(done) { - fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function(err, data) { +describe('SOAP Server', function () { + before(function (done) { + fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function (err, data) { assert.ifError(err); test.wsdl = data; done(); }); }); - beforeEach(function(done) { - test.server = http.createServer(function(req, res) { + beforeEach(function (done) { + test.server = http.createServer(function (req, res) { res.statusCode = 404; res.end(); }); - test.server.listen(15099, null, null, function() { + test.server.listen(15099, null, null, function () { test.soapServer = soap.listen(test.server, '/stockquote', test.service, test.wsdl); - test.baseUrl = - 'http://' + test.server.address().address + ":" + test.server.address().port; + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; //windows return 0.0.0.0 as address and that is not //valid to use in a request if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { - test.baseUrl = - 'http://127.0.0.1:' + test.server.address().port; + test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; } done(); }); }); - afterEach(function(done) { - test.server.close(function() { + afterEach(function (done) { + test.server.close(function () { test.server = null; delete test.soapServer; test.soapServer = null; @@ -123,8 +119,7 @@ describe('SOAP Server', function() { }); }); - - it('should add and clear response soap headers', function(done) { + it('should add and clear response soap headers', function (done) { assert.ok(!test.soapServer.getSoapHeaders()); var i1 = test.soapServer.addSoapHeader('about-to-change-1'); @@ -144,64 +139,69 @@ describe('SOAP Server', function() { done(); }); - it('should return predefined headers in response', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { - var clientArgs = { tickerSymbol: 'AAPL'}; + it('should return predefined headers in response', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { + var clientArgs = { tickerSymbol: 'AAPL' }; assert.ifError(err); test.soapServer.addSoapHeader('ONE'); test.soapServer.changeSoapHeader(1, { header2: 'TWO' }); - test.soapServer.addSoapHeader(function() { return { header3: 'THREE' }; }); + test.soapServer.addSoapHeader(function () { + return { header3: 'THREE' }; + }); client.addSoapHeader({ headerFromClient: 'FOUR' }); - test.soapServer.changeSoapHeader(3, function(methodName, args, headers, req) { + test.soapServer.changeSoapHeader(3, function (methodName, args, headers, req) { assert.equal(methodName, 'GetLastTradePrice'); assert.deepEqual(clientArgs, args); assert.deepEqual(headers, { headerFromClient: 'FOUR' }); return { header4: headers.headerFromClient }; }); - client.GetLastTradePrice(clientArgs, function(err, result, raw, headers) { + client.GetLastTradePrice(clientArgs, function (err, result, raw, headers) { assert.ifError(err); assert.deepEqual(headers, { header1: 'ONE', header2: 'TWO', header3: 'THREE', - header4: 'FOUR' + header4: 'FOUR', }); done(); }); }); }); - it('should be running', function(done) { - request(test.baseUrl, function(err, res, body) { + it('should be running', function (done) { + request(test.baseUrl, function (err, res, body) { assert.ifError(err); done(); }); }); - it('should 404 on non-WSDL path', function(done) { - request(test.baseUrl, function(err, res, body) { + it('should 404 on non-WSDL path', function (done) { + request(test.baseUrl, function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 404); done(); }); }); - it('should 500 on wrong message', function(done) { - request.post({ + it('should 500 on wrong message', function (done) { + request.post( + { url: test.baseUrl + '/stockquote?wsdl', - body : '' + - ' ' + - ' ' + - ' ' + - ' ' + - '', - headers: {'Content-Type': 'text/xml'} - }, function(err, res, body) { + body: + '' + + ' ' + + ' ' + + ' ' + + ' ' + + '', + headers: { 'Content-Type': 'text/xml' }, + }, + function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 500); assert.ok(body.length); @@ -210,12 +210,14 @@ describe('SOAP Server', function() { ); }); - it('should 500 on empty message and undefined Content-Type', function(done) { - request.post({ + it('should 500 on empty message and undefined Content-Type', function (done) { + request.post( + { url: test.baseUrl + '/stockquote?wsdl', - body : '', - headers: {'Content-Type': undefined} - }, function(err, res, body) { + body: '', + headers: { 'Content-Type': undefined }, + }, + function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 500); assert.ok(body.length); @@ -224,17 +226,20 @@ describe('SOAP Server', function() { ); }); - it('should 500 on missing tag message', function(done) { - request.post({ + it('should 500 on missing tag message', function (done) { + request.post( + { url: test.baseUrl + '/stockquote?wsdl', - body : '' + - ' ' + - ' ' + - '', - headers: {'Content-Type': 'text/xml'} - }, function(err, res, body) { + body: + '' + + ' ' + + ' ' + + '', + headers: { 'Content-Type': 'text/xml' }, + }, + function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 500); assert.ok(body.length); @@ -243,8 +248,8 @@ describe('SOAP Server', function() { ); }); - it('should server up WSDL', function(done) { - request(test.baseUrl + '/stockquote?wsdl', function(err, res, body) { + it('should server up WSDL', function (done) { + request(test.baseUrl + '/stockquote?wsdl', function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 200); assert.ok(body.length); @@ -252,20 +257,20 @@ describe('SOAP Server', function() { }); }); - it('should return complete client description', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return complete client description', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); var description = client.describe(), - expected = { input: { tickerSymbol: "string" }, output:{ price: "float", tax: "double" } }; - assert.deepEqual(expected , description.StockQuoteService.StockQuotePort.GetLastTradePrice); + expected = { input: { tickerSymbol: 'string' }, output: { price: 'float', tax: 'double' } }; + assert.deepEqual(expected, description.StockQuoteService.StockQuotePort.GetLastTradePrice); done(); }); }); - it('should return correct results', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return correct results', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.strictEqual(19.56, result.price); // float assert.strictEqual(-1.23, result.tax); // double @@ -274,10 +279,10 @@ describe('SOAP Server', function() { }); }); - it('should return correct async results (single argument callback style)', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return correct async results (single argument callback style)', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'Async'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'Async' }, function (err, result) { assert.ifError(err); assert.strictEqual(19.56, result.price); done(); @@ -285,22 +290,21 @@ describe('SOAP Server', function() { }); }); - - it('should return correct async results (double argument callback style)', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return correct async results (double argument callback style)', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.IsValidPrice({ price: 50000 }, function(err, result) { + client.IsValidPrice({ price: 50000 }, function (err, result) { assert.ifError(err); - assert.equal(true, !!(result.valid)); + assert.equal(true, !!result.valid); done(); }); }); }); - it('should support Promise return result', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should support Promise return result', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'Promise'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'Promise' }, function (err, result) { assert.ifError(err); assert.strictEqual(13.76, result.price); done(); @@ -308,10 +312,10 @@ describe('SOAP Server', function() { }); }); - it('should support Promise rejection (error)', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should support Promise rejection (error)', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'Promise Error'}, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'Promise Error' }, function (err, response, body) { assert.ok(err); assert.strictEqual(err.response, response); assert.strictEqual(err.body, body); @@ -320,22 +324,37 @@ describe('SOAP Server', function() { }); }); - it('should pass the original req to async methods', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + /** + * Before Node.js v18, the req.connection.remoteAddress often returns the IPv6-mapped IPv4 address (::ffff:127.0.0.1), which means the internal server is communicating using an IPv6 format but still using the IPv4 address. + * Since Node.js v18, it appears that the default behavior has changed, and the loopback address is being returned only in IPv6 format as ::1 (pure IPv6 loopback address), instead of using the IPv6-mapped IPv4 address. + */ + it('should pass the original req to async methods', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.IsValidPrice({ price: 50000 }, function(err, result) { - // node V3.x+ reports addresses as IPV6 - var addressParts = lastReqAddress.split(':'); - assert.equal(addressParts[(addressParts.length - 1)], '127.0.0.1'); + client.IsValidPrice({ price: 50000 }, function (err, result) { + // Normalize the IP address to '127.0.0.1' format + let normalizedAddress; + if (lastReqAddress.startsWith('::ffff:')) { + // Remove "::ffff:" to get "127.0.0.1" + const addressParts = lastReqAddress.split(':'); + normalizedAddress = addressParts[addressParts.length - 1]; + } else if (lastReqAddress === '::1') { + // Convert "::1" to "127.0.0.1" + normalizedAddress = '127.0.0.1'; + } else { + // Keep the address as is if it's already "127.0.0.1" + normalizedAddress = lastReqAddress; + } + assert.equal(normalizedAddress, '127.0.0.1'); done(); }); }); }); - it('should return correct async errors', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return correct async errors', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.IsValidPrice({ price: "invalid_price"}, function(err, result) { + client.IsValidPrice({ price: 'invalid_price' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault); assert.equal(err.response.statusCode, 500); @@ -344,11 +363,11 @@ describe('SOAP Server', function() { }); }); - it('should handle headers in request', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should handle headers in request', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); client.addSoapHeader('123.45'); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.strictEqual(123.45, result.price); done(); @@ -356,11 +375,13 @@ describe('SOAP Server', function() { }); }); - it('should return security timestamp in response', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return security timestamp in response', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.addSoapHeader('2015-02-23T12:00:00.000Z2015-02-23T12:05:00.000Z'); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result, raw, soapHeader) { + client.addSoapHeader( + '2015-02-23T12:00:00.000Z2015-02-23T12:05:00.000Z' + ); + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result, raw, soapHeader) { assert.ifError(err); assert.ok(soapHeader && soapHeader.Security && soapHeader.Security.Timestamp); done(); @@ -368,37 +389,37 @@ describe('SOAP Server', function() { }); }); - it('should emit \'request\' event', function(done) { + it("should emit 'request' event", function (done) { test.soapServer.on('request', function requestManager(request, methodName) { assert.equal(methodName, 'GetLastTradePrice'); done(); }); - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function() {}); + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function () {}); }); }); - it('should emit \'response\' event', function(done) { + it("should emit 'response' event", function (done) { test.soapServer.on('response', function requestManager(request, methodName) { assert.equal(methodName, 'GetLastTradePrice'); done(); }); - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function() {}); + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function () {}); }); }); - it('should emit \'headers\' event', function(done) { + it("should emit 'headers' event", function (done) { test.soapServer.on('headers', function headersManager(headers, methodName) { assert.equal(methodName, 'GetLastTradePrice'); headers.SomeToken = 0; }); - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); client.addSoapHeader('123.45'); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.strictEqual(0, result.price); done(); @@ -406,23 +427,23 @@ describe('SOAP Server', function() { }); }); - it('should not emit the \'headers\' event when there are no headers', function(done) { + it("should not emit the 'headers' event when there are no headers", function (done) { test.soapServer.on('headers', function headersManager(headers, methodName) { assert.ok(false); }); - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); done(); }); }); }); - it('should include response and body in error object', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should include response and body in error object', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'trigger error' }, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'trigger error' }, function (err, response, body) { assert.ok(err); assert.strictEqual(err.response, response); assert.strictEqual(err.body, body); @@ -431,60 +452,68 @@ describe('SOAP Server', function() { }); }); - it('should return SOAP Fault body for SOAP 1.2', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return SOAP Fault body for SOAP 1.2', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'SOAP Fault v1.2' }, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'SOAP Fault v1.2' }, function (err, response, body) { assert.ok(err); var fault = err.root.Envelope.Body.Fault; assert.equal(err.message, fault.faultcode + ': ' + fault.faultstring); - assert.equal(fault.Code.Value, "soap:Sender"); - assert.equal(fault.Reason.Text, "Processing Error"); + assert.equal(fault.Code.Value, 'soap:Sender'); + assert.equal(fault.Reason.Text, 'Processing Error'); // Verify namespace on elements set according to fault spec 1.2 - assert.ok(body.match(/.*<\/soap:Code>/g), - "Body should contain Code-element with namespace"); - assert.ok(body.match(/.*<\/soap:Reason>/g), - "Body should contain Reason-element with namespace"); + assert.ok( + body.match(/.*<\/soap:Code>/g), + 'Body should contain Code-element with namespace' + ); + assert.ok( + body.match(/.*<\/soap:Reason>/g), + 'Body should contain Reason-element with namespace' + ); assert.equal(err.response.statusCode, 200); done(); }); }); }); - it('should return SOAP Fault body for SOAP 1.1', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should return SOAP Fault body for SOAP 1.1', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.GetLastTradePrice({ tickerSymbol: 'SOAP Fault v1.1' }, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'SOAP Fault v1.1' }, function (err, response, body) { assert.ok(err); var fault = err.root.Envelope.Body.Fault; assert.equal(err.message, fault.faultcode + ': ' + fault.faultstring); - assert.equal(fault.faultcode, "soap:Client.BadArguments"); - assert.equal(fault.faultstring, "Error while processing arguments"); + assert.equal(fault.faultcode, 'soap:Client.BadArguments'); + assert.equal(fault.faultstring, 'Error while processing arguments'); // Verify namespace on elements set according to fault spec 1.1 - assert.ok(body.match(/.*<\/faultcode>/g), - "Body should contain faultcode-element without namespace"); - assert.ok(body.match(/.*<\/faultstring>/g), - "Body should contain faultstring-element without namespace"); + assert.ok( + body.match(/.*<\/faultcode>/g), + 'Body should contain faultcode-element without namespace' + ); + assert.ok( + body.match(/.*<\/faultstring>/g), + 'Body should contain faultstring-element without namespace' + ); done(); }); }); }); - it('should return SOAP Fault thrown from \'headers\' event handler', function(done) { + it("should return SOAP Fault thrown from 'headers' event handler", function (done) { test.soapServer.on('headers', function headersManager() { throw { Fault: { Code: { - Value: "soap:Sender", - Subcode: { value: "rpc:BadArguments" } + Value: 'soap:Sender', + Subcode: { value: 'rpc:BadArguments' }, }, - Reason: { Text: "Processing Error" } - } + Reason: { Text: 'Processing Error' }, + }, }; }); - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { client.addSoapHeader('0.0'); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ok(err); assert.ok(err.root.Envelope.Body.Fault); done(); @@ -492,42 +521,48 @@ describe('SOAP Server', function() { }); }); - it('should accept attributes as a string on the body element', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should accept attributes as a string on the body element', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.addBodyAttribute('xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="######################"'); - client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function(err, response, body) { + client.addBodyAttribute( + 'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="######################"' + ); + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, response, body) { assert.ifError(err); done(); }); }); }); - it('should accept attributes as an object on the body element', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should accept attributes as an object on the body element', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - var attributes = { 'xmlns:wsu': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', 'wsu:Id': '######################' }; + var attributes = { + 'xmlns:wsu': + 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', + 'wsu:Id': '######################', + }; client.addBodyAttribute(attributes); - client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function(err, response, body) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, response, body) { assert.ifError(err); done(); }); }); }); - it('should handle one-way operations', function(done) { - soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { + it('should handle one-way operations', function (done) { + soap.createClient(test.baseUrl + '/stockquote?wsdl', function (err, client) { assert.ifError(err); - client.SetTradePrice({ tickerSymbol: 'GOOG', price: 575.33 }, function(err, result) { + client.SetTradePrice({ tickerSymbol: 'GOOG', price: 575.33 }, function (err, result) { assert.ifError(err); - assert.equal(result,null); + assert.equal(result, null); done(); }); }); }); -// NOTE: this is actually a -client- test -/* + // NOTE: this is actually a -client- test + /* it('should return a valid error if the server stops responding': function(done) { soap.createClient(test.baseUrl + '/stockquote?wsdl', function(err, client) { assert.ifError(err); @@ -541,5 +576,4 @@ it('should return a valid error if the server stops responding': function(done) }); }); */ - }); diff --git a/test/server-xsd-include-test.js b/test/server-xsd-include-test.js index f5062e7ec..4ce883816 100644 --- a/test/server-xsd-include-test.js +++ b/test/server-xsd-include-test.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; var fs = require('fs'), soap = require('..'), @@ -17,11 +17,11 @@ test.service = { if (args.tickerSymbol === 'trigger error') { throw new Error('triggered server error'); } else { - return {price: 19.56}; + return { price: 19.56 }; } - } - } - } + }, + }, + }, }; describe('SOAP Server(XSD include)', function () { @@ -32,27 +32,29 @@ describe('SOAP Server(XSD include)', function () { done(); }); }); - + beforeEach(function (done) { - var serve = serveStatic("./test/wsdl/strict"); - test.server = http.createServer(function (req, res) { - var done = finalHandler(req, res); - serve(req, res, done); - }).listen(51515, null, null, function () { - var pathOrOptions = '/stockquote-url'; - test.soapServer = soap.listen(test.server, pathOrOptions, test.service, test.wsdl); - - test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; - - if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { - test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; - } - - assert.ok(test.soapServer); - done(); - }); + var serve = serveStatic('./test/wsdl/strict'); + test.server = http + .createServer(function (req, res) { + var done = finalHandler(req, res); + serve(req, res, done); + }) + .listen(51515, null, null, function () { + var pathOrOptions = '/stockquote-url'; + test.soapServer = soap.listen(test.server, pathOrOptions, test.service, test.wsdl); + + test.baseUrl = 'http://' + test.server.address().address + ':' + test.server.address().port; + + if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { + test.baseUrl = 'http://127.0.0.1:' + test.server.address().port; + } + + assert.ok(test.soapServer); + done(); + }); }); - + afterEach(function (done) { test.server.close(function () { test.server = null; @@ -61,16 +63,14 @@ describe('SOAP Server(XSD include)', function () { done(); }); }); - - + it('should allow `http` in `schemaLocation` attribute in `xsd:include` tag', function (done) { var url = __dirname + '/wsdl/strict/stockquote-url.wsdl'; - + soap.createClient(url, function (err, client) { assert.ifError(err); assert.ok(client); done(); }); }); - }); diff --git a/test/ssl-test.js b/test/ssl-test.js index 12d92e7f4..154770677 100644 --- a/test/ssl-test.js +++ b/test/ssl-test.js @@ -1,59 +1,60 @@ -"use strict"; +'use strict'; var fs = require('fs'), - soap = require('..'), - https = require('https'), - constants = require('constants'), - assert = require('assert'); + soap = require('..'), + https = require('https'), + constants = require('constants'), + assert = require('assert'); var test = {}; test.service = { StockQuoteService: { StockQuotePort: { - GetLastTradePrice: function(args) { + GetLastTradePrice: function (args) { if (args.tickerSymbol === 'trigger error') { throw new Error('triggered server error'); } else { return { price: 19.56 }; } - } - } - } + }, + }, + }, }; test.sslOptions = { key: fs.readFileSync(__dirname + '/certs/agent2-key.pem'), - cert: fs.readFileSync(__dirname + '/certs/agent2-cert.pem') + cert: fs.readFileSync(__dirname + '/certs/agent2-cert.pem'), }; -describe('SOAP Client(SSL)', function() { - before(function(done) { - fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function(err, data) { +describe('SOAP Client(SSL)', function () { + before(function (done) { + fs.readFile(__dirname + '/wsdl/strict/stockquote.wsdl', 'utf8', function (err, data) { assert.ifError(err); test.wsdl = data; done(); }); }); - beforeEach(function(done) { - test.server = https.createServer(test.sslOptions, function(req, res) { - res.statusCode = 404; - res.end(); - }).listen(51515, function() { - test.soapServer = soap.listen(test.server, '/stockquote', test.service, test.wsdl); - test.baseUrl = - 'https://' + test.server.address().address + ':' + test.server.address().port; - - if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { + beforeEach(function (done) { + test.server = https + .createServer(test.sslOptions, function (req, res) { + res.statusCode = 404; + res.end(); + }) + .listen(51515, function () { + test.soapServer = soap.listen(test.server, '/stockquote', test.service, test.wsdl); test.baseUrl = - 'https://127.0.0.1:' + test.server.address().port; - } - done(); - }); + 'https://' + test.server.address().address + ':' + test.server.address().port; + + if (test.server.address().address === '0.0.0.0' || test.server.address().address === '::') { + test.baseUrl = 'https://127.0.0.1:' + test.server.address().port; + } + done(); + }); }); - afterEach(function(done) { - test.server.close(function() { + afterEach(function (done) { + test.server.close(function () { test.server = null; delete test.soapServer; test.soapServer = null; @@ -61,28 +62,29 @@ describe('SOAP Client(SSL)', function() { }); }); - it('should connect to an SSL server', function(done) { - soap.createClient(__dirname + '/wsdl/strict/stockquote.wsdl', function(err, client) { + it('should connect to an SSL server', function (done) { + soap.createClient(__dirname + '/wsdl/strict/stockquote.wsdl', function (err, client) { assert.ifError(err); client.setEndpoint(test.baseUrl + '/stockquote'); client.setSecurity({ - addOptions:function(options){ - options.cert = test.sslOptions.cert, - options.key = test.sslOptions.key, - options.rejectUnauthorized = false; + addOptions: function (options) { + (options.cert = test.sslOptions.cert), + (options.key = test.sslOptions.key), + (options.rejectUnauthorized = false); options.secureOptions = constants.SSL_OP_NO_TLSv1_2; options.strictSSL = false; options.agent = new https.Agent(options); }, - toXML: function() { return ''; } + toXML: function () { + return ''; + }, }); - client.GetLastTradePrice({ tickerSymbol: 'AAPL'}, function(err, result) { + client.GetLastTradePrice({ tickerSymbol: 'AAPL' }, function (err, result) { assert.ifError(err); assert.equal(19.56, parseFloat(result.price)); done(); }); }); }); - }); diff --git a/test/wsdl-parse-test.js b/test/wsdl-parse-test.js index bb4ddc0a4..b99871717 100644 --- a/test/wsdl-parse-test.js +++ b/test/wsdl-parse-test.js @@ -7,10 +7,16 @@ var assert = require('assert'); describe(__filename, function () { it('should parse recursive elements', function (done) { open_wsdl(path.resolve(__dirname, 'wsdl/recursive.wsdl'), function (err, def) { - assert.equal(def.definitions.messages.operationRequest.parts['constraint[]'].expression, - def.definitions.messages.operationRequest.parts['constraint[]'].expression.expression); - assert.equal(def.definitions.messages.operationRequest.parts['constraint[]'].expression, - def.definitions.messages.operationRequest.parts['constraint[]'].expression.expression['constraint[]'].expression); + assert.equal( + def.definitions.messages.operationRequest.parts['constraint[]'].expression, + def.definitions.messages.operationRequest.parts['constraint[]'].expression.expression + ); + assert.equal( + def.definitions.messages.operationRequest.parts['constraint[]'].expression, + def.definitions.messages.operationRequest.parts['constraint[]'].expression.expression[ + 'constraint[]' + ].expression + ); done(); }); }); @@ -18,17 +24,17 @@ describe(__filename, function () { it('should parse recursive wsdls', function (done) { open_wsdl(path.resolve(__dirname, 'wsdl/recursive/file.wsdl'), function (err, def) { // If we get here then we succeeded - done( err ); + done(err); }); }); - it('should parse recursive wsdls keeping default options', function(done) { + it('should parse recursive wsdls keeping default options', function (done) { open_wsdl(path.resolve(__dirname, 'wsdl/recursive/file.wsdl'), function (err, def) { if (err) { - return done( err ); + return done(err); } - def._includesWsdl.forEach(function(currentWsdl) { + def._includesWsdl.forEach(function (currentWsdl) { assert.deepEqual(def.options, currentWsdl.options); }); @@ -36,22 +42,26 @@ describe(__filename, function () { }); }); - it('should parse recursive wsdls keeping provided options', function(done) { - open_wsdl(path.resolve(__dirname, 'wsdl/recursive/file.wsdl'), { - ignoredNamespaces: { - namespaces: ['targetNamespace', 'typedNamespace'], - override: true - } - } , function (err, def) { - if (err) { - return done( err ); - } + it('should parse recursive wsdls keeping provided options', function (done) { + open_wsdl( + path.resolve(__dirname, 'wsdl/recursive/file.wsdl'), + { + ignoredNamespaces: { + namespaces: ['targetNamespace', 'typedNamespace'], + override: true, + }, + }, + function (err, def) { + if (err) { + return done(err); + } - def._includesWsdl.forEach(function(currentWsdl, index) { - assert.deepEqual(def.options, currentWsdl.options); - }); + def._includesWsdl.forEach(function (currentWsdl, index) { + assert.deepEqual(def.options, currentWsdl.options); + }); - done(); - }); + done(); + } + ); }); }); diff --git a/test/wsdl-test.js b/test/wsdl-test.js index d9f6ec0a6..d6b62c283 100644 --- a/test/wsdl-test.js +++ b/test/wsdl-test.js @@ -1,16 +1,19 @@ -"use strict"; +'use strict'; var fs = require('fs'), - soap = require('..'), - WSDL = require('../lib/wsdl').WSDL, - assert = require('assert'), - sinon = require('sinon'); + soap = require('..'), + WSDL = require('../lib/wsdl').WSDL, + assert = require('assert'), + sinon = require('sinon'); describe('WSDL Parser (strict)', () => { - fs.readdirSync(__dirname+'/wsdl/strict').forEach(function(file) { + fs.readdirSync(__dirname + '/wsdl/strict').forEach(function (file) { if (!/.wsdl$/.exec(file)) return; - it('should parse and describe '+file, (done) => { - soap.createClient(__dirname+'/wsdl/strict/'+file, {strict: true}, function(err, client) { + it('should parse and describe ' + file, (done) => { + soap.createClient(__dirname + '/wsdl/strict/' + file, { strict: true }, function ( + err, + client + ) { assert.ifError(err); client.describe(); done(); @@ -19,54 +22,61 @@ describe('WSDL Parser (strict)', () => { }); it('should catch parse error', (done) => { - soap.createClient(__dirname+'/wsdl/bad.txt', {strict: true}, function(err) { + soap.createClient(__dirname + '/wsdl/bad.txt', { strict: true }, function (err) { assert.notEqual(err, null); done(); }); }); - it("should catch incorrect wsdl", done => { - soap.createClient(__dirname + "/wsdl/bad2.txt", { strict: true }, function( - err - ) { + it('should catch incorrect wsdl', (done) => { + soap.createClient(__dirname + '/wsdl/bad2.txt', { strict: true }, function (err) { assert.notEqual(err, null); done(); }); }); it('should not give error as string', (done) => { - soap.createClient(__dirname+'/wsdl/bad.txt', function(err) { + soap.createClient(__dirname + '/wsdl/bad.txt', function (err) { assert.notEqual(typeof err, 'string'); done(); }); }); it('should parse external wsdl', (done) => { - soap.createClient(__dirname+'/wsdl/wsdlImport/main.wsdl', {strict: true}, function(err, client){ + soap.createClient(__dirname + '/wsdl/wsdlImport/main.wsdl', { strict: true }, function ( + err, + client + ) { assert.ifError(err); - assert.deepEqual(Object.keys(client.wsdl.definitions.schemas), - ['http://example.com/', 'http://schemas.microsoft.com/2003/10/Serialization/Arrays']); + assert.deepEqual(Object.keys(client.wsdl.definitions.schemas), [ + 'http://example.com/', + 'http://schemas.microsoft.com/2003/10/Serialization/Arrays', + ]); assert.equal(typeof client.getLatestVersion, 'function'); done(); }); }); it('should get the parent namespace when parent namespace is empty string', (done) => { - soap.createClient(__dirname+'/wsdl/marketo.wsdl', {strict: true}, function(err, client){ + soap.createClient(__dirname + '/wsdl/marketo.wsdl', { strict: true }, function (err, client) { assert.ifError(err); - client.getLeadChanges({ + client.getLeadChanges( + { batchSize: 1, - startPosition: {activityCreatedAt: '2014-04-14T22:03:48.587Z'}, - activityNameFilter: {stringItem: ['Send Email']} - }, function() { + startPosition: { activityCreatedAt: '2014-04-14T22:03:48.587Z' }, + activityNameFilter: { stringItem: ['Send Email'] }, + }, + function () { done(); - }); + } + ); }); }); it('should describe extended elements in correct order', (done) => { - var expected = '{"DummyService":{"DummyPortType":{"Dummy":{"input":{"DummyRequest":{"DummyField1":"xs:string","DummyField2":"xs:string"},"ExtendedDummyField":"xs:string"},"output":{"DummyResult":"c:DummyResult"}}}}}'; - soap.createClient(__dirname+'/wsdl/extended_element.wsdl', function(err, client){ + var expected = + '{"DummyService":{"DummyPortType":{"Dummy":{"input":{"DummyRequest":{"DummyField1":"xs:string","DummyField2":"xs:string"},"ExtendedDummyField":"xs:string"},"output":{"DummyResult":"c:DummyResult"}}}}}'; + soap.createClient(__dirname + '/wsdl/extended_element.wsdl', function (err, client) { assert.ifError(err); assert.equal(JSON.stringify(client.describe()), expected); done(); @@ -74,15 +84,19 @@ describe('WSDL Parser (strict)', () => { }); it('should handle element ref', (done) => { - var expectedMsg = '' + '' + '001' + ''; - soap.createClient(__dirname + '/wsdl/elementref/foo.wsdl', {strict: true}, function(err, client) { + soap.createClient(__dirname + '/wsdl/elementref/foo.wsdl', { strict: true }, function ( + err, + client + ) { assert.ifError(err); - client.fooOp({paymentRq: {bankSvcRq: {requestUID: '001'}}}, function(err, result) { + client.fooOp({ paymentRq: { bankSvcRq: { requestUID: '001' } } }, function (err, result) { assert.equal(client.lastMessage, expectedMsg); done(); }); @@ -92,9 +106,12 @@ describe('WSDL Parser (strict)', () => { it('should handle type ref', (done) => { var expectedMsg = require('./wsdl/typeref/request.xml.js'); var reqJson = require('./wsdl/typeref/request.json'); - soap.createClient(__dirname + '/wsdl/typeref/order.wsdl', {strict: true}, function(err, client) { + soap.createClient(__dirname + '/wsdl/typeref/order.wsdl', { strict: true }, function ( + err, + client + ) { assert.ifError(err); - client.order(reqJson, function(err, result) { + client.order(reqJson, function (err, result) { assert.equal(client.lastMessage, expectedMsg); done(); }); @@ -104,13 +121,16 @@ describe('WSDL Parser (strict)', () => { it('should parse POJO into xml without making unnecessary recursion', (done) => { var expectedMsg = require('./wsdl/perf/request.xml.js'); var reqJson = require('./wsdl/perf/request.json'); - var spy = sinon.spy(WSDL.prototype, "findChildSchemaObject"); + var spy = sinon.spy(WSDL.prototype, 'findChildSchemaObject'); - soap.createClient(__dirname + '/wsdl/perf/order.wsdl', {strict: true}, function(err, client) { + soap.createClient(__dirname + '/wsdl/perf/order.wsdl', { strict: true }, function ( + err, + client + ) { var i, spyCall; assert.ifError(err); - client.order(reqJson, function(err, result) { + client.order(reqJson, function (err, result) { assert.equal(client.lastMessage, expectedMsg); // since the reqJson does not use the element named "thing", then findChildSchemaObject should never get to the type named RabbitHole @@ -121,7 +141,7 @@ describe('WSDL Parser (strict)', () => { for (i = 0; i < spy.callCount; i++) { spyCall = spy.getCall(i); if (spyCall.args[0]) { - assert.notEqual(spyCall.args[0].$type, "RabbitHole"); + assert.notEqual(spyCall.args[0].$type, 'RabbitHole'); } } @@ -132,7 +152,8 @@ describe('WSDL Parser (strict)', () => { }); it('should get empty namespace prefix', (done) => { - var expectedMsg = '' + '' + @@ -140,9 +161,12 @@ describe('WSDL Parser (strict)', () => { ''; // var expectedMsg = 'gg'; - soap.createClient(__dirname + '/wsdl/elementref/foo.wsdl', {strict: true}, function(err, client) { + soap.createClient(__dirname + '/wsdl/elementref/foo.wsdl', { strict: true }, function ( + err, + client + ) { assert.ifError(err); - client.fooOp({paymentRq: {bankSvcRq: {':requestUID': '001'}}}, function(err, result) { + client.fooOp({ paymentRq: { bankSvcRq: { ':requestUID': '001' } } }, function (err, result) { assert.equal(client.lastMessage, expectedMsg); done(); }); @@ -152,25 +176,27 @@ describe('WSDL Parser (strict)', () => { it('should merge schema with attributes', (done) => { var expectedMsg = '' + - 'How are you?' + + 'How are you?' + ''; - soap.createClient(__dirname + '/wsdl/mergeWithAttributes/main.wsdl', {}, function(err, client) { + soap.createClient(__dirname + '/wsdl/mergeWithAttributes/main.wsdl', {}, function ( + err, + client + ) { assert.ok(!err); - client.AskPeat({ Question: 'How are you?' }, function(err, result) { + client.AskPeat({ Question: 'How are you?' }, function (err, result) { assert.equal(client.lastMessage, expectedMsg); done(); }); }); }); - }); describe('WSDL Parser (non-strict)', () => { - fs.readdirSync(__dirname+'/wsdl').forEach(function(file) { + fs.readdirSync(__dirname + '/wsdl').forEach(function (file) { if (!/.wsdl$/.exec(file)) return; - it('should parse and describe '+file, (done) => { - soap.createClient(__dirname+'/wsdl/'+file, function(err, client) { + it('should parse and describe ' + file, (done) => { + soap.createClient(__dirname + '/wsdl/' + file, function (err, client) { assert.ifError(err); client.describe(); done(); @@ -179,29 +205,30 @@ describe('WSDL Parser (non-strict)', () => { }); it('should not parse connection error', (done) => { - soap.createClient(__dirname+'/wsdl/connection/econnrefused.wsdl', function(err, client) { - assert.ok(/EADDRNOTAVAIL|ECONNREFUSED/.test(err), err); + soap.createClient(__dirname + '/wsdl/connection/econnrefused.wsdl', function (err, client) { + assert.ok(/EADDRNOTAVAIL|ECONNREFUSED/.test(err.code), err); done(); }); }); it('should catch parse error', (done) => { - soap.createClient(__dirname+'/wsdl/bad.txt', function(err) { + soap.createClient(__dirname + '/wsdl/bad.txt', function (err) { assert.notEqual(err, null); done(); }); }); it('should not give error as string', (done) => { - soap.createClient(__dirname+'/wsdl/bad.txt', function(err) { + soap.createClient(__dirname + '/wsdl/bad.txt', function (err) { assert.notEqual(typeof err, 'string'); done(); }); }); it('should load same namespace from included xsd', (done) => { - var expected = '{"DummyService":{"DummyPortType":{"Dummy":{"input":{"ID":"IdType|xs:string|pattern","Name":"NameType|xs:string|minLength,maxLength"},"output":{"Result":"dummy:DummyList"}}}}}'; - soap.createClient(__dirname + '/wsdl/xsdinclude/xsd_include.wsdl', function(err, client) { + var expected = + '{"DummyService":{"DummyPortType":{"Dummy":{"input":{"ID":"IdType|xs:string|pattern","Name":"NameType|xs:string|minLength,maxLength"},"output":{"Result":"dummy:DummyList"}}}}}'; + soap.createClient(__dirname + '/wsdl/xsdinclude/xsd_include.wsdl', function (err, client) { assert.ifError(err); assert.equal(JSON.stringify(client.describe()), expected); done(); @@ -209,7 +236,8 @@ describe('WSDL Parser (non-strict)', () => { }); it('should all attributes to root elements', (done) => { - var expectedMsg = '' + '' + @@ -217,55 +245,62 @@ describe('WSDL Parser (non-strict)', () => { ''; // var expectedMsg = 'gg'; - soap.createClient(__dirname + '/wsdl/elementref/foo.wsdl', {}, function(err, client) { + soap.createClient(__dirname + '/wsdl/elementref/foo.wsdl', {}, function (err, client) { assert.ok(!err); - client.fooOp({paymentRq: { attributes: {'bar1:test': 'attr'}, bankSvcRq: {':requestUID': '001'}}}, function(err, result) { - assert.equal(client.lastMessage, expectedMsg); - done(); - }); + client.fooOp( + { paymentRq: { attributes: { 'bar1:test': 'attr' }, bankSvcRq: { ':requestUID': '001' } } }, + function (err, result) { + assert.equal(client.lastMessage, expectedMsg); + done(); + } + ); }); }); it('should merge schema with attributes', (done) => { var expectedMsg = '' + - 'How are you?' + + 'How are you?' + ''; - soap.createClient(__dirname + '/wsdl/mergeWithAttributes/main.wsdl', {}, function(err, client) { + soap.createClient(__dirname + '/wsdl/mergeWithAttributes/main.wsdl', {}, function ( + err, + client + ) { assert.ok(!err); - client.AskPeat({ Question: 'How are you?' }, function(err, result) { + client.AskPeat({ Question: 'How are you?' }, function (err, result) { assert.equal(client.lastMessage, expectedMsg); done(); }); }); }); - + it('should describe recursive wsdl with extended elements', (done) => { - soap.createClient(__dirname+'/wsdl/extended_recursive.wsdl', function(err, client) { + soap.createClient(__dirname + '/wsdl/extended_recursive.wsdl', function (err, client) { assert.ifError(err); - var desc = client.describe(); - var personDescription = desc.Service1.BasicHttpBinding_IService1.GetPerson.output.GetPersonResult; + var desc = client.describe(); + var personDescription = + desc.Service1.BasicHttpBinding_IService1.GetPerson.output.GetPersonResult; assert.equal(personDescription, personDescription.Department.HeadOfDepartment); done(); }); - }); + }); it('should describe referenced elements with type of the same name', (done) => { - soap.createClient(__dirname+'/wsdl/ref_element_same_as_type.wsdl', function(err, client) { + soap.createClient(__dirname + '/wsdl/ref_element_same_as_type.wsdl', function (err, client) { assert.ifError(err); - var desc = client.describe(); + var desc = client.describe(); assert.equal(desc.MyService.MyPort.MyOperation.input.ExampleContent.MyID, 'xsd:string'); done(); }); - }); + }); it('should describe port type', (done) => { - soap.createClient(__dirname+'/wsdl/ref_element_same_as_type.wsdl', function(err, client) { + soap.createClient(__dirname + '/wsdl/ref_element_same_as_type.wsdl', function (err, client) { assert.ifError(err); - var desc = client.wsdl.definitions.portTypes.MyPortType.description(client.wsdl.definitions); + var desc = client.wsdl.definitions.portTypes.MyPortType.description(client.wsdl.definitions); assert.equal(desc.MyOperation.input.ExampleContent.MyID, 'xsd:string'); done(); }); - }); + }); }); diff --git a/test/wsdl/perf/request.xml.js b/test/wsdl/perf/request.xml.js index 958695933..f02ba39c0 100755 --- a/test/wsdl/perf/request.xml.js +++ b/test/wsdl/perf/request.xml.js @@ -1,3 +1,4 @@ -module.exports = '' + +module.exports = + '' + 'bread' + ''; diff --git a/test/wsdl/typeref/request.xml.js b/test/wsdl/typeref/request.xml.js index 8d19de678..76bbd65d0 100755 --- a/test/wsdl/typeref/request.xml.js +++ b/test/wsdl/typeref/request.xml.js @@ -1,4 +1,5 @@ -module.exports = '' + +module.exports = + '' + '001' + '100' + 'item01' + diff --git a/tsconfig.json b/tsconfig.json index 773e6143c..c57bf648c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,11 @@ { "compileOnSave": true, "compilerOptions": { - "target": "es3", + "target": "es5", "module": "commonjs", - "outDir": "lib", - "sourceMap": true, "declaration": true, - "stripInternal": true + "outDir": "./lib", + "esModuleInterop": true }, "include": [ "src/**/*" @@ -14,4 +13,4 @@ "exclude": [ "node_modules" ] -} +} \ No newline at end of file diff --git a/tslint.json b/tslint.json deleted file mode 100644 index c3767f3af..000000000 --- a/tslint.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "defaultSeverity": "error", - "extends": [ - "tslint:recommended" - ], - "jsRules": {}, - "rules": { - "quotemark": [true, "single"], - "variable-name": false, - "max-line-length": false, - "forin": false, - "object-literal-sort-keys": false, - "no-var-requires": false, - "no-unused-expression": false, - "no-shadowed-variable": false, - "object-literal-shorthand": false, - "max-classes-per-file": false, - "no-empty": false, - "no-conditional-assignment": false, - "no-bitwise": false, - "no-console": false - }, - "rulesDirectory": [] -} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000..44e445c7c --- /dev/null +++ b/yarn.lock @@ -0,0 +1,5195 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@ampproject/remapping@^2.2.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" + integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.26.2": + version "7.26.2" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" + integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== + dependencies: + "@babel/helper-validator-identifier" "^7.25.9" + js-tokens "^4.0.0" + picocolors "^1.0.0" + +"@babel/compat-data@^7.26.5": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" + integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== + +"@babel/core@^7.23.9": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.10.tgz#5c876f83c8c4dcb233ee4b670c0606f2ac3000f9" + integrity sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.26.2" + "@babel/generator" "^7.26.10" + "@babel/helper-compilation-targets" "^7.26.5" + "@babel/helper-module-transforms" "^7.26.0" + "@babel/helpers" "^7.26.10" + "@babel/parser" "^7.26.10" + "@babel/template" "^7.26.9" + "@babel/traverse" "^7.26.10" + "@babel/types" "^7.26.10" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/generator@^7.26.10": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.10.tgz#a60d9de49caca16744e6340c3658dfef6138c3f7" + integrity sha512-rRHT8siFIXQrAYOYqZQVsAr8vJ+cBNqcVAY6m5V8/4QqzaPl+zDBe6cLEPRDuNOUf3ww8RfJVlOyQMoSI+5Ang== + dependencies: + "@babel/parser" "^7.26.10" + "@babel/types" "^7.26.10" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + jsesc "^3.0.2" + +"@babel/helper-compilation-targets@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz#75d92bb8d8d51301c0d49e52a65c9a7fe94514d8" + integrity sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA== + dependencies: + "@babel/compat-data" "^7.26.5" + "@babel/helper-validator-option" "^7.25.9" + browserslist "^4.24.0" + lru-cache "^5.1.1" + semver "^6.3.1" + +"@babel/helper-module-imports@^7.25.9": + version "7.25.9" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz#e7f8d20602ebdbf9ebbea0a0751fb0f2a4141715" + integrity sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw== + dependencies: + "@babel/traverse" "^7.25.9" + "@babel/types" "^7.25.9" + +"@babel/helper-module-transforms@^7.26.0": + version "7.26.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz#8ce54ec9d592695e58d84cd884b7b5c6a2fdeeae" + integrity sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw== + dependencies: + "@babel/helper-module-imports" "^7.25.9" + "@babel/helper-validator-identifier" "^7.25.9" + "@babel/traverse" "^7.25.9" + +"@babel/helper-string-parser@^7.25.9": + version "7.25.9" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz#1aabb72ee72ed35789b4bbcad3ca2862ce614e8c" + integrity sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA== + +"@babel/helper-validator-identifier@^7.25.9": + version "7.25.9" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz#24b64e2c3ec7cd3b3c547729b8d16871f22cbdc7" + integrity sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ== + +"@babel/helper-validator-option@^7.25.9": + version "7.25.9" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz#86e45bd8a49ab7e03f276577f96179653d41da72" + integrity sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw== + +"@babel/helpers@^7.26.10": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.10.tgz#6baea3cd62ec2d0c1068778d63cb1314f6637384" + integrity sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g== + dependencies: + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.10" + +"@babel/parser@^7.23.9", "@babel/parser@^7.26.10", "@babel/parser@^7.26.9": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.10.tgz#e9bdb82f14b97df6569b0b038edd436839c57749" + integrity sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA== + dependencies: + "@babel/types" "^7.26.10" + +"@babel/template@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.26.9.tgz#4577ad3ddf43d194528cff4e1fa6b232fa609bb2" + integrity sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA== + dependencies: + "@babel/code-frame" "^7.26.2" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" + +"@babel/traverse@^7.25.9", "@babel/traverse@^7.26.10": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.10.tgz#43cca33d76005dbaa93024fae536cc1946a4c380" + integrity sha512-k8NuDrxr0WrPH5Aupqb2LCVURP/S0vBEn5mK6iH+GIYob66U5EtoZvcdudR2jQ4cmTwhEwW1DLB+Yyas9zjF6A== + dependencies: + "@babel/code-frame" "^7.26.2" + "@babel/generator" "^7.26.10" + "@babel/parser" "^7.26.10" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.10" + debug "^4.3.1" + globals "^11.1.0" + +"@babel/types@^7.25.9", "@babel/types@^7.26.10", "@babel/types@^7.26.9": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.10.tgz#396382f6335bd4feb65741eacfc808218f859259" + integrity sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ== + dependencies: + "@babel/helper-string-parser" "^7.25.9" + "@babel/helper-validator-identifier" "^7.25.9" + +"@gerrit0/mini-shiki@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@gerrit0/mini-shiki/-/mini-shiki-3.7.0.tgz#7ab9c6fabe0b78949ad383b4d0b4db4ad6cb8a68" + integrity sha512-7iY9wg4FWXmeoFJpUL2u+tsmh0d0jcEJHAIzVxl3TG4KL493JNnisdLAILZ77zcD+z3J0keEXZ+lFzUgzQzPDg== + dependencies: + "@shikijs/engine-oniguruma" "^3.7.0" + "@shikijs/langs" "^3.7.0" + "@shikijs/themes" "^3.7.0" + "@shikijs/types" "^3.7.0" + "@shikijs/vscode-textmate" "^10.0.2" + +"@isaacs/cliui@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" + integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== + dependencies: + string-width "^5.1.2" + string-width-cjs "npm:string-width@^4.2.0" + strip-ansi "^7.0.1" + strip-ansi-cjs "npm:strip-ansi@^6.0.1" + wrap-ansi "^8.1.0" + wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz#10602de5570baea82f8afbfa2630b24e7a8cfe5b" + integrity sha512-ZR0rq/f/E4f4XcgnDvtMWXCUJpi8eO0rssVhmztsZqLIEFA9UUP9zmpE0VxlM+kv/E1ul2I876Fwil2ayptDVg== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" + integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== + +"@istanbuljs/schema@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.8" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz#4f0e06362e01362f823d348f1872b08f666d8142" + integrity sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== + +"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@pkgjs/parseargs@^0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" + integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== + +"@shikijs/engine-oniguruma@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@shikijs/engine-oniguruma/-/engine-oniguruma-3.7.0.tgz#77afe066ed245ae9c3e790ca22344195e974ed54" + integrity sha512-5BxcD6LjVWsGu4xyaBC5bu8LdNgPCVBnAkWTtOCs/CZxcB22L8rcoWfv7Hh/3WooVjBZmFtyxhgvkQFedPGnFw== + dependencies: + "@shikijs/types" "3.7.0" + "@shikijs/vscode-textmate" "^10.0.2" + +"@shikijs/langs@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@shikijs/langs/-/langs-3.7.0.tgz#c201d0218e9f3a74d92bd3f53167f0fb897c5b6e" + integrity sha512-1zYtdfXLr9xDKLTGy5kb7O0zDQsxXiIsw1iIBcNOO8Yi5/Y1qDbJ+0VsFoqTlzdmneO8Ij35g7QKF8kcLyznCQ== + dependencies: + "@shikijs/types" "3.7.0" + +"@shikijs/themes@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@shikijs/themes/-/themes-3.7.0.tgz#e4fb08ca56826dd3b0a48a555140cb090ce0a639" + integrity sha512-VJx8497iZPy5zLiiCTSIaOChIcKQwR0FebwE9S3rcN0+J/GTWwQ1v/bqhTbpbY3zybPKeO8wdammqkpXc4NVjQ== + dependencies: + "@shikijs/types" "3.7.0" + +"@shikijs/types@3.7.0", "@shikijs/types@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@shikijs/types/-/types-3.7.0.tgz#265641647708663ec8a18a9fab29449076da5a17" + integrity sha512-MGaLeaRlSWpnP0XSAum3kP3a8vtcTsITqoEPYdt3lQG3YCdQH4DnEhodkYcNMcU0uW0RffhoD1O3e0vG5eSBBg== + dependencies: + "@shikijs/vscode-textmate" "^10.0.2" + "@types/hast" "^3.0.4" + +"@shikijs/vscode-textmate@^10.0.2": + version "10.0.2" + resolved "https://registry.yarnpkg.com/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz#a90ab31d0cc1dfb54c66a69e515bf624fa7b2224" + integrity sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg== + +"@sinonjs/commons@^1", "@sinonjs/commons@^1.6.0", "@sinonjs/commons@^1.7.0", "@sinonjs/commons@^1.7.2": + version "1.7.2" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.7.2.tgz#505f55c74e0272b43f6c52d81946bed7058fc0e2" + integrity sha512-+DUO6pnp3udV/v2VfUWgaY5BIE1IfT7lLfeDzPVeMT1XKkaAp9LgSI9x5RtrFQoZ9Oi0PgXQQHPaoKu7dCjVxw== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^6.0.0", "@sinonjs/fake-timers@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" + integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== + dependencies: + "@sinonjs/commons" "^1.7.0" + +"@sinonjs/formatio@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@sinonjs/formatio/-/formatio-5.0.1.tgz#f13e713cb3313b1ab965901b01b0828ea6b77089" + integrity sha512-KaiQ5pBf1MpS09MuA0kp6KBQt2JUOQycqVG1NZXvzeaXe5LGFqAKueIS0bw4w0P9r7KuBSVdUk5QjXsUdu2CxQ== + dependencies: + "@sinonjs/commons" "^1" + "@sinonjs/samsam" "^5.0.2" + +"@sinonjs/samsam@^5.0.2", "@sinonjs/samsam@^5.0.3": + version "5.0.3" + resolved "https://registry.yarnpkg.com/@sinonjs/samsam/-/samsam-5.0.3.tgz#86f21bdb3d52480faf0892a480c9906aa5a52938" + integrity sha512-QucHkc2uMJ0pFGjJUDP3F9dq5dx8QIaqISl9QgwLOh6P9yv877uONPGXh/OH/0zmM3tW1JjuJltAZV2l7zU+uQ== + dependencies: + "@sinonjs/commons" "^1.6.0" + lodash.get "^4.4.2" + type-detect "^4.0.8" + +"@sinonjs/text-encoding@^0.7.1": + version "0.7.1" + resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5" + integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ== + +"@textlint/ast-node-types@^12.6.1": + version "12.6.1" + resolved "https://registry.yarnpkg.com/@textlint/ast-node-types/-/ast-node-types-12.6.1.tgz#35ecefe74e701d7f632c083d4fda89cab1b89012" + integrity sha512-uzlJ+ZsCAyJm+lBi7j0UeBbj+Oy6w/VWoGJ3iHRHE5eZ8Z4iK66mq+PG/spupmbllLtz77OJbY89BYqgFyjXmA== + +"@textlint/markdown-to-ast@^12.1.1": + version "12.6.1" + resolved "https://registry.yarnpkg.com/@textlint/markdown-to-ast/-/markdown-to-ast-12.6.1.tgz#fcccb5733b3e76cd0db78a323763ab101f2d803b" + integrity sha512-T0HO+VrU9VbLRiEx/kH4+gwGMHNMIGkp0Pok+p0I33saOOLyhfGvwOKQgvt2qkxzQEV2L5MtGB8EnW4r5d3CqQ== + dependencies: + "@textlint/ast-node-types" "^12.6.1" + debug "^4.3.4" + mdast-util-gfm-autolink-literal "^0.1.3" + remark-footnotes "^3.0.0" + remark-frontmatter "^3.0.0" + remark-gfm "^1.0.0" + remark-parse "^9.0.0" + traverse "^0.6.7" + unified "^9.2.2" + +"@types/body-parser@*": + version "1.19.0" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.0.tgz#0685b3c47eb3006ffed117cdd55164b61f80538f" + integrity sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ== + dependencies: + "@types/connect" "*" + "@types/node" "*" + +"@types/caseless@*": + version "0.12.2" + resolved "https://registry.yarnpkg.com/@types/caseless/-/caseless-0.12.2.tgz#f65d3d6389e01eeb458bd54dc8f52b95a9463bc8" + integrity sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w== + +"@types/color-name@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" + integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== + +"@types/connect@*": + version "3.4.33" + resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.33.tgz#31610c901eca573b8713c3330abc6e6b9f588546" + integrity sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A== + dependencies: + "@types/node" "*" + +"@types/debug@4.1.5": + version "4.1.5" + resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd" + integrity sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ== + +"@types/eslint-visitor-keys@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" + integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== + +"@types/express-serve-static-core@*": + version "4.17.5" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.5.tgz#a00ac7dadd746ae82477443e4d480a6a93ea083c" + integrity sha512-578YH5Lt88AKoADy0b2jQGwJtrBxezXtVe/MBqWXKZpqx91SnC0pVkVCcxcytz3lWW+cHBYDi3Ysh0WXc+rAYw== + dependencies: + "@types/node" "*" + "@types/range-parser" "*" + +"@types/express@4.17.6": + version "4.17.6" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.6.tgz#6bce49e49570507b86ea1b07b806f04697fac45e" + integrity sha512-n/mr9tZI83kd4azlPG5y997C/M4DNABK9yErhFM6hKdym4kkmd9j0vtsJyjFIwfRBxtrxZtAfGZCNRIBMFLK5w== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "*" + "@types/qs" "*" + "@types/serve-static" "*" + +"@types/hast@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@types/hast/-/hast-3.0.4.tgz#1d6b39993b82cea6ad783945b0508c25903e15aa" + integrity sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ== + dependencies: + "@types/unist" "*" + +"@types/json-schema@^7.0.3": + version "7.0.4" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339" + integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA== + +"@types/lodash@4.14.150": + version "4.14.150" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.150.tgz#649fe44684c3f1fcb6164d943c5a61977e8cf0bd" + integrity sha512-kMNLM5JBcasgYscD9x/Gvr6lTAv2NVgsKtet/hm93qMyf/D1pt+7jeEZklKJKxMVmXjxbRVQQGfqDSfipYCO6w== + +"@types/mdast@^3.0.0": + version "3.0.15" + resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.15.tgz#49c524a263f30ffa28b71ae282f813ed000ab9f5" + integrity sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ== + dependencies: + "@types/unist" "^2" + +"@types/mime@*": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.1.tgz#dc488842312a7f075149312905b5e3c0b054c79d" + integrity sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw== + +"@types/node@*", "@types/node@13.13.0": + version "13.13.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.0.tgz#30d2d09f623fe32cde9cb582c7a6eda2788ce4a8" + integrity sha512-WE4IOAC6r/yBZss1oQGM5zs2D7RuKR6Q+w+X2SouPofnWn+LbCqClRyhO3ZE7Ix8nmFgo/oVuuE01cJT2XB13A== + +"@types/qs@*": + version "6.9.1" + resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.1.tgz#937fab3194766256ee09fcd40b781740758617e7" + integrity sha512-lhbQXx9HKZAPgBkISrBcmAcMpZsmpe/Cd/hY7LGZS5OfkySUBItnPZHgQPssWYUET8elF+yCFBbP1Q0RZPTdaw== + +"@types/range-parser@*": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c" + integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA== + +"@types/request@^2.48.4": + version "2.48.4" + resolved "https://registry.yarnpkg.com/@types/request/-/request-2.48.4.tgz#df3d43d7b9ed3550feaa1286c6eabf0738e6cf7e" + integrity sha512-W1t1MTKYR8PxICH+A4HgEIPuAC3sbljoEVfyZbeFJJDbr30guDspJri2XOaM2E+Un7ZjrihaDi7cf6fPa2tbgw== + dependencies: + "@types/caseless" "*" + "@types/node" "*" + "@types/tough-cookie" "*" + form-data "^2.5.0" + +"@types/sax@1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@types/sax/-/sax-1.2.1.tgz#e0248be936ece791a82db1a57f3fb5f7c87e8172" + integrity sha512-dqYdvN7Sbw8QT/0Ci5rhjE4/iCMJEM0Y9rHpCu+gGXD9Lwbz28t6HI2yegsB6BoV1sShRMU6lAmAcgRjmFy7LA== + dependencies: + "@types/node" "*" + +"@types/serve-static@*": + version "1.13.3" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1" + integrity sha512-oprSwp094zOglVrXdlo/4bAHtKTAxX6VT8FOZlBKrmyLbNvE1zxZyJ6yikMVtHIvwP45+ZQGJn+FdXGKTozq0g== + dependencies: + "@types/express-serve-static-core" "*" + "@types/mime" "*" + +"@types/tough-cookie@*": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.0.tgz#fef1904e4668b6e5ecee60c52cc6a078ffa6697d" + integrity sha512-I99sngh224D0M7XgW1s120zxCt3VYQ3IQsuw3P3jbq5GG4yc79+ZjyKznyOGIQrflfylLgcfekeZW/vk0yng6A== + +"@types/unist@*": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c" + integrity sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q== + +"@types/unist@^2", "@types/unist@^2.0.0", "@types/unist@^2.0.2": + version "2.0.11" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.11.tgz#11af57b127e32487774841f7a4e54eab166d03c4" + integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA== + +"@types/uuid@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-7.0.2.tgz#d680a9c596ef84abf5c4c07a32ffd66d582526f8" + integrity sha512-8Ly3zIPTnT0/8RCU6Kg/G3uTICf9sRwYOpUzSIM3503tLIKcnJPRuinHhXngJUy2MntrEf6dlpOHXJju90Qh5w== + +"@typescript-eslint/eslint-plugin@2.28.0": + version "2.28.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.28.0.tgz#4431bc6d3af41903e5255770703d4e55a0ccbdec" + integrity sha512-w0Ugcq2iatloEabQP56BRWJowliXUP5Wv6f9fKzjJmDW81hOTBxRoJ4LoEOxRpz9gcY51Libytd2ba3yLmSOfg== + dependencies: + "@typescript-eslint/experimental-utils" "2.28.0" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + tsutils "^3.17.1" + +"@typescript-eslint/experimental-utils@2.28.0": + version "2.28.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.28.0.tgz#1fd0961cd8ef6522687b4c562647da6e71f8833d" + integrity sha512-4SL9OWjvFbHumM/Zh/ZeEjUFxrYKtdCi7At4GyKTbQlrj1HcphIDXlje4Uu4cY+qzszR5NdVin4CCm6AXCjd6w== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "2.28.0" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + +"@typescript-eslint/parser@2.28.0": + version "2.28.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.28.0.tgz#bb761286efd2b0714761cab9d0ee5847cf080385" + integrity sha512-RqPybRDquui9d+K86lL7iPqH6Dfp9461oyqvlXMNtap+PyqYbkY5dB7LawQjDzot99fqzvS0ZLZdfe+1Bt3Jgw== + dependencies: + "@types/eslint-visitor-keys" "^1.0.0" + "@typescript-eslint/experimental-utils" "2.28.0" + "@typescript-eslint/typescript-estree" "2.28.0" + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/typescript-estree@2.28.0": + version "2.28.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.28.0.tgz#d34949099ff81092c36dc275b6a1ea580729ba00" + integrity sha512-HDr8MP9wfwkiuqzRVkuM3BeDrOC4cKbO5a6BymZBHUt5y/2pL0BXD6I/C/ceq2IZoHWhcASk+5/zo+dwgu9V8Q== + dependencies: + debug "^4.1.1" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^6.3.0" + tsutils "^3.17.1" + +"@xmldom/xmldom@^0.7.9": + version "0.7.9" + resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.9.tgz#7f9278a50e737920e21b297b8a35286e9942c056" + integrity sha512-yceMpm/xd4W2a85iqZyO09gTnHvXF6pyiWjD2jcOJs7hRoZtNNOO1eJlhHj1ixA+xip2hOyGn+LgcvLCMo5zXA== + +accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-jsx@^5.2.0: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn@^7.1.1: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +aggregate-error@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz#db2fe7246e536f40d9b5442a39e117d7dd6a24e0" + integrity sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv@^6.10.0, ajv@^6.10.2: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^6.5.5: + version "6.12.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.0.tgz#06d60b96d87b8454a5adaba86e7854da629db4b7" + integrity sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +anchor-markdown-header@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/anchor-markdown-header/-/anchor-markdown-header-0.6.0.tgz#908f2031281766f44ac350380ca0de77ab7065b8" + integrity sha512-v7HJMtE1X7wTpNFseRhxsY/pivP4uAJbidVhPT+yhz4i/vV1+qx371IXuV9V7bN6KjFtheLJxqaSm0Y/8neJTA== + dependencies: + emoji-regex "~10.1.0" + +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-regex@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" + integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.1.0.tgz#95ec409c69619d6cb1b8b34f14b660ef28ebd654" + integrity sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA== + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" + integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== + dependencies: + "@types/color-name" "^1.1.1" + color-convert "^2.0.1" + +ansi-styles@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + +append-transform@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-2.0.0.tgz#99d9d29c7b38391e6f428d28ce136551f0b77e12" + integrity sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg== + dependencies: + default-require-extensions "^3.0.0" + +archy@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" + integrity sha1-+cjBN1fMHde8N5rHeyxipcKGjEA= + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +array-buffer-byte-length@^1.0.1, array-buffer-byte-length@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz#384d12a37295aec3769ab022ad323a18a51ccf8b" + integrity sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw== + dependencies: + call-bound "^1.0.3" + is-array-buffer "^3.0.5" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +array-includes@^3.0.3: + version "3.1.1" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.1.tgz#cdd67e6852bdf9c1215460786732255ed2459348" + integrity sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0" + is-string "^1.0.5" + +array.prototype.flat@^1.2.1: + version "1.2.3" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz#0de82b426b0318dbfdb940089e38b043d37f6c7b" + integrity sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + +arraybuffer.prototype.slice@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz#9d760d84dbdd06d0cbf92c8849615a1a7ab3183c" + integrity sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ== + dependencies: + array-buffer-byte-length "^1.0.1" + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.5" + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + is-array-buffer "^3.0.4" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +async-function@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-function/-/async-function-1.0.0.tgz#509c9fca60eaf85034c6829838188e4e4c8ffb2b" + integrity sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +available-typed-arrays@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" + integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== + dependencies: + possible-typed-array-names "^1.0.0" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.8.0: + version "1.9.1" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.1.tgz#7e33d8f7d449b3f673cd72deb9abdc552dbe528e" + integrity sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug== + +bail@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.5.tgz#b6fa133404a392cbc1f8c4bf63f5953351e7a776" + integrity sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ== + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + dependencies: + tweetnacl "^0.14.3" + +body-parser@1.20.1: + version "1.20.1" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668" + integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw== + dependencies: + bytes "3.1.2" + content-type "~1.0.4" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.11.0" + raw-body "2.5.1" + type-is "~1.6.18" + unpipe "1.0.0" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +browser-stdout@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" + integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== + +browserslist@^4.24.0: + version "4.24.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" + integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== + dependencies: + caniuse-lite "^1.0.30001688" + electron-to-chromium "^1.5.73" + node-releases "^2.0.19" + update-browserslist-db "^1.1.1" + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +caching-transform@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/caching-transform/-/caching-transform-4.0.0.tgz#00d297a4206d71e2163c39eaffa8157ac0651f0f" + integrity sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA== + dependencies: + hasha "^5.0.0" + make-dir "^3.0.0" + package-hash "^4.0.0" + write-file-atomic "^3.0.0" + +call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + +call-bind@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" + integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== + dependencies: + function-bind "^1.1.1" + get-intrinsic "^1.0.2" + +call-bind@^1.0.7, call-bind@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c" + integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww== + dependencies: + call-bind-apply-helpers "^1.0.0" + es-define-property "^1.0.0" + get-intrinsic "^1.2.4" + set-function-length "^1.2.2" + +call-bound@^1.0.2, call-bound@^1.0.3, call-bound@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== + dependencies: + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.0.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + +caniuse-lite@^1.0.30001688: + version "1.0.30001707" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001707.tgz#c5e104d199e6f4355a898fcd995a066c7eb9bf41" + integrity sha512-3qtRjw/HQSMlDWf+X79N206fepf4SOOU6SQLMaq/0KkZLmSjPxAkBOQQ+FxbHKfHmYLZFfdWsO3KA90ceHPSnw== + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +ccount@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043" + integrity sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg== + +chalk@^2.1.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.1.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +character-entities-legacy@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1" + integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA== + +character-entities@^1.0.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b" + integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw== + +character-reference-invalid@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560" + integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg== + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +chokidar@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.3.tgz#7be37a4c03c9aee1ecfe862a4a23b2c70c205d30" + integrity sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA== + dependencies: + readdirp "^4.0.1" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + +cli@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cli/-/cli-1.0.1.tgz#22817534f24bfa4950c34d532d48ecbc621b8c14" + integrity sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ= + dependencies: + exit "0.1.2" + glob "^7.1.1" + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +colors@1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" + integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== + +combined-stream@^1.0.8, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +concat-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" + integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.0.2" + typedarray "^0.0.6" + +console-browserify@1.1.x: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA= + dependencies: + date-now "^0.1.4" + +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= + +content-disposition@0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +convert-source-map@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" + integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== + dependencies: + safe-buffer "~5.1.1" + +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== + +cookie@0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" + integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +coveralls@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.1.1.tgz#f5d4431d8b5ae69c5079c8f8ca00d64ac77cf081" + integrity sha512-+dxnG2NHncSD1NrqbSM3dn/lE57O6Qf/koe9+I7c+wzkqRmEvcp0kgJdxKInzYzkICKkFMZsX3Vct3++tsF9ww== + dependencies: + js-yaml "^3.13.1" + lcov-parse "^1.0.0" + log-driver "^1.2.7" + minimist "^1.2.5" + request "^2.88.2" + +cross-spawn@^6.0.5: + version "6.0.6" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.6.tgz#30d0efa0712ddb7eb5a76e1e8721bffafa6b5d57" + integrity sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.2.tgz#d0d7dcfa74e89115c7619f4f721a94e1fdb716d6" + integrity sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +cross-spawn@^7.0.6: + version "7.0.6" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" + integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +data-view-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz#211a03ba95ecaf7798a8c7198d79536211f88570" + integrity sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + is-data-view "^1.0.2" + +data-view-byte-length@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz#9e80f7ca52453ce3e93d25a35318767ea7704735" + integrity sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + is-data-view "^1.0.2" + +data-view-byte-offset@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz#068307f9b71ab76dbbe10291389e020856606191" + integrity sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + is-data-view "^1.0.1" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= + +debug@2.6.9, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^4.0.0, debug@^4.0.1, debug@^4.3.1, debug@^4.3.4, debug@^4.3.5: + version "4.4.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" + integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== + dependencies: + ms "^2.1.3" + +debug@^4.1.0, debug@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + +decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decamelize@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" + integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== + +deep-is@~0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +default-require-extensions@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-3.0.0.tgz#e03f93aac9b2b6443fc52e5e4a37b3ad9ad8df96" + integrity sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg== + dependencies: + strip-bom "^4.0.0" + +define-data-property@^1.0.1, define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + +define-properties@^1.1.2, define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +depd@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== + +des.js@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.1.0.tgz#1d37f5766f3bbff4ee9638e871a8768c173b81da" + integrity sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg== + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + integrity sha512-3NdhDuEXnfun/z7x9GOElY49LoqVHoGScmOKwmxhsS8N5Y+Z8KyPPDnaSzqWgYt/ji4mqwfTS34Htrk0zPIXVg== + +diff@4.0.2, diff@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +diff@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-7.0.0.tgz#3fb34d387cd76d803f6eebea67b921dab0182a9a" + integrity sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw== + +doctoc@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/doctoc/-/doctoc-2.2.1.tgz#83f6a6bf4df97defbe027c9a82d13091a138ffe2" + integrity sha512-qNJ1gsuo7hH40vlXTVVrADm6pdg30bns/Mo7Nv1SxuXSM1bwF9b4xQ40a6EFT/L1cI+Yylbyi8MPI4G4y7XJzQ== + dependencies: + "@textlint/markdown-to-ast" "^12.1.1" + anchor-markdown-header "^0.6.0" + htmlparser2 "^7.2.0" + minimist "^1.2.6" + underscore "^1.13.2" + update-section "^0.3.3" + +doctrine@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +dom-serializer@0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" + integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== + dependencies: + domelementtype "^2.0.1" + entities "^2.0.0" + +dom-serializer@^1.0.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.4.1.tgz#de5d41b1aea290215dc45a6dae8adcf1d32e2d30" + integrity sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.2.0" + entities "^2.0.0" + +domelementtype@1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== + +domelementtype@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.0.1.tgz#1f8bdfe91f5a78063274e803b4bdcedf6e94f94d" + integrity sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ== + +domelementtype@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" + integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== + +domhandler@2.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.3.0.tgz#2de59a0822d5027fabff6f032c2b25a2a8abe738" + integrity sha1-LeWaCCLVAn+r/28DLCsloqir5zg= + dependencies: + domelementtype "1" + +domhandler@^4.2.0, domhandler@^4.2.2: + version "4.3.1" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.1.tgz#8d792033416f59d68bc03a5aa7b018c1ca89279c" + integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ== + dependencies: + domelementtype "^2.2.0" + +domutils@1.5: + version "1.5.1" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" + integrity sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8= + dependencies: + dom-serializer "0" + domelementtype "1" + +domutils@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135" + integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A== + dependencies: + dom-serializer "^1.0.1" + domelementtype "^2.2.0" + domhandler "^4.2.0" + +dunder-proto@^1.0.0, dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +duplexify@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-4.1.1.tgz#7027dc374f157b122a8ae08c2d3ea4d2d953aa61" + integrity sha512-DY3xVEmVHTv1wSzKNbwoU6nVjzI369Y6sPoqfYr0/xlx3IdX2n94xIszTcjPO8W8ZIv0Wb0PXNcjuZyT4wiICA== + dependencies: + end-of-stream "^1.4.1" + inherits "^2.0.3" + readable-stream "^3.1.1" + stream-shift "^1.0.0" + +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +electron-to-chromium@^1.5.73: + version "1.5.123" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.123.tgz#fae5bdba0ba27045895176327aa79831aba0790c" + integrity sha512-refir3NlutEZqlKaBLK0tzlVLe5P2wDKS7UQt/3SpibizgsRAPOsqQC3ffw1nlv3ze5gjRQZYHoPymgVZkplFA== + +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + +emoji-regex@~10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.1.0.tgz#d50e383743c0f7a5945c47087295afc112e3cf66" + integrity sha512-xAEnNCT3w2Tg6MA7ly6QqYJvEoY1tm9iIjJ3yMKK9JPlWuRHAMoe5iETwQnx3M9TVbFMfsrBgWKR+IsmswwNjg== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +end-of-stream@^1.4.1: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +entities@1.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-1.0.0.tgz#b2987aa3821347fcde642b24fdfc9e4fb712bf26" + integrity sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY= + +entities@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.0.tgz#68d6084cab1b079767540d80e56a39b423e4abf4" + integrity sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw== + +entities@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/entities/-/entities-3.0.1.tgz#2b887ca62585e96db3903482d336c1006c3001d4" + integrity sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q== + +entities@^4.4.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" + integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== + +error-ex@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.17.0, es-abstract@^1.17.0-next.1, es-abstract@^1.17.5: + version "1.17.5" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.5.tgz#d8c9d1d66c8981fb9200e2251d799eee92774ae9" + integrity sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg== + dependencies: + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + is-callable "^1.1.5" + is-regex "^1.0.5" + object-inspect "^1.7.0" + object-keys "^1.1.1" + object.assign "^4.1.0" + string.prototype.trimleft "^2.1.1" + string.prototype.trimright "^2.1.1" + +es-abstract@^1.23.5, es-abstract@^1.23.9: + version "1.23.9" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.9.tgz#5b45994b7de78dada5c1bebf1379646b32b9d606" + integrity sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA== + dependencies: + array-buffer-byte-length "^1.0.2" + arraybuffer.prototype.slice "^1.0.4" + available-typed-arrays "^1.0.7" + call-bind "^1.0.8" + call-bound "^1.0.3" + data-view-buffer "^1.0.2" + data-view-byte-length "^1.0.2" + data-view-byte-offset "^1.0.1" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + es-set-tostringtag "^2.1.0" + es-to-primitive "^1.3.0" + function.prototype.name "^1.1.8" + get-intrinsic "^1.2.7" + get-proto "^1.0.0" + get-symbol-description "^1.1.0" + globalthis "^1.0.4" + gopd "^1.2.0" + has-property-descriptors "^1.0.2" + has-proto "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + internal-slot "^1.1.0" + is-array-buffer "^3.0.5" + is-callable "^1.2.7" + is-data-view "^1.0.2" + is-regex "^1.2.1" + is-shared-array-buffer "^1.0.4" + is-string "^1.1.1" + is-typed-array "^1.1.15" + is-weakref "^1.1.0" + math-intrinsics "^1.1.0" + object-inspect "^1.13.3" + object-keys "^1.1.1" + object.assign "^4.1.7" + own-keys "^1.0.1" + regexp.prototype.flags "^1.5.3" + safe-array-concat "^1.1.3" + safe-push-apply "^1.0.0" + safe-regex-test "^1.1.0" + set-proto "^1.0.0" + string.prototype.trim "^1.2.10" + string.prototype.trimend "^1.0.9" + string.prototype.trimstart "^1.0.8" + typed-array-buffer "^1.0.3" + typed-array-byte-length "^1.0.3" + typed-array-byte-offset "^1.0.4" + typed-array-length "^1.0.7" + unbox-primitive "^1.1.0" + which-typed-array "^1.1.18" + +es-define-property@^1.0.0, es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== + dependencies: + es-errors "^1.3.0" + +es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== + dependencies: + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +es-to-primitive@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.3.0.tgz#96c89c82cc49fd8794a24835ba3e1ff87f214e18" + integrity sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g== + dependencies: + is-callable "^1.2.7" + is-date-object "^1.0.5" + is-symbol "^1.0.4" + +es6-error@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d" + integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== + +escalade@^3.1.1, escalade@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +eslint-config-prettier@6.10.1: + version "6.10.1" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.10.1.tgz#129ef9ec575d5ddc0e269667bf09defcd898642a" + integrity sha512-svTy6zh1ecQojvpbJSgH3aei/Rt7C6i090l5f2WQ4aB05lYHeZIR1qL4wZyyILTbtmnbHP5Yn8MrsOJMGa8RkQ== + dependencies: + get-stdin "^6.0.0" + +eslint-import-resolver-node@^0.3.2: + version "0.3.3" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.3.tgz#dbaa52b6b2816b50bc6711af75422de808e98404" + integrity sha512-b8crLDo0M5RSe5YG8Pu2DYBj71tSB6OvXkfzwbJU2w7y8P4/yo0MyF8jU26IEuEuHF2K5/gcAJE3LhQGqBBbVg== + dependencies: + debug "^2.6.9" + resolve "^1.13.1" + +eslint-module-utils@^2.4.1: + version "2.6.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz#579ebd094f56af7797d19c9866c9c9486629bfa6" + integrity sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA== + dependencies: + debug "^2.6.9" + pkg-dir "^2.0.0" + +eslint-plugin-import@2.20.2: + version "2.20.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.20.2.tgz#91fc3807ce08be4837141272c8b99073906e588d" + integrity sha512-FObidqpXrR8OnCh4iNsxy+WACztJLXAHBO5hK79T1Hc77PgQZkyDGA5Ag9xAvRpglvLNxhH/zSmZ70/pZ31dHg== + dependencies: + array-includes "^3.0.3" + array.prototype.flat "^1.2.1" + contains-path "^0.1.0" + debug "^2.6.9" + doctrine "1.5.0" + eslint-import-resolver-node "^0.3.2" + eslint-module-utils "^2.4.1" + has "^1.0.3" + minimatch "^3.0.4" + object.values "^1.1.0" + read-pkg-up "^2.0.0" + resolve "^1.12.0" + +eslint-plugin-prettier@3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.3.tgz#ae116a0fc0e598fdae48743a4430903de5b4e6ca" + integrity sha512-+HG5jmu/dN3ZV3T6eCD7a4BlAySdN7mLIbJYo0z1cFQuI+r2DiTJEFeF68ots93PsnrMxbzIZ2S/ieX+mkrBeQ== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-scope@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" + integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" + integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.0.0.tgz#7be1cc70f27a72a76cd14aa698bcabed6890e1cd" + integrity sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-visitor-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" + integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== + +eslint@6.8.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" + integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.10.0" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^3.0.0" + eslint-scope "^5.0.0" + eslint-utils "^1.4.3" + eslint-visitor-keys "^1.1.0" + espree "^6.1.2" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^5.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^7.0.0" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.14" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.3" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^6.1.2" + strip-ansi "^5.2.0" + strip-json-comments "^3.0.1" + table "^5.2.3" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^6.1.2: + version "6.2.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" + integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== + dependencies: + acorn "^7.1.1" + acorn-jsx "^5.2.0" + eslint-visitor-keys "^1.1.0" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.0.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" + integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" + integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== + dependencies: + estraverse "^4.1.0" + +estraverse@^4.1.0, estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642" + integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +exit@0.1.2, exit@0.1.x: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +express@^4.18.2: + version "4.18.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59" + integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.1" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.5.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.2.0" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.7" + qs "6.11.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.18.0" + serve-static "1.15.0" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +extend@^3.0.0, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4" + integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== + +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fault@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/fault/-/fault-1.0.4.tgz#eafcfc0a6d214fc94601e170df29954a4f842f13" + integrity sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA== + dependencies: + format "^0.2.0" + +figures@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" + integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== + dependencies: + flat-cache "^2.0.1" + +finalhandler@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +finalhandler@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32" + integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" + +find-cache-dir@^3.2.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880" + integrity sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ== + dependencies: + commondir "^1.0.1" + make-dir "^3.0.2" + pkg-dir "^4.1.0" + +find-up@^2.0.0, find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + +flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + +flatted@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" + integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== + +for-each@^0.3.3, for-each@^0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.5.tgz#d650688027826920feeb0af747ee7b9421a41d47" + integrity sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg== + dependencies: + is-callable "^1.2.7" + +foreground-child@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" + integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^3.0.2" + +foreground-child@^3.1.0, foreground-child@^3.3.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.1.tgz#32e8e9ed1b68a3497befb9ac2b6adf92a638576f" + integrity sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw== + dependencies: + cross-spawn "^7.0.6" + signal-exit "^4.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +form-data@^2.5.0, form-data@^2.5.4, form-data@~2.3.2: + version "2.5.5" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.5.5.tgz#a5f6364ad7e4e67e95b4a07e2d8c6f711c74f624" + integrity sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" + hasown "^2.0.2" + mime-types "^2.1.35" + safe-buffer "^5.2.1" + +format@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b" + integrity sha1-1hcBB+nv3E7TDJ3DkBbflCtctYs= + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +fromentries@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.2.0.tgz#e6aa06f240d6267f913cea422075ef88b63e7897" + integrity sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ== + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +function.prototype.name@^1.1.6, function.prototype.name@^1.1.8: + version "1.1.8" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.8.tgz#e68e1df7b259a5c949eeef95cdbde53edffabb78" + integrity sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + define-properties "^1.2.1" + functions-have-names "^1.2.3" + hasown "^2.0.2" + is-callable "^1.2.7" + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.1, get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-intrinsic@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82" + integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-proto "^1.0.1" + has-symbols "^1.0.3" + +get-intrinsic@^1.2.4, get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.2.7, get-intrinsic@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== + dependencies: + call-bind-apply-helpers "^1.0.2" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.1.1" + function-bind "^1.1.2" + get-proto "^1.0.1" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-proto@^1.0.0, get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== + +get-symbol-description@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.1.0.tgz#7bdd54e0befe8ffc9f3b4e203220d9f1e881b6ee" + integrity sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +glob-parent@^5.0.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@7.1.6, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + 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" + +glob@^10.4.5: + version "10.4.5" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" + integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== + dependencies: + foreground-child "^3.1.0" + jackspeak "^3.1.2" + minimatch "^9.0.4" + minipass "^7.1.2" + package-json-from-dist "^1.0.0" + path-scurry "^1.11.1" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^12.1.0: + version "12.4.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" + integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== + dependencies: + type-fest "^0.8.1" + +globalthis@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236" + integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ== + dependencies: + define-properties "^1.2.1" + gopd "^1.0.1" + +gopd@^1.0.1, gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + +graceful-fs@^4.1.15, graceful-fs@^4.1.2: + version "4.2.3" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" + integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + dependencies: + ajv "^6.5.5" + har-schema "^2.0.0" + +has-bigints@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.1.0.tgz#28607e965ac967e03cd2a2c70a2636a1edad49fe" + integrity sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" + integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== + +has-proto@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.2.0.tgz#5de5a6eabd95fdffd9818b43055e8065e39fe9d5" + integrity sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ== + dependencies: + dunder-proto "^1.0.0" + +has-symbols@^1.0.0, has-symbols@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" + integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== + +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hasha@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/hasha/-/hasha-5.2.0.tgz#33094d1f69c40a4a6ac7be53d5fe3ff95a269e0c" + integrity sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw== + dependencies: + is-stream "^2.0.0" + type-fest "^0.8.0" + +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +he@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +hosted-git-info@^2.1.4: + version "2.8.8" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" + integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +htmlparser2@3.8.x: + version "3.8.3" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.8.3.tgz#996c28b191516a8be86501a7d79757e5c70c1068" + integrity sha1-mWwosZFRaovoZQGn15dX5ccMEGg= + dependencies: + domelementtype "1" + domhandler "2.3" + domutils "1.5" + entities "1.0" + readable-stream "1.1" + +htmlparser2@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-7.2.0.tgz#8817cdea38bbc324392a90b1990908e81a65f5a5" + integrity sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.2.2" + domutils "^2.8.0" + entities "^3.0.1" + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-errors@~1.7.2: + version "1.7.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" + integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== + dependencies: + depd "~1.1.2" + inherits "2.0.4" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +httpntlm@^1.8.13: + version "1.8.13" + resolved "https://registry.yarnpkg.com/httpntlm/-/httpntlm-1.8.13.tgz#4130e555701b58207303bf757a4e1e41c06835bd" + integrity sha512-2F2FDPiWT4rewPzNMg3uPhNkP3NExENlUGADRUDPQvuftuUTGW98nLZtGemCIW3G40VhWZYgkIDcQFAwZ3mf2Q== + dependencies: + des.js "^1.0.1" + httpreq ">=0.4.22" + js-md4 "^0.3.2" + underscore "~1.12.1" + +httpreq@>=0.4.22: + version "0.4.24" + resolved "https://registry.yarnpkg.com/httpreq/-/httpreq-0.4.24.tgz#4335ffd82cd969668a39465c929ac61d6393627f" + integrity sha1-QzX/2CzZaWaKOUZckprGHWOTYn8= + +iconv-lite@0.4.24, iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +import-fresh@^3.0.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.1.tgz#9cecb56503c0ada1f2741dbbd6546e4b13b57ccf" + integrity sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inquirer@^7.0.0: + version "7.3.3" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.3.3.tgz#04d176b2af04afc157a83fd7c100e98ee0aad003" + integrity sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.19" + mute-stream "0.0.8" + run-async "^2.4.0" + rxjs "^6.6.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + +internal-slot@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.1.0.tgz#1eac91762947d2f7056bc838d93e13b2e9604961" + integrity sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw== + dependencies: + es-errors "^1.3.0" + hasown "^2.0.2" + side-channel "^1.1.0" + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +is-alphabetical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d" + integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg== + +is-alphanumerical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf" + integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A== + dependencies: + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + +is-array-buffer@^3.0.4, is-array-buffer@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.5.tgz#65742e1e687bd2cc666253068fd8707fe4d44280" + integrity sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + get-intrinsic "^1.2.6" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-async-function@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-async-function/-/is-async-function-2.1.1.tgz#3e69018c8e04e73b738793d020bfe884b9fd3523" + integrity sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ== + dependencies: + async-function "^1.0.0" + call-bound "^1.0.3" + get-proto "^1.0.1" + has-tostringtag "^1.0.2" + safe-regex-test "^1.1.0" + +is-bigint@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.1.0.tgz#dda7a3445df57a42583db4228682eba7c4170672" + integrity sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ== + dependencies: + has-bigints "^1.0.2" + +is-boolean-object@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.2.2.tgz#7067f47709809a393c71ff5bb3e135d8a9215d9e" + integrity sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A== + dependencies: + call-bound "^1.0.3" + has-tostringtag "^1.0.2" + +is-buffer@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" + integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== + +is-callable@^1.1.4, is-callable@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" + integrity sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q== + +is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + +is-data-view@^1.0.1, is-data-view@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-data-view/-/is-data-view-1.0.2.tgz#bae0a41b9688986c2188dda6657e56b8f9e63b8e" + integrity sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw== + dependencies: + call-bound "^1.0.2" + get-intrinsic "^1.2.6" + is-typed-array "^1.1.13" + +is-date-object@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" + integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== + +is-date-object@^1.0.5, is-date-object@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.1.0.tgz#ad85541996fc7aa8b2729701d27b7319f95d82f7" + integrity sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg== + dependencies: + call-bound "^1.0.2" + has-tostringtag "^1.0.2" + +is-decimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" + integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw== + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-finalizationregistry@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz#eefdcdc6c94ddd0674d9c85887bf93f944a97c90" + integrity sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg== + dependencies: + call-bound "^1.0.3" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-generator-function@^1.0.10: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.1.0.tgz#bf3eeda931201394f57b5dba2800f91a238309ca" + integrity sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ== + dependencies: + call-bound "^1.0.3" + get-proto "^1.0.0" + has-tostringtag "^1.0.2" + safe-regex-test "^1.1.0" + +is-glob@^4.0.0, is-glob@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + +is-hexadecimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7" + integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw== + +is-map@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e" + integrity sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw== + +is-number-object@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.1.1.tgz#144b21e95a1bc148205dcc2814a9134ec41b2541" + integrity sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw== + dependencies: + call-bound "^1.0.3" + has-tostringtag "^1.0.2" + +is-plain-obj@^2.0.0, is-plain-obj@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== + +is-regex@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" + integrity sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ== + dependencies: + has "^1.0.3" + +is-regex@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.2.1.tgz#76d70a3ed10ef9be48eb577887d74205bf0cad22" + integrity sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g== + dependencies: + call-bound "^1.0.2" + gopd "^1.2.0" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + +is-set@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.3.tgz#8ab209ea424608141372ded6e0cb200ef1d9d01d" + integrity sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg== + +is-shared-array-buffer@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz#9b67844bd9b7f246ba0708c3a93e34269c774f6f" + integrity sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A== + dependencies: + call-bound "^1.0.3" + +is-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" + integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== + +is-string@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.5.tgz#40493ed198ef3ff477b8c7f92f644ec82a5cd3a6" + integrity sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ== + +is-string@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.1.1.tgz#92ea3f3d5c5b6e039ca8677e5ac8d07ea773cbb9" + integrity sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA== + dependencies: + call-bound "^1.0.3" + has-tostringtag "^1.0.2" + +is-symbol@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" + integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== + dependencies: + has-symbols "^1.0.1" + +is-symbol@^1.0.4, is-symbol@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.1.1.tgz#f47761279f532e2b05a7024a7506dbbedacd0634" + integrity sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w== + dependencies: + call-bound "^1.0.2" + has-symbols "^1.1.0" + safe-regex-test "^1.1.0" + +is-typed-array@^1.1.13, is-typed-array@^1.1.14, is-typed-array@^1.1.15: + version "1.1.15" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.15.tgz#4bfb4a45b61cee83a5a46fba778e4e8d59c0ce0b" + integrity sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ== + dependencies: + which-typed-array "^1.1.16" + +is-typedarray@^1.0.0, is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-weakmap@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.2.tgz#bf72615d649dfe5f699079c54b83e47d1ae19cfd" + integrity sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w== + +is-weakref@^1.0.2, is-weakref@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.1.1.tgz#eea430182be8d64174bd96bffbc46f21bf3f9293" + integrity sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew== + dependencies: + call-bound "^1.0.3" + +is-weakset@^2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.4.tgz#c9f5deb0bc1906c6d6f1027f284ddf459249daca" + integrity sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ== + dependencies: + call-bound "^1.0.3" + get-intrinsic "^1.2.6" + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= + +isarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.0.0-alpha.1: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" + integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== + +istanbul-lib-coverage@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" + integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== + +istanbul-lib-hook@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz#8f84c9434888cc6b1d0a9d7092a76d239ebf0cc6" + integrity sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ== + dependencies: + append-transform "^2.0.0" + +istanbul-lib-instrument@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz#fa15401df6c15874bcb2105f773325d78c666765" + integrity sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q== + dependencies: + "@babel/core" "^7.23.9" + "@babel/parser" "^7.23.9" + "@istanbuljs/schema" "^0.1.3" + istanbul-lib-coverage "^3.2.0" + semver "^7.5.4" + +istanbul-lib-processinfo@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz#e1426514662244b2f25df728e8fd1ba35fe53b9c" + integrity sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw== + dependencies: + archy "^1.0.0" + cross-spawn "^7.0.0" + istanbul-lib-coverage "^3.0.0-alpha.1" + make-dir "^3.0.0" + p-map "^3.0.0" + rimraf "^3.0.0" + uuid "^3.3.3" + +istanbul-lib-report@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" + integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^3.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz#75743ce6d96bb86dc7ee4352cf6366a23f0b1ad9" + integrity sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" + integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jackspeak@^3.1.2: + version "3.4.3" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" + integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + +js-md4@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/js-md4/-/js-md4-0.3.2.tgz#cd3b3dc045b0c404556c81ddb5756c23e59d7cf5" + integrity sha512-/GDnfQYsltsjRswQhN9fhv3EMw2sCpUdrdxyWDOUK7eyD++r3gRhzgiQgc/x4MAv2i1iuQ4lxO5mvqM3vj4bwA== + +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^3.13.1: + version "3.13.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" + integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +jsesc@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" + integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== + +jshint@2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/jshint/-/jshint-2.11.0.tgz#7f3d99820b8b653eaaec7015a563b2d8101cbbc8" + integrity sha512-ooaD/hrBPhu35xXW4gn+o3SOuzht73gdBuffgJzrZBJZPGgGiiTvJEgTyxFvBO2nz0+X1G6etF8SzUODTlLY6Q== + dependencies: + cli "~1.0.0" + console-browserify "1.1.x" + exit "0.1.x" + htmlparser2 "3.8.x" + lodash "~4.17.11" + minimatch "~3.0.2" + shelljs "0.3.x" + strip-json-comments "1.0.x" + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema@0.2.3, json-schema@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" + integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +just-extend@^4.0.2: + version "4.1.0" + resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-4.1.0.tgz#7278a4027d889601640ee0ce0e5a00b992467da4" + integrity sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA== + +lcov-parse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0" + integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A= + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +linkify-it@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-5.0.0.tgz#9ef238bfa6dc70bd8e7f9572b52d369af569b421" + integrity sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ== + dependencies: + uc.micro "^2.0.0" + +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.flattendeep@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" + integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI= + +lodash.get@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" + integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= + +lodash@^4.17.14, lodash@^4.17.19: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +lodash@^4.17.15, lodash@~4.17.11: + version "4.17.15" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" + integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== + +log-driver@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" + integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg== + +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +longest-streak@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" + integrity sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg== + +lru-cache@^10.2.0: + version "10.4.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +lunr@^2.3.9: + version "2.3.9" + resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1" + integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow== + +make-dir@^3.0.0, make-dir@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.0.2.tgz#04a1acbf22221e1d6ef43559f43e05a90dbb4392" + integrity sha512-rYKABKutXa6vXTXhoV18cBE7PaewPXHe/Bdq4v+ZLMhxbWApkFFplT0LcbMW+6BbjnQXzZ/sAvSE/JdguApG5w== + dependencies: + semver "^6.0.0" + +markdown-it@^14.1.0: + version "14.1.0" + resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-14.1.0.tgz#3c3c5992883c633db4714ccb4d7b5935d98b7d45" + integrity sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg== + dependencies: + argparse "^2.0.1" + entities "^4.4.0" + linkify-it "^5.0.0" + mdurl "^2.0.0" + punycode.js "^2.3.1" + uc.micro "^2.1.0" + +markdown-table@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-2.0.0.tgz#194a90ced26d31fe753d8b9434430214c011865b" + integrity sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A== + dependencies: + repeat-string "^1.0.0" + +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + +mdast-util-find-and-replace@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-1.1.1.tgz#b7db1e873f96f66588c321f1363069abf607d1b5" + integrity sha512-9cKl33Y21lyckGzpSmEQnIDjEfeeWelN5s1kUW1LwdB0Fkuq2u+4GdqcGEygYxJE8GVqCl0741bYXHgamfWAZA== + dependencies: + escape-string-regexp "^4.0.0" + unist-util-is "^4.0.0" + unist-util-visit-parents "^3.0.0" + +mdast-util-footnote@^0.1.0: + version "0.1.7" + resolved "https://registry.yarnpkg.com/mdast-util-footnote/-/mdast-util-footnote-0.1.7.tgz#4b226caeab4613a3362c144c94af0fdd6f7e0ef0" + integrity sha512-QxNdO8qSxqbO2e3m09KwDKfWiLgqyCurdWTQ198NpbZ2hxntdc+VKS4fDJCmNWbAroUdYnSthu+XbZ8ovh8C3w== + dependencies: + mdast-util-to-markdown "^0.6.0" + micromark "~2.11.0" + +mdast-util-from-markdown@^0.8.0: + version "0.8.5" + resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz#d1ef2ca42bc377ecb0463a987910dae89bd9a28c" + integrity sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-string "^2.0.0" + micromark "~2.11.0" + parse-entities "^2.0.0" + unist-util-stringify-position "^2.0.0" + +mdast-util-frontmatter@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/mdast-util-frontmatter/-/mdast-util-frontmatter-0.2.0.tgz#8bd5cd55e236c03e204a036f7372ebe9e6748240" + integrity sha512-FHKL4w4S5fdt1KjJCwB0178WJ0evnyyQr5kXTM3wrOVpytD0hrkvd+AOOjU9Td8onOejCkmZ+HQRT3CZ3coHHQ== + dependencies: + micromark-extension-frontmatter "^0.2.0" + +mdast-util-gfm-autolink-literal@^0.1.0, mdast-util-gfm-autolink-literal@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-0.1.3.tgz#9c4ff399c5ddd2ece40bd3b13e5447d84e385fb7" + integrity sha512-GjmLjWrXg1wqMIO9+ZsRik/s7PLwTaeCHVB7vRxUwLntZc8mzmTsLVr6HW1yLokcnhfURsn5zmSVdi3/xWWu1A== + dependencies: + ccount "^1.0.0" + mdast-util-find-and-replace "^1.1.0" + micromark "^2.11.3" + +mdast-util-gfm-strikethrough@^0.2.0: + version "0.2.3" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-0.2.3.tgz#45eea337b7fff0755a291844fbea79996c322890" + integrity sha512-5OQLXpt6qdbttcDG/UxYY7Yjj3e8P7X16LzvpX8pIQPYJ/C2Z1qFGMmcw+1PZMUM3Z8wt8NRfYTvCni93mgsgA== + dependencies: + mdast-util-to-markdown "^0.6.0" + +mdast-util-gfm-table@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-0.1.6.tgz#af05aeadc8e5ee004eeddfb324b2ad8c029b6ecf" + integrity sha512-j4yDxQ66AJSBwGkbpFEp9uG/LS1tZV3P33fN1gkyRB2LoRL+RR3f76m0HPHaby6F4Z5xr9Fv1URmATlRRUIpRQ== + dependencies: + markdown-table "^2.0.0" + mdast-util-to-markdown "~0.6.0" + +mdast-util-gfm-task-list-item@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-0.1.6.tgz#70c885e6b9f543ddd7e6b41f9703ee55b084af10" + integrity sha512-/d51FFIfPsSmCIRNp7E6pozM9z1GYPIkSy1urQ8s/o4TC22BZ7DqfHFWiqBD23bc7J3vV1Fc9O4QIHBlfuit8A== + dependencies: + mdast-util-to-markdown "~0.6.0" + +mdast-util-gfm@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-0.1.2.tgz#8ecddafe57d266540f6881f5c57ff19725bd351c" + integrity sha512-NNkhDx/qYcuOWB7xHUGWZYVXvjPFFd6afg6/e2g+SV4r9q5XUcCbV4Wfa3DLYIiD+xAEZc6K4MGaE/m0KDcPwQ== + dependencies: + mdast-util-gfm-autolink-literal "^0.1.0" + mdast-util-gfm-strikethrough "^0.2.0" + mdast-util-gfm-table "^0.1.0" + mdast-util-gfm-task-list-item "^0.1.0" + mdast-util-to-markdown "^0.6.1" + +mdast-util-to-markdown@^0.6.0, mdast-util-to-markdown@^0.6.1, mdast-util-to-markdown@~0.6.0: + version "0.6.5" + resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz#b33f67ca820d69e6cc527a93d4039249b504bebe" + integrity sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ== + dependencies: + "@types/unist" "^2.0.0" + longest-streak "^2.0.0" + mdast-util-to-string "^2.0.0" + parse-entities "^2.0.0" + repeat-string "^1.0.0" + zwitch "^1.0.0" + +mdast-util-to-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b" + integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w== + +mdurl@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-2.0.0.tgz#80676ec0433025dd3e17ee983d0fe8de5a2237e0" + integrity sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromark-extension-footnote@^0.3.0: + version "0.3.2" + resolved "https://registry.yarnpkg.com/micromark-extension-footnote/-/micromark-extension-footnote-0.3.2.tgz#129b74ef4920ce96719b2c06102ee7abb2b88a20" + integrity sha512-gr/BeIxbIWQoUm02cIfK7mdMZ/fbroRpLsck4kvFtjbzP4yi+OPVbnukTc/zy0i7spC2xYE/dbX1Sur8BEDJsQ== + dependencies: + micromark "~2.11.0" + +micromark-extension-frontmatter@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/micromark-extension-frontmatter/-/micromark-extension-frontmatter-0.2.2.tgz#61b8e92e9213e1d3c13f5a59e7862f5ca98dfa53" + integrity sha512-q6nPLFCMTLtfsctAuS0Xh4vaolxSFUWUWR6PZSrXXiRy+SANGllpcqdXFv2z07l0Xz/6Hl40hK0ffNCJPH2n1A== + dependencies: + fault "^1.0.0" + +micromark-extension-gfm-autolink-literal@~0.5.0: + version "0.5.7" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.7.tgz#53866c1f0c7ef940ae7ca1f72c6faef8fed9f204" + integrity sha512-ePiDGH0/lhcngCe8FtH4ARFoxKTUelMp4L7Gg2pujYD5CSMb9PbblnyL+AAMud/SNMyusbS2XDSiPIRcQoNFAw== + dependencies: + micromark "~2.11.3" + +micromark-extension-gfm-strikethrough@~0.6.5: + version "0.6.5" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-0.6.5.tgz#96cb83356ff87bf31670eefb7ad7bba73e6514d1" + integrity sha512-PpOKlgokpQRwUesRwWEp+fHjGGkZEejj83k9gU5iXCbDG+XBA92BqnRKYJdfqfkrRcZRgGuPuXb7DaK/DmxOhw== + dependencies: + micromark "~2.11.0" + +micromark-extension-gfm-table@~0.4.0: + version "0.4.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-0.4.3.tgz#4d49f1ce0ca84996c853880b9446698947f1802b" + integrity sha512-hVGvESPq0fk6ALWtomcwmgLvH8ZSVpcPjzi0AjPclB9FsVRgMtGZkUcpE0zgjOCFAznKepF4z3hX8z6e3HODdA== + dependencies: + micromark "~2.11.0" + +micromark-extension-gfm-tagfilter@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-0.3.0.tgz#d9f26a65adee984c9ccdd7e182220493562841ad" + integrity sha512-9GU0xBatryXifL//FJH+tAZ6i240xQuFrSL7mYi8f4oZSbc+NvXjkrHemeYP0+L4ZUT+Ptz3b95zhUZnMtoi/Q== + +micromark-extension-gfm-task-list-item@~0.3.0: + version "0.3.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-0.3.3.tgz#d90c755f2533ed55a718129cee11257f136283b8" + integrity sha512-0zvM5iSLKrc/NQl84pZSjGo66aTGd57C1idmlWmE87lkMcXrTxg1uXa/nXomxJytoje9trP0NDLvw4bZ/Z/XCQ== + dependencies: + micromark "~2.11.0" + +micromark-extension-gfm@^0.3.0: + version "0.3.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-0.3.3.tgz#36d1a4c089ca8bdfd978c9bd2bf1a0cb24e2acfe" + integrity sha512-oVN4zv5/tAIA+l3GbMi7lWeYpJ14oQyJ3uEim20ktYFAcfX1x3LNlFGGlmrZHt7u9YlKExmyJdDGaTt6cMSR/A== + dependencies: + micromark "~2.11.0" + micromark-extension-gfm-autolink-literal "~0.5.0" + micromark-extension-gfm-strikethrough "~0.6.5" + micromark-extension-gfm-table "~0.4.0" + micromark-extension-gfm-tagfilter "~0.3.0" + micromark-extension-gfm-task-list-item "~0.3.0" + +micromark@^2.11.3, micromark@~2.11.0, micromark@~2.11.3: + version "2.11.4" + resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" + integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA== + dependencies: + debug "^4.0.0" + parse-entities "^2.0.0" + +mime-db@1.43.0: + version "1.43.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.43.0.tgz#0a12e0502650e473d735535050e7c8f4eb4fae58" + integrity sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ== + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.35, mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime-types@~2.1.19: + version "2.1.26" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.26.tgz#9c921fc09b7e149a65dfdc0da4d20997200b0a06" + integrity sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ== + dependencies: + mime-db "1.43.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimalistic-assert@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimatch@^3.0.4, minimatch@~3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^9.0.4, minimatch@^9.0.5: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== + dependencies: + brace-expansion "^2.0.1" + +minimist@^1.2.5, minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" + integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== + +mkdirp@^0.5.1: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +mocha@^11.7.1: + version "11.7.1" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-11.7.1.tgz#91948fecd624fb4bd154ed260b7e1ad3910d7c7a" + integrity sha512-5EK+Cty6KheMS/YLPPMJC64g5V61gIR25KsRItHw6x4hEKT6Njp1n9LOlH4gpevuwMVS66SXaBBpg+RWZkza4A== + dependencies: + browser-stdout "^1.3.1" + chokidar "^4.0.1" + debug "^4.3.5" + diff "^7.0.0" + escape-string-regexp "^4.0.0" + find-up "^5.0.0" + glob "^10.4.5" + he "^1.2.0" + js-yaml "^4.1.0" + log-symbols "^4.1.0" + minimatch "^9.0.5" + ms "^2.1.3" + picocolors "^1.1.1" + serialize-javascript "^6.0.2" + strip-json-comments "^3.1.1" + supports-color "^8.1.1" + workerpool "^9.2.0" + yargs "^17.7.2" + yargs-parser "^21.1.1" + yargs-unparser "^2.0.0" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" + integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== + +ms@2.1.3, ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +ms@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +nise@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/nise/-/nise-4.0.3.tgz#9f79ff02fa002ed5ffbc538ad58518fa011dc913" + integrity sha512-EGlhjm7/4KvmmE6B/UFsKh7eHykRl9VH+au8dduHLCyWUO/hr7+N+WtTvDUwc9zHuM1IaIJs/0lQ6Ag1jDkQSg== + dependencies: + "@sinonjs/commons" "^1.7.0" + "@sinonjs/fake-timers" "^6.0.0" + "@sinonjs/text-encoding" "^0.7.1" + just-extend "^4.0.2" + path-to-regexp "^1.7.0" + +node-preload@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/node-preload/-/node-preload-0.2.1.tgz#c03043bb327f417a18fee7ab7ee57b408a144301" + integrity sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ== + dependencies: + process-on-spawn "^1.0.0" + +node-releases@^2.0.19: + version "2.0.19" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" + integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== + +normalize-package-data@^2.3.2: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +nyc@^17.1.0: + version "17.1.0" + resolved "https://registry.yarnpkg.com/nyc/-/nyc-17.1.0.tgz#b6349a401a62ffeb912bd38ea9a018839fdb6eb1" + integrity sha512-U42vQ4czpKa0QdI1hu950XuNhYqgoM+ZF1HT+VuUHL9hPfDPVvNQyltmMqdE9bUHMVa+8yNbc3QKTj8zQhlVxQ== + dependencies: + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + caching-transform "^4.0.0" + convert-source-map "^1.7.0" + decamelize "^1.2.0" + find-cache-dir "^3.2.0" + find-up "^4.1.0" + foreground-child "^3.3.0" + get-package-type "^0.1.0" + glob "^7.1.6" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-hook "^3.0.0" + istanbul-lib-instrument "^6.0.2" + istanbul-lib-processinfo "^2.0.2" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + make-dir "^3.0.0" + node-preload "^0.2.1" + p-map "^3.0.0" + process-on-spawn "^1.0.0" + resolve-from "^5.0.0" + rimraf "^3.0.0" + signal-exit "^3.0.2" + spawn-wrap "^2.0.0" + test-exclude "^6.0.0" + yargs "^15.0.2" + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-inspect@^1.13.3: + version "1.13.4" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== + +object-inspect@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== + +object-inspect@^1.9.0: + version "1.12.3" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" + integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== + +object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object.assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" + +object.assign@^4.1.7: + version "4.1.7" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.7.tgz#8c14ca1a424c6a561b0bb2a22f66f5049a945d3d" + integrity sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + has-symbols "^1.1.0" + object-keys "^1.1.1" + +object.values@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e" + integrity sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + function-bind "^1.1.1" + has "^1.0.3" + +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== + dependencies: + ee-first "1.1.1" + +once@^1.3.0, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^5.1.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +optionator@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +own-keys@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/own-keys/-/own-keys-1.0.1.tgz#e4006910a2bf913585289676eebd6f390cf51358" + integrity sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg== + dependencies: + get-intrinsic "^1.2.6" + object-keys "^1.1.1" + safe-push-apply "^1.0.0" + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-map@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz#d704d9af8a2ba684e2600d9a215983d4141a979d" + integrity sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ== + dependencies: + aggregate-error "^3.0.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +package-hash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/package-hash/-/package-hash-4.0.0.tgz#3537f654665ec3cc38827387fc904c163c54f506" + integrity sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ== + dependencies: + graceful-fs "^4.1.15" + hasha "^5.0.0" + lodash.flattendeep "^4.4.0" + release-zalgo "^1.0.0" + +package-json-from-dist@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505" + integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw== + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-entities@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8" + integrity sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ== + dependencies: + 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@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= + dependencies: + error-ex "^1.2.0" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== + +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + +path-scurry@^1.11.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" + integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA== + dependencies: + lru-cache "^10.2.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== + +path-to-regexp@^1.7.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a" + integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA== + dependencies: + isarray "0.0.1" + +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= + dependencies: + pify "^2.0.0" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +picocolors@^1.0.0, picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= + +pify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-5.0.0.tgz#1f5eca3f5e87ebec28cc6d54a0e4aaf00acc127f" + integrity sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA== + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + +pkg-dir@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +possible-typed-array-names@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz#93e3582bc0e5426586d9d07b79ee40fc841de4ae" + integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.4.tgz#2d1bae173e355996ee355ec9830a7a1ee05457ef" + integrity sha512-SVJIQ51spzFDvh4fIbCLvciiDMCrRhlN3mbZvv/+ycjvmF5E73bKdGfU8QDLNmjYJf+lsGnDBC4UUnvTe5OO0w== + +process-on-spawn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/process-on-spawn/-/process-on-spawn-1.0.0.tgz#95b05a23073d30a17acfdc92a440efd2baefdc93" + integrity sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg== + dependencies: + fromentries "^1.2.0" + +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +proxy-addr@~2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +psl@^1.1.28: + version "1.8.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" + integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== + +punycode.js@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/punycode.js/-/punycode.js-2.3.1.tgz#6b53e56ad75588234e79f4affa90972c7dd8cdb7" + integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA== + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +qs@6.11.0: + version "6.11.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" + integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== + dependencies: + side-channel "^1.0.4" + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" + integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + +readable-stream@1.1: + version "1.1.13" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.13.tgz#f6eef764f514c89e2b9e23146a75ba106756d23e" + integrity sha1-9u73ZPUUyJ4rniMUanW6EGdW0j4= + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +readable-stream@3.6.0, readable-stream@^3.0.2, readable-stream@^3.1.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdirp@^4.0.1: + version "4.1.2" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.1.2.tgz#eb85801435fbf2a7ee58f19e0921b068fc69948d" + integrity sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg== + +reflect.getprototypeof@^1.0.6, reflect.getprototypeof@^1.0.9: + version "1.0.10" + resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz#c629219e78a3316d8b604c765ef68996964e7bf9" + integrity sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.9" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + get-intrinsic "^1.2.7" + get-proto "^1.0.1" + which-builtin-type "^1.2.1" + +regexp.prototype.flags@^1.5.3: + version "1.5.4" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz#1ad6c62d44a259007e55b3970e00f746efbcaa19" + integrity sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-errors "^1.3.0" + get-proto "^1.0.1" + gopd "^1.2.0" + set-function-name "^2.0.2" + +regexpp@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" + integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + +regexpp@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" + integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== + +release-zalgo@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz#09700b7e5074329739330e535c5a90fb67851730" + integrity sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA= + dependencies: + es6-error "^4.0.1" + +remark-footnotes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-footnotes/-/remark-footnotes-3.0.0.tgz#5756b56f8464fa7ed80dbba0c966136305d8cb8d" + integrity sha512-ZssAvH9FjGYlJ/PBVKdSmfyPc3Cz4rTWgZLI4iE/SX8Nt5l3o3oEjv3wwG5VD7xOjktzdwp5coac+kJV9l4jgg== + dependencies: + mdast-util-footnote "^0.1.0" + micromark-extension-footnote "^0.3.0" + +remark-frontmatter@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-frontmatter/-/remark-frontmatter-3.0.0.tgz#ca5d996361765c859bd944505f377d6b186a6ec6" + integrity sha512-mSuDd3svCHs+2PyO29h7iijIZx4plX0fheacJcAoYAASfgzgVIcXGYSq9GFyYocFLftQs8IOmmkgtOovs6d4oA== + dependencies: + mdast-util-frontmatter "^0.2.0" + micromark-extension-frontmatter "^0.2.0" + +remark-gfm@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-1.0.0.tgz#9213643001be3f277da6256464d56fd28c3b3c0d" + integrity sha512-KfexHJCiqvrdBZVbQ6RopMZGwaXz6wFJEfByIuEwGf0arvITHjiKKZ1dpXujjH9KZdm1//XJQwgfnJ3lmXaDPA== + dependencies: + mdast-util-gfm "^0.1.0" + micromark-extension-gfm "^0.3.0" + +remark-parse@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-9.0.0.tgz#4d20a299665880e4f4af5d90b7c7b8a935853640" + integrity sha512-geKatMwSzEXKHuzBNU1z676sGcDcFoChMK38TgdHJNAYfFtsfHDQG7MoJAjs6sgYMqyLduCYWDIWZIxiPeafEw== + dependencies: + mdast-util-from-markdown "^0.8.0" + +repeat-string@^1.0.0: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== + +request@^2.88.2: + version "2.88.2" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" + integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== + dependencies: + 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.3" + 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.5.0" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1: + version "1.16.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.16.1.tgz#49fac5d8bacf1fd53f200fa51247ae736175832c" + integrity sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig== + dependencies: + path-parse "^1.0.6" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +rimraf@2.6.3: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== + +rxjs@^6.6.0: + version "6.6.7" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== + dependencies: + tslib "^1.9.0" + +safe-array-concat@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.3.tgz#c9e54ec4f603b0bbb8e7e5007a5ee7aecd1538c3" + integrity sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.2" + get-intrinsic "^1.2.6" + has-symbols "^1.1.0" + isarray "^2.0.5" + +safe-buffer@5.2.1, safe-buffer@^5.1.0, safe-buffer@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" + integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== + +safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-push-apply@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-push-apply/-/safe-push-apply-1.0.0.tgz#01850e981c1602d398c85081f360e4e6d03d27f5" + integrity sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA== + dependencies: + es-errors "^1.3.0" + isarray "^2.0.5" + +safe-regex-test@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.1.0.tgz#7f87dfb67a3150782eaaf18583ff5d1711ac10c1" + integrity sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + is-regex "^1.2.1" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +"semver@2 || 3 || 4 || 5": + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@^5.5.0: + version "5.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + +semver@^6.0.0, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^6.1.2, semver@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.5.4: + version "7.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" + integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== + +send@0.17.1: + version "0.17.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" + integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== + dependencies: + 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.7.2" + mime "1.6.0" + ms "2.1.1" + on-finished "~2.3.0" + range-parser "~1.2.1" + statuses "~1.5.0" + +send@0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" + integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serialize-javascript@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" + integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== + dependencies: + randombytes "^2.1.0" + +serve-static@1.14.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" + integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.17.1" + +serve-static@1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" + integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.18.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-function-length@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + +set-function-name@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" + integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.2" + +set-proto@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/set-proto/-/set-proto-1.0.0.tgz#0760dbcff30b2d7e801fd6e19983e56da337565e" + integrity sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw== + dependencies: + dunder-proto "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + +setprototypeof@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" + integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== + dependencies: + shebang-regex "^1.0.0" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +shelljs@0.3.x: + version "0.3.0" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.3.0.tgz#3596e6307a781544f591f37da618360f31db57b1" + integrity sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E= + +should-equal@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/should-equal/-/should-equal-2.0.0.tgz#6072cf83047360867e68e98b09d71143d04ee0c3" + integrity sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA== + dependencies: + should-type "^1.4.0" + +should-format@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/should-format/-/should-format-3.0.3.tgz#9bfc8f74fa39205c53d38c34d717303e277124f1" + integrity sha1-m/yPdPo5IFxT04w01xcwPidxJPE= + dependencies: + should-type "^1.3.0" + should-type-adaptors "^1.0.1" + +should-type-adaptors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz#401e7f33b5533033944d5cd8bf2b65027792e27a" + integrity sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA== + dependencies: + should-type "^1.3.0" + should-util "^1.0.0" + +should-type@^1.3.0, should-type@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/should-type/-/should-type-1.4.0.tgz#0756d8ce846dfd09843a6947719dfa0d4cff5cf3" + integrity sha1-B1bYzoRt/QmEOmlHcZ36DUz/XPM= + +should-util@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.1.tgz#fb0d71338f532a3a149213639e2d32cbea8bcb28" + integrity sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g== + +should@13.2.3: + version "13.2.3" + resolved "https://registry.yarnpkg.com/should/-/should-13.2.3.tgz#96d8e5acf3e97b49d89b51feaa5ae8d07ef58f10" + integrity sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ== + dependencies: + 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" + +side-channel-list@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" + integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + +side-channel@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9" + integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + side-channel-list "^1.0.0" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" + +signal-exit@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" + integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== + +signal-exit@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + +sinon@9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/sinon/-/sinon-9.0.2.tgz#b9017e24633f4b1c98dfb6e784a5f0509f5fd85d" + integrity sha512-0uF8Q/QHkizNUmbK3LRFqx5cpTttEVXudywY9Uwzy8bTfZUhljZ7ARzSxnRHWYWtVTeh4Cw+tTb3iU21FQVO9A== + dependencies: + "@sinonjs/commons" "^1.7.2" + "@sinonjs/fake-timers" "^6.0.1" + "@sinonjs/formatio" "^5.0.1" + "@sinonjs/samsam" "^5.0.3" + diff "^4.0.2" + nise "^4.0.1" + supports-color "^7.1.0" + +slice-ansi@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +source-map-support@0.5.16: + version "0.5.16" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" + integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0, source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +spawn-wrap@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" + integrity sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg== + dependencies: + foreground-child "^2.0.0" + is-windows "^1.0.2" + make-dir "^3.0.0" + rimraf "^3.0.0" + signal-exit "^3.0.2" + which "^2.0.1" + +spdx-correct@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" + integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" + integrity sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA== + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.5" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654" + integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q== + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +sshpk@^1.7.0: + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + dependencies: + 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" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +"statuses@>= 1.5.0 < 2", statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + +stream-shift@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" + integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== + +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" + integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== + dependencies: + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" + +string.prototype.trim@^1.2.10: + version "1.2.10" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz#40b2dd5ee94c959b4dcfb1d65ce72e90da480c81" + integrity sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.2" + define-data-property "^1.1.4" + define-properties "^1.2.1" + es-abstract "^1.23.5" + es-object-atoms "^1.0.0" + has-property-descriptors "^1.0.2" + +string.prototype.trimend@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz#85812a6b847ac002270f5808146064c995fb6913" + integrity sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + +string.prototype.trimend@^1.0.9: + version "1.0.9" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz#62e2731272cd285041b36596054e9f66569b6942" + integrity sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.2" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +string.prototype.trimleft@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz#4408aa2e5d6ddd0c9a80739b087fbc067c03b3cc" + integrity sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + string.prototype.trimstart "^1.0.0" + +string.prototype.trimright@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz#c76f1cef30f21bbad8afeb8db1511496cfb0f2a3" + integrity sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + string.prototype.trimend "^1.0.0" + +string.prototype.trimstart@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz#14af6d9f34b053f7cfc89b72f8f2ee14b9039a54" + integrity sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + +string.prototype.trimstart@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz#7ee834dda8c7c17eff3118472bb35bfedaa34dde" + integrity sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ= + +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^5.1.0, strip-ansi@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + dependencies: + ansi-regex "^5.0.0" + +strip-ansi@^7.0.1: + version "7.1.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-json-comments@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91" + integrity sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E= + +strip-json-comments@^3.0.1, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" + integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== + dependencies: + has-flag "^4.0.0" + +supports-color@^8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +table@^5.2.3: + version "5.4.6" + resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" + integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== + dependencies: + ajv "^6.10.2" + lodash "^4.17.14" + slice-ansi "^2.1.0" + string-width "^3.0.0" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + +timekeeper@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/timekeeper/-/timekeeper-2.2.0.tgz#9645731fce9e3280a18614a57a9d1b72af3ca368" + integrity sha512-W3AmPTJWZkRwu+iSNxPIsLZ2ByADsOLbbLxe46UJyWj3mlYLlwucKiq+/dPm0l9wTzqoF3/2PH0AGFCebjq23A== + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +toidentifier@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" + integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tough-cookie@~2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +traverse@^0.6.7: + version "0.6.11" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.11.tgz#e8daa071b101ae66767fffa6f177aa6f7110068e" + integrity sha512-vxXDZg8/+p3gblxB6BhhG5yWVn1kGRlaL8O78UDXc3wRnPizB5g83dcvWV1jpDMIPnjZjOFuxlMmE82XJ4407w== + dependencies: + gopd "^1.2.0" + typedarray.prototype.slice "^1.0.5" + which-typed-array "^1.1.18" + +trough@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406" + integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA== + +tslib@^1.8.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35" + integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA== + +tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tsutils@^3.17.1: + version "3.17.1" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759" + integrity sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g== + dependencies: + tslib "^1.8.1" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== + dependencies: + prelude-ls "~1.1.2" + +type-detect@4.0.8, type-detect@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^0.8.0, type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typed-array-buffer@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz#a72395450a4869ec033fd549371b47af3a2ee536" + integrity sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw== + dependencies: + call-bound "^1.0.3" + es-errors "^1.3.0" + is-typed-array "^1.1.14" + +typed-array-byte-length@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz#8407a04f7d78684f3d252aa1a143d2b77b4160ce" + integrity sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg== + dependencies: + call-bind "^1.0.8" + for-each "^0.3.3" + gopd "^1.2.0" + has-proto "^1.2.0" + is-typed-array "^1.1.14" + +typed-array-byte-offset@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz#ae3698b8ec91a8ab945016108aef00d5bff12355" + integrity sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ== + dependencies: + available-typed-arrays "^1.0.7" + call-bind "^1.0.8" + for-each "^0.3.3" + gopd "^1.2.0" + has-proto "^1.2.0" + is-typed-array "^1.1.15" + reflect.getprototypeof "^1.0.9" + +typed-array-length@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.7.tgz#ee4deff984b64be1e118b0de8c9c877d5ce73d3d" + integrity sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg== + dependencies: + call-bind "^1.0.7" + for-each "^0.3.3" + gopd "^1.0.1" + is-typed-array "^1.1.13" + possible-typed-array-names "^1.0.0" + reflect.getprototypeof "^1.0.6" + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typedarray.prototype.slice@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.5.tgz#a40f896968573b33cbb466a61622d3ee615a0728" + integrity sha512-q7QNVDGTdl702bVFiI5eY4l/HkgCM6at9KhcFbgUAzezHFbOVy4+0O/lCjsABEQwbZPravVfBIiBVGo89yzHFg== + dependencies: + call-bind "^1.0.8" + define-properties "^1.2.1" + es-abstract "^1.23.9" + es-errors "^1.3.0" + get-proto "^1.0.1" + math-intrinsics "^1.1.0" + typed-array-buffer "^1.0.3" + typed-array-byte-offset "^1.0.4" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= + +typedoc@^0.28.7: + version "0.28.7" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.28.7.tgz#30453a9517b49e53f06e08954ef3dd106381447d" + integrity sha512-lpz0Oxl6aidFkmS90VQDQjk/Qf2iw0IUvFqirdONBdj7jPSN9mGXhy66BcGNDxx5ZMyKKiBVAREvPEzT6Uxipw== + dependencies: + "@gerrit0/mini-shiki" "^3.7.0" + lunr "^2.3.9" + markdown-it "^14.1.0" + minimatch "^9.0.5" + yaml "^2.8.0" + +typescript@3.8.3: + version "3.8.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" + integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== + +uc.micro@^2.0.0, uc.micro@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee" + integrity sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A== + +unbox-primitive@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.1.0.tgz#8d9d2c9edeea8460c7f35033a88867944934d1e2" + integrity sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw== + dependencies: + call-bound "^1.0.3" + has-bigints "^1.0.2" + has-symbols "^1.1.0" + which-boxed-primitive "^1.1.1" + +underscore@^1.13.2: + version "1.13.7" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.7.tgz#970e33963af9a7dda228f17ebe8399e5fbe63a10" + integrity sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g== + +underscore@~1.12.1: + version "1.12.1" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e" + integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw== + +unified@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.2.tgz#67649a1abfc3ab85d2969502902775eb03146975" + integrity sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ== + dependencies: + bail "^1.0.0" + extend "^3.0.0" + is-buffer "^2.0.0" + is-plain-obj "^2.0.0" + trough "^1.0.0" + vfile "^4.0.0" + +unist-util-is@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-4.1.0.tgz#976e5f462a7a5de73d94b706bac1b90671b57797" + integrity sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg== + +unist-util-stringify-position@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz#cce3bfa1cdf85ba7375d1d5b17bdc4cada9bd9da" + integrity sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g== + dependencies: + "@types/unist" "^2.0.2" + +unist-util-visit-parents@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz#65a6ce698f78a6b0f56aa0e88f13801886cdaef6" + integrity sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg== + dependencies: + "@types/unist" "^2.0.0" + unist-util-is "^4.0.0" + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +update-browserslist-db@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" + integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== + dependencies: + escalade "^3.2.0" + picocolors "^1.1.1" + +update-section@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/update-section/-/update-section-0.3.3.tgz#458f17820d37820dc60e20b86d94391b00123158" + integrity sha512-BpRZMZpgXLuTiKeiu7kK0nIPwGdyrqrs6EDSaXtjD/aQ2T+qVo9a5hRC3HN3iJjCMxNT/VxoLGQ7E/OzE5ucnw== + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +uuid@^3.3.2, uuid@^3.3.3: + version "3.4.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" + integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== + +uuid@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b" + integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== + +v8-compile-cache@^2.0.3: + version "2.4.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.4.0.tgz#cdada8bec61e15865f05d097c5f4fd30e94dc128" + integrity sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw== + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vfile-message@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-2.0.4.tgz#5b43b88171d409eae58477d13f23dd41d52c371a" + integrity sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ== + dependencies: + "@types/unist" "^2.0.0" + unist-util-stringify-position "^2.0.0" + +vfile@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/vfile/-/vfile-4.2.1.tgz#03f1dce28fc625c625bc6514350fbdb00fa9e624" + integrity sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA== + dependencies: + "@types/unist" "^2.0.0" + is-buffer "^2.0.0" + unist-util-stringify-position "^2.0.0" + vfile-message "^2.0.0" + +which-boxed-primitive@^1.1.0, which-boxed-primitive@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz#d76ec27df7fa165f18d5808374a5fe23c29b176e" + integrity sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA== + dependencies: + is-bigint "^1.1.0" + is-boolean-object "^1.2.1" + is-number-object "^1.1.1" + is-string "^1.1.1" + is-symbol "^1.1.1" + +which-builtin-type@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/which-builtin-type/-/which-builtin-type-1.2.1.tgz#89183da1b4907ab089a6b02029cc5d8d6574270e" + integrity sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q== + dependencies: + call-bound "^1.0.2" + function.prototype.name "^1.1.6" + has-tostringtag "^1.0.2" + is-async-function "^2.0.0" + is-date-object "^1.1.0" + is-finalizationregistry "^1.1.0" + is-generator-function "^1.0.10" + is-regex "^1.2.1" + is-weakref "^1.0.2" + isarray "^2.0.5" + which-boxed-primitive "^1.1.0" + which-collection "^1.0.2" + which-typed-array "^1.1.16" + +which-collection@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.2.tgz#627ef76243920a107e7ce8e96191debe4b16c2a0" + integrity sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw== + dependencies: + is-map "^2.0.3" + is-set "^2.0.3" + is-weakmap "^2.0.2" + is-weakset "^2.0.3" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which-typed-array@^1.1.16, which-typed-array@^1.1.18: + version "1.1.19" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.19.tgz#df03842e870b6b88e117524a4b364b6fc689f956" + integrity sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw== + dependencies: + available-typed-arrays "^1.0.7" + call-bind "^1.0.8" + call-bound "^1.0.4" + for-each "^0.3.5" + get-proto "^1.0.1" + gopd "^1.2.0" + has-tostringtag "^1.0.2" + +which@^1.2.9: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +word-wrap@~1.2.3: + version "1.2.5" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + +workerpool@^9.2.0: + version "9.3.3" + resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-9.3.3.tgz#e75281fe62e851afb21cdeef8fa85f6a62ec3583" + integrity sha512-slxCaKbYjEdFT/o2rH9xS1hf4uRDch1w7Uo+apxhZ+sf/1d9e0ZVkn42kPNGP2dgjIx6YFvSevj0zHvbWe2jdw== + +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" + integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + +xml-crypto@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/xml-crypto/-/xml-crypto-2.1.6.tgz#c51a016cc8391fc1d9ebd9abc589e4c08b62d652" + integrity sha512-jjvpO8vHNV8QFhW5bMypP+k4BjBqHe/HrpIwpPcdUnUTIJakSIuN96o3Sdah4tKu2z64kM/JHEH8iEHGCc6Gyw== + dependencies: + "@xmldom/xmldom" "^0.7.9" + xpath "0.0.32" + +xpath@0.0.32: + version "0.0.32" + resolved "https://registry.yarnpkg.com/xpath/-/xpath-0.0.32.tgz#1b73d3351af736e17ec078d6da4b8175405c48af" + integrity sha512-rxMJhSIoiO8vXcWvSifKqhvV96GjiD5wYb8/QHdoRyQvraTpp4IEv944nhGausZZ3u7dhQXteZuZbaqfpB7uYw== + +y18n@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" + integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yaml@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.0.tgz#15f8c9866211bdc2d3781a0890e44d4fa1a5fff6" + integrity sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ== + +yargs-parser@^18.1.1: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs-unparser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" + integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== + dependencies: + camelcase "^6.0.0" + decamelize "^4.0.0" + flat "^5.0.2" + is-plain-obj "^2.1.0" + +yargs@^15.0.2: + version "15.3.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.3.1.tgz#9505b472763963e54afe60148ad27a330818e98b" + integrity sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.1" + +yargs@^17.7.2: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + +zwitch@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-1.0.5.tgz#d11d7381ffed16b742f6af7b3f223d5cd9fe9920" + integrity sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==