├── .eslintrc ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE.md ├── README.md ├── example.env ├── index.js ├── lib ├── ApplicationEnablement.js ├── auth │ ├── authenticator.js │ └── token.js └── utils │ └── utils.js ├── npm-shrinkwrap.json ├── package.json └── test ├── ApplicationEnablement.getRequestUrl.test.js ├── ApplicationEnablement.init.test.js ├── ApplicationEnablement.request.test.js ├── ApplicationEnablement.setBaseUrl.test.js ├── auth ├── authenticator.test.js └── token.test.js └── utils.test.js /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb", 3 | "rules": { 4 | "func-names": ["error", "never"] 5 | } 6 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | node_modules 3 | .vscode -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '8.9.1' -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) 5 | and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 6 | 7 | ## [Unreleased] 8 | - Support of `thingmodeler-fileservice`. 9 | 10 | ## [2.0.0] - 2018-05-01 11 | - Refactoring. 12 | - Replaced `request` with `request-promise-native`. 13 | - Airbnb JavaScript Style Guide. 14 | 15 | ## [1.4.0] - 2018-01-27 16 | 17 | ### Added 18 | - Support for Cloud Foundry. 19 | 20 | ## [1.4.0] - 2018-01-27 21 | 22 | ### Added 23 | - Support for Cloud Foundry. 24 | 25 | ## [1.3.0] - 2017-12-16 26 | 27 | ### Changed 28 | - Replaced `winston` with `debug`. 29 | 30 | ### Fixed 31 | - `npm install` issue. 32 | 33 | ### Fixed 34 | - `npm install` issue 35 | 36 | ## [1.2.3] - 2017-10-02 37 | ### Fixed 38 | - Do not refuse valid URIs. 39 | 40 | ## [1.2.2] - 2017-09-12 41 | ### Added 42 | - Option to pass a config-object to the constructor. 43 | 44 | ## [1.2.1] - 2017-08-29 45 | ### Fixed 46 | - Handling of bad credentials. 47 | 48 | ### Changed 49 | - Modularization. 50 | - Optimized logging. 51 | 52 | ## [1.2.0] - 2017-08-01 53 | ### Added 54 | - Streaming the API response. 55 | 56 | ## [1.1.0] - 2017-06-11 57 | ### Added 58 | - Setting a base URI. 59 | 60 | ## [1.0.0] - 2017-06-02 61 | ### Added 62 | - Initial release. -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | When contributing to this repository, please first discuss the change you wish to make via issue, 4 | email, or any other method with the owners of this repository before making a change. 5 | 6 | Please note we have a code of conduct, please follow it in all your interactions with the project. 7 | 8 | ## Pull Request Process 9 | 10 | 1. Ensure any install or build dependencies are removed before the end of the layer when doing a 11 | build. 12 | 2. Update the README.md with details of changes to the interface, this includes new environment 13 | variables, exposed ports, useful file locations and container parameters. 14 | 3. Increase the version numbers in any examples files and the README.md to the new version that this 15 | Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/). 16 | 4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you 17 | do not have permission to do that, you may request the second reviewer to merge it for you. 18 | 19 | ## Code of Conduct 20 | 21 | ### Our Pledge 22 | 23 | In the interest of fostering an open and welcoming environment, we as 24 | contributors and maintainers pledge to making participation in our project and 25 | our community a harassment-free experience for everyone, regardless of age, body 26 | size, disability, ethnicity, gender identity and expression, level of experience, 27 | nationality, personal appearance, race, religion, or sexual identity and 28 | orientation. 29 | 30 | ### Our Standards 31 | 32 | Examples of behavior that contributes to creating a positive environment 33 | include: 34 | 35 | * Using welcoming and inclusive language 36 | * Being respectful of differing viewpoints and experiences 37 | * Gracefully accepting constructive criticism 38 | * Focusing on what is best for the community 39 | * Showing empathy towards other community members 40 | 41 | Examples of unacceptable behavior by participants include: 42 | 43 | * The use of sexualized language or imagery and unwelcome sexual attention or 44 | advances 45 | * Trolling, insulting/derogatory comments, and personal or political attacks 46 | * Public or private harassment 47 | * Publishing others' private information, such as a physical or electronic 48 | address, without explicit permission 49 | * Other conduct which could reasonably be considered inappropriate in a 50 | professional setting 51 | 52 | ### Our Responsibilities 53 | 54 | Project maintainers are responsible for clarifying the standards of acceptable 55 | behavior and are expected to take appropriate and fair corrective action in 56 | response to any instances of unacceptable behavior. 57 | 58 | Project maintainers have the right and responsibility to remove, edit, or 59 | reject comments, commits, code, wiki edits, issues, and other contributions 60 | that are not aligned to this Code of Conduct, or to ban temporarily or 61 | permanently any contributor for other behaviors that they deem inappropriate, 62 | threatening, offensive, or harmful. 63 | 64 | ### Scope 65 | 66 | This Code of Conduct applies both within project spaces and in public spaces 67 | when an individual is representing the project or its community. Examples of 68 | representing a project or community include using an official project e-mail 69 | address, posting via an official social media account, or acting as an appointed 70 | representative at an online or offline event. Representation of a project may be 71 | further defined and clarified by project maintainers. 72 | 73 | ### Enforcement 74 | 75 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 76 | reported by contacting the project team at [INSERT EMAIL ADDRESS]. All 77 | complaints will be reviewed and investigated and will result in a response that 78 | is deemed necessary and appropriate to the circumstances. The project team is 79 | obligated to maintain confidentiality with regard to the reporter of an incident. 80 | Further details of specific enforcement policies may be posted separately. 81 | 82 | Project maintainers who do not follow or enforce the Code of Conduct in good 83 | faith may face temporary or permanent repercussions as determined by other 84 | members of the project's leadership. 85 | 86 | ### Attribution 87 | 88 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 89 | available at [http://contributor-covenant.org/version/1/4][version] 90 | 91 | [homepage]: http://contributor-covenant.org 92 | [version]: http://contributor-covenant.org/version/1/4/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | 204 | ------------------------------------------------------------------------------ 205 | APIs 206 | 207 | This project may include APIs to SAP or third party products or services. The use of these APIs, products and services may be subject to additional agreements. In no event shall the application of the Apache Software License, v.2 to this project grant any rights in or to these APIs, products or services that would alter, expand, be inconsistent with, or supersede any terms of these additional agreements. “API” means application programming interfaces, as well as their respective specifications and implementing code that allows other software products to communicate with or call on SAP or third party products or services (for example, SAP Enterprise Services, BAPIs, Idocs, RFCs and ABAP calls or other user exits) and may be made available through SAP or third party products, SDKs, documentation or other media. 208 | -------------------------------------------------------------------------------- /NOTICE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![](https://img.shields.io/badge/STATUS-NOT%20CURRENTLY%20MAINTAINED-red.svg?longCache=true&style=flat) 2 | 3 | # Important Notice 4 | We decided to deprecate and stop the development of this repository as it was replaced by the feature rich new [SAP Leonardo IoT SDK](https://github.com/SAP/leonardo-iot-sdk-nodejs). Please follow the [migration guide](https://github.com/SAP/leonardo-iot-sdk-nodejs/blob/master/MIGRATION-GUIDE.md) which provides step by step guidance adapting your existing project to the new SDK solution. 5 | 6 | # SAP IoT Application Enablement SDK for Node.js 7 | 8 | [![Build Status](https://travis-ci.org/SAP/iot-application-services-sdk-nodejs.svg?branch=master)](https://travis-ci.org/SAP/iot-application-services-sdk-nodejs) 9 | 10 | **Table of Contents** 11 | * [Description](#description) 12 | * [Requirements](#requirements) 13 | * [Download and Installation](#download-and-installation) 14 | * [Known Issues](#known-issues) 15 | * [How to obtain support](#how-to-obtain-support) 16 | * [Contributing](#contributing) 17 | * [To-Do (upcoming changes)](#to-do-upcoming-changes) 18 | * [License](#license) 19 | 20 | ## Description 21 | A Node.js package that acts as a thin wrapper over the [API of SAP IoT Application Enablement (SAP IoT AE)](https://uacp2.hana.ondemand.com/viewer/350cb3262cb8496b9f5e9e8b039b52db/1.32.0.0/en-US). 22 | 23 | ## Requirements 24 | Expected SAP software: 25 | * SAP IoT Application Enablement 26 | 27 | Other requirements: 28 | * [Node.js](https://nodejs.org/en/) 29 | 30 | ## Download and Installation 31 | The following guide helps you to create a simple node-application which accesses data stored in SAP IoT AE. 32 | 33 | __1. Generate a node.js application:__ 34 | 35 | Create a new folder called `node-wrapper-demo`. Start the command prompt in this folder, execute `npm init` and follow the instructions. When finished you should find a file called `package.json` in the folder. 36 | 37 | __2. Install the NodeWrapper:__ 38 | 39 | Next, we add the NodeWrapper as a dependency to our node-application. For this purpose, add the following section to the `package.json`: 40 | 41 | ```js 42 | { 43 | ... 44 | "dependencies": { 45 | "iot-application-services-sdk-nodejs": "SAP/iot-application-services-sdk-nodejs" 46 | }, 47 | ... 48 | } 49 | ``` 50 | 51 | Afterwards, go back to your command promit and execute `npm install`. This will install all dependencies specified in the `package.json`. 52 | 53 | __3. Configuration:__ 54 | 55 | Next, we have to configure our NodeWrapper. Add a file called `.env` to the root of our project and add the following content: 56 | ``` 57 | AE_OAUTH_CLIENT_ID= 58 | AE_OAUTH_CLIENT_SECRET= 59 | AE_TENANT=sap-iotaehandson 60 | AE_LANDSCAPE=eu10 61 | AE_HOST=hana.ondemand.com 62 | ``` 63 | 64 | __4. Usage:__ 65 | 66 | Now we create the main part of our application, which calls the API of SAP IoT AE. Create a file called `index.js` in the root of the project. Copy and paste the following code to this file: 67 | ```js 68 | const AE = require('iot-application-services-sdk-nodejs'); 69 | const client = new AE(); 70 | 71 | async function main() { 72 | // set the base url 73 | client.setBaseUrl('appiot-mds'); // 'appiot-mds' = the app of the API we will use in the following 74 | 75 | // request the things 76 | let responseBody; 77 | try { 78 | responseBody = await client.request('/Things'); 79 | } catch (err) { 80 | console.error(err.message); 81 | } 82 | 83 | console.log(responseBody); // will print all things on the console 84 | } 85 | 86 | main() // start the app 87 | ``` 88 | 89 | Now you can start the application. Enjoy! 90 | 91 | > Hint: If you would like to see what is happening in the background, you can enable the logging to console via ``set DEBUG=ae_nodewrapper:*``. 92 | 93 | ## Known Issues 94 | NA 95 | 96 | ## How to obtain support 97 | Please create an issue within this GitHub repsitory. 98 | 99 | ## Contributing 100 | Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. 101 | 102 | Lint and test your code using `npm test`. 103 | 104 | We use [Semantic Versioning](http://semver.org/). For the versions available, see the [tags on this repository](https://github.com/SAP/iot-application-services-sdk-nodejs/tags). 105 | 106 | ## To-Do (upcoming changes) 107 | - [X] Refactoring 108 | - [X] Send GET requests by just passing the url 109 | - [ ] Support extrem parallelization 110 | - [ ] TypeScript 111 | - [ ] Streaming 112 | 113 | ## License 114 | Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved. 115 | 116 | This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the [LICENSE file](LICENSE). 117 | -------------------------------------------------------------------------------- /example.env: -------------------------------------------------------------------------------- 1 | AE_OAUTH_CLIENT_ID=client 2 | AE_OAUTH_CLIENT_SECRET=secret 3 | AE_TENANT=sap-iotaehandson 4 | AE_LANDSCAPE=eu10 5 | AE_HOST=hana.ondemand.com -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/ApplicationEnablement'); 2 | -------------------------------------------------------------------------------- /lib/ApplicationEnablement.js: -------------------------------------------------------------------------------- 1 | require('dotenv').config(); 2 | const rp = require('request-promise-native'); 3 | const debug = require('debug')('ae_nodewrapper:ApplicationEnablement'); 4 | const Authenticator = require('./auth/authenticator'); 5 | const utils = require('./utils/utils'); 6 | 7 | /** Class acting as a NodeWrapper of SAP IoT Application Enablement. */ 8 | class ApplicationEnablement { 9 | /** 10 | * Create a NodeWrapper. 11 | * @constructor 12 | * @param {Object} config - The config of the NodeWrapper. 13 | * @param {string} config.tenant - The tenant of SAP IoT Application Enablement. 14 | * @param {string} config.landscape - The landscape of the SAP IoT Application Enablement tenant. 15 | * @param {string} config.host - The host of the SAP IoT Application Enablement tenant. 16 | * @param {string} config.clientId - The OAuth user of the SAP IoT Application Enablement tenant. 17 | * @param {string} config.clientSecret - The OAuth secret of the SAP IoT Application Enablement 18 | * tenant. 19 | */ 20 | constructor({ 21 | tenant, landscape, host, clientId, clientSecret, 22 | } = {}) { 23 | // if the user provides config, we check it here. otherwise fallback to the env variables. 24 | if (tenant && landscape && host && clientId && clientSecret) { 25 | this.tenant = tenant; 26 | this.landscape = landscape; 27 | this.host = host; 28 | this.clientId = clientId; 29 | this.clientSecret = clientSecret; 30 | } else if (process.env.AE_OAUTH_CLIENT_ID && process.env.AE_OAUTH_CLIENT_SECRET && 31 | process.env.AE_TENANT && process.env.AE_LANDSCAPE && process.env.AE_HOST) { 32 | this.tenant = process.env.AE_TENANT; 33 | this.landscape = process.env.AE_LANDSCAPE; 34 | this.host = process.env.AE_HOST; 35 | this.clientId = process.env.AE_OAUTH_CLIENT_ID; 36 | this.clientSecret = process.env.AE_OAUTH_CLIENT_SECRET; 37 | } else { 38 | throw Error('Incomplete configuration. Configure via env-file or provide all of the following properties: tenant, landscape, host, clientId, clientSecret.'); 39 | } 40 | 41 | this.authenticator = new Authenticator({ 42 | tenant: this.tenant, 43 | landscape: this.landscape, 44 | host: this.host, 45 | clientId: this.clientId, 46 | clientSecret: this.clientSecret, 47 | }); 48 | this.baseUrl = undefined; 49 | } 50 | 51 | /** 52 | * Set the base url. This url is used for all further requests as long as a no new base url is 53 | * set or the bas url is removed. 54 | * @param {string} microservice - The default microservice for further requests. 55 | * @return {string} The new base url. 56 | * 57 | * @example 58 | * const AE = new ApplicationEnablement() 59 | * AE.setBaseUrl('appiot-mds') 60 | * AE.getBaseUrl() // https://appiot-mds.cfapps.eu10.hana.ondemand.com 61 | * AE.request({ url: '/Things' }) // gets all things from https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things 62 | * AE.deleteBaseUrl() 63 | */ 64 | setBaseUrl(microservice, doCheck = true) { 65 | debug('Trying to set a new base URI'); 66 | const MICROSERVICES = [ 67 | 'business-partner', 'location', 'authorization', 'tenant-administration', 'appcore-conf', 68 | 'appiot-mds', 'appiot-coldstore', 'analytics-thing-sap', 'appiot-thing-hierarchy', 'appiot-tes', 69 | 'composite-things', 'composite-things-odata', 'composite-events-odata', 'advancedlist-thing-sap', 70 | 'cs-hierarchy-meta-sap', 'events-sap', 'config-package-sap', 'bpanalytics-event-sap', 71 | 'events-aggregate-sap', 'appiot-fs', 'tm-data-mapping', 'details-thing-sap']; // a list of all available microservices 72 | 73 | 74 | // check if the passed microservice is available 75 | if (doCheck && !MICROSERVICES.includes(microservice)) { 76 | throw Error('Unknown microservice'); 77 | } 78 | 79 | // set the base url 80 | this.baseUrl = `https://${microservice}.cfapps.${this.landscape}.${this.host}`; 81 | debug(`Set base URI to ${this.baseUrl}`); 82 | 83 | return this.baseUrl; 84 | } 85 | 86 | /** 87 | * Get the base url. 88 | * @return {string} The base url. 89 | */ 90 | getBaseUrl() { 91 | return this.baseUrl; 92 | } 93 | 94 | /** 95 | * Delete the base url. 96 | * @return {string} The old base url. 97 | */ 98 | deleteBaseUrl() { 99 | const oldBaseUrl = this.getBaseUrl(); 100 | this.baseUrl = undefined; 101 | return oldBaseUrl; 102 | } 103 | 104 | /** 105 | * Sends a http request to Application Enablement. 106 | * @param {Object} requestConfig - The request configuration. 107 | * @param {string} requestConfig.url - The url / resource path of the request. 108 | * @param {string} requestConfig.method - The http model of the request. 109 | * @param {Object} requestConfig.headers - The headers of the request. 110 | * @param {Object} requestConfig.body - The JSON body of the request. 111 | * @param {boolean} requestConfig.resolveWithFullResponse - If set to `true`, 112 | * the full response is returned (not just the respopnse body). 113 | * @return {object} The response. 114 | */ 115 | async request(requestConfig) { 116 | let { 117 | url, method, headers, body, resolveWithFullResponse, 118 | } = {}; 119 | 120 | // destructuring of the request params 121 | if (typeof requestConfig === 'string') { // only the url is passed 122 | url = requestConfig; 123 | method = 'GET'; 124 | } else { 125 | ({ 126 | url, method, headers, body, resolveWithFullResponse, 127 | } = requestConfig); 128 | } 129 | 130 | debug(`Sending a ${method} request to ${url}`); 131 | 132 | let accessToken; 133 | try { 134 | accessToken = await this.authenticator.getAccessToken(); 135 | } catch (error) { 136 | throw error; 137 | } 138 | 139 | let response; 140 | try { 141 | response = await rp({ 142 | url: this.getRequestUrl(url), 143 | method, 144 | headers: { ...headers, Authorization: `Bearer ${accessToken}` }, 145 | body, 146 | json: true, 147 | resolveWithFullResponse, 148 | }); 149 | } catch (error) { 150 | debug(error.message); 151 | throw error; 152 | } 153 | 154 | return response; 155 | } 156 | 157 | /** 158 | * Retrieves the url to request. 159 | * @param {string} resourcePath - The url or resource path to request. 160 | * @return {string} The request url. 161 | */ 162 | getRequestUrl(resourcePath) { 163 | // check if a full url is passed 164 | if (utils.isValidUrl(resourcePath)) { 165 | return resourcePath; 166 | } 167 | 168 | // check if the base url is used 169 | if (this.getBaseUrl() == null) { // a base uri is set? 170 | const error = new Error('The passed url is not valid and no base url is set.'); 171 | debug(error.message); 172 | throw error; 173 | } 174 | 175 | if (resourcePath.charAt(0) !== '/') { // is the param a valid resource path? 176 | const error = new Error(`'${resourcePath}' is not a valid resource path.`); 177 | debug(error.message); 178 | throw error; 179 | } 180 | 181 | return this.getBaseUrl() + resourcePath; 182 | } 183 | } 184 | 185 | module.exports = ApplicationEnablement; 186 | -------------------------------------------------------------------------------- /lib/auth/authenticator.js: -------------------------------------------------------------------------------- 1 | const debug = require('debug')('ae_nodewrapper:authenticator'); 2 | const rp = require('request-promise-native'); 3 | const Token = require('./token'); 4 | 5 | /** Class authenticating the client at the API of SAP IoT Application Enablement. */ 6 | class Authenticator { 7 | /** 8 | * Create a new Authenticator. 9 | * @constructor 10 | * @param {string} config.tenant - The tenant of SAP IoT Application Enablement. 11 | * @param {string} config.landscape - The landscape of the SAP IoT Application Enablement tenant. 12 | * @param {string} config.host - The host of the SAP IoT Application Enablement tenant. 13 | * @param {string} config.clientId - The OAuth user of the SAP IoT Application Enablement tenant. 14 | * @param {string} config.clientSecret - The OAuth secret of the SAP IoT Application 15 | * Enablement tenant. 16 | */ 17 | constructor({ 18 | tenant, landscape, host, clientId, clientSecret, 19 | }) { 20 | debug('Creating a new authenticator'); 21 | this.clientId = clientId; 22 | this.clientSecret = clientSecret; 23 | this.authUrl = `https://${tenant}.authentication.${landscape}.${host}/oauth/token`; 24 | } 25 | 26 | /** 27 | * Retrieves a JWT Token to authenticate at the API of SAP IoT Application Enablement. 28 | * If the client has authenticated before and the JWT token is not expired, no 29 | * new JWT Token is requested. 30 | * @return {string} The JWT Token. 31 | */ 32 | async getAccessToken() { 33 | debug('Authenticating at the API of AE.'); 34 | 35 | // if we don´t have a token or the stored token is expired, get a new one 36 | if (!this.token || this.token.isExpired()) { 37 | try { 38 | this.token = await this.getNewToken(); 39 | } catch (error) { 40 | throw error; 41 | } 42 | } 43 | 44 | return this.token.getAccessToken(); 45 | } 46 | 47 | /** 48 | * Retrieves a new JWT token to authenticate at the API of SAP IoT Application Enablement. 49 | * @return {Token} The JWT Token. 50 | */ 51 | async getNewToken() { 52 | debug('Getting a new token.'); 53 | 54 | const credentialsBase64 = Buffer.from(`${this.clientId}:${this.clientSecret}`).toString('base64'); 55 | 56 | let responseBody; 57 | try { 58 | responseBody = await rp({ 59 | url: this.authUrl, 60 | method: 'POST', 61 | form: { 62 | grant_type: 'client_credentials', 63 | response_type: 'token', 64 | }, 65 | headers: { 66 | 'Content-Type': 'application/x-www-form-urlencoded', 67 | Authorization: `Basic ${credentialsBase64}`, 68 | }, 69 | json: true, 70 | }); 71 | } catch (error) { 72 | debug(error.message); 73 | throw error; 74 | } 75 | 76 | debug('Authentification was successfull'); 77 | const token = new Token(responseBody.access_token, responseBody.expires_in); 78 | return token; 79 | } 80 | } 81 | 82 | module.exports = Authenticator; 83 | -------------------------------------------------------------------------------- /lib/auth/token.js: -------------------------------------------------------------------------------- 1 | const debug = require('debug')('ae_nodewrapper:token'); 2 | 3 | /** Class representing a JWT token. */ 4 | class Token { 5 | /** 6 | * Create a Token 7 | * @param {string} accessToken - The JWT token. 8 | * @param {number} expiresIn - The number of seconds in which the token expires. 9 | */ 10 | constructor(accessToken, expiresIn) { 11 | debug('Creating a new Token'); 12 | this.accessToken = accessToken; 13 | 14 | const currentTime = new Date().getTime() / 1000; // current time since 1.1.1970 in seconds 15 | this.expiresAt = currentTime + expiresIn; 16 | } 17 | 18 | /** 19 | * Get the JWT token. 20 | * @return {string} The JWT token. 21 | */ 22 | getAccessToken() { 23 | debug('Getting AccessToken from Token'); 24 | return this.accessToken; 25 | } 26 | 27 | /** 28 | * Indicates if the token is expired. 29 | * @return {boolean} True, if the stored token is expired 30 | */ 31 | isExpired() { 32 | debug('Checking the stored token regarding expiration'); 33 | const currentTime = new Date().getTime() / 1000; // current time since 1.1.1970 in seconds 34 | return this.expiresAt < currentTime; 35 | } 36 | } 37 | 38 | module.exports = Token; 39 | -------------------------------------------------------------------------------- /lib/utils/utils.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | 4 | /** 5 | * Check if the passed string is a valid url. 6 | * @param {string} url - The url to validate. 7 | * @return {boolean} The result of the validation. 8 | */ 9 | isValidUrl(url) { 10 | const encodedUrl = encodeURI(url); 11 | const urlRegex = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i; 12 | return urlRegex.test(encodedUrl); 13 | }, 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /npm-shrinkwrap.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iot-application-services-sdk-nodejs", 3 | "version": "2.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "acorn": { 8 | "version": "5.5.3", 9 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", 10 | "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", 11 | "dev": true 12 | }, 13 | "acorn-jsx": { 14 | "version": "3.0.1", 15 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", 16 | "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", 17 | "dev": true, 18 | "requires": { 19 | "acorn": "3.3.0" 20 | }, 21 | "dependencies": { 22 | "acorn": { 23 | "version": "3.3.0", 24 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", 25 | "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", 26 | "dev": true 27 | } 28 | } 29 | }, 30 | "ajv": { 31 | "version": "5.5.2", 32 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", 33 | "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", 34 | "requires": { 35 | "co": "4.6.0", 36 | "fast-deep-equal": "1.1.0", 37 | "fast-json-stable-stringify": "2.0.0", 38 | "json-schema-traverse": "0.3.1" 39 | } 40 | }, 41 | "ajv-keywords": { 42 | "version": "3.1.0", 43 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.1.0.tgz", 44 | "integrity": "sha1-rCsnk5xUPpXSwG5/f1wnvkqlQ74=", 45 | "dev": true 46 | }, 47 | "ansi-escapes": { 48 | "version": "3.1.0", 49 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", 50 | "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", 51 | "dev": true 52 | }, 53 | "ansi-regex": { 54 | "version": "2.1.1", 55 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 56 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 57 | }, 58 | "ansi-styles": { 59 | "version": "2.2.1", 60 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 61 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", 62 | "dev": true 63 | }, 64 | "argparse": { 65 | "version": "1.0.10", 66 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 67 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 68 | "dev": true, 69 | "requires": { 70 | "sprintf-js": "1.0.3" 71 | } 72 | }, 73 | "aria-query": { 74 | "version": "0.7.1", 75 | "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-0.7.1.tgz", 76 | "integrity": "sha1-Jsu1r/ZBRLCoJb4YRuCxbPoAsR4=", 77 | "dev": true, 78 | "requires": { 79 | "ast-types-flow": "0.0.7", 80 | "commander": "2.15.1" 81 | }, 82 | "dependencies": { 83 | "commander": { 84 | "version": "2.15.1", 85 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", 86 | "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", 87 | "dev": true 88 | } 89 | } 90 | }, 91 | "array-includes": { 92 | "version": "3.0.3", 93 | "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz", 94 | "integrity": "sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=", 95 | "dev": true, 96 | "requires": { 97 | "define-properties": "1.1.2", 98 | "es-abstract": "1.11.0" 99 | } 100 | }, 101 | "array-union": { 102 | "version": "1.0.2", 103 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", 104 | "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", 105 | "dev": true, 106 | "requires": { 107 | "array-uniq": "1.0.3" 108 | } 109 | }, 110 | "array-uniq": { 111 | "version": "1.0.3", 112 | "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", 113 | "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", 114 | "dev": true 115 | }, 116 | "arrify": { 117 | "version": "1.0.1", 118 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", 119 | "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", 120 | "dev": true 121 | }, 122 | "asap": { 123 | "version": "2.0.6", 124 | "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", 125 | "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", 126 | "dev": true 127 | }, 128 | "asn1": { 129 | "version": "0.2.3", 130 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 131 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" 132 | }, 133 | "assert-plus": { 134 | "version": "1.0.0", 135 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 136 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 137 | }, 138 | "assertion-error": { 139 | "version": "1.1.0", 140 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 141 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 142 | "dev": true 143 | }, 144 | "ast-types-flow": { 145 | "version": "0.0.7", 146 | "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", 147 | "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", 148 | "dev": true 149 | }, 150 | "async": { 151 | "version": "1.5.2", 152 | "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", 153 | "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" 154 | }, 155 | "asynckit": { 156 | "version": "0.4.0", 157 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 158 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 159 | }, 160 | "aws-sign2": { 161 | "version": "0.7.0", 162 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 163 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 164 | }, 165 | "aws4": { 166 | "version": "1.6.0", 167 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", 168 | "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" 169 | }, 170 | "axobject-query": { 171 | "version": "0.1.0", 172 | "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-0.1.0.tgz", 173 | "integrity": "sha1-YvWdvFnJ+SQnWco0mWDnov48NsA=", 174 | "dev": true, 175 | "requires": { 176 | "ast-types-flow": "0.0.7" 177 | } 178 | }, 179 | "babel-code-frame": { 180 | "version": "6.26.0", 181 | "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", 182 | "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", 183 | "dev": true, 184 | "requires": { 185 | "chalk": "1.1.3", 186 | "esutils": "2.0.2", 187 | "js-tokens": "3.0.2" 188 | }, 189 | "dependencies": { 190 | "chalk": { 191 | "version": "1.1.3", 192 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 193 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 194 | "dev": true, 195 | "requires": { 196 | "ansi-styles": "2.2.1", 197 | "escape-string-regexp": "1.0.5", 198 | "has-ansi": "2.0.0", 199 | "strip-ansi": "3.0.1", 200 | "supports-color": "2.0.0" 201 | } 202 | }, 203 | "strip-ansi": { 204 | "version": "3.0.1", 205 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 206 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 207 | "dev": true, 208 | "requires": { 209 | "ansi-regex": "2.1.1" 210 | } 211 | }, 212 | "supports-color": { 213 | "version": "2.0.0", 214 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 215 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", 216 | "dev": true 217 | } 218 | } 219 | }, 220 | "balanced-match": { 221 | "version": "1.0.0", 222 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 223 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 224 | "dev": true 225 | }, 226 | "bcrypt-pbkdf": { 227 | "version": "1.0.1", 228 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", 229 | "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", 230 | "optional": true, 231 | "requires": { 232 | "tweetnacl": "0.14.5" 233 | } 234 | }, 235 | "boom": { 236 | "version": "4.3.1", 237 | "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", 238 | "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", 239 | "requires": { 240 | "hoek": "4.2.1" 241 | } 242 | }, 243 | "brace-expansion": { 244 | "version": "1.1.8", 245 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", 246 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", 247 | "dev": true, 248 | "requires": { 249 | "balanced-match": "1.0.0", 250 | "concat-map": "0.0.1" 251 | } 252 | }, 253 | "browser-stdout": { 254 | "version": "1.3.0", 255 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", 256 | "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", 257 | "dev": true 258 | }, 259 | "buffer-from": { 260 | "version": "1.0.0", 261 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz", 262 | "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==", 263 | "dev": true 264 | }, 265 | "builtin-modules": { 266 | "version": "1.1.1", 267 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 268 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 269 | "dev": true 270 | }, 271 | "caller-path": { 272 | "version": "0.1.0", 273 | "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", 274 | "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", 275 | "dev": true, 276 | "requires": { 277 | "callsites": "0.2.0" 278 | } 279 | }, 280 | "callsites": { 281 | "version": "0.2.0", 282 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", 283 | "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", 284 | "dev": true 285 | }, 286 | "camelcase": { 287 | "version": "2.1.1", 288 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", 289 | "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" 290 | }, 291 | "caseless": { 292 | "version": "0.12.0", 293 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 294 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 295 | }, 296 | "chai": { 297 | "version": "3.5.0", 298 | "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", 299 | "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", 300 | "dev": true, 301 | "requires": { 302 | "assertion-error": "1.1.0", 303 | "deep-eql": "0.1.3", 304 | "type-detect": "1.0.0" 305 | } 306 | }, 307 | "chalk": { 308 | "version": "2.3.2", 309 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", 310 | "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", 311 | "dev": true, 312 | "requires": { 313 | "ansi-styles": "3.2.1", 314 | "escape-string-regexp": "1.0.5", 315 | "supports-color": "5.3.0" 316 | }, 317 | "dependencies": { 318 | "ansi-styles": { 319 | "version": "3.2.1", 320 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 321 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 322 | "dev": true, 323 | "requires": { 324 | "color-convert": "1.9.1" 325 | } 326 | }, 327 | "has-flag": { 328 | "version": "3.0.0", 329 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 330 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 331 | "dev": true 332 | }, 333 | "supports-color": { 334 | "version": "5.3.0", 335 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", 336 | "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", 337 | "dev": true, 338 | "requires": { 339 | "has-flag": "3.0.0" 340 | } 341 | } 342 | } 343 | }, 344 | "chardet": { 345 | "version": "0.4.2", 346 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", 347 | "integrity": "sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I=", 348 | "dev": true 349 | }, 350 | "circular-json": { 351 | "version": "0.3.3", 352 | "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", 353 | "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", 354 | "dev": true 355 | }, 356 | "cli-cursor": { 357 | "version": "2.1.0", 358 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", 359 | "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", 360 | "dev": true, 361 | "requires": { 362 | "restore-cursor": "2.0.0" 363 | } 364 | }, 365 | "cli-width": { 366 | "version": "2.2.0", 367 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", 368 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", 369 | "dev": true 370 | }, 371 | "cliui": { 372 | "version": "3.2.0", 373 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 374 | "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", 375 | "requires": { 376 | "string-width": "1.0.2", 377 | "strip-ansi": "3.0.1", 378 | "wrap-ansi": "2.1.0" 379 | }, 380 | "dependencies": { 381 | "is-fullwidth-code-point": { 382 | "version": "1.0.0", 383 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 384 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 385 | "requires": { 386 | "number-is-nan": "1.0.1" 387 | } 388 | }, 389 | "string-width": { 390 | "version": "1.0.2", 391 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 392 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 393 | "requires": { 394 | "code-point-at": "1.1.0", 395 | "is-fullwidth-code-point": "1.0.0", 396 | "strip-ansi": "3.0.1" 397 | } 398 | }, 399 | "strip-ansi": { 400 | "version": "3.0.1", 401 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 402 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 403 | "requires": { 404 | "ansi-regex": "2.1.1" 405 | } 406 | } 407 | } 408 | }, 409 | "co": { 410 | "version": "4.6.0", 411 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 412 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" 413 | }, 414 | "code-point-at": { 415 | "version": "1.1.0", 416 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 417 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 418 | }, 419 | "color-convert": { 420 | "version": "1.9.1", 421 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", 422 | "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", 423 | "dev": true, 424 | "requires": { 425 | "color-name": "1.1.3" 426 | } 427 | }, 428 | "color-name": { 429 | "version": "1.1.3", 430 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 431 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 432 | "dev": true 433 | }, 434 | "combined-stream": { 435 | "version": "1.0.6", 436 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", 437 | "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", 438 | "requires": { 439 | "delayed-stream": "1.0.0" 440 | } 441 | }, 442 | "commander": { 443 | "version": "2.9.0", 444 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", 445 | "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", 446 | "dev": true, 447 | "requires": { 448 | "graceful-readlink": "1.0.1" 449 | } 450 | }, 451 | "concat-map": { 452 | "version": "0.0.1", 453 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 454 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 455 | "dev": true 456 | }, 457 | "concat-stream": { 458 | "version": "1.6.2", 459 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 460 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 461 | "dev": true, 462 | "requires": { 463 | "buffer-from": "1.0.0", 464 | "inherits": "2.0.3", 465 | "readable-stream": "2.3.5", 466 | "typedarray": "0.0.6" 467 | } 468 | }, 469 | "contains-path": { 470 | "version": "0.1.0", 471 | "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", 472 | "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=", 473 | "dev": true 474 | }, 475 | "core-js": { 476 | "version": "1.2.7", 477 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", 478 | "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=", 479 | "dev": true 480 | }, 481 | "core-util-is": { 482 | "version": "1.0.2", 483 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 484 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 485 | }, 486 | "cross-spawn": { 487 | "version": "5.1.0", 488 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 489 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 490 | "dev": true, 491 | "requires": { 492 | "lru-cache": "4.1.2", 493 | "shebang-command": "1.2.0", 494 | "which": "1.3.0" 495 | } 496 | }, 497 | "cryptiles": { 498 | "version": "3.1.2", 499 | "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", 500 | "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", 501 | "requires": { 502 | "boom": "5.2.0" 503 | }, 504 | "dependencies": { 505 | "boom": { 506 | "version": "5.2.0", 507 | "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", 508 | "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", 509 | "requires": { 510 | "hoek": "4.2.1" 511 | } 512 | } 513 | } 514 | }, 515 | "damerau-levenshtein": { 516 | "version": "1.0.4", 517 | "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz", 518 | "integrity": "sha1-AxkcQyy27qFou3fzpV/9zLiXhRQ=", 519 | "dev": true 520 | }, 521 | "dashdash": { 522 | "version": "1.14.1", 523 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 524 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 525 | "requires": { 526 | "assert-plus": "1.0.0" 527 | } 528 | }, 529 | "debug": { 530 | "version": "3.1.0", 531 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 532 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 533 | "requires": { 534 | "ms": "2.0.0" 535 | } 536 | }, 537 | "decamelize": { 538 | "version": "1.2.0", 539 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 540 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 541 | }, 542 | "deep-eql": { 543 | "version": "0.1.3", 544 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", 545 | "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", 546 | "dev": true, 547 | "requires": { 548 | "type-detect": "0.1.1" 549 | }, 550 | "dependencies": { 551 | "type-detect": { 552 | "version": "0.1.1", 553 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", 554 | "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", 555 | "dev": true 556 | } 557 | } 558 | }, 559 | "deep-equal": { 560 | "version": "1.0.1", 561 | "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", 562 | "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", 563 | "dev": true 564 | }, 565 | "deep-is": { 566 | "version": "0.1.3", 567 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", 568 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", 569 | "dev": true 570 | }, 571 | "define-properties": { 572 | "version": "1.1.2", 573 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", 574 | "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", 575 | "dev": true, 576 | "requires": { 577 | "foreach": "2.0.5", 578 | "object-keys": "1.0.11" 579 | } 580 | }, 581 | "del": { 582 | "version": "2.2.2", 583 | "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", 584 | "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", 585 | "dev": true, 586 | "requires": { 587 | "globby": "5.0.0", 588 | "is-path-cwd": "1.0.0", 589 | "is-path-in-cwd": "1.0.1", 590 | "object-assign": "4.1.1", 591 | "pify": "2.3.0", 592 | "pinkie-promise": "2.0.1", 593 | "rimraf": "2.6.2" 594 | } 595 | }, 596 | "delayed-stream": { 597 | "version": "1.0.0", 598 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 599 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 600 | }, 601 | "diff": { 602 | "version": "3.2.0", 603 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", 604 | "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=", 605 | "dev": true 606 | }, 607 | "doctrine": { 608 | "version": "2.1.0", 609 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", 610 | "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", 611 | "dev": true, 612 | "requires": { 613 | "esutils": "2.0.2" 614 | } 615 | }, 616 | "dotenv": { 617 | "version": "4.0.0", 618 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz", 619 | "integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0=" 620 | }, 621 | "ecc-jsbn": { 622 | "version": "0.1.1", 623 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", 624 | "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", 625 | "optional": true, 626 | "requires": { 627 | "jsbn": "0.1.1" 628 | } 629 | }, 630 | "emoji-regex": { 631 | "version": "6.5.1", 632 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-6.5.1.tgz", 633 | "integrity": "sha512-PAHp6TxrCy7MGMFidro8uikr+zlJJKJ/Q6mm2ExZ7HwkyR9lSVFfE3kt36qcwa24BQL7y0G9axycGjK1A/0uNQ==", 634 | "dev": true 635 | }, 636 | "encoding": { 637 | "version": "0.1.12", 638 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", 639 | "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", 640 | "dev": true, 641 | "requires": { 642 | "iconv-lite": "0.4.19" 643 | } 644 | }, 645 | "error-ex": { 646 | "version": "1.3.1", 647 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", 648 | "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", 649 | "dev": true, 650 | "requires": { 651 | "is-arrayish": "0.2.1" 652 | } 653 | }, 654 | "es-abstract": { 655 | "version": "1.11.0", 656 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.11.0.tgz", 657 | "integrity": "sha512-ZnQrE/lXTTQ39ulXZ+J1DTFazV9qBy61x2bY071B+qGco8Z8q1QddsLdt/EF8Ai9hcWH72dWS0kFqXLxOxqslA==", 658 | "dev": true, 659 | "requires": { 660 | "es-to-primitive": "1.1.1", 661 | "function-bind": "1.1.1", 662 | "has": "1.0.1", 663 | "is-callable": "1.1.3", 664 | "is-regex": "1.0.4" 665 | } 666 | }, 667 | "es-to-primitive": { 668 | "version": "1.1.1", 669 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", 670 | "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", 671 | "dev": true, 672 | "requires": { 673 | "is-callable": "1.1.3", 674 | "is-date-object": "1.0.1", 675 | "is-symbol": "1.0.1" 676 | } 677 | }, 678 | "escape-string-regexp": { 679 | "version": "1.0.5", 680 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 681 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 682 | "dev": true 683 | }, 684 | "eslint": { 685 | "version": "4.9.0", 686 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.9.0.tgz", 687 | "integrity": "sha1-doedJ0BoJhsZH+Dy9Wx0wvQgjos=", 688 | "dev": true, 689 | "requires": { 690 | "ajv": "5.5.2", 691 | "babel-code-frame": "6.26.0", 692 | "chalk": "2.3.2", 693 | "concat-stream": "1.6.2", 694 | "cross-spawn": "5.1.0", 695 | "debug": "3.1.0", 696 | "doctrine": "2.1.0", 697 | "eslint-scope": "3.7.1", 698 | "espree": "3.5.4", 699 | "esquery": "1.0.0", 700 | "estraverse": "4.2.0", 701 | "esutils": "2.0.2", 702 | "file-entry-cache": "2.0.0", 703 | "functional-red-black-tree": "1.0.1", 704 | "glob": "7.1.2", 705 | "globals": "9.18.0", 706 | "ignore": "3.3.7", 707 | "imurmurhash": "0.1.4", 708 | "inquirer": "3.3.0", 709 | "is-resolvable": "1.1.0", 710 | "js-yaml": "3.11.0", 711 | "json-stable-stringify": "1.0.1", 712 | "levn": "0.3.0", 713 | "lodash": "4.17.4", 714 | "minimatch": "3.0.4", 715 | "mkdirp": "0.5.1", 716 | "natural-compare": "1.4.0", 717 | "optionator": "0.8.2", 718 | "path-is-inside": "1.0.2", 719 | "pluralize": "7.0.0", 720 | "progress": "2.0.0", 721 | "require-uncached": "1.0.3", 722 | "semver": "5.5.0", 723 | "strip-ansi": "4.0.0", 724 | "strip-json-comments": "2.0.1", 725 | "table": "4.0.3", 726 | "text-table": "0.2.0" 727 | }, 728 | "dependencies": { 729 | "glob": { 730 | "version": "7.1.2", 731 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 732 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", 733 | "dev": true, 734 | "requires": { 735 | "fs.realpath": "1.0.0", 736 | "inflight": "1.0.6", 737 | "inherits": "2.0.3", 738 | "minimatch": "3.0.4", 739 | "once": "1.4.0", 740 | "path-is-absolute": "1.0.1" 741 | } 742 | } 743 | } 744 | }, 745 | "eslint-config-airbnb": { 746 | "version": "16.1.0", 747 | "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-16.1.0.tgz", 748 | "integrity": "sha512-zLyOhVWhzB/jwbz7IPSbkUuj7X2ox4PHXTcZkEmDqTvd0baJmJyuxlFPDlZOE/Y5bC+HQRaEkT3FoHo9wIdRiw==", 749 | "dev": true, 750 | "requires": { 751 | "eslint-config-airbnb-base": "12.1.0" 752 | } 753 | }, 754 | "eslint-config-airbnb-base": { 755 | "version": "12.1.0", 756 | "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-12.1.0.tgz", 757 | "integrity": "sha512-/vjm0Px5ZCpmJqnjIzcFb9TKZrKWz0gnuG/7Gfkt0Db1ELJR51xkZth+t14rYdqWgX836XbuxtArbIHlVhbLBA==", 758 | "dev": true, 759 | "requires": { 760 | "eslint-restricted-globals": "0.1.1" 761 | } 762 | }, 763 | "eslint-import-resolver-node": { 764 | "version": "0.3.2", 765 | "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz", 766 | "integrity": "sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q==", 767 | "dev": true, 768 | "requires": { 769 | "debug": "2.6.9", 770 | "resolve": "1.5.0" 771 | }, 772 | "dependencies": { 773 | "debug": { 774 | "version": "2.6.9", 775 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 776 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 777 | "dev": true, 778 | "requires": { 779 | "ms": "2.0.0" 780 | } 781 | } 782 | } 783 | }, 784 | "eslint-module-utils": { 785 | "version": "2.2.0", 786 | "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz", 787 | "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=", 788 | "dev": true, 789 | "requires": { 790 | "debug": "2.6.9", 791 | "pkg-dir": "1.0.0" 792 | }, 793 | "dependencies": { 794 | "debug": { 795 | "version": "2.6.9", 796 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 797 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 798 | "dev": true, 799 | "requires": { 800 | "ms": "2.0.0" 801 | } 802 | } 803 | } 804 | }, 805 | "eslint-plugin-import": { 806 | "version": "2.7.0", 807 | "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.7.0.tgz", 808 | "integrity": "sha512-HGYmpU9f/zJaQiKNQOVfHUh2oLWW3STBrCgH0sHTX1xtsxYlH1zjLh8FlQGEIdZSdTbUMaV36WaZ6ImXkenGxQ==", 809 | "dev": true, 810 | "requires": { 811 | "builtin-modules": "1.1.1", 812 | "contains-path": "0.1.0", 813 | "debug": "2.6.9", 814 | "doctrine": "1.5.0", 815 | "eslint-import-resolver-node": "0.3.2", 816 | "eslint-module-utils": "2.2.0", 817 | "has": "1.0.1", 818 | "lodash.cond": "4.5.2", 819 | "minimatch": "3.0.4", 820 | "read-pkg-up": "2.0.0" 821 | }, 822 | "dependencies": { 823 | "debug": { 824 | "version": "2.6.9", 825 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 826 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 827 | "dev": true, 828 | "requires": { 829 | "ms": "2.0.0" 830 | } 831 | }, 832 | "doctrine": { 833 | "version": "1.5.0", 834 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", 835 | "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", 836 | "dev": true, 837 | "requires": { 838 | "esutils": "2.0.2", 839 | "isarray": "1.0.0" 840 | } 841 | } 842 | } 843 | }, 844 | "eslint-plugin-jsx-a11y": { 845 | "version": "6.0.2", 846 | "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.0.2.tgz", 847 | "integrity": "sha1-ZZJ3p1iwNsMFp+ShMFfDAc075z8=", 848 | "dev": true, 849 | "requires": { 850 | "aria-query": "0.7.1", 851 | "array-includes": "3.0.3", 852 | "ast-types-flow": "0.0.7", 853 | "axobject-query": "0.1.0", 854 | "damerau-levenshtein": "1.0.4", 855 | "emoji-regex": "6.5.1", 856 | "jsx-ast-utils": "1.4.1" 857 | } 858 | }, 859 | "eslint-plugin-react": { 860 | "version": "7.4.0", 861 | "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.4.0.tgz", 862 | "integrity": "sha512-tvjU9u3VqmW2vVuYnE8Qptq+6ji4JltjOjJ9u7VAOxVYkUkyBZWRvNYKbDv5fN+L6wiA+4we9+qQahZ0m63XEA==", 863 | "dev": true, 864 | "requires": { 865 | "doctrine": "2.1.0", 866 | "has": "1.0.1", 867 | "jsx-ast-utils": "2.0.1", 868 | "prop-types": "15.6.1" 869 | }, 870 | "dependencies": { 871 | "jsx-ast-utils": { 872 | "version": "2.0.1", 873 | "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz", 874 | "integrity": "sha1-6AGxs5mF4g//yHtA43SAgOLcrH8=", 875 | "dev": true, 876 | "requires": { 877 | "array-includes": "3.0.3" 878 | } 879 | } 880 | } 881 | }, 882 | "eslint-restricted-globals": { 883 | "version": "0.1.1", 884 | "resolved": "https://registry.npmjs.org/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz", 885 | "integrity": "sha1-NfDVy8ZMLj7WLpO0saevBbp+1Nc=", 886 | "dev": true 887 | }, 888 | "eslint-scope": { 889 | "version": "3.7.1", 890 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.1.tgz", 891 | "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", 892 | "dev": true, 893 | "requires": { 894 | "esrecurse": "4.2.1", 895 | "estraverse": "4.2.0" 896 | } 897 | }, 898 | "espree": { 899 | "version": "3.5.4", 900 | "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz", 901 | "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", 902 | "dev": true, 903 | "requires": { 904 | "acorn": "5.5.3", 905 | "acorn-jsx": "3.0.1" 906 | } 907 | }, 908 | "esprima": { 909 | "version": "4.0.0", 910 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", 911 | "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", 912 | "dev": true 913 | }, 914 | "esquery": { 915 | "version": "1.0.0", 916 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.0.tgz", 917 | "integrity": "sha1-z7qLV9f7qT8XKYqKAGoEzaE9gPo=", 918 | "dev": true, 919 | "requires": { 920 | "estraverse": "4.2.0" 921 | } 922 | }, 923 | "esrecurse": { 924 | "version": "4.2.1", 925 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", 926 | "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", 927 | "dev": true, 928 | "requires": { 929 | "estraverse": "4.2.0" 930 | } 931 | }, 932 | "estraverse": { 933 | "version": "4.2.0", 934 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", 935 | "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", 936 | "dev": true 937 | }, 938 | "esutils": { 939 | "version": "2.0.2", 940 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", 941 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", 942 | "dev": true 943 | }, 944 | "extend": { 945 | "version": "3.0.1", 946 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", 947 | "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" 948 | }, 949 | "external-editor": { 950 | "version": "2.1.0", 951 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.1.0.tgz", 952 | "integrity": "sha512-E44iT5QVOUJBKij4IIV3uvxuNlbKS38Tw1HiupxEIHPv9qtC2PrDYohbXV5U+1jnfIXttny8gUhj+oZvflFlzA==", 953 | "dev": true, 954 | "requires": { 955 | "chardet": "0.4.2", 956 | "iconv-lite": "0.4.19", 957 | "tmp": "0.0.33" 958 | } 959 | }, 960 | "extsprintf": { 961 | "version": "1.3.0", 962 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 963 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 964 | }, 965 | "fast-deep-equal": { 966 | "version": "1.1.0", 967 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", 968 | "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" 969 | }, 970 | "fast-json-stable-stringify": { 971 | "version": "2.0.0", 972 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 973 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 974 | }, 975 | "fast-levenshtein": { 976 | "version": "2.0.6", 977 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 978 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 979 | "dev": true 980 | }, 981 | "fbjs": { 982 | "version": "0.8.16", 983 | "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz", 984 | "integrity": "sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s=", 985 | "dev": true, 986 | "requires": { 987 | "core-js": "1.2.7", 988 | "isomorphic-fetch": "2.2.1", 989 | "loose-envify": "1.3.1", 990 | "object-assign": "4.1.1", 991 | "promise": "7.3.1", 992 | "setimmediate": "1.0.5", 993 | "ua-parser-js": "0.7.17" 994 | } 995 | }, 996 | "figures": { 997 | "version": "2.0.0", 998 | "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", 999 | "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", 1000 | "dev": true, 1001 | "requires": { 1002 | "escape-string-regexp": "1.0.5" 1003 | } 1004 | }, 1005 | "file-entry-cache": { 1006 | "version": "2.0.0", 1007 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", 1008 | "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", 1009 | "dev": true, 1010 | "requires": { 1011 | "flat-cache": "1.3.0", 1012 | "object-assign": "4.1.1" 1013 | } 1014 | }, 1015 | "find-up": { 1016 | "version": "1.1.2", 1017 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", 1018 | "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", 1019 | "dev": true, 1020 | "requires": { 1021 | "path-exists": "2.1.0", 1022 | "pinkie-promise": "2.0.1" 1023 | } 1024 | }, 1025 | "flat-cache": { 1026 | "version": "1.3.0", 1027 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", 1028 | "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", 1029 | "dev": true, 1030 | "requires": { 1031 | "circular-json": "0.3.3", 1032 | "del": "2.2.2", 1033 | "graceful-fs": "4.1.11", 1034 | "write": "0.2.1" 1035 | } 1036 | }, 1037 | "foreach": { 1038 | "version": "2.0.5", 1039 | "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", 1040 | "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", 1041 | "dev": true 1042 | }, 1043 | "forever-agent": { 1044 | "version": "0.6.1", 1045 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 1046 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 1047 | }, 1048 | "form-data": { 1049 | "version": "2.3.2", 1050 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", 1051 | "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", 1052 | "requires": { 1053 | "asynckit": "0.4.0", 1054 | "combined-stream": "1.0.6", 1055 | "mime-types": "2.1.18" 1056 | } 1057 | }, 1058 | "fs.realpath": { 1059 | "version": "1.0.0", 1060 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1061 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 1062 | "dev": true 1063 | }, 1064 | "function-bind": { 1065 | "version": "1.1.1", 1066 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1067 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 1068 | "dev": true 1069 | }, 1070 | "functional-red-black-tree": { 1071 | "version": "1.0.1", 1072 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 1073 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 1074 | "dev": true 1075 | }, 1076 | "getpass": { 1077 | "version": "0.1.7", 1078 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 1079 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 1080 | "requires": { 1081 | "assert-plus": "1.0.0" 1082 | } 1083 | }, 1084 | "glob": { 1085 | "version": "7.1.1", 1086 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", 1087 | "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", 1088 | "dev": true, 1089 | "requires": { 1090 | "fs.realpath": "1.0.0", 1091 | "inflight": "1.0.6", 1092 | "inherits": "2.0.3", 1093 | "minimatch": "3.0.4", 1094 | "once": "1.4.0", 1095 | "path-is-absolute": "1.0.1" 1096 | } 1097 | }, 1098 | "globals": { 1099 | "version": "9.18.0", 1100 | "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", 1101 | "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", 1102 | "dev": true 1103 | }, 1104 | "globby": { 1105 | "version": "5.0.0", 1106 | "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", 1107 | "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", 1108 | "dev": true, 1109 | "requires": { 1110 | "array-union": "1.0.2", 1111 | "arrify": "1.0.1", 1112 | "glob": "7.1.1", 1113 | "object-assign": "4.1.1", 1114 | "pify": "2.3.0", 1115 | "pinkie-promise": "2.0.1" 1116 | } 1117 | }, 1118 | "graceful-fs": { 1119 | "version": "4.1.11", 1120 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", 1121 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", 1122 | "dev": true 1123 | }, 1124 | "graceful-readlink": { 1125 | "version": "1.0.1", 1126 | "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", 1127 | "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", 1128 | "dev": true 1129 | }, 1130 | "growl": { 1131 | "version": "1.9.2", 1132 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", 1133 | "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=", 1134 | "dev": true 1135 | }, 1136 | "har-schema": { 1137 | "version": "2.0.0", 1138 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 1139 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 1140 | }, 1141 | "har-validator": { 1142 | "version": "5.0.3", 1143 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", 1144 | "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", 1145 | "requires": { 1146 | "ajv": "5.5.2", 1147 | "har-schema": "2.0.0" 1148 | } 1149 | }, 1150 | "has": { 1151 | "version": "1.0.1", 1152 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", 1153 | "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", 1154 | "dev": true, 1155 | "requires": { 1156 | "function-bind": "1.1.1" 1157 | } 1158 | }, 1159 | "has-ansi": { 1160 | "version": "2.0.0", 1161 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 1162 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", 1163 | "dev": true, 1164 | "requires": { 1165 | "ansi-regex": "2.1.1" 1166 | } 1167 | }, 1168 | "has-flag": { 1169 | "version": "1.0.0", 1170 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", 1171 | "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", 1172 | "dev": true 1173 | }, 1174 | "hawk": { 1175 | "version": "6.0.2", 1176 | "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", 1177 | "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", 1178 | "requires": { 1179 | "boom": "4.3.1", 1180 | "cryptiles": "3.1.2", 1181 | "hoek": "4.2.1", 1182 | "sntp": "2.1.0" 1183 | } 1184 | }, 1185 | "he": { 1186 | "version": "1.1.1", 1187 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 1188 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", 1189 | "dev": true 1190 | }, 1191 | "hoek": { 1192 | "version": "4.2.1", 1193 | "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", 1194 | "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==" 1195 | }, 1196 | "hosted-git-info": { 1197 | "version": "2.6.0", 1198 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz", 1199 | "integrity": "sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw==", 1200 | "dev": true 1201 | }, 1202 | "http-signature": { 1203 | "version": "1.2.0", 1204 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 1205 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 1206 | "requires": { 1207 | "assert-plus": "1.0.0", 1208 | "jsprim": "1.4.1", 1209 | "sshpk": "1.14.1" 1210 | } 1211 | }, 1212 | "iconv-lite": { 1213 | "version": "0.4.19", 1214 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", 1215 | "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", 1216 | "dev": true 1217 | }, 1218 | "ignore": { 1219 | "version": "3.3.7", 1220 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", 1221 | "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==", 1222 | "dev": true 1223 | }, 1224 | "imurmurhash": { 1225 | "version": "0.1.4", 1226 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1227 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 1228 | "dev": true 1229 | }, 1230 | "inflight": { 1231 | "version": "1.0.6", 1232 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1233 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1234 | "dev": true, 1235 | "requires": { 1236 | "once": "1.4.0", 1237 | "wrappy": "1.0.2" 1238 | } 1239 | }, 1240 | "inherits": { 1241 | "version": "2.0.3", 1242 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1243 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 1244 | "dev": true 1245 | }, 1246 | "ini": { 1247 | "version": "1.3.5", 1248 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 1249 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 1250 | }, 1251 | "inquirer": { 1252 | "version": "3.3.0", 1253 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", 1254 | "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", 1255 | "dev": true, 1256 | "requires": { 1257 | "ansi-escapes": "3.1.0", 1258 | "chalk": "2.3.2", 1259 | "cli-cursor": "2.1.0", 1260 | "cli-width": "2.2.0", 1261 | "external-editor": "2.1.0", 1262 | "figures": "2.0.0", 1263 | "lodash": "4.17.4", 1264 | "mute-stream": "0.0.7", 1265 | "run-async": "2.3.0", 1266 | "rx-lite": "4.0.8", 1267 | "rx-lite-aggregates": "4.0.8", 1268 | "string-width": "2.1.1", 1269 | "strip-ansi": "4.0.0", 1270 | "through": "2.3.8" 1271 | } 1272 | }, 1273 | "invert-kv": { 1274 | "version": "1.0.0", 1275 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", 1276 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" 1277 | }, 1278 | "is-arrayish": { 1279 | "version": "0.2.1", 1280 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1281 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", 1282 | "dev": true 1283 | }, 1284 | "is-builtin-module": { 1285 | "version": "1.0.0", 1286 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", 1287 | "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", 1288 | "dev": true, 1289 | "requires": { 1290 | "builtin-modules": "1.1.1" 1291 | } 1292 | }, 1293 | "is-callable": { 1294 | "version": "1.1.3", 1295 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", 1296 | "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=", 1297 | "dev": true 1298 | }, 1299 | "is-date-object": { 1300 | "version": "1.0.1", 1301 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 1302 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 1303 | "dev": true 1304 | }, 1305 | "is-fullwidth-code-point": { 1306 | "version": "2.0.0", 1307 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1308 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1309 | "dev": true 1310 | }, 1311 | "is-path-cwd": { 1312 | "version": "1.0.0", 1313 | "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", 1314 | "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", 1315 | "dev": true 1316 | }, 1317 | "is-path-in-cwd": { 1318 | "version": "1.0.1", 1319 | "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", 1320 | "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", 1321 | "dev": true, 1322 | "requires": { 1323 | "is-path-inside": "1.0.1" 1324 | } 1325 | }, 1326 | "is-path-inside": { 1327 | "version": "1.0.1", 1328 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", 1329 | "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", 1330 | "dev": true, 1331 | "requires": { 1332 | "path-is-inside": "1.0.2" 1333 | } 1334 | }, 1335 | "is-promise": { 1336 | "version": "2.1.0", 1337 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", 1338 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", 1339 | "dev": true 1340 | }, 1341 | "is-regex": { 1342 | "version": "1.0.4", 1343 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 1344 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 1345 | "dev": true, 1346 | "requires": { 1347 | "has": "1.0.1" 1348 | } 1349 | }, 1350 | "is-resolvable": { 1351 | "version": "1.1.0", 1352 | "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", 1353 | "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", 1354 | "dev": true 1355 | }, 1356 | "is-stream": { 1357 | "version": "1.1.0", 1358 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 1359 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 1360 | "dev": true 1361 | }, 1362 | "is-symbol": { 1363 | "version": "1.0.1", 1364 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", 1365 | "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", 1366 | "dev": true 1367 | }, 1368 | "is-typedarray": { 1369 | "version": "1.0.0", 1370 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1371 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 1372 | }, 1373 | "isarray": { 1374 | "version": "1.0.0", 1375 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1376 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1377 | "dev": true 1378 | }, 1379 | "isexe": { 1380 | "version": "2.0.0", 1381 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1382 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1383 | "dev": true 1384 | }, 1385 | "isomorphic-fetch": { 1386 | "version": "2.2.1", 1387 | "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", 1388 | "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", 1389 | "dev": true, 1390 | "requires": { 1391 | "node-fetch": "1.7.3", 1392 | "whatwg-fetch": "2.0.4" 1393 | } 1394 | }, 1395 | "isstream": { 1396 | "version": "0.1.2", 1397 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1398 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 1399 | }, 1400 | "js-tokens": { 1401 | "version": "3.0.2", 1402 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", 1403 | "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", 1404 | "dev": true 1405 | }, 1406 | "js-yaml": { 1407 | "version": "3.11.0", 1408 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", 1409 | "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", 1410 | "dev": true, 1411 | "requires": { 1412 | "argparse": "1.0.10", 1413 | "esprima": "4.0.0" 1414 | } 1415 | }, 1416 | "jsbn": { 1417 | "version": "0.1.1", 1418 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1419 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 1420 | "optional": true 1421 | }, 1422 | "json-schema": { 1423 | "version": "0.2.3", 1424 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1425 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 1426 | }, 1427 | "json-schema-traverse": { 1428 | "version": "0.3.1", 1429 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", 1430 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" 1431 | }, 1432 | "json-stable-stringify": { 1433 | "version": "1.0.1", 1434 | "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", 1435 | "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", 1436 | "dev": true, 1437 | "requires": { 1438 | "jsonify": "0.0.0" 1439 | } 1440 | }, 1441 | "json-stringify-safe": { 1442 | "version": "5.0.1", 1443 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1444 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 1445 | }, 1446 | "json3": { 1447 | "version": "3.3.2", 1448 | "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", 1449 | "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", 1450 | "dev": true 1451 | }, 1452 | "jsonify": { 1453 | "version": "0.0.0", 1454 | "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", 1455 | "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", 1456 | "dev": true 1457 | }, 1458 | "jsprim": { 1459 | "version": "1.4.1", 1460 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1461 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1462 | "requires": { 1463 | "assert-plus": "1.0.0", 1464 | "extsprintf": "1.3.0", 1465 | "json-schema": "0.2.3", 1466 | "verror": "1.10.0" 1467 | } 1468 | }, 1469 | "jsx-ast-utils": { 1470 | "version": "1.4.1", 1471 | "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz", 1472 | "integrity": "sha1-OGchPo3Xm/Ho8jAMDPwe+xgsDfE=", 1473 | "dev": true 1474 | }, 1475 | "lcid": { 1476 | "version": "1.0.0", 1477 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", 1478 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", 1479 | "requires": { 1480 | "invert-kv": "1.0.0" 1481 | } 1482 | }, 1483 | "levn": { 1484 | "version": "0.3.0", 1485 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", 1486 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", 1487 | "dev": true, 1488 | "requires": { 1489 | "prelude-ls": "1.1.2", 1490 | "type-check": "0.3.2" 1491 | } 1492 | }, 1493 | "locate-path": { 1494 | "version": "2.0.0", 1495 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", 1496 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", 1497 | "dev": true, 1498 | "requires": { 1499 | "p-locate": "2.0.0", 1500 | "path-exists": "3.0.0" 1501 | }, 1502 | "dependencies": { 1503 | "path-exists": { 1504 | "version": "3.0.0", 1505 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 1506 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 1507 | "dev": true 1508 | } 1509 | } 1510 | }, 1511 | "lodash": { 1512 | "version": "4.17.4", 1513 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", 1514 | "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" 1515 | }, 1516 | "lodash._baseassign": { 1517 | "version": "3.2.0", 1518 | "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", 1519 | "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", 1520 | "dev": true, 1521 | "requires": { 1522 | "lodash._basecopy": "3.0.1", 1523 | "lodash.keys": "3.1.2" 1524 | } 1525 | }, 1526 | "lodash._basecopy": { 1527 | "version": "3.0.1", 1528 | "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", 1529 | "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", 1530 | "dev": true 1531 | }, 1532 | "lodash._basecreate": { 1533 | "version": "3.0.3", 1534 | "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", 1535 | "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=", 1536 | "dev": true 1537 | }, 1538 | "lodash._getnative": { 1539 | "version": "3.9.1", 1540 | "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", 1541 | "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", 1542 | "dev": true 1543 | }, 1544 | "lodash._isiterateecall": { 1545 | "version": "3.0.9", 1546 | "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", 1547 | "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", 1548 | "dev": true 1549 | }, 1550 | "lodash.cond": { 1551 | "version": "4.5.2", 1552 | "resolved": "https://registry.npmjs.org/lodash.cond/-/lodash.cond-4.5.2.tgz", 1553 | "integrity": "sha1-9HGh2khr5g9quVXRcRVSPdHSVdU=", 1554 | "dev": true 1555 | }, 1556 | "lodash.create": { 1557 | "version": "3.1.1", 1558 | "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", 1559 | "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", 1560 | "dev": true, 1561 | "requires": { 1562 | "lodash._baseassign": "3.2.0", 1563 | "lodash._basecreate": "3.0.3", 1564 | "lodash._isiterateecall": "3.0.9" 1565 | } 1566 | }, 1567 | "lodash.isarguments": { 1568 | "version": "3.1.0", 1569 | "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", 1570 | "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", 1571 | "dev": true 1572 | }, 1573 | "lodash.isarray": { 1574 | "version": "3.0.4", 1575 | "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", 1576 | "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", 1577 | "dev": true 1578 | }, 1579 | "lodash.keys": { 1580 | "version": "3.1.2", 1581 | "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", 1582 | "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", 1583 | "dev": true, 1584 | "requires": { 1585 | "lodash._getnative": "3.9.1", 1586 | "lodash.isarguments": "3.1.0", 1587 | "lodash.isarray": "3.0.4" 1588 | } 1589 | }, 1590 | "loose-envify": { 1591 | "version": "1.3.1", 1592 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", 1593 | "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", 1594 | "dev": true, 1595 | "requires": { 1596 | "js-tokens": "3.0.2" 1597 | } 1598 | }, 1599 | "lru-cache": { 1600 | "version": "4.1.2", 1601 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", 1602 | "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", 1603 | "dev": true, 1604 | "requires": { 1605 | "pseudomap": "1.0.2", 1606 | "yallist": "2.1.2" 1607 | } 1608 | }, 1609 | "mime-db": { 1610 | "version": "1.33.0", 1611 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", 1612 | "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" 1613 | }, 1614 | "mime-types": { 1615 | "version": "2.1.18", 1616 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", 1617 | "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", 1618 | "requires": { 1619 | "mime-db": "1.33.0" 1620 | } 1621 | }, 1622 | "mimic-fn": { 1623 | "version": "1.2.0", 1624 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", 1625 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", 1626 | "dev": true 1627 | }, 1628 | "minimatch": { 1629 | "version": "3.0.4", 1630 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1631 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1632 | "dev": true, 1633 | "requires": { 1634 | "brace-expansion": "1.1.8" 1635 | } 1636 | }, 1637 | "minimist": { 1638 | "version": "0.0.8", 1639 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1640 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 1641 | "dev": true 1642 | }, 1643 | "mkdirp": { 1644 | "version": "0.5.1", 1645 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1646 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1647 | "dev": true, 1648 | "requires": { 1649 | "minimist": "0.0.8" 1650 | } 1651 | }, 1652 | "mocha": { 1653 | "version": "3.5.3", 1654 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.3.tgz", 1655 | "integrity": "sha512-/6na001MJWEtYxHOV1WLfsmR4YIynkUEhBwzsb+fk2qmQ3iqsi258l/Q2MWHJMImAcNpZ8DEdYAK72NHoIQ9Eg==", 1656 | "dev": true, 1657 | "requires": { 1658 | "browser-stdout": "1.3.0", 1659 | "commander": "2.9.0", 1660 | "debug": "2.6.8", 1661 | "diff": "3.2.0", 1662 | "escape-string-regexp": "1.0.5", 1663 | "glob": "7.1.1", 1664 | "growl": "1.9.2", 1665 | "he": "1.1.1", 1666 | "json3": "3.3.2", 1667 | "lodash.create": "3.1.1", 1668 | "mkdirp": "0.5.1", 1669 | "supports-color": "3.1.2" 1670 | }, 1671 | "dependencies": { 1672 | "debug": { 1673 | "version": "2.6.8", 1674 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", 1675 | "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", 1676 | "dev": true, 1677 | "requires": { 1678 | "ms": "2.0.0" 1679 | } 1680 | } 1681 | } 1682 | }, 1683 | "ms": { 1684 | "version": "2.0.0", 1685 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1686 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1687 | }, 1688 | "mute-stream": { 1689 | "version": "0.0.7", 1690 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", 1691 | "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", 1692 | "dev": true 1693 | }, 1694 | "natural-compare": { 1695 | "version": "1.4.0", 1696 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1697 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1698 | "dev": true 1699 | }, 1700 | "nconf": { 1701 | "version": "0.10.0", 1702 | "resolved": "https://registry.npmjs.org/nconf/-/nconf-0.10.0.tgz", 1703 | "integrity": "sha512-fKiXMQrpP7CYWJQzKkPPx9hPgmq+YLDyxcG9N8RpiE9FoCkCbzD0NyW0YhE3xn3Aupe7nnDeIx4PFzYehpHT9Q==", 1704 | "requires": { 1705 | "async": "1.5.2", 1706 | "ini": "1.3.5", 1707 | "secure-keys": "1.0.0", 1708 | "yargs": "3.32.0" 1709 | } 1710 | }, 1711 | "nock": { 1712 | "version": "9.1.6", 1713 | "resolved": "https://registry.npmjs.org/nock/-/nock-9.1.6.tgz", 1714 | "integrity": "sha512-DuKF+1W/FnMO6MXIGgCIWcM95bETjBbmFdR4v7dAj1zH9a9XhOjAa//PuWh98XIXxcZt7wdiv0JlO0AA0e2kqQ==", 1715 | "dev": true, 1716 | "requires": { 1717 | "chai": "3.5.0", 1718 | "debug": "2.6.9", 1719 | "deep-equal": "1.0.1", 1720 | "json-stringify-safe": "5.0.1", 1721 | "lodash": "4.17.4", 1722 | "mkdirp": "0.5.1", 1723 | "propagate": "0.4.0", 1724 | "qs": "6.5.1", 1725 | "semver": "5.5.0" 1726 | }, 1727 | "dependencies": { 1728 | "debug": { 1729 | "version": "2.6.9", 1730 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1731 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1732 | "dev": true, 1733 | "requires": { 1734 | "ms": "2.0.0" 1735 | } 1736 | } 1737 | } 1738 | }, 1739 | "node-fetch": { 1740 | "version": "1.7.3", 1741 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", 1742 | "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", 1743 | "dev": true, 1744 | "requires": { 1745 | "encoding": "0.1.12", 1746 | "is-stream": "1.1.0" 1747 | } 1748 | }, 1749 | "normalize-package-data": { 1750 | "version": "2.4.0", 1751 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", 1752 | "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", 1753 | "dev": true, 1754 | "requires": { 1755 | "hosted-git-info": "2.6.0", 1756 | "is-builtin-module": "1.0.0", 1757 | "semver": "5.5.0", 1758 | "validate-npm-package-license": "3.0.3" 1759 | } 1760 | }, 1761 | "number-is-nan": { 1762 | "version": "1.0.1", 1763 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1764 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 1765 | }, 1766 | "oauth-sign": { 1767 | "version": "0.8.2", 1768 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", 1769 | "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" 1770 | }, 1771 | "object-assign": { 1772 | "version": "4.1.1", 1773 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1774 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 1775 | "dev": true 1776 | }, 1777 | "object-keys": { 1778 | "version": "1.0.11", 1779 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", 1780 | "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=", 1781 | "dev": true 1782 | }, 1783 | "once": { 1784 | "version": "1.4.0", 1785 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1786 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1787 | "dev": true, 1788 | "requires": { 1789 | "wrappy": "1.0.2" 1790 | } 1791 | }, 1792 | "onetime": { 1793 | "version": "2.0.1", 1794 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", 1795 | "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", 1796 | "dev": true, 1797 | "requires": { 1798 | "mimic-fn": "1.2.0" 1799 | } 1800 | }, 1801 | "optionator": { 1802 | "version": "0.8.2", 1803 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", 1804 | "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", 1805 | "dev": true, 1806 | "requires": { 1807 | "deep-is": "0.1.3", 1808 | "fast-levenshtein": "2.0.6", 1809 | "levn": "0.3.0", 1810 | "prelude-ls": "1.1.2", 1811 | "type-check": "0.3.2", 1812 | "wordwrap": "1.0.0" 1813 | } 1814 | }, 1815 | "os-locale": { 1816 | "version": "1.4.0", 1817 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", 1818 | "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", 1819 | "requires": { 1820 | "lcid": "1.0.0" 1821 | } 1822 | }, 1823 | "os-tmpdir": { 1824 | "version": "1.0.2", 1825 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1826 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", 1827 | "dev": true 1828 | }, 1829 | "p-limit": { 1830 | "version": "1.2.0", 1831 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", 1832 | "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", 1833 | "dev": true, 1834 | "requires": { 1835 | "p-try": "1.0.0" 1836 | } 1837 | }, 1838 | "p-locate": { 1839 | "version": "2.0.0", 1840 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", 1841 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", 1842 | "dev": true, 1843 | "requires": { 1844 | "p-limit": "1.2.0" 1845 | } 1846 | }, 1847 | "p-try": { 1848 | "version": "1.0.0", 1849 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", 1850 | "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", 1851 | "dev": true 1852 | }, 1853 | "path-exists": { 1854 | "version": "2.1.0", 1855 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", 1856 | "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", 1857 | "dev": true, 1858 | "requires": { 1859 | "pinkie-promise": "2.0.1" 1860 | } 1861 | }, 1862 | "path-is-absolute": { 1863 | "version": "1.0.1", 1864 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1865 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1866 | "dev": true 1867 | }, 1868 | "path-is-inside": { 1869 | "version": "1.0.2", 1870 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", 1871 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", 1872 | "dev": true 1873 | }, 1874 | "path-parse": { 1875 | "version": "1.0.5", 1876 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", 1877 | "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", 1878 | "dev": true 1879 | }, 1880 | "path-type": { 1881 | "version": "2.0.0", 1882 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", 1883 | "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", 1884 | "dev": true, 1885 | "requires": { 1886 | "pify": "2.3.0" 1887 | } 1888 | }, 1889 | "performance-now": { 1890 | "version": "2.1.0", 1891 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 1892 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 1893 | }, 1894 | "pify": { 1895 | "version": "2.3.0", 1896 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 1897 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", 1898 | "dev": true 1899 | }, 1900 | "pinkie": { 1901 | "version": "2.0.4", 1902 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 1903 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", 1904 | "dev": true 1905 | }, 1906 | "pinkie-promise": { 1907 | "version": "2.0.1", 1908 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 1909 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 1910 | "dev": true, 1911 | "requires": { 1912 | "pinkie": "2.0.4" 1913 | } 1914 | }, 1915 | "pkg-dir": { 1916 | "version": "1.0.0", 1917 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", 1918 | "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", 1919 | "dev": true, 1920 | "requires": { 1921 | "find-up": "1.1.2" 1922 | } 1923 | }, 1924 | "pluralize": { 1925 | "version": "7.0.0", 1926 | "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", 1927 | "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", 1928 | "dev": true 1929 | }, 1930 | "prelude-ls": { 1931 | "version": "1.1.2", 1932 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", 1933 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", 1934 | "dev": true 1935 | }, 1936 | "process-nextick-args": { 1937 | "version": "2.0.0", 1938 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", 1939 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", 1940 | "dev": true 1941 | }, 1942 | "progress": { 1943 | "version": "2.0.0", 1944 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz", 1945 | "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", 1946 | "dev": true 1947 | }, 1948 | "promise": { 1949 | "version": "7.3.1", 1950 | "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", 1951 | "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", 1952 | "dev": true, 1953 | "requires": { 1954 | "asap": "2.0.6" 1955 | } 1956 | }, 1957 | "prop-types": { 1958 | "version": "15.6.1", 1959 | "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", 1960 | "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", 1961 | "dev": true, 1962 | "requires": { 1963 | "fbjs": "0.8.16", 1964 | "loose-envify": "1.3.1", 1965 | "object-assign": "4.1.1" 1966 | } 1967 | }, 1968 | "propagate": { 1969 | "version": "0.4.0", 1970 | "resolved": "https://registry.npmjs.org/propagate/-/propagate-0.4.0.tgz", 1971 | "integrity": "sha1-8/zKCm/gZzanulcpZgaWF8EwtIE=", 1972 | "dev": true 1973 | }, 1974 | "pseudomap": { 1975 | "version": "1.0.2", 1976 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1977 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 1978 | "dev": true 1979 | }, 1980 | "punycode": { 1981 | "version": "1.4.1", 1982 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 1983 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" 1984 | }, 1985 | "qs": { 1986 | "version": "6.5.1", 1987 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", 1988 | "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" 1989 | }, 1990 | "read-pkg": { 1991 | "version": "2.0.0", 1992 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", 1993 | "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", 1994 | "dev": true, 1995 | "requires": { 1996 | "load-json-file": "2.0.0", 1997 | "normalize-package-data": "2.4.0", 1998 | "path-type": "2.0.0" 1999 | }, 2000 | "dependencies": { 2001 | "load-json-file": { 2002 | "version": "2.0.0", 2003 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", 2004 | "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", 2005 | "dev": true, 2006 | "requires": { 2007 | "graceful-fs": "4.1.11", 2008 | "parse-json": "2.2.0", 2009 | "pify": "2.3.0", 2010 | "strip-bom": "3.0.0" 2011 | } 2012 | }, 2013 | "parse-json": { 2014 | "version": "2.2.0", 2015 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", 2016 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", 2017 | "dev": true, 2018 | "requires": { 2019 | "error-ex": "1.3.1" 2020 | } 2021 | } 2022 | } 2023 | }, 2024 | "read-pkg-up": { 2025 | "version": "2.0.0", 2026 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", 2027 | "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", 2028 | "dev": true, 2029 | "requires": { 2030 | "find-up": "2.1.0", 2031 | "read-pkg": "2.0.0" 2032 | }, 2033 | "dependencies": { 2034 | "find-up": { 2035 | "version": "2.1.0", 2036 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", 2037 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", 2038 | "dev": true, 2039 | "requires": { 2040 | "locate-path": "2.0.0" 2041 | } 2042 | } 2043 | } 2044 | }, 2045 | "readable-stream": { 2046 | "version": "2.3.5", 2047 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", 2048 | "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", 2049 | "dev": true, 2050 | "requires": { 2051 | "core-util-is": "1.0.2", 2052 | "inherits": "2.0.3", 2053 | "isarray": "1.0.0", 2054 | "process-nextick-args": "2.0.0", 2055 | "safe-buffer": "5.1.1", 2056 | "string_decoder": "1.0.3", 2057 | "util-deprecate": "1.0.2" 2058 | } 2059 | }, 2060 | "request": { 2061 | "version": "2.85.0", 2062 | "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", 2063 | "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", 2064 | "requires": { 2065 | "aws-sign2": "0.7.0", 2066 | "aws4": "1.6.0", 2067 | "caseless": "0.12.0", 2068 | "combined-stream": "1.0.6", 2069 | "extend": "3.0.1", 2070 | "forever-agent": "0.6.1", 2071 | "form-data": "2.3.2", 2072 | "har-validator": "5.0.3", 2073 | "hawk": "6.0.2", 2074 | "http-signature": "1.2.0", 2075 | "is-typedarray": "1.0.0", 2076 | "isstream": "0.1.2", 2077 | "json-stringify-safe": "5.0.1", 2078 | "mime-types": "2.1.18", 2079 | "oauth-sign": "0.8.2", 2080 | "performance-now": "2.1.0", 2081 | "qs": "6.5.1", 2082 | "safe-buffer": "5.1.1", 2083 | "stringstream": "0.0.5", 2084 | "tough-cookie": "2.3.4", 2085 | "tunnel-agent": "0.6.0", 2086 | "uuid": "3.2.1" 2087 | } 2088 | }, 2089 | "request-promise-core": { 2090 | "version": "1.1.1", 2091 | "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", 2092 | "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", 2093 | "requires": { 2094 | "lodash": "4.17.4" 2095 | } 2096 | }, 2097 | "request-promise-native": { 2098 | "version": "1.0.5", 2099 | "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.5.tgz", 2100 | "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", 2101 | "requires": { 2102 | "request-promise-core": "1.1.1", 2103 | "stealthy-require": "1.1.1", 2104 | "tough-cookie": "2.3.4" 2105 | } 2106 | }, 2107 | "require-uncached": { 2108 | "version": "1.0.3", 2109 | "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", 2110 | "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", 2111 | "dev": true, 2112 | "requires": { 2113 | "caller-path": "0.1.0", 2114 | "resolve-from": "1.0.1" 2115 | } 2116 | }, 2117 | "resolve": { 2118 | "version": "1.5.0", 2119 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", 2120 | "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", 2121 | "dev": true, 2122 | "requires": { 2123 | "path-parse": "1.0.5" 2124 | } 2125 | }, 2126 | "resolve-from": { 2127 | "version": "1.0.1", 2128 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", 2129 | "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", 2130 | "dev": true 2131 | }, 2132 | "restore-cursor": { 2133 | "version": "2.0.0", 2134 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", 2135 | "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", 2136 | "dev": true, 2137 | "requires": { 2138 | "onetime": "2.0.1", 2139 | "signal-exit": "3.0.2" 2140 | } 2141 | }, 2142 | "rimraf": { 2143 | "version": "2.6.2", 2144 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", 2145 | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", 2146 | "dev": true, 2147 | "requires": { 2148 | "glob": "7.1.1" 2149 | } 2150 | }, 2151 | "run-async": { 2152 | "version": "2.3.0", 2153 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", 2154 | "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", 2155 | "dev": true, 2156 | "requires": { 2157 | "is-promise": "2.1.0" 2158 | } 2159 | }, 2160 | "rx-lite": { 2161 | "version": "4.0.8", 2162 | "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", 2163 | "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=", 2164 | "dev": true 2165 | }, 2166 | "rx-lite-aggregates": { 2167 | "version": "4.0.8", 2168 | "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", 2169 | "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", 2170 | "dev": true, 2171 | "requires": { 2172 | "rx-lite": "4.0.8" 2173 | } 2174 | }, 2175 | "safe-buffer": { 2176 | "version": "5.1.1", 2177 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 2178 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 2179 | }, 2180 | "secure-keys": { 2181 | "version": "1.0.0", 2182 | "resolved": "https://registry.npmjs.org/secure-keys/-/secure-keys-1.0.0.tgz", 2183 | "integrity": "sha1-8MgtmKOxOah3aogIBQuCRDEIf8o=" 2184 | }, 2185 | "semver": { 2186 | "version": "5.5.0", 2187 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", 2188 | "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", 2189 | "dev": true 2190 | }, 2191 | "setimmediate": { 2192 | "version": "1.0.5", 2193 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 2194 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", 2195 | "dev": true 2196 | }, 2197 | "shebang-command": { 2198 | "version": "1.2.0", 2199 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 2200 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 2201 | "dev": true, 2202 | "requires": { 2203 | "shebang-regex": "1.0.0" 2204 | } 2205 | }, 2206 | "shebang-regex": { 2207 | "version": "1.0.0", 2208 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 2209 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 2210 | "dev": true 2211 | }, 2212 | "signal-exit": { 2213 | "version": "3.0.2", 2214 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 2215 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 2216 | "dev": true 2217 | }, 2218 | "slice-ansi": { 2219 | "version": "1.0.0", 2220 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", 2221 | "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", 2222 | "dev": true, 2223 | "requires": { 2224 | "is-fullwidth-code-point": "2.0.0" 2225 | } 2226 | }, 2227 | "sntp": { 2228 | "version": "2.1.0", 2229 | "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", 2230 | "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", 2231 | "requires": { 2232 | "hoek": "4.2.1" 2233 | } 2234 | }, 2235 | "spdx-correct": { 2236 | "version": "3.0.0", 2237 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", 2238 | "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", 2239 | "dev": true, 2240 | "requires": { 2241 | "spdx-expression-parse": "3.0.0", 2242 | "spdx-license-ids": "3.0.0" 2243 | } 2244 | }, 2245 | "spdx-exceptions": { 2246 | "version": "2.1.0", 2247 | "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", 2248 | "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==", 2249 | "dev": true 2250 | }, 2251 | "spdx-expression-parse": { 2252 | "version": "3.0.0", 2253 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", 2254 | "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", 2255 | "dev": true, 2256 | "requires": { 2257 | "spdx-exceptions": "2.1.0", 2258 | "spdx-license-ids": "3.0.0" 2259 | } 2260 | }, 2261 | "spdx-license-ids": { 2262 | "version": "3.0.0", 2263 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", 2264 | "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==", 2265 | "dev": true 2266 | }, 2267 | "sprintf-js": { 2268 | "version": "1.0.3", 2269 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2270 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 2271 | "dev": true 2272 | }, 2273 | "sshpk": { 2274 | "version": "1.14.1", 2275 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", 2276 | "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", 2277 | "requires": { 2278 | "asn1": "0.2.3", 2279 | "assert-plus": "1.0.0", 2280 | "bcrypt-pbkdf": "1.0.1", 2281 | "dashdash": "1.14.1", 2282 | "ecc-jsbn": "0.1.1", 2283 | "getpass": "0.1.7", 2284 | "jsbn": "0.1.1", 2285 | "tweetnacl": "0.14.5" 2286 | } 2287 | }, 2288 | "stealthy-require": { 2289 | "version": "1.1.1", 2290 | "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", 2291 | "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" 2292 | }, 2293 | "string-width": { 2294 | "version": "2.1.1", 2295 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2296 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2297 | "dev": true, 2298 | "requires": { 2299 | "is-fullwidth-code-point": "2.0.0", 2300 | "strip-ansi": "4.0.0" 2301 | } 2302 | }, 2303 | "string_decoder": { 2304 | "version": "1.0.3", 2305 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", 2306 | "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", 2307 | "dev": true, 2308 | "requires": { 2309 | "safe-buffer": "5.1.1" 2310 | } 2311 | }, 2312 | "stringstream": { 2313 | "version": "0.0.5", 2314 | "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", 2315 | "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" 2316 | }, 2317 | "strip-ansi": { 2318 | "version": "4.0.0", 2319 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2320 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2321 | "dev": true, 2322 | "requires": { 2323 | "ansi-regex": "3.0.0" 2324 | }, 2325 | "dependencies": { 2326 | "ansi-regex": { 2327 | "version": "3.0.0", 2328 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 2329 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 2330 | "dev": true 2331 | } 2332 | } 2333 | }, 2334 | "strip-bom": { 2335 | "version": "3.0.0", 2336 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 2337 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", 2338 | "dev": true 2339 | }, 2340 | "strip-json-comments": { 2341 | "version": "2.0.1", 2342 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2343 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 2344 | "dev": true 2345 | }, 2346 | "supports-color": { 2347 | "version": "3.1.2", 2348 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", 2349 | "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", 2350 | "dev": true, 2351 | "requires": { 2352 | "has-flag": "1.0.0" 2353 | } 2354 | }, 2355 | "table": { 2356 | "version": "4.0.3", 2357 | "resolved": "https://registry.npmjs.org/table/-/table-4.0.3.tgz", 2358 | "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==", 2359 | "dev": true, 2360 | "requires": { 2361 | "ajv": "6.4.0", 2362 | "ajv-keywords": "3.1.0", 2363 | "chalk": "2.3.2", 2364 | "lodash": "4.17.4", 2365 | "slice-ansi": "1.0.0", 2366 | "string-width": "2.1.1" 2367 | }, 2368 | "dependencies": { 2369 | "ajv": { 2370 | "version": "6.4.0", 2371 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.4.0.tgz", 2372 | "integrity": "sha1-06/3jpJ3VJdx2vAWTP9ISCt1T8Y=", 2373 | "dev": true, 2374 | "requires": { 2375 | "fast-deep-equal": "1.1.0", 2376 | "fast-json-stable-stringify": "2.0.0", 2377 | "json-schema-traverse": "0.3.1", 2378 | "uri-js": "3.0.2" 2379 | } 2380 | } 2381 | } 2382 | }, 2383 | "text-table": { 2384 | "version": "0.2.0", 2385 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2386 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 2387 | "dev": true 2388 | }, 2389 | "through": { 2390 | "version": "2.3.8", 2391 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 2392 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 2393 | "dev": true 2394 | }, 2395 | "tmp": { 2396 | "version": "0.0.33", 2397 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 2398 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 2399 | "dev": true, 2400 | "requires": { 2401 | "os-tmpdir": "1.0.2" 2402 | } 2403 | }, 2404 | "tough-cookie": { 2405 | "version": "2.3.4", 2406 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", 2407 | "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", 2408 | "requires": { 2409 | "punycode": "1.4.1" 2410 | } 2411 | }, 2412 | "tunnel-agent": { 2413 | "version": "0.6.0", 2414 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 2415 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 2416 | "requires": { 2417 | "safe-buffer": "5.1.1" 2418 | } 2419 | }, 2420 | "tweetnacl": { 2421 | "version": "0.14.5", 2422 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 2423 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 2424 | "optional": true 2425 | }, 2426 | "type-check": { 2427 | "version": "0.3.2", 2428 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", 2429 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", 2430 | "dev": true, 2431 | "requires": { 2432 | "prelude-ls": "1.1.2" 2433 | } 2434 | }, 2435 | "type-detect": { 2436 | "version": "1.0.0", 2437 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", 2438 | "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", 2439 | "dev": true 2440 | }, 2441 | "typedarray": { 2442 | "version": "0.0.6", 2443 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 2444 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", 2445 | "dev": true 2446 | }, 2447 | "ua-parser-js": { 2448 | "version": "0.7.17", 2449 | "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.17.tgz", 2450 | "integrity": "sha512-uRdSdu1oA1rncCQL7sCj8vSyZkgtL7faaw9Tc9rZ3mGgraQ7+Pdx7w5mnOSF3gw9ZNG6oc+KXfkon3bKuROm0g==", 2451 | "dev": true 2452 | }, 2453 | "uri-js": { 2454 | "version": "3.0.2", 2455 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-3.0.2.tgz", 2456 | "integrity": "sha1-+QuFhQf4HepNz7s8TD2/orVX+qo=", 2457 | "dev": true, 2458 | "requires": { 2459 | "punycode": "2.1.0" 2460 | }, 2461 | "dependencies": { 2462 | "punycode": { 2463 | "version": "2.1.0", 2464 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", 2465 | "integrity": "sha1-X4Y+3Im5bbCQdLrXlHvwkFbKTn0=", 2466 | "dev": true 2467 | } 2468 | } 2469 | }, 2470 | "util-deprecate": { 2471 | "version": "1.0.2", 2472 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2473 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 2474 | "dev": true 2475 | }, 2476 | "uuid": { 2477 | "version": "3.2.1", 2478 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", 2479 | "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==" 2480 | }, 2481 | "validate-npm-package-license": { 2482 | "version": "3.0.3", 2483 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", 2484 | "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", 2485 | "dev": true, 2486 | "requires": { 2487 | "spdx-correct": "3.0.0", 2488 | "spdx-expression-parse": "3.0.0" 2489 | } 2490 | }, 2491 | "verror": { 2492 | "version": "1.10.0", 2493 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 2494 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 2495 | "requires": { 2496 | "assert-plus": "1.0.0", 2497 | "core-util-is": "1.0.2", 2498 | "extsprintf": "1.3.0" 2499 | } 2500 | }, 2501 | "whatwg-fetch": { 2502 | "version": "2.0.4", 2503 | "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", 2504 | "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==", 2505 | "dev": true 2506 | }, 2507 | "which": { 2508 | "version": "1.3.0", 2509 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", 2510 | "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", 2511 | "dev": true, 2512 | "requires": { 2513 | "isexe": "2.0.0" 2514 | } 2515 | }, 2516 | "window-size": { 2517 | "version": "0.1.4", 2518 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", 2519 | "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" 2520 | }, 2521 | "wordwrap": { 2522 | "version": "1.0.0", 2523 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", 2524 | "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", 2525 | "dev": true 2526 | }, 2527 | "wrap-ansi": { 2528 | "version": "2.1.0", 2529 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 2530 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 2531 | "requires": { 2532 | "string-width": "1.0.2", 2533 | "strip-ansi": "3.0.1" 2534 | }, 2535 | "dependencies": { 2536 | "is-fullwidth-code-point": { 2537 | "version": "1.0.0", 2538 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 2539 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 2540 | "requires": { 2541 | "number-is-nan": "1.0.1" 2542 | } 2543 | }, 2544 | "string-width": { 2545 | "version": "1.0.2", 2546 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 2547 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 2548 | "requires": { 2549 | "code-point-at": "1.1.0", 2550 | "is-fullwidth-code-point": "1.0.0", 2551 | "strip-ansi": "3.0.1" 2552 | } 2553 | }, 2554 | "strip-ansi": { 2555 | "version": "3.0.1", 2556 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2557 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2558 | "requires": { 2559 | "ansi-regex": "2.1.1" 2560 | } 2561 | } 2562 | } 2563 | }, 2564 | "wrappy": { 2565 | "version": "1.0.2", 2566 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2567 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2568 | "dev": true 2569 | }, 2570 | "write": { 2571 | "version": "0.2.1", 2572 | "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", 2573 | "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", 2574 | "dev": true, 2575 | "requires": { 2576 | "mkdirp": "0.5.1" 2577 | } 2578 | }, 2579 | "y18n": { 2580 | "version": "3.2.1", 2581 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", 2582 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" 2583 | }, 2584 | "yallist": { 2585 | "version": "2.1.2", 2586 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 2587 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 2588 | "dev": true 2589 | }, 2590 | "yargs": { 2591 | "version": "3.32.0", 2592 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", 2593 | "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", 2594 | "requires": { 2595 | "camelcase": "2.1.1", 2596 | "cliui": "3.2.0", 2597 | "decamelize": "1.2.0", 2598 | "os-locale": "1.4.0", 2599 | "string-width": "1.0.2", 2600 | "window-size": "0.1.4", 2601 | "y18n": "3.2.1" 2602 | }, 2603 | "dependencies": { 2604 | "is-fullwidth-code-point": { 2605 | "version": "1.0.0", 2606 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 2607 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 2608 | "requires": { 2609 | "number-is-nan": "1.0.1" 2610 | } 2611 | }, 2612 | "string-width": { 2613 | "version": "1.0.2", 2614 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 2615 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 2616 | "requires": { 2617 | "code-point-at": "1.1.0", 2618 | "is-fullwidth-code-point": "1.0.0", 2619 | "strip-ansi": "3.0.1" 2620 | } 2621 | }, 2622 | "strip-ansi": { 2623 | "version": "3.0.1", 2624 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2625 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2626 | "requires": { 2627 | "ansi-regex": "2.1.1" 2628 | } 2629 | } 2630 | } 2631 | } 2632 | } 2633 | } 2634 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iot-application-services-sdk-nodejs", 3 | "version": "2.0.0", 4 | "description": "NodeJS package that acts as a thin wrapper over the API of SAP IoT Application Enablement.", 5 | "main": "index.js", 6 | "scripts": { 7 | "pretest": "eslint --ignore-path .gitignore .", 8 | "test": "set NODE_ENV=test && mocha --recursive" 9 | }, 10 | "dependencies": { 11 | "debug": "^3.1.0", 12 | "dotenv": "^4.0.0", 13 | "request": "^2.85.0", 14 | "request-promise-native": "^1.0.5", 15 | "nconf": "^0.10.0" 16 | }, 17 | "devDependencies": { 18 | "eslint": "^4.9.0", 19 | "eslint-config-airbnb": "^16.1.0", 20 | "eslint-plugin-import": "^2.7.0", 21 | "eslint-plugin-jsx-a11y": "^6.0.2", 22 | "eslint-plugin-react": "^7.4.0", 23 | "mocha": "^3.4.2", 24 | "nock": "^9.0.13" 25 | }, 26 | "repository": { 27 | "type": "git", 28 | "url": "https://github.com/SAP/iot-application-services-sdk-nodejs" 29 | }, 30 | "keywords": [ 31 | "SAP", 32 | "IoT", 33 | "Application", 34 | "Enablement", 35 | "AE", 36 | "NodeWrapper" 37 | ], 38 | "author": "SAP SE", 39 | "license": "Apache-2.0" 40 | } 41 | -------------------------------------------------------------------------------- /test/ApplicationEnablement.getRequestUrl.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it beforeEach */ 2 | const assert = require('assert'); 3 | const ApplicationEnablement = require('../lib/ApplicationEnablement'); 4 | 5 | let AE; 6 | 7 | describe('ApplicationEnablement', () => { 8 | beforeEach(() => { 9 | AE = new ApplicationEnablement({ 10 | clientId: 'clientId', 11 | clientSecret: 'clientSecret', 12 | tenant: 'sap-iotaehandson', 13 | landscape: 'eu10', 14 | host: 'hana.ondemand.com', 15 | }); 16 | }); 17 | 18 | describe('getRequestUrl', () => { 19 | it('should use the base url', () => { 20 | AE.setBaseUrl('appiot-mds'); 21 | const url = AE.getRequestUrl('/test'); 22 | assert.equal(url, `${AE.getBaseUrl()}/test`); 23 | }); 24 | 25 | it('should not use the base url as a valid URI is passed', () => { 26 | AE.setBaseUrl('appiot-mds'); 27 | const url = 'https://location.cfapps.eu10.hana.ondemand.com/test'; 28 | assert.equal(AE.getRequestUrl(url), url); 29 | }); 30 | 31 | it('should throw an error as a non-valid url is passed and base url is not set', () => { 32 | try { 33 | AE.getRequestUrl('ps.eu10.hana.ondemand.com/test'); 34 | throw new Error(); // should not get until here 35 | } catch (error) { 36 | assert.equal(error.message, 'The passed url is not valid and no base url is set.'); 37 | } 38 | }); 39 | }); 40 | }); 41 | -------------------------------------------------------------------------------- /test/ApplicationEnablement.init.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it */ 2 | const assert = require('assert'); 3 | const ApplicationEnablement = require('../lib/ApplicationEnablement'); 4 | 5 | let AE; 6 | 7 | describe('ApplicationEnablement', () => { 8 | describe('new ApplicationEnablement', () => { 9 | it('with manual config', () => { 10 | AE = new ApplicationEnablement({ 11 | clientId: 'clientId', 12 | clientSecret: 'clientSecret', 13 | tenant: 'sap-iotaehandson', 14 | landscape: 'eu10', 15 | host: 'hana.ondemand.com', 16 | }); 17 | 18 | assert.equal(AE.clientId, 'clientId'); 19 | assert.equal(AE.clientSecret, 'clientSecret'); 20 | assert.equal(AE.tenant, 'sap-iotaehandson'); 21 | assert.equal(AE.landscape, 'eu10'); 22 | assert.equal(AE.host, 'hana.ondemand.com'); 23 | }); 24 | 25 | it('with config via env', () => { 26 | process.env.AE_OAUTH_CLIENT_ID = 'clientId'; 27 | process.env.AE_OAUTH_CLIENT_SECRET = 'clientSecret'; 28 | process.env.AE_TENANT = 'sap-iotaehandson'; 29 | process.env.AE_LANDSCAPE = 'eu10'; 30 | process.env.AE_HOST = 'hana.ondemand.com'; 31 | 32 | AE = new ApplicationEnablement(); 33 | 34 | assert.equal(AE.clientId, process.env.AE_OAUTH_CLIENT_ID); 35 | assert.equal(AE.clientSecret, process.env.AE_OAUTH_CLIENT_SECRET); 36 | assert.equal(AE.tenant, process.env.AE_TENANT); 37 | assert.equal(AE.landscape, process.env.AE_LANDSCAPE); 38 | assert.equal(AE.host, process.env.AE_HOST); 39 | }); 40 | 41 | it('should throw an error as no config is set', () => { 42 | try { 43 | delete process.env.AE_OAUTH_CLIENT_ID; 44 | AE = new ApplicationEnablement(); 45 | throw Error(); // should not go until here 46 | } catch (err) { 47 | assert.equal(err.message, 'Incomplete configuration. Configure via env-file or provide all of the following properties: tenant, landscape, host, clientId, clientSecret.'); 48 | } 49 | }); 50 | }); 51 | }); 52 | -------------------------------------------------------------------------------- /test/ApplicationEnablement.request.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it beforeEach */ 2 | const assert = require('assert'); 3 | const nock = require('nock'); 4 | const ApplicationEnablement = require('../lib/ApplicationEnablement'); 5 | 6 | let AE; 7 | const options = { 8 | clientId: 'clientId', 9 | clientSecret: 'clientSecret', 10 | tenant: 'sap-iotaehandson', 11 | landscape: 'eu10', 12 | host: 'hana.ondemand.com', 13 | }; 14 | 15 | describe('ApplicationEnablement', () => { 16 | beforeEach(() => { 17 | AE = new ApplicationEnablement(options); 18 | 19 | nock('https://sap-iotaehandson.authentication.eu10.hana.ondemand.com') 20 | .post('/oauth/token') 21 | .reply(function () { 22 | const credentialsBase64 = Buffer.from(`${options.clientId}:${options.clientSecret}`).toString('base64'); 23 | const requestHeaders = this.req.headers; 24 | if (requestHeaders.authorization === `Basic ${credentialsBase64}`) { 25 | return [200, { 26 | access_token: '12345', 27 | expires_in: 10000, 28 | }]; 29 | } 30 | return [400, 'Bad credentials']; 31 | }); 32 | }); 33 | 34 | describe('request', () => { 35 | it('get', async () => { 36 | const body = { Things: [] }; 37 | nock('https://appiot-mds.cfapps.eu10.hana.ondemand.com') 38 | .get('/Things') 39 | .reply(200, body); 40 | 41 | let responseBody; 42 | try { 43 | responseBody = await AE.request({ 44 | url: 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things', 45 | }); 46 | } catch (error) { 47 | throw error; 48 | } 49 | 50 | assert.equal(JSON.stringify(responseBody), JSON.stringify(body)); 51 | }); 52 | 53 | it('post', async () => { 54 | const payload = { 55 | basicData: { 56 | locationID: '759CA6B9C6B0432398DBBDDAC84070A9', 57 | tenant: 'sap-iotaehandson', 58 | etag: '1', 59 | }, 60 | locationData: { 61 | streetName: 'Hasso-Plattner-Ring', 62 | houseNumber: '8', 63 | cityName: 'Walldrof', 64 | postalCode: '69190', 65 | country: 'DE', 66 | longitude: 8.636881, 67 | latitude: 49.294464, 68 | }, 69 | }; 70 | 71 | nock('https://location.cfapps.eu10.hana.ondemand.com') 72 | .post('/Locations') 73 | .reply(201, (url, body) => { 74 | assert.equal(JSON.stringify(body), JSON.stringify(payload)); 75 | return undefined; 76 | }); 77 | 78 | let responseBody; 79 | try { 80 | responseBody = await AE.request({ 81 | method: 'POST', 82 | url: 'https://location.cfapps.eu10.hana.ondemand.com/Locations', 83 | body: payload, 84 | }); 85 | } catch (error) { 86 | throw error; 87 | } 88 | 89 | assert.equal(responseBody, undefined); 90 | }); 91 | 92 | it('put', async () => { 93 | const payload = { 94 | basicData: { 95 | locationID: '759CA6B9C6B0432398DBBDDAC84070A9', 96 | tenant: 'sap-iotaehandson', 97 | etag: '1', 98 | }, 99 | locationData: { 100 | streetName: 'Hasso-Plattner-Ring', 101 | houseNumber: '8', 102 | cityName: 'Walldrof', 103 | postalCode: '69190', 104 | country: 'DE', 105 | longitude: 8.636881, 106 | latitude: 49.294464, 107 | }, 108 | }; 109 | 110 | nock('https://location.cfapps.eu10.hana.ondemand.com') 111 | .put('/Locations(%27759CA6B9C6B0432398DBBDDAC84070A9%27)') 112 | .reply(200, (url, body) => { 113 | assert.equal(JSON.stringify(body), JSON.stringify(payload)); 114 | return 'Successfully changed'; 115 | }); 116 | 117 | let responseBody; 118 | try { 119 | responseBody = await AE.request({ 120 | method: 'PUT', 121 | url: "https://location.cfapps.eu10.hana.ondemand.com/Locations('759CA6B9C6B0432398DBBDDAC84070A9')", 122 | body: payload, 123 | }); 124 | } catch (error) { 125 | throw error; 126 | } 127 | 128 | assert.equal(responseBody, 'Successfully changed'); 129 | }); 130 | 131 | it('delete', async () => { 132 | nock('https://location.cfapps.eu10.hana.ondemand.com') 133 | .delete('/Locations(%27759CA6B9C6B0432398DBBDDAC84070A9%27)') 134 | .reply(204, 'success'); 135 | 136 | let responseBody; 137 | try { 138 | responseBody = await AE.request({ 139 | method: 'DELETE', 140 | url: "https://location.cfapps.eu10.hana.ondemand.com/Locations('759CA6B9C6B0432398DBBDDAC84070A9')", 141 | }); 142 | } catch (error) { 143 | throw error; 144 | } 145 | 146 | assert.equal(responseBody, 'success'); 147 | }); 148 | 149 | it('evaluate the sent request', async () => { 150 | nock('https://appiot-mds.cfapps.eu10.hana.ondemand.com') 151 | .get('/Things') 152 | .reply(function (uri, requestBody) { 153 | const requestHeaders = this.req.headers; 154 | assert.equal(JSON.stringify(requestHeaders), JSON.stringify({ 155 | 'if-match': '3', 156 | authorization: 'Bearer 12345', 157 | host: 'appiot-mds.cfapps.eu10.hana.ondemand.com', 158 | accept: 'application/json', 159 | 'content-type': 'application/json', 160 | 'content-length': 21, 161 | })); 162 | assert.equal(JSON.stringify(requestBody), JSON.stringify({ test: 'test-value' })); 163 | return ''; 164 | }); 165 | 166 | await AE.request({ 167 | method: 'GET', 168 | url: 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things', 169 | headers: { 'If-Match': '3' }, 170 | body: { test: 'test-value' }, 171 | }); 172 | }); 173 | 174 | it('error', async () => { 175 | nock('https://appiot-mds.cfapps.eu10.hana.ondemand.com') 176 | .get('/Things') 177 | .reply(400, 'Error'); 178 | 179 | try { 180 | await AE.request({ 181 | method: 'GET', 182 | url: 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things', 183 | }); 184 | throw new Error('should not get until here'); 185 | } catch (error) { 186 | assert.equal(error.message, '400 - "Error"'); 187 | } 188 | }); 189 | 190 | it('auth error', async () => { 191 | AE.authenticator.clientSecret = 'wrongSecret'; 192 | 193 | try { 194 | await AE.request({ 195 | method: 'GET', 196 | url: 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things', 197 | }); 198 | throw new Error('should not get until here'); 199 | } catch (error) { 200 | assert.equal(error.message, '400 - "Bad credentials"'); 201 | } 202 | }); 203 | 204 | it('resolve with full response', async () => { 205 | nock('https://appiot-mds.cfapps.eu10.hana.ondemand.com') 206 | .get('/Things') 207 | .reply(200, 'Success'); 208 | 209 | let response; 210 | try { 211 | response = await AE.request({ 212 | method: 'GET', 213 | url: 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things', 214 | resolveWithFullResponse: true, 215 | }); 216 | } catch (error) { 217 | throw error; 218 | } 219 | 220 | assert.equal(response.statusCode, 200); 221 | assert.equal(response.body, 'Success'); 222 | assert.equal(JSON.stringify(response.headers), '{}'); 223 | }); 224 | 225 | it('get (by only passing the url)', async () => { 226 | const body = { Things: [] }; 227 | nock('https://appiot-mds.cfapps.eu10.hana.ondemand.com') 228 | .get('/Things') 229 | .reply(200, body); 230 | 231 | let responseBody; 232 | try { 233 | responseBody = await AE.request('https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things'); 234 | } catch (error) { 235 | throw error; 236 | } 237 | 238 | assert.equal(JSON.stringify(responseBody), JSON.stringify(body)); 239 | }); 240 | }); 241 | }); 242 | -------------------------------------------------------------------------------- /test/ApplicationEnablement.setBaseUrl.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it beforeEach */ 2 | const assert = require('assert'); 3 | const ApplicationEnablement = require('../lib/ApplicationEnablement'); 4 | 5 | describe('ApplicationEnablement', () => { 6 | beforeEach(() => { 7 | process.env.AE_OAUTH_CLIENT_ID = 'clientId'; 8 | process.env.AE_OAUTH_CLIENT_SECRET = 'clientSecret'; 9 | process.env.AE_TENANT = 'sap-iotaehandson'; 10 | process.env.AE_LANDSCAPE = 'eu10'; 11 | process.env.AE_HOST = 'hana.ondemand.com'; 12 | }); 13 | 14 | describe('setBaseUrl', () => { 15 | it('a valid microservice', () => { 16 | const microservice = 'location'; 17 | const correctBaseUrl = `https://${microservice}.cfapps.${process.env.AE_LANDSCAPE}.${process.env.AE_HOST}`; 18 | 19 | const AE = new ApplicationEnablement(); 20 | AE.setBaseUrl(microservice); 21 | 22 | assert.equal(AE.baseUrl, correctBaseUrl); 23 | }); 24 | 25 | it('invalid microservice', () => { 26 | const AE = new ApplicationEnablement(); 27 | 28 | try { 29 | AE.setBaseUrl('locations'); // wrong (plural) 30 | throw Error(); // should not go until here 31 | } catch (err) { 32 | assert.equal(err.message, 'Unknown microservice'); 33 | } 34 | }); 35 | }); 36 | 37 | describe('getBaseUrl', () => { 38 | it('should return the base url', () => { 39 | const AE = new ApplicationEnablement(); 40 | AE.baseUrl = 'something'; 41 | assert.equal(AE.getBaseUrl(), 'something'); 42 | }); 43 | }); 44 | 45 | describe('deleteBaseUrl', () => { 46 | it('should delete the base url', () => { 47 | const AE = new ApplicationEnablement(); 48 | AE.baseUrl = 'something'; 49 | AE.deleteBaseUrl(); 50 | assert.equal(AE.baseUrl, undefined); 51 | }); 52 | }); 53 | }); 54 | -------------------------------------------------------------------------------- /test/auth/authenticator.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it beforeEach */ 2 | const assert = require('assert'); 3 | const nock = require('nock'); 4 | const Authenticator = require('../../lib/auth/authenticator'); 5 | 6 | let authenticator; 7 | 8 | describe('Authenticator', () => { 9 | beforeEach(() => { 10 | authenticator = new Authenticator({ 11 | tenant: 'test', 12 | landscape: 'eu10', 13 | host: 'hana.ondemand.com', 14 | clientId: 'clientId', 15 | clientSecret: 'clientSecret', 16 | }); 17 | }); 18 | 19 | describe('getAccessToken', () => { 20 | it('should return a token', async () => { 21 | nock('https://test.authentication.eu10.hana.ondemand.com') 22 | .post('/oauth/token') 23 | .reply(200, { 24 | access_token: '98723dsfsdf', 25 | expires_in: 1000, 26 | }); 27 | 28 | const token = await authenticator.getAccessToken(); 29 | assert.equal(token, '98723dsfsdf'); 30 | }); 31 | 32 | it('should only return a new token if the stored token is expired', async () => { 33 | nock('https://test.authentication.eu10.hana.ondemand.com') 34 | .post('/oauth/token') 35 | .reply(200, { 36 | access_token: '98723dsfsdf', 37 | expires_in: -1000, 38 | }); 39 | 40 | nock('https://test.authentication.eu10.hana.ondemand.com') 41 | .post('/oauth/token') 42 | .reply(200, { 43 | access_token: '98723dsfsdf2', 44 | expires_in: 1000, 45 | }); 46 | 47 | let token = await authenticator.getAccessToken(); 48 | assert.equal(token, '98723dsfsdf'); 49 | 50 | token = await authenticator.getAccessToken(); 51 | assert.equal(token, '98723dsfsdf2'); 52 | 53 | token = await authenticator.getAccessToken(); 54 | assert.equal(token, '98723dsfsdf2'); 55 | }); 56 | }); 57 | 58 | describe('getNewToken', () => { 59 | it('should return a new token', async () => { 60 | nock('https://test.authentication.eu10.hana.ondemand.com') 61 | .post('/oauth/token') 62 | .reply(function (uri, requestBody) { 63 | assert.equal(this.req.headers['content-type'], 'application/x-www-form-urlencoded'); 64 | assert.equal(this.req.headers.authorization, 'Basic Y2xpZW50SWQ6Y2xpZW50U2VjcmV0'); 65 | assert.equal(requestBody, 'grant_type=client_credentials&response_type=token'); 66 | return [200, { 67 | access_token: '98723dsfsdf', 68 | expires_in: -1000, 69 | }]; 70 | }); 71 | 72 | const token = await authenticator.getNewToken(); 73 | assert.equal(token.getAccessToken(), '98723dsfsdf'); 74 | }); 75 | 76 | it('should return an error', async () => { 77 | nock('https://test.authentication.eu10.hana.ondemand.com') 78 | .post('/oauth/token') 79 | .replyWithError('something awful happened'); 80 | 81 | try { 82 | await authenticator.getNewToken(); 83 | throw new Error(); 84 | } catch (error) { 85 | assert.equal(error.message, 'Error: something awful happened'); 86 | } 87 | }); 88 | }); 89 | }); 90 | -------------------------------------------------------------------------------- /test/auth/token.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it */ 2 | const assert = require('assert'); 3 | const Token = require('../../lib/auth/token'); 4 | 5 | describe('Token', () => { 6 | describe('getAccessToken', () => { 7 | it('should return the stored token', () => { 8 | const jwtToken = 'jwestesestdsf8u98324'; 9 | const token = new Token(jwtToken, null); 10 | assert.equal(jwtToken, token.getAccessToken()); 11 | }); 12 | }); 13 | 14 | describe('isExpired', () => { 15 | it('should not be expired', () => { 16 | const expiresIn = 1000; 17 | const token = new Token('1', expiresIn); 18 | assert.equal(false, token.isExpired()); 19 | }); 20 | 21 | it('should be expired', () => { 22 | const expiresIn = -1000; 23 | const token = new Token('1', expiresIn); 24 | assert.equal(true, token.isExpired()); 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /test/utils.test.js: -------------------------------------------------------------------------------- 1 | /* global describe it */ 2 | const assert = require('assert'); 3 | const Utils = require('../lib/utils/utils'); 4 | 5 | describe('utils', () => { 6 | describe('isValidUrl', () => { 7 | it('should return true as a valid url is passed', () => { 8 | let url = 'https://authorization.cfapps.eu10.hana.ondemand.com/ObjectGroups?$filter=objectGroupParentID eq CFB81003B9574F4EBDE98C31396ACE34'; 9 | assert.equal(Utils.isValidUrl(url), true); 10 | 11 | url = 'https://authorization.cfapps.eu10.hana.ondemand.com/ObjectGroups?$filter=objectGroupParentID eq null'; 12 | assert.equal(Utils.isValidUrl(url), true); 13 | }); 14 | 15 | it('should return false as a non valid url is passed', () => { 16 | const url = 'ysz'; 17 | assert.equal(Utils.isValidUrl(url), false); 18 | }); 19 | }); 20 | }); 21 | --------------------------------------------------------------------------------