From d397c87d683cbfe3547e9040c6f3c2a66a1fe3ed Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Wed, 26 Dec 2018 19:41:13 -0300 Subject: [PATCH 01/40] Adding base version for Operations Module --- .gitignore | 0 CODE_OF_CONDUCT.md | 46 + CONTRIBUTING.md | 45 + LICENSE | 42 + README.md | 5 +- client/.gitignore | 21 + client/CODE_OF_CONDUCT.md | 46 + client/CONTRIBUTING.md | 45 + client/LICENSE | 42 + client/README.md | 4 + client/package-lock.json | 833 ++++++++++++++++++ client/package.json | 35 + client/src/GraphQL/Calls/clones.js | 32 + client/src/GraphQL/Calls/index.js | 7 + client/src/GraphQL/Calls/teams.js | 38 + client/src/GraphQL/Fragments/clone.js | 20 + client/src/GraphQL/Fragments/index.js | 5 + client/src/GraphQL/index.js | 56 ++ client/src/GraphQL/models.js | 10 + client/src/img/binance.png | Bin 0 -> 3509 bytes client/src/img/poloniex.png | Bin 0 -> 11209 bytes client/src/index.js | 21 + client/src/theme.js | 71 ++ client/src/utils/index.js | 74 ++ client/src/views/BannerTopBar/index.js | 18 + client/src/views/Clone/Add/index.js | 367 ++++++++ client/src/views/Clone/Add/styles.js | 37 + client/src/views/Clone/List/CloneDialog.js | 59 ++ client/src/views/Clone/List/ListClones.js | 228 +++++ client/src/views/Clone/List/index.js | 130 +++ client/src/views/Clone/List/styles.js | 82 ++ client/src/views/History/AuditLogList.js | 87 ++ client/src/views/Home.js | 43 + package-lock.json | 3 + server/src/config/clone-deployment.json | 31 + server/src/config/envConfig.js | 47 + server/src/config/logger.js | 42 + server/src/config/utils.js | 9 + server/src/enums/CloneMode.js | 11 + server/src/enums/CloneState.js | 19 + server/src/errors/index.js | 66 ++ server/src/errors/notAllowed.json | 8 + server/src/index.js | 43 + server/src/kubernetes/createClone.js | 99 +++ server/src/kubernetes/getClonePodStatus.js | 32 + server/src/kubernetes/getClonePodlogs.js | 34 + server/src/kubernetes/removeClone.js | 32 + server/src/models/clone.js | 47 + server/src/models/index.js | 5 + server/src/schema/index.js | 13 + .../src/schema/mutations/AddCloneMutation.js | 125 +++ .../schema/mutations/RemoveCloneMutation.js | 54 ++ server/src/schema/mutations/index.js | 16 + server/src/schema/queries/AuditLogsQuery.js | 40 + server/src/schema/queries/ExchangesQuery.js | 23 + server/src/schema/queries/ListClones.js | 41 + server/src/schema/queries/index.js | 14 + server/src/schema/types/AuditLogType.js | 29 + server/src/schema/types/CloneType.js | 28 + server/src/schema/types/ExchangeType.js | 16 + .../src/schema/types/SignedTransactionType.js | 15 + server/src/schema/types/index.js | 5 + server/src/schema/types/input/Clone.js | 24 + server/src/schema/types/input/index.js | 5 + 64 files changed, 3524 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 client/.gitignore create mode 100644 client/CODE_OF_CONDUCT.md create mode 100644 client/CONTRIBUTING.md create mode 100644 client/LICENSE create mode 100644 client/README.md create mode 100644 client/package-lock.json create mode 100644 client/package.json create mode 100644 client/src/GraphQL/Calls/clones.js create mode 100644 client/src/GraphQL/Calls/index.js create mode 100644 client/src/GraphQL/Calls/teams.js create mode 100644 client/src/GraphQL/Fragments/clone.js create mode 100644 client/src/GraphQL/Fragments/index.js create mode 100644 client/src/GraphQL/index.js create mode 100644 client/src/GraphQL/models.js create mode 100644 client/src/img/binance.png create mode 100644 client/src/img/poloniex.png create mode 100644 client/src/index.js create mode 100644 client/src/theme.js create mode 100644 client/src/utils/index.js create mode 100644 client/src/views/BannerTopBar/index.js create mode 100644 client/src/views/Clone/Add/index.js create mode 100644 client/src/views/Clone/Add/styles.js create mode 100644 client/src/views/Clone/List/CloneDialog.js create mode 100644 client/src/views/Clone/List/ListClones.js create mode 100644 client/src/views/Clone/List/index.js create mode 100644 client/src/views/Clone/List/styles.js create mode 100644 client/src/views/History/AuditLogList.js create mode 100644 client/src/views/Home.js create mode 100644 package-lock.json create mode 100644 server/src/config/clone-deployment.json create mode 100644 server/src/config/envConfig.js create mode 100644 server/src/config/logger.js create mode 100644 server/src/config/utils.js create mode 100644 server/src/enums/CloneMode.js create mode 100644 server/src/enums/CloneState.js create mode 100644 server/src/errors/index.js create mode 100644 server/src/errors/notAllowed.json create mode 100644 server/src/index.js create mode 100644 server/src/kubernetes/createClone.js create mode 100644 server/src/kubernetes/getClonePodStatus.js create mode 100644 server/src/kubernetes/getClonePodlogs.js create mode 100644 server/src/kubernetes/removeClone.js create mode 100644 server/src/models/clone.js create mode 100644 server/src/models/index.js create mode 100644 server/src/schema/index.js create mode 100644 server/src/schema/mutations/AddCloneMutation.js create mode 100644 server/src/schema/mutations/RemoveCloneMutation.js create mode 100644 server/src/schema/mutations/index.js create mode 100644 server/src/schema/queries/AuditLogsQuery.js create mode 100644 server/src/schema/queries/ExchangesQuery.js create mode 100644 server/src/schema/queries/ListClones.js create mode 100644 server/src/schema/queries/index.js create mode 100644 server/src/schema/types/AuditLogType.js create mode 100644 server/src/schema/types/CloneType.js create mode 100644 server/src/schema/types/ExchangeType.js create mode 100644 server/src/schema/types/SignedTransactionType.js create mode 100644 server/src/schema/types/index.js create mode 100644 server/src/schema/types/input/Clone.js create mode 100644 server/src/schema/types/input/index.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..c71b685b4 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..311653120 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,45 @@ +# Contributing + +We are thrilled you are interested in contributing to this repository. Your help may be essential to the project's success and we want you in! + +Advanced Algos LTD is a startup, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. + +Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regards. + +In any case, contributors agree to provide an express grant of patent rights for their contributions. Submitting Pull Requests to this repository represents an express agreement with the terms of our Balanced Contributor Intellectual Property Agreement. This agreement is a direct implementation of GitHub's [Balanced Employee Intellectual Property Agreement 1.0.1](https://github.com/github/balanced-employee-ip-agreement/blob/master/Balanced_Employee_IP_Agreement.md). + +# Balanced Contributor Intellectual Property Agreement 1.0.1 + +This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Advanced Algos LTD ("Company"). + +**What is this?** This is the Company's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Company. + +**Why is this?** The Company needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Company having the legal rights to the products and services it is providing so that the Company can continue operating and doing business. + +The Company also believes that it's important to be clear on what it doesn't own. The Company doesn't want you looking over your shoulder every time you work on something personal or worrying that the Company will someday seize your open source non-lethal mousetrap simulation software. In other words, the Company isn't interested in appropriating your personal projects. + +**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Company cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Company's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. + +Cool? Then, by submitting your first Pull Request, and as a condition of your contribution, you agree to the following: + +1. **What the Company owns.** The Company owns any IP ("Company IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Company product or service at the time you developed, invented, or created it, (ii) developed for use by the Company, or (iii) developed or promoted with existing Company IP or with the Company's endorsement. You hereby grant and assign, and will grant and assign, to the Company all rights and interests in all Company IP. + + "Company IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. + +2. **What the Company doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Company doesn't own it. In other words, the Company doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. + +3. **Contribution of your IP to Company projects.** If you include your own IP – such as IP you created prior to working for the Company – into a Company product or service, it's still yours, of course, but you grant the Company a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Company would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. + +4. **Your contributions to non-Company projects.** The Company recognizes that you may be engaged in work that requires you to submit IP to entities other than the Company, such as open source projects used by the Company. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Company and so should be run through Legal first. + +5. **Voluntary Works** All Company IP that you are involved with or create as part of your work for the Company is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Company to learn more. + +6. **No conflicts.** You agree that you don't have any outstanding agreements or obligations that conflict with those in this Agreement, and that you won't enter into conflicting agreements in the future. + +7. **IP protection.** The Company might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Company IP or IP under License (together, "All IP"), and, if the Company asks, to provide those records to the Company. You agree to help the Company secure and defend its rights in All IP. For your help the Company will compensate you at a reasonable rate. If the Company is unable to secure your help, you authorize the Company to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. + +8. **Confidentiality.** As an contributor or contractor of the Company, you will have access to sensitive confidential information that is important to the Company's business. You are responsible for keeping this information confidential, including after you end your work for the Company. + + "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Company because it is not publicly known. + + The Company's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Company's Confidential Information for the purpose of performing your contribution and for the benefit of the Company. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..c049df9cb --- /dev/null +++ b/LICENSE @@ -0,0 +1,42 @@ +COPYRIGHT NOTICE + +© Copyright 2018 Advanced Algos LTD. + + +LICENSE NOTICE + +Advanced Algos LTD. is a startup, currently at a very early stage. Because certain aspects of +the business are still not clearly defined, we have chosen to --temporarily-- grant a +restrictive license for the use of this repository, until those business aspects are clarified +and a proper open source license can be granted. + +Advanced Algos LTD. is publishing the code of this software for several reasons. However, +it shall not be considered free software yet. Advanced Algos LTD. is a for-profit company +in the crypto space and this module is still proprietary software. + +The reasons for opening up the code of this module at this stage are the following: + + * We believe that transparency is paramount to achieving our goals, so we want everyone + to be able to understand what this module does and how. Opening up the code of this module + allows anyone to take a close look. + + * We welcome contributions from the community. Contributions are regarded as voluntary work. + There may be incentives in place for certain kinds of contributions. Contact us to learn more. + Contributors agree to provide an express grant of patent rights for their contributions. + + +LICENSE WORDING + +Advanced Algos LTD. grants a limited license for the following uses: + +1. CODE REVIEW AND AUDITS. You are granted permission to clone this repository to analyze, + review or audit the code. + +2. COLLABORATING WITH ADVANCED ALGOS LTD. You are granted permission to fork this repository + with the sole purpose of correcting bugs and developing functionality in agreement with + Advanced Algos LTD. By contributing to this repository you explicitely agree to the terms + detailed in CONTRIBUTING.MD. + +PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. + + diff --git a/README.md b/README.md index aedd18b8e..e61542682 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# OperationsModule \ No newline at end of file + +## AA Operations Module + +This module allow users to control the bot instance on the virtual machine. diff --git a/client/.gitignore b/client/.gitignore new file mode 100644 index 000000000..d30f40ef4 --- /dev/null +++ b/client/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# dependencies +/node_modules + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/client/CODE_OF_CONDUCT.md b/client/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..c71b685b4 --- /dev/null +++ b/client/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/client/CONTRIBUTING.md b/client/CONTRIBUTING.md new file mode 100644 index 000000000..311653120 --- /dev/null +++ b/client/CONTRIBUTING.md @@ -0,0 +1,45 @@ +# Contributing + +We are thrilled you are interested in contributing to this repository. Your help may be essential to the project's success and we want you in! + +Advanced Algos LTD is a startup, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. + +Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regards. + +In any case, contributors agree to provide an express grant of patent rights for their contributions. Submitting Pull Requests to this repository represents an express agreement with the terms of our Balanced Contributor Intellectual Property Agreement. This agreement is a direct implementation of GitHub's [Balanced Employee Intellectual Property Agreement 1.0.1](https://github.com/github/balanced-employee-ip-agreement/blob/master/Balanced_Employee_IP_Agreement.md). + +# Balanced Contributor Intellectual Property Agreement 1.0.1 + +This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Advanced Algos LTD ("Company"). + +**What is this?** This is the Company's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Company. + +**Why is this?** The Company needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Company having the legal rights to the products and services it is providing so that the Company can continue operating and doing business. + +The Company also believes that it's important to be clear on what it doesn't own. The Company doesn't want you looking over your shoulder every time you work on something personal or worrying that the Company will someday seize your open source non-lethal mousetrap simulation software. In other words, the Company isn't interested in appropriating your personal projects. + +**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Company cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Company's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. + +Cool? Then, by submitting your first Pull Request, and as a condition of your contribution, you agree to the following: + +1. **What the Company owns.** The Company owns any IP ("Company IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Company product or service at the time you developed, invented, or created it, (ii) developed for use by the Company, or (iii) developed or promoted with existing Company IP or with the Company's endorsement. You hereby grant and assign, and will grant and assign, to the Company all rights and interests in all Company IP. + + "Company IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. + +2. **What the Company doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Company doesn't own it. In other words, the Company doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. + +3. **Contribution of your IP to Company projects.** If you include your own IP – such as IP you created prior to working for the Company – into a Company product or service, it's still yours, of course, but you grant the Company a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Company would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. + +4. **Your contributions to non-Company projects.** The Company recognizes that you may be engaged in work that requires you to submit IP to entities other than the Company, such as open source projects used by the Company. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Company and so should be run through Legal first. + +5. **Voluntary Works** All Company IP that you are involved with or create as part of your work for the Company is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Company to learn more. + +6. **No conflicts.** You agree that you don't have any outstanding agreements or obligations that conflict with those in this Agreement, and that you won't enter into conflicting agreements in the future. + +7. **IP protection.** The Company might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Company IP or IP under License (together, "All IP"), and, if the Company asks, to provide those records to the Company. You agree to help the Company secure and defend its rights in All IP. For your help the Company will compensate you at a reasonable rate. If the Company is unable to secure your help, you authorize the Company to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. + +8. **Confidentiality.** As an contributor or contractor of the Company, you will have access to sensitive confidential information that is important to the Company's business. You are responsible for keeping this information confidential, including after you end your work for the Company. + + "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Company because it is not publicly known. + + The Company's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Company's Confidential Information for the purpose of performing your contribution and for the benefit of the Company. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file diff --git a/client/LICENSE b/client/LICENSE new file mode 100644 index 000000000..c049df9cb --- /dev/null +++ b/client/LICENSE @@ -0,0 +1,42 @@ +COPYRIGHT NOTICE + +© Copyright 2018 Advanced Algos LTD. + + +LICENSE NOTICE + +Advanced Algos LTD. is a startup, currently at a very early stage. Because certain aspects of +the business are still not clearly defined, we have chosen to --temporarily-- grant a +restrictive license for the use of this repository, until those business aspects are clarified +and a proper open source license can be granted. + +Advanced Algos LTD. is publishing the code of this software for several reasons. However, +it shall not be considered free software yet. Advanced Algos LTD. is a for-profit company +in the crypto space and this module is still proprietary software. + +The reasons for opening up the code of this module at this stage are the following: + + * We believe that transparency is paramount to achieving our goals, so we want everyone + to be able to understand what this module does and how. Opening up the code of this module + allows anyone to take a close look. + + * We welcome contributions from the community. Contributions are regarded as voluntary work. + There may be incentives in place for certain kinds of contributions. Contact us to learn more. + Contributors agree to provide an express grant of patent rights for their contributions. + + +LICENSE WORDING + +Advanced Algos LTD. grants a limited license for the following uses: + +1. CODE REVIEW AND AUDITS. You are granted permission to clone this repository to analyze, + review or audit the code. + +2. COLLABORATING WITH ADVANCED ALGOS LTD. You are granted permission to fork this repository + with the sole purpose of correcting bugs and developing functionality in agreement with + Advanced Algos LTD. By contributing to this repository you explicitely agree to the terms + detailed in CONTRIBUTING.MD. + +PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. + + diff --git a/client/README.md b/client/README.md new file mode 100644 index 000000000..8bbd3204b --- /dev/null +++ b/client/README.md @@ -0,0 +1,4 @@ + +## AA Operations Web Client + +This client allows the users to interact via web browser. diff --git a/client/package-lock.json b/client/package-lock.json new file mode 100644 index 000000000..9a3c14063 --- /dev/null +++ b/client/package-lock.json @@ -0,0 +1,833 @@ +{ + "name": "@advancedalgos/operations-client", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/runtime": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.0.0.tgz", + "integrity": "sha512-7hGhzlcmg01CvH1EHdSPVXYX1aJ8KCEyz6I9xYIi/asDtzBPMyMhVibhM/K6g/5qnKBwjZtp10bNZIEFTRW1MA==", + "requires": { + "regenerator-runtime": "0.12.1" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", + "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==" + } + } + }, + "@material-ui/core": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-3.2.2.tgz", + "integrity": "sha512-wDTJyR76+OBdlltiPs3lc1gD6zR+dSA6nITtgkBeLf1NvWfNotMWdvldIDnF3bu24ySAX9imfzDfkBu4Edtqww==", + "requires": { + "@babel/runtime": "7.1.2", + "@types/jss": "9.5.6", + "@types/react-transition-group": "2.0.14", + "brcast": "3.0.1", + "classnames": "2.2.6", + "csstype": "2.5.7", + "debounce": "1.2.0", + "deepmerge": "2.2.1", + "dom-helpers": "3.3.1", + "hoist-non-react-statics": "2.5.5", + "is-plain-object": "2.0.4", + "jss": "9.8.7", + "jss-camel-case": "6.1.0", + "jss-default-unit": "8.0.2", + "jss-global": "3.0.0", + "jss-nested": "6.0.1", + "jss-props-sort": "6.0.0", + "jss-vendor-prefixer": "7.0.0", + "keycode": "2.2.0", + "normalize-scroll-left": "0.1.2", + "popper.js": "1.14.4", + "prop-types": "15.6.2", + "react-event-listener": "0.6.4", + "react-transition-group": "2.5.0", + "recompose": "0.30.0", + "warning": "4.0.2" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.1.2.tgz", + "integrity": "sha512-Y3SCjmhSupzFB6wcv1KmmFucH6gDVnI30WjOcicV10ju0cZjak3Jcs67YLIXBrmZYw1xCrVeJPbycFwrqNyxpg==", + "requires": { + "regenerator-runtime": "0.12.1" + } + } + } + }, + "@material-ui/icons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@material-ui/icons/-/icons-3.0.1.tgz", + "integrity": "sha512-1kNcxYiIT1x8iDPEAlgmKrfRTIV8UyK6fLVcZ9kMHIKGWft9I451V5mvSrbCjbf7MX1TbLWzZjph0aVCRf9MqQ==", + "requires": { + "@babel/runtime": "7.0.0", + "recompose": "0.29.0" + }, + "dependencies": { + "recompose": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/recompose/-/recompose-0.29.0.tgz", + "integrity": "sha512-J/qLXNU4W+AeHCDR70ajW8eMd1uroqZaECTj6qqDLPMILz3y0EzpYlvrnxKB9DnqcngWrtGwjXY9JeXaW9kS1A==", + "requires": { + "@babel/runtime": "7.0.0", + "change-emitter": "0.1.6", + "fbjs": "0.8.17", + "hoist-non-react-statics": "2.5.5", + "react-lifecycles-compat": "3.0.4", + "symbol-observable": "1.2.0" + } + } + } + }, + "@types/async": { + "version": "2.0.49", + "resolved": "http://registry.npmjs.org/@types/async/-/async-2.0.49.tgz", + "integrity": "sha512-Benr3i5odUkvpFkOpzGqrltGdbSs+EVCkEBGXbuR7uT0VzhXKIkhem6PDzHdx5EonA+rfbB3QvP6aDOw5+zp5Q==", + "optional": true + }, + "@types/jss": { + "version": "9.5.6", + "resolved": "https://registry.npmjs.org/@types/jss/-/jss-9.5.6.tgz", + "integrity": "sha512-7TWmR5y1jYG4ka4wTZt65RR0kw4WgALFUWktQIWbLnDd6/z/0SQZ/4+UeH0rhdp+HEdIfmzPBH0VwE/4Z9Evzw==", + "requires": { + "csstype": "2.5.7", + "indefinite-observable": "1.0.1" + } + }, + "@types/prop-types": { + "version": "15.5.6", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.5.6.tgz", + "integrity": "sha512-ZBFR7TROLVzCkswA3Fmqq+IIJt62/T7aY/Dmz+QkU7CaW2QFqAitCE8Ups7IzmGhcN1YWMBT4Qcoc07jU9hOJQ==" + }, + "@types/react": { + "version": "16.4.16", + "resolved": "https://registry.npmjs.org/@types/react/-/react-16.4.16.tgz", + "integrity": "sha512-lxyoipLWweAnLnSsV4Ho2NAZTKKmxeYgkTQ6PaDiPDU9JJBUY2zJVVGiK1smzYv8+ZgbqEmcm5xM74GCpunSEA==", + "requires": { + "@types/prop-types": "15.5.6", + "csstype": "2.5.7" + } + }, + "@types/react-transition-group": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-2.0.14.tgz", + "integrity": "sha512-pa7qB0/mkhwWMBFoXhX8BcntK8G4eQl4sIfSrJCxnivTYRQWjOWf2ClR9bWdm0EUFBDHzMbKYS+QYfDtBzkY4w==", + "requires": { + "@types/react": "16.4.16" + } + }, + "@types/zen-observable": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@types/zen-observable/-/zen-observable-0.8.0.tgz", + "integrity": "sha512-te5lMAWii1uEJ4FwLjzdlbw3+n0FZNOvFXHxQDKeT0dilh7HOzdMzV2TrJVUzq8ep7J4Na8OUYPRLSQkJHAlrg==" + }, + "apollo-cache": { + "version": "1.1.17", + "resolved": "https://registry.npmjs.org/apollo-cache/-/apollo-cache-1.1.17.tgz", + "integrity": "sha512-7sp24n2HZO4vXgTaKNomLyIfGxG4gDdDkBB0jkRzRi7HhnKmfwhiF/RCiKNbgLdrPX151INdls0KwIVliD0dHQ==", + "requires": { + "apollo-utilities": "1.0.21" + } + }, + "apollo-client": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/apollo-client/-/apollo-client-2.4.2.tgz", + "integrity": "sha512-g1z23umaVSoKLj9xNl0aAnk2KBF4JeBi7MeKFc9CGTixH7TkqeQUQtxcjrC7j2h4KmDbuhOAHOFUGf8YshN+ag==", + "requires": { + "@types/async": "2.0.49", + "@types/zen-observable": "0.8.0", + "apollo-cache": "1.1.17", + "apollo-link": "1.2.3", + "apollo-link-dedup": "1.0.10", + "apollo-utilities": "1.0.21", + "symbol-observable": "1.2.0", + "zen-observable": "0.8.9" + } + }, + "apollo-link": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/apollo-link/-/apollo-link-1.2.3.tgz", + "integrity": "sha512-iL9yS2OfxYhigme5bpTbmRyC+Htt6tyo2fRMHT3K1XRL/C5IQDDz37OjpPy4ndx7WInSvfSZaaOTKFja9VWqSw==", + "requires": { + "apollo-utilities": "1.0.21", + "zen-observable-ts": "0.8.10" + } + }, + "apollo-link-dedup": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/apollo-link-dedup/-/apollo-link-dedup-1.0.10.tgz", + "integrity": "sha512-tpUI9lMZsidxdNygSY1FxflXEkUZnvKRkMUsXXuQUNoSLeNtEvUX7QtKRAl4k9ubLl8JKKc9X3L3onAFeGTK8w==", + "requires": { + "apollo-link": "1.2.3" + } + }, + "apollo-utilities": { + "version": "1.0.21", + "resolved": "https://registry.npmjs.org/apollo-utilities/-/apollo-utilities-1.0.21.tgz", + "integrity": "sha512-ZcxELlEl+sDCYBgEMdNXJAsZtRVm8wk4HIA58bMsqYfd1DSAJQEtZ93F0GZgYNAGy3QyaoBeZtbb0/01++G8JQ==", + "requires": { + "fast-json-stable-stringify": "2.0.0", + "fclone": "1.0.11" + } + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" + }, + "brcast": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/brcast/-/brcast-3.0.1.tgz", + "integrity": "sha512-eI3yqf9YEqyGl9PCNTR46MGvDylGtaHjalcz6Q3fAPnP/PhpKkkve52vFdfGpwp4VUvK6LUr4TQN+2stCrEwTg==" + }, + "change-emitter": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/change-emitter/-/change-emitter-0.1.6.tgz", + "integrity": "sha1-6LL+PX8at9aaMhma/5HqaTFAlRU=" + }, + "classnames": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", + "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" + }, + "core-js": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", + "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=" + }, + "css-vendor": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-0.3.8.tgz", + "integrity": "sha1-ZCHP0wNM5mT+dnOXL9ARn8KJQfo=", + "requires": { + "is-in-browser": "1.1.3" + } + }, + "csstype": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.5.7.tgz", + "integrity": "sha512-Nt5VDyOTIIV4/nRFswoCKps1R5CD1hkiyjBE9/thNaNZILLEviVw9yWQw15+O+CpNjQKB/uvdcxFFOrSflY3Yw==" + }, + "debounce": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.0.tgz", + "integrity": "sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg==" + }, + "deepmerge": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", + "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==" + }, + "dom-helpers": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-3.3.1.tgz", + "integrity": "sha512-2Sm+JaYn74OiTM2wHvxJOo3roiq/h25Yi69Fqk269cNUwIXsCvATB6CRSFC9Am/20G2b28hGv/+7NiWydIrPvg==" + }, + "dom-walk": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.1.tgz", + "integrity": "sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg=", + "dev": true + }, + "encoding": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", + "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "requires": { + "iconv-lite": "0.4.24" + } + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fbjs": { + "version": "0.8.17", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.17.tgz", + "integrity": "sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=", + "requires": { + "core-js": "1.2.7", + "isomorphic-fetch": "2.2.1", + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "promise": "7.3.1", + "setimmediate": "1.0.5", + "ua-parser-js": "0.7.18" + } + }, + "fbjs-css-vars": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.1.tgz", + "integrity": "sha512-IM+v/C40MNZWqsLErc32e0TyIk/NhkkQZL0QmjBh6zi1eXv0/GeVKmKmueQX7nn9SXQBQbTUcB8zuexIF3/88w==" + }, + "fclone": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/fclone/-/fclone-1.0.11.tgz", + "integrity": "sha1-EOhdo4v+p/xZk0HClu4ddyZu5kA=" + }, + "global": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/global/-/global-4.3.2.tgz", + "integrity": "sha1-52mJJopsdMOJCLEwWxD8DjlOnQ8=", + "dev": true, + "requires": { + "min-document": "2.19.0", + "process": "0.5.2" + } + }, + "graphql": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.0.2.tgz", + "integrity": "sha512-gUC4YYsaiSJT1h40krG3J+USGlwhzNTXSb4IOZljn9ag5Tj+RkoXrWp+Kh7WyE3t1NCfab5kzCuxBIvOMERMXw==", + "requires": { + "iterall": "1.2.2" + } + }, + "graphql-tag": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.10.0.tgz", + "integrity": "sha512-9FD6cw976TLLf9WYIUPCaaTpniawIjHWZSwIRZSjrfufJamcXbVVYfN2TWvJYbw0Xf2JjYbl1/f2+wDnBVw3/w==" + }, + "history": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/history/-/history-4.7.2.tgz", + "integrity": "sha512-1zkBRWW6XweO0NBcjiphtVJVsIQ+SXF29z9DVkceeaSLVMFXHool+fdCZD4spDCfZJCILPILc3bm7Bc+HRi0nA==", + "requires": { + "invariant": "2.2.4", + "loose-envify": "1.4.0", + "resolve-pathname": "2.2.0", + "value-equal": "0.4.0", + "warning": "3.0.0" + }, + "dependencies": { + "warning": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", + "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", + "requires": { + "loose-envify": "1.4.0" + } + } + } + }, + "hoist-non-react-statics": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", + "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==" + }, + "hyphenate-style-name": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz", + "integrity": "sha1-MRYKNpMK2vH8BMYHT360FGXU7Es=" + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": "2.1.2" + } + }, + "indefinite-observable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indefinite-observable/-/indefinite-observable-1.0.1.tgz", + "integrity": "sha1-CZFUI8yNb36xy3iCrRNGM8mm7cM=", + "requires": { + "symbol-observable": "1.0.4" + }, + "dependencies": { + "symbol-observable": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz", + "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=" + } + } + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "requires": { + "loose-envify": "1.4.0" + } + }, + "is-in-browser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", + "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=" + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + } + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "isomorphic-fetch": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", + "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "requires": { + "node-fetch": "1.7.3", + "whatwg-fetch": "2.0.4" + } + }, + "iterall": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.2.2.tgz", + "integrity": "sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==" + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "jss": { + "version": "9.8.7", + "resolved": "https://registry.npmjs.org/jss/-/jss-9.8.7.tgz", + "integrity": "sha512-awj3XRZYxbrmmrx9LUSj5pXSUfm12m8xzi/VKeqI1ZwWBtQ0kVPTs3vYs32t4rFw83CgFDukA8wKzOE9sMQnoQ==", + "requires": { + "is-in-browser": "1.1.3", + "symbol-observable": "1.2.0", + "warning": "3.0.0" + }, + "dependencies": { + "warning": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", + "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", + "requires": { + "loose-envify": "1.4.0" + } + } + } + }, + "jss-camel-case": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jss-camel-case/-/jss-camel-case-6.1.0.tgz", + "integrity": "sha512-HPF2Q7wmNW1t79mCqSeU2vdd/vFFGpkazwvfHMOhPlMgXrJDzdj9viA2SaHk9ZbD5pfL63a8ylp4++irYbbzMQ==", + "requires": { + "hyphenate-style-name": "1.0.2" + } + }, + "jss-default-unit": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/jss-default-unit/-/jss-default-unit-8.0.2.tgz", + "integrity": "sha512-WxNHrF/18CdoAGw2H0FqOEvJdREXVXLazn7PQYU7V6/BWkCV0GkmWsppNiExdw8dP4TU1ma1dT9zBNJ95feLmg==" + }, + "jss-global": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/jss-global/-/jss-global-3.0.0.tgz", + "integrity": "sha512-wxYn7vL+TImyQYGAfdplg7yaxnPQ9RaXY/cIA8hawaVnmmWxDHzBK32u1y+RAvWboa3lW83ya3nVZ/C+jyjZ5Q==" + }, + "jss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jss-nested/-/jss-nested-6.0.1.tgz", + "integrity": "sha512-rn964TralHOZxoyEgeq3hXY8hyuCElnvQoVrQwKHVmu55VRDd6IqExAx9be5HgK0yN/+hQdgAXQl/GUrBbbSTA==", + "requires": { + "warning": "3.0.0" + }, + "dependencies": { + "warning": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", + "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", + "requires": { + "loose-envify": "1.4.0" + } + } + } + }, + "jss-props-sort": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/jss-props-sort/-/jss-props-sort-6.0.0.tgz", + "integrity": "sha512-E89UDcrphmI0LzmvYk25Hp4aE5ZBsXqMWlkFXS0EtPkunJkRr+WXdCNYbXbksIPnKlBenGB9OxzQY+mVc70S+g==" + }, + "jss-vendor-prefixer": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/jss-vendor-prefixer/-/jss-vendor-prefixer-7.0.0.tgz", + "integrity": "sha512-Agd+FKmvsI0HLcYXkvy8GYOw3AAASBUpsmIRvVQheps+JWaN892uFOInTr0DRydwaD91vSSUCU4NssschvF7MA==", + "requires": { + "css-vendor": "0.3.8" + } + }, + "keycode": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/keycode/-/keycode-2.2.0.tgz", + "integrity": "sha1-PQr1bce4uOXLqNCpfxByBO7CKwQ=" + }, + "lodash.flowright": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/lodash.flowright/-/lodash.flowright-3.5.0.tgz", + "integrity": "sha1-K1//OZcW1+fcVyT+k0n2cGUYTWc=" + }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "4.0.0" + } + }, + "luxon": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.5.0.tgz", + "integrity": "sha512-9IfJ0a5jA3poJSQnamaoOdPG0ulYk1JUI5IYmEdUhUc8dto4t6TVTu+oIM7fpSYy01GwUAA8kGUZMVe7Qx9Y+Q==" + }, + "material-ui-pickers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/material-ui-pickers/-/material-ui-pickers-1.0.1.tgz", + "integrity": "sha512-FRJwgeFUQdQxzNAybZvf11204KFBxqKS6sg4JvAO0cWmHULXJhrc9kuEDT8F7Pomwnv6+AyfxygsoMgIRcBMNg==", + "requires": { + "classnames": "2.2.6", + "keycode": "2.2.0", + "react-event-listener": "0.6.4", + "react-text-mask": "5.4.1", + "react-transition-group": "2.5.0", + "tslib": "1.9.3" + } + }, + "min-document": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", + "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=", + "dev": true, + "requires": { + "dom-walk": "0.1.1" + } + }, + "node-fetch": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", + "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", + "requires": { + "encoding": "0.1.12", + "is-stream": "1.1.0" + } + }, + "normalize-scroll-left": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-scroll-left/-/normalize-scroll-left-0.1.2.tgz", + "integrity": "sha512-F9YMRls0zCF6BFIE2YnXDRpHPpfd91nOIaNdDgrx5YMoPLo8Wqj+6jNXHQsYBavJeXP4ww8HCt0xQAKc5qk2Fg==" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "path-to-regexp": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", + "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + } + } + }, + "popper.js": { + "version": "1.14.4", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.14.4.tgz", + "integrity": "sha1-juwdj/AqWjoVLdQ0FKFce3n9abY=" + }, + "process": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", + "integrity": "sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=", + "dev": true + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "requires": { + "asap": "2.0.6" + } + }, + "prop-types": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", + "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", + "requires": { + "loose-envify": "1.4.0", + "object-assign": "4.1.1" + } + }, + "react": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/react/-/react-16.6.1.tgz", + "integrity": "sha512-OtawJThYlvRgm9BXK+xTL7BIlDx8vv21j+fbQDjRRUyok6y7NyjlweGorielTahLZHYIdKUoK2Dp9ByVWuMqxw==", + "requires": { + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "prop-types": "15.6.2", + "scheduler": "0.11.0" + } + }, + "react-apollo": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/react-apollo/-/react-apollo-2.2.4.tgz", + "integrity": "sha512-haS5R30Qvteb65ZLfWomUZQh47VU4ld4Kof3zlqdbLOrYPt3/DdVZC8ZFPZSxd5zPeIJtZqpUfAxD1WHVoMPIA==", + "requires": { + "fbjs": "1.0.0", + "hoist-non-react-statics": "3.0.1", + "invariant": "2.2.4", + "lodash.flowright": "3.5.0", + "lodash.isequal": "4.5.0", + "prop-types": "15.6.2" + }, + "dependencies": { + "core-js": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" + }, + "fbjs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-1.0.0.tgz", + "integrity": "sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA==", + "requires": { + "core-js": "2.5.7", + "fbjs-css-vars": "1.0.1", + "isomorphic-fetch": "2.2.1", + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "promise": "7.3.1", + "setimmediate": "1.0.5", + "ua-parser-js": "0.7.18" + } + }, + "hoist-non-react-statics": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.0.1.tgz", + "integrity": "sha512-1kXwPsOi0OGQIZNVMPvgWJ9tSnGMiMfJdihqEzrPEXlHOBh9AAHXX/QYmAJTXztnz/K+PQ8ryCb4eGaN6HlGbQ==", + "requires": { + "react-is": "16.5.2" + } + } + } + }, + "react-dom": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.6.1.tgz", + "integrity": "sha512-zm+wBuEMGm009Wt1uE4Zw5KcXOW7qC4E/xW/fpJsCsbOco4U/R84u+DzzO/S4SYSdNBcqcaulcp4w3FXl8pImw==", + "requires": { + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "prop-types": "15.6.2", + "scheduler": "0.11.0" + } + }, + "react-event-listener": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/react-event-listener/-/react-event-listener-0.6.4.tgz", + "integrity": "sha512-t7VSjIuUFmN+GeyKb+wm025YLeojVB85kJL6sSs0wEBJddfmKBEQz+CNBZ2zBLKVWkPy/fZXM6U5yvojjYBVYQ==", + "requires": { + "@babel/runtime": "7.0.0", + "prop-types": "15.6.2", + "warning": "4.0.2" + } + }, + "react-hot-loader": { + "version": "4.3.11", + "resolved": "https://registry.npmjs.org/react-hot-loader/-/react-hot-loader-4.3.11.tgz", + "integrity": "sha512-T0G5jURyTsFLoiW6MTr5Q35UHC/B2pmYJ7+VBjk8yMDCEABRmCGy4g6QwxoB4pWg4/xYvVTa/Pbqnsgx/+NLuA==", + "dev": true, + "requires": { + "fast-levenshtein": "2.0.6", + "global": "4.3.2", + "hoist-non-react-statics": "2.5.5", + "prop-types": "15.6.2", + "react-lifecycles-compat": "3.0.4", + "shallowequal": "1.1.0" + } + }, + "react-is": { + "version": "16.5.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.5.2.tgz", + "integrity": "sha512-hSl7E6l25GTjNEZATqZIuWOgSnpXb3kD0DVCujmg46K5zLxsbiKaaT6VO9slkSBDPZfYs30lwfJwbOFOnoEnKQ==" + }, + "react-lifecycles-compat": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", + "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" + }, + "react-router": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-4.3.1.tgz", + "integrity": "sha512-yrvL8AogDh2X42Dt9iknk4wF4V8bWREPirFfS9gLU1huk6qK41sg7Z/1S81jjTrGHxa3B8R3J6xIkDAA6CVarg==", + "requires": { + "history": "4.7.2", + "hoist-non-react-statics": "2.5.5", + "invariant": "2.2.4", + "loose-envify": "1.4.0", + "path-to-regexp": "1.7.0", + "prop-types": "15.6.2", + "warning": "4.0.2" + } + }, + "react-router-dom": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-4.3.1.tgz", + "integrity": "sha512-c/MlywfxDdCp7EnB7YfPMOfMD3tOtIjrQlj/CKfNMBxdmpJP8xcz5P/UAFn3JbnQCNUxsHyVVqllF9LhgVyFCA==", + "requires": { + "history": "4.7.2", + "invariant": "2.2.4", + "loose-envify": "1.4.0", + "prop-types": "15.6.2", + "react-router": "4.3.1", + "warning": "4.0.2" + } + }, + "react-text-mask": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/react-text-mask/-/react-text-mask-5.4.1.tgz", + "integrity": "sha512-mGx1n0x0skktwsKcpgAGnrgExFlXDflbWEHh8PC1UaQP8+EdHkW7JYczTghsBo2rnVwU9/4A9x/2bVt3HY46/w==", + "requires": { + "prop-types": "15.6.2" + } + }, + "react-transition-group": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.5.0.tgz", + "integrity": "sha512-qYB3JBF+9Y4sE4/Mg/9O6WFpdoYjeeYqx0AFb64PTazVy8RPMiE3A47CG9QmM4WJ/mzDiZYslV+Uly6O1Erlgw==", + "requires": { + "dom-helpers": "3.3.1", + "loose-envify": "1.4.0", + "prop-types": "15.6.2", + "react-lifecycles-compat": "3.0.4" + } + }, + "recompose": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/recompose/-/recompose-0.30.0.tgz", + "integrity": "sha512-ZTrzzUDa9AqUIhRk4KmVFihH0rapdCSMFXjhHbNrjAWxBuUD/guYlyysMnuHjlZC/KRiOKRtB4jf96yYSkKE8w==", + "requires": { + "@babel/runtime": "7.0.0", + "change-emitter": "0.1.6", + "fbjs": "0.8.17", + "hoist-non-react-statics": "2.5.5", + "react-lifecycles-compat": "3.0.4", + "symbol-observable": "1.2.0" + } + }, + "regenerator-runtime": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", + "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==" + }, + "resolve-pathname": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-2.2.0.tgz", + "integrity": "sha512-bAFz9ld18RzJfddgrO2e/0S2O81710++chRMUxHjXOYKF6jTAMrUNZrEZ1PvV0zlhfjidm08iRPdTLPno1FuRg==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "scheduler": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.11.0.tgz", + "integrity": "sha512-MAYbBfmiEHxF0W+c4CxMpEqMYK+rYF584VP/qMKSiHM6lTkBKKYOJaDiSILpJHla6hBOsVd6GucPL46o2Uq3sg==", + "requires": { + "loose-envify": "1.4.0", + "object-assign": "4.1.1" + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" + }, + "shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", + "dev": true + }, + "symbol-observable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", + "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==" + }, + "tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==" + }, + "ua-parser-js": { + "version": "0.7.18", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.18.tgz", + "integrity": "sha512-LtzwHlVHwFGTptfNSgezHp7WUlwiqb0gA9AALRbKaERfxwJoiX0A73QbTToxteIAuIaFshhgIZfqK8s7clqgnA==" + }, + "value-equal": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-0.4.0.tgz", + "integrity": "sha512-x+cYdNnaA3CxvMaTX0INdTCN8m8aF2uY9BvEqmxuYp8bL09cs/kWVQPVGcA35fMktdOsP69IgU7wFj/61dJHEw==" + }, + "warning": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.2.tgz", + "integrity": "sha512-wbTp09q/9C+jJn4KKJfJfoS6VleK/Dti0yqWSm6KMvJ4MRCXFQNapHuJXutJIrWV0Cf4AhTdeIe4qdKHR1+Hug==", + "requires": { + "loose-envify": "1.4.0" + } + }, + "whatwg-fetch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", + "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==" + }, + "zen-observable": { + "version": "0.8.9", + "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.9.tgz", + "integrity": "sha512-Y9kPzjGvIZ5jchSlqlCpBW3I82zBBL4z+ulXDRVA1NwsKzjt5kwAi+gOYIy0htNkfuehGZZtP5mRXHRV6TjDWw==" + }, + "zen-observable-ts": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/zen-observable-ts/-/zen-observable-ts-0.8.10.tgz", + "integrity": "sha512-5vqMtRggU/2GhePC9OU4sYEWOdvmayp2k3gjPf4F0mXwB3CSbbNznfDUvDJx9O2ZTa1EIXdJhPchQveFKwNXPQ==", + "requires": { + "zen-observable": "0.8.9" + } + } + } +} diff --git a/client/package.json b/client/package.json new file mode 100644 index 000000000..21b26466f --- /dev/null +++ b/client/package.json @@ -0,0 +1,35 @@ +{ + "name": "@advancedalgos/operations-client", + "version": "0.0.1", + "description": "Advanced Algos Operations client-side web app", + "main": "src/index.js", + "dependencies": { + "@material-ui/core": "^3.2.2", + "@material-ui/icons": "^3.0.1", + "apollo-client": "^2.4.2", + "classnames": "^2.2.6", + "graphql": "^14.0.2", + "graphql-tag": "^2.10.0", + "luxon": "^1.4.4", + "material-ui-pickers": "^1.0.1", + "react": "^16.6.1", + "react-apollo": "^2.2.4", + "react-dom": "^16.6.1", + "react-router-dom": "^4.3.1" + }, + "devDependencies": { + "react-hot-loader": "^4.3.11" + }, + "scripts": { + "start": "set PORT=3002 && react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test --env=jsdom", + "eject": "react-scripts eject" + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ] +} diff --git a/client/src/GraphQL/Calls/clones.js b/client/src/GraphQL/Calls/clones.js new file mode 100644 index 000000000..417200d08 --- /dev/null +++ b/client/src/GraphQL/Calls/clones.js @@ -0,0 +1,32 @@ +import gql from 'graphql-tag'; +import { clone } from '../Fragments'; + +const OPERATIONS_ADD_CLONE = gql` + mutation Operations_AddClone($clone: operations_CloneInput!) { + operations_AddClone(clone: $clone) { + ...clone + } + } + ${clone} +`; + +const OPERATIONS_LIST_CLONES = gql` + query Operations_Clones{ + operations_Clones { + ...clone + } + } + ${clone} +`; + +const OPERATIONS_REMOVE_CLONE = gql` + mutation Operations_RemoveClone($id: ID!){ + operations_RemoveClone( id: $id) + } +`; + +export default { + OPERATIONS_LIST_CLONES, + OPERATIONS_ADD_CLONE, + OPERATIONS_REMOVE_CLONE +}; diff --git a/client/src/GraphQL/Calls/index.js b/client/src/GraphQL/Calls/index.js new file mode 100644 index 000000000..f410adf89 --- /dev/null +++ b/client/src/GraphQL/Calls/index.js @@ -0,0 +1,7 @@ +import clones from './clones'; +import teams from './teams'; + +export { + clones, + teams +}; diff --git a/client/src/GraphQL/Calls/teams.js b/client/src/GraphQL/Calls/teams.js new file mode 100644 index 000000000..1a5f02f5b --- /dev/null +++ b/client/src/GraphQL/Calls/teams.js @@ -0,0 +1,38 @@ +import gql from 'graphql-tag'; + +export const GET_ALL_TEAMS_QUERY = gql` + query Teams_FbByTeamMember { + teams_FbByTeamMember { + id + name + slug + fb { + id + name + slug + } + } + } +` + +export const GET_ALL_TEAM_BOTS_QUERY = gql` + query teamBotsQuery($teamId: String!) { + teams_TeamById(teamId: $teamId) { + fb { + id + name + slug + team{ + id + name + slug + } + } + } + } +` + +export default { + GET_ALL_TEAMS_QUERY, + GET_ALL_TEAM_BOTS_QUERY +}; diff --git a/client/src/GraphQL/Fragments/clone.js b/client/src/GraphQL/Fragments/clone.js new file mode 100644 index 000000000..f362235f5 --- /dev/null +++ b/client/src/GraphQL/Fragments/clone.js @@ -0,0 +1,20 @@ +import gql from 'graphql-tag'; + +export const clone = gql` + fragment clone on operations_Clone { + id + authId + teamId + botId + mode + resumeExecution + beginDatetime + endDatetime + waitTime + state + stateDatetime + createDatetime + lastLogs + runAsTeam + } +`; diff --git a/client/src/GraphQL/Fragments/index.js b/client/src/GraphQL/Fragments/index.js new file mode 100644 index 000000000..38211844b --- /dev/null +++ b/client/src/GraphQL/Fragments/index.js @@ -0,0 +1,5 @@ +import { clone } from './clone'; + +export { + clone +}; diff --git a/client/src/GraphQL/index.js b/client/src/GraphQL/index.js new file mode 100644 index 000000000..51f292fb3 --- /dev/null +++ b/client/src/GraphQL/index.js @@ -0,0 +1,56 @@ +import gql from 'graphql-tag' + +const getSecret = gql` + query($id: ID!){ + keyVault_Secret(id: $id) + } +` + +const editCloneMutation = gql` + mutation($id: ID!, $type: String!, $description: String!, $validFrom: Int!, + $validTo: Int!, $active: Boolean!, $botId: ID!){ + operations_EditClone( + id: $id, + type: $type, + description: $description, + validFrom: $validFrom, + validTo: $validTo, + active: $active, + botId: $botId + ){ + id + key + } + } +` + +const getCloneQuery = gql` + query($id: ID!){ + opeations_Clone(id: $id) { + id + authId + key + type + description + exchange + validFrom + validTo + active + botId + } + } +` + +const getAuditLog = gql` + query($key: String!){ + keyVault_AuditLogs(key: $key){ + id, + date, + action, + details + } + } +` + +export { getSecret, editCloneMutation, + getCloneQuery, getAuditLog } diff --git a/client/src/GraphQL/models.js b/client/src/GraphQL/models.js new file mode 100644 index 000000000..252f1ee61 --- /dev/null +++ b/client/src/GraphQL/models.js @@ -0,0 +1,10 @@ +const types = [ 'Live', 'Competition', 'Backtest' ] + +const exchanges = [ + { + id: '1', + name: 'Poloniex' + } +] + +export { types, exchanges } diff --git a/client/src/img/binance.png b/client/src/img/binance.png new file mode 100644 index 0000000000000000000000000000000000000000..18ce7c6384e7f79ff732282bae026488373dcc02 GIT binary patch literal 3509 zcmV;m4NCHfP)0{{R3TC_Wv0001rP)t-s|NsB< zx-av&EAzM}^SdVVw;uof`180U{`&F#@z(q3!t}m7`rxMa&2#$Us`krh^~6f|&Uy97 zV)eya^u<*D_2l!tG5z!0`{~N})sOkzsQ&!)^0pNC*OdJ5*81bK=;-PD=)U*Uf%w~- z^0NT?;PxQn^^~PWO=*POB&e{L~4CYBhK~#90?VW35s=5+} zArVlq)v8Ecq8_x%+dlpOfA5Hz%SHAw0e&lSxQC&*|CpA6?&FnZHBJ z(RbJ2uhE|K*YB>w-=T0F`2L53*@gDpzsfoD>$CDXa<`$(f^d)d*p*({y`Q-h3YWf3|%ypP-k>fWEfiw9r`Hout5b4e|Tv=$SIg?KY z|9%aBkd!kCR~AyvbgrzDa3<->Lc*EOmDRdC)8fiPcV{|RS_CXuI1{;Y2rO7QlOMsq zw&9T^Jn)D5-^1$<9Jmq{@Wk42G#X4};L7&}V=;6l{L?7lX|*dx zJDJ^Bx1l40&TLe`^JsVPx2?vyy7Jbq$F^>}s(|OwPK?1V#*)KE=F>g9D&Xx;*7FBw zr^Y#?u|5}aoWmBBGph=C8ihMOGnDO&$Oa@cC}&m`@I2bVyil-2uWPQnI}@jci~^n( z<`U;CQJXnLDK?+6Pw<9AMFCGFoQ}jl;`E5}?EI2~H*6~kcqVN@I+FRgb4f06z4`@@ z!BGKZ@ANFvjl~vbI1Zf2=V{{to=M7BrYj3+&NN+#3V3Q)7TP{07j33WCfx4ILU~02 z&!oGt?527+lXhjD0-i~Qu~-aDmFQvO4JLGD2)GdiJgv4qUu^V$46}p&=jjshx$er< zt_NbDYXM|q`;5wC5P}b57A>JOp)21w3fgn$N~ym7$FNw@mVx190$mvxQTgc)R_+Ju z>dK<8iEKmbt1EBaHg{I6l3Zt*;Y7z>H&@tW^ch3}1}r0%EuR(xy*y z;jeP$YGychlKH|&Xt{L6LYq3D7#U5bgt}71BcSd$;rvd$;rvd$;rvd$;rvd$;rv7 zox*gGrv2*o)zRRU(DpM;PPQ%PlF{Q`Bb4dR#mC7E_*NEPTA%%Fdef}*l!-96)ZzZB zyjIzxlB*=2U5@c>vN)daHsrntCkl_Qk+$8!=p!JMWx?dUr)LF*;u9a}gp!x+@!=y? zt%-Q`pOX8#?NM@9ugomrS(J7m-nN>HSEtrJ2b2A{7jX7i`o&n39S^_Fw+(y>kERc8 z(~no z8ICT-F+lfgW@qG{?pR)VnYF3G(htmrsus(kwwYx_{NyAJ?SXt|Jd9t#GC9*EZ=XOn z)g??FZ^1mJBzUA=`o%Wc=o?jmVSoM4Xne`=Tm%x zby&j3P%`_BIM^tHpAoTAmcxbh^ytTB-?R_4WXYt!o7o)Irxr^;IKUTcvD^d4@Rxcl z{RmyFjO7XL^Lo8o4)2&ndi&IpWh}J_^acgDNA+0x5%O~lmLb|^Ikp~yf;KS8U=>SP z_NU;~svy41#vgoV%r%tJSl?SOdAZ#%?rJ5=zzn?%*;slbY3_MDmZ%x4X89=@ zic4pV?7d(m~2fxf+NSoSC4=G(G_AwV@tu`vmoPUWR7Z#7u@ znHG&&S!&@car{^RFc|DR#BS&7%a?)R^1BS)@RIn5+fiNP zYUv6k)B=^~iJ~|28?3|9OM3DKAB{vgOZm{f@ZnOnG31PnV%hgLDr&r6%feC?Nd`o; z%5xi01C|kW=6o%d+GN8cIa1D2WQbV&=;>tdL*6)G>5bGq^or)$!cxs^&|5lF>W(Fg zN9HtGJ(k{5HDkS`ilxjDDRPn)H4_I}dRqTe99dyuDZ6o8@qdNo^|F(F^SH}s^fmrH$oLu_@3riVX*hW*`vE+J+Q}yK6!5M^Em!+QI3i48x@A6t&kRg-onK==M zS$eOk|G75L6@3rRFw|n%q#s`#)>6ye%Pdec)i5ln&C*+IQD!nLVX0DKyQS1YhPcye zmYx>TF48Hv(m^#?9xtYjkboNZfaoV&r8_lM4Nt4C%`zOz8|43;*jb*Gsk9%5 z8gZN1B9o;y`M|~(lBJ5B>YtgU^6L9l-xO?p>^V1YFWYJmmegnIom7)4^ScDgeMOsX z#xN#JJ))J@f-FzcW5$7=R&|uW)H=REuTle+-p~YNveX7H78z@c2$o)MmI7I7$)(c8 zO1e5@DP!PFf2|2iZ-h@3C0K4t=l*Y3!a)qhlDHNcEWXMM)sEIXV=1ZWlfcbb5*sEP zEH72IH0S6^mY#}eX_l$>5}7GV3IPR9@K~>p4%r_riPtN;UpQ&GQs<@Oz7Ong7o8T!in5D{u4MQwdJCrT5vGic`Y_LqUAt8&V1Ccga4c3n(TgaJ;<;bYr zqmBeieaNvqoad4D6@uxJ#w=H$Prxh}CF3ElFJC>vuiD1450)gENnfzch6l&xuWi2l zwH&JzR2*DM<<;jeq|O@p>hU<9iEPXgCI}ESIcN{a#Y3w511nptEaA0?1Ug(w$BH`z zW31w&*%MV9SJw)MGm*_%dRwilhAb5ndQsbZ)yIr=p1-wgQIiqp%EZ|E>+3JA zg-3Ao+JdFt=0hlwl`VP}DG?Y;l(6))sdI{DA0P6C?$!r))h$bgSMIf8sWq99r99jy zu$&$vv&3K$t&C;goVSBo;v>~GakS2;Qj0y6Su^yE$%OE0zL zHl*^S<)(|S9lo{0XHtS}XEbB2SgI)pKy6>%^Au7sla_cbWvRy9w#nOM{}GvtSk&9& zWk!uyjwqJJkb?)oV!9?KROP}ugQb{Dq*z{=FoWeu{2Wopqf1Udus|E;3zp_H2DfVk z-{JtBGa1bfW+j^WGV7UIEGF~uXgDAjgMErmWcV4r;PJvg)H8hHS-h(LH7GkSP*!0)n4WGw`-7(_J`eJ jx!=}a6yxON^o;r+RBP%~$Mbfe00000NkvXXu0mjfR6rSp literal 0 HcmV?d00001 diff --git a/client/src/img/poloniex.png b/client/src/img/poloniex.png new file mode 100644 index 0000000000000000000000000000000000000000..dfe1437817db82675aa8ddd0eecda22be7fc0e0f GIT binary patch literal 11209 zcmaKSbyOVB*6j>B=-`B4g9UdB1epPXI|N8@hv4oo_#lD7HAo;>a8K~y5P}26y!(3A>Zz`E&OZB`+ST1vtE1FabYw^EY7EWfC5CsQQYfDW_QwtxLK})f}UbfnL?s_W9qUKHx zT&90*xV#;lAH4wpF-dP{Q*%2@cZiv#wXLH#{Xt6yJ;c^RoL*N@g-69%+S0~W-q+Pq z%U4y~+}F-r#DZQ@0wU%u`Uv1)>23<~cCdGJ6ZICS{|8s}vHiE3n;!CyiMyRR{r`~C zQ&ERVJGojy1i5%P&3S})AVR!cy!-;f!onO7J|12kZXP~vUOrAYG3%_|}z@)v`TkMq%j)6K`x-PD`Y z(T(BX2r`y#=B~ER?zT>jkiUqgW=L99 z(!UK=RQ~^_4i5jZc5~OX{9nHRPhdA~A7@K$O-nZ?4_EWYfwN-x8_HQ!+SSt3-N{wk z$;tlTRaCcea(8mGadL)8YY9ShZ5=I~yxjh=R#6dEaCCDwbu_nBkP)YU^yjj*wGb7N zk(CkV6%pX!6BOd*eJLO%2or+w@bJkuG5r>+0kH`6ppf+yBmm@4w>x%h%$+bK(E5zTA&wxc?68|2542?t0YD z-{yZr`*`sm*;_h3YTflw)G9@%jQ{|Pq=F1g+k0-;5G&o{l}Dgp+;|2@vX$VoeEC?| z2zlAbXGWCob_51+Wx-}ylQKOt*ydY{q>8c#74^-hmW1eK5idg#hQx%rn?E(AJ{a=} zUJ;G^^R^C>r=<5TE45STI({$p6+9Pc({5Y)?Y4Lm)L|z)_UfSBZC~W#_9ENQNtJbN z)l~!&(ATSE_mgB(j_$I*w*%|~XfRWb-_i7YJJ_*<{*d!0sLdq`Tmit?3-0%oxRmqC zkQA{P4~j>jxoFX;CcJmTpAEr$_jiIPc4nI+s2;k9w|}miW1 z)%|zXH0L~l&=wn%MMCAJKx}zAR-Ri;#k1!I4eLuqqy&k3wqvveE#imIXNhK{=ss3$ zVN}Q-3|nL~&rmn2)MJ@uT1?b);-COnVbbXbYu;UTy|e^ZCZDI!JW6kt?k=X&Zom-8 zIP>9ae5;fd`xS*-mzZZ2Y3g|?1%pC7=l*@C!ie#(NW8q04FKhSKE^EB()``92*!lBDdZ`6ClJaaY+{d)_H@ z6VPbdxE4Dv1;f)Bok?pbA+1--<9jpP)1s92dis{yjFSI)iO=i$rl{}<%*&nt!%6JV z-mC3T?DCH9Fb_JsdWja#fR<7uM6_C!2?E97_T}viC;PT~&Qdo_@H1_rS$5dLa7ffD z)!<-3Zh6P5-AX=c(z!bJZa%<}1IH+vB_aEH%RHmsSkf=j514{_XW8{qT8*)W^Y*wB zU4^?ZQ_N~4A;vRIlAB5-KPlsaD7kZ{TwVLhAI4B=tE$d12jGm|$2Y7mo|d0r;tWQp zOL}Wfs0!I^+Nj)p=3q~JEzZfFHUQsM>jBeP05-C_q9yz8w%g0eW|Cq)`~5nc5H{_WK{eXK8u#b zt#)r#Lmk*76omO;PqsMYTPi0}yoY;U5{1|*k$iO=tfJuRdpD`SBcK-(B5QZz=5|rB zCH&JA!HkdZ?%95M{HdOjKs*W4LUIQv7$$2R!J&ls>WIV_an3=#LXaVosPwsMIP5Ke zl~{{-fKG{T&%4k+(aUdjVv-e}Zfs8IN6RGJh49g~Kh3sie5M|dcPgZOvJog9WtP?n#D6niA@wc~g1Z!0#xdfx23ffF`1EmC;ZMzN?`OVlP9} zK?!fS<5cK)hYPxn!5zr_vcw^;mafL5lX*8M>6gS_dHUAbb#|chnfo0J8tYv~bI0Wc z*RLT8@MJSHPU;@jpzpH2t})?fF4D#{DtWoqKdl%FjL}4cpH&+P=HKS2XPLBYaL5~) zZB%1X->JN~Un?8-TeZ8i_$UJVwTzyQ^$RS1+)RAjWy)sONsb@5#VskKqa3EPX{CPm zOR1^vd-l|lDyn_zG?YGNY2^~oPj?d%cbYGI?D^w9(Z7Q@p1p(;@NMal!gxL{HO!DL zQLQBF@N*pUMgv74%HMk>5JW-XmPC;hKEw4{bTd(Q@QBTN$W2da(o*|W>A-(dr{(KBMW_wdke>>RiK6Z6+A;3XgldK0N3nA!7 z{iCd!^V3fqJey1FjHRK_uYNlQ0g$yg{G&Wu1!{e~T<_{ziM!uZkhK;o2^~aZCsSLHAc2Fj7#0bRh3}(ZsZ4NF z`7B^5Hx7j?#2tijv^_i*XG#%Aw%-eL>2e^{L;U=N`r_EEO}Wf ze-MR>xM~zxW&_mHuFt2ImxC1hoQw_FSMDiKUK5bIqCgtdF%UIMpXNOnA81X^b0T+;a18;eW){fEXsrN1Ep% z(C1@38i;1W6ei*V{MFmv)~p=p%ooWh8%BydGuL+H=SuY~qcJ_hqA*jt3HxbAU-2=) z=r7(QKI+~O6Wnoks`@n*SyM0V1_{glPVmyjpd7vIvg_H!B48JaoTMW_HS!)OZ9NWq z;T%TbIw5y7|I-1_gX3fEj`+@Lj>iftowMtMLl>w0YccPm)LnH0)@dB>)`gq%GhJCW zjpYe;x!SJFl&_C;lsB9^&H1q!leHN2#HNSm-l0Zo{uY~K7RCSOO9geUv_i2N zUR1Ys&q0Qp#oo~#!4+bUUS8{Qa8b{%*#oSRip#;na>Xg3N=2va`mDlX=I-weRLi_G z3_MG{)X+QlZx3)SB=85#67@j$2?rietm+Jc53+;0!qZw7sgv}~ePcM)XXqzsZac|5 z(K{|2Am31MXS~jdp`2-GEbNT773u96?6L2kUqW=r-+8$pl_H#IH2$0M^2}3E1k=F^j6~5TKRC}9r z(D8QlRej*PY~1hWMF;F!Ph^b`@3y6JXCq?Z6!wJ;BdcRLgetD3K9>RQd%6&Ph(ob) zAd_6G^7F@pmzi?iML%fbVkOq&EBV?1cN5Ej)~*AIsu-S)STW|($pNX&^f>tx}$|H%~{Vc%mn9Ujgm|s>13D-uV z42G(iCa6bu`VJ0t;bx0hJ*fwxot|HKT_n*q&$+?JAdB<)mnvqgIwdhmpBJL!5n&fm z4X1BG=KY7*{e{6ej;{)%5j8^6>QjNZOxx z9gd#UAr{#t{84)`!jZ3$J)q7KG?x7db_?jV(Ur}1d#6=w`)7<<{|!l}<|6u6P7A`_ z8OX2cE4ZH4UKkeJe!>PnQdr3M$uCC9^sB{CCoYCNj&qa@q=n$IDAzc*9Qa627@clK zn1pJR@qM9oOUI~&lTzU+HU(1f&{)`@n`7<=OHzXFcM*LvMDI=4N687@o?_g}TYA(F zgdP6B{jQ#Gx6&C352$&6y?b&~9YJ?RA~jbvQeio;L0163N4eRlG<%NPTK`$Vc#5Hw zD0h0>j>L31gWLkDV|=GK#+tM-YGClB#@I)iqy1=6*l0efQh2*SE#Q}xjI4R`glYK5 z_HLxwO1WcbY;*2{F|n)fz0ZM%^ycKc4n)#O76Xlf;L>^}F#aM~JM1d*=~bk<-wMsu zx9t6k(nJ0vX2<}%yeBW9!j+=NA~>TyYPbJk!P{Z}!&H1x!c;u3+H%ORm(y-t+UMPT zA{j#=7M!RPV7?q-Hy5M2zyu9wP%u+o`bTNkJZU_%~D}691IWVwH1#@tcDbw~i;S3G^(ziXYfsDs7SSK~gK>Pt0}<^{L~d7<_{MEZ|@_#&P4E z*=-Z4&V040u!&MlvYB%62l7ESxsfIBIdQ zw?}_i@j+TRjOdJccp7nt`gIlgA#?K&jxFuh1?44+hLrvRihPi6yyCh6I0Q8W7XfO#s;ipi_|g_^!BV|*3e~^-s8=dxi4qIMCA=XJXyLX z{H|0Mu6Gn^79Wds%_$XOKKLn8Wpi$^BQ@2B&EbUg*6kcpK{8CCtsM3}`CO?cd0V!5 zuXW?e7ZYFV2!?91bN@|Li9!JArP0X=8AqBfSlWu#-J#K4IL9pzYZ(K;dlXx5hdx9Y z(4&pE_&YtQ#GJ8@k^p)5jn%&{f(s`J$6c`U{>ukT48u9g-1GTvuA}3LpG^+5Yry)NiP!Rb_!W0YUdw;>F^L{(0T5whQ?WRk17 zWTj2MVe*GfYM`3CD#zbvYmXA0js$*qH1ss5ID6}zb#7YIPkj5jpXF!dp!}6+ijL;x zCj&p?$3E%-YxMTuczfjdm8wvl$a&&YAyTYB;Ehpn@_rj z;LFrx(@_=SYsQ<1>bjO+kHF+i`d{9#rXEdvVxk}b=n>)&00Dqfd@0BF1f?HynKZgZ zOCJEGsPHE@wKB`kRfrGBsDE&|l@S*U(n(n=a=SNt^dQ)|NbooL+zb9iEaMa=0bJQ33`uu)6=bfg1&1G{h1^dIVgw<8fA@)d6nUC#eY2H(u*OH>p|1kT~**cE(RSi4D~;*c3slwV)T_-ZjN5bGwAIjItpyAyWP zyRY&szj^I{woG;Cpi>U)eP{h@$2O}i0r;9aOF#l=7W^3H1PJ2B*eXNkRyPSA#sWf< z!8Su;q&wwrc~x97fUg6Nq>F07(mzv22ncye;KMd; zl23)k_zLpz*u~m%B)%8J{V{J-5LtxiUx8f}gB}IOLc8?hI&PhY6y3U7JqHCP#6G+3 z=-U>3gU`19EL^NL;RUwgJFvD%J_^opU4M}LPL`{cz`3nXy-}T2RY`Wp0TmJ{+9s`= zt~^Xqm%7Ugp`d<8IV#o!eV6RLFLq|jEckOw{*AmYT5t&tp}-T+Y6?C^?M8PiO4(fI z_3DKGYREsSAx_?t2D>^WbW}Hz*tO+vIAU#Bn0EmupN|+i3mly2q357Ja+mML6*O{~ z`~iEiIzP<~dwC*m;(RP55zLOkXrHnSNJ zE?_UVvXIDg+_gC)FYzQ47oqv&H3sIWH!-oh;JroVnD8c9^-CkEo0-v&Y#01Alg;M= zMbOc*gU@@?XWFyD4(HepD7y@_8;5t!oTl@yyk~Ym8qg(*sI_2gVE_*+dM? z7q8x))z1Wnv;oM>x+ylarRp~_M~%0Twh}JQ29Rv$F()_+2}4F2?W*^qE5R&SWs|b zUuQPMr_-VB0NR*fTm;4C_azz9NA8_`yLSUBIR)G}n!gXfd$k}%0h{QvhQBBlD4DVN zSA)LTBDq0`&%m%2$wzCB^OdK$;pRR-DEAc$c6|$eZ`@w}z!S8dZ-8wm?xVpuy~ek>;i7Q(J~`P4k8mL@PE^hhgTOt7D+88`q+PYFQoZqm4Q0~w0mosU z!?+tJK%G3@BATWK^F$f0m{plA2E zR+&bgb&4&%ZD>$oZAbafJylWDksS0|-n3IA(&-9}**5a^&?=u_F4-fjw^JLEoT`{R zybN~1w8(fana83c*$#v0f5hb^xxOWVc+hiO0Euc|*dwueWF=-IHVPAjpOT-kNQAzL zLJXiK5NHIV`aw^59v1 zlUa?5@?k8|Hd`nQ;ngtI<2Qpp$QR1xFtHc$W7L(ds<1!%-FaT-q`%5tPLWHxFa!U5 zpYilHP8j;Ec80q;5t;ON_1n!zpWJR^FN2)+{D#f>p-3<&iU$RylECXEJ8*g>)%V#7 zW{*MoVxIm0yYy|Se?WYDRetHB&s)Jm@F_VW%0JsvCwNtoog>aZ$=FuTyJC$?-JV)v zhM1le6{QEwsw}0gX^~F>m6?-CHxgR$ID&Rabt$fVT8JO`nF+c<%lmH`GY<)lo6jIm)H+$x$7P^T>f+i*4gg4u<1UwX^*8Qp zrsQp*u4O#4R9wB=1X#R@1U$`{Xduj~@X9_Z!i_^SFvy}=%?Q&BEPwok3XQ0&VoRLm zQl0BuJFlaYWi^zX>6OwuUv9futpt>A|nAxpXgLvRbgHL74m$Ut4>RhhqLN97?YD zY*S6gU42LehwYkdXwzC-voQKt*fQ0F(K(oCi?aut-ZzEKPU0rStKV?rzqp=hjXu(Z z-B)%Cq?wt55dnl@PEcbqOvATHs2GV>7_~}uxF?jVBHfBos&`y7e|CPDgZ&OxQ&gs$ zJE5IW0`iO;_BU4hus1b6tF)PfMkPV3j{e+f+4S(sP8Mvo z_*VHcE)s=n!3XKN>k!bxf4XTqEc1%LkT#idUs6Y09tBX}1E^%EIb|zUW0cBkNiHW7 zBSu4;0jp8??w2#gF*{XPfp|{4Wst*Rt#6~mweb>Mb|1W-SwT<$V??O+g|iX~@y>Gl zG#k??y{C)wRf|oEu8wnY1Qm=V_e6Q9Z5e#7}h*>p3lJ?gK*A+BW{v-v)xki z0Y!5(o1gLA?&r%}$BcVkJ~abmKD@7mv}|d73Jb_Zi(jB7HHcoLM@2b33O$!=iJ0|| z38B=;Aizf{by+X4SLdP=TKKweh9L5!m=vi}6emQxN!$%)j`a!6fI3R>L58oLB%A4| zDF{xD z?CSaNS&}pN8r+IY2LsQg(xcRODVKhNlOuxda`Vr0=T$Ht?ufwH-ZPzzT06IgmGceu zAbb>YRTWjtJ0wq>SNK@LK47ZBec(o*@zzo|xoL5K+)rVX;l-xywo=w!@b&yu$xkyA z9D8CPVB;9h&Hd~2c$;tM^49ZIKE?_ciyAydx?h@14FUFR8hmDXvy|mxL zr}@N@G#<)EgQA0ViUDuDPh)bodd|ZCE?7GGMmL=U8j`iV7xEf%+%$7z)fY)HV*(dJ z2ki_*tUliriq}ySVSVW@3LiMujp^c6D z6&lNgzUH+^n30SWC&3&YJi4KoXu@OKAJ{q!mi1g`;Od@Rw%BTR4!^GqsWoq$HpX;~ zLdGYluHbDX4*19at|wZu+qauJFEU*MC=!sO3CI!C_1G}=5BJHX#(O2kVKJb+K70fe zw^15x9g3f;o8^4;9@o1NOl$UpqB)xY@D&;FmHpwy^RS^auqv_h!nH4-c~jgvDvV^A z4x)VGAqUH@%FdRN*R#C@IRK`Zg>`eRJuGT=DCNK=BI#b+Dj zs=xm!-d|dLh`fBU{}`x5fmnXiZ7Vm8QO?ozaMb^14|E-hX8tw)psns=SF*}t-$u)H zhHSXZ?Yys2&irSQc);u!=WU%lvLabt_!Z1>Ta!v%E%5odlQvitjWl>Jm*(jDyLr4n zmo_@+96lrA5>P%BV>yBO^#hO)fkJ#t(_@0x2EB(qH{k{W%7f3Gst(2F5>?~OJA^;3 zz=G}$t^JgxN<_@wglU$0NGHZ~Le4{0XA7sLqe{=oIB)(yBV2B9pRJxY;SCJSXJL`a zQ0d!C&6p*s1-v!K0X4!+a0bdY7xB5i9bA36?Rg~fy`Zy$E*w7gKx!;_^=0;uf`EtM z(@|14m5*p)G^Y-r(%UqKY+=As4)JL_%kPV z-7P=Gkl&@mS&NjYLHrL_qUaBXFvh}b#S0r@Dj;x|nJ#F2{rV3+V?N$Uu7B$u4A)G< zMLqgs9U5>=x`yLfgAWraQv;wHZPZskLpa;|&%m$o=9(2{jl)G^?YJr5-lBrOxtQ1( zkQQ2RU!IJEx+41*$+jwLrB3vDrC6kw?bl2f?NrAMp|EWJ6Rkuq`#_Erp?q)JcZwTb z^fRIOGCZ-ctrV&bUAhiy`-GiOzsdcvFKy$rG}oI$o}Q$hdfXV$;4e4Opqi@}`cHKS z2SqhN`*V%HP;Kh zO(}GDl7ElAz45Tu)A_cQWG~ey@G^lRceM%smcf#7wSCVp@qn>`=GJicou#M(-+7nh z?jc1X`*-X{x(=B)E!>M}nt<22k@A(<=to_WoszZt-9Otbl@cWMiBD;0W~~iXQ!9hm zQn^b>cH+S=%nElox#*P{u&#Q}xdy$7(rSDCx}FXvTiV%`r%Wl8%UhFP`&078HZ;7h zj8ZO1kBo4&fd|2ZEM_CC{Ducf2Fg;apXbpJs@?udqfPY?ILLE%cZ|gasdgz+=Bz_s zmnw`im(Bd}PhI=Ln*=s*OzR@n&RI9f;NAT)*?i>`(L$#XQZ-F9^wi$%O(A%{`9`$gFyQbh+-NL0_3P> zU4PTF5-f3a2#HgkmEs0fXCR!Te~mWF-}d%|u7zsQqu?O`@-GnnB%A%^d0Z~#+D$5P z{+i^1#<&OCZ}%;$#C9nxO&>Sr@x}V ( + + + + + + + +) + +export default App diff --git a/client/src/theme.js b/client/src/theme.js new file mode 100644 index 000000000..a0abae869 --- /dev/null +++ b/client/src/theme.js @@ -0,0 +1,71 @@ +import { createMuiTheme } from '@material-ui/core/styles' + +export const theme = createMuiTheme({ + palette: { + primary: { main: '#303036' }, // DARK. + secondary: { main: '#CC5835' } // RUSTED_RED. + }, + typography: { + fontFamily: '"Saira","Saira Condenses", sans-serif', + useNextVariants: true + }, + overrides: { + Paper: { + root: { + backgroundColor: '#ffffff' + }, + elevation: 0, + square: true + } + } +}) + +export const globalStyles = theme => ({ + '@global': { + body: { + backgroundColor: theme.palette.common.white + } + }, + appBar: { + position: 'relative' + }, + toolbarTitle: { + flex: 1 + }, + layout: { + width: 'auto', + marginLeft: theme.spacing.unit * 3, + marginRight: theme.spacing.unit * 3, + [theme.breakpoints.up(900 + theme.spacing.unit * 3 * 2)]: { + width: 900, + marginLeft: 'auto', + marginRight: 'auto' + } + }, + heroContent: { + maxWidth: 600, + margin: '0 auto', + padding: `${theme.spacing.unit * 8}px 0 ${theme.spacing.unit * 6}px` + }, + cardHeader: { + backgroundColor: theme.palette.grey[200] + }, + cardPricing: { + display: 'flex', + justifyContent: 'center', + alignItems: 'baseline', + marginBottom: theme.spacing.unit * 2 + }, + cardActions: { + [theme.breakpoints.up('sm')]: { + paddingBottom: theme.spacing.unit * 2 + } + }, + footer: { + marginTop: theme.spacing.unit * 8, + borderTop: `1px solid ${theme.palette.divider}`, + padding: `${theme.spacing.unit * 6}px 0` + } +}) + +export default theme diff --git a/client/src/utils/index.js b/client/src/utils/index.js new file mode 100644 index 000000000..d81838754 --- /dev/null +++ b/client/src/utils/index.js @@ -0,0 +1,74 @@ +export function toLocalTime (epoch) { + const localDate = new Date(0) + localDate.setUTCSeconds(epoch) + const options = { year: 'numeric', month: 'long', day: '2-digit' } + return ( + `${localDate.toLocaleDateString(options) + } at ${ + localDate.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit', second: '2-digit' })}` + ) +} + +export function toUTCTimestamp (localDate) { + if(isDefined(localDate)){ + const date = new Date(localDate.valueOf()) + const utcDate = Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), + date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), + date.getUTCSeconds()) + + return utcDate.valueOf() / 1000|0 + } +} + +export function isDefined (d) { + return d !== null && typeof d !== 'undefined' +} + +export const isArray = Array.isArray + +export function isObject (d) { + return isDefined(d) && typeof d === 'object' && !Array.isArray(d) +} + +export function isEmpty (obj) { + for (var key in obj) { + if (obj.hasOwnProperty(key)) return false + } + return true +} + +export function validObject (object, ...keys) { + return keys.reduce((a, b) => (a || { })[b], object) !== undefined +} + +export function mergeDeep (target, ...sources) { + if (!sources.length) return target + const source = sources.shift() + + if (isObject(target) && isObject(source)) { + for (const key in source) { + if (isObject(source[key])) { + if (!target[key]) Object.assign(target, { [key]: {} }) + mergeDeep(target[key], source[key]) + } else { + Object.assign(target, { [key]: source[key] }) + } + } + } + return mergeDeep(target, ...sources) +} + +export function slugify (string) { + const a = 'àáäâãåèéëêìíïîòóöôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;' + const b = 'aaaaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------' + const p = new RegExp(a.split('').join('|'), 'g') + + return string.toString().toLowerCase() + .replace(/\s+/g, '-') // Replace spaces with - + .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters + .replace(/&/g, '-and-') // Replace & with 'and' + .replace(/[^\w-]+/g, '') // Remove all non-word characters + .replace(/--+/g, '-') // Replace multiple - with single - + .replace(/^-+/, '') // Trim - from start of text + .replace(/-+$/, '') // Trim - from end of text +} diff --git a/client/src/views/BannerTopBar/index.js b/client/src/views/BannerTopBar/index.js new file mode 100644 index 000000000..263ea7bee --- /dev/null +++ b/client/src/views/BannerTopBar/index.js @@ -0,0 +1,18 @@ +import React from 'react' +import Typography from '@material-ui/core/Typography' + +const TopBar = ({ + size, + backgroundUrl, + title, + text +}) => ( +
+
+ {title} + {text} +
+
+) + +export default TopBar diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js new file mode 100644 index 000000000..aa11e0efc --- /dev/null +++ b/client/src/views/Clone/Add/index.js @@ -0,0 +1,367 @@ +import React, { Component } from 'react' +import { graphql, compose, Query } from 'react-apollo' +import { clones, teams } from '../../../GraphQL/Calls' +import { DateTime } from 'luxon'; + +import TopBar from '../../BannerTopBar' + +import { withStyles } from '@material-ui/core/styles' +import classNames from 'classnames' +import styles from './styles' + +import { types} from '../../../GraphQL/models' +import { isDefined } from '../../../utils' + +import { + MenuItem, Button, TextField, FormControl, InputLabel, Input, Typography, + Paper, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, + Select, FormControlLabel, Checkbox +} from '@material-ui/core' + +import { DateTimePicker } from 'material-ui-pickers'; +import { + ChevronLeft, + ChevronRight, +} from '@material-ui/icons'; + +class AddClone extends Component { + + constructor(props){ + super(props) + let user = localStorage.getItem('user') + this.state = { + user: JSON.parse(user), + teamId:'', + botId:'', + mode:'', + resumeExecution: false, + beginDatetime: DateTime.local().minus({ days: 8 }).startOf('day'), + endDatetime: DateTime.local(), + waitTime: 1, + state : '', + stateDatetime: 0, + createDatetime: 0, + runAsTeam: false, + + //Error handlers + nameError: false, + teamError: false, + botError: false, + modeError: false, + isNewCloneConfirmationOpen: false, + serverResponse:'', + serverError: false + } + } + + render() { + const { classes } = this.props + if( !isDefined(this.state.user) ) { + return ( + + ) + } else return ( + + + +
+ + +
+ + Create a Bot Clone + + + + A bot clone it's a copy of your bot running on a virtual machine. + At the moment Live clones trade by default 0.001 BTC on Poloniex. + Please select the team and bot you want to clone! + + + + + Select Team and Bot + + + {({ loading, error, data }) => { + if (loading) { + return ( + + ) + } else if(!isDefined(data.teams_FbByTeamMember)){ + return ( + + ) + } else if (error) return `Error! There has been an error loading teams.` + + return ( + + ) + }} + + + + this.setState({mode:e.target.value})} + onBlur={(e)=>this.setState({modeError:false})} + error={this.state.modeError} + fullWidth + > + {types.map(option => ( + + {option} + + ))} + + + { this.state.mode == "Backtest" && + + } + rightArrowIcon={} + value={this.state.beginDatetime} + label='Backtest Start Date' + onChange={newVal => this.setState({ beginDatetime: newVal })} + className={classNames(classes.form, classes.textField)} + fullWidth + /> + + } + rightArrowIcon={} + value={this.state.endDatetime} + label='Backtest End Date' + onChange={newVal => this.setState({ endDatetime: newVal })} + className={classNames(classes.form, classes.textField)} + fullWidth + /> + + this.setState({waitTime:e.target.value})} + fullWidth + /> + + } + + + If Run as Team is selected, the clone will be taken from the + team respository instead of your own team member folder. + Competitions runs from the team respository. + + this.setState({runAsTeam:e.target.checked })} + value="runAsTeam" + color="primary" + /> + } + label="Run as Team" + className={classNames(classes.form, classes.textField)} + /> + + + The Resume Execution option let's you pick up the context of + the last execution and continue from there. + + this.setState({resumeExecution:e.target.checked })} + value="resumeExecution" + color="primary" + /> + } + label="Resume Execution" + className={classNames(classes.form, classes.textField)} + /> + +
+ +
+ + + + + Creating bot clone + + + {this.state.serverResponse} + + + + + + +
+
+
+ ); + } + + async submitForm(e){ + e.preventDefault() + let error = this.validate() + if (!error){ + let serverResponse = await this.createCloneOnServer() + error = serverResponse.errors || !isDefined(serverResponse.data.operations_AddClone) + if(error){ + this.state.serverResponse = serverResponse.errors[0].message + this.state.serverError = true + }else{ + this.state.serverResponse = "The new clone was sucessfully created." + this.state.serverError = false + } + + this.handleNewCloneConfirmationOpen() + } + } + + async createCloneOnServer(){ + let variables = { + clone:{ + teamId: this.state.teamId, + botId: this.state.botId, + mode: this.state.mode, + resumeExecution: this.state.resumeExecution, + runAsTeam: this.state.runAsTeam + } + } + + if(this.state.mode == "Backtest"){ + variables.clone.beginDatetime = this.state.beginDatetime.valueOf() / 1000|0 + variables.clone.endDatetime = this.state.endDatetime.valueOf() / 1000|0 + variables.clone.waitTime = this.state.waitTime + } + + return this.props.addCloneMutation({ + variables: variables + //refetchQueries: [{query: getClonesQuery}], + }) + } + + handleNewCloneConfirmationOpen = () => { + this.setState({ isNewCloneConfirmationOpen: true }) + }; + + handleNewCloneConfirmationClose = () => { + this.setState({ + isNewCloneConfirmationOpen: false + }) + + if(!this.state.serverError) + this.setState({ + teamId:'', + botId:'', + mode:'', + resumeExecution: false, + beginDatetime: DateTime.local().minus({ days: 8 }).startOf('day'), + endDatetime: DateTime.local(), + waitTime: 1, + state : '', + stateDatetime: 0, + createDatetime: 0, + runAsTeam: false, + + //Error handlers + nameError: false, + teamError: false, + botError: false, + modeError: false, + isNewCloneConfirmationOpen: false, + serverResponse: '', + serverError: false + }) + }; + + validate(){ + let isError = false + + if(this.state.teamId.length < 1) { + isError = true + this.setState(state => ({ teamError: true })); + } + + if(this.state.mode.length < 1) { + isError = true + this.setState(state => ({ modeError: true })); + } + + return isError; + + } +} + +export default compose( + graphql(clones.OPERATIONS_ADD_CLONE, { name:'addCloneMutation' }), + withStyles(styles) +)(AddClone) diff --git a/client/src/views/Clone/Add/styles.js b/client/src/views/Clone/Add/styles.js new file mode 100644 index 000000000..c9339ec38 --- /dev/null +++ b/client/src/views/Clone/Add/styles.js @@ -0,0 +1,37 @@ +const styles = theme => ({ + root: { + width: '100%', + flexGrow: 1, + padding: 10, + marginTop: '5%', + marginBottom: '10%' + }, + container: { + display: 'flex', + flexWrap: 'wrap', + padding: 20, + height: '100%' + }, + textField: { + width: '80%', + marginLeft:'10%', + marginBottom: 10 + }, + actionButton: { + textAlign: 'center', + marginTop: 10 + }, + typography: { + width: '80%', + marginLeft: '10%', + marginTop: 40 + }, + form: { + marginTop: 20 + }, + selectEmpty: { + marginTop: theme.spacing.unit * 2, + }, +}); + +export default styles; diff --git a/client/src/views/Clone/List/CloneDialog.js b/client/src/views/Clone/List/CloneDialog.js new file mode 100644 index 000000000..46525d2c1 --- /dev/null +++ b/client/src/views/Clone/List/CloneDialog.js @@ -0,0 +1,59 @@ +import React, { Component } from 'react' +import AddClone from './AddClone' + +import AddIcon from '@material-ui/icons/Add' +import { withStyles } from '@material-ui/core/styles' +import styles from './styles' + +import { + Button, Dialog, DialogContent, DialogContentText, DialogTitle, Paper, Typography +} from '@material-ui/core' + +class CloneDialog extends Component { + + constructor (props) { + super(props) + this.state = { + selected:'', + isNewCloneDialogOpen: false, + } + } + + handleNewCloneDialogOpen = () => { + this.setState({ isNewCloneDialogOpen: true }) + }; + + handleNewCloneDialogClose = () => { + this.setState({ isNewCloneDialogOpen: false }) + }; + + render () { + const { classes } = this.props + return ( +
+ + + + Add a new Clone + + + + Description... + + + + +
+ ) + } +} + +export default withStyles(styles)(CloneDialog) diff --git a/client/src/views/Clone/List/ListClones.js b/client/src/views/Clone/List/ListClones.js new file mode 100644 index 000000000..c3354d988 --- /dev/null +++ b/client/src/views/Clone/List/ListClones.js @@ -0,0 +1,228 @@ +import React, { Component } from 'react' +import { graphql, compose } from 'react-apollo' +import { clones } from '../../../GraphQL/Calls' +import Poloniex from '../../../img/poloniex.png' +import Binance from '../../../img/binance.png' + +import { + Grid, Paper, Typography, Button, TextField, Dialog, DialogContent, + DialogContentText, DialogTitle, DialogActions, + ExpansionPanel, ExpansionPanelDetails, ExpansionPanelSummary, + ExpansionPanelActions, Chip, Divider + +} from '@material-ui/core' + +import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; + +import { isDefined, toLocalTime } from '../../../utils' +import classNames from 'classnames' +import { withStyles } from '@material-ui/core/styles' +import styles from './styles' + +class ListClones extends Component { + + constructor (props) { + super(props) + this.state = { + isRemoveDialogOpen: false, + isLogsDialogOpen: false, + } + } + + render () { + const { classes } = this.props + const clone = this.props.currentClone + return ( + + + }> +
+ {clone.teamId} +
+
+ {clone.botId} +
+
+ {clone.mode} +
+
+ + +
+ Created: + { isDefined(clone.beginDatetime) && + Begin: + } + { isDefined(clone.endDatetime) && + End: + } + { isDefined(clone.waitTime) && + Wait Time: + } + Resume Execution: + Run As Team: +
+
+ {toLocalTime(clone.createDatetime)} + { isDefined(clone.beginDatetime) && + {toLocalTime(clone.beginDatetime)} + } + { isDefined(clone.endDatetime) && + {toLocalTime(clone.endDatetime)} + } + { isDefined(clone.waitTime) && + {clone.waitTime} + } + {clone.resumeExecution ? 'Yes':'No'} + {clone.runAsTeam ? 'Yes':'No'} +
+
+ Virtual Machine Status + +
+
+ + + + + +
+ + + + Delete Clone + + + + Are you sure you want to delete this clone? + Deleting this clone will prevent any running bots associated to this clone to access your account at the exchange. + + + + + + + + + + + + Last clone logs + + + + + + + + + +
+ ) + } + + canStopClone(){ + const state = JSON.parse(this.props.currentClone.state) + if(isDefined(state) && state.hasOwnProperty("running")){ + return true + } else { + return false + } + } + + canRestartClone(){ + const state = JSON.parse(this.props.currentClone.state) + if(isDefined(state) && state.hasOwnProperty("terminated")){ + return true + } else { + return false + } + } + + removeClone (clone) { + this.props.mutate({ + variables:{ + id: clone.id + }, + refetchQueries: [{query: clones.OPERATIONS_LIST_CLONES}] + }) + } + + showLogs () { + this.setState({ isLogsDialogOpen: true }) + } + + handleLogsDialogClose = () => { + this.setState({ isLogsDialogOpen: false }) + } + + handleRemoveDialogOpen = () => { + this.setState({ isRemoveDialogOpen: true }) + } + + handleRemoveDialogOK = () => { + this.removeClone(this.props.currentClone) + this.setState({ isRemoveDialogOpen: false }) + } + + handleRemoveDialogCancel = () => { + this.setState({ isRemoveDialogOpen: false }) + } +} + +export default compose( + graphql(clones.OPERATIONS_REMOVE_CLONE), + withStyles(styles) +)(ListClones) diff --git a/client/src/views/Clone/List/index.js b/client/src/views/Clone/List/index.js new file mode 100644 index 000000000..726fd6ded --- /dev/null +++ b/client/src/views/Clone/List/index.js @@ -0,0 +1,130 @@ +import React, { Component } from 'react' +import { graphql } from 'react-apollo' +import { clones } from '../../../GraphQL/Calls' +import TopBar from '../../BannerTopBar' +//import CloneDialog from './CloneDialog' +import ListClones from './ListClones' + +// Material-ui +import { Typography, Paper } from '@material-ui/core' + +class BrowseClones extends Component { + + constructor (props) { + super(props) + let user = localStorage.getItem('user') + this.state = { + user: JSON.parse(user) + } + } + + render () { + let data = this.props.data + + if (data.loading) { + return ( + + ) + } else if (data.operations_Clones && data.operations_Clones.length > 0) { + return ( + + + +
+ { + data.operations_Clones.map((clone, i) => { + return ( + + ) + }) + } +
+
+ ) + } else if (data.error) { + return ( + + ) + } else { + return ( + + ) + } + } + + getBodyContent (data) { + if (data.loading) { + return ( + + ) + } else if (data.operations_Clones && data.operations_Clones.length > 0) { + return ( + + + +
+ { + data.operations_Clones.map((clone, i) => { + return ( + + ) + }) + } +
+
+ ) + } else if (data.error) { + return ( + + ) + } else { + return ( + + + ) + } + } + +} + +export default graphql(clones.OPERATIONS_LIST_CLONES)(BrowseClones) diff --git a/client/src/views/Clone/List/styles.js b/client/src/views/Clone/List/styles.js new file mode 100644 index 000000000..652be82cd --- /dev/null +++ b/client/src/views/Clone/List/styles.js @@ -0,0 +1,82 @@ +const styles = theme => ({ + root: { + flexGrow: 1, + padding: 10, + margin: 10 + }, + image: { + width: 128, + height: '100%', + cursor: 'default' + }, + img: { + margin: 'auto', + display: 'block', + maxWidth: '100%', + maxHeight: '100%' + + }, + buttonList: { + margin: theme.spacing.unit, + float: 'right', + }, + buttonGrid: { + marginTop: -20, + }, + button: { + display: 'block', + marginLeft: 'auto', + marginRight: 'auto', + }, + textField: { + marginLeft: theme.spacing.unit, + marginRight: theme.spacing.unit, + }, + textArea: { + marginLeft: theme.spacing.unit, + marginRight: theme.spacing.unit, + whiteSpace: 'pre', + overflowY:'auto', + overflowX:'hidden' + }, + heading: { + fontSize: theme.typography.pxToRem(18), + flexBasis: '33.33%', + fontWeight: '600' + }, + helper: { + borderLeft: `2px solid ${theme.palette.divider}`, + padding: `${theme.spacing.unit}px ${theme.spacing.unit * 2}px`, + }, + logsDialog:{ + width:'1750px', + overflowY:'auto', + overflowX:'hidden' + }, + details:{ + display:'flex' + }, + column: { + flexBasis: '15%', + maxWidth: '15%' + }, + column2: { + flexBasis: '42.5%', + maxWidth: '42.5%' + }, + column3: { + flexBasis: '42.5%', + maxWidth: '42.5%' + }, + cloneInfo1:{ + fontWeight: '600', + paddingLeft: '16px', + paddingTop: '16px' + }, + cloneInfo2:{ + paddingLeft: '16px', + paddingTop: '16px' + }, +}) + +export default styles diff --git a/client/src/views/History/AuditLogList.js b/client/src/views/History/AuditLogList.js new file mode 100644 index 000000000..e9d18f38c --- /dev/null +++ b/client/src/views/History/AuditLogList.js @@ -0,0 +1,87 @@ +import React, { Component } from 'react' +import {graphql, compose} from 'react-apollo' +import { getAuditLog } from '../../../queries' + +import { Table, TableBody, TableCell, TableHead, TableRow, Typography } from '@material-ui/core'; + +import { withStyles } from '@material-ui/core/styles' +import { toLocalTime } from '../../../utils' + +const styles = theme => ({ + root: { + flexGrow: 1, + padding: 20, + margin: 10 + } +}); + + +class AuditLogList extends Component { + + constructor(props){ + super(props) + const key = this.props.currentKey + this.state = { + id: key.id, + key: key.key, + date:'', + action: '' + } + } + + render() { + const { classes } = this.props + var data = this.props.data + if(data.loading){ + return Loading... + }else{ + + if(!data.keyVault_AuditLogs){ + return There has been an erorr. + } + if(data.keyVault_AuditLogs.length === 0){ + return There is no audit history for this key. + } + + return ( + + + + Date + Action + Details + + + + + {data.keyVault_AuditLogs.map(row => { + return ( + + + {toLocalTime(row.date)} + + {row.action} + {row.details} + + ); + })} + +
+ ) + } + } + +} + +export default compose( + graphql(getAuditLog, { // What follows is the way to pass a parameter to a query. + options: (props) => { + return { + variables: { + key: props.currentKey.id + } + } + } + }), + withStyles(styles) +)(AuditLogList) diff --git a/client/src/views/Home.js b/client/src/views/Home.js new file mode 100644 index 000000000..a91fd49a4 --- /dev/null +++ b/client/src/views/Home.js @@ -0,0 +1,43 @@ +import React, { Component } from 'react' +import { Typography } from '@material-ui/core' +import { withStyles } from '@material-ui/core/styles' +import TopBar from './BannerTopBar' + +class Home extends Component { + + render () { + return ( + + + +
+ + Welcome to the Operations Module! + + + Responsible for manage bot clones. + +
+ + The Operations module allows you to create copies of your bot + that will be executed on a virtual machine. + +
+
+ + + +
+
+ +
+ ) + } +} + +export default Home diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..48e341a09 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} diff --git a/server/src/config/clone-deployment.json b/server/src/config/clone-deployment.json new file mode 100644 index 000000000..e46470066 --- /dev/null +++ b/server/src/config/clone-deployment.json @@ -0,0 +1,31 @@ +{ + "apiVersion": "batch/v1", + "kind": "Job", + "metadata": { + "labels": { + "app": "aadev" + }, + "name": "aadev-deployment" + }, + "spec": { + "template": { + "spec": { + "restartPolicy": "Never", + "containers": [ + { + "name": "aadev", + "image": "benme/aadev:v3.2", + "command": ["node", "Run.js"], + "env": [ + ] + } + ] + }, + "metadata": { + "labels": { + "app": "aadev" + } + } + } + } +} diff --git a/server/src/config/envConfig.js b/server/src/config/envConfig.js new file mode 100644 index 000000000..62d7d6073 --- /dev/null +++ b/server/src/config/envConfig.js @@ -0,0 +1,47 @@ +import 'dotenv/config' + +const env = [] + +env.push({ + "name": "PLATFORM_ENVIRONMENT", + "value": process.env.PLATFORM_ENVIRONMENT +}) + +// FIXME +env.push({ + "name": "GATEWAY_ENDPOINT", + "value": "https://platform-api-dev.advancedalgos.net/graphql" + //"value": process.env.GATEWAY_ENDPOINT +}) + +env.push({ + "name": "STORAGE_BASE_URL", + "value": process.env.STORAGE_BASE_URL +}) + +env.push({ + "name": "STORAGE_CONNECTION_STRING", + "value": process.env.STORAGE_CONNECTION_STRING +}) + +env.push({ + "name": "AUTH_URL", + "value": process.env.AUTH_URL +}) + +env.push({ + "name": "AUTH_CLIENT_ID", + "value": process.env.AUTH_CLIENT_ID +}) + +env.push({ + "name": "AUTH_CLIENT_SECRET", + "value": process.env.AUTH_CLIENT_SECRET +}) + +env.push({ + "name": "AUTH_AUDIENCE", + "value": process.env.AUTH_AUDIENCE +}) + +export default env diff --git a/server/src/config/logger.js b/server/src/config/logger.js new file mode 100644 index 000000000..434fb2354 --- /dev/null +++ b/server/src/config/logger.js @@ -0,0 +1,42 @@ +import { createLogger, format, transports } from 'winston' +const { combine, timestamp, simple } = format +import { inspect } from 'util' + +const options = { + file: { + level: 'info', + filename: '../logs/app.log', + handleExceptions: true, + json: true, + maxsize: 5242880, // 5MB + maxFiles: 5, + colorize: false, + timestamp: true + }, + console: { + level: 'debug', + handleExceptions: true, + json: false, + colorize: true, + timestamp: true + } +} + +const logger = createLogger({ + level: 'info', + format: format.combine( + format.colorize(), + format.splat(), + format.timestamp({ format: 'YY/MM/DD HH:mm' }), + format.printf( + info => `${info.timestamp} - ${info.level}: ${JSON.parse(JSON.stringify(inspect(info.message)))}` + ) + ), + transports: [ + new transports.File(options.file), + new transports.Console(options.console) + ], + exitOnError: false // do not exit on handled exceptions +}) + +export default logger diff --git a/server/src/config/utils.js b/server/src/config/utils.js new file mode 100644 index 000000000..11f9909fa --- /dev/null +++ b/server/src/config/utils.js @@ -0,0 +1,9 @@ +export function toPlatformDatetime (epoch) { + const platformDate = new Date(0) + platformDate.setUTCSeconds(epoch) + return platformDate.toISOString() +} + +export function isDefined (d) { + return d !== null && typeof d !== 'undefined' +} diff --git a/server/src/enums/CloneMode.js b/server/src/enums/CloneMode.js new file mode 100644 index 000000000..12b3eb37c --- /dev/null +++ b/server/src/enums/CloneMode.js @@ -0,0 +1,11 @@ +export const LIVE = 'Live'; +export const BACKTEST = 'Backtest'; +export const COMPETITION = 'Competition'; + +export const CloneModeEnum = [ + LIVE, + BACKTEST, + COMPETITION +]; + +export default CloneModeEnum; diff --git a/server/src/enums/CloneState.js b/server/src/enums/CloneState.js new file mode 100644 index 000000000..e82389e90 --- /dev/null +++ b/server/src/enums/CloneState.js @@ -0,0 +1,19 @@ +export const UNPUBLISHED = 'UNPUBLISHED'; +export const PUBLISHED = 'PUBLISHED'; +export const CANCELLED = 'CANCELLED'; +export const RUNNING = 'RUNNING'; +export const INTERRUPTED = 'INTERRUPTED'; +export const FINISHED = 'FINISHED'; +export const ARCHIVED = 'ARCHIVED'; + +export const CloneStateEnum = [ + UNPUBLISHED, + PUBLISHED, + CANCELLED, + RUNNING, + INTERRUPTED, + FINISHED, + ARCHIVED, +]; + +export default CloneStateEnum; diff --git a/server/src/errors/index.js b/server/src/errors/index.js new file mode 100644 index 000000000..dea8803fb --- /dev/null +++ b/server/src/errors/index.js @@ -0,0 +1,66 @@ +import logger from '../config/logger' + +export class AuthentificationError extends Error { + code = 401 + message = 'Autentification not found, you have to be authentificated to perform this action' + constructor(){ + super() + logger.error(this.stack) + } +} + +export class DatabaseError extends Error { + code = 404 + message = 'Ressource not found : ' + this.message + constructor(message){ + super(message) + logger.error(this.stack) + } +} + +export class WrongArgumentsError extends Error { + code = 400 + message = 'Wrong arguments : ' + this.message + constructor(message){ + super(message) + logger.error(this.stack) + } +} + +export class ServiceUnavailableError extends Error { + code = 503 + message = 'At least one service is unresponding ' + this.message + constructor(message){ + super(message) + logger.error(this.stack) + } +} + +export class OperationsError extends Error { + code = 500 + message = 'OperationsModule Internal Error. ' + this.message + constructor(message){ + super(message) + logger.error(this.stack) + this.stack = '' + } +} + +export class KubernateError extends Error { + code = 500 + message = 'OperationsModule Kubernate Error. ' + this.message + constructor(message){ + super(message) + logger.error(this.stack) + } +} + +export class CustomError extends Error { + code = 500 + message = this.message + constructor(message){ + super(message) + logger.error(this.stack) + this.stack = '' + } +} diff --git a/server/src/errors/notAllowed.json b/server/src/errors/notAllowed.json new file mode 100644 index 000000000..b76604aa2 --- /dev/null +++ b/server/src/errors/notAllowed.json @@ -0,0 +1,8 @@ +{ + "errors": [ + { + "code": 401, + "message": "Wait, you're not supposed to be here, go through the gate as everyone else" + } + ] +} diff --git a/server/src/index.js b/server/src/index.js new file mode 100644 index 000000000..02cdaa6fd --- /dev/null +++ b/server/src/index.js @@ -0,0 +1,43 @@ +import express from 'express' +import 'dotenv/config' +import graphqlHTTP from 'express-graphql' +import schema from './schema' +import mongoose from 'mongoose' +import cors from 'cors' +import logger from './config/logger' +import wrongPreshared from './errors/notAllowed.json'; + +const app = express() + +app.post('/graphql', (req, res, next) => { + if (req.headers.preshared === process.env.OPERATIONS_API_PRESHARED) { + next(); + } else { + res.send(wrongPreshared); + } +}); + +// Allow cross origing request +app.use(cors()) + +// Database Connection +mongoose.connect(`mongodb://${process.env.DB_USERNAME}:${process.env.DB_PASSWORD}@${process.env.DB_DOMAIN}`, { useNewUrlParser: true }) + +mongoose.connection.once('open', () => { + logger.info('Connected to the DB.') +}) + +app.use('/graphql', graphqlHTTP(req => { + return { + schema: schema, + context: { + userId: req.headers.userid, + authorization: req.headers.authorization + }, + graphiql: true + } +})) + +app.listen(process.env.PORT, () => { + logger.info(`Listening on port ${process.env.PORT}.`) +}) diff --git a/server/src/kubernetes/createClone.js b/server/src/kubernetes/createClone.js new file mode 100644 index 000000000..ff89142a6 --- /dev/null +++ b/server/src/kubernetes/createClone.js @@ -0,0 +1,99 @@ +import logger from '../config/logger' +import { toPlatformDatetime } from '../config/utils' +import envConfig from '../config/envConfig' +import { KubernateError } from '../errors' +import { Client, config } from 'kubernetes-client' +// Get base Deployment config +import deploymentManifest from '../config/clone-deployment.json' +import { BACKTEST} from '../enums/CloneMode'; + +const createClone = async (clone, cloneName) => { + try { + logger.info("createClone %j", cloneName) + const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) + + // Make changes to base deployment config + deploymentManifest.metadata.name = cloneName + + logger.debug("createClone Set basic environment configuration.") + let env = envConfig + + logger.debug("createClone Configuration for team, bot and process.") + env.push({ + "name": "DEV_TEAM", + "value": clone.teamId + }) + + env.push({ + "name": "BOT", + "value": clone.botId + }) + + // TODO allow other types + env.push({ + "name": "PROCESS", + "value": "Trading-Process" + }) + + // TODO allow other types + env.push({ + "name": "TYPE", + "value": "Trading" + }) + + env.push({ + "name": "RUN_AS_TEAM", + "value": clone.runAsTeam.toString() + }) + + env.push({ + "name": "USER_LOGGED_IN", + "value": clone.userLoggedIn + }) + + logger.debug("createClone Configuration for the execution.") + env.push({ + "name": "START_MODE", + "value": clone.mode.toLowerCase() + }) + + env.push({ + "name": "RESUME_EXECUTION", + "value": clone.resumeExecution.toString() + }) + + if(clone.mode === BACKTEST){ + env.push({ + "name": "BEGIN_DATE_TIME", + "value": toPlatformDatetime(clone.beginDatetime) + }) + + env.push({ + "name": "END_DATE_TIME", + "value": toPlatformDatetime(clone.endDatetime) + }) + + env.push({ + "name": "WAIT_TIME", + "value": clone.waitTime.toString() + }) + } + + deploymentManifest.spec.template.spec.containers[0].env = env + + // Create a new Deployment + const create = await client.apis.batch.v1.namespaces('default').jobs.post( + { body: deploymentManifest }) + logger.debug("Create: %j ", create) + + // Fetch the Deployment we just created + const deployment = await client.apis.batch.v1.namespaces('default').jobs( + deploymentManifest.metadata.name).get() + logger.debug("Job: %j ", deployment) + + logger.info("createClone %j succesfull", cloneName) + } catch (err) { + throw new KubernateError(err) + } +} +export default createClone diff --git a/server/src/kubernetes/getClonePodStatus.js b/server/src/kubernetes/getClonePodStatus.js new file mode 100644 index 000000000..ee4dfb835 --- /dev/null +++ b/server/src/kubernetes/getClonePodStatus.js @@ -0,0 +1,32 @@ +import logger from '../config/logger' +import { KubernateError } from '../errors' +import { Client, config } from 'kubernetes-client' + +const getClonePodStatus = async (cloneName) => { + try { + logger.info("getClonePodStatus %j", cloneName) + const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) + + let query = { + "qs":{ + "labelSelector": "job-name="+cloneName + } + } + // Get The Pod + const pod = await client.api.v1.namespaces('default').pods.get(query) + logger.debug("pod: %j ", pod) + + let clonePodStatus = pod.body.items[0].status.containerStatuses[0].state + logger.debug("clonePodStatus: %j ", clonePodStatus) + + if (clonePodStatus.hasOwnProperty('terminated') + && clonePodStatus.terminated.hasOwnProperty('containerID')) { + delete clonePodStatus.terminated.containerID + } + logger.info("getClonePodStatus %j succesfull", cloneName) + return JSON.stringify(clonePodStatus, null, 2) + } catch (err) { + throw new KubernateError(err) + } +} +export default getClonePodStatus diff --git a/server/src/kubernetes/getClonePodlogs.js b/server/src/kubernetes/getClonePodlogs.js new file mode 100644 index 000000000..a3f8d129a --- /dev/null +++ b/server/src/kubernetes/getClonePodlogs.js @@ -0,0 +1,34 @@ +import logger from '../config/logger' +import { KubernateError } from '../errors' +import { Client, config } from 'kubernetes-client' + +const getClonePodStatus = async (cloneName) => { + try { + logger.info("getClonePodStatus %j", cloneName) + const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) + + let query = { + "qs":{ + "labelSelector": "job-name="+cloneName + } + } + // Get the pod + const pod = await client.api.v1.namespaces('default').pods.get(query) + // logger.debug("pod: %j ", pod) + + let queryLogs = { + "qs":{ + "tailLines": "15" + } + } + const logs = await client.api.v1.namespaces('default') + .pods(pod.body.items[0].metadata.name).log.get(queryLogs) + let logsArray = logs.body.split('\n') + // logger.debug("logs: %j ", logsArray) + + return JSON.stringify(logsArray, null, 2) + } catch (err) { + throw new KubernateError(err) + } +} +export default getClonePodStatus diff --git a/server/src/kubernetes/removeClone.js b/server/src/kubernetes/removeClone.js new file mode 100644 index 000000000..4bb2a3e8d --- /dev/null +++ b/server/src/kubernetes/removeClone.js @@ -0,0 +1,32 @@ +import logger from '../config/logger' +import { KubernateError } from '../errors' +import { Client, config } from 'kubernetes-client' + +const removeClone = async (cloneName) => { + try { + logger.info("removeClone %j", cloneName) + const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) + + let query = { + "qs":{ + "labelSelector": "job-name="+cloneName + } + } + + // Remove the Job + const removed = await client.apis.batch.v1.namespaces('default').jobs( + cloneName).delete() + logger.debug("Job Removed: %j ", removed) + + // Get the pod + const pod = await client.api.v1.namespaces('default').pods.get(query) + const podRemoved = await client.api.v1.namespaces('default') + .pods(pod.body.items[0].metadata.name).delete() + logger.debug("Pod Removed: %j ", podRemoved) + + logger.info("removeClone %j succesfull", cloneName) + } catch (err) { + throw new KubernateError(err) + } +} +export default removeClone diff --git a/server/src/models/clone.js b/server/src/models/clone.js new file mode 100644 index 000000000..f1b0bc3be --- /dev/null +++ b/server/src/models/clone.js @@ -0,0 +1,47 @@ +import mongoose, { Schema } from 'mongoose' + +import { + UNPUBLISHED, + CloneStateEnum, +} from '../enums/CloneState'; + +import { + BACKTEST, + CloneModeEnum, +} from '../enums/CloneMode'; + +const cloneSchema = new Schema({ + authId: { + type: String, + required: true, + }, + teamId: { + type: String, + required: true, + }, + botId: { + type: String, + required: true, + }, + mode: { + type: String, + enum: CloneModeEnum, + default: BACKTEST, + }, + resumeExecution: Boolean, + beginDatetime: Number, + endDatetime: Number, + waitTime: Number, + state: { + type: String, + enum: CloneStateEnum, + default: UNPUBLISHED, + }, + stateDatetime: Number, + createDatetime: Number, + runAsTeam: Boolean +}) + +const Clone = mongoose.model('Clone', cloneSchema) + +export default Clone diff --git a/server/src/models/index.js b/server/src/models/index.js new file mode 100644 index 000000000..288fb0f47 --- /dev/null +++ b/server/src/models/index.js @@ -0,0 +1,5 @@ +import Clone from './clone' + +export { + Clone +} diff --git a/server/src/schema/index.js b/server/src/schema/index.js new file mode 100644 index 000000000..4155e4999 --- /dev/null +++ b/server/src/schema/index.js @@ -0,0 +1,13 @@ +import { + GraphQLSchema +} from 'graphql' + +import Mutation from './mutations' +import RootQuery from './queries' + +const Schema = new GraphQLSchema({ + query: RootQuery, + mutation: Mutation +}) + +export default Schema diff --git a/server/src/schema/mutations/AddCloneMutation.js b/server/src/schema/mutations/AddCloneMutation.js new file mode 100644 index 000000000..9195fb0d0 --- /dev/null +++ b/server/src/schema/mutations/AddCloneMutation.js @@ -0,0 +1,125 @@ +import { CloneInputType } from '../types/input'; +import { CloneType } from '../types'; +import { Clone } from '../../models'; +import { CloneModeEnum , BACKTEST} from '../../enums/CloneMode'; + +import { + AuthentificationError, + WrongArgumentsError, + OperationsError, + CustomError +} from '../../errors' + +import axios from 'axios'; +import logger from '../../config/logger' +import createKubernetesClone from '../../kubernetes/createClone' +import { isDefined } from '../../config/utils' + +const args = { + clone: {type: CloneInputType } +} + +const resolve = async(parent, { clone }, context) => { + logger.debug('addClone -> Entering Fuction.') + + if (!context.userId) { + throw new AuthentificationError() + } + + if(!Object.values(CloneModeEnum).includes(clone.mode)){ + throw new WrongArgumentsError('The mode selected is not valid.') + } + + // Disable execution dates if mode is not backtest + if((clone.hasOwnProperty('beginDatetime') + || clone.hasOwnProperty('endDatetime')) + && clone.mode !== BACKTEST){ + throw new WrongArgumentsError('Ony Backtest mode allows begin and end date selection.') + } + + let existingClone = await Clone.find( + { + authId: context.userId, + mode: clone.mode + }) + + logger.debug('addClone -> Checking existing clone %j', existingClone) + if(isDefined(existingClone) && existingClone.length > 0){ + throw new CustomError('You can only create one clone per mode. Remove the' + + ' existing clone of type: ' + clone.mode + ' and try again.') + } + + logger.debug('addClone -> Creating a new clone. %j', clone) + + try{ + const userTeam = await axios({ + url: process.env.GATEWAY_ENDPOINT, + method: 'post', + data: { + query: ` + query Teams_FbByTeamMember { + teams_FbByTeamMember { + id + name + slug + fb { + id + name + slug + } + members { + member { + alias + } + } + } + } + `, + }, + headers: { + authorization: context.authorization, + preshared: process.env.OPERATIONS_API_PRESHARED + } + }) + + clone.teamId = userTeam.data.data.teams_FbByTeamMember.slug + clone.botId = userTeam.data.data.teams_FbByTeamMember.fb[0].slug + clone.userLoggedIn = userTeam.data.data.teams_FbByTeamMember.members[0].member.alias + clone.createDatetime = new Date().valueOf() / 1000|0 + + let newClone = new Clone(clone) + + await createKubernetesClone(clone, newClone._id) + + newClone.id = newClone._id + newClone.authId = context.userId + + return new Promise((resolve, reject) => { + newClone.save((err) => { + if (err){ + logger.debug('addClone -> Error: %j', err) + reject('There has been an error storing the clone.') + } + else { + //TODO transaction on database + // saveAuditLog(newClone.id, 'addKey', context) + logger.debug('addClone -> Save clone sucessful.') + resolve(newClone) + } + }) + }) + } catch(error) { + logger.debug('addClone -> Error: %j', error) + throw new OperationsError('There has been an error creating the clone.') + } +} + +const mutation = { + addClone: { + type: CloneType, + args, + resolve + } +} + +export default mutation diff --git a/server/src/schema/mutations/RemoveCloneMutation.js b/server/src/schema/mutations/RemoveCloneMutation.js new file mode 100644 index 000000000..a9e741f63 --- /dev/null +++ b/server/src/schema/mutations/RemoveCloneMutation.js @@ -0,0 +1,54 @@ +import { + GraphQLNonNull, + GraphQLID, + GraphQLString +} from 'graphql' + +import { + AuthentificationError, + OperationsError +} from '../../errors' + +import { Clone } from '../../models' +import logger from '../../config/logger' +import removeKuberneteClone from '../../kubernetes/removeClone' +//import saveAuditLog from './AddAuditLog' + +const args = { + id: {type: new GraphQLNonNull(GraphQLID)} +} + +const resolve = async (parent, { id }, context) => { + logger.debug('removeClone -> Entering Fuction.') + + if (!context.userId) { + throw new AuthentificationError() + } + + await removeKuberneteClone(id) + + var query = { + _id: id, + authId: context.userId + } + + //saveAuditLog(id, 'removeClone', context) + logger.debug('removeClone -> Removing Clone from DB.') + Clone.deleteOne(query, function (err) { + if (err){ + throw new OperationsError(err) + }else{ + return 'Clone Removed' + } + }) +} + +const mutation = { + removeClone: { + type: GraphQLString, + args, + resolve + } +} + +export default mutation diff --git a/server/src/schema/mutations/index.js b/server/src/schema/mutations/index.js new file mode 100644 index 000000000..44bae56f0 --- /dev/null +++ b/server/src/schema/mutations/index.js @@ -0,0 +1,16 @@ +import { + GraphQLObjectType +} from 'graphql' + +import AddCloneMutation from './AddCloneMutation' +import RemoveCloneMutation from './RemoveCloneMutation' + +const Mutation = new GraphQLObjectType({ + name: 'Mutation', + fields: Object.assign( + AddCloneMutation, + RemoveCloneMutation + ) +}) + +export default Mutation diff --git a/server/src/schema/queries/AuditLogsQuery.js b/server/src/schema/queries/AuditLogsQuery.js new file mode 100644 index 000000000..2ff8cfd85 --- /dev/null +++ b/server/src/schema/queries/AuditLogsQuery.js @@ -0,0 +1,40 @@ +import { + GraphQLList, + GraphQLString, + GraphQLNonNull +} from 'graphql' + +import { + AuthentificationError +} from '../../errors' + +import { AuditLogType } from '../types' +import { AuditLog } from '../../models' +import logger from '../../config/logger' + +const args = { + key: { type: new GraphQLNonNull(GraphQLString) } +} + +const resolve = (parent, { key }, context) => { + logger.debug('auditLogs -> Entering Fuction.') + + if (!context.userId) { + throw new AuthentificationError() + } + + return AuditLog.find({ + authId: context.userId, + keyId: key + }).sort({date: -1}).limit(20) +} + +const query = { + auditLogs: { + type: new GraphQLList(AuditLogType), + args, + resolve + } +} + +export default query diff --git a/server/src/schema/queries/ExchangesQuery.js b/server/src/schema/queries/ExchangesQuery.js new file mode 100644 index 000000000..dc7e37355 --- /dev/null +++ b/server/src/schema/queries/ExchangesQuery.js @@ -0,0 +1,23 @@ +import { + GraphQLList +} from 'graphql' +import { ExchangeType } from '../types' +import { Exchange } from '../../models' +import logger from '../../config/logger' + +const args = {} + +const resolve = (parent, args, context) => { + logger.debug('exchanges -> Entering Fuction.') + return Exchange +} + +const query = { + exchanges: { + type: new GraphQLList(ExchangeType), + args, + resolve + } +} + +export default query diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js new file mode 100644 index 000000000..398b4f85d --- /dev/null +++ b/server/src/schema/queries/ListClones.js @@ -0,0 +1,41 @@ +import { + GraphQLList +} from 'graphql' + +import { + AuthentificationError +} from '../../errors' + +import { CloneType } from '../types' +import { Clone } from '../../models' +import logger from '../../config/logger' +import getKuberneteClonePodStatus from '../../kubernetes/getClonePodStatus' +import getKuberneteClonePodLogs from '../../kubernetes/getClonePodLogs' + +const args = {} + +const resolve = async(parent, args, context) => { + logger.debug('List Clones -> Entering Fuction.') + + if (!context.userId) { + throw new AuthentificationError() + } + + let clones = await Clone.find({authId: context.userId}) + + for (var i = 0; i < clones.length; i++) { + clones[i].state = await getKuberneteClonePodStatus(clones[i]._id) + clones[i].lastLogs = await getKuberneteClonePodLogs(clones[i]._id) + } + return clones +} + +const query = { + clones: { + type: new GraphQLList(CloneType), + args, + resolve + } +} + +export default query diff --git a/server/src/schema/queries/index.js b/server/src/schema/queries/index.js new file mode 100644 index 000000000..dac2c4145 --- /dev/null +++ b/server/src/schema/queries/index.js @@ -0,0 +1,14 @@ +import { + GraphQLObjectType +} from 'graphql' + +import ListClones from './ListClones' + +const RootQuery = new GraphQLObjectType({ + name: 'RootQueryType', + fields: Object.assign( + ListClones + ) +}) + +export default RootQuery diff --git a/server/src/schema/types/AuditLogType.js b/server/src/schema/types/AuditLogType.js new file mode 100644 index 000000000..646ffd307 --- /dev/null +++ b/server/src/schema/types/AuditLogType.js @@ -0,0 +1,29 @@ +import { + GraphQLObjectType, + GraphQLID, + GraphQLString, + GraphQLInt +} from 'graphql' + +import { + KeyType +} from './index' + +const AuditLogType = new GraphQLObjectType({ + name: 'AuditLog', + fields: () => ({ + id: {type: GraphQLID}, + authId: {type: GraphQLID}, + action: {type: GraphQLString}, + details: {type: GraphQLString}, + date: {type: GraphQLInt}, + key: { + type: KeyType, + resolve (parent, args) { + return parent.key + } + } + }) +}) + +export default AuditLogType diff --git a/server/src/schema/types/CloneType.js b/server/src/schema/types/CloneType.js new file mode 100644 index 000000000..44082e9be --- /dev/null +++ b/server/src/schema/types/CloneType.js @@ -0,0 +1,28 @@ +import { + GraphQLObjectType, + GraphQLString, + GraphQLInt, + GraphQLBoolean, + GraphQLID +} from 'graphql' + +const CloneType = new GraphQLObjectType({ + name: 'Clone', + fields: () => ({ + id: {type: GraphQLID}, + authId: {type: GraphQLID}, + teamId: {type: GraphQLString}, + botId: {type: GraphQLString}, + mode: {type: GraphQLString}, + resumeExecution: {type: GraphQLBoolean}, + beginDatetime: {type: GraphQLInt}, + endDatetime: {type: GraphQLInt}, + waitTime: {type: GraphQLInt}, + state: {type: GraphQLString}, + stateDatetime: {type: GraphQLInt}, + createDatetime: {type: GraphQLInt}, + lastLogs: {type: GraphQLString}, + runAsTeam: {type: GraphQLBoolean} + }) +}) +export default CloneType diff --git a/server/src/schema/types/ExchangeType.js b/server/src/schema/types/ExchangeType.js new file mode 100644 index 000000000..ddafd5a16 --- /dev/null +++ b/server/src/schema/types/ExchangeType.js @@ -0,0 +1,16 @@ +import { + GraphQLObjectType, + GraphQLID, + GraphQLString +} from 'graphql' + +const ExchangeType = new GraphQLObjectType({ + name: 'Exchange', + fields: () => ({ + id: {type: GraphQLID}, + name: {type: GraphQLString}, + description: {type: GraphQLString} + }) +}) + +export default ExchangeType diff --git a/server/src/schema/types/SignedTransactionType.js b/server/src/schema/types/SignedTransactionType.js new file mode 100644 index 000000000..ddee4a918 --- /dev/null +++ b/server/src/schema/types/SignedTransactionType.js @@ -0,0 +1,15 @@ +import { + GraphQLObjectType, + GraphQLString +} from 'graphql' + +const SignedTransactionType = new GraphQLObjectType({ + name: 'SignedTransaction', + fields: () => ({ + key: {type: GraphQLString}, + signature: {type: GraphQLString}, + date: {type: GraphQLString} + }) +}) + +export default SignedTransactionType diff --git a/server/src/schema/types/index.js b/server/src/schema/types/index.js new file mode 100644 index 000000000..4c2b8e040 --- /dev/null +++ b/server/src/schema/types/index.js @@ -0,0 +1,5 @@ +import CloneType from './CloneType' + +export { + CloneType +} diff --git a/server/src/schema/types/input/Clone.js b/server/src/schema/types/input/Clone.js new file mode 100644 index 000000000..62f626625 --- /dev/null +++ b/server/src/schema/types/input/Clone.js @@ -0,0 +1,24 @@ +import { + GraphQLString, + GraphQLInt, + GraphQLInputObjectType, + GraphQLBoolean, + GraphQLNonNull +} from 'graphql'; + +const Type = new GraphQLInputObjectType({ + name: 'CloneInput', + description: 'Payload for clone input', + fields: () => ({ + teamId: { type: new GraphQLNonNull(GraphQLString) }, + botId: { type: new GraphQLNonNull(GraphQLString) }, + mode: { type: GraphQLString }, + resumeExecution: { type: GraphQLBoolean }, + beginDatetime: { type: GraphQLInt }, + endDatetime: { type: GraphQLInt }, + waitTime: { type: GraphQLInt }, + runAsTeam: { type: GraphQLBoolean } + }) +}); + +export default Type; diff --git a/server/src/schema/types/input/index.js b/server/src/schema/types/input/index.js new file mode 100644 index 000000000..13c71b313 --- /dev/null +++ b/server/src/schema/types/input/index.js @@ -0,0 +1,5 @@ +import CloneInputType from './Clone'; + +export { + CloneInputType +}; From ac754b697f61c653c823e7b3db82c870f2724a61 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Wed, 26 Dec 2018 19:47:02 -0300 Subject: [PATCH 02/40] Adding server folder files --- server/.babelrc | 3 + server/.gitignore | 28 + server/CODE_OF_CONDUCT.md | 46 + server/CONTRIBUTING.md | 45 + server/LICENSE | 42 + server/README.md | 4 + server/package-lock.json | 6363 +++++++++++++++++++++++++++++++++++++ server/package.json | 31 + 8 files changed, 6562 insertions(+) create mode 100644 server/.babelrc create mode 100644 server/.gitignore create mode 100644 server/CODE_OF_CONDUCT.md create mode 100644 server/CONTRIBUTING.md create mode 100644 server/LICENSE create mode 100644 server/README.md create mode 100644 server/package-lock.json create mode 100644 server/package.json diff --git a/server/.babelrc b/server/.babelrc new file mode 100644 index 000000000..f2e312799 --- /dev/null +++ b/server/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["env", "stage-2"] +} diff --git a/server/.gitignore b/server/.gitignore new file mode 100644 index 000000000..cd5f56af4 --- /dev/null +++ b/server/.gitignore @@ -0,0 +1,28 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# dependencies +/node_modules + +# testing +/coverage + +# production +/build + +/logs + +# misc +.env +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +#Docker +Dockerfile +docker-compose.prod.yml diff --git a/server/CODE_OF_CONDUCT.md b/server/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..c71b685b4 --- /dev/null +++ b/server/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/server/CONTRIBUTING.md b/server/CONTRIBUTING.md new file mode 100644 index 000000000..311653120 --- /dev/null +++ b/server/CONTRIBUTING.md @@ -0,0 +1,45 @@ +# Contributing + +We are thrilled you are interested in contributing to this repository. Your help may be essential to the project's success and we want you in! + +Advanced Algos LTD is a startup, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. + +Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regards. + +In any case, contributors agree to provide an express grant of patent rights for their contributions. Submitting Pull Requests to this repository represents an express agreement with the terms of our Balanced Contributor Intellectual Property Agreement. This agreement is a direct implementation of GitHub's [Balanced Employee Intellectual Property Agreement 1.0.1](https://github.com/github/balanced-employee-ip-agreement/blob/master/Balanced_Employee_IP_Agreement.md). + +# Balanced Contributor Intellectual Property Agreement 1.0.1 + +This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Advanced Algos LTD ("Company"). + +**What is this?** This is the Company's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Company. + +**Why is this?** The Company needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Company having the legal rights to the products and services it is providing so that the Company can continue operating and doing business. + +The Company also believes that it's important to be clear on what it doesn't own. The Company doesn't want you looking over your shoulder every time you work on something personal or worrying that the Company will someday seize your open source non-lethal mousetrap simulation software. In other words, the Company isn't interested in appropriating your personal projects. + +**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Company cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Company's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. + +Cool? Then, by submitting your first Pull Request, and as a condition of your contribution, you agree to the following: + +1. **What the Company owns.** The Company owns any IP ("Company IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Company product or service at the time you developed, invented, or created it, (ii) developed for use by the Company, or (iii) developed or promoted with existing Company IP or with the Company's endorsement. You hereby grant and assign, and will grant and assign, to the Company all rights and interests in all Company IP. + + "Company IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. + +2. **What the Company doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Company doesn't own it. In other words, the Company doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. + +3. **Contribution of your IP to Company projects.** If you include your own IP – such as IP you created prior to working for the Company – into a Company product or service, it's still yours, of course, but you grant the Company a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Company would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. + +4. **Your contributions to non-Company projects.** The Company recognizes that you may be engaged in work that requires you to submit IP to entities other than the Company, such as open source projects used by the Company. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Company and so should be run through Legal first. + +5. **Voluntary Works** All Company IP that you are involved with or create as part of your work for the Company is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Company to learn more. + +6. **No conflicts.** You agree that you don't have any outstanding agreements or obligations that conflict with those in this Agreement, and that you won't enter into conflicting agreements in the future. + +7. **IP protection.** The Company might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Company IP or IP under License (together, "All IP"), and, if the Company asks, to provide those records to the Company. You agree to help the Company secure and defend its rights in All IP. For your help the Company will compensate you at a reasonable rate. If the Company is unable to secure your help, you authorize the Company to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. + +8. **Confidentiality.** As an contributor or contractor of the Company, you will have access to sensitive confidential information that is important to the Company's business. You are responsible for keeping this information confidential, including after you end your work for the Company. + + "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Company because it is not publicly known. + + The Company's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Company's Confidential Information for the purpose of performing your contribution and for the benefit of the Company. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file diff --git a/server/LICENSE b/server/LICENSE new file mode 100644 index 000000000..c049df9cb --- /dev/null +++ b/server/LICENSE @@ -0,0 +1,42 @@ +COPYRIGHT NOTICE + +© Copyright 2018 Advanced Algos LTD. + + +LICENSE NOTICE + +Advanced Algos LTD. is a startup, currently at a very early stage. Because certain aspects of +the business are still not clearly defined, we have chosen to --temporarily-- grant a +restrictive license for the use of this repository, until those business aspects are clarified +and a proper open source license can be granted. + +Advanced Algos LTD. is publishing the code of this software for several reasons. However, +it shall not be considered free software yet. Advanced Algos LTD. is a for-profit company +in the crypto space and this module is still proprietary software. + +The reasons for opening up the code of this module at this stage are the following: + + * We believe that transparency is paramount to achieving our goals, so we want everyone + to be able to understand what this module does and how. Opening up the code of this module + allows anyone to take a close look. + + * We welcome contributions from the community. Contributions are regarded as voluntary work. + There may be incentives in place for certain kinds of contributions. Contact us to learn more. + Contributors agree to provide an express grant of patent rights for their contributions. + + +LICENSE WORDING + +Advanced Algos LTD. grants a limited license for the following uses: + +1. CODE REVIEW AND AUDITS. You are granted permission to clone this repository to analyze, + review or audit the code. + +2. COLLABORATING WITH ADVANCED ALGOS LTD. You are granted permission to fork this repository + with the sole purpose of correcting bugs and developing functionality in agreement with + Advanced Algos LTD. By contributing to this repository you explicitely agree to the terms + detailed in CONTRIBUTING.MD. + +PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. + + diff --git a/server/README.md b/server/README.md new file mode 100644 index 000000000..bb4cbecf6 --- /dev/null +++ b/server/README.md @@ -0,0 +1,4 @@ + +## AA Operations Server + +Server side functions support the business rules for the module. diff --git a/server/package-lock.json b/server/package-lock.json new file mode 100644 index 000000000..5edfdc7d8 --- /dev/null +++ b/server/package-lock.json @@ -0,0 +1,6363 @@ +{ + "name": "operations-server", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@kubernetes/client-node": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-0.7.2.tgz", + "integrity": "sha512-lIHRApAhhSfA3muxAv4XTcNVokDfyfZP4NWwWKmK2kFBUNSDfGFmoIuJRKWL2s3aNMjbblwGrQo2YGZvtSo8nw==", + "requires": { + "base-64": "0.1.0", + "bluebird": "3.5.3", + "byline": "5.0.0", + "execa": "1.0.0", + "isomorphic-ws": "4.0.1", + "js-yaml": "3.12.0", + "jsonpath": "1.0.0", + "request": "2.88.0", + "shelljs": "0.8.3", + "tslib": "1.9.3", + "underscore": "1.9.1", + "ws": "6.1.2" + }, + "dependencies": { + "bluebird": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz", + "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==" + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "requires": { + "nice-try": "1.0.5", + "path-key": "2.0.1", + "semver": "5.5.1", + "shebang-command": "1.2.0", + "which": "1.3.1" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "requires": { + "cross-spawn": "6.0.5", + "get-stream": "4.1.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "requires": { + "pump": "3.0.0" + } + } + } + }, + "@sindresorhus/is": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", + "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==" + }, + "JSONSelect": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/JSONSelect/-/JSONSelect-0.4.0.tgz", + "integrity": "sha1-oI7cxn6z/L6Z7WMIVTRKDPKCu40=" + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", + "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", + "requires": { + "mime-types": "2.1.20", + "negotiator": "0.6.1" + } + }, + "aggregate-error": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-1.0.0.tgz", + "integrity": "sha1-iINE2tAiCnLjr1CQYRf0h3GSX6w=", + "requires": { + "clean-stack": "1.3.0", + "indent-string": "3.2.0" + } + }, + "ajv": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.1.tgz", + "integrity": "sha512-ZoJjft5B+EJBjUyu9C9Hc0OZyPZSSlOF+plzouTrg6UlA8f+e/n8NIgBFG/9tppJtpPWfthHakK7juJdNDODww==", + "requires": { + "fast-deep-equal": "2.0.1", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.4.1", + "uri-js": "4.2.2" + } + }, + "ansi-align": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", + "dev": true, + "requires": { + "string-width": "2.1.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "anymatch": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", + "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", + "dev": true, + "optional": true, + "requires": { + "micromatch": "2.3.11", + "normalize-path": "2.1.1" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "1.0.3" + } + }, + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "optional": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true, + "optional": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "requires": { + "safer-buffer": "2.1.2" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, + "async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "requires": { + "lodash": "4.17.10" + } + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", + "dev": true + }, + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + }, + "axios": { + "version": "0.18.0", + "resolved": "http://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", + "requires": { + "follow-redirects": "1.5.9", + "is-buffer": "1.1.6" + } + }, + "babel-cli": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz", + "integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=", + "dev": true, + "requires": { + "babel-core": "6.26.3", + "babel-polyfill": "6.26.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "chokidar": "1.7.0", + "commander": "2.19.0", + "convert-source-map": "1.6.0", + "fs-readdir-recursive": "1.1.0", + "glob": "7.1.3", + "lodash": "4.17.10", + "output-file-sync": "1.1.2", + "path-is-absolute": "1.0.1", + "slash": "1.0.0", + "source-map": "0.5.7", + "v8flags": "2.1.1" + } + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-generator": "6.26.1", + "babel-helpers": "6.24.1", + "babel-messages": "6.23.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "convert-source-map": "1.6.0", + "debug": "2.6.9", + "json5": "0.5.1", + "lodash": "4.17.10", + "minimatch": "3.0.4", + "path-is-absolute": "1.0.1", + "private": "0.1.8", + "slash": "1.0.0", + "source-map": "0.5.7" + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.10", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "babel-helper-bindify-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", + "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", + "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-call-delegate": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", + "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-define-map": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", + "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-helper-explode-assignable-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", + "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-explode-class": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", + "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", + "dev": true, + "requires": { + "babel-helper-bindify-decorators": "6.24.1", + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", + "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "dev": true, + "requires": { + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-get-function-arity": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", + "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-hoist-variables": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", + "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-optimise-call-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", + "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-regex": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", + "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", + "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-replace-supers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", + "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", + "dev": true, + "requires": { + "babel-helper-optimise-call-expression": "6.24.1", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", + "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", + "dev": true + }, + "babel-plugin-syntax-async-generators": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", + "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", + "dev": true + }, + "babel-plugin-syntax-class-properties": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", + "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", + "dev": true + }, + "babel-plugin-syntax-decorators": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", + "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=", + "dev": true + }, + "babel-plugin-syntax-dynamic-import": { + "version": "6.18.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", + "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=", + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", + "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", + "dev": true + }, + "babel-plugin-transform-async-generator-functions": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", + "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "6.24.1", + "babel-plugin-syntax-async-generators": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", + "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "6.24.1", + "babel-plugin-syntax-async-functions": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-class-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", + "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-plugin-syntax-class-properties": "6.13.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", + "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", + "dev": true, + "requires": { + "babel-helper-explode-class": "6.24.1", + "babel-plugin-syntax-decorators": "6.13.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-arrow-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", + "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoped-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", + "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-plugin-transform-es2015-classes": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", + "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", + "dev": true, + "requires": { + "babel-helper-define-map": "6.26.0", + "babel-helper-function-name": "6.24.1", + "babel-helper-optimise-call-expression": "6.24.1", + "babel-helper-replace-supers": "6.24.1", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-computed-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", + "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", + "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-duplicate-keys": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", + "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-for-of": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", + "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", + "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", + "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-amd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", + "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-systemjs": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", + "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-umd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", + "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-amd": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-object-super": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", + "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", + "dev": true, + "requires": { + "babel-helper-replace-supers": "6.24.1", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", + "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", + "dev": true, + "requires": { + "babel-helper-call-delegate": "6.24.1", + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-shorthand-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", + "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", + "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", + "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-template-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", + "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-typeof-symbol": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", + "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", + "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "regexpu-core": "2.0.0" + } + }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", + "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", + "babel-plugin-syntax-exponentiation-operator": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-object-rest-spread": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", + "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", + "dev": true, + "requires": { + "babel-plugin-syntax-object-rest-spread": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-regenerator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", + "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", + "dev": true, + "requires": { + "regenerator-transform": "0.10.1" + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "core-js": "2.5.7", + "regenerator-runtime": "0.10.5" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", + "dev": true + } + } + }, + "babel-preset-env": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.7.0.tgz", + "integrity": "sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg==", + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "6.22.0", + "babel-plugin-syntax-trailing-function-commas": "6.22.0", + "babel-plugin-transform-async-to-generator": "6.24.1", + "babel-plugin-transform-es2015-arrow-functions": "6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", + "babel-plugin-transform-es2015-block-scoping": "6.26.0", + "babel-plugin-transform-es2015-classes": "6.24.1", + "babel-plugin-transform-es2015-computed-properties": "6.24.1", + "babel-plugin-transform-es2015-destructuring": "6.23.0", + "babel-plugin-transform-es2015-duplicate-keys": "6.24.1", + "babel-plugin-transform-es2015-for-of": "6.23.0", + "babel-plugin-transform-es2015-function-name": "6.24.1", + "babel-plugin-transform-es2015-literals": "6.22.0", + "babel-plugin-transform-es2015-modules-amd": "6.24.1", + "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", + "babel-plugin-transform-es2015-modules-systemjs": "6.24.1", + "babel-plugin-transform-es2015-modules-umd": "6.24.1", + "babel-plugin-transform-es2015-object-super": "6.24.1", + "babel-plugin-transform-es2015-parameters": "6.24.1", + "babel-plugin-transform-es2015-shorthand-properties": "6.24.1", + "babel-plugin-transform-es2015-spread": "6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "6.24.1", + "babel-plugin-transform-es2015-template-literals": "6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", + "babel-plugin-transform-es2015-unicode-regex": "6.24.1", + "babel-plugin-transform-exponentiation-operator": "6.24.1", + "babel-plugin-transform-regenerator": "6.26.0", + "browserslist": "3.2.8", + "invariant": "2.2.4", + "semver": "5.5.1" + } + }, + "babel-preset-stage-2": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", + "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", + "dev": true, + "requires": { + "babel-plugin-syntax-dynamic-import": "6.18.0", + "babel-plugin-transform-class-properties": "6.24.1", + "babel-plugin-transform-decorators": "6.24.1", + "babel-preset-stage-3": "6.24.1" + } + }, + "babel-preset-stage-3": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", + "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", + "dev": true, + "requires": { + "babel-plugin-syntax-trailing-function-commas": "6.22.0", + "babel-plugin-transform-async-generator-functions": "6.24.1", + "babel-plugin-transform-async-to-generator": "6.24.1", + "babel-plugin-transform-exponentiation-operator": "6.24.1", + "babel-plugin-transform-object-rest-spread": "6.26.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "6.26.3", + "babel-runtime": "6.26.0", + "core-js": "2.5.7", + "home-or-tmp": "2.0.0", + "lodash": "4.17.10", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.7", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.10" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.4", + "lodash": "4.17.10" + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.10", + "to-fast-properties": "1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.1", + "pascalcase": "0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "base-64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", + "integrity": "sha1-eAqZyE59YAJgNhURxId2E78k9rs=" + }, + "base64url": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", + "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "requires": { + "tweetnacl": "0.14.5" + } + }, + "binary-extensions": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.12.0.tgz", + "integrity": "sha512-DYWGk01lDcxeS/K9IHPGWfT8PsJmbXRtRd2Sx72Tnb8pcYZQFF1oSDb8hJtS1vhp212q1Rzi5dUf9+nq0o9UIg==", + "dev": true + }, + "bluebird": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" + }, + "body-parser": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz", + "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", + "requires": { + "bytes": "3.0.0", + "content-type": "1.0.4", + "debug": "2.6.9", + "depd": "1.1.2", + "http-errors": "1.6.3", + "iconv-lite": "0.4.19", + "on-finished": "2.3.0", + "qs": "6.5.1", + "raw-body": "2.3.2", + "type-is": "1.6.16" + } + }, + "boxen": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", + "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", + "dev": true, + "requires": { + "ansi-align": "2.0.0", + "camelcase": "4.1.0", + "chalk": "2.4.1", + "cli-boxes": "1.0.0", + "string-width": "2.1.1", + "term-size": "1.2.0", + "widest-line": "2.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.3" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.5.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "optional": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.3" + } + }, + "browserslist": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz", + "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", + "dev": true, + "requires": { + "caniuse-lite": "1.0.30000902", + "electron-to-chromium": "1.3.82" + } + }, + "bson": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/bson/-/bson-1.0.9.tgz", + "integrity": "sha512-IQX9/h7WdMBIW/q/++tGd+emQr0XMdeZ6icnT/74Xk9fnabWn+gZgpE+9V+gujL3hhJOoNrnDVY7tWdzc7NUTg==" + }, + "byline": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/byline/-/byline-5.0.0.tgz", + "integrity": "sha1-dBxSFkaOrcRXsDQQEYrXfejB3bE=" + }, + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.0", + "to-object-path": "0.3.0", + "union-value": "1.0.0", + "unset-value": "1.0.0" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "cacheable-request": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", + "integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=", + "requires": { + "clone-response": "1.0.2", + "get-stream": "3.0.0", + "http-cache-semantics": "3.8.1", + "keyv": "3.0.0", + "lowercase-keys": "1.0.0", + "normalize-url": "2.0.1", + "responselike": "1.0.2" + }, + "dependencies": { + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=" + } + } + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30000902", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000902.tgz", + "integrity": "sha512-EZG6qrRHkW715hOFjOrshH2JygbLfhaC8NjjkE5EdGJZhCYbtnJMaRdicB+2AP8xKX3QzW9g3mkDUTHUoBG5rQ==", + "dev": true + }, + "capture-stack-trace": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", + "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "chalk": { + "version": "1.1.3", + "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "chokidar": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", + "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", + "dev": true, + "optional": true, + "requires": { + "anymatch": "1.3.2", + "async-each": "1.0.1", + "fsevents": "1.2.4", + "glob-parent": "2.0.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "2.0.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.2.1" + } + }, + "ci-info": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", + "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", + "dev": true + }, + "cjson": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/cjson/-/cjson-0.2.1.tgz", + "integrity": "sha1-c82KrWXZ4VBfmvF0TTt5wVJ2gqU=" + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "clean-stack": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-1.3.0.tgz", + "integrity": "sha1-noIVAa6XmYbEax1m0tQy2y/UrjE=" + }, + "cli-boxes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", + "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", + "dev": true + }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "requires": { + "mimic-response": "1.0.1" + } + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "1.0.0", + "object-visit": "1.0.1" + } + }, + "color": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz", + "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==", + "requires": { + "color-convert": "1.9.3", + "color-string": "1.5.3" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "color-string": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", + "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", + "requires": { + "color-name": "1.1.3", + "simple-swizzle": "0.2.2" + } + }, + "colornames": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz", + "integrity": "sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y=" + }, + "colors": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.2.tgz", + "integrity": "sha512-rhP0JSBGYvpcNQj4s5AdShMeE5ahMop96cTeDl/v9qQQm2fYClE2QXZRi8wLzc+GmXSxdIqqbOIAhyObEXDbfQ==" + }, + "colorspace": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.1.tgz", + "integrity": "sha512-pI3btWyiuz7Ken0BWh9Elzsmv2bM9AhA7psXib4anUXy/orfZ/E0MbQwhSOG/9L8hLlalqrU0UhOuqxW1YjmVw==", + "requires": { + "color": "3.0.0", + "text-hex": "1.0.0" + } + }, + "combined-stream": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "requires": { + "delayed-stream": "1.0.0" + } + }, + "commander": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", + "dev": true + }, + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "configstore": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.2.tgz", + "integrity": "sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==", + "dev": true, + "requires": { + "dot-prop": "4.2.0", + "graceful-fs": "4.1.11", + "make-dir": "1.3.0", + "unique-string": "1.0.0", + "write-file-atomic": "2.3.0", + "xdg-basedir": "3.0.0" + } + }, + "content-disposition": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", + "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "convert-source-map": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "cookie": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", + "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "core-js": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "cors": { + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.4.tgz", + "integrity": "sha1-K9OB8usgECAQXNUOpZ2mMJBpRoY=", + "requires": { + "object-assign": "4.1.1", + "vary": "1.1.2" + } + }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "dev": true, + "requires": { + "capture-stack-trace": "1.0.1" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.0.2", + "shebang-command": "1.2.0", + "which": "1.3.1" + } + }, + "crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", + "dev": true + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "requires": { + "mimic-response": "1.0.1" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" + }, + "deepmerge": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", + "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==" + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "1.0.2", + "isobject": "3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "diagnostics": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.1.1.tgz", + "integrity": "sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ==", + "requires": { + "colorspace": "1.1.1", + "enabled": "1.0.2", + "kuler": "1.0.0" + } + }, + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "dev": true, + "requires": { + "is-obj": "1.0.1" + } + }, + "dotenv": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.0.0.tgz", + "integrity": "sha512-FlWbnhgjtwD+uNLUGHbMykMOYQaTivdHEmYwAKFjn6GKe/CqY0fNae93ZHTd20snh9ZLr8mTzIL9m0APQ1pjQg==" + }, + "duplexer": { + "version": "0.1.1", + "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "dev": true + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" + }, + "ebnf-parser": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/ebnf-parser/-/ebnf-parser-0.1.10.tgz", + "integrity": "sha1-zR9rpHfFY4xAyX7ZtXLbW6tdgzE=" + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "requires": { + "jsbn": "0.1.1", + "safer-buffer": "2.1.2" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "electron-to-chromium": { + "version": "1.3.82", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.82.tgz", + "integrity": "sha512-NI4nB2IWGcU4JVT1AE8kBb/dFor4zjLHMLsOROPahppeHrR0FG5uslxMmkp/thO1MvPjM2xhlKoY29/I60s0ew==", + "dev": true + }, + "enabled": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", + "integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", + "requires": { + "env-variable": "0.0.4" + } + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "requires": { + "once": "1.4.0" + } + }, + "env-variable": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.4.tgz", + "integrity": "sha512-+jpGxSWG4vr6gVxUHOc4p+ilPnql7NzZxOZBxNldsKGjCF+97df3CbuX7XMaDa5oAVkKQj4rKp38rYdC4VcpDg==" + }, + "es6-promise": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.5.tgz", + "integrity": "sha512-n6wvpdE43VFtJq+lUDYDBFUwV8TZbuGXLV4D6wKafg13ldznKsyEvatubnmUe31zcvelSzOHF+XbaT+Bl9ObDg==" + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-0.0.21.tgz", + "integrity": "sha1-U9ZSz6EDA4gnlFilJmxf/HCcY8M=", + "requires": { + "esprima": "1.0.4", + "estraverse": "0.0.4", + "source-map": "0.5.7" + }, + "dependencies": { + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" + } + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "estraverse": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-0.0.4.tgz", + "integrity": "sha1-AaCTLf7ldGhKWYr1pnw7+bZCjbI=" + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "event-stream": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.6.tgz", + "integrity": "sha512-dGXNg4F/FgVzlApjzItL+7naHutA3fDqbV/zAZqDDlXTjiMnQmZKu+prImWKszeBM5UQeGvAl3u1wBiKeDh61g==", + "dev": true, + "requires": { + "duplexer": "0.1.1", + "flatmap-stream": "0.1.1", + "from": "0.1.7", + "map-stream": "0.0.7", + "pause-stream": "0.0.11", + "split": "1.0.1", + "stream-combiner": "0.2.2", + "through": "2.3.8" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "optional": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "optional": true, + "requires": { + "fill-range": "2.2.4" + } + }, + "express": { + "version": "4.16.3", + "resolved": "http://registry.npmjs.org/express/-/express-4.16.3.tgz", + "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", + "requires": { + "accepts": "1.3.5", + "array-flatten": "1.1.1", + "body-parser": "1.18.2", + "content-disposition": "0.5.2", + "content-type": "1.0.4", + "cookie": "0.3.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "1.1.2", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "etag": "1.8.1", + "finalhandler": "1.1.1", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "1.1.2", + "on-finished": "2.3.0", + "parseurl": "1.3.2", + "path-to-regexp": "0.1.7", + "proxy-addr": "2.0.4", + "qs": "6.5.1", + "range-parser": "1.2.0", + "safe-buffer": "5.1.1", + "send": "0.16.2", + "serve-static": "1.13.2", + "setprototypeof": "1.1.0", + "statuses": "1.4.0", + "type-is": "1.6.16", + "utils-merge": "1.0.1", + "vary": "1.1.2" + } + }, + "express-graphql": { + "version": "0.6.12", + "resolved": "https://registry.npmjs.org/express-graphql/-/express-graphql-0.6.12.tgz", + "integrity": "sha512-ouLWV0hRw4hnaLtXzzwhdC79ewxKbY2PRvm05mPc/zOH5W5WVCHDQ1SmNxEPBQdUeeSNh29aIqW9zEQkA3kMuA==", + "requires": { + "accepts": "1.3.5", + "content-type": "1.0.4", + "http-errors": "1.6.3", + "raw-body": "2.3.2" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "optional": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" + }, + "fast-safe-stringify": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.6.tgz", + "integrity": "sha512-q8BZ89jjc+mz08rSxROs8VsrBBcn1SIw1kq9NjolL509tkABRk9io01RAjSaEv1Xb2uFLt8VtRiZbGp5H8iDtg==" + }, + "fecha": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", + "integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg==" + }, + "filename-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "dev": true, + "optional": true + }, + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "optional": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "3.1.1", + "repeat-element": "1.1.3", + "repeat-string": "1.6.1" + } + }, + "finalhandler": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", + "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "on-finished": "2.3.0", + "parseurl": "1.3.2", + "statuses": "1.4.0", + "unpipe": "1.0.0" + } + }, + "flatmap-stream": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.1.tgz", + "integrity": "sha512-lAq4tLbm3sidmdCN8G3ExaxH7cUCtP5mgDvrYowsx84dcYkJJ4I28N7gkxA6+YlSXzaGLJYIDEi9WGfXzMiXdw==", + "dev": true + }, + "fluent-openapi": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fluent-openapi/-/fluent-openapi-1.0.0.tgz", + "integrity": "sha512-Q0drDENt875UTMpWY5nAJi7/0BaqQ0riXVNnhAwaDlpcXFLGos/jW/IuSGLdoStw10BZ3RpkJghG2gkR3XASPA==", + "requires": { + "lodash.merge": "4.6.1" + } + }, + "follow-redirects": { + "version": "1.5.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.9.tgz", + "integrity": "sha512-Bh65EZI/RU8nx0wbYF9shkFZlqLP+6WT/5FnA3cE/djNSuKNHJEinGGZgu/cQEkeeb2GdFOgenAmn8qaqYke2w==", + "requires": { + "debug": "3.1.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + } + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "for-own": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "dev": true, + "optional": true, + "requires": { + "for-in": "1.0.2" + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.7", + "mime-types": "2.1.20" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "0.2.2" + } + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", + "dev": true + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.6" + } + }, + "fs-readdir-recursive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "fsevents": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", + "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", + "dev": true, + "optional": true, + "requires": { + "nan": "2.11.1", + "node-pre-gyp": "0.10.0" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "2.2.4" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.21", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safer-buffer": "2.1.2" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimatch": "3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "minipass": { + "version": "2.2.4", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.1.1", + "yallist": "3.0.2" + } + }, + "minizlib": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "2.2.4" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "needle": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.9", + "iconv-lite": "0.4.21", + "sax": "1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.2.0", + "nopt": "4.0.1", + "npm-packlist": "1.1.10", + "npmlog": "4.1.2", + "rc": "1.2.7", + "rimraf": "2.6.2", + "semver": "5.5.0", + "tar": "4.4.1" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1.1.1", + "osenv": "0.1.5" + } + }, + "npm-bundled": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.1.10", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.3" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.7", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "0.5.1", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true, + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "dev": true, + "optional": true + }, + "semver": { + "version": "5.5.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "4.4.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chownr": "1.0.1", + "fs-minipass": "1.2.5", + "minipass": "2.2.4", + "minizlib": "1.1.0", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.1", + "yallist": "3.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "3.0.2", + "bundled": true, + "dev": true + } + } + }, + "get-stream": { + "version": "3.0.0", + "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "optional": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "requires": { + "ini": "1.3.5" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "got": { + "version": "6.7.1", + "resolved": "http://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", + "dev": true, + "requires": { + "create-error-class": "3.0.2", + "duplexer3": "0.1.4", + "get-stream": "3.0.0", + "is-redirect": "1.0.0", + "is-retry-allowed": "1.1.0", + "is-stream": "1.1.0", + "lowercase-keys": "1.0.1", + "safe-buffer": "5.1.1", + "timed-out": "4.0.1", + "unzip-response": "2.0.1", + "url-parse-lax": "1.0.0" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "graphql": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.0.0.tgz", + "integrity": "sha512-HGVcnO6B25YZcSt6ZsH6/N+XkYuPA7yMqJmlJ4JWxWlS4Tr8SHI56R1Ocs8Eor7V7joEZPRXPDH8RRdll1w44Q==", + "requires": { + "iterall": "1.2.2" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "requires": { + "ajv": "6.6.1", + "har-schema": "2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbol-support-x": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", + "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==" + }, + "has-to-string-tag-x": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", + "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", + "requires": { + "has-symbol-support-x": "1.4.2" + } + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "http-cache-semantics": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", + "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==" + }, + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "requires": { + "depd": "1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": "1.4.0" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.15.2" + } + }, + "iconv-lite": { + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", + "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" + }, + "ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", + "dev": true + }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "interpret": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=" + }, + "into-stream": { + "version": "3.1.0", + "resolved": "http://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", + "integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=", + "requires": { + "from2": "2.3.0", + "p-is-promise": "1.1.0" + } + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "1.4.0" + } + }, + "ipaddr.js": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", + "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=" + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "1.12.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-ci": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", + "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", + "dev": true, + "requires": { + "ci-info": "1.6.0" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "is-dotfile": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "dev": true, + "optional": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "dev": true, + "optional": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", + "dev": true, + "requires": { + "global-dirs": "0.1.1", + "is-path-inside": "1.0.1" + } + }, + "is-npm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", + "dev": true + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "optional": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, + "is-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", + "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=" + }, + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "requires": { + "path-is-inside": "1.0.2" + } + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "is-posix-bracket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "dev": true, + "optional": true + }, + "is-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "dev": true, + "optional": true + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", + "dev": true + }, + "is-retry-allowed": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=" + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "optional": true, + "requires": { + "isarray": "1.0.0" + } + }, + "isomorphic-ws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", + "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "isurl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", + "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", + "requires": { + "has-to-string-tag-x": "1.4.1", + "is-object": "1.0.1" + } + }, + "iterall": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.2.2.tgz", + "integrity": "sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==" + }, + "jison": { + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/jison/-/jison-0.4.13.tgz", + "integrity": "sha1-kEFwfWIkE2f1iDRTK58ZwsNvrHg=", + "requires": { + "JSONSelect": "0.4.0", + "cjson": "0.2.1", + "ebnf-parser": "0.1.10", + "escodegen": "0.0.21", + "esprima": "1.0.4", + "jison-lex": "0.2.1", + "lex-parser": "0.1.4", + "nomnom": "1.5.2" + }, + "dependencies": { + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" + } + } + }, + "jison-lex": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/jison-lex/-/jison-lex-0.2.1.tgz", + "integrity": "sha1-rEuBXozOUTLrErXfz+jXB7iETf4=", + "requires": { + "lex-parser": "0.1.4", + "nomnom": "1.5.2" + } + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", + "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", + "requires": { + "argparse": "1.0.10", + "esprima": "4.0.1" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" + }, + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "json5": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "jsonpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.0.0.tgz", + "integrity": "sha1-Rc2dTE0NaCXZC9fkD4PxGCsT3Qc=", + "requires": { + "esprima": "1.2.2", + "jison": "0.4.13", + "static-eval": "2.0.0", + "underscore": "1.7.0" + }, + "dependencies": { + "esprima": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.2.2.tgz", + "integrity": "sha1-dqD9Zvz+FU/SkmZ9wmQBl1CxZXs=" + }, + "underscore": { + "version": "1.7.0", + "resolved": "http://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=" + } + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "kareem": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.2.1.tgz", + "integrity": "sha512-xpDFy8OxkFM+vK6pXy6JmH92ibeEFUuDWzas5M9L7MzVmHW3jzwAHxodCPV/BYkf4A31bVDLyonrMfp9RXb/oA==" + }, + "keyv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", + "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", + "requires": { + "json-buffer": "3.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + }, + "kubernetes-client": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/kubernetes-client/-/kubernetes-client-6.5.1.tgz", + "integrity": "sha512-xEumU2rBQNqvP39IfVJbTTubx/Mm35ckNHxTsnA8aV5lo14dP/EsXjBgRVtEubUU58ANjKbJP5C8NQnjfRiMnQ==", + "requires": { + "deepmerge": "2.2.1", + "fluent-openapi": "1.0.0", + "js-yaml": "3.12.0", + "openid-client": "2.4.5", + "qs": "6.6.0", + "request": "2.88.0", + "ws": "6.1.2" + }, + "dependencies": { + "qs": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", + "integrity": "sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==" + } + } + }, + "kuler": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-1.0.0.tgz", + "integrity": "sha512-oyy6pu/yWRjiVfCoJebNUKFL061sNtrs9ejKTbirIwY3oiHmENVCSkHhxDV85Dkm7JYR/czMCBeoM87WilTdSg==", + "requires": { + "colornames": "1.1.1" + } + }, + "latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", + "dev": true, + "requires": { + "package-json": "4.0.1" + } + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "requires": { + "prelude-ls": "1.1.2", + "type-check": "0.3.2" + } + }, + "lex-parser": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/lex-parser/-/lex-parser-0.1.4.tgz", + "integrity": "sha1-ZMTwJfF/1Tv7RXY/rrFvAVp0dVA=" + }, + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + }, + "lodash.assign": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", + "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" + }, + "lodash.clone": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", + "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=" + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "lodash.fill": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/lodash.fill/-/lodash.fill-3.4.0.tgz", + "integrity": "sha1-o8dK5kDQU63w3CB5+HIHiOi/74U=" + }, + "lodash.flatten": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", + "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=" + }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" + }, + "lodash.intersection": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.intersection/-/lodash.intersection-4.4.0.tgz", + "integrity": "sha1-ChG6Yx0OlcI8fy9Mu5ppLtF45wU=" + }, + "lodash.merge": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", + "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==" + }, + "lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=" + }, + "lodash.partialright": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/lodash.partialright/-/lodash.partialright-4.2.1.tgz", + "integrity": "sha1-ATDYDoM2MmTUAHTzKbij56ihzEs=" + }, + "lodash.pick": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", + "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=" + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=" + }, + "logform": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/logform/-/logform-1.10.0.tgz", + "integrity": "sha512-em5ojIhU18fIMOw/333mD+ZLE2fis0EzXl1ZwHx4iQzmpQi6odNiY/t+ITNr33JZhT9/KEaH+UPIipr6a9EjWg==", + "requires": { + "colors": "1.3.2", + "fast-safe-stringify": "2.0.6", + "fecha": "2.3.3", + "ms": "2.1.1", + "triple-beam": "1.3.0" + }, + "dependencies": { + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + } + } + }, + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" + }, + "lru-cache": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz", + "integrity": "sha1-HRdnnAac2l0ECZGgnbwsDbN35V4=", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "1.0.1" + } + }, + "math-random": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", + "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", + "dev": true, + "optional": true + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "optional": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + }, + "mime": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" + }, + "mime-db": { + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" + }, + "mime-types": { + "version": "2.1.20", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", + "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", + "requires": { + "mime-db": "1.36.0" + } + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "dev": true, + "requires": { + "for-in": "1.0.2", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "mongodb": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.1.4.tgz", + "integrity": "sha512-BGUxo4a/p5KtZpOn6+z6iZXTHfDxKDvibHQap9uMJqQouwoszvTIO/QbVZkaSX3Spny0jtTEeHc0FwfpGbtEzA==", + "requires": { + "mongodb-core": "3.1.3", + "safe-buffer": "5.1.2" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "mongodb-core": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/mongodb-core/-/mongodb-core-3.1.3.tgz", + "integrity": "sha512-dISiV3zHGJTwZpg0xDhi9zCqFGMhA5kDPByHlcaEp09NSKfzHJ7XQbqVrL7qhki1U9PZHsmRfbFzco+6b1h2wA==", + "requires": { + "bson": "1.1.0", + "require_optional": "1.0.1", + "safe-buffer": "5.1.2", + "saslprep": "1.0.1" + }, + "dependencies": { + "bson": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.0.tgz", + "integrity": "sha512-9Aeai9TacfNtWXOYarkFJRW2CWo+dRon+fuLZYJmvLV3+MiUp0bEI6IAZfXEIg7/Pl/7IWlLaDnhzTsD81etQA==" + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "mongoose": { + "version": "5.2.12", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.2.12.tgz", + "integrity": "sha512-yfQw4lbci12DvQrnc25DmP/g74vjhus5SaCliP5sbbzIIJPpeU1F3xscb4uPX26ygjPkl/NzppS65rILNv20Bg==", + "requires": { + "async": "2.6.1", + "bson": "1.0.9", + "kareem": "2.2.1", + "lodash.get": "4.4.2", + "mongodb": "3.1.4", + "mongodb-core": "3.1.3", + "mongoose-legacy-pluralize": "1.0.2", + "mpath": "0.5.1", + "mquery": "3.2.0", + "ms": "2.0.0", + "regexp-clone": "0.0.1", + "safe-buffer": "5.1.2", + "sliced": "1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "mongoose-legacy-pluralize": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", + "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==" + }, + "mpath": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.5.1.tgz", + "integrity": "sha512-H8OVQ+QEz82sch4wbODFOz+3YQ61FYz/z3eJ5pIdbMEaUzDqA268Wd+Vt4Paw9TJfvDgVKaayC0gBzMIw2jhsg==" + }, + "mquery": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.0.tgz", + "integrity": "sha512-qPJcdK/yqcbQiKoemAt62Y0BAc0fTEKo1IThodBD+O5meQRJT/2HSe5QpBNwaa4CjskoGrYWsEyjkqgiE0qjhg==", + "requires": { + "bluebird": "3.5.1", + "debug": "3.1.0", + "regexp-clone": "0.0.1", + "safe-buffer": "5.1.2", + "sliced": "1.0.1" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "nan": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", + "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==", + "dev": true, + "optional": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "negotiator": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", + "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + }, + "node-forge": { + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.6.tgz", + "integrity": "sha512-sol30LUpz1jQFBjOKwbjxijiE3b6pjd74YwfD0fJOKPjF+fONKb2Yg8rYgS6+bK6VDl+/wfr4IYpC7jDzLUIfw==" + }, + "node-jose": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/node-jose/-/node-jose-1.1.0.tgz", + "integrity": "sha512-Ux5MDElyiAlBQyOdFcwznK2TWMJbG8ZUfIZ28UtBvTB/VUz5HA/1WJV7s+YCah5NilPhkMkNi6xjnFRI+MQAVg==", + "requires": { + "base64url": "3.0.1", + "es6-promise": "4.2.5", + "lodash.assign": "4.2.0", + "lodash.clone": "4.5.0", + "lodash.fill": "3.4.0", + "lodash.flatten": "4.4.0", + "lodash.intersection": "4.4.0", + "lodash.merge": "4.6.1", + "lodash.omit": "4.5.0", + "lodash.partialright": "4.2.1", + "lodash.pick": "4.4.0", + "lodash.uniq": "4.5.0", + "long": "4.0.0", + "node-forge": "0.7.6", + "uuid": "3.3.2" + } + }, + "nodemon": { + "version": "1.18.5", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-1.18.5.tgz", + "integrity": "sha512-8806dC8dfBlbxQmqNOSEeay/qlbddKvFzxIGNxnPtxUlTtH77xsrC66RnA3M47HCSgMgE5bj+U586o50RowXBg==", + "dev": true, + "requires": { + "chokidar": "2.0.4", + "debug": "3.2.6", + "ignore-by-default": "1.0.1", + "minimatch": "3.0.4", + "pstree.remy": "1.1.0", + "semver": "5.5.1", + "supports-color": "5.5.0", + "touch": "3.1.0", + "undefsafe": "2.0.2", + "update-notifier": "2.5.0" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "3.1.10", + "normalize-path": "2.1.1" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.3", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "chokidar": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", + "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", + "dev": true, + "requires": { + "anymatch": "2.0.0", + "async-each": "1.0.1", + "braces": "2.3.2", + "fsevents": "1.2.4", + "glob-parent": "3.1.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "4.0.0", + "lodash.debounce": "4.0.8", + "normalize-path": "2.1.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.2.1", + "upath": "1.1.0" + } + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "2.1.1" + }, + "dependencies": { + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + } + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + } + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.13", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "nomnom": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.5.2.tgz", + "integrity": "sha1-9DRUSKhTz71cDSYyDyR3qwUm/i8=", + "requires": { + "colors": "0.5.1", + "underscore": "1.1.7" + }, + "dependencies": { + "colors": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/colors/-/colors-0.5.1.tgz", + "integrity": "sha1-fQAj6usVTo7p/Oddy5I9DtFmd3Q=" + }, + "underscore": { + "version": "1.1.7", + "resolved": "http://registry.npmjs.org/underscore/-/underscore-1.1.7.tgz", + "integrity": "sha1-QLq4S60Z0jAJbo1u9ii/8FXYPbA=" + } + } + }, + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "requires": { + "abbrev": "1.1.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "normalize-url": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", + "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", + "requires": { + "prepend-http": "2.0.0", + "query-string": "5.1.1", + "sort-keys": "2.0.0" + }, + "dependencies": { + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" + } + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "requires": { + "path-key": "2.0.1" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + } + } + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "optional": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "oidc-token-hash": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/oidc-token-hash/-/oidc-token-hash-3.0.1.tgz", + "integrity": "sha512-oLnVSEcNZkw01sB5aFR+2iJmW4oyC1PIMJmd3FMBGDuPTy5ZtEuX5WNhKMRarJIMOq8NiOwIB6eJB9AhgYwBTg==", + "requires": { + "base64url": "3.0.1" + } + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1.0.2" + } + }, + "one-time": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-0.0.4.tgz", + "integrity": "sha1-+M33eISCb+Tf+T46nMN7HkSAdC4=" + }, + "openid-client": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-2.4.5.tgz", + "integrity": "sha512-TmQQF7mOiYZsxX4kaQbrN06SXZ31UR5m4ur6sjM+VhaIuF79lqHe7uLmmt/NGVBIQojox6a4eilQ8DQDEQv31Q==", + "requires": { + "base64url": "3.0.1", + "got": "8.3.2", + "lodash": "4.17.11", + "lru-cache": "4.1.5", + "node-jose": "1.1.0", + "oidc-token-hash": "3.0.1", + "p-any": "1.1.0" + }, + "dependencies": { + "got": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", + "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", + "requires": { + "@sindresorhus/is": "0.7.0", + "cacheable-request": "2.1.4", + "decompress-response": "3.3.0", + "duplexer3": "0.1.4", + "get-stream": "3.0.0", + "into-stream": "3.1.0", + "is-retry-allowed": "1.1.0", + "isurl": "1.0.0", + "lowercase-keys": "1.0.1", + "mimic-response": "1.0.1", + "p-cancelable": "0.4.1", + "p-timeout": "2.0.1", + "pify": "3.0.0", + "safe-buffer": "5.1.1", + "timed-out": "4.0.1", + "url-parse-lax": "3.0.0", + "url-to-options": "1.0.1" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "requires": { + "prepend-http": "2.0.0" + } + } + } + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "requires": { + "deep-is": "0.1.3", + "fast-levenshtein": "2.0.6", + "levn": "0.3.0", + "prelude-ls": "1.1.2", + "type-check": "0.3.2", + "wordwrap": "1.0.0" + } + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "output-file-sync": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/output-file-sync/-/output-file-sync-1.1.2.tgz", + "integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "mkdirp": "0.5.1", + "object-assign": "4.1.1" + } + }, + "p-any": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-any/-/p-any-1.1.0.tgz", + "integrity": "sha512-Ef0tVa4CZ5pTAmKn+Cg3w8ABBXh+hHO1aV8281dKOoUHfX+3tjG2EaFcC+aZyagg9b4EYGsHEjz21DnEE8Og2g==", + "requires": { + "p-some": "2.0.1" + } + }, + "p-cancelable": { + "version": "0.4.1", + "resolved": "http://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", + "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==" + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" + }, + "p-is-promise": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=" + }, + "p-some": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-some/-/p-some-2.0.1.tgz", + "integrity": "sha1-Zdh8ixVO289SIdFnd4ttLhUPbwY=", + "requires": { + "aggregate-error": "1.0.0" + } + }, + "p-timeout": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", + "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", + "requires": { + "p-finally": "1.0.0" + } + }, + "package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", + "dev": true, + "requires": { + "got": "6.7.1", + "registry-auth-token": "3.3.2", + "registry-url": "3.1.0", + "semver": "5.5.1" + } + }, + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "dev": true, + "optional": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "parseurl": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", + "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "pause-stream": { + "version": "0.0.11", + "resolved": "http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", + "dev": true, + "requires": { + "through": "2.3.8" + } + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=" + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true, + "optional": true + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" + }, + "proxy-addr": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", + "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", + "requires": { + "forwarded": "0.1.2", + "ipaddr.js": "1.8.0" + } + }, + "ps-tree": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.1.0.tgz", + "integrity": "sha1-tCGyQUDWID8e08dplrRCewjowBQ=", + "dev": true, + "requires": { + "event-stream": "3.3.6" + } + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" + }, + "psl": { + "version": "1.1.29", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" + }, + "pstree.remy": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.0.tgz", + "integrity": "sha512-q5I5vLRMVtdWa8n/3UEzZX7Lfghzrg9eG2IKk2ENLSofKRCXVqMvMUHxCKgXNaqH/8ebhBxrqftHWnyTFweJ5Q==", + "dev": true, + "requires": { + "ps-tree": "1.1.0" + } + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "requires": { + "end-of-stream": "1.4.1", + "once": "1.4.0" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + }, + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" + }, + "query-string": { + "version": "5.1.1", + "resolved": "http://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "requires": { + "decode-uri-component": "0.2.0", + "object-assign": "4.1.1", + "strict-uri-encode": "1.1.0" + } + }, + "randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "dev": true, + "optional": true, + "requires": { + "is-number": "4.0.0", + "kind-of": "6.0.2", + "math-random": "1.0.1" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "optional": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true, + "optional": true + } + } + }, + "range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" + }, + "raw-body": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", + "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", + "requires": { + "bytes": "3.0.0", + "http-errors": "1.6.2", + "iconv-lite": "0.4.19", + "unpipe": "1.0.0" + }, + "dependencies": { + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" + }, + "http-errors": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", + "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", + "requires": { + "depd": "1.1.1", + "inherits": "2.0.3", + "setprototypeof": "1.0.3", + "statuses": "1.4.0" + } + }, + "setprototypeof": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", + "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" + } + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "0.6.0", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "micromatch": "3.1.10", + "readable-stream": "2.3.6" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.3", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.13", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + } + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "requires": { + "resolve": "1.8.1" + } + }, + "regenerate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + }, + "regenerator-transform": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", + "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "private": "0.1.8" + } + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "optional": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" + } + }, + "regexp-clone": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz", + "integrity": "sha1-p8LgmJH9vzj7sQ03b7cwA+aKxYk=" + }, + "regexpu-core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", + "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", + "dev": true, + "requires": { + "regenerate": "1.4.0", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + }, + "registry-auth-token": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", + "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", + "dev": true, + "requires": { + "rc": "1.2.8", + "safe-buffer": "5.1.1" + } + }, + "registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", + "dev": true, + "requires": { + "rc": "1.2.8" + } + }, + "regjsgen": { + "version": "0.2.0", + "resolved": "http://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", + "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "dev": true, + "requires": { + "jsesc": "0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "requires": { + "aws-sign2": "0.7.0", + "aws4": "1.8.0", + "caseless": "0.12.0", + "combined-stream": "1.0.7", + "extend": "3.0.2", + "forever-agent": "0.6.1", + "form-data": "2.3.3", + "har-validator": "5.1.3", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.20", + "oauth-sign": "0.9.0", + "performance-now": "2.1.0", + "qs": "6.5.2", + "safe-buffer": "5.1.2", + "tough-cookie": "2.4.3", + "tunnel-agent": "0.6.0", + "uuid": "3.3.2" + }, + "dependencies": { + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "require_optional": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz", + "integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==", + "requires": { + "resolve-from": "2.0.0", + "semver": "5.5.1" + } + }, + "resolve": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", + "requires": { + "path-parse": "1.0.6" + } + }, + "resolve-from": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", + "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=" + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "requires": { + "lowercase-keys": "1.0.1" + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "0.1.15" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "saslprep": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.1.tgz", + "integrity": "sha512-ntN6SbE3hRqd45PKKadRPgA+xHPWg5lPSj2JWJdJvjTwXDDfkPVtXWvP8jJojvnm+rAsZ2b299C5NwZqq818EA==", + "optional": true + }, + "semver": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", + "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==" + }, + "semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", + "dev": true, + "requires": { + "semver": "5.5.1" + } + }, + "send": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", + "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", + "requires": { + "debug": "2.6.9", + "depd": "1.1.2", + "destroy": "1.0.4", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "etag": "1.8.1", + "fresh": "0.5.2", + "http-errors": "1.6.3", + "mime": "1.4.1", + "ms": "2.0.0", + "on-finished": "2.3.0", + "range-parser": "1.2.0", + "statuses": "1.4.0" + } + }, + "serve-static": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", + "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", + "requires": { + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "parseurl": "1.3.2", + "send": "0.16.2" + } + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" + }, + "shelljs": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.3.tgz", + "integrity": "sha512-fc0BKlAWiLpwZljmOvAOTE/gXawtCoNrP5oaY7KIaQbbyHeQVg01pSEuEGvGh3HEdBU4baCD7wQBwADmM/7f7A==", + "requires": { + "glob": "7.1.3", + "interpret": "1.1.0", + "rechoir": "0.6.2" + } + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", + "requires": { + "is-arrayish": "0.3.2" + } + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "sliced": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", + "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.2", + "use": "3.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "sort-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", + "integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=", + "requires": { + "is-plain-obj": "1.1.0" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + }, + "source-map-resolve": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "dev": true, + "requires": { + "atob": "2.1.2", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true + }, + "split": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "dev": true, + "requires": { + "through": "2.3.8" + } + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "3.0.2" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "http://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "sshpk": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz", + "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==", + "requires": { + "asn1": "0.2.4", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.2", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.2", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "safer-buffer": "2.1.2", + "tweetnacl": "0.14.5" + } + }, + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" + }, + "static-eval": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.0.tgz", + "integrity": "sha512-6flshd3F1Gwm+Ksxq463LtFd1liC77N/PX1FVVc3OzL3hAmo2fwHFbuArkcfi7s9rTNsLEhcRmXGFZhlgy40uw==", + "requires": { + "escodegen": "1.11.0" + }, + "dependencies": { + "escodegen": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", + "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", + "requires": { + "esprima": "3.1.3", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "optionator": "0.8.2", + "source-map": "0.6.1" + } + }, + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=" + }, + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "optional": true + } + } + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + } + } + }, + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" + }, + "stream-combiner": { + "version": "0.2.2", + "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", + "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", + "dev": true, + "requires": { + "duplexer": "0.1.1", + "through": "2.3.8" + } + }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=" + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", + "dev": true, + "requires": { + "execa": "0.7.0" + } + }, + "text-hex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" + }, + "through": { + "version": "2.3.8", + "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "3.0.0", + "repeat-string": "1.6.1" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + } + } + }, + "touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "requires": { + "nopt": "1.0.10" + } + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "requires": { + "psl": "1.1.29", + "punycode": "1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + } + } + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "triple-beam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", + "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" + }, + "tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==" + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "requires": { + "prelude-ls": "1.1.2" + } + }, + "type-is": { + "version": "1.6.16", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", + "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "2.1.20" + } + }, + "undefsafe": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.2.tgz", + "integrity": "sha1-Il9rngM3Zj4Njnz9aG/Cg2zKznY=", + "dev": true, + "requires": { + "debug": "2.6.9" + } + }, + "underscore": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", + "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "dev": true, + "requires": { + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" + } + } + } + }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "dev": true, + "requires": { + "crypto-random-string": "1.0.0" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "0.3.1", + "isobject": "3.0.1" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", + "dev": true + }, + "upath": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.0.tgz", + "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==", + "dev": true + }, + "update-notifier": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", + "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", + "dev": true, + "requires": { + "boxen": "1.3.0", + "chalk": "2.4.1", + "configstore": "3.1.2", + "import-lazy": "2.1.0", + "is-ci": "1.2.1", + "is-installed-globally": "0.1.0", + "is-npm": "1.0.0", + "latest-version": "3.1.0", + "semver-diff": "2.1.0", + "xdg-basedir": "3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.3" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.5.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "requires": { + "punycode": "2.1.1" + } + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "1.0.4" + } + }, + "url-to-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", + "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=" + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "user-home": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", + "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "v8flags": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", + "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", + "dev": true, + "requires": { + "user-home": "1.1.1" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "requires": { + "isexe": "2.0.0" + } + }, + "widest-line": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz", + "integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==", + "dev": true, + "requires": { + "string-width": "2.1.1" + } + }, + "winston": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.1.0.tgz", + "integrity": "sha512-FsQfEE+8YIEeuZEYhHDk5cILo1HOcWkGwvoidLrDgPog0r4bser1lEIOco2dN9zpDJ1M88hfDgZvxe5z4xNcwg==", + "requires": { + "async": "2.6.1", + "diagnostics": "1.1.1", + "is-stream": "1.1.0", + "logform": "1.10.0", + "one-time": "0.0.4", + "readable-stream": "2.3.6", + "stack-trace": "0.0.10", + "triple-beam": "1.3.0", + "winston-transport": "4.2.0" + } + }, + "winston-transport": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.2.0.tgz", + "integrity": "sha512-0R1bvFqxSlK/ZKTH86nymOuKv/cT1PQBMuDdA7k7f0S9fM44dNH6bXnuxwXPrN8lefJgtZq08BKdyZ0DZIy/rg==", + "requires": { + "readable-stream": "2.3.6", + "triple-beam": "1.3.0" + } + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" + } + }, + "ws": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz", + "integrity": "sha512-rfUqzvz0WxmSXtJpPMX2EeASXabOrSMk1ruMOV3JBTBjo4ac2lDjGGsbQSyxj8Odhw5fBib8ZKEjDNvgouNKYw==", + "requires": { + "async-limiter": "1.0.0" + } + }, + "xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" + } + } +} diff --git a/server/package.json b/server/package.json new file mode 100644 index 000000000..cd56dd112 --- /dev/null +++ b/server/package.json @@ -0,0 +1,31 @@ +{ + "name": "operations-server", + "version": "1.0.0", + "description": "Advanced Algos Operations backend API", + "main": "src/index.js", + "scripts": { + "start": "nodemon --exec babel-node --presets env,stage-2 src/index.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "babel-cli": "^6.26.0", + "babel-preset-env": "^1.7.0", + "babel-preset-stage-2": "^6.24.1", + "nodemon": "^1.18.4" + }, + "dependencies": { + "@kubernetes/client-node": "^0.7.2", + "axios": "^0.18.0", + "cors": "^2.8.4", + "dotenv": "^6.0.0", + "express": "^4.16.3", + "express-graphql": "^0.6.12", + "graphql": "^14.0.0", + "kubernetes-client": "^6.5.1", + "lodash": "^4.17.10", + "mongoose": "^5.2.12", + "winston": "^3.1.0" + } +} From e81a67631b277eff74f73aa0d9cb52882df54da3 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Thu, 27 Dec 2018 10:28:56 -0300 Subject: [PATCH 03/40] Changing file name --- server/src/kubernetes/{getClonePodlogs.js => getClonePodLog.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename server/src/kubernetes/{getClonePodlogs.js => getClonePodLog.js} (100%) diff --git a/server/src/kubernetes/getClonePodlogs.js b/server/src/kubernetes/getClonePodLog.js similarity index 100% rename from server/src/kubernetes/getClonePodlogs.js rename to server/src/kubernetes/getClonePodLog.js From 0622a85a8f0be82ecd6dcc9d523964ff2797a6e1 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Thu, 27 Dec 2018 10:29:10 -0300 Subject: [PATCH 04/40] Uppercase filename --- server/src/kubernetes/{getClonePodLog.js => getClonePodLogs.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename server/src/kubernetes/{getClonePodLog.js => getClonePodLogs.js} (100%) diff --git a/server/src/kubernetes/getClonePodLog.js b/server/src/kubernetes/getClonePodLogs.js similarity index 100% rename from server/src/kubernetes/getClonePodLog.js rename to server/src/kubernetes/getClonePodLogs.js From f942581f5819a7fad65442f8f8c3d31c64870063 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Thu, 24 Jan 2019 10:05:31 -0300 Subject: [PATCH 05/40] Realease candidate update - Rename to superalgos - Improved version of listing bots - History bots - Create new bots --- .gitignore | 0 CODE_OF_CONDUCT.md | 46 ------- CONTRIBUTING.md | 45 ------ LICENSE | 42 ------ client/CODE_OF_CONDUCT.md | 2 +- client/CONTRIBUTING.md | 34 ++--- client/LICENSE | 31 ++--- client/package.json | 2 +- client/src/GraphQL/Calls/clones.js | 10 ++ client/src/GraphQL/Fragments/clone.js | 8 ++ client/src/index.js | 2 + client/src/views/Clone/Add/index.js | 4 +- client/src/views/Clone/History/index.js | 130 ++++++++++++++++++ client/src/views/Clone/List/ListClones.js | 118 ++++++++++------ client/src/views/Clone/List/index.js | 16 +-- client/src/views/Clone/List/styles.js | 31 +++-- client/src/views/History/AuditLogList.js | 87 ------------ client/src/views/Home.js | 2 +- package-lock.json | 3 - server/CODE_OF_CONDUCT.md | 2 +- server/CONTRIBUTING.md | 34 ++--- server/LICENSE | 31 ++--- server/package.json | 2 +- server/src/config/envConfig.js | 2 +- server/src/config/utils.js | 4 + server/src/kubernetes/createClone.js | 10 +- server/src/models/clone.js | 11 +- server/src/platform/downloadBlob.js | 17 +++ server/src/platform/fileStorageReader.js | 98 +++++++++++++ .../src/platform/platformExecutionContext.js | 98 +++++++++++++ .../src/schema/mutations/AddCloneMutation.js | 12 +- .../schema/mutations/RemoveCloneMutation.js | 12 +- .../mutations/UpdateExecutionSummary.js | 71 ++++++++++ server/src/schema/mutations/index.js | 4 +- server/src/schema/queries/AuditLogsQuery.js | 40 ------ server/src/schema/queries/ExchangesQuery.js | 23 ---- server/src/schema/queries/HistoryClones.js | 40 ++++++ server/src/schema/queries/ListClones.js | 16 ++- server/src/schema/queries/index.js | 4 +- server/src/schema/types/CloneType.js | 13 +- server/src/schema/types/input/index.js | 2 +- 41 files changed, 705 insertions(+), 454 deletions(-) delete mode 100644 .gitignore delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 LICENSE create mode 100644 client/src/views/Clone/History/index.js delete mode 100644 client/src/views/History/AuditLogList.js delete mode 100644 package-lock.json create mode 100644 server/src/platform/downloadBlob.js create mode 100644 server/src/platform/fileStorageReader.js create mode 100644 server/src/platform/platformExecutionContext.js create mode 100644 server/src/schema/mutations/UpdateExecutionSummary.js delete mode 100644 server/src/schema/queries/AuditLogsQuery.js delete mode 100644 server/src/schema/queries/ExchangesQuery.js create mode 100644 server/src/schema/queries/HistoryClones.js diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index c71b685b4..000000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 311653120..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,45 +0,0 @@ -# Contributing - -We are thrilled you are interested in contributing to this repository. Your help may be essential to the project's success and we want you in! - -Advanced Algos LTD is a startup, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. - -Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regards. - -In any case, contributors agree to provide an express grant of patent rights for their contributions. Submitting Pull Requests to this repository represents an express agreement with the terms of our Balanced Contributor Intellectual Property Agreement. This agreement is a direct implementation of GitHub's [Balanced Employee Intellectual Property Agreement 1.0.1](https://github.com/github/balanced-employee-ip-agreement/blob/master/Balanced_Employee_IP_Agreement.md). - -# Balanced Contributor Intellectual Property Agreement 1.0.1 - -This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Advanced Algos LTD ("Company"). - -**What is this?** This is the Company's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Company. - -**Why is this?** The Company needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Company having the legal rights to the products and services it is providing so that the Company can continue operating and doing business. - -The Company also believes that it's important to be clear on what it doesn't own. The Company doesn't want you looking over your shoulder every time you work on something personal or worrying that the Company will someday seize your open source non-lethal mousetrap simulation software. In other words, the Company isn't interested in appropriating your personal projects. - -**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Company cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Company's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. - -Cool? Then, by submitting your first Pull Request, and as a condition of your contribution, you agree to the following: - -1. **What the Company owns.** The Company owns any IP ("Company IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Company product or service at the time you developed, invented, or created it, (ii) developed for use by the Company, or (iii) developed or promoted with existing Company IP or with the Company's endorsement. You hereby grant and assign, and will grant and assign, to the Company all rights and interests in all Company IP. - - "Company IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. - -2. **What the Company doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Company doesn't own it. In other words, the Company doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. - -3. **Contribution of your IP to Company projects.** If you include your own IP – such as IP you created prior to working for the Company – into a Company product or service, it's still yours, of course, but you grant the Company a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Company would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. - -4. **Your contributions to non-Company projects.** The Company recognizes that you may be engaged in work that requires you to submit IP to entities other than the Company, such as open source projects used by the Company. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Company and so should be run through Legal first. - -5. **Voluntary Works** All Company IP that you are involved with or create as part of your work for the Company is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Company to learn more. - -6. **No conflicts.** You agree that you don't have any outstanding agreements or obligations that conflict with those in this Agreement, and that you won't enter into conflicting agreements in the future. - -7. **IP protection.** The Company might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Company IP or IP under License (together, "All IP"), and, if the Company asks, to provide those records to the Company. You agree to help the Company secure and defend its rights in All IP. For your help the Company will compensate you at a reasonable rate. If the Company is unable to secure your help, you authorize the Company to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. - -8. **Confidentiality.** As an contributor or contractor of the Company, you will have access to sensitive confidential information that is important to the Company's business. You are responsible for keeping this information confidential, including after you end your work for the Company. - - "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Company because it is not publicly known. - - The Company's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Company's Confidential Information for the purpose of performing your contribution and for the benefit of the Company. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index c049df9cb..000000000 --- a/LICENSE +++ /dev/null @@ -1,42 +0,0 @@ -COPYRIGHT NOTICE - -© Copyright 2018 Advanced Algos LTD. - - -LICENSE NOTICE - -Advanced Algos LTD. is a startup, currently at a very early stage. Because certain aspects of -the business are still not clearly defined, we have chosen to --temporarily-- grant a -restrictive license for the use of this repository, until those business aspects are clarified -and a proper open source license can be granted. - -Advanced Algos LTD. is publishing the code of this software for several reasons. However, -it shall not be considered free software yet. Advanced Algos LTD. is a for-profit company -in the crypto space and this module is still proprietary software. - -The reasons for opening up the code of this module at this stage are the following: - - * We believe that transparency is paramount to achieving our goals, so we want everyone - to be able to understand what this module does and how. Opening up the code of this module - allows anyone to take a close look. - - * We welcome contributions from the community. Contributions are regarded as voluntary work. - There may be incentives in place for certain kinds of contributions. Contact us to learn more. - Contributors agree to provide an express grant of patent rights for their contributions. - - -LICENSE WORDING - -Advanced Algos LTD. grants a limited license for the following uses: - -1. CODE REVIEW AND AUDITS. You are granted permission to clone this repository to analyze, - review or audit the code. - -2. COLLABORATING WITH ADVANCED ALGOS LTD. You are granted permission to fork this repository - with the sole purpose of correcting bugs and developing functionality in agreement with - Advanced Algos LTD. By contributing to this repository you explicitely agree to the terms - detailed in CONTRIBUTING.MD. - -PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. - - diff --git a/client/CODE_OF_CONDUCT.md b/client/CODE_OF_CONDUCT.md index c71b685b4..05b430885 100644 --- a/client/CODE_OF_CONDUCT.md +++ b/client/CODE_OF_CONDUCT.md @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe ## Enforcement -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at superalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. diff --git a/client/CONTRIBUTING.md b/client/CONTRIBUTING.md index 311653120..c67e8d115 100644 --- a/client/CONTRIBUTING.md +++ b/client/CONTRIBUTING.md @@ -2,44 +2,44 @@ We are thrilled you are interested in contributing to this repository. Your help may be essential to the project's success and we want you in! -Advanced Algos LTD is a startup, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. +Superalgos is a collective project, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. -Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regards. +Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regard. In any case, contributors agree to provide an express grant of patent rights for their contributions. Submitting Pull Requests to this repository represents an express agreement with the terms of our Balanced Contributor Intellectual Property Agreement. This agreement is a direct implementation of GitHub's [Balanced Employee Intellectual Property Agreement 1.0.1](https://github.com/github/balanced-employee-ip-agreement/blob/master/Balanced_Employee_IP_Agreement.md). # Balanced Contributor Intellectual Property Agreement 1.0.1 -This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Advanced Algos LTD ("Company"). +This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Superalgos.org ("Project"). -**What is this?** This is the Company's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Company. +**What is this?** This is the Project's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Project. -**Why is this?** The Company needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Company having the legal rights to the products and services it is providing so that the Company can continue operating and doing business. +**Why is this?** The Project needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Project having the legal rights to the products and services it is providing so that the Project can continue operating and doing business. -The Company also believes that it's important to be clear on what it doesn't own. The Company doesn't want you looking over your shoulder every time you work on something personal or worrying that the Company will someday seize your open source non-lethal mousetrap simulation software. In other words, the Company isn't interested in appropriating your personal projects. +The Project also believes that it's important to be clear on what it doesn't own. The Project doesn't want you looking over your shoulder every time you work on something personal or worrying that the Project will someday seize your open source non-lethal mousetrap simulation software. In other words, the Project isn't interested in appropriating your personal projects. -**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Company cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Company's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. +**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Project cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Project's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. Cool? Then, by submitting your first Pull Request, and as a condition of your contribution, you agree to the following: -1. **What the Company owns.** The Company owns any IP ("Company IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Company product or service at the time you developed, invented, or created it, (ii) developed for use by the Company, or (iii) developed or promoted with existing Company IP or with the Company's endorsement. You hereby grant and assign, and will grant and assign, to the Company all rights and interests in all Company IP. +1. **What the Project owns.** The Project owns any IP ("Project IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Project product or service at the time you developed, invented, or created it, (ii) developed for use by the Project, or (iii) developed or promoted with existing Project IP or with the Project's endorsement. You hereby grant and assign, and will grant and assign, to the Project all rights and interests in all Project IP. - "Company IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. + "Project IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. -2. **What the Company doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Company doesn't own it. In other words, the Company doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. +2. **What the Project doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Project doesn't own it. In other words, the Project doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. -3. **Contribution of your IP to Company projects.** If you include your own IP – such as IP you created prior to working for the Company – into a Company product or service, it's still yours, of course, but you grant the Company a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Company would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. +3. **Contribution of your IP to Project projects.** If you include your own IP – such as IP you created prior to working for the Project – into a Project product or service, it's still yours, of course, but you grant the Project a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Project would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. -4. **Your contributions to non-Company projects.** The Company recognizes that you may be engaged in work that requires you to submit IP to entities other than the Company, such as open source projects used by the Company. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Company and so should be run through Legal first. +4. **Your contributions to non-Project projects.** The Project recognizes that you may be engaged in work that requires you to submit IP to entities other than the Project, such as open source projects used by the Project. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Project and so should be run through Legal first. -5. **Voluntary Works** All Company IP that you are involved with or create as part of your work for the Company is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Company to learn more. +5. **Voluntary Works** All Project IP that you are involved with or create as part of your work for the Project is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Project to learn more. 6. **No conflicts.** You agree that you don't have any outstanding agreements or obligations that conflict with those in this Agreement, and that you won't enter into conflicting agreements in the future. -7. **IP protection.** The Company might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Company IP or IP under License (together, "All IP"), and, if the Company asks, to provide those records to the Company. You agree to help the Company secure and defend its rights in All IP. For your help the Company will compensate you at a reasonable rate. If the Company is unable to secure your help, you authorize the Company to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. +7. **IP protection.** The Project might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Project IP or IP under License (together, "All IP"), and, if the Project asks, to provide those records to the Project. You agree to help the Project secure and defend its rights in All IP. For your help the Project will compensate you at a reasonable rate. If the Project is unable to secure your help, you authorize the Project to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. -8. **Confidentiality.** As an contributor or contractor of the Company, you will have access to sensitive confidential information that is important to the Company's business. You are responsible for keeping this information confidential, including after you end your work for the Company. +8. **Confidentiality.** As an contributor or contractor of the Project, you will have access to sensitive confidential information that is important to the Project's business. You are responsible for keeping this information confidential, including after you end your work for the Project. - "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Company because it is not publicly known. + "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Project because it is not publicly known. - The Company's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Company's Confidential Information for the purpose of performing your contribution and for the benefit of the Company. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file + The Project's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Project's Confidential Information for the purpose of performing your contribution and for the benefit of the Project. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file diff --git a/client/LICENSE b/client/LICENSE index c049df9cb..2fe09f449 100644 --- a/client/LICENSE +++ b/client/LICENSE @@ -1,23 +1,22 @@ COPYRIGHT NOTICE -© Copyright 2018 Advanced Algos LTD. +© Copyright 2018 Superalgos.org LICENSE NOTICE -Advanced Algos LTD. is a startup, currently at a very early stage. Because certain aspects of -the business are still not clearly defined, we have chosen to --temporarily-- grant a -restrictive license for the use of this repository, until those business aspects are clarified -and a proper open source license can be granted. +Superalgos is a collaborative project currently at a very early stage. Because certain aspects of +the project are still not clearly defined, we have chosen to --temporarily-- grant a restrictive +license for the use of this repository, until those aspects are clarified and a proper open source +license can be granted. -Advanced Algos LTD. is publishing the code of this software for several reasons. However, -it shall not be considered free software yet. Advanced Algos LTD. is a for-profit company -in the crypto space and this module is still proprietary software. +Superalgos.org is publishing the code of this software for several reasons. However, it shall not be considered free software yet. Superalgos is a collaborative project in the crypto space and this +software is still proprietary software. -The reasons for opening up the code of this module at this stage are the following: +The reasons for opening up the code of this software at this stage are the following: - * We believe that transparency is paramount to achieving our goals, so we want everyone - to be able to understand what this module does and how. Opening up the code of this module + * We believe that transparency is paramount to achieving our goals, so we want everyone to + be able to understand what this software does and how. Opening up the code of this software allows anyone to take a close look. * We welcome contributions from the community. Contributions are regarded as voluntary work. @@ -27,16 +26,14 @@ The reasons for opening up the code of this module at this stage are the followi LICENSE WORDING -Advanced Algos LTD. grants a limited license for the following uses: +Superalgos.org grants a limited license for the following uses: 1. CODE REVIEW AND AUDITS. You are granted permission to clone this repository to analyze, review or audit the code. -2. COLLABORATING WITH ADVANCED ALGOS LTD. You are granted permission to fork this repository +2. COLLABORATING WITH Superalgos.org. You are granted permission to fork this repository with the sole purpose of correcting bugs and developing functionality in agreement with - Advanced Algos LTD. By contributing to this repository you explicitely agree to the terms + Superalgos.org. By contributing to this repository you explicitely agree to the terms detailed in CONTRIBUTING.MD. -PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. - - +PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. \ No newline at end of file diff --git a/client/package.json b/client/package.json index 21b26466f..4fcd2d33b 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "name": "@advancedalgos/operations-client", "version": "0.0.1", - "description": "Advanced Algos Operations client-side web app", + "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { "@material-ui/core": "^3.2.2", diff --git a/client/src/GraphQL/Calls/clones.js b/client/src/GraphQL/Calls/clones.js index 417200d08..cf6c8d7b8 100644 --- a/client/src/GraphQL/Calls/clones.js +++ b/client/src/GraphQL/Calls/clones.js @@ -19,6 +19,15 @@ const OPERATIONS_LIST_CLONES = gql` ${clone} `; +const OPERATIONS_HISTORY_CLONES = gql` + query Operations_HistoryClones{ + operations_HistoryClones { + ...clone + } + } + ${clone} +`; + const OPERATIONS_REMOVE_CLONE = gql` mutation Operations_RemoveClone($id: ID!){ operations_RemoveClone( id: $id) @@ -27,6 +36,7 @@ const OPERATIONS_REMOVE_CLONE = gql` export default { OPERATIONS_LIST_CLONES, + OPERATIONS_HISTORY_CLONES, OPERATIONS_ADD_CLONE, OPERATIONS_REMOVE_CLONE }; diff --git a/client/src/GraphQL/Fragments/clone.js b/client/src/GraphQL/Fragments/clone.js index f362235f5..fa94628c4 100644 --- a/client/src/GraphQL/Fragments/clone.js +++ b/client/src/GraphQL/Fragments/clone.js @@ -16,5 +16,13 @@ export const clone = gql` createDatetime lastLogs runAsTeam + summaryDate + buyAverage + sellAverage + marketRate + combinedProfitsA + combinedProfitsB + assetA + assetB } `; diff --git a/client/src/index.js b/client/src/index.js index 984bf9f9a..970c534aa 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -5,6 +5,7 @@ import { MuiPickersUtilsProvider } from 'material-ui-pickers' import LuxonUtils from 'material-ui-pickers/utils/luxon-utils' import BrowseClones from './views/Clone/List' +import HistoryClones from './views/Clone/History' import AddClone from './views/Clone/Add' import Home from './views/Home' @@ -13,6 +14,7 @@ const App = () => ( + diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index aa11e0efc..c86adc833 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -62,7 +62,7 @@ class AddClone extends Component { size='big' title='Create a bot clone' text="Please login to create a bot clone." - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' /> ) } else return ( @@ -71,7 +71,7 @@ class AddClone extends Component { size='medium' title='Create a bot clone' text='Create a bot clone here.' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' />
diff --git a/client/src/views/Clone/History/index.js b/client/src/views/Clone/History/index.js new file mode 100644 index 000000000..961ce3189 --- /dev/null +++ b/client/src/views/Clone/History/index.js @@ -0,0 +1,130 @@ +import React, { Component } from 'react' +import { graphql } from 'react-apollo' +import { clones } from '../../../GraphQL/Calls' +import TopBar from '../../BannerTopBar' +//import CloneDialog from './CloneDialog' +import ListClones from '../List/ListClones' + +// Material-ui +import { Typography, Paper } from '@material-ui/core' + +class HistoryClones extends Component { + + constructor (props) { + super(props) + let user = localStorage.getItem('user') + this.state = { + user: JSON.parse(user) + } + } + + render () { + let data = this.props.data + + if (data.loading) { + return ( + + ) + } else if (data.operations_HistoryClones && data.operations_HistoryClones.length > 0) { + return ( + + + +
+ { + data.operations_HistoryClones.map((clone, i) => { + return ( + + ) + }) + } +
+
+ ) + } else if (data.error) { + return ( + + ) + } else { + return ( + + ) + } + } + + getBodyContent (data) { + if (data.loading) { + return ( + + ) + } else if (data.operations_HistoryClones && data.operations_HistoryClones.length > 0) { + return ( + + + +
+ { + data.operations_HistoryClones.map((clone, i) => { + return ( + + ) + }) + } +
+
+ ) + } else if (data.error) { + return ( + + ) + } else { + return ( + + + ) + } + } + +} + +export default graphql(clones.OPERATIONS_HISTORY_CLONES)(HistoryClones) diff --git a/client/src/views/Clone/List/ListClones.js b/client/src/views/Clone/List/ListClones.js index c3354d988..15bcfa5e3 100644 --- a/client/src/views/Clone/List/ListClones.js +++ b/client/src/views/Clone/List/ListClones.js @@ -48,36 +48,62 @@ class ListClones extends Component { -
- Created: - { isDefined(clone.beginDatetime) && - Begin: - } - { isDefined(clone.endDatetime) && - End: - } - { isDefined(clone.waitTime) && - Wait Time: - } - Resume Execution: - Run As Team: -
-
- {toLocalTime(clone.createDatetime)} - { isDefined(clone.beginDatetime) && - {toLocalTime(clone.beginDatetime)} - } - { isDefined(clone.endDatetime) && - {toLocalTime(clone.endDatetime)} - } - { isDefined(clone.waitTime) && - {clone.waitTime} - } - {clone.resumeExecution ? 'Yes':'No'} - {clone.runAsTeam ? 'Yes':'No'} +
+ Context Information +
+
+ Created: + { isDefined(clone.beginDatetime) && + Begin: + } + { isDefined(clone.endDatetime) && + End: + } + { isDefined(clone.waitTime) && + Wait Time: + } + Resume Execution: + Run As Team: +
+
+ {toLocalTime(clone.createDatetime)} + { isDefined(clone.beginDatetime) && + {toLocalTime(clone.beginDatetime)} + } + { isDefined(clone.endDatetime) && + {toLocalTime(clone.endDatetime)} + } + { isDefined(clone.waitTime) && + {clone.waitTime} + } + {clone.resumeExecution ? 'Yes':'No'} + {clone.runAsTeam ? 'Yes':'No'} +
+
- Virtual Machine Status + Trading Information +
+
+ Date: + Buy Average: + Sell Average: + Market Rate: + ROI {clone.assetA}: + ROI {clone.assetB}: +
+
+ {toLocalTime(clone.summaryDate)} + {clone.buyAverage} + {clone.sellAverage} + {clone.marketRate} + {clone.combinedProfitsA} + {clone.combinedProfitsB} +
+
+
+
+ Virtual Machine Status
- - - - - + { + !this.props.isHistory && + + } + { + !this.props.isHistory && + + + + + } ) } else if (data.operations_Clones && data.operations_Clones.length > 0) { @@ -37,7 +37,7 @@ class BrowseClones extends Component { size='medium' title='Your Bot Clones' text='All your Bot Clones are here.' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' />
@@ -57,7 +57,7 @@ class BrowseClones extends Component { size='big' title='Your Bot Clones' text='Please login to gain access to your Bot Clones.' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' /> ) } else { @@ -66,7 +66,7 @@ class BrowseClones extends Component { size='big' title='Your Bot Clones' text="You don't have any Bot Clone yet. Once you create one you will find it here." - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' /> ) } @@ -79,7 +79,7 @@ class BrowseClones extends Component { size='big' title='Manage your Bot Clones' text='Loading Bot Clones...' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' /> ) } else if (data.operations_Clones && data.operations_Clones.length > 0) { @@ -89,7 +89,7 @@ class BrowseClones extends Component { size='big' title='Manage your Bot Clones' text='Loading Bot Clones...' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' />
@@ -109,7 +109,7 @@ class BrowseClones extends Component { size='big' title='No Bot Clones to display' text='Please Login to access your Bot Clones.' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' /> ) } else { @@ -119,7 +119,7 @@ class BrowseClones extends Component { size='big' title='No Bot Clones to display' text="You don't have any Bot Clone yet. After you create a new Clone, it will be listed here." - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' /> ) } diff --git a/client/src/views/Clone/List/styles.js b/client/src/views/Clone/List/styles.js index 652be82cd..bd3f9b06e 100644 --- a/client/src/views/Clone/List/styles.js +++ b/client/src/views/Clone/List/styles.js @@ -46,7 +46,7 @@ const styles = theme => ({ }, helper: { borderLeft: `2px solid ${theme.palette.divider}`, - padding: `${theme.spacing.unit}px ${theme.spacing.unit * 2}px`, + padding: `0px ${theme.spacing.unit * 2}px`, }, logsDialog:{ width:'1750px', @@ -56,26 +56,27 @@ const styles = theme => ({ details:{ display:'flex' }, - column: { - flexBasis: '15%', - maxWidth: '15%' - }, column2: { - flexBasis: '42.5%', - maxWidth: '42.5%' + flexBasis: '50%', + maxWidth: '50%' }, column3: { - flexBasis: '42.5%', - maxWidth: '42.5%' + flexBasis: '33.33%', + maxWidth: '33.33%' }, - cloneInfo1:{ + cloneInfoTitle:{ fontWeight: '600', - paddingLeft: '16px', - paddingTop: '16px' + flexBasis: '100%', + maxWidth: '100%' }, - cloneInfo2:{ - paddingLeft: '16px', - paddingTop: '16px' + cloneInfoBold:{ + fontWeight: '600', + paddingLeft: '10px', + paddingTop: '10px' + }, + cloneInfoNormal:{ + paddingLeft: '10px', + paddingTop: '10px' }, }) diff --git a/client/src/views/History/AuditLogList.js b/client/src/views/History/AuditLogList.js deleted file mode 100644 index e9d18f38c..000000000 --- a/client/src/views/History/AuditLogList.js +++ /dev/null @@ -1,87 +0,0 @@ -import React, { Component } from 'react' -import {graphql, compose} from 'react-apollo' -import { getAuditLog } from '../../../queries' - -import { Table, TableBody, TableCell, TableHead, TableRow, Typography } from '@material-ui/core'; - -import { withStyles } from '@material-ui/core/styles' -import { toLocalTime } from '../../../utils' - -const styles = theme => ({ - root: { - flexGrow: 1, - padding: 20, - margin: 10 - } -}); - - -class AuditLogList extends Component { - - constructor(props){ - super(props) - const key = this.props.currentKey - this.state = { - id: key.id, - key: key.key, - date:'', - action: '' - } - } - - render() { - const { classes } = this.props - var data = this.props.data - if(data.loading){ - return Loading... - }else{ - - if(!data.keyVault_AuditLogs){ - return There has been an erorr. - } - if(data.keyVault_AuditLogs.length === 0){ - return There is no audit history for this key. - } - - return ( - - - - Date - Action - Details - - - - - {data.keyVault_AuditLogs.map(row => { - return ( - - - {toLocalTime(row.date)} - - {row.action} - {row.details} - - ); - })} - -
- ) - } - } - -} - -export default compose( - graphql(getAuditLog, { // What follows is the way to pass a parameter to a query. - options: (props) => { - return { - variables: { - key: props.currentKey.id - } - } - } - }), - withStyles(styles) -)(AuditLogList) diff --git a/client/src/views/Home.js b/client/src/views/Home.js index a91fd49a4..2e2de92b5 100644 --- a/client/src/views/Home.js +++ b/client/src/views/Home.js @@ -12,7 +12,7 @@ class Home extends Component { size='big' title='Operations Module' text='Responsible for manage bot clones.' - backgroundUrl='https://advancedalgos.net/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' />
diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 48e341a09..000000000 --- a/package-lock.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "lockfileVersion": 1 -} diff --git a/server/CODE_OF_CONDUCT.md b/server/CODE_OF_CONDUCT.md index c71b685b4..05b430885 100644 --- a/server/CODE_OF_CONDUCT.md +++ b/server/CODE_OF_CONDUCT.md @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe ## Enforcement -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at advancedalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at feedback at superalgos dot org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. diff --git a/server/CONTRIBUTING.md b/server/CONTRIBUTING.md index 311653120..c67e8d115 100644 --- a/server/CONTRIBUTING.md +++ b/server/CONTRIBUTING.md @@ -2,44 +2,44 @@ We are thrilled you are interested in contributing to this repository. Your help may be essential to the project's success and we want you in! -Advanced Algos LTD is a startup, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. +Superalgos is a collective project, currently at a very early stage. Although this repository is not open source software yet, we do welcome contributions from the community. -Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regards. +Contributions are deemed _voluntary work_. There might be incentives in place for certain kinds of contributions. Contact us for more information in this regard. In any case, contributors agree to provide an express grant of patent rights for their contributions. Submitting Pull Requests to this repository represents an express agreement with the terms of our Balanced Contributor Intellectual Property Agreement. This agreement is a direct implementation of GitHub's [Balanced Employee Intellectual Property Agreement 1.0.1](https://github.com/github/balanced-employee-ip-agreement/blob/master/Balanced_Employee_IP_Agreement.md). # Balanced Contributor Intellectual Property Agreement 1.0.1 -This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Advanced Algos LTD ("Company"). +This BALANCED CONTRIBUTOR INTELLECTUAL PROPERTY AGREEMENT is between person or team submitting Pull Requests to this repository and Superalgos.org ("Project"). -**What is this?** This is the Company's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Company. +**What is this?** This is the Project's Intellectual Property Agreement ("Agreement"). If you've worked in the technology space before, there's a good chance that you've run across one or more of these in the past. This document is the official, entire and exclusive agreement on what intellectual property ("IP") is yours, and what belongs to the Project. -**Why is this?** The Company needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Company having the legal rights to the products and services it is providing so that the Company can continue operating and doing business. +**Why is this?** The Project needs to be clear on what IP it owns and has rights to. Its customers, contributors, and investors depend on the Project having the legal rights to the products and services it is providing so that the Project can continue operating and doing business. -The Company also believes that it's important to be clear on what it doesn't own. The Company doesn't want you looking over your shoulder every time you work on something personal or worrying that the Company will someday seize your open source non-lethal mousetrap simulation software. In other words, the Company isn't interested in appropriating your personal projects. +The Project also believes that it's important to be clear on what it doesn't own. The Project doesn't want you looking over your shoulder every time you work on something personal or worrying that the Project will someday seize your open source non-lethal mousetrap simulation software. In other words, the Project isn't interested in appropriating your personal projects. -**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Company cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Company's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. +**Read this.** Please read this document and be sure you understand it before you submit any Pull Requests. Due to legal risk and corporate obligations, the Project cannot, by and large, negotiate its terms. If you feel you have a particular circumstance that keeps you from signing, please let the Project's legal department ("Legal") know. And, of course, you're always free and encouraged to get your own legal counsel to explain anything you're not clear on. Cool? Then, by submitting your first Pull Request, and as a condition of your contribution, you agree to the following: -1. **What the Company owns.** The Company owns any IP ("Company IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Company product or service at the time you developed, invented, or created it, (ii) developed for use by the Company, or (iii) developed or promoted with existing Company IP or with the Company's endorsement. You hereby grant and assign, and will grant and assign, to the Company all rights and interests in all Company IP. +1. **What the Project owns.** The Project owns any IP ("Project IP") that you create, or help create _as its contributor_, but only if it meets one or more of these additional conditions: The IP was (i) related to an existing or prospective Project product or service at the time you developed, invented, or created it, (ii) developed for use by the Project, or (iii) developed or promoted with existing Project IP or with the Project's endorsement. You hereby grant and assign, and will grant and assign, to the Project all rights and interests in all Project IP. - "Company IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. + "Project IP" includes concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, and works of authorship. -2. **What the Company doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Company doesn't own it. In other words, the Company doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. +2. **What the Project doesn't own.** If you create IP that doesn't fit into one of the categories listed above, the Project doesn't own it. In other words, the Project doesn't own concepts, designs, developments, discoveries, ideas, improvements, inventions, trade secrets, trademarks, or works of authorship that you develop, invent, or create that do not meet any of the conditions in Section 1. -3. **Contribution of your IP to Company projects.** If you include your own IP – such as IP you created prior to working for the Company – into a Company product or service, it's still yours, of course, but you grant the Company a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Company would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. +3. **Contribution of your IP to Project projects.** If you include your own IP – such as IP you created prior to working for the Project – into a Project product or service, it's still yours, of course, but you grant the Project a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, sublicensable, transferable, worldwide license to use it without restriction in any way or implementation, in modified form, or as is, by itself, or incorporated into another product or service ("License"). If you include your name in any project over which the Project would have rights under this Agreement, such as in a copyright notice or a comment in code or documentation, then the License covers the rights associated with that use of your name as well. -4. **Your contributions to non-Company projects.** The Company recognizes that you may be engaged in work that requires you to submit IP to entities other than the Company, such as open source projects used by the Company. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Company and so should be run through Legal first. +4. **Your contributions to non-Project projects.** The Project recognizes that you may be engaged in work that requires you to submit IP to entities other than the Project, such as open source projects used by the Project. Please make sure that Legal is aware of what you're working on so that Legal can help with any licensing issues. If any project asks you to sign a contribution agreement, you should check with Legal before doing so. These agreements may be legally binding on the Project and so should be run through Legal first. -5. **Voluntary Works** All Company IP that you are involved with or create as part of your work for the Company is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Company to learn more. +5. **Voluntary Works** All Project IP that you are involved with or create as part of your work for the Project is voluntary work which does not require compensation. There might be incentives in place for certain kinds of contributions. Feel free to contact the Project to learn more. 6. **No conflicts.** You agree that you don't have any outstanding agreements or obligations that conflict with those in this Agreement, and that you won't enter into conflicting agreements in the future. -7. **IP protection.** The Company might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Company IP or IP under License (together, "All IP"), and, if the Company asks, to provide those records to the Company. You agree to help the Company secure and defend its rights in All IP. For your help the Company will compensate you at a reasonable rate. If the Company is unable to secure your help, you authorize the Company to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. +7. **IP protection.** The Project might someday need to show the work that went into the development of IP that it uses or has used, or to make government filings to establish that it owns the IP or has rights over it. To help in those situations, you agree not to destroy any records you maintain relating to the development of any Project IP or IP under License (together, "All IP"), and, if the Project asks, to provide those records to the Project. You agree to help the Project secure and defend its rights in All IP. For your help the Project will compensate you at a reasonable rate. If the Project is unable to secure your help, you authorize the Project to act on your behalf (as your agent and attorney-in-fact) in securing all rights related to All IP. -8. **Confidentiality.** As an contributor or contractor of the Company, you will have access to sensitive confidential information that is important to the Company's business. You are responsible for keeping this information confidential, including after you end your work for the Company. +8. **Confidentiality.** As an contributor or contractor of the Project, you will have access to sensitive confidential information that is important to the Project's business. You are responsible for keeping this information confidential, including after you end your work for the Project. - "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Company because it is not publicly known. + "Confidential Information" includes non-public technical details about our products or services, financial information, business strategies and forecasts, customer data, or any other information, data or know-how that is valuable to the Project because it is not publicly known. - The Company's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Company's Confidential Information for the purpose of performing your contribution and for the benefit of the Company. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file + The Project's Confidential Information is sensitive and we expect that you'll treat it as such. You agree to only use the Project's Confidential Information for the purpose of performing your contribution and for the benefit of the Project. You will do your best to keep Confidential Information secret. If you are not sure if something is Confidential Information, you should assume that it is, until you can confirm otherwise. \ No newline at end of file diff --git a/server/LICENSE b/server/LICENSE index c049df9cb..2fe09f449 100644 --- a/server/LICENSE +++ b/server/LICENSE @@ -1,23 +1,22 @@ COPYRIGHT NOTICE -© Copyright 2018 Advanced Algos LTD. +© Copyright 2018 Superalgos.org LICENSE NOTICE -Advanced Algos LTD. is a startup, currently at a very early stage. Because certain aspects of -the business are still not clearly defined, we have chosen to --temporarily-- grant a -restrictive license for the use of this repository, until those business aspects are clarified -and a proper open source license can be granted. +Superalgos is a collaborative project currently at a very early stage. Because certain aspects of +the project are still not clearly defined, we have chosen to --temporarily-- grant a restrictive +license for the use of this repository, until those aspects are clarified and a proper open source +license can be granted. -Advanced Algos LTD. is publishing the code of this software for several reasons. However, -it shall not be considered free software yet. Advanced Algos LTD. is a for-profit company -in the crypto space and this module is still proprietary software. +Superalgos.org is publishing the code of this software for several reasons. However, it shall not be considered free software yet. Superalgos is a collaborative project in the crypto space and this +software is still proprietary software. -The reasons for opening up the code of this module at this stage are the following: +The reasons for opening up the code of this software at this stage are the following: - * We believe that transparency is paramount to achieving our goals, so we want everyone - to be able to understand what this module does and how. Opening up the code of this module + * We believe that transparency is paramount to achieving our goals, so we want everyone to + be able to understand what this software does and how. Opening up the code of this software allows anyone to take a close look. * We welcome contributions from the community. Contributions are regarded as voluntary work. @@ -27,16 +26,14 @@ The reasons for opening up the code of this module at this stage are the followi LICENSE WORDING -Advanced Algos LTD. grants a limited license for the following uses: +Superalgos.org grants a limited license for the following uses: 1. CODE REVIEW AND AUDITS. You are granted permission to clone this repository to analyze, review or audit the code. -2. COLLABORATING WITH ADVANCED ALGOS LTD. You are granted permission to fork this repository +2. COLLABORATING WITH Superalgos.org. You are granted permission to fork this repository with the sole purpose of correcting bugs and developing functionality in agreement with - Advanced Algos LTD. By contributing to this repository you explicitely agree to the terms + Superalgos.org. By contributing to this repository you explicitely agree to the terms detailed in CONTRIBUTING.MD. -PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. - - +PLEASE SEE CONTRIBUTING.MD FOR MORE DETAILS ON THE IMPLICATIONS SURROUNDING YOUR CONTRIBUTIONS TO THIS REPOSITORY. \ No newline at end of file diff --git a/server/package.json b/server/package.json index cd56dd112..d4b618543 100644 --- a/server/package.json +++ b/server/package.json @@ -1,7 +1,7 @@ { "name": "operations-server", "version": "1.0.0", - "description": "Advanced Algos Operations backend API", + "description": "Superalgos Operations backend API", "main": "src/index.js", "scripts": { "start": "nodemon --exec babel-node --presets env,stage-2 src/index.js", diff --git a/server/src/config/envConfig.js b/server/src/config/envConfig.js index 62d7d6073..7bd3cf254 100644 --- a/server/src/config/envConfig.js +++ b/server/src/config/envConfig.js @@ -10,7 +10,7 @@ env.push({ // FIXME env.push({ "name": "GATEWAY_ENDPOINT", - "value": "https://platform-api-dev.advancedalgos.net/graphql" + "value": "https://platform-api-dev.superalgos.org/graphql" //"value": process.env.GATEWAY_ENDPOINT }) diff --git a/server/src/config/utils.js b/server/src/config/utils.js index 11f9909fa..f27cd7b72 100644 --- a/server/src/config/utils.js +++ b/server/src/config/utils.js @@ -7,3 +7,7 @@ export function toPlatformDatetime (epoch) { export function isDefined (d) { return d !== null && typeof d !== 'undefined' } + +export function getJobNameFromClone (clone) { + return clone.teamId + '-' + clone.botId + '-' + clone.mode.toLowerCase() +} diff --git a/server/src/kubernetes/createClone.js b/server/src/kubernetes/createClone.js index ff89142a6..9632ac6b8 100644 --- a/server/src/kubernetes/createClone.js +++ b/server/src/kubernetes/createClone.js @@ -1,5 +1,5 @@ import logger from '../config/logger' -import { toPlatformDatetime } from '../config/utils' +import { toPlatformDatetime, getJobNameFromClone } from '../config/utils' import envConfig from '../config/envConfig' import { KubernateError } from '../errors' import { Client, config } from 'kubernetes-client' @@ -7,8 +7,9 @@ import { Client, config } from 'kubernetes-client' import deploymentManifest from '../config/clone-deployment.json' import { BACKTEST} from '../enums/CloneMode'; -const createClone = async (clone, cloneName) => { +const createClone = async (clone) => { try { + let cloneName = getJobNameFromClone(clone) logger.info("createClone %j", cloneName) const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) @@ -52,6 +53,11 @@ const createClone = async (clone, cloneName) => { }) logger.debug("createClone Configuration for the execution.") + env.push({ + "name": "CLONE_ID", + "value": clone.id.toString() + }) + env.push({ "name": "START_MODE", "value": clone.mode.toLowerCase() diff --git a/server/src/models/clone.js b/server/src/models/clone.js index f1b0bc3be..45532d5b9 100644 --- a/server/src/models/clone.js +++ b/server/src/models/clone.js @@ -39,7 +39,16 @@ const cloneSchema = new Schema({ }, stateDatetime: Number, createDatetime: Number, - runAsTeam: Boolean + runAsTeam: Boolean, + active: Boolean, + summaryDate: Number, + buyAverage: Number, + sellAverage: Number, + marketRate: Number, + combinedProfitsA: Number, + combinedProfitsB: Number, + assetA: String, + assetB: String }) const Clone = mongoose.model('Clone', cloneSchema) diff --git a/server/src/platform/downloadBlob.js b/server/src/platform/downloadBlob.js new file mode 100644 index 000000000..a7044399b --- /dev/null +++ b/server/src/platform/downloadBlob.js @@ -0,0 +1,17 @@ +import logger from '../config/logger' +import { toPlatformDatetime } from '../config/utils' + +const downloadBlob = async (containerName, blobName) => { + logger.debug('downloadBlob -> About to get a file: %s%s', containerName, blobName) + return new Promise((resolve, reject) => { + blobService.getBlobToText(containerName, blobName, (err, data) => { + if (err) { + reject(err); + } else { + resolve(data); + } + }); + }); +}; + +export default downloadBlob diff --git a/server/src/platform/fileStorageReader.js b/server/src/platform/fileStorageReader.js new file mode 100644 index 000000000..c5e95c3c8 --- /dev/null +++ b/server/src/platform/fileStorageReader.js @@ -0,0 +1,98 @@ +import logger from '../config/logger' +import { toPlatformDatetime } from '../config/utils' +import { KubernateError } from '../errors' +import { Client, config } from 'kubernetes-client' +// Get base Deployment config +import deploymentManifest from '../config/clone-deployment.json' +import { BACKTEST} from '../enums/CloneMode'; + +const platformExecutionContext = async (clone, cloneName) => { + try { + logger.info("createClone %j", cloneName) + const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) + + // Make changes to base deployment config + deploymentManifest.metadata.name = cloneName + + logger.debug("createClone Set basic environment configuration.") + let env = envConfig + + logger.debug("createClone Configuration for team, bot and process.") + env.push({ + "name": "DEV_TEAM", + "value": clone.teamId + }) + + env.push({ + "name": "BOT", + "value": clone.botId + }) + + // TODO allow other types + env.push({ + "name": "PROCESS", + "value": "Trading-Process" + }) + + // TODO allow other types + env.push({ + "name": "TYPE", + "value": "Trading" + }) + + env.push({ + "name": "RUN_AS_TEAM", + "value": clone.runAsTeam.toString() + }) + + env.push({ + "name": "USER_LOGGED_IN", + "value": clone.userLoggedIn + }) + + logger.debug("createClone Configuration for the execution.") + env.push({ + "name": "START_MODE", + "value": clone.mode.toLowerCase() + }) + + env.push({ + "name": "RESUME_EXECUTION", + "value": clone.resumeExecution.toString() + }) + + if(clone.mode === BACKTEST){ + env.push({ + "name": "BEGIN_DATE_TIME", + "value": toPlatformDatetime(clone.beginDatetime) + }) + + env.push({ + "name": "END_DATE_TIME", + "value": toPlatformDatetime(clone.endDatetime) + }) + + env.push({ + "name": "WAIT_TIME", + "value": clone.waitTime.toString() + }) + } + + deploymentManifest.spec.template.spec.containers[0].env = env + + // Create a new Deployment + const create = await client.apis.batch.v1.namespaces('default').jobs.post( + { body: deploymentManifest }) + logger.debug("Create: %j ", create) + + // Fetch the Deployment we just created + const deployment = await client.apis.batch.v1.namespaces('default').jobs( + deploymentManifest.metadata.name).get() + logger.debug("Job: %j ", deployment) + + logger.info("createClone %j succesfull", cloneName) + } catch (err) { + throw new KubernateError(err) + } +} +export default platformExecutionContext diff --git a/server/src/platform/platformExecutionContext.js b/server/src/platform/platformExecutionContext.js new file mode 100644 index 000000000..c5e95c3c8 --- /dev/null +++ b/server/src/platform/platformExecutionContext.js @@ -0,0 +1,98 @@ +import logger from '../config/logger' +import { toPlatformDatetime } from '../config/utils' +import { KubernateError } from '../errors' +import { Client, config } from 'kubernetes-client' +// Get base Deployment config +import deploymentManifest from '../config/clone-deployment.json' +import { BACKTEST} from '../enums/CloneMode'; + +const platformExecutionContext = async (clone, cloneName) => { + try { + logger.info("createClone %j", cloneName) + const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) + + // Make changes to base deployment config + deploymentManifest.metadata.name = cloneName + + logger.debug("createClone Set basic environment configuration.") + let env = envConfig + + logger.debug("createClone Configuration for team, bot and process.") + env.push({ + "name": "DEV_TEAM", + "value": clone.teamId + }) + + env.push({ + "name": "BOT", + "value": clone.botId + }) + + // TODO allow other types + env.push({ + "name": "PROCESS", + "value": "Trading-Process" + }) + + // TODO allow other types + env.push({ + "name": "TYPE", + "value": "Trading" + }) + + env.push({ + "name": "RUN_AS_TEAM", + "value": clone.runAsTeam.toString() + }) + + env.push({ + "name": "USER_LOGGED_IN", + "value": clone.userLoggedIn + }) + + logger.debug("createClone Configuration for the execution.") + env.push({ + "name": "START_MODE", + "value": clone.mode.toLowerCase() + }) + + env.push({ + "name": "RESUME_EXECUTION", + "value": clone.resumeExecution.toString() + }) + + if(clone.mode === BACKTEST){ + env.push({ + "name": "BEGIN_DATE_TIME", + "value": toPlatformDatetime(clone.beginDatetime) + }) + + env.push({ + "name": "END_DATE_TIME", + "value": toPlatformDatetime(clone.endDatetime) + }) + + env.push({ + "name": "WAIT_TIME", + "value": clone.waitTime.toString() + }) + } + + deploymentManifest.spec.template.spec.containers[0].env = env + + // Create a new Deployment + const create = await client.apis.batch.v1.namespaces('default').jobs.post( + { body: deploymentManifest }) + logger.debug("Create: %j ", create) + + // Fetch the Deployment we just created + const deployment = await client.apis.batch.v1.namespaces('default').jobs( + deploymentManifest.metadata.name).get() + logger.debug("Job: %j ", deployment) + + logger.info("createClone %j succesfull", cloneName) + } catch (err) { + throw new KubernateError(err) + } +} +export default platformExecutionContext diff --git a/server/src/schema/mutations/AddCloneMutation.js b/server/src/schema/mutations/AddCloneMutation.js index 9195fb0d0..a0de06946 100644 --- a/server/src/schema/mutations/AddCloneMutation.js +++ b/server/src/schema/mutations/AddCloneMutation.js @@ -40,7 +40,8 @@ const resolve = async(parent, { clone }, context) => { let existingClone = await Clone.find( { authId: context.userId, - mode: clone.mode + mode: clone.mode, + active: true }) logger.debug('addClone -> Checking existing clone %j', existingClone) @@ -49,8 +50,6 @@ const resolve = async(parent, { clone }, context) => { + ' existing clone of type: ' + clone.mode + ' and try again.') } - logger.debug('addClone -> Creating a new clone. %j', clone) - try{ const userTeam = await axios({ url: process.env.GATEWAY_ENDPOINT, @@ -86,13 +85,13 @@ const resolve = async(parent, { clone }, context) => { clone.botId = userTeam.data.data.teams_FbByTeamMember.fb[0].slug clone.userLoggedIn = userTeam.data.data.teams_FbByTeamMember.members[0].member.alias clone.createDatetime = new Date().valueOf() / 1000|0 + clone.active = true + logger.debug('addClone -> Creating a new clone. %j', clone) let newClone = new Clone(clone) - - await createKubernetesClone(clone, newClone._id) - newClone.id = newClone._id newClone.authId = context.userId + await createKubernetesClone(newClone) return new Promise((resolve, reject) => { newClone.save((err) => { @@ -102,7 +101,6 @@ const resolve = async(parent, { clone }, context) => { } else { //TODO transaction on database - // saveAuditLog(newClone.id, 'addKey', context) logger.debug('addClone -> Save clone sucessful.') resolve(newClone) } diff --git a/server/src/schema/mutations/RemoveCloneMutation.js b/server/src/schema/mutations/RemoveCloneMutation.js index a9e741f63..88152cf54 100644 --- a/server/src/schema/mutations/RemoveCloneMutation.js +++ b/server/src/schema/mutations/RemoveCloneMutation.js @@ -12,10 +12,9 @@ import { import { Clone } from '../../models' import logger from '../../config/logger' import removeKuberneteClone from '../../kubernetes/removeClone' -//import saveAuditLog from './AddAuditLog' const args = { - id: {type: new GraphQLNonNull(GraphQLID)} + id: { type: new GraphQLNonNull(GraphQLID) } } const resolve = async (parent, { id }, context) => { @@ -27,18 +26,19 @@ const resolve = async (parent, { id }, context) => { await removeKuberneteClone(id) - var query = { + const query = { _id: id, authId: context.userId } + const options = { new: true } + const update = { active: false } - //saveAuditLog(id, 'removeClone', context) logger.debug('removeClone -> Removing Clone from DB.') - Clone.deleteOne(query, function (err) { + Clone.findOneAndUpdate(query, update, options, (err, doc) => { if (err){ throw new OperationsError(err) }else{ - return 'Clone Removed' + resolve('Clone Removed.') } }) } diff --git a/server/src/schema/mutations/UpdateExecutionSummary.js b/server/src/schema/mutations/UpdateExecutionSummary.js new file mode 100644 index 000000000..b666b455c --- /dev/null +++ b/server/src/schema/mutations/UpdateExecutionSummary.js @@ -0,0 +1,71 @@ +import { + GraphQLNonNull, + GraphQLID, + GraphQLString, + GraphQLInt, + GraphQLFloat +} from 'graphql' + +import { + + OperationsError +} from '../../errors' + +import { Clone } from '../../models' +import logger from '../../config/logger' + +const args = { + id: { type: new GraphQLNonNull(GraphQLID) }, + summaryDate: { type: GraphQLInt }, + buyAverage: { type: GraphQLFloat }, + sellAverage: { type: GraphQLFloat }, + marketRate: { type: GraphQLFloat }, + combinedProfitsA: { type: GraphQLFloat }, + combinedProfitsB: { type: GraphQLFloat }, + assetA: { type: GraphQLString }, + assetB: { type: GraphQLString } +} + +const resolve = async (parent, + { id, summaryDate, buyAverage, sellAverage, marketRate, combinedProfitsA, + combinedProfitsB, assetA, assetB + }) => { + logger.debug('UpdateExecutionSummary -> Entering Function.') + + const query = { _id: id } + const options = { new: true } + const update = { + summaryDate: summaryDate, + buyAverage: buyAverage, + sellAverage: sellAverage, + marketRate: marketRate, + combinedProfitsA: combinedProfitsA, + combinedProfitsB: combinedProfitsB, + assetA: assetA, + assetB: assetB + } + + let sucessful + await Clone.findOneAndUpdate(query, update, options, (err, doc) => { + if (err){ + throw new OperationsError(err) + } else { + logger.debug('Execution summary updated') + sucessful = true + } + }) + + if(sucessful){ + return 'Execution summary updated.' + } +} + +const mutation = { + updateExecutionSummary: { + type: GraphQLString, + args, + resolve + } +} + +export default mutation diff --git a/server/src/schema/mutations/index.js b/server/src/schema/mutations/index.js index 44bae56f0..b5aa00205 100644 --- a/server/src/schema/mutations/index.js +++ b/server/src/schema/mutations/index.js @@ -4,12 +4,14 @@ import { import AddCloneMutation from './AddCloneMutation' import RemoveCloneMutation from './RemoveCloneMutation' +import UpdateExecutionSummary from './UpdateExecutionSummary' const Mutation = new GraphQLObjectType({ name: 'Mutation', fields: Object.assign( AddCloneMutation, - RemoveCloneMutation + RemoveCloneMutation, + UpdateExecutionSummary ) }) diff --git a/server/src/schema/queries/AuditLogsQuery.js b/server/src/schema/queries/AuditLogsQuery.js deleted file mode 100644 index 2ff8cfd85..000000000 --- a/server/src/schema/queries/AuditLogsQuery.js +++ /dev/null @@ -1,40 +0,0 @@ -import { - GraphQLList, - GraphQLString, - GraphQLNonNull -} from 'graphql' - -import { - AuthentificationError -} from '../../errors' - -import { AuditLogType } from '../types' -import { AuditLog } from '../../models' -import logger from '../../config/logger' - -const args = { - key: { type: new GraphQLNonNull(GraphQLString) } -} - -const resolve = (parent, { key }, context) => { - logger.debug('auditLogs -> Entering Fuction.') - - if (!context.userId) { - throw new AuthentificationError() - } - - return AuditLog.find({ - authId: context.userId, - keyId: key - }).sort({date: -1}).limit(20) -} - -const query = { - auditLogs: { - type: new GraphQLList(AuditLogType), - args, - resolve - } -} - -export default query diff --git a/server/src/schema/queries/ExchangesQuery.js b/server/src/schema/queries/ExchangesQuery.js deleted file mode 100644 index dc7e37355..000000000 --- a/server/src/schema/queries/ExchangesQuery.js +++ /dev/null @@ -1,23 +0,0 @@ -import { - GraphQLList -} from 'graphql' -import { ExchangeType } from '../types' -import { Exchange } from '../../models' -import logger from '../../config/logger' - -const args = {} - -const resolve = (parent, args, context) => { - logger.debug('exchanges -> Entering Fuction.') - return Exchange -} - -const query = { - exchanges: { - type: new GraphQLList(ExchangeType), - args, - resolve - } -} - -export default query diff --git a/server/src/schema/queries/HistoryClones.js b/server/src/schema/queries/HistoryClones.js new file mode 100644 index 000000000..e413997ec --- /dev/null +++ b/server/src/schema/queries/HistoryClones.js @@ -0,0 +1,40 @@ +import { + GraphQLList +} from 'graphql' + +import { + AuthentificationError +} from '../../errors' + +import { CloneType } from '../types' +import { Clone } from '../../models' +import logger from '../../config/logger' +import getKuberneteClonePodStatus from '../../kubernetes/getClonePodStatus' +import getKuberneteClonePodLogs from '../../kubernetes/getClonePodLogs' + +const args = {} + +const resolve = async(parent, args, context) => { + logger.debug('History Clones -> Entering Fuction.') + + if (!context.userId) { + throw new AuthentificationError() + } + + let clones = await Clone.find({ + authId: context.userId, + active: false + }) + + return clones +} + +const query = { + historyClones: { + type: new GraphQLList(CloneType), + args, + resolve + } +} + +export default query diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js index 398b4f85d..f1fb34e25 100644 --- a/server/src/schema/queries/ListClones.js +++ b/server/src/schema/queries/ListClones.js @@ -9,8 +9,9 @@ import { import { CloneType } from '../types' import { Clone } from '../../models' import logger from '../../config/logger' -import getKuberneteClonePodStatus from '../../kubernetes/getClonePodStatus' -import getKuberneteClonePodLogs from '../../kubernetes/getClonePodLogs' +import getCloneStatus from '../../kubernetes/getClonePodStatus' +import getCloneLogs from '../../kubernetes/getClonePodLogs' +import { getJobNameFromClone } from '../../config/utils' const args = {} @@ -21,11 +22,16 @@ const resolve = async(parent, args, context) => { throw new AuthentificationError() } - let clones = await Clone.find({authId: context.userId}) + let clones = await Clone.find({ + authId: context.userId, + active: true + }) for (var i = 0; i < clones.length; i++) { - clones[i].state = await getKuberneteClonePodStatus(clones[i]._id) - clones[i].lastLogs = await getKuberneteClonePodLogs(clones[i]._id) + logger.debug('List Clones -> clone: %j', clones[i]) + let cloneName = getJobNameFromClone(clones[i]) + clones[i].state = await getCloneStatus(cloneName) + clones[i].lastLogs = await getCloneLogs(cloneName) } return clones } diff --git a/server/src/schema/queries/index.js b/server/src/schema/queries/index.js index dac2c4145..11d48edc5 100644 --- a/server/src/schema/queries/index.js +++ b/server/src/schema/queries/index.js @@ -3,11 +3,13 @@ import { } from 'graphql' import ListClones from './ListClones' +import HistoryClones from './HistoryClones' const RootQuery = new GraphQLObjectType({ name: 'RootQueryType', fields: Object.assign( - ListClones + ListClones, + HistoryClones ) }) diff --git a/server/src/schema/types/CloneType.js b/server/src/schema/types/CloneType.js index 44082e9be..d6e679c66 100644 --- a/server/src/schema/types/CloneType.js +++ b/server/src/schema/types/CloneType.js @@ -3,7 +3,8 @@ import { GraphQLString, GraphQLInt, GraphQLBoolean, - GraphQLID + GraphQLID, + GraphQLFloat } from 'graphql' const CloneType = new GraphQLObjectType({ @@ -22,7 +23,15 @@ const CloneType = new GraphQLObjectType({ stateDatetime: {type: GraphQLInt}, createDatetime: {type: GraphQLInt}, lastLogs: {type: GraphQLString}, - runAsTeam: {type: GraphQLBoolean} + runAsTeam: {type: GraphQLBoolean}, + summaryDate: {type: GraphQLInt}, + buyAverage: {type: GraphQLFloat}, + sellAverage: {type: GraphQLFloat}, + marketRate: {type: GraphQLFloat}, + combinedProfitsA: {type: GraphQLFloat}, + combinedProfitsB: {type: GraphQLFloat}, + assetA: {type: GraphQLString}, + assetB: {type: GraphQLString} }) }) export default CloneType diff --git a/server/src/schema/types/input/index.js b/server/src/schema/types/input/index.js index 13c71b313..e51b0ca74 100644 --- a/server/src/schema/types/input/index.js +++ b/server/src/schema/types/input/index.js @@ -1,4 +1,4 @@ -import CloneInputType from './Clone'; +import CloneInputType from './Clone' export { CloneInputType From a8ac7385d6e198cab21f404aaefc1b45fbbb1e0f Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Mon, 28 Jan 2019 10:56:00 -0300 Subject: [PATCH 06/40] Adding support for Indicators and Extractors --- client/package-lock.json | 12 +- client/package.json | 5 +- client/src/GraphQL/Calls/teams.js | 21 +- client/src/GraphQL/models.js | 7 +- client/src/utils/index.js | 9 + client/src/views/Clone/Add/index.js | 406 ++++++++++++------ client/src/views/Clone/History/index.js | 2 +- server/src/enums/CloneMode.js | 18 +- .../teams_FbByTeamMember.js} | 0 server/src/platform/fileStorageReader.js | 98 ----- .../src/platform/platformExecutionContext.js | 98 ----- .../src/schema/mutations/AddCloneMutation.js | 5 +- 12 files changed, 325 insertions(+), 356 deletions(-) rename server/src/{platform/downloadBlob.js => graphQLCalls/teams_FbByTeamMember.js} (100%) delete mode 100644 server/src/platform/fileStorageReader.js delete mode 100644 server/src/platform/platformExecutionContext.js diff --git a/client/package-lock.json b/client/package-lock.json index 9a3c14063..2f4b4a7ba 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,6 +1,6 @@ { - "name": "@advancedalgos/operations-client", - "version": "0.0.1", + "name": "@superalgos/operations-client", + "version": "0.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -689,6 +689,14 @@ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" }, + "react-number-format": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/react-number-format/-/react-number-format-4.0.6.tgz", + "integrity": "sha512-WfBlqYRD0fGZpQxRy1apxsPeaqtxhzo7CnUVFKBoGDsQbc89+DQNhjG/D3IxgGYM47oKB+W/Su9ol/vVS6Wc2Q==", + "requires": { + "prop-types": "15.6.2" + } + }, "react-router": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/react-router/-/react-router-4.3.1.tgz", diff --git a/client/package.json b/client/package.json index 4fcd2d33b..81d6b3829 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { - "name": "@advancedalgos/operations-client", - "version": "0.0.1", + "name": "@superalgos/operations-client", + "version": "0.0.2", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { @@ -15,6 +15,7 @@ "react": "^16.6.1", "react-apollo": "^2.2.4", "react-dom": "^16.6.1", + "react-number-format": "^4.0.6", "react-router-dom": "^4.3.1" }, "devDependencies": { diff --git a/client/src/GraphQL/Calls/teams.js b/client/src/GraphQL/Calls/teams.js index 1a5f02f5b..7329d3e07 100644 --- a/client/src/GraphQL/Calls/teams.js +++ b/client/src/GraphQL/Calls/teams.js @@ -10,29 +10,12 @@ export const GET_ALL_TEAMS_QUERY = gql` id name slug - } - } - } -` - -export const GET_ALL_TEAM_BOTS_QUERY = gql` - query teamBotsQuery($teamId: String!) { - teams_TeamById(teamId: $teamId) { - fb { - id - name - slug - team{ - id - name - slug - } + kind } } } ` export default { - GET_ALL_TEAMS_QUERY, - GET_ALL_TEAM_BOTS_QUERY + GET_ALL_TEAMS_QUERY }; diff --git a/client/src/GraphQL/models.js b/client/src/GraphQL/models.js index 252f1ee61..474df1fcf 100644 --- a/client/src/GraphQL/models.js +++ b/client/src/GraphQL/models.js @@ -1,4 +1,7 @@ const types = [ 'Live', 'Competition', 'Backtest' ] +const startModes = [ 'All Months', 'One Month', 'No Time' ] +const availableMonths = ["January", "February", "March", "April", "May", "June", + "July", "August", "September", "October", "November", "December"] const exchanges = [ { @@ -7,4 +10,6 @@ const exchanges = [ } ] -export { types, exchanges } + + +export { types, exchanges, startModes, availableMonths } diff --git a/client/src/utils/index.js b/client/src/utils/index.js index d81838754..e5e223f3c 100644 --- a/client/src/utils/index.js +++ b/client/src/utils/index.js @@ -72,3 +72,12 @@ export function slugify (string) { .replace(/^-+/, '') // Trim - from start of text .replace(/-+$/, '') // Trim - from end of text } + +export function getIndicatorYears () { + const localDate = new Date() + let availableYears = [] + for (var i = 2015; i <= localDate.getUTCFullYear(); i++) { + availableYears[i-2015] = i + } + return availableYears +} diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index c86adc833..6b3c76462 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -9,20 +9,22 @@ import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import styles from './styles' -import { types} from '../../../GraphQL/models' -import { isDefined } from '../../../utils' +import { types, startModes, availableMonths, processNames } from '../../../GraphQL/models' +import { isDefined, getIndicatorYears } from '../../../utils' import { MenuItem, Button, TextField, FormControl, InputLabel, Input, Typography, Paper, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, - Select, FormControlLabel, Checkbox + Select, FormControlLabel, Checkbox, FormHelperText } from '@material-ui/core' -import { DateTimePicker } from 'material-ui-pickers'; +import NumberFormat from 'react-number-format' + +import { DateTimePicker } from 'material-ui-pickers' import { ChevronLeft, ChevronRight, -} from '@material-ui/icons'; +} from '@material-ui/icons' class AddClone extends Component { @@ -31,17 +33,23 @@ class AddClone extends Component { let user = localStorage.getItem('user') this.state = { user: JSON.parse(user), - teamId:'', - botId:'', - mode:'', + selectedBot: {'id':''}, + mode: '', resumeExecution: false, beginDatetime: DateTime.local().minus({ days: 8 }).startOf('day'), endDatetime: DateTime.local(), waitTime: 1, - state : '', + state: '', stateDatetime: 0, createDatetime: 0, runAsTeam: false, + financialBeings:[], + + // Indicator Bot + startYear: 2019, + endYear: 2019, + month: 1, + botProcessName: '', //Error handlers nameError: false, @@ -49,8 +57,9 @@ class AddClone extends Component { botError: false, modeError: false, isNewCloneConfirmationOpen: false, - serverResponse:'', - serverError: false + serverResponse: '', + serverError: false, + botProcessNameError: false } } @@ -84,8 +93,7 @@ class AddClone extends Component { A bot clone it's a copy of your bot running on a virtual machine. - At the moment Live clones trade by default 0.001 BTC on Poloniex. - Please select the team and bot you want to clone! + Please select from your teams and bots the one you want to clone! @@ -94,6 +102,8 @@ class AddClone extends Component { {({ loading, error, data }) => { + if (error) return `Error! There has been an error loading teams.` + if (loading) { return ( ) - } else if(!isDefined(data.teams_FbByTeamMember)){ + } + + if(!isDefined(data.teams_FbByTeamMember)){ return ( ) - } else if (error) return `Error! There has been an error loading teams.` + } else{ + this.financialBeings = data.teams_FbByTeamMember.fb + } return ( - + ) }} + {this.state.selectedBot.kind} - this.setState({mode:e.target.value})} - onBlur={(e)=>this.setState({modeError:false})} - error={this.state.modeError} - fullWidth - > - {types.map(option => ( - - {option} - - ))} - + { /* TRADER BOT */ } + { this.state.selectedBot.kind === "TRADER1" && + + + At the moment Live Trading Clones trade by default 0.001 BTC on Poloniex. + - { this.state.mode == "Backtest" && - - } - rightArrowIcon={} - value={this.state.beginDatetime} - label='Backtest Start Date' - onChange={newVal => this.setState({ beginDatetime: newVal })} - className={classNames(classes.form, classes.textField)} - fullWidth - /> + this.setState({mode:e.target.value})} + onBlur={(e)=>this.setState({modeError:false})} + error={this.state.modeError} + fullWidth + > + {types.map(option => ( + + {option} + + ))} + - } - rightArrowIcon={} - value={this.state.endDatetime} - label='Backtest End Date' - onChange={newVal => this.setState({ endDatetime: newVal })} - className={classNames(classes.form, classes.textField)} - fullWidth - /> + { this.state.mode == "Backtest" && + + } + rightArrowIcon={} + value={this.state.beginDatetime} + label='Backtest Start Date' + onChange={newVal => this.setState({ beginDatetime: newVal })} + className={classNames(classes.form, classes.textField)} + fullWidth + /> - this.setState({waitTime:e.target.value})} - fullWidth - /> - - } + } + rightArrowIcon={} + value={this.state.endDatetime} + label='Backtest End Date' + onChange={newVal => this.setState({ endDatetime: newVal })} + className={classNames(classes.form, classes.textField)} + fullWidth + /> - - If Run as Team is selected, the clone will be taken from the - team respository instead of your own team member folder. - Competitions runs from the team respository. - - this.setState({runAsTeam:e.target.checked })} - value="runAsTeam" - color="primary" - /> - } - label="Run as Team" - className={classNames(classes.form, classes.textField)} - /> + this.setState({waitTime:e.target.value})} + fullWidth + /> + + } - - The Resume Execution option let's you pick up the context of - the last execution and continue from there. - - this.setState({resumeExecution:e.target.checked })} - value="resumeExecution" - color="primary" - /> - } - label="Resume Execution" - className={classNames(classes.form, classes.textField)} - /> + + If Run as Team is selected, the clone will be taken from the + team respository instead of your own team member folder. + Competitions runs from the team respository. + + this.setState({runAsTeam:e.target.checked })} + value="runAsTeam" + color="primary" + /> + } + label="Run as Team" + className={classNames(classes.form, classes.textField)} + /> + + + The Resume Execution option let's you pick up the context of + the last execution and continue from there. + + this.setState({resumeExecution:e.target.checked })} + value="resumeExecution" + color="primary" + /> + } + label="Resume Execution" + className={classNames(classes.form, classes.textField)} + /> + + } + + { /* INDICATOR AND EXTRACTOR BOTS */ } + { (this.state.selectedBot.kind === "TRADER" + || this.state.selectedBot.kind === "EXTRACTOR") && + + this.setState({botProcessName:e.target.value})} + onBlur={(e)=>this.setState({botProcessNameError:false})} + error={this.state.botProcessNameError} + fullWidth + /> + + this.setState({mode:e.target.value})} + onBlur={(e)=>this.setState({modeError:false})} + error={this.state.modeError} + fullWidth + > + {startModes.map(option => ( + + {option} + + ))} + + + { this.state.mode === "All Months" && + + this.setState({startYear:e.target.value})} + fullWidth + > + {getIndicatorYears().map((option, index) => ( + + {option} + + ))} + + + this.setState({endYear:e.target.value})} + fullWidth + > + {getIndicatorYears().map((option, index) => ( + + {option} + + ))} + + + } + + { this.state.mode === "One Month" && + + this.setState({startYear:e.target.value})} + fullWidth + > + {getIndicatorYears().map((option, index) => ( + + {option} + + ))} + + + this.setState({month:e.target.value})} + fullWidth + > + {availableMonths.map(option => ( + + {option} + + ))} + + + } + + }
- Trading Information + Execution Information
- Date: - Buy Average: - Sell Average: - Market Rate: - ROI {clone.assetA}: - ROI {clone.assetB}: + Last Execution: + { (clone.kind === 'TRADER') && + + Buy Average: + Sell Average: + Market Rate: + ROI {clone.assetA}: + ROI {clone.assetB}: + + }
- {toLocalTime(clone.summaryDate)} - {clone.buyAverage} - {clone.sellAverage} - {clone.marketRate} - {clone.combinedProfitsA} - {clone.combinedProfitsB} + {isDefined(clone.summaryDate) ? toLocalTime(clone.summaryDate): 'waiting update...'} + { (clone.kind === 'INDICATOR' || clone.kind === 'EXTRACTOR') && + + {clone.buyAverage} + {clone.sellAverage} + {clone.marketRate} + {clone.combinedProfitsA} + {clone.combinedProfitsB} + + }
diff --git a/client/src/views/Clone/List/styles.js b/client/src/views/Clone/List/styles.js index bd3f9b06e..6b91e1f58 100644 --- a/client/src/views/Clone/List/styles.js +++ b/client/src/views/Clone/List/styles.js @@ -1,7 +1,6 @@ const styles = theme => ({ root: { flexGrow: 1, - padding: 10, margin: 10 }, image: { @@ -42,7 +41,11 @@ const styles = theme => ({ heading: { fontSize: theme.typography.pxToRem(18), flexBasis: '33.33%', - fontWeight: '600' + fontWeight: '600', + whiteSpace: 'nowrap', + display: 'inline-flex', + alignItems: 'center', + paddingRight: theme.typography.pxToRem(20) }, helper: { borderLeft: `2px solid ${theme.palette.divider}`, @@ -78,6 +81,9 @@ const styles = theme => ({ paddingLeft: '10px', paddingTop: '10px' }, + avatar: { + margin: 10, + }, }) export default styles diff --git a/server/src/config/envConfig.js b/server/src/config/envConfig.js index 7bd3cf254..a831a6bad 100644 --- a/server/src/config/envConfig.js +++ b/server/src/config/envConfig.js @@ -7,11 +7,9 @@ env.push({ "value": process.env.PLATFORM_ENVIRONMENT }) -// FIXME env.push({ "name": "GATEWAY_ENDPOINT", - "value": "https://platform-api-dev.superalgos.org/graphql" - //"value": process.env.GATEWAY_ENDPOINT + "value": process.env.GATEWAY_ENDPOINT }) env.push({ diff --git a/server/src/config/utils.js b/server/src/config/utils.js index f27cd7b72..e9f3b1c12 100644 --- a/server/src/config/utils.js +++ b/server/src/config/utils.js @@ -8,6 +8,16 @@ export function isDefined (d) { return d !== null && typeof d !== 'undefined' } -export function getJobNameFromClone (clone) { - return clone.teamId + '-' + clone.botId + '-' + clone.mode.toLowerCase() +export function getJobNameFromClone (teamSlug, botSlug, mode) { + return teamSlug + '-' + botSlug + '-' + mode.toLowerCase() +} + +export function getSelectedBot(botsByUser, selectedBotId){ + if(isDefined(botsByUser)){ + for (var i = 0; i < botsByUser.fb.length; i++) { + if(botsByUser.fb[i].id === selectedBotId){ + return botsByUser.fb[i] + } + } + } } diff --git a/server/src/errors/index.js b/server/src/errors/index.js index dea8803fb..88ee37eae 100644 --- a/server/src/errors/index.js +++ b/server/src/errors/index.js @@ -41,8 +41,6 @@ export class OperationsError extends Error { message = 'OperationsModule Internal Error. ' + this.message constructor(message){ super(message) - logger.error(this.stack) - this.stack = '' } } diff --git a/server/src/graphQLCalls/teamAvatar.js b/server/src/graphQLCalls/teamAvatar.js new file mode 100644 index 000000000..c2ba09a3f --- /dev/null +++ b/server/src/graphQLCalls/teamAvatar.js @@ -0,0 +1,30 @@ +import logger from '../config/logger' +import axios from 'axios' + +const teamAvatar = async(authorization, teamId) => { + logger.debug('GraphQL call teamAvatar.') + + return axios({ + url: process.env.GATEWAY_ENDPOINT, + method: 'post', + data: { + query: ` + query Teams_Team($teamId: String!){ + teams_TeamById(teamId:$teamId) { + profile{ + avatar + } + } + } + `, + variables: { + teamId: teamId + } + }, + headers: { + authorization: authorization + } + }) +}; + +export default teamAvatar diff --git a/server/src/graphQLCalls/teams_FbByTeamMember.js b/server/src/graphQLCalls/teams_FbByTeamMember.js index a7044399b..112e95790 100644 --- a/server/src/graphQLCalls/teams_FbByTeamMember.js +++ b/server/src/graphQLCalls/teams_FbByTeamMember.js @@ -1,17 +1,39 @@ import logger from '../config/logger' -import { toPlatformDatetime } from '../config/utils' +import axios from 'axios' -const downloadBlob = async (containerName, blobName) => { - logger.debug('downloadBlob -> About to get a file: %s%s', containerName, blobName) - return new Promise((resolve, reject) => { - blobService.getBlobToText(containerName, blobName, (err, data) => { - if (err) { - reject(err); - } else { - resolve(data); +const teams_FbByTeamMember = (authorization) => { + logger.debug('GraphQL call teams_FbByTeamMember') + + return axios({ + url: process.env.GATEWAY_ENDPOINT, + method: 'post', + data: { + query: ` + query Teams_FbByTeamMember { + teams_FbByTeamMember { + id + name + slug + fb { + id + name + slug + kind + avatar } - }); - }); + members { + member { + alias + } + } + } + } + `, + }, + headers: { + authorization: authorization + } + }) }; -export default downloadBlob +export default teams_FbByTeamMember diff --git a/server/src/kubernetes/createClone.js b/server/src/kubernetes/createClone.js index 9632ac6b8..3fed6c055 100644 --- a/server/src/kubernetes/createClone.js +++ b/server/src/kubernetes/createClone.js @@ -1,5 +1,5 @@ import logger from '../config/logger' -import { toPlatformDatetime, getJobNameFromClone } from '../config/utils' +import { toPlatformDatetime, getJobNameFromClone, isDefined } from '../config/utils' import envConfig from '../config/envConfig' import { KubernateError } from '../errors' import { Client, config } from 'kubernetes-client' @@ -7,97 +7,98 @@ import { Client, config } from 'kubernetes-client' import deploymentManifest from '../config/clone-deployment.json' import { BACKTEST} from '../enums/CloneMode'; -const createClone = async (clone) => { +const createClone = async (clone, teamSlug, botSlug) => { try { - let cloneName = getJobNameFromClone(clone) - logger.info("createClone %j", cloneName) + let cloneName = getJobNameFromClone(teamSlug, botSlug, clone.mode) + logger.info("createClone %s", cloneName) const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) // Make changes to base deployment config deploymentManifest.metadata.name = cloneName - logger.debug("createClone Set basic environment configuration.") + logger.debug("createClone Environment and Auth Configuration.") let env = envConfig - logger.debug("createClone Configuration for team, bot and process.") + logger.debug("createClone General Financial Being Configuration.") env.push({ "name": "DEV_TEAM", "value": clone.teamId }) - env.push({ "name": "BOT", "value": clone.botId }) - - // TODO allow other types + env.push({ + "name": "KIND", + "value": clone.kind + }) env.push({ "name": "PROCESS", - "value": "Trading-Process" + "value": clone.processName }) - - // TODO allow other types env.push({ - "name": "TYPE", - "value": "Trading" + "name": "CLONE_ID", + "value": clone.id.toString() + }) + env.push({ + "name": "START_MODE", + "value": clone.mode.toLowerCase() }) - env.push({ "name": "RUN_AS_TEAM", "value": clone.runAsTeam.toString() }) - env.push({ "name": "USER_LOGGED_IN", "value": clone.userLoggedIn }) - logger.debug("createClone Configuration for the execution.") - env.push({ - "name": "CLONE_ID", - "value": clone.id.toString() - }) - - env.push({ - "name": "START_MODE", - "value": clone.mode.toLowerCase() - }) - - env.push({ - "name": "RESUME_EXECUTION", - "value": clone.resumeExecution.toString() - }) - - if(clone.mode === BACKTEST){ + logger.debug("createClone Trading Configuration.") + if(clone.kind === 'Trading'){ env.push({ - "name": "BEGIN_DATE_TIME", - "value": toPlatformDatetime(clone.beginDatetime) + "name": "RESUME_EXECUTION", + "value": clone.resumeExecution.toString() }) - env.push({ - "name": "END_DATE_TIME", - "value": toPlatformDatetime(clone.endDatetime) - }) - - env.push({ - "name": "WAIT_TIME", - "value": clone.waitTime.toString() - }) + if(clone.mode === BACKTEST){ + env.push({ + "name": "BEGIN_DATE_TIME", + "value": toPlatformDatetime(clone.beginDatetime) + }) + env.push({ + "name": "END_DATE_TIME", + "value": toPlatformDatetime(clone.endDatetime) + }) + env.push({ + "name": "WAIT_TIME", + "value": clone.waitTime.toString() + }) + } + } else if(clone.kind === 'Indicator' || clone.kind === 'Extractor'){ + env.push({ + "name": "MIN_YEAR", + "value": isDefined(clone.startYear) ? clone.startYear.toString() : '' + }) + env.push({ + "name": "MAX_YEAR", + "value": isDefined(clone.endYear) ? clone.endYear.toString() : '' + }) + env.push({ + "name": "MONTH", + "value": isDefined(clone.month) ? clone.month.toString() : '' + }) + env.push({ + "name": "INTERVAL", + "value": isDefined(clone.interval) ? clone.interval.toString() : '' + }) } deploymentManifest.spec.template.spec.containers[0].env = env - // Create a new Deployment const create = await client.apis.batch.v1.namespaces('default').jobs.post( { body: deploymentManifest }) - logger.debug("Create: %j ", create) - // Fetch the Deployment we just created - const deployment = await client.apis.batch.v1.namespaces('default').jobs( - deploymentManifest.metadata.name).get() - logger.debug("Job: %j ", deployment) - - logger.info("createClone %j succesfull", cloneName) + logger.info("createClone %s on Kubernates success.", cloneName) } catch (err) { throw new KubernateError(err) } diff --git a/server/src/kubernetes/getClonePodLogs.js b/server/src/kubernetes/getClonePodLogs.js index a3f8d129a..af6c3c134 100644 --- a/server/src/kubernetes/getClonePodLogs.js +++ b/server/src/kubernetes/getClonePodLogs.js @@ -4,7 +4,7 @@ import { Client, config } from 'kubernetes-client' const getClonePodStatus = async (cloneName) => { try { - logger.info("getClonePodStatus %j", cloneName) + logger.debug("getClonePodStatus on kubernates started.") const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) let query = { @@ -12,9 +12,8 @@ const getClonePodStatus = async (cloneName) => { "labelSelector": "job-name="+cloneName } } - // Get the pod + const pod = await client.api.v1.namespaces('default').pods.get(query) - // logger.debug("pod: %j ", pod) let queryLogs = { "qs":{ @@ -24,7 +23,8 @@ const getClonePodStatus = async (cloneName) => { const logs = await client.api.v1.namespaces('default') .pods(pod.body.items[0].metadata.name).log.get(queryLogs) let logsArray = logs.body.split('\n') - // logger.debug("logs: %j ", logsArray) + + logger.debug("getClonePodStatus on kubernates successful.") return JSON.stringify(logsArray, null, 2) } catch (err) { diff --git a/server/src/kubernetes/getClonePodStatus.js b/server/src/kubernetes/getClonePodStatus.js index ee4dfb835..37293c460 100644 --- a/server/src/kubernetes/getClonePodStatus.js +++ b/server/src/kubernetes/getClonePodStatus.js @@ -4,7 +4,7 @@ import { Client, config } from 'kubernetes-client' const getClonePodStatus = async (cloneName) => { try { - logger.info("getClonePodStatus %j", cloneName) + logger.info("getClonePodStatus on kubernates started. ") const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) let query = { @@ -12,18 +12,16 @@ const getClonePodStatus = async (cloneName) => { "labelSelector": "job-name="+cloneName } } - // Get The Pod + const pod = await client.api.v1.namespaces('default').pods.get(query) - logger.debug("pod: %j ", pod) let clonePodStatus = pod.body.items[0].status.containerStatuses[0].state - logger.debug("clonePodStatus: %j ", clonePodStatus) if (clonePodStatus.hasOwnProperty('terminated') && clonePodStatus.terminated.hasOwnProperty('containerID')) { delete clonePodStatus.terminated.containerID } - logger.info("getClonePodStatus %j succesfull", cloneName) + logger.info("getClonePodStatus %s on kubernates successful", cloneName) return JSON.stringify(clonePodStatus, null, 2) } catch (err) { throw new KubernateError(err) diff --git a/server/src/kubernetes/removeClone.js b/server/src/kubernetes/removeClone.js index 4bb2a3e8d..536eac16a 100644 --- a/server/src/kubernetes/removeClone.js +++ b/server/src/kubernetes/removeClone.js @@ -4,7 +4,7 @@ import { Client, config } from 'kubernetes-client' const removeClone = async (cloneName) => { try { - logger.info("removeClone %j", cloneName) + logger.info("removeClone %s", cloneName) const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) let query = { @@ -13,18 +13,14 @@ const removeClone = async (cloneName) => { } } - // Remove the Job const removed = await client.apis.batch.v1.namespaces('default').jobs( cloneName).delete() - logger.debug("Job Removed: %j ", removed) - - // Get the pod + const pod = await client.api.v1.namespaces('default').pods.get(query) const podRemoved = await client.api.v1.namespaces('default') .pods(pod.body.items[0].metadata.name).delete() - logger.debug("Pod Removed: %j ", podRemoved) - logger.info("removeClone %j succesfull", cloneName) + logger.info("removeClone %s on kubernates succesful", cloneName) } catch (err) { throw new KubernateError(err) } diff --git a/server/src/schema/mutations/AddCloneMutation.js b/server/src/schema/mutations/AddCloneMutation.js index e85c5f6f5..47577519f 100644 --- a/server/src/schema/mutations/AddCloneMutation.js +++ b/server/src/schema/mutations/AddCloneMutation.js @@ -1,7 +1,8 @@ import { CloneInputType } from '../types/input'; import { CloneType } from '../types'; import { Clone } from '../../models'; -import { CloneModeEnum , BACKTEST} from '../../enums/CloneMode'; +import { CloneModeEnum } from '../../enums/CloneMode'; +import teams_FbByTeamMember from '../../graphQLCalls/teams_FbByTeamMember'; import { AuthentificationError, @@ -10,10 +11,9 @@ import { CustomError } from '../../errors' -import axios from 'axios'; import logger from '../../config/logger' import createKubernetesClone from '../../kubernetes/createClone' -import { isDefined } from '../../config/utils' +import { isDefined, getSelectedBot } from '../../config/utils' const args = { clone: {type: CloneInputType } @@ -30,59 +30,27 @@ const resolve = async(parent, { clone }, context) => { throw new WrongArgumentsError('The mode selected is not valid.') } - // Disable execution dates if mode is not backtest - if((clone.hasOwnProperty('beginDatetime') - || clone.hasOwnProperty('endDatetime')) - && clone.mode !== BACKTEST){ - throw new WrongArgumentsError('Ony Backtest mode allows begin and end date selection.') - } - let existingClone = await Clone.find( { authId: context.userId, mode: clone.mode, + botId: clone.botId, active: true }) logger.debug('addClone -> Checking existing clone %j', existingClone) - if(isDefined(existingClone) && existingClone.length > 0){ + if(existingClone.length > 0){ throw new CustomError('You can only have one active clone by mode. Remove the' + ' existing clone of type: ' + clone.mode + ' and try again.') } try{ - const userTeam = await axios({ - url: process.env.GATEWAY_ENDPOINT, - method: 'post', - data: { - query: ` - query Teams_FbByTeamMember { - teams_FbByTeamMember { - id - name - slug - fb { - id - name - slug - } - members { - member { - alias - } - } - } - } - `, - }, - headers: { - authorization: context.authorization - } - }) - - clone.teamId = userTeam.data.data.teams_FbByTeamMember.slug - clone.botId = userTeam.data.data.teams_FbByTeamMember.fb[0].slug - clone.userLoggedIn = userTeam.data.data.teams_FbByTeamMember.members[0].member.alias + let botsByUser = await teams_FbByTeamMember(context.authorization) + console.log("botsByUser: ", botsByUser) + let selectedBot = getSelectedBot(botsByUser.data.data.teams_FbByTeamMember, clone.botId) + clone.teamId = botsByUser.data.data.teams_FbByTeamMember.id + clone.botId = selectedBot.id + clone.userLoggedIn = botsByUser.data.data.teams_FbByTeamMember.members[0].member.alias //TODO change by context info if possible clone.createDatetime = new Date().valueOf() / 1000|0 clone.active = true @@ -90,7 +58,7 @@ const resolve = async(parent, { clone }, context) => { let newClone = new Clone(clone) newClone.id = newClone._id newClone.authId = context.userId - await createKubernetesClone(newClone) + await createKubernetesClone(newClone, botsByUser.data.data.teams_FbByTeamMember.slug, selectedBot.slug ) return new Promise((resolve, reject) => { newClone.save((err) => { @@ -105,8 +73,8 @@ const resolve = async(parent, { clone }, context) => { } }) }) - } catch(error) { - logger.debug('addClone -> Error: %j', error) + } catch(err) { + logger.error('addClone -> Error: %s', err.stack) throw new OperationsError('There has been an error creating the clone.') } } diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js index f1fb34e25..5a1292e56 100644 --- a/server/src/schema/queries/ListClones.js +++ b/server/src/schema/queries/ListClones.js @@ -3,7 +3,8 @@ import { } from 'graphql' import { - AuthentificationError + AuthentificationError, + OperationsError } from '../../errors' import { CloneType } from '../types' @@ -11,13 +12,15 @@ import { Clone } from '../../models' import logger from '../../config/logger' import getCloneStatus from '../../kubernetes/getClonePodStatus' import getCloneLogs from '../../kubernetes/getClonePodLogs' -import { getJobNameFromClone } from '../../config/utils' +import { getJobNameFromClone, getSelectedBot } from '../../config/utils' +import teams_FbByTeamMember from '../../graphQLCalls/teams_FbByTeamMember' +import teamAvatar from '../../graphQLCalls/teamAvatar' const args = {} const resolve = async(parent, args, context) => { logger.debug('List Clones -> Entering Fuction.') - + try{ if (!context.userId) { throw new AuthentificationError() } @@ -27,13 +30,30 @@ const resolve = async(parent, args, context) => { active: true }) + let botsByUser = await teams_FbByTeamMember(context.authorization) + for (var i = 0; i < clones.length; i++) { logger.debug('List Clones -> clone: %j', clones[i]) - let cloneName = getJobNameFromClone(clones[i]) + + // TODO Refactor this code once financial beings api is ready + let selectedBot = getSelectedBot(botsByUser.data.data.teams_FbByTeamMember, clones[i].botId) + let cloneName = getJobNameFromClone(botsByUser.data.data.teams_FbByTeamMember.slug, selectedBot.slug, clones[i].mode) + clones[i].kind = selectedBot.kind + clones[i].teamName = botsByUser.data.data.teams_FbByTeamMember.name + clones[i].botName = selectedBot.name + clones[i].botAvatar = selectedBot.avatar + + let team = await teamAvatar(context.authorization, botsByUser.data.data.teams_FbByTeamMember.id) + clones[i].teamAvatar = team.data.data.teams_TeamById.profile.avatar + clones[i].state = await getCloneStatus(cloneName) clones[i].lastLogs = await getCloneLogs(cloneName) } return clones + } catch (err){ + logger.error('List Clones error: %s', err.stack) + throw new OperationsError('There has been an error listing the clones.') + } } const query = { diff --git a/server/src/schema/types/CloneType.js b/server/src/schema/types/CloneType.js index d6e679c66..6c8db2b18 100644 --- a/server/src/schema/types/CloneType.js +++ b/server/src/schema/types/CloneType.js @@ -31,7 +31,12 @@ const CloneType = new GraphQLObjectType({ combinedProfitsA: {type: GraphQLFloat}, combinedProfitsB: {type: GraphQLFloat}, assetA: {type: GraphQLString}, - assetB: {type: GraphQLString} + assetB: {type: GraphQLString}, + kind: {type: GraphQLString}, + teamName: {type: GraphQLString}, + botName: {type: GraphQLString}, + botAvatar: {type: GraphQLString}, + teamAvatar: {type: GraphQLString} }) }) export default CloneType diff --git a/server/src/schema/types/input/Clone.js b/server/src/schema/types/input/Clone.js index 62f626625..ef59f0a87 100644 --- a/server/src/schema/types/input/Clone.js +++ b/server/src/schema/types/input/Clone.js @@ -10,14 +10,19 @@ const Type = new GraphQLInputObjectType({ name: 'CloneInput', description: 'Payload for clone input', fields: () => ({ - teamId: { type: new GraphQLNonNull(GraphQLString) }, botId: { type: new GraphQLNonNull(GraphQLString) }, mode: { type: GraphQLString }, resumeExecution: { type: GraphQLBoolean }, beginDatetime: { type: GraphQLInt }, endDatetime: { type: GraphQLInt }, waitTime: { type: GraphQLInt }, - runAsTeam: { type: GraphQLBoolean } + runAsTeam: { type: GraphQLBoolean }, + startYear: { type: GraphQLInt }, + endYear: { type: GraphQLInt }, + month: { type: GraphQLInt }, + interval: { type: GraphQLInt }, + processName: { type: GraphQLString }, + kind: { type: GraphQLString } }) }); From ee91e02cecaf3f22ab3fbbc1acd4c01ec2b6ccd6 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Tue, 29 Jan 2019 18:04:00 -0300 Subject: [PATCH 08/40] Fixing history, remove, and logs views --- client/src/views/Clone/List/ListClones.js | 34 +++++++++++-------- client/src/views/Clone/List/styles.js | 10 +++--- server/src/kubernetes/getClonePodLogs.js | 12 +++---- server/src/kubernetes/removeClone.js | 6 ++-- .../src/schema/mutations/AddCloneMutation.js | 2 +- .../schema/mutations/RemoveCloneMutation.js | 24 +++++++++++-- server/src/schema/queries/HistoryClones.js | 10 ++++++ server/src/schema/queries/ListClones.js | 25 +++++--------- server/src/schema/queries/cloneDetails.js | 21 ++++++++++++ 9 files changed, 96 insertions(+), 48 deletions(-) create mode 100644 server/src/schema/queries/cloneDetails.js diff --git a/client/src/views/Clone/List/ListClones.js b/client/src/views/Clone/List/ListClones.js index 3dcfeda24..433890125 100644 --- a/client/src/views/Clone/List/ListClones.js +++ b/client/src/views/Clone/List/ListClones.js @@ -88,7 +88,7 @@ class ListClones extends Component {
Last Execution: - { (clone.kind === 'TRADER') && + { (clone.kind === 'TRADER' && isDefined(clone.assetA) ) && Buy Average: Sell Average: @@ -100,7 +100,7 @@ class ListClones extends Component {
{isDefined(clone.summaryDate) ? toLocalTime(clone.summaryDate): 'waiting update...'} - { (clone.kind === 'INDICATOR' || clone.kind === 'EXTRACTOR') && + { ((clone.kind === 'INDICATOR' || clone.kind === 'EXTRACTOR') && isDefined(clone.assetA) ) && {clone.buyAverage} {clone.sellAverage} @@ -188,19 +188,23 @@ class ListClones extends Component { Last clone logs - + + Here you can check the clone output directly from the virtual machine. + The last 20 lines are displayed, but you can check the Logs Module for more details. + +
+ +
-
- Execution Information -
-
- Last Execution: - { (clone.botType === 'Trading' && isDefined(clone.assetA) ) && - - Buy Average: - Sell Average: - Market Rate: - ROI {clone.assetA}: - ROI {clone.assetB}: - - } + { isDefined(clone.summaryDate) && + +
+ Execution Information +
+
+ Last Execution: + { (clone.botType === 'TRADER' && isDefined(clone.assetA) ) && + + Buy Average: + Sell Average: + Market Rate: + ROI {clone.assetA}: + ROI {clone.assetB}: + + } +
+
+ { toLocalTime(clone.summaryDate) } + { (clone.botType === 'TRADER' && isDefined(clone.assetA) ) && + + {clone.buyAverage} + {clone.sellAverage} + {clone.marketRate} + {clone.combinedProfitsA} + {clone.combinedProfitsB} + + } +
+
-
- {isDefined(clone.summaryDate) ? toLocalTime(clone.summaryDate): 'waiting update...'} - { ((clone.botType === 'Indicator' || clone.botType === 'Extraction') && isDefined(clone.assetA) ) && - - {clone.buyAverage} - {clone.sellAverage} - {clone.marketRate} - {clone.combinedProfitsA} - {clone.combinedProfitsB} - - } + + } + { (clone.state !== 'UNPUBLISHED') && + +
+ Virtual Machine Status +
-
-
-
- Virtual Machine Status - -
+ + } { !this.props.isHistory && From cd8e34065b01f08a3b16a856b36401e243ab9fb8 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Wed, 30 Jan 2019 15:22:53 -0300 Subject: [PATCH 16/40] Adding bot type on listing --- server/src/schema/cloneDetails.js | 1 + server/src/schema/queries/HistoryClones.js | 1 + server/src/schema/queries/ListClones.js | 1 + 3 files changed, 3 insertions(+) diff --git a/server/src/schema/cloneDetails.js b/server/src/schema/cloneDetails.js index 447c34ecc..040ce1a7d 100644 --- a/server/src/schema/cloneDetails.js +++ b/server/src/schema/cloneDetails.js @@ -9,6 +9,7 @@ const cloneDetails = async(authorization, botsByUser, clone) => { let selectedBot = getSelectedBot(botsByUser.data.data.teams_FbByTeamMember, clone.botId) clone.teamId = botsByUser.data.data.teams_FbByTeamMember.id clone.botId = selectedBot.id + clone.kind = selectedBot.kind clone.teamSlug = botsByUser.data.data.teams_FbByTeamMember.slug clone.botSlug = selectedBot.slug clone.cloneName = getJobNameFromClone(clone) diff --git a/server/src/schema/queries/HistoryClones.js b/server/src/schema/queries/HistoryClones.js index 467548e27..a37557ae7 100644 --- a/server/src/schema/queries/HistoryClones.js +++ b/server/src/schema/queries/HistoryClones.js @@ -34,6 +34,7 @@ const resolve = async(parent, args, context) => { for (var i = 0; i < clones.length; i++) { clones[i] = await cloneDetails(context.authorization, botsByUser, clones[i]) + clones[i].botType = clones[i].kind // Only for listing we show the teams value } return clones diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js index c3cc91a67..74e0868b4 100644 --- a/server/src/schema/queries/ListClones.js +++ b/server/src/schema/queries/ListClones.js @@ -39,6 +39,7 @@ const resolve = async(parent, args, context) => { clones[i].state = state.substring(1, state.length-1) let lastLogs = await getCloneLogs(clones[i].cloneName) clones[i].lastLogs = lastLogs.substring(1, lastLogs.length-1) + clones[i].botType = clones[i].kind // Only for listing we show the teams value } return clones } catch (err){ From 16183e58a4f035f88b296838b95826995a64d193 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Wed, 30 Jan 2019 15:23:08 -0300 Subject: [PATCH 17/40] New version --- client/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/package.json b/client/package.json index f010087e1..86b552ca7 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.4", + "version": "0.0.5", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { From 2e4a0bae6b2736b3321e4cb7b279737d1708520a Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Wed, 30 Jan 2019 15:33:41 -0300 Subject: [PATCH 18/40] Removing console.log --- client/package.json | 2 +- client/src/views/Clone/List/ListClones.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/package.json b/client/package.json index 86b552ca7..55e914360 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.5", + "version": "0.0.6", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/views/Clone/List/ListClones.js b/client/src/views/Clone/List/ListClones.js index 165bc445e..063c06d4b 100644 --- a/client/src/views/Clone/List/ListClones.js +++ b/client/src/views/Clone/List/ListClones.js @@ -32,7 +32,6 @@ class ListClones extends Component { render () { const { classes } = this.props const clone = this.props.currentClone - console.log(clone) return ( From b25a66e26edbe3006cf12903d222b1f39ac9d725 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Fri, 1 Feb 2019 17:40:36 -0300 Subject: [PATCH 19/40] Adding changes after team review - Add Wait Time explanation on add clone - AACloud logs, execution time - Remove status and logs queries from Kubernates and push them from AACloud - Order list results --- client/package.json | 2 +- client/src/views/Clone/Add/index.js | 11 ++- client/src/views/Clone/List/ListClones.js | 4 +- client/src/views/Home.js | 4 +- server/src/config/clone-deployment.json | 2 +- server/src/config/utils.js | 14 ---- server/src/errors/index.js | 10 ++- server/src/graphQLCalls/teamAvatar.js | 30 -------- .../{teams_FbByTeamMember.js => teamQuery.js} | 17 +++-- server/src/schema/cloneDetails.js | 52 ++++++++++---- .../src/schema/mutations/AddCloneMutation.js | 10 ++- .../schema/mutations/RemoveCloneMutation.js | 8 +-- .../mutations/UpdateExecutionSummary.js | 71 ++++++++++++------- server/src/schema/queries/HistoryClones.js | 22 +++--- server/src/schema/queries/ListClones.js | 10 +-- 15 files changed, 146 insertions(+), 121 deletions(-) delete mode 100644 server/src/graphQLCalls/teamAvatar.js rename server/src/graphQLCalls/{teams_FbByTeamMember.js => teamQuery.js} (59%) diff --git a/client/package.json b/client/package.json index 55e914360..c0a9f35e9 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.6", + "version": "0.0.7", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index b24d35a0c..06781d9ad 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -157,7 +157,6 @@ class AddClone extends Component { {this.state.selectedBot.kind} - { /* TRADER BOT */ } { this.state.selectedBot.kind === "TRADER" && @@ -213,6 +212,10 @@ class AddClone extends Component { fullWidth /> + + The Wait Time represent the number of miliseconds the bot will wait between executions. + + } - { /* INDICATOR AND EXTRACTOR BOTS */ } { (this.state.selectedBot.kind === "INDICATOR" || this.state.selectedBot.kind === "EXTRACTOR") && @@ -366,6 +368,11 @@ class AddClone extends Component { } + + + You will your clone information under Active Clones until it finishes the execution, then it will moved to the History. + +
diff --git a/client/src/views/Home.js b/client/src/views/Home.js index 2e2de92b5..766c931a2 100644 --- a/client/src/views/Home.js +++ b/client/src/views/Home.js @@ -24,13 +24,13 @@ class Home extends Component {
- The Operations module allows you to create copies of your bot + The Operations module allows you to create instances of your bots that will be executed on a virtual machine.
- +
diff --git a/server/src/config/clone-deployment.json b/server/src/config/clone-deployment.json index 4b202ce6b..bc90901a1 100644 --- a/server/src/config/clone-deployment.json +++ b/server/src/config/clone-deployment.json @@ -14,7 +14,7 @@ "containers": [ { "name": "aadev", - "image": "benme/aadev:v3.5", + "image": "benme/aadev:v3.6", "command": ["node", "Run.js"], "env": [ ] diff --git a/server/src/config/utils.js b/server/src/config/utils.js index 257881ebc..11f9909fa 100644 --- a/server/src/config/utils.js +++ b/server/src/config/utils.js @@ -7,17 +7,3 @@ export function toPlatformDatetime (epoch) { export function isDefined (d) { return d !== null && typeof d !== 'undefined' } - -export function getJobNameFromClone (clone) { - return clone.teamSlug + '-' + clone.botSlug + '-' + clone.mode.toLowerCase() -} - -export function getSelectedBot(botsByUser, selectedBotId){ - if(isDefined(botsByUser)){ - for (var i = 0; i < botsByUser.fb.length; i++) { - if(botsByUser.fb[i].id === selectedBotId){ - return botsByUser.fb[i] - } - } - } -} diff --git a/server/src/errors/index.js b/server/src/errors/index.js index b8fb06cf4..63b27a61a 100644 --- a/server/src/errors/index.js +++ b/server/src/errors/index.js @@ -2,7 +2,15 @@ import logger from '../config/logger' export class AuthentificationError extends Error { code = 401 - message = 'Autentification not found, you have to be authentificated to perform this action' + message = 'Autentification not found, you have to be authentificated to perform this action.' + constructor(){ + super() + } +} + +export class AutorizationError extends Error { + code = 401 + message = 'You are not authorized to perform this action.' constructor(){ super() } diff --git a/server/src/graphQLCalls/teamAvatar.js b/server/src/graphQLCalls/teamAvatar.js deleted file mode 100644 index c2ba09a3f..000000000 --- a/server/src/graphQLCalls/teamAvatar.js +++ /dev/null @@ -1,30 +0,0 @@ -import logger from '../config/logger' -import axios from 'axios' - -const teamAvatar = async(authorization, teamId) => { - logger.debug('GraphQL call teamAvatar.') - - return axios({ - url: process.env.GATEWAY_ENDPOINT, - method: 'post', - data: { - query: ` - query Teams_Team($teamId: String!){ - teams_TeamById(teamId:$teamId) { - profile{ - avatar - } - } - } - `, - variables: { - teamId: teamId - } - }, - headers: { - authorization: authorization - } - }) -}; - -export default teamAvatar diff --git a/server/src/graphQLCalls/teams_FbByTeamMember.js b/server/src/graphQLCalls/teamQuery.js similarity index 59% rename from server/src/graphQLCalls/teams_FbByTeamMember.js rename to server/src/graphQLCalls/teamQuery.js index 112e95790..c42c1722a 100644 --- a/server/src/graphQLCalls/teams_FbByTeamMember.js +++ b/server/src/graphQLCalls/teamQuery.js @@ -1,16 +1,16 @@ import logger from '../config/logger' import axios from 'axios' -const teams_FbByTeamMember = (authorization) => { - logger.debug('GraphQL call teams_FbByTeamMember') +const teamQuery = async(authorization, teamId) => { + logger.debug('GraphQL retrieving team information. %s', teamId) return axios({ url: process.env.GATEWAY_ENDPOINT, method: 'post', data: { query: ` - query Teams_FbByTeamMember { - teams_FbByTeamMember { + query Teams_Team($teamId: String!){ + teams_TeamById(teamId:$teamId) { id name slug @@ -24,11 +24,18 @@ const teams_FbByTeamMember = (authorization) => { members { member { alias + authId } } + profile{ + avatar + } } } `, + variables: { + teamId: teamId + } }, headers: { authorization: authorization @@ -36,4 +43,4 @@ const teams_FbByTeamMember = (authorization) => { }) }; -export default teams_FbByTeamMember +export default teamQuery diff --git a/server/src/schema/cloneDetails.js b/server/src/schema/cloneDetails.js index 040ce1a7d..56d2d5f93 100644 --- a/server/src/schema/cloneDetails.js +++ b/server/src/schema/cloneDetails.js @@ -1,27 +1,55 @@ import logger from '../config/logger' -import { getJobNameFromClone, getSelectedBot } from '../config/utils' -import teamAvatar from '../graphQLCalls/teamAvatar' +import { isDefined } from '../config/utils' +import { AutorizationError } from '../errors' -// TODO Refactor this code once financial beings api is ready -const cloneDetails = async(authorization, botsByUser, clone) => { +const cloneDetails = async(authId, team, clone) => { logger.debug('Retrieving clone details.') - let selectedBot = getSelectedBot(botsByUser.data.data.teams_FbByTeamMember, clone.botId) - clone.teamId = botsByUser.data.data.teams_FbByTeamMember.id + if(!isAuthorized(team, authId)){ + logger.debug('User %s is not authorized to manage team %s.', authId, team.slug ) + throw new AutorizationError() + } + + let selectedBot = getSelectedBot(team, clone.botId) + clone.teamId = team.id clone.botId = selectedBot.id clone.kind = selectedBot.kind - clone.teamSlug = botsByUser.data.data.teams_FbByTeamMember.slug + clone.teamSlug = team.slug clone.botSlug = selectedBot.slug - clone.cloneName = getJobNameFromClone(clone) - clone.teamName = botsByUser.data.data.teams_FbByTeamMember.name + clone.cloneName = clone.teamSlug + '-' + clone.botSlug + '-' + clone.mode.toLowerCase() + clone.teamName = team.name clone.botName = selectedBot.name clone.botAvatar = selectedBot.avatar - let team = await teamAvatar(authorization, botsByUser.data.data.teams_FbByTeamMember.id) - clone.teamAvatar = team.data.data.teams_TeamById.profile.avatar - clone.userLoggedIn = botsByUser.data.data.teams_FbByTeamMember.members[0].member.alias //TODO change by context info if possible + clone.teamAvatar = team.profile.avatar + clone.userLoggedIn = team.members[0].member.alias //TODO change by context info if possible logger.debug('Retrieving clone details complete.') return clone }; +function getSelectedBot(team, selectedBotId){ + logger.debug('Getting selected bot.') + if(isDefined(team)){ + for (var i = 0; i < team.fb.length; i++) { + if(team.fb[i].id === selectedBotId){ + return team.fb[i] + } + } + } +} + +function isAuthorized(team, authId){ + logger.debug('Checking if the user is authorized by the teams module.') + let authorized = false + if(isDefined(team)){ + for (var i = 0; i < team.members.length; i++) { + if(team.members[i].member.authId === authId){ + authorized = true + break + } + } + } + return authorized +} + export default cloneDetails diff --git a/server/src/schema/mutations/AddCloneMutation.js b/server/src/schema/mutations/AddCloneMutation.js index d6f703ae5..dd14e931e 100644 --- a/server/src/schema/mutations/AddCloneMutation.js +++ b/server/src/schema/mutations/AddCloneMutation.js @@ -3,7 +3,7 @@ import { CloneType } from '../types'; import { Clone } from '../../models'; import { CloneModeEnum } from '../../enums/CloneMode'; import { BotTypesEnum } from '../../enums/BotTypes'; -import teams_FbByTeamMember from '../../graphQLCalls/teams_FbByTeamMember'; +import teamQuery from '../../graphQLCalls/teamQuery' import cloneDetails from '../cloneDetails' import { @@ -14,7 +14,7 @@ import { import logger from '../../config/logger' import createKubernetesClone from '../../kubernetes/createClone' -import { isDefined, getSelectedBot } from '../../config/utils' +import { isDefined } from '../../config/utils' const args = { clone: {type: CloneInputType } @@ -50,10 +50,8 @@ const resolve = async(parent, { clone }, context) => { } try{ - // Authorization is handled by the teams module - let botsByUser = await teams_FbByTeamMember(context.authorization) - clone = await cloneDetails(context.authorization, botsByUser, clone) - let selectedBot = getSelectedBot(botsByUser.data.data.teams_FbByTeamMember, clone.botId) + let team = await teamQuery(context.authorization) + clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) clone.createDatetime = new Date().valueOf() / 1000|0 clone.active = true diff --git a/server/src/schema/mutations/RemoveCloneMutation.js b/server/src/schema/mutations/RemoveCloneMutation.js index 8d1afaf5e..9dc45173f 100644 --- a/server/src/schema/mutations/RemoveCloneMutation.js +++ b/server/src/schema/mutations/RemoveCloneMutation.js @@ -12,8 +12,8 @@ import { import { Clone } from '../../models' import logger from '../../config/logger' import removeKuberneteClone from '../../kubernetes/removeClone' -import teams_FbByTeamMember from '../../graphQLCalls/teams_FbByTeamMember' -import { isDefined, getSelectedBot } from '../../config/utils' +import teamQuery from '../../graphQLCalls/teamQuery' +import { isDefined } from '../../config/utils' import cloneDetails from '../cloneDetails' const args = { @@ -37,8 +37,8 @@ const resolve = async (parent, { id }, context) => { throw new OperationsError('You are not authorized to remove this clone.') } - let botsByUser = await teams_FbByTeamMember(context.authorization) - clone = await cloneDetails(context.authorization, botsByUser, clone) + let team = await teamQuery(context.authorization) + clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) logger.debug('removeClone -> Removing Clone from Kubernates.') await removeKuberneteClone(clone) diff --git a/server/src/schema/mutations/UpdateExecutionSummary.js b/server/src/schema/mutations/UpdateExecutionSummary.js index b666b455c..235f84c41 100644 --- a/server/src/schema/mutations/UpdateExecutionSummary.js +++ b/server/src/schema/mutations/UpdateExecutionSummary.js @@ -7,12 +7,12 @@ import { } from 'graphql' import { - OperationsError } from '../../errors' import { Clone } from '../../models' import logger from '../../config/logger' +import teamQuery from '../../graphQLCalls/teamQuery' const args = { id: { type: new GraphQLNonNull(GraphQLID) }, @@ -29,34 +29,57 @@ const args = { const resolve = async (parent, { id, summaryDate, buyAverage, sellAverage, marketRate, combinedProfitsA, combinedProfitsB, assetA, assetB - }) => { + }, context) => { + logger.debug('UpdateExecutionSummary -> Entering Function.') - const query = { _id: id } - const options = { new: true } - const update = { - summaryDate: summaryDate, - buyAverage: buyAverage, - sellAverage: sellAverage, - marketRate: marketRate, - combinedProfitsA: combinedProfitsA, - combinedProfitsB: combinedProfitsB, - assetA: assetA, - assetB: assetB + if (!context.userId) { + throw new AuthentificationError() } - let sucessful - await Clone.findOneAndUpdate(query, update, options, (err, doc) => { - if (err){ - throw new OperationsError(err) - } else { - logger.debug('Execution summary updated') - sucessful = true - } - }) + try{ + let sucessful - if(sucessful){ - return 'Execution summary updated.' + let clone = await Clone.findOne( { + _id: id, + active: true + }) + + let team = await teamQuery(context.authorization) + clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) + + logger.debug('removeClone -> Removing Clone from Kubernates.') + await removeKuberneteClone(clone) + + const query = { _id: id } + const options = { new: true } + const update = { + summaryDate: summaryDate, + buyAverage: buyAverage, + sellAverage: sellAverage, + marketRate: marketRate, + combinedProfitsA: combinedProfitsA, + combinedProfitsB: combinedProfitsB, + assetA: assetA, + assetB: assetB + } + + await Clone.update(query, update, (err) => { + if (err){ + logger.error('Error updating execution summary on the database. %s', err.stack) + throw new OperationsError(err.message) + } else { + logger.debug('Execution summary updated.') + sucessful = true + } + }) + + if(sucessful){ + return 'Execution summary updated.' + } + } catch (error) { + logger.error('Error updating the execution summary. %s', error.stack) + throw new OperationsError(error.message) } } diff --git a/server/src/schema/queries/HistoryClones.js b/server/src/schema/queries/HistoryClones.js index a37557ae7..bdf853f3c 100644 --- a/server/src/schema/queries/HistoryClones.js +++ b/server/src/schema/queries/HistoryClones.js @@ -3,7 +3,8 @@ import { } from 'graphql' import { - AuthentificationError + AuthentificationError, + OperationsError } from '../../errors' import { CloneType } from '../types' @@ -11,14 +12,14 @@ import { Clone } from '../../models' import logger from '../../config/logger' import getKuberneteClonePodStatus from '../../kubernetes/getClonePodStatus' import getKuberneteClonePodLogs from '../../kubernetes/getClonePodLogs' -import teams_FbByTeamMember from '../../graphQLCalls/teams_FbByTeamMember' import cloneDetails from '../cloneDetails' +import teamQuery from '../../graphQLCalls/teamQuery' const args = {} const resolve = async(parent, args, context) => { - logger.debug('History Clones -> Entering Fuction.') - + logger.debug('Retrieving History Clones.') + try{ if (!context.userId) { throw new AuthentificationError() } @@ -26,18 +27,19 @@ const resolve = async(parent, args, context) => { let clones = await Clone.find({ authId: context.userId, active: false - }) - - // TODO Refactor this code once financial beings api is ready - // Authorization is handled by the teams module - let botsByUser = await teams_FbByTeamMember(context.authorization) + }).sort({createDatetime: -1}) for (var i = 0; i < clones.length; i++) { - clones[i] = await cloneDetails(context.authorization, botsByUser, clones[i]) + let team = await teamQuery(context.authorization, clones[i].teamId) + clones[i] = await cloneDetails(context.userId, team.data.data.teams_TeamById, clones[i]) clones[i].botType = clones[i].kind // Only for listing we show the teams value } return clones + } catch (err){ + logger.error('Retrieving History Clones error: %s', err.stack) + throw new OperationsError('There has been an error retrieving history clones.') + } } const query = { diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js index 74e0868b4..66d283e80 100644 --- a/server/src/schema/queries/ListClones.js +++ b/server/src/schema/queries/ListClones.js @@ -12,7 +12,6 @@ import { Clone } from '../../models' import logger from '../../config/logger' import getCloneStatus from '../../kubernetes/getClonePodStatus' import getCloneLogs from '../../kubernetes/getClonePodLogs' -import teams_FbByTeamMember from '../../graphQLCalls/teams_FbByTeamMember' import cloneDetails from '../cloneDetails' const args = {} @@ -27,14 +26,11 @@ const resolve = async(parent, args, context) => { let clones = await Clone.find({ authId: context.userId, active: true - }) - - // TODO Refactor this code once financial beings api is ready - // Authorization is handled by the teams module - let botsByUser = await teams_FbByTeamMember(context.authorization) + }).sort({createDatetime: -1}) for (var i = 0; i < clones.length; i++) { - clones[i] = await cloneDetails(context.authorization, botsByUser, clones[i]) + let team = await teamQuery(context.authorization, clones[i].teamId) + clones[i] = await cloneDetails(context.userId, team.data.data.teams_TeamById, clones[i]) let state = await getCloneStatus(clones[i].cloneName) clones[i].state = state.substring(1, state.length-1) let lastLogs = await getCloneLogs(clones[i].cloneName) From 226d79126532c0b872d6548161f2eda379e8e26d Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Fri, 1 Feb 2019 18:29:47 -0300 Subject: [PATCH 20/40] Fixing issue on add clone --- client/package.json | 2 +- client/src/views/Clone/Add/index.js | 17 +++++++++++------ server/src/schema/mutations/AddCloneMutation.js | 2 +- server/src/schema/types/input/Clone.js | 1 + 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/client/package.json b/client/package.json index c0a9f35e9..c0907e711 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.7", + "version": "0.0.8", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index 06781d9ad..54d42e0a8 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -43,7 +43,8 @@ class AddClone extends Component { stateDatetime: 0, createDatetime: 0, runAsTeam: false, - financialBeings:[], + teams: [], + teamId: '', // Indicator Bot startYear: 2019, @@ -131,7 +132,7 @@ class AddClone extends Component { ) } else{ - this.financialBeings = data.teams_FbByTeamMember.fb + this.teams = data.teams_FbByTeamMember } return ( @@ -408,10 +409,11 @@ class AddClone extends Component { } setSelectedBot(botId){ - if(isDefined(this.financialBeings)){ - for (var i = 0; i < this.financialBeings.length; i++) { - if(this.financialBeings[i].id === botId){ - this.setState({selectedBot:this.financialBeings[i]}) + if(isDefined(this.teams)){ + for (var i = 0; i < this.teams.fb.length; i++) { + if(this.teams.fb[i].id === botId){ + this.setState({selectedBot:this.teams.fb[i]}) + this.setState({teamId:this.teams.id}) return } } @@ -439,6 +441,7 @@ class AddClone extends Component { async createCloneOnServer(){ let variables = { clone:{ + teamId: this.state.teamId, botId: this.state.selectedBot.id, mode: this.state.mode, resumeExecution: this.state.resumeExecution, @@ -496,6 +499,8 @@ class AddClone extends Component { createDatetime: 0, runAsTeam: false, processName: '', + teams: [], + teamId: '', //Error handlers nameError: false, diff --git a/server/src/schema/mutations/AddCloneMutation.js b/server/src/schema/mutations/AddCloneMutation.js index dd14e931e..c9ca557a1 100644 --- a/server/src/schema/mutations/AddCloneMutation.js +++ b/server/src/schema/mutations/AddCloneMutation.js @@ -50,7 +50,7 @@ const resolve = async(parent, { clone }, context) => { } try{ - let team = await teamQuery(context.authorization) + let team = await teamQuery(context.authorization, clone.teamId) clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) clone.createDatetime = new Date().valueOf() / 1000|0 clone.active = true diff --git a/server/src/schema/types/input/Clone.js b/server/src/schema/types/input/Clone.js index 9d20ec6ac..0db3cdf0d 100644 --- a/server/src/schema/types/input/Clone.js +++ b/server/src/schema/types/input/Clone.js @@ -10,6 +10,7 @@ const Type = new GraphQLInputObjectType({ name: 'CloneInput', description: 'Payload for clone input', fields: () => ({ + teamId: { type: new GraphQLNonNull(GraphQLString) }, botId: { type: new GraphQLNonNull(GraphQLString) }, mode: { type: GraphQLString }, resumeExecution: { type: GraphQLBoolean }, From f80c366ceb653d2e84ab7553dd4f94f3ade0460d Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 2 Feb 2019 10:19:01 -0300 Subject: [PATCH 21/40] Fixing missing import --- server/src/schema/queries/ListClones.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js index 66d283e80..48dd48a00 100644 --- a/server/src/schema/queries/ListClones.js +++ b/server/src/schema/queries/ListClones.js @@ -13,6 +13,7 @@ import logger from '../../config/logger' import getCloneStatus from '../../kubernetes/getClonePodStatus' import getCloneLogs from '../../kubernetes/getClonePodLogs' import cloneDetails from '../cloneDetails' +import teamQuery from '../../graphQLCalls/teamQuery' const args = {} From 727189b0e3b86db4a4cdd47dd34d1dd1f0da9483 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 2 Feb 2019 10:27:33 -0300 Subject: [PATCH 22/40] Adding team id parameter --- server/src/schema/mutations/RemoveCloneMutation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/schema/mutations/RemoveCloneMutation.js b/server/src/schema/mutations/RemoveCloneMutation.js index 9dc45173f..2efa137c0 100644 --- a/server/src/schema/mutations/RemoveCloneMutation.js +++ b/server/src/schema/mutations/RemoveCloneMutation.js @@ -37,7 +37,7 @@ const resolve = async (parent, { id }, context) => { throw new OperationsError('You are not authorized to remove this clone.') } - let team = await teamQuery(context.authorization) + let team = await teamQuery(context.authorization, clone.teamId) clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) logger.debug('removeClone -> Removing Clone from Kubernates.') From f7b8f8dbe6a8e3fa890ec4a418eac919ed89135d Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 2 Feb 2019 10:48:33 -0300 Subject: [PATCH 23/40] Adding teamId parameter --- server/src/schema/mutations/UpdateExecutionSummary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/schema/mutations/UpdateExecutionSummary.js b/server/src/schema/mutations/UpdateExecutionSummary.js index 235f84c41..44c524e0b 100644 --- a/server/src/schema/mutations/UpdateExecutionSummary.js +++ b/server/src/schema/mutations/UpdateExecutionSummary.js @@ -45,7 +45,7 @@ const resolve = async (parent, active: true }) - let team = await teamQuery(context.authorization) + let team = await teamQuery(context.authorization, clone.teamId) clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) logger.debug('removeClone -> Removing Clone from Kubernates.') From 41d68bcf014b561c5546ff0905e0729b053cd87b Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 2 Feb 2019 11:39:42 -0300 Subject: [PATCH 24/40] Fixing execution summary update --- .../mutations/UpdateExecutionSummary.js | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/server/src/schema/mutations/UpdateExecutionSummary.js b/server/src/schema/mutations/UpdateExecutionSummary.js index 44c524e0b..1c889198d 100644 --- a/server/src/schema/mutations/UpdateExecutionSummary.js +++ b/server/src/schema/mutations/UpdateExecutionSummary.js @@ -13,6 +13,9 @@ import { import { Clone } from '../../models' import logger from '../../config/logger' import teamQuery from '../../graphQLCalls/teamQuery' +import cloneDetails from '../cloneDetails' +import removeKuberneteClone from '../../kubernetes/removeClone' +import { isDefined } from '../../config/utils' const args = { id: { type: new GraphQLNonNull(GraphQLID) }, @@ -45,10 +48,14 @@ const resolve = async (parent, active: true }) + if(!isDefined(clone)){ + return "Clone not found." + } + let team = await teamQuery(context.authorization, clone.teamId) clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) - logger.debug('removeClone -> Removing Clone from Kubernates.') + logger.debug('UpdateExecutionSummary -> Removing Clone from Kubernates.') await removeKuberneteClone(clone) const query = { _id: id } @@ -61,22 +68,24 @@ const resolve = async (parent, combinedProfitsA: combinedProfitsA, combinedProfitsB: combinedProfitsB, assetA: assetA, - assetB: assetB + assetB: assetB, + active: false } - await Clone.update(query, update, (err) => { + logger.debug('UpdateExecutionSummary -> Updating clone on database.') + await Clone.update(query, update, options, (err, clone) => { if (err){ logger.error('Error updating execution summary on the database. %s', err.stack) - throw new OperationsError(err.message) + throw err } else { logger.debug('Execution summary updated.') sucessful = true } }) - if(sucessful){ + if(sucessful) return 'Execution summary updated.' - } + } catch (error) { logger.error('Error updating the execution summary. %s', error.stack) throw new OperationsError(error.message) From fe9ab91b3247f3e2d29024b05b50b7f1cbdc2789 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 2 Feb 2019 11:53:35 -0300 Subject: [PATCH 25/40] Adding pre-shared key authorization --- server/src/schema/cloneDetails.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/schema/cloneDetails.js b/server/src/schema/cloneDetails.js index 56d2d5f93..ec4ee89e2 100644 --- a/server/src/schema/cloneDetails.js +++ b/server/src/schema/cloneDetails.js @@ -5,7 +5,8 @@ import { AutorizationError } from '../errors' const cloneDetails = async(authId, team, clone) => { logger.debug('Retrieving clone details.') - if(!isAuthorized(team, authId)){ + // TODO Pending improvement by authorization module + if(!(authId === process.env.AACLOUD_ID || isAuthorized(team, authId))){ logger.debug('User %s is not authorized to manage team %s.', authId, team.slug ) throw new AutorizationError() } From 278df1fea089cf78421fb23961b4fd21d24198aa Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Tue, 5 Feb 2019 21:21:29 -0300 Subject: [PATCH 26/40] Adding support for indicator bots --- client/package.json | 2 +- client/src/GraphQL/Calls/teams.js | 4 ++-- client/src/GraphQL/models.js | 15 ++++++++++++++- client/src/views/Clone/Add/index.js | 18 ++++++++++-------- 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/client/package.json b/client/package.json index c0907e711..fd2bcc7d4 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.8", + "version": "0.0.9", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/GraphQL/Calls/teams.js b/client/src/GraphQL/Calls/teams.js index 7329d3e07..0a27afd3c 100644 --- a/client/src/GraphQL/Calls/teams.js +++ b/client/src/GraphQL/Calls/teams.js @@ -1,8 +1,8 @@ import gql from 'graphql-tag'; export const GET_ALL_TEAMS_QUERY = gql` - query Teams_FbByTeamMember { - teams_FbByTeamMember { + query { + teams_TeamsByOwner { id name slug diff --git a/client/src/GraphQL/models.js b/client/src/GraphQL/models.js index 474df1fcf..50dd8a322 100644 --- a/client/src/GraphQL/models.js +++ b/client/src/GraphQL/models.js @@ -1,8 +1,21 @@ const types = [ 'Live', 'Competition', 'Backtest' ] -const startModes = [ 'All Months', 'One Month', 'No Time' ] const availableMonths = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] +const startModes = [ + { + name: 'All Months', + value: 'allMonths' + }, + { + name: 'One Month', + value: 'oneMonth' + }, + { + name: 'No Time', + value: 'noTime' + } +] const exchanges = [ { id: '1', diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index 54d42e0a8..e86bee6eb 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -119,7 +119,7 @@ class AddClone extends Component { ) } - if(!isDefined(data.teams_FbByTeamMember)){ + if(!isDefined(data.teams_TeamsByOwner)){ return ( @@ -289,8 +291,8 @@ class AddClone extends Component { fullWidth > {startModes.map(option => ( - - {option} + + {option.name} ))} From 2387aca8a2ba6d1622ab9c1bdfe3ef309a080c1f Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Tue, 5 Feb 2019 21:47:56 -0300 Subject: [PATCH 27/40] Adding lowercase kubernertes job names --- server/src/schema/cloneDetails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/schema/cloneDetails.js b/server/src/schema/cloneDetails.js index ec4ee89e2..74849e583 100644 --- a/server/src/schema/cloneDetails.js +++ b/server/src/schema/cloneDetails.js @@ -17,7 +17,7 @@ const cloneDetails = async(authId, team, clone) => { clone.kind = selectedBot.kind clone.teamSlug = team.slug clone.botSlug = selectedBot.slug - clone.cloneName = clone.teamSlug + '-' + clone.botSlug + '-' + clone.mode.toLowerCase() + clone.cloneName = (clone.teamSlug + '-' + clone.botSlug + '-' + clone.mode).toLowerCase() clone.teamName = team.name clone.botName = selectedBot.name clone.botAvatar = selectedBot.avatar From 709a6cb770a5992242afda61a24e2b1215ba20d4 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Tue, 5 Feb 2019 21:51:08 -0300 Subject: [PATCH 28/40] Fixing multiple teams and mulitple fbs --- client/package.json | 2 +- client/src/views/Clone/Add/index.js | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/client/package.json b/client/package.json index fd2bcc7d4..a3f97354c 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.9", + "version": "0.0.11", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index e86bee6eb..0a90f3fcb 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -146,7 +146,7 @@ class AddClone extends Component { > { data.teams_TeamsByOwner.map(team => ( - team.map(financialBeing => ( + team.fb.map(financialBeing => ( {team.name + '/' + financialBeing.name} @@ -373,7 +373,7 @@ class AddClone extends Component { - You will your clone information under Active Clones until it finishes the execution, then it will moved to the History. + You will be able to query your clone information under Active Clones until it finishes the execution, then it will moved to the History.
@@ -412,11 +412,13 @@ class AddClone extends Component { setSelectedBot(botId){ if(isDefined(this.teams)){ - for (var i = 0; i < this.teams.fb.length; i++) { - if(this.teams.fb[i].id === botId){ - this.setState({selectedBot:this.teams.fb[i]}) - this.setState({teamId:this.teams.id}) - return + for (var j = 0; j < this.teams.length; j++) { + for (var i = 0; i < this.teams[j].fb.length; i++) { + if(this.teams[j].fb[i].id === botId){ + this.setState({selectedBot:this.teams[j].fb[i]}) + this.setState({teamId:this.teams[j].id}) + return + } } } } From 2cda4ad606a4b06c673a911bc52bc478689315ee Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Wed, 6 Feb 2019 17:03:36 -0300 Subject: [PATCH 29/40] Adding support for multiple bot execution --- client/package.json | 2 +- client/src/GraphQL/Fragments/clone.js | 1 + client/src/GraphQL/models.js | 29 ++++----- client/src/views/Clone/Add/index.js | 19 +++--- client/src/views/Clone/List/ListClones.js | 5 +- server/src/enums/CloneMode.js | 6 +- server/src/kubernetes/createClone.js | 59 +++++++++---------- server/src/kubernetes/removeClone.js | 4 +- server/src/models/clone.js | 6 +- server/src/schema/cloneDetails.js | 2 - .../src/schema/mutations/AddCloneMutation.js | 14 ----- server/src/schema/queries/ListClones.js | 5 +- server/src/schema/types/CloneType.js | 1 + server/src/schema/types/input/Clone.js | 2 +- 14 files changed, 74 insertions(+), 81 deletions(-) diff --git a/client/package.json b/client/package.json index a3f97354c..9081461b8 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.11", + "version": "0.0.12", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/GraphQL/Fragments/clone.js b/client/src/GraphQL/Fragments/clone.js index 26a5aab59..42022c0bd 100644 --- a/client/src/GraphQL/Fragments/clone.js +++ b/client/src/GraphQL/Fragments/clone.js @@ -29,5 +29,6 @@ export const clone = gql` botName botAvatar teamAvatar + processName } `; diff --git a/client/src/GraphQL/models.js b/client/src/GraphQL/models.js index 50dd8a322..c7a5df51b 100644 --- a/client/src/GraphQL/models.js +++ b/client/src/GraphQL/models.js @@ -1,21 +1,18 @@ -const types = [ 'Live', 'Competition', 'Backtest' ] const availableMonths = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] -const startModes = [ - { - name: 'All Months', - value: 'allMonths' - }, - { - name: 'One Month', - value: 'oneMonth' - }, - { - name: 'No Time', - value: 'noTime' - } -] +const tradingStartModes ={ + live: "Live", + competition: "Competition", + backtest: "Backtest" +} + +const indicatorStartModes = { + allMonths: "All Months", + oneMonth: "One Month", + noTime: "No Time" +} + const exchanges = [ { id: '1', @@ -25,4 +22,4 @@ const exchanges = [ -export { types, exchanges, startModes, availableMonths } +export { tradingStartModes, exchanges, indicatorStartModes, availableMonths } diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index 0a90f3fcb..3c03a4fb5 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -9,7 +9,7 @@ import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import styles from './styles' -import { types, startModes, availableMonths, processNames } from '../../../GraphQL/models' +import { tradingStartModes, indicatorStartModes, availableMonths, processNames } from '../../../GraphQL/models' import { isDefined, getIndicatorYears } from '../../../utils' import { @@ -176,9 +176,9 @@ class AddClone extends Component { error={this.state.modeError} fullWidth > - {types.map(option => ( + {Object.keys(tradingStartModes).map(option => ( - {option} + {tradingStartModes[option]} ))} @@ -290,9 +290,9 @@ class AddClone extends Component { error={this.state.modeError} fullWidth > - {startModes.map(option => ( - - {option.name} + {Object.keys(indicatorStartModes).map(option => ( + + {indicatorStartModes[option]} ))} @@ -449,7 +449,6 @@ class AddClone extends Component { botId: this.state.selectedBot.id, mode: this.state.mode, resumeExecution: this.state.resumeExecution, - runAsTeam: this.state.runAsTeam, botType: this.getBotTypeFromKind(this.state.selectedBot.kind) } } @@ -460,11 +459,15 @@ class AddClone extends Component { variables.clone.waitTime = this.state.waitTime } - if(this.state.selectedBot.kind !== "TRADER"){ + if(this.state.selectedBot.kind === "TRADER"){ + variables.clone.runAsTeam = this.state.runAsTeam + variables.clone.processName = 'Trading-Process' + } else { variables.clone.processName = this.state.processName variables.clone.startYear = this.state.startYear variables.clone.endYear = this.state.endYear variables.clone.month = this.state.month + variables.clone.runAsTeam = true } return this.props.addCloneMutation({ diff --git a/client/src/views/Clone/List/ListClones.js b/client/src/views/Clone/List/ListClones.js index a939f8fbd..7eea28c18 100644 --- a/client/src/views/Clone/List/ListClones.js +++ b/client/src/views/Clone/List/ListClones.js @@ -14,6 +14,7 @@ import { import Avatar from '@material-ui/core/Avatar'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; +import { tradingStartModes, indicatorStartModes } from '../../../GraphQL/models' import { isDefined, toLocalTime } from '../../../utils' import classNames from 'classnames' import { withStyles } from '@material-ui/core/styles' @@ -45,7 +46,9 @@ class ListClones extends Component { {clone.botName}
- {clone.mode} + + { clone.processName } / { clone.botType === 'TRADER' ? tradingStartModes[clone.mode] : indicatorStartModes[clone.mode] } +
diff --git a/server/src/enums/CloneMode.js b/server/src/enums/CloneMode.js index 2a3109f26..0a463100f 100644 --- a/server/src/enums/CloneMode.js +++ b/server/src/enums/CloneMode.js @@ -1,6 +1,6 @@ -export const LIVE = 'Live' -export const BACKTEST = 'Backtest' -export const COMPETITION = 'Competition' +export const LIVE = 'live' +export const BACKTEST = 'backtest' +export const COMPETITION = 'competition' export const ALL_MONTHS = 'allMonths' export const ONE_MONTH = 'oneMonth' export const NO_TIME = 'noTime' diff --git a/server/src/kubernetes/createClone.js b/server/src/kubernetes/createClone.js index d71856faf..6565b6368 100644 --- a/server/src/kubernetes/createClone.js +++ b/server/src/kubernetes/createClone.js @@ -4,15 +4,16 @@ import { KubernateError } from '../errors' import { Client, config } from 'kubernetes-client' // Get base Deployment config import deploymentManifest from '../config/clone-deployment.json' -import { BACKTEST} from '../enums/CloneMode'; +import { BACKTEST, NO_TIME } from '../enums/CloneMode' +import { TRADER, INDICATOR, EXTRACTION } from '../enums/BotTypes' const createClone = async (clone) => { try { - logger.debug("createClone %s", clone.cloneName) + logger.debug("createClone %s", clone.id) const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) // Make changes to base deployment config - deploymentManifest.metadata.name = clone.cloneName + deploymentManifest.metadata.name = clone.id logger.debug("createClone Environment and Auth Configuration.") let env = [] @@ -68,7 +69,7 @@ const createClone = async (clone) => { }) env.push({ "name": "START_MODE", - "value": clone.mode.toLowerCase() + "value": clone.mode }) env.push({ "name": "RUN_AS_TEAM", @@ -78,13 +79,13 @@ const createClone = async (clone) => { "name": "USER_LOGGED_IN", "value": clone.userLoggedIn }) + env.push({ + "name": "PROCESS", + "value": clone.processName + }) logger.debug("createClone Trading Configuration.") - if(clone.botType === 'Trading'){ - env.push({ - "name": "PROCESS", - "value": 'Trading-Process' - }) + if(clone.botType === TRADER ){ env.push({ "name": "RESUME_EXECUTION", "value": clone.resumeExecution.toString() @@ -104,27 +105,25 @@ const createClone = async (clone) => { "value": clone.waitTime.toString() }) } - } else if(clone.botType === 'Indicator' || clone.botType === 'Extraction'){ - env.push({ - "name": "PROCESS", - "value": clone.processName - }) - env.push({ - "name": "MIN_YEAR", - "value": isDefined(clone.startYear) ? clone.startYear.toString() : '' - }) - env.push({ - "name": "MAX_YEAR", - "value": isDefined(clone.endYear) ? clone.endYear.toString() : '' - }) - env.push({ - "name": "MONTH", - "value": isDefined(clone.month) ? clone.month.toString() : '' - }) - env.push({ - "name": "INTERVAL", - "value": isDefined(clone.interval) ? clone.interval.toString() : '' - }) + } else if(clone.botType === INDICATOR || clone.botType === EXTRACTION ){ + if(clone.mode !== NO_TIME){ + env.push({ + "name": "MIN_YEAR", + "value": isDefined(clone.startYear) ? clone.startYear.toString() : '' + }) + env.push({ + "name": "MAX_YEAR", + "value": isDefined(clone.endYear) ? clone.endYear.toString() : '' + }) + env.push({ + "name": "MONTH", + "value": isDefined(clone.month) ? clone.month.toString() : '' + }) + env.push({ + "name": "INTERVAL", + "value": isDefined(clone.interval) ? clone.interval.toString() : '' + }) + } } deploymentManifest.spec.template.spec.containers[0].env = env diff --git a/server/src/kubernetes/removeClone.js b/server/src/kubernetes/removeClone.js index dc6f2e10f..e6c908c10 100644 --- a/server/src/kubernetes/removeClone.js +++ b/server/src/kubernetes/removeClone.js @@ -4,12 +4,12 @@ import { Client, config } from 'kubernetes-client' const removeClone = async (clone) => { try { - logger.debug("removeClone %s", clone.cloneName) + logger.debug("removeClone %s", clone.id) const client = new Client({config: config.fromKubeconfig(), version: '1.9'}) let query = { "qs":{ - "labelSelector": "job-name=" + clone.cloneName + "labelSelector": "job-name=" + clone.id } } diff --git a/server/src/models/clone.js b/server/src/models/clone.js index 45532d5b9..e69df8262 100644 --- a/server/src/models/clone.js +++ b/server/src/models/clone.js @@ -48,7 +48,11 @@ const cloneSchema = new Schema({ combinedProfitsA: Number, combinedProfitsB: Number, assetA: String, - assetB: String + assetB: String, + processName: { + type: String, + required: true, + } }) const Clone = mongoose.model('Clone', cloneSchema) diff --git a/server/src/schema/cloneDetails.js b/server/src/schema/cloneDetails.js index 74849e583..08cee99be 100644 --- a/server/src/schema/cloneDetails.js +++ b/server/src/schema/cloneDetails.js @@ -5,7 +5,6 @@ import { AutorizationError } from '../errors' const cloneDetails = async(authId, team, clone) => { logger.debug('Retrieving clone details.') - // TODO Pending improvement by authorization module if(!(authId === process.env.AACLOUD_ID || isAuthorized(team, authId))){ logger.debug('User %s is not authorized to manage team %s.', authId, team.slug ) throw new AutorizationError() @@ -17,7 +16,6 @@ const cloneDetails = async(authId, team, clone) => { clone.kind = selectedBot.kind clone.teamSlug = team.slug clone.botSlug = selectedBot.slug - clone.cloneName = (clone.teamSlug + '-' + clone.botSlug + '-' + clone.mode).toLowerCase() clone.teamName = team.name clone.botName = selectedBot.name clone.botAvatar = selectedBot.avatar diff --git a/server/src/schema/mutations/AddCloneMutation.js b/server/src/schema/mutations/AddCloneMutation.js index c9ca557a1..a0f9db02e 100644 --- a/server/src/schema/mutations/AddCloneMutation.js +++ b/server/src/schema/mutations/AddCloneMutation.js @@ -35,20 +35,6 @@ const resolve = async(parent, { clone }, context) => { throw new WrongArgumentsError('The bot type selected is not valid.') } - let existingClone = await Clone.find( - { - authId: context.userId, - mode: clone.mode, - botId: clone.botId, - active: true - }) - - logger.debug('addClone -> Checking existing clone.') - if(existingClone.length > 0){ - throw new OperationsError('You can only have one active clone by mode. Remove the' - + ' existing clone of type: ' + clone.mode + ' and try again.') - } - try{ let team = await teamQuery(context.authorization, clone.teamId) clone = await cloneDetails(context.userId, team.data.data.teams_TeamById, clone) diff --git a/server/src/schema/queries/ListClones.js b/server/src/schema/queries/ListClones.js index 48dd48a00..0d15db13e 100644 --- a/server/src/schema/queries/ListClones.js +++ b/server/src/schema/queries/ListClones.js @@ -30,11 +30,12 @@ const resolve = async(parent, args, context) => { }).sort({createDatetime: -1}) for (var i = 0; i < clones.length; i++) { + logger.debug('List Clones -> clone: %j',clones[i] ) let team = await teamQuery(context.authorization, clones[i].teamId) clones[i] = await cloneDetails(context.userId, team.data.data.teams_TeamById, clones[i]) - let state = await getCloneStatus(clones[i].cloneName) + let state = await getCloneStatus(clones[i].id) clones[i].state = state.substring(1, state.length-1) - let lastLogs = await getCloneLogs(clones[i].cloneName) + let lastLogs = await getCloneLogs(clones[i].id) clones[i].lastLogs = lastLogs.substring(1, lastLogs.length-1) clones[i].botType = clones[i].kind // Only for listing we show the teams value } diff --git a/server/src/schema/types/CloneType.js b/server/src/schema/types/CloneType.js index 5a653c35e..dfcd10a68 100644 --- a/server/src/schema/types/CloneType.js +++ b/server/src/schema/types/CloneType.js @@ -24,6 +24,7 @@ const CloneType = new GraphQLObjectType({ createDatetime: {type: GraphQLInt}, lastLogs: {type: GraphQLString}, runAsTeam: {type: GraphQLBoolean}, + processName: { type: GraphQLString }, summaryDate: {type: GraphQLInt}, buyAverage: {type: GraphQLFloat}, sellAverage: {type: GraphQLFloat}, diff --git a/server/src/schema/types/input/Clone.js b/server/src/schema/types/input/Clone.js index 0db3cdf0d..a4a6d95ec 100644 --- a/server/src/schema/types/input/Clone.js +++ b/server/src/schema/types/input/Clone.js @@ -22,7 +22,7 @@ const Type = new GraphQLInputObjectType({ endYear: { type: GraphQLInt }, month: { type: GraphQLInt }, interval: { type: GraphQLInt }, - processName: { type: GraphQLString }, + processName: { type: new GraphQLNonNull(GraphQLString) }, botType: { type: new GraphQLNonNull(GraphQLString) } }) }); From f1802101dff66ba17f5d900e103176a8ee8d5638 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 11:18:49 -0300 Subject: [PATCH 30/40] New AACloud version --- server/src/config/clone-deployment.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/config/clone-deployment.json b/server/src/config/clone-deployment.json index bc90901a1..3988dd4ef 100644 --- a/server/src/config/clone-deployment.json +++ b/server/src/config/clone-deployment.json @@ -14,7 +14,7 @@ "containers": [ { "name": "aadev", - "image": "benme/aadev:v3.6", + "image": "benme/aadev:v3.7", "command": ["node", "Run.js"], "env": [ ] From 06de97ce6ba4d4620876cfbccdb517f90e4162ed Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 12:15:54 -0300 Subject: [PATCH 31/40] New cloud version --- server/src/config/clone-deployment.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/config/clone-deployment.json b/server/src/config/clone-deployment.json index 3988dd4ef..1a1729cc5 100644 --- a/server/src/config/clone-deployment.json +++ b/server/src/config/clone-deployment.json @@ -14,7 +14,7 @@ "containers": [ { "name": "aadev", - "image": "benme/aadev:v3.7", + "image": "benme/aadev:v3.8", "command": ["node", "Run.js"], "env": [ ] From 518dedc21fc0c4824ab20877d429deff78332528 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 12:16:12 -0300 Subject: [PATCH 32/40] Fixing mode selection --- client/package.json | 2 +- client/src/views/Clone/Add/index.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/package.json b/client/package.json index 9081461b8..43a89253f 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.12", + "version": "0.0.13", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index 3c03a4fb5..3db9ccfdd 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -183,7 +183,7 @@ class AddClone extends Component { ))} - { this.state.mode == "Backtest" && + { this.state.mode == "backtest" && - { this.state.mode === "All Months" && + { this.state.mode === "allMonths" && } - { this.state.mode === "One Month" && + { this.state.mode === "oneMonth" && Date: Sat, 9 Feb 2019 13:26:17 -0300 Subject: [PATCH 33/40] Removing unused files --- server/src/schema/types/AuditLogType.js | 29 ------------------- server/src/schema/types/ExchangeType.js | 16 ---------- .../src/schema/types/SignedTransactionType.js | 15 ---------- 3 files changed, 60 deletions(-) delete mode 100644 server/src/schema/types/AuditLogType.js delete mode 100644 server/src/schema/types/ExchangeType.js delete mode 100644 server/src/schema/types/SignedTransactionType.js diff --git a/server/src/schema/types/AuditLogType.js b/server/src/schema/types/AuditLogType.js deleted file mode 100644 index 646ffd307..000000000 --- a/server/src/schema/types/AuditLogType.js +++ /dev/null @@ -1,29 +0,0 @@ -import { - GraphQLObjectType, - GraphQLID, - GraphQLString, - GraphQLInt -} from 'graphql' - -import { - KeyType -} from './index' - -const AuditLogType = new GraphQLObjectType({ - name: 'AuditLog', - fields: () => ({ - id: {type: GraphQLID}, - authId: {type: GraphQLID}, - action: {type: GraphQLString}, - details: {type: GraphQLString}, - date: {type: GraphQLInt}, - key: { - type: KeyType, - resolve (parent, args) { - return parent.key - } - } - }) -}) - -export default AuditLogType diff --git a/server/src/schema/types/ExchangeType.js b/server/src/schema/types/ExchangeType.js deleted file mode 100644 index ddafd5a16..000000000 --- a/server/src/schema/types/ExchangeType.js +++ /dev/null @@ -1,16 +0,0 @@ -import { - GraphQLObjectType, - GraphQLID, - GraphQLString -} from 'graphql' - -const ExchangeType = new GraphQLObjectType({ - name: 'Exchange', - fields: () => ({ - id: {type: GraphQLID}, - name: {type: GraphQLString}, - description: {type: GraphQLString} - }) -}) - -export default ExchangeType diff --git a/server/src/schema/types/SignedTransactionType.js b/server/src/schema/types/SignedTransactionType.js deleted file mode 100644 index ddee4a918..000000000 --- a/server/src/schema/types/SignedTransactionType.js +++ /dev/null @@ -1,15 +0,0 @@ -import { - GraphQLObjectType, - GraphQLString -} from 'graphql' - -const SignedTransactionType = new GraphQLObjectType({ - name: 'SignedTransaction', - fields: () => ({ - key: {type: GraphQLString}, - signature: {type: GraphQLString}, - date: {type: GraphQLString} - }) -}) - -export default SignedTransactionType From 767e910187bf7eede899b7a6708ecb3edd80865e Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 13:29:15 -0300 Subject: [PATCH 34/40] Adding GetClones method --- server/src/schema/queries/GetClones.js | 55 ++++++++++++++++++++++ server/src/schema/queries/index.js | 4 +- server/src/schema/types/GetClonesType.js | 14 ++++++ server/src/schema/types/index.js | 4 +- server/src/schema/types/input/GetClones.js | 15 ++++++ server/src/schema/types/input/index.js | 4 +- 6 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 server/src/schema/queries/GetClones.js create mode 100644 server/src/schema/types/GetClonesType.js create mode 100644 server/src/schema/types/input/GetClones.js diff --git a/server/src/schema/queries/GetClones.js b/server/src/schema/queries/GetClones.js new file mode 100644 index 000000000..45a43eadf --- /dev/null +++ b/server/src/schema/queries/GetClones.js @@ -0,0 +1,55 @@ +import { + GraphQLList, + GraphQLID +} from 'graphql' + +import { + OperationsError +} from '../../errors' + +import { GetClonesInputType } from '../types/input'; +import { GetClonesType } from '../types' +import { Clone } from '../../models' +import logger from '../../config/logger' + +import { isDefined } from '../../config/utils' + +const args = { + cloneIdList: {type: GetClonesInputType} +} + +const resolve = async(parent, { cloneIdList }, context) => { + logger.debug('Get Clones -> Entering Fuction. %j', cloneIdList) + try{ + let clones = [] + for (var i = 0; i < cloneIdList.cloneIdList.length; i++) { + let existingClone = await Clone.findOne({ + _id: cloneIdList.cloneIdList[i] + }) + + if(isDefined(existingClone)){ + clones.push({ + id: cloneIdList.cloneIdList[i], + teamId: existingClone.teamId, + botId: existingClone.botId + }) + } + + } + + return clones + } catch (err){ + logger.error('Get Clones error: %s', err.stack) + throw new OperationsError('There has been an error getting the clones.') + } +} + +const query = { + getClones: { + type: new GraphQLList(GetClonesType), + args, + resolve + } +} + +export default query diff --git a/server/src/schema/queries/index.js b/server/src/schema/queries/index.js index 11d48edc5..bdf6ff629 100644 --- a/server/src/schema/queries/index.js +++ b/server/src/schema/queries/index.js @@ -4,12 +4,14 @@ import { import ListClones from './ListClones' import HistoryClones from './HistoryClones' +import GetClones from './GetClones' const RootQuery = new GraphQLObjectType({ name: 'RootQueryType', fields: Object.assign( ListClones, - HistoryClones + HistoryClones, + GetClones ) }) diff --git a/server/src/schema/types/GetClonesType.js b/server/src/schema/types/GetClonesType.js new file mode 100644 index 000000000..f3bdebe35 --- /dev/null +++ b/server/src/schema/types/GetClonesType.js @@ -0,0 +1,14 @@ +import { + GraphQLObjectType, + GraphQLID +} from 'graphql' + +const GetClonesType = new GraphQLObjectType({ + name: 'GetClones', + fields: () => ({ + id: {type: GraphQLID}, + teamId: {type: GraphQLID}, + botId: {type: GraphQLID} + }) +}) +export default GetClonesType diff --git a/server/src/schema/types/index.js b/server/src/schema/types/index.js index 4c2b8e040..189212b48 100644 --- a/server/src/schema/types/index.js +++ b/server/src/schema/types/index.js @@ -1,5 +1,7 @@ import CloneType from './CloneType' +import GetClonesType from './GetClonesType' export { - CloneType + CloneType, + GetClonesType } diff --git a/server/src/schema/types/input/GetClones.js b/server/src/schema/types/input/GetClones.js new file mode 100644 index 000000000..dcdcd1fad --- /dev/null +++ b/server/src/schema/types/input/GetClones.js @@ -0,0 +1,15 @@ +import { + GraphQLInputObjectType, + GraphQLList, + GraphQLID +} from 'graphql'; + +const Type = new GraphQLInputObjectType({ + name: 'GetClonesInput', + description: 'Allows to receive a list of clone ids to get information', + fields: () => ({ + cloneIdList: { type: new GraphQLList(GraphQLID) } + }) +}); + +export default Type; diff --git a/server/src/schema/types/input/index.js b/server/src/schema/types/input/index.js index e51b0ca74..6e528aa15 100644 --- a/server/src/schema/types/input/index.js +++ b/server/src/schema/types/input/index.js @@ -1,5 +1,7 @@ import CloneInputType from './Clone' +import GetClonesInputType from './GetClones' export { - CloneInputType + CloneInputType, + GetClonesInputType }; From 0ddd35a460fbbd9ae877340180dbab2b1664696e Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 14:59:10 -0300 Subject: [PATCH 35/40] Simplifying input --- server/src/schema/queries/GetClones.js | 32 ++++++++++++++-------- server/src/schema/types/input/GetClones.js | 15 ---------- server/src/schema/types/input/index.js | 4 +-- 3 files changed, 22 insertions(+), 29 deletions(-) delete mode 100644 server/src/schema/types/input/GetClones.js diff --git a/server/src/schema/queries/GetClones.js b/server/src/schema/queries/GetClones.js index 45a43eadf..7125edc7b 100644 --- a/server/src/schema/queries/GetClones.js +++ b/server/src/schema/queries/GetClones.js @@ -7,31 +7,41 @@ import { OperationsError } from '../../errors' -import { GetClonesInputType } from '../types/input'; import { GetClonesType } from '../types' import { Clone } from '../../models' import logger from '../../config/logger' - +import mongoose from 'mongoose' import { isDefined } from '../../config/utils' const args = { - cloneIdList: {type: GetClonesInputType} + cloneIdList: { type: new GraphQLList(GraphQLID) } } const resolve = async(parent, { cloneIdList }, context) => { logger.debug('Get Clones -> Entering Fuction. %j', cloneIdList) try{ let clones = [] - for (var i = 0; i < cloneIdList.cloneIdList.length; i++) { - let existingClone = await Clone.findOne({ - _id: cloneIdList.cloneIdList[i] - }) + for (var i = 0; i < cloneIdList.length; i++) { - if(isDefined(existingClone)){ + if(mongoose.Types.ObjectId.isValid(cloneIdList[i])){ + let existingClone = await Clone.findOne({ + _id: cloneIdList[i] + }) + + if(isDefined(existingClone)){ + clones.push({ + id: cloneIdList[i], + teamId: existingClone.teamId, + botId: existingClone.botId + }) + }else{ + clones.push({ + id: cloneIdList[i] + }) + } + } else { clones.push({ - id: cloneIdList.cloneIdList[i], - teamId: existingClone.teamId, - botId: existingClone.botId + id: cloneIdList[i] }) } diff --git a/server/src/schema/types/input/GetClones.js b/server/src/schema/types/input/GetClones.js deleted file mode 100644 index dcdcd1fad..000000000 --- a/server/src/schema/types/input/GetClones.js +++ /dev/null @@ -1,15 +0,0 @@ -import { - GraphQLInputObjectType, - GraphQLList, - GraphQLID -} from 'graphql'; - -const Type = new GraphQLInputObjectType({ - name: 'GetClonesInput', - description: 'Allows to receive a list of clone ids to get information', - fields: () => ({ - cloneIdList: { type: new GraphQLList(GraphQLID) } - }) -}); - -export default Type; diff --git a/server/src/schema/types/input/index.js b/server/src/schema/types/input/index.js index 6e528aa15..e51b0ca74 100644 --- a/server/src/schema/types/input/index.js +++ b/server/src/schema/types/input/index.js @@ -1,7 +1,5 @@ import CloneInputType from './Clone' -import GetClonesInputType from './GetClones' export { - CloneInputType, - GetClonesInputType + CloneInputType }; From 654ebc2f1a068b9a54cf6645373a1d974579cb41 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 18:06:31 -0300 Subject: [PATCH 36/40] Updating libraries --- server/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/package.json b/server/package.json index d4b618543..3b1379b86 100644 --- a/server/package.json +++ b/server/package.json @@ -13,10 +13,9 @@ "babel-cli": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-2": "^6.24.1", - "nodemon": "^1.18.4" + "nodemon": "^1.18.10" }, "dependencies": { - "@kubernetes/client-node": "^0.7.2", "axios": "^0.18.0", "cors": "^2.8.4", "dotenv": "^6.0.0", @@ -24,7 +23,6 @@ "express-graphql": "^0.6.12", "graphql": "^14.0.0", "kubernetes-client": "^6.5.1", - "lodash": "^4.17.10", "mongoose": "^5.2.12", "winston": "^3.1.0" } From ee581281d3f6acedb6ed7697bd629fc58ef574eb Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sat, 9 Feb 2019 18:10:24 -0300 Subject: [PATCH 37/40] Dependency updates --- server/package-lock.json | 1099 +++++++++++++++++++++----------------- 1 file changed, 612 insertions(+), 487 deletions(-) diff --git a/server/package-lock.json b/server/package-lock.json index 5edfdc7d8..5be8d7666 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -4,76 +4,11 @@ "lockfileVersion": 1, "requires": true, "dependencies": { - "@kubernetes/client-node": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-0.7.2.tgz", - "integrity": "sha512-lIHRApAhhSfA3muxAv4XTcNVokDfyfZP4NWwWKmK2kFBUNSDfGFmoIuJRKWL2s3aNMjbblwGrQo2YGZvtSo8nw==", - "requires": { - "base-64": "0.1.0", - "bluebird": "3.5.3", - "byline": "5.0.0", - "execa": "1.0.0", - "isomorphic-ws": "4.0.1", - "js-yaml": "3.12.0", - "jsonpath": "1.0.0", - "request": "2.88.0", - "shelljs": "0.8.3", - "tslib": "1.9.3", - "underscore": "1.9.1", - "ws": "6.1.2" - }, - "dependencies": { - "bluebird": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz", - "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==" - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "1.0.5", - "path-key": "2.0.1", - "semver": "5.5.1", - "shebang-command": "1.2.0", - "which": "1.3.1" - } - }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "requires": { - "cross-spawn": "6.0.5", - "get-stream": "4.1.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" - } - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "requires": { - "pump": "3.0.0" - } - } - } - }, "@sindresorhus/is": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==" }, - "JSONSelect": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/JSONSelect/-/JSONSelect-0.4.0.tgz", - "integrity": "sha1-oI7cxn6z/L6Z7WMIVTRKDPKCu40=" - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -1033,7 +968,8 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "base": { "version": "0.11.2", @@ -1102,11 +1038,6 @@ } } }, - "base-64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", - "integrity": "sha1-eAqZyE59YAJgNhURxId2E78k9rs=" - }, "base64url": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", @@ -1156,7 +1087,7 @@ "requires": { "ansi-align": "2.0.0", "camelcase": "4.1.0", - "chalk": "2.4.1", + "chalk": "2.4.2", "cli-boxes": "1.0.0", "string-width": "2.1.1", "term-size": "1.2.0", @@ -1173,9 +1104,9 @@ } }, "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "3.2.1", @@ -1198,6 +1129,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "1.0.0", "concat-map": "0.0.1" @@ -1230,11 +1162,6 @@ "resolved": "https://registry.npmjs.org/bson/-/bson-1.0.9.tgz", "integrity": "sha512-IQX9/h7WdMBIW/q/++tGd+emQr0XMdeZ6icnT/74Xk9fnabWn+gZgpE+9V+gujL3hhJOoNrnDVY7tWdzc7NUTg==" }, - "byline": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/byline/-/byline-5.0.0.tgz", - "integrity": "sha1-dBxSFkaOrcRXsDQQEYrXfejB3bE=" - }, "bytes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", @@ -1346,11 +1273,6 @@ "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", "dev": true }, - "cjson": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/cjson/-/cjson-0.2.1.tgz", - "integrity": "sha1-c82KrWXZ4VBfmvF0TTt5wVJ2gqU=" - }, "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", @@ -1482,7 +1404,8 @@ "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "configstore": { "version": "3.1.2", @@ -1494,7 +1417,7 @@ "graceful-fs": "4.1.11", "make-dir": "1.3.0", "unique-string": "1.0.0", - "write-file-atomic": "2.3.0", + "write-file-atomic": "2.4.2", "xdg-basedir": "3.0.0" } }, @@ -1568,7 +1491,7 @@ "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "lru-cache": "4.0.2", + "lru-cache": "4.1.5", "shebang-command": "1.2.0", "which": "1.3.1" } @@ -1614,11 +1537,6 @@ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" - }, "deepmerge": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", @@ -1725,22 +1643,11 @@ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.0.0.tgz", "integrity": "sha512-FlWbnhgjtwD+uNLUGHbMykMOYQaTivdHEmYwAKFjn6GKe/CqY0fNae93ZHTd20snh9ZLr8mTzIL9m0APQ1pjQg==" }, - "duplexer": { - "version": "0.1.1", - "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", - "dev": true - }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" }, - "ebnf-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/ebnf-parser/-/ebnf-parser-0.1.10.tgz", - "integrity": "sha1-zR9rpHfFY4xAyX7ZtXLbW6tdgzE=" - }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -1774,14 +1681,6 @@ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "requires": { - "once": "1.4.0" - } - }, "env-variable": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.4.tgz", @@ -1803,59 +1702,22 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, - "escodegen": { - "version": "0.0.21", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-0.0.21.tgz", - "integrity": "sha1-U9ZSz6EDA4gnlFilJmxf/HCcY8M=", - "requires": { - "esprima": "1.0.4", - "estraverse": "0.0.4", - "source-map": "0.5.7" - }, - "dependencies": { - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" - } - } - }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, - "estraverse": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-0.0.4.tgz", - "integrity": "sha1-AaCTLf7ldGhKWYr1pnw7+bZCjbI=" - }, "esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true }, "etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" }, - "event-stream": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.6.tgz", - "integrity": "sha512-dGXNg4F/FgVzlApjzItL+7naHutA3fDqbV/zAZqDDlXTjiMnQmZKu+prImWKszeBM5UQeGvAl3u1wBiKeDh61g==", - "dev": true, - "requires": { - "duplexer": "0.1.1", - "flatmap-stream": "0.1.1", - "from": "0.1.7", - "map-stream": "0.0.7", - "pause-stream": "0.0.11", - "split": "1.0.1", - "stream-combiner": "0.2.2", - "through": "2.3.8" - } - }, "execa": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", @@ -1990,11 +1852,6 @@ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" - }, "fast-safe-stringify": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.6.tgz", @@ -2040,12 +1897,6 @@ "unpipe": "1.0.0" } }, - "flatmap-stream": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.1.tgz", - "integrity": "sha512-lAq4tLbm3sidmdCN8G3ExaxH7cUCtP5mgDvrYowsx84dcYkJJ4I28N7gkxA6+YlSXzaGLJYIDEi9WGfXzMiXdw==", - "dev": true - }, "fluent-openapi": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fluent-openapi/-/fluent-openapi-1.0.0.tgz", @@ -2122,12 +1973,6 @@ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, "from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -2146,7 +1991,8 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "fsevents": { "version": "1.2.4", @@ -2700,6 +2546,7 @@ "version": "7.1.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, "requires": { "fs.realpath": "1.0.0", "inflight": "1.0.6", @@ -2746,7 +2593,7 @@ }, "got": { "version": "6.7.1", - "resolved": "http://registry.npmjs.org/got/-/got-6.7.1.tgz", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", "dev": true, "requires": { @@ -2947,6 +2794,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "1.4.0", "wrappy": "1.0.2" @@ -2963,11 +2811,6 @@ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true }, - "interpret": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", - "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=" - }, "into-stream": { "version": "3.1.0", "resolved": "http://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", @@ -3137,7 +2980,7 @@ }, "is-obj": { "version": "1.0.1", - "resolved": "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", "dev": true }, @@ -3226,7 +3069,8 @@ "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true }, "isobject": { "version": "2.1.0", @@ -3238,11 +3082,6 @@ "isarray": "1.0.0" } }, - "isomorphic-ws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", - "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==" - }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", @@ -3262,37 +3101,6 @@ "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.2.2.tgz", "integrity": "sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==" }, - "jison": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/jison/-/jison-0.4.13.tgz", - "integrity": "sha1-kEFwfWIkE2f1iDRTK58ZwsNvrHg=", - "requires": { - "JSONSelect": "0.4.0", - "cjson": "0.2.1", - "ebnf-parser": "0.1.10", - "escodegen": "0.0.21", - "esprima": "1.0.4", - "jison-lex": "0.2.1", - "lex-parser": "0.1.4", - "nomnom": "1.5.2" - }, - "dependencies": { - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" - } - } - }, - "jison-lex": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/jison-lex/-/jison-lex-0.2.1.tgz", - "integrity": "sha1-rEuBXozOUTLrErXfz+jXB7iETf4=", - "requires": { - "lex-parser": "0.1.4", - "nomnom": "1.5.2" - } - }, "js-tokens": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", @@ -3345,29 +3153,6 @@ "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", "dev": true }, - "jsonpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.0.0.tgz", - "integrity": "sha1-Rc2dTE0NaCXZC9fkD4PxGCsT3Qc=", - "requires": { - "esprima": "1.2.2", - "jison": "0.4.13", - "static-eval": "2.0.0", - "underscore": "1.7.0" - }, - "dependencies": { - "esprima": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.2.2.tgz", - "integrity": "sha1-dqD9Zvz+FU/SkmZ9wmQBl1CxZXs=" - }, - "underscore": { - "version": "1.7.0", - "resolved": "http://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", - "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=" - } - } - }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -3439,20 +3224,6 @@ "package-json": "4.0.1" } }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "requires": { - "prelude-ls": "1.1.2", - "type-check": "0.3.2" - } - }, - "lex-parser": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/lex-parser/-/lex-parser-0.1.4.tgz", - "integrity": "sha1-ZMTwJfF/1Tv7RXY/rrFvAVp0dVA=" - }, "lodash": { "version": "4.17.10", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", @@ -3468,12 +3239,6 @@ "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=" }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true - }, "lodash.fill": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/lodash.fill/-/lodash.fill-3.4.0.tgz", @@ -3558,9 +3323,9 @@ "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" }, "lru-cache": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz", - "integrity": "sha1-HRdnnAac2l0ECZGgnbwsDbN35V4=", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "dev": true, "requires": { "pseudomap": "1.0.2", @@ -3582,12 +3347,6 @@ "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", "dev": true }, - "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", - "dev": true - }, "map-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", @@ -3668,6 +3427,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "1.1.11" } @@ -3867,11 +3627,6 @@ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, "node-forge": { "version": "0.7.6", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.6.tgz", @@ -3900,16 +3655,16 @@ } }, "nodemon": { - "version": "1.18.5", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-1.18.5.tgz", - "integrity": "sha512-8806dC8dfBlbxQmqNOSEeay/qlbddKvFzxIGNxnPtxUlTtH77xsrC66RnA3M47HCSgMgE5bj+U586o50RowXBg==", + "version": "1.18.10", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-1.18.10.tgz", + "integrity": "sha512-we51yBb1TfEvZamFchRgcfLbVYgg0xlGbyXmOtbBzDwxwgewYS/YbZ5tnlnsH51+AoSTTsT3A2E/FloUbtH8cQ==", "dev": true, "requires": { - "chokidar": "2.0.4", + "chokidar": "2.1.0", "debug": "3.2.6", "ignore-by-default": "1.0.1", "minimatch": "3.0.4", - "pstree.remy": "1.1.0", + "pstree.remy": "1.1.6", "semver": "5.5.1", "supports-color": "5.5.0", "touch": "3.1.0", @@ -3925,6 +3680,17 @@ "requires": { "micromatch": "3.1.10", "normalize-path": "2.1.1" + }, + "dependencies": { + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + } } }, "arr-diff": { @@ -3969,21 +3735,20 @@ } }, "chokidar": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", - "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.0.tgz", + "integrity": "sha512-5t6G2SH8eO6lCvYOoUpaRnF5Qfd//gd7qJAkwRUw9qlGVkiQ13uwQngqbWWaurOsaAm9+kUGbITADxt6H0XFNQ==", "dev": true, "requires": { "anymatch": "2.0.0", "async-each": "1.0.1", "braces": "2.3.2", - "fsevents": "1.2.4", + "fsevents": "1.2.7", "glob-parent": "3.1.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", "is-glob": "4.0.0", - "lodash.debounce": "4.0.8", - "normalize-path": "2.1.1", + "normalize-path": "3.0.0", "path-is-absolute": "1.0.1", "readdirp": "2.2.1", "upath": "1.1.0" @@ -4166,6 +3931,535 @@ } } }, + "fsevents": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.7.tgz", + "integrity": "sha512-Pxm6sI2MeBD7RdD12RYsqaP0nMiwx8eZBXCa6z2L+mRHm2DYrOYwihmhjpkdjUHwQhslWQjRpEgNq4XvBmaAuw==", + "dev": true, + "optional": true, + "requires": { + "nan": "2.11.1", + "node-pre-gyp": "0.10.3" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "2.3.5" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.3" + } + }, + "glob": { + "version": "7.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.24", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safer-buffer": "2.1.2" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimatch": "3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "minipass": { + "version": "2.3.5", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.1.2", + "yallist": "3.0.3" + } + }, + "minizlib": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "2.3.5" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "needle": { + "version": "2.2.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.9", + "iconv-lite": "0.4.24", + "sax": "1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.2.4", + "nopt": "4.0.1", + "npm-packlist": "1.2.0", + "npmlog": "4.1.2", + "rc": "1.2.8", + "rimraf": "2.6.3", + "semver": "5.6.0", + "tar": "4.4.8" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1.1.1", + "osenv": "0.1.5" + } + }, + "npm-bundled": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.5" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.5", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "0.6.0", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.2", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "rimraf": { + "version": "2.6.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "glob": "7.1.3" + } + }, + "safe-buffer": { + "version": "5.1.2", + "bundled": true, + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "dev": true, + "optional": true + }, + "semver": { + "version": "5.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.1.2" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "4.4.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chownr": "1.1.1", + "fs-minipass": "1.2.5", + "minipass": "2.3.5", + "minizlib": "1.2.1", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.2", + "yallist": "3.0.3" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "3.0.3", + "bundled": true, + "dev": true + } + } + }, "glob-parent": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", @@ -4284,6 +4578,12 @@ "to-regex": "3.0.2" } }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -4295,27 +4595,6 @@ } } }, - "nomnom": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.5.2.tgz", - "integrity": "sha1-9DRUSKhTz71cDSYyDyR3qwUm/i8=", - "requires": { - "colors": "0.5.1", - "underscore": "1.1.7" - }, - "dependencies": { - "colors": { - "version": "0.5.1", - "resolved": "http://registry.npmjs.org/colors/-/colors-0.5.1.tgz", - "integrity": "sha1-fQAj6usVTo7p/Oddy5I9DtFmd3Q=" - }, - "underscore": { - "version": "1.1.7", - "resolved": "http://registry.npmjs.org/underscore/-/underscore-1.1.7.tgz", - "integrity": "sha1-QLq4S60Z0jAJbo1u9ii/8FXYPbA=" - } - } - }, "nopt": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", @@ -4355,6 +4634,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, "requires": { "path-key": "2.0.1" } @@ -4462,6 +4742,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1.0.2" } @@ -4538,19 +4819,6 @@ } } }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "requires": { - "deep-is": "0.1.3", - "fast-levenshtein": "2.0.6", - "levn": "0.3.0", - "prelude-ls": "1.1.2", - "type-check": "0.3.2", - "wordwrap": "1.0.0" - } - }, "os-homedir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", @@ -4658,7 +4926,8 @@ "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-is-inside": { "version": "1.0.2", @@ -4669,27 +4938,14 @@ "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true }, "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" }, - "pause-stream": { - "version": "0.0.11", - "resolved": "http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dev": true, - "requires": { - "through": "2.3.8" - } - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -4706,11 +4962,6 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", "dev": true }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=" - }, "prepend-http": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", @@ -4744,15 +4995,6 @@ "ipaddr.js": "1.8.0" } }, - "ps-tree": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.1.0.tgz", - "integrity": "sha1-tCGyQUDWID8e08dplrRCewjowBQ=", - "dev": true, - "requires": { - "event-stream": "3.3.6" - } - }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -4764,22 +5006,10 @@ "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" }, "pstree.remy": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.0.tgz", - "integrity": "sha512-q5I5vLRMVtdWa8n/3UEzZX7Lfghzrg9eG2IKk2ENLSofKRCXVqMvMUHxCKgXNaqH/8ebhBxrqftHWnyTFweJ5Q==", - "dev": true, - "requires": { - "ps-tree": "1.1.0" - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "1.4.1", - "once": "1.4.0" - } + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.6.tgz", + "integrity": "sha512-NdF35+QsqD7EgNEI5mkI/X+UwaxVEbQaz9f4IooEmMUv6ZPmlTQYGjBPJGgrlzNdjSvIy4MWMg6Q6vCgBO2K+w==", + "dev": true }, "punycode": { "version": "2.1.1", @@ -4882,7 +5112,7 @@ "dependencies": { "minimist": { "version": "1.2.0", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true } @@ -5189,14 +5419,6 @@ } } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "requires": { - "resolve": "1.8.1" - } - }, "regenerate": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", @@ -5373,14 +5595,6 @@ "semver": "5.5.1" } }, - "resolve": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", - "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", - "requires": { - "path-parse": "1.0.6" - } - }, "resolve-from": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", @@ -5508,6 +5722,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, "requires": { "shebang-regex": "1.0.0" } @@ -5515,22 +5730,14 @@ "shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, - "shelljs": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.3.tgz", - "integrity": "sha512-fc0BKlAWiLpwZljmOvAOTE/gXawtCoNrP5oaY7KIaQbbyHeQVg01pSEuEGvGh3HEdBU4baCD7wQBwADmM/7f7A==", - "requires": { - "glob": "7.1.3", - "interpret": "1.1.0", - "rechoir": "0.6.2" - } + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true }, "simple-swizzle": { "version": "0.2.2", @@ -5670,7 +5877,8 @@ "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true }, "source-map-resolve": { "version": "0.5.2", @@ -5700,15 +5908,6 @@ "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", "dev": true }, - "split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", - "dev": true, - "requires": { - "through": "2.3.8" - } - }, "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", @@ -5744,44 +5943,6 @@ "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" }, - "static-eval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.0.tgz", - "integrity": "sha512-6flshd3F1Gwm+Ksxq463LtFd1liC77N/PX1FVVc3OzL3hAmo2fwHFbuArkcfi7s9rTNsLEhcRmXGFZhlgy40uw==", - "requires": { - "escodegen": "1.11.0" - }, - "dependencies": { - "escodegen": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", - "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", - "requires": { - "esprima": "3.1.3", - "estraverse": "4.2.0", - "esutils": "2.0.2", - "optionator": "0.8.2", - "source-map": "0.6.1" - } - }, - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=" - }, - "estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true - } - } - }, "static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", @@ -5808,16 +5969,6 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" }, - "stream-combiner": { - "version": "0.2.2", - "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", - "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", - "dev": true, - "requires": { - "duplexer": "0.1.1", - "through": "2.3.8" - } - }, "strict-uri-encode": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", @@ -5869,8 +6020,9 @@ }, "strip-eof": { "version": "1.0.0", - "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true }, "strip-json-comments": { "version": "2.0.1", @@ -5898,12 +6050,6 @@ "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" }, - "through": { - "version": "2.3.8", - "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, "timed-out": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", @@ -5993,11 +6139,6 @@ "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" }, - "tslib": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", - "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==" - }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -6011,14 +6152,6 @@ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "requires": { - "prelude-ls": "1.1.2" - } - }, "type-is": { "version": "1.6.16", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", @@ -6037,11 +6170,6 @@ "debug": "2.6.9" } }, - "underscore": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", - "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" - }, "union-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", @@ -6156,7 +6284,7 @@ "dev": true, "requires": { "boxen": "1.3.0", - "chalk": "2.4.1", + "chalk": "2.4.2", "configstore": "3.1.2", "import-lazy": "2.1.0", "is-ci": "1.2.1", @@ -6177,9 +6305,9 @@ } }, "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "3.2.1", @@ -6281,6 +6409,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, "requires": { "isexe": "2.0.0" } @@ -6319,20 +6448,16 @@ "triple-beam": "1.3.0" } }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "write-file-atomic": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", - "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.2.tgz", + "integrity": "sha512-s0b6vB3xIVRLWywa6X9TOMA7k9zio0TMOsl9ZnDkliA/cfJlpHXAscj0gbHVJiTdIuAYpIyqS5GW91fqm6gG5g==", "dev": true, "requires": { "graceful-fs": "4.1.11", From 21a00ecc3f689752ed86dd6dda7e3651d759d80c Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:20:47 -0300 Subject: [PATCH 38/40] Removing config file --- server/.gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/.gitignore b/server/.gitignore index cd5f56af4..f53991e89 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -3,6 +3,8 @@ # dependencies /node_modules +/src/config/clone-deployment.json + # testing /coverage From b4e8ceb147e6ef289e10c66d769440196d487e2e Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:21:45 -0300 Subject: [PATCH 39/40] Update clone-deployment.json --- server/src/config/clone-deployment.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/config/clone-deployment.json b/server/src/config/clone-deployment.json index 1a1729cc5..975b62c1e 100644 --- a/server/src/config/clone-deployment.json +++ b/server/src/config/clone-deployment.json @@ -3,9 +3,9 @@ "kind": "Job", "metadata": { "labels": { - "app": "aadev" + "app": "aacloud" }, - "name": "aadev-deployment" + "name": "aacloud" }, "spec": { "template": { @@ -13,8 +13,8 @@ "restartPolicy": "Never", "containers": [ { - "name": "aadev", - "image": "benme/aadev:v3.8", + "name": "aacloud", + "image": "superalgos/aacloud:v1.0", "command": ["node", "Run.js"], "env": [ ] @@ -23,7 +23,7 @@ }, "metadata": { "labels": { - "app": "aadev" + "app": "aacloud" } } } From 7554a57921c95802320747733ea7f3e85d2cb8aa Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:22:16 -0300 Subject: [PATCH 40/40] Delete clone-deployment.json --- server/src/config/clone-deployment.json | 31 ------------------------- 1 file changed, 31 deletions(-) delete mode 100644 server/src/config/clone-deployment.json diff --git a/server/src/config/clone-deployment.json b/server/src/config/clone-deployment.json deleted file mode 100644 index 975b62c1e..000000000 --- a/server/src/config/clone-deployment.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "apiVersion": "batch/v1", - "kind": "Job", - "metadata": { - "labels": { - "app": "aacloud" - }, - "name": "aacloud" - }, - "spec": { - "template": { - "spec": { - "restartPolicy": "Never", - "containers": [ - { - "name": "aacloud", - "image": "superalgos/aacloud:v1.0", - "command": ["node", "Run.js"], - "env": [ - ] - } - ] - }, - "metadata": { - "labels": { - "app": "aacloud" - } - } - } - } -}