├── .eslintrc ├── .gitignore ├── LICENSE ├── README.md ├── assets ├── 1week-1.png ├── 1week-2.png ├── 2week-1.png ├── 2week-2.png ├── 2week-3.png ├── 3week-1.png ├── 3week-2.png ├── 4week-1.png ├── 4week-2.png ├── 4week-3.png ├── 4week-4.png ├── 4week-5.png ├── 4week-6.png ├── 4week-7.png ├── 5week-1.png ├── 5week-2.png ├── 5week-3.png ├── 5week-4.png ├── 6week-1.png ├── 6week-2.png ├── 6week-3.png ├── 6week-4.png ├── 6week-5.png ├── 7week-1.png ├── 7week-2.png ├── 7week-3.png ├── study-1.jpg └── study-2.jpg ├── jest.config.js ├── package.json ├── src ├── 1week │ ├── 01.js │ ├── 01.test.js │ ├── 02.js │ ├── 02.test.js │ ├── 03.js │ ├── 03.test.js │ ├── 04.js │ ├── 04.test.js │ ├── 05.js │ └── 05.test.js ├── 2week │ ├── LICENSE │ ├── README.md │ ├── app.js │ ├── assets │ │ ├── css │ │ │ ├── app.css │ │ │ └── reset.css │ │ └── image │ │ │ ├── bread │ │ │ ├── 라즈베리_쇼콜라.jpeg │ │ │ ├── 클래식_스콘.jpeg │ │ │ └── 티라미수_크림_데니쉬.jpeg │ │ │ ├── coffee │ │ │ ├── 나이트로_바닐라_크림.jpeg │ │ │ ├── 나이트로_콜드_브루.jpeg │ │ │ ├── 돌체_콜드_브루.jpeg │ │ │ ├── 민트_콜드_브루.jpeg │ │ │ ├── 바닐라_크림_콜드_브루.jpeg │ │ │ ├── 아이스_토피넛_라떼.jpeg │ │ │ ├── 오늘의_커피.jpeg │ │ │ ├── 자바_칩_프라푸치노.jpeg │ │ │ └── 제주_비저링_콜드_브루.jpeg │ │ │ └── svg │ │ │ └── payment.svg │ ├── cypress.config.js │ ├── cypress │ │ ├── e2e │ │ │ └── app.cy.js │ │ ├── fixtures │ │ │ └── example.json │ │ └── support │ │ │ ├── commands.js │ │ │ └── e2e.js │ ├── index.html │ ├── package.json │ └── yarn.lock ├── make-your-package │ ├── .gitignore │ ├── LICENSE │ ├── index.js │ └── package.json ├── refactoring │ ├── example-1.js │ ├── example-2.js │ ├── example-3.js │ ├── 수정전-01_조건부_복잡성.js │ ├── 수정전-02_기능_특정하기.js │ └── 수정전-03_부적절한_평가.js ├── use-rxjs │ ├── package-lock.json │ ├── package.json │ └── src │ │ └── code.js └── utils │ ├── groupBy.test.js │ ├── lib.js │ └── unique.test.js └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "es2021": true, 5 | "node": true 6 | }, 7 | "extends": [ 8 | "eslint:recommended", 9 | "prettier", 10 | "plugin:cypress/recommended" 11 | ], 12 | "plugins": [ 13 | "prettier" 14 | ], 15 | "parser": "@babel/eslint-parser", 16 | "parserOptions": { 17 | "requireConfigFile": false 18 | }, 19 | "rules": { 20 | "no-unused-vars": "off", 21 | "no-undef": "off", 22 | "prettier/prettier": [ 23 | "error", 24 | { 25 | "singleQuote": true, 26 | "semi": true, 27 | "useTabs": false, 28 | "tabWidth": 2, 29 | "trailingComma": "all", 30 | "printWidth": 120, 31 | "bracketSpacing": true, 32 | "arrowParens": "avoid", 33 | "endOfLine": "auto" 34 | } 35 | ] 36 | } 37 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 함수형 프로그래밍 스터디 2 | > 함수형 프로그래밍이라는 개념과 철학을 공부해서 함수형 사고에 초점을 맞춥시다 🔎 3 | 4 | > 자신이 만든 함수형 유틸도 NPM에 배포하여 오픈소스로 관리하는 사이드적인 경험을 가져갑니다 💼 5 | 6 |
7 | 8 | ⛔️ 이 스터디는 팀 과제 중심형입니다. 9 | 10 | ⛔️ **오프라인**으로 진행되며, 모든 과제는 온라인으로 수행됩니다. 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 |
19 | 20 |
21 | 22 | ## 📝 규칙 23 | - 늦어도 괜찮습니다! 참여하시면 적극적으로 임해주세요. 24 | - 과제를 하지 않아도 괜찮지만, 자신이 배우고자 한다면 꼭 수행하길 권장합니다. 25 | - 내가 성장하고자 한다면 다른 이를 피드백하세요. 코드 리뷰 문화는 같이 만들어 갑니다. 26 | - 불참 선언해도 초기에 입금한 스터디 참여비는 반환되지 않고, 온전히 스터디 종료 시 책거리 비용으로 사용됩니다. 27 | 28 |
29 | 30 | ## 🙋‍♂️진행 방식 31 | - [태오](https://github.com/developer-1px)가 간단한 개념을 설명하고, 팀 별로 실습 과제를 수행합니다. `파랑`이 준비한 코드나 문제가 있다면 이를 해결해봅니다. 32 | - [파랑](https://github.com/InSeong-So)이 실습 코드와 복습용 과제를 할당하고, 이를 풀어 팀원들과 공유한 뒤 코드 리뷰를 진행합니다. 33 | - 1부는 **함수형 철학**에 대한 개념 공부, 2부는 **함수형 유틸리티를 구현**하고 그 원리를 파헤치는 시간입니다. 34 | - 팀별 브런치로 운용됩니다. 개인용 파일이 들어가는 경우 `src/하위의 각 폴더/{자신의 이름}`으로 폴더를 구성한 뒤 커밋합니다. 35 | - 주마다 과제 혹은 복습을 할 주제를 드립니다. 수행하는 것은 자신의 몫이나, 적극적으로 해결하려고 하면 많은 것들을 시도할 수 있습니다. 36 | 37 |
38 | 39 | ## 💡 시작하기 40 | > 해당 프로젝트는 npm으로 진행하시면 됩니다. 물론, yarn/pnpm도 상관 없어요. 41 | > - eslint, prettier 등을 기본적으로 제공합니다. 42 | > - 단위 테스트가 가능한 jest, e2e 용 cypress도 함께 설정된 프로젝트 폴더이므로 자유롭게 진행하시면 됩니다. 43 | 44 | ```sh 45 | git clone https://github.com/FECrash/FunctionalProgramming.git 46 | 47 | cd ./FunctionalProgramming 48 | 49 | npm install # 또는 npm i 50 | ``` 51 | 52 | ### 🤔 각 폴더 설명 53 | > 1부 54 | - `src/1week` : 더 좋게 바꿀 수 있는 방법은 무엇일까요? 간단한 함수를 리팩토링 해봅시다. 55 | - `src/2week` : 책에 소개된 로직을 앱으로 구현한 프로젝트입니다. 함수형 철학을 토대로 리팩토링 해봅시다. 56 | - 단, 몇 개의 버그를 남겨 두었습니다. NaN이 된다던가, 무료 배송 아이콘을 어떤 조건에 출력해야 하는지 등... 원하는 대로 확장시켜 보세요. 57 | - 테스트 프레임워크를 잘 활용하여 안전하고 견고한 앱으로 만들어 봅시다. 58 | 59 | > 1부 종료 및 2부를 여는 시간 60 | - `src/make-your-package` : npm에 배포하는 프로세스를 경험하는 프로젝트입니다. 61 | 62 | > 2부 63 | - `src/refactoring` : 리팩토링 전과, 그 후. 어떤 차이가 있을까요? 어떻게 고민하면 좀 더 클린 코드 철학을 녹여서 만들 수 있을까요? 64 | - `src/utils` : 여러분이 구현하는 함수형 유틸리티 코드가 들어갑니다. `map, filter, reduce, unique, groupBy, promise...` 함수형 유틸리티는 결국 어떤 것으로 귀결될까요? 65 | - `src/use-rxjs` : 함수형 유틸리티 중 가장 유명한 RxJS를 직접 사용하고 적용해보면서 지금껏 공부해왔던, 사고해왔던 함수형 프로그래밍이 이런 패러다임이구나! 를 느끼는 경험을 가져가 보세요. 66 | 67 |
68 | 69 | ## 🌟회차별 정리내용(슬랙 이미지) 70 | ### 📢 1주차 71 | 72 |
73 | 74 | 75 | 76 | 77 |
78 | 79 |
80 | 81 | ### 📢 2주차 82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 |
90 | 91 |
92 | 93 | ### 📢 3주차 94 | 95 |
96 | 97 | 98 | 99 | 100 |
101 | 102 |
103 | 104 | ### 📢 4주차 105 | 106 |
107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 |
117 | 118 |
119 | 120 | ### 📢 5주차 121 | 122 |
123 | 124 | 125 | 126 | 127 | 128 | 129 |
130 | 131 |
132 | 133 | > 관련 아티클 134 | - [자바스크립트는 왜 프로토타입을 선택했을까](https://medium.com/@limsungmook/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%8A%94-%EC%99%9C-%ED%94%84%EB%A1%9C%ED%86%A0%ED%83%80%EC%9E%85%EC%9D%84-%EC%84%A0%ED%83%9D%ED%96%88%EC%9D%84%EA%B9%8C-997f985adb42) 135 | - [[개발인턴] script 언어와 type 언어](https://blog.barogo.io/%EA%B0%9C%EB%B0%9C%EC%9D%B8%ED%84%B4-script-%EC%96%B8%EC%96%B4%EC%99%80-type%EC%96%B8%EC%96%B4-96e037b35de0) 136 | - [컴파일러와 인터프리터의 차이점 (비교 차트 포함) - 기술 - 2023](https://ko.surveillancepackages.com/difference-between-compiler-and-interpreter-2a62) 137 | - [함수형 코딩 스터디를 해봅시다!](https://velog.io/@teo/functional-programming-study) 138 | - [console.log 값을 비교할 수 있는 테스트 유틸 by Siny](https://github.com/solmin0302/FunctionalProgramming/pull/2/files#diff-b393fca7fe777ecd1f46de50b82777ae2402dc20a609c6ad4afe7744f8e350d2) 139 | 140 | 141 | 142 | 143 | 144 | - [1. 좋은 함수 만들기 - 부작용과 거리두기](https://jojoldu.tistory.com/697) 145 | 146 |
147 | 148 | ### 📢 6주차 149 | 150 |
151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 |
159 | 160 |
161 | 162 | > 관련 아티클 163 | - [함수형 프로그래밍과 ES6+](https://www.youtube.com/watch?v=4sO0aWTd3yc) 164 | - [[Javascript] 지연 평가(Lazy evaluation) 를 이용한 성능 개선](https://armadillo-dev.github.io/javascript/whit-is-lazy-evaluation/) 165 | - [Iteration protocols - JavaScript | MDN](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Iteration_protocols) 166 | - [[제13회-3] 서비스에 함수형 / 동시성 적용사례](https://youtu.be/Y8d5P9M51xs) 167 | - [marpple/FxTS](https://github.com/marpple/FxTS) 168 | - [[FECrash] ChatGPT를 이용해서 뚝딱 만든 함수형 프로그래밍 5주차 복습 교재](https://velog.io/@teo/FECrash-ChatGPT%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%B4%EC%84%[…]%B0%8D-5%EC%A3%BC%EC%B0%A8-%EB%B3%B5%EC%8A%B5-%EA%B5%90%EC%9E%AC) 169 | - ["테오의 함수형 프로그래밍" 오픈채팅](https://open.kakao.com/o/gtb5620e) 170 | - [Async code: From Vanilla JavaScript to Promises to async/await](https://medium.com/@linlinghao/async-code-from-vanilla-javascript-to-promises-to-async-await-fc440d9818dd) 171 | - [Build a JavaScript Promise | Skilled.dev](https://skilled.dev/course/build-a-javascript-promise) 172 | - [자바스크립트의 Promise 직접 구현하기](https://blog.hyunmin.dev/14) 173 | - [Custom Promise 구현으로 프로미스 파혜치기](https://p-iknow.netlify.app/js/custom-promise) 174 | - [[JS] 자바스크립트 Promise 객체 직접 구현해보기](https://velog.io/@turtle601/JS-%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-Promise-%EA%B0%9D%EC%B2%B4-%EC%A7%81%EC%A0%91-%EA%B5%AC%ED%98%84%ED%95%B4%EB%B3%B4%EA%B8%B0) 175 | 176 |
177 | 178 | ### 📢 7주차 179 | 180 |
181 | 182 | 183 | 184 | 185 | 186 |
187 | 188 |
-------------------------------------------------------------------------------- /assets/1week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/1week-1.png -------------------------------------------------------------------------------- /assets/1week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/1week-2.png -------------------------------------------------------------------------------- /assets/2week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/2week-1.png -------------------------------------------------------------------------------- /assets/2week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/2week-2.png -------------------------------------------------------------------------------- /assets/2week-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/2week-3.png -------------------------------------------------------------------------------- /assets/3week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/3week-1.png -------------------------------------------------------------------------------- /assets/3week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/3week-2.png -------------------------------------------------------------------------------- /assets/4week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-1.png -------------------------------------------------------------------------------- /assets/4week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-2.png -------------------------------------------------------------------------------- /assets/4week-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-3.png -------------------------------------------------------------------------------- /assets/4week-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-4.png -------------------------------------------------------------------------------- /assets/4week-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-5.png -------------------------------------------------------------------------------- /assets/4week-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-6.png -------------------------------------------------------------------------------- /assets/4week-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/4week-7.png -------------------------------------------------------------------------------- /assets/5week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/5week-1.png -------------------------------------------------------------------------------- /assets/5week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/5week-2.png -------------------------------------------------------------------------------- /assets/5week-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/5week-3.png -------------------------------------------------------------------------------- /assets/5week-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/5week-4.png -------------------------------------------------------------------------------- /assets/6week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/6week-1.png -------------------------------------------------------------------------------- /assets/6week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/6week-2.png -------------------------------------------------------------------------------- /assets/6week-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/6week-3.png -------------------------------------------------------------------------------- /assets/6week-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/6week-4.png -------------------------------------------------------------------------------- /assets/6week-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/6week-5.png -------------------------------------------------------------------------------- /assets/7week-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/7week-1.png -------------------------------------------------------------------------------- /assets/7week-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/7week-2.png -------------------------------------------------------------------------------- /assets/7week-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/7week-3.png -------------------------------------------------------------------------------- /assets/study-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/study-1.jpg -------------------------------------------------------------------------------- /assets/study-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/assets/study-2.jpg -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('jest').Config} */ 2 | const config = { 3 | moduleFileExtensions: ['js', 'json', 'jsx'], 4 | transform: { 5 | '^.+\\.(js|jsx)?$': 'babel-jest', 6 | }, 7 | testEnvironment: 'node', 8 | testMatch: ['/**/*.test.(js|jsx|ts|tsx)'], 9 | transformIgnorePatterns: ['/node_modules/'], 10 | verbose: true, 11 | }; 12 | 13 | module.exports = config; 14 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functional-programming", 3 | "version": "1.0.0", 4 | "description": "함수형 프로그래밍 스터디", 5 | "main": "jest.config.js", 6 | "type": "commonjs", 7 | "scripts": { 8 | "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/FECrash/FunctionalProgramming.git" 13 | }, 14 | "keywords": [], 15 | "author": "", 16 | "license": "ISC", 17 | "bugs": { 18 | "url": "https://github.com/FECrash/FunctionalProgramming/issues" 19 | }, 20 | "homepage": "https://github.com/FECrash/FunctionalProgramming#readme", 21 | "devDependencies": { 22 | "@babel/core": "^7.20.5", 23 | "@babel/preset-env": "^7.20.2", 24 | "@babel/eslint-parser": "^7.19.1", 25 | "babel-jest": "^29.3.1", 26 | "jest": "^29.3.1", 27 | "eslint": "^8.29.0", 28 | "eslint-config-prettier": "^8.5.0", 29 | "eslint-plugin-cypress": "^2.12.1", 30 | "eslint-plugin-prettier": "^4.2.1", 31 | "prettier": "^2.8.0" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/1week/01.js: -------------------------------------------------------------------------------- 1 | var x = 2; 2 | 3 | function lineFunction() { 4 | return 2 * x + 3; 5 | } 6 | 7 | exports.lineFunction = lineFunction; 8 | -------------------------------------------------------------------------------- /src/1week/01.test.js: -------------------------------------------------------------------------------- 1 | const { lineFunction } = require('./01.js'); 2 | 3 | describe('lineFunction', () => { 4 | it('case: 1', () => { 5 | expect(lineFunction()).toBe(7); 6 | }); 7 | }); 8 | -------------------------------------------------------------------------------- /src/1week/02.js: -------------------------------------------------------------------------------- 1 | function accumulate(arr) { 2 | let accumulator = 0; 3 | 4 | for (let i = 0; i < arr.length; i++) { 5 | accumulator += arr[i]; 6 | } 7 | 8 | return accumulator; 9 | } 10 | 11 | exports.accumulate = accumulate; 12 | -------------------------------------------------------------------------------- /src/1week/02.test.js: -------------------------------------------------------------------------------- 1 | const { accumulate } = require('./02.js'); 2 | 3 | describe('accumulate', () => { 4 | it('case: 1', () => { 5 | expect(accumulate([1, 2, 3, 4, 5])).toBe(15); 6 | }); 7 | }); 8 | -------------------------------------------------------------------------------- /src/1week/03.js: -------------------------------------------------------------------------------- 1 | function multiDimensionalAccumulate(multiDimensionalArr) { 2 | let accumulator = 0; 3 | 4 | for (let i = 0; i < multiDimensionalArr.length; i++) { 5 | for (let j = 0; j < multiDimensionalArr[i].length; j++) { 6 | if (j < i) { 7 | accumulator += multiDimensionalArr[i][j]; 8 | } 9 | } 10 | } 11 | 12 | return accumulator; 13 | } 14 | 15 | exports.multiDimensionalAccumulate = multiDimensionalAccumulate; 16 | -------------------------------------------------------------------------------- /src/1week/03.test.js: -------------------------------------------------------------------------------- 1 | const { multiDimensionalAccumulate } = require('./03.js'); 2 | 3 | describe('multiDimensionalAccumulate', () => { 4 | it('case: 1', () => { 5 | const multiDimensionalArr = [ 6 | [1, 2, 3, 4, 5, 6, 7, 8, 9], 7 | [9, 8, 7, 6, 5, 4, 3, 2, 1], 8 | [11, 12, 13, 14, 15, 16, 17, 18, 19], 9 | [19, 18, 17, 16, 15, 14, 13, 12, 11], 10 | ]; 11 | expect(multiDimensionalAccumulate(multiDimensionalArr)).toBe(86); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /src/1week/04.js: -------------------------------------------------------------------------------- 1 | function convertToConditionalUpperCase(words) { 2 | let capitalized = []; 3 | 4 | for (let i = 0; i < words.length; i++) { 5 | if (words[i].length > 5) { 6 | capitalized.push(words[i].toUpperCase()); 7 | } else { 8 | capitalized.push(words[i].toLowerCase()); 9 | } 10 | } 11 | 12 | return capitalized; 13 | } 14 | 15 | exports.convertToConditionalUpperCase = convertToConditionalUpperCase; 16 | -------------------------------------------------------------------------------- /src/1week/04.test.js: -------------------------------------------------------------------------------- 1 | const { convertToConditionalUpperCase } = require('./04.js'); 2 | 3 | describe('convertToConditionalUpperCase', () => { 4 | it('case: 1', () => { 5 | const words = ['piece', 'functional', 'of', 'sentence', 'cake', 'perspective']; 6 | expect(convertToConditionalUpperCase(words)).toEqual([ 7 | 'piece', 8 | 'FUNCTIONAL', 9 | 'of', 10 | 'SENTENCE', 11 | 'cake', 12 | 'PERSPECTIVE', 13 | ]); 14 | }); 15 | 16 | it('case: 2', () => { 17 | const words = ['PIECE', 'FUNCTIONAL', 'OF', 'SENTENCE', 'CAKE', 'PERSPECTIVE']; 18 | expect(convertToConditionalUpperCase(words)).toEqual([ 19 | 'piece', 20 | 'FUNCTIONAL', 21 | 'of', 22 | 'SENTENCE', 23 | 'cake', 24 | 'PERSPECTIVE', 25 | ]); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /src/1week/05.js: -------------------------------------------------------------------------------- 1 | function deepCopy(obj) { 2 | return obj; 3 | } 4 | 5 | exports.deepCopy = deepCopy; 6 | -------------------------------------------------------------------------------- /src/1week/05.test.js: -------------------------------------------------------------------------------- 1 | const { deepCopy } = require('./05.js'); 2 | 3 | describe('deepCopy', () => { 4 | it('case: 1', () => { 5 | const obj = {}; 6 | const obj2 = { 7 | 1: undefined, 8 | a: [], 9 | undefined: { 10 | arrayObj: [1, 2, 3, 4, 5], 11 | mapObj: new Map(), 12 | setObj: new Set(), 13 | aaa: { 14 | bbb: { 15 | ccc: { 16 | ddd: { 17 | fp: 'very wonderful!', 18 | }, 19 | }, 20 | }, 21 | }, 22 | }, 23 | date2: new Date(), 24 | children: { 25 | first: 0, 26 | second: '함수형 프로그래밍', 27 | third: new RegExp(), 28 | forth: [ 29 | { 30 | string: 'string', 31 | number: 123, 32 | bool: false, 33 | nul: null, 34 | }, 35 | { 36 | date: new Date(), 37 | undef: undefined, 38 | inf: Infinity, 39 | re: /.*/, 40 | }, 41 | ], 42 | }, 43 | 2: null, 44 | }; 45 | 46 | expect(deepCopy(obj)).toEqual({}); 47 | }); 48 | }); 49 | -------------------------------------------------------------------------------- /src/2week/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | Copyright (c) 2022 by Mahmoud Elmahdi (https://codepen.io/elmahdim/pen/nrWXgX) 204 | 205 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 206 | 207 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 208 | 209 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 210 | 211 | -------------------------------------------------------------------------------- /src/2week/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/README.md -------------------------------------------------------------------------------- /src/2week/app.js: -------------------------------------------------------------------------------- 1 | var shopping_cart = []; 2 | var shopping_cart_total = 0; 3 | 4 | document.querySelectorAll('button').forEach(button => 5 | button.addEventListener('click', ({ target }) => { 6 | const name = target.parentNode.querySelector('.menu-name').textContent; 7 | const category = target.parentNode.querySelector('.category').textContent; 8 | const price = target.parentNode.querySelector('.price').textContent; 9 | 10 | add_item_to_cart({ name, category, price }); 11 | }), 12 | ); 13 | 14 | function add_item_to_cart(item) { 15 | shopping_cart.push(item); 16 | console.log(shopping_cart); 17 | calc_cart_total(); 18 | } 19 | 20 | function calc_cart_total() { 21 | shopping_cart_total = 0; 22 | for (var i = 0; i < shopping_cart.length; i++) { 23 | var item = shopping_cart[i]; 24 | shopping_cart_total += item.price; 25 | } 26 | set_cart_total_dom(); 27 | update_shipping_icons(); 28 | update_tax_dom(); 29 | } 30 | 31 | function set_cart_total_dom() { 32 | document.querySelector('.total-price').textContent = shopping_cart_total; 33 | } 34 | 35 | function update_shipping_icons() { 36 | var buy_buttons = get_buy_buttons_dom(); 37 | for (var i = 0; i < buy_buttons.length; i++) { 38 | var item = buy_buttons[i]; 39 | console.log(item); 40 | if (item.price + shopping_cart_total >= 20) item.show_free_shopping_icon(); 41 | else item.hide_free_shopping_icon(); 42 | } 43 | } 44 | 45 | function get_buy_buttons_dom() { 46 | var buttons = []; 47 | 48 | for (var i = 0; i < shopping_cart.length; i++) { 49 | var item = shopping_cart[i]; 50 | item.show_free_shopping_icon = function () { 51 | console.log('DOM 의 아이콘을 보여줍니다'); 52 | }; 53 | item.hide_free_shopping_icon = function () { 54 | console.log('DOM 의 아이콘을 숨깁니다'); 55 | }; 56 | buttons.push(item); 57 | } 58 | 59 | return buttons; 60 | } 61 | 62 | function update_tax_dom() { 63 | set_tax_dom(shopping_cart_total * 0.1); 64 | } 65 | 66 | function set_tax_dom(value) { 67 | document.querySelector('.total-price').textContent = value; 68 | } 69 | -------------------------------------------------------------------------------- /src/2week/assets/css/app.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | 6 | body { 7 | background-color: #F2EEE9; 8 | font: normal 13px/1.5 Georgia, Serif; 9 | color: #333; 10 | } 11 | 12 | .wrapper { 13 | width: 705px; 14 | margin: 20px auto; 15 | padding: 20px; 16 | } 17 | 18 | .carts { 19 | display: flex; 20 | align-items: flex-end; 21 | flex-direction: column; 22 | } 23 | 24 | h1 { 25 | display: inline-block; 26 | background-color: #333; 27 | color: #fff; 28 | font-size: 20px; 29 | font-weight: normal; 30 | text-transform: uppercase; 31 | padding: 4px 20px; 32 | float: left; 33 | } 34 | 35 | .clear { 36 | clear: both; 37 | } 38 | 39 | .items { 40 | display: block; 41 | margin: 20px 0; 42 | } 43 | 44 | .item { 45 | background-color: #fff; 46 | float: left; 47 | margin: 0 10px 10px 0; 48 | width: 205px; 49 | padding: 10px; 50 | height: 310px; 51 | } 52 | 53 | .item img { 54 | display: block; 55 | margin: auto; 56 | } 57 | 58 | h2 { 59 | font-size: 16px; 60 | display: block; 61 | border-bottom: 1px solid #ccc; 62 | margin: 0 0 10px 0; 63 | padding: 10px 0; 64 | } 65 | 66 | button { 67 | border: none; 68 | border-radius: 8px; 69 | padding: 4px 14px; 70 | background-color: #00A29E; 71 | color: #ffffff; 72 | text-transform: uppercase; 73 | float: right; 74 | margin: 10px 0 5px; 75 | font-weight: bold; 76 | cursor: pointer; 77 | transition: 0.2s ease-in-out; 78 | } 79 | 80 | .icons:hover { 81 | cursor: pointer; 82 | } 83 | 84 | button:hover { 85 | background-color: #00C6C2; 86 | } 87 | 88 | button:active { 89 | background-color: #005857; 90 | } 91 | 92 | span { 93 | float: right; 94 | } 95 | 96 | .shopping-cart { 97 | display: inline-block; 98 | background: url('http://cdn1.iconfinder.com/data/icons/jigsoar-icons/24/_cart.png') no-repeat 0 0; 99 | width: 24px; 100 | height: 24px; 101 | margin: 0 10px 0 0; 102 | } 103 | 104 | .category { 105 | border-radius: 8px; 106 | background-color: #fff; 107 | border: 1px solid #00A29E; 108 | color: #00A29E; 109 | padding: 6px; 110 | } 111 | 112 | p, .price { 113 | height: 20px; 114 | } -------------------------------------------------------------------------------- /src/2week/assets/css/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v2.0 | 20110126 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | } 26 | 27 | /* HTML5 display-role reset for older browsers */ 28 | article, aside, details, figcaption, figure, 29 | footer, header, hgroup, menu, nav, section { 30 | display: block; 31 | } 32 | 33 | body { 34 | line-height: 1; 35 | } 36 | 37 | ol, ul { 38 | list-style: none; 39 | } 40 | 41 | blockquote, q { 42 | quotes: none; 43 | } 44 | 45 | blockquote:before, blockquote:after, 46 | q:before, q:after { 47 | content: ''; 48 | content: none; 49 | } 50 | 51 | table { 52 | border-collapse: collapse; 53 | border-spacing: 0; 54 | } -------------------------------------------------------------------------------- /src/2week/assets/image/bread/라즈베리_쇼콜라.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/bread/라즈베리_쇼콜라.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/bread/클래식_스콘.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/bread/클래식_스콘.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/bread/티라미수_크림_데니쉬.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/bread/티라미수_크림_데니쉬.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/나이트로_바닐라_크림.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/나이트로_바닐라_크림.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/나이트로_콜드_브루.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/나이트로_콜드_브루.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/돌체_콜드_브루.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/돌체_콜드_브루.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/민트_콜드_브루.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/민트_콜드_브루.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/바닐라_크림_콜드_브루.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/바닐라_크림_콜드_브루.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/아이스_토피넛_라떼.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/아이스_토피넛_라떼.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/오늘의_커피.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/오늘의_커피.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/자바_칩_프라푸치노.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/자바_칩_프라푸치노.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/coffee/제주_비저링_콜드_브루.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pagers-org/FunctionalProgramming/aa8ec68c2ac53e766fb4f422465b180f57c0cf5a/src/2week/assets/image/coffee/제주_비저링_콜드_브루.jpeg -------------------------------------------------------------------------------- /src/2week/assets/image/svg/payment.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/2week/cypress.config.js: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require('cypress'); 2 | 3 | module.exports = defineConfig({ 4 | e2e: { 5 | screenshotOnRunFailure: false, 6 | video: false, 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /src/2week/cypress/e2e/app.cy.js: -------------------------------------------------------------------------------- 1 | describe('FECrash 카페', () => { 2 | beforeEach(() => { 3 | cy.visit({ 4 | url: 'http://localhost:5500/src/2week', 5 | method: 'GET', 6 | }); 7 | }); 8 | 9 | context('최초 렌더링 시', () => { 10 | it('장바구니 총 가격은 0원이어야 한다.', () => { 11 | cy.get('.total-price').should('have.text', '0원'); 12 | }); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /src/2week/cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io", 4 | "body": "Fixtures are a great way to mock data for responses to routes" 5 | } -------------------------------------------------------------------------------- /src/2week/cypress/support/commands.js: -------------------------------------------------------------------------------- 1 | // *********************************************** 2 | // This example commands.js shows you how to 3 | // create various custom commands and overwrite 4 | // existing commands. 5 | // 6 | // For more comprehensive examples of custom 7 | // commands please read more here: 8 | // https://on.cypress.io/custom-commands 9 | // *********************************************** 10 | // 11 | // 12 | // -- This is a parent command -- 13 | // Cypress.Commands.add('login', (email, password) => { ... }) 14 | // 15 | // 16 | // -- This is a child command -- 17 | // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) 18 | // 19 | // 20 | // -- This is a dual command -- 21 | // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) 22 | // 23 | // 24 | // -- This will overwrite an existing command -- 25 | // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) 26 | -------------------------------------------------------------------------------- /src/2week/cypress/support/e2e.js: -------------------------------------------------------------------------------- 1 | // *********************************************************** 2 | // This example support/e2e.js is processed and 3 | // loaded automatically before your test files. 4 | // 5 | // This is a great place to put global configuration and 6 | // behavior that modifies Cypress. 7 | // 8 | // You can change the location of this file or turn off 9 | // automatically serving support files with the 10 | // 'supportFile' configuration option. 11 | // 12 | // You can read more here: 13 | // https://on.cypress.io/configuration 14 | // *********************************************************** 15 | 16 | // Import commands.js using ES2015 syntax: 17 | import './commands'; 18 | 19 | // Alternatively you can use CommonJS syntax: 20 | // require('./commands') 21 | -------------------------------------------------------------------------------- /src/2week/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | FECrash 카페 9 | 10 | 11 | 12 | 13 | 14 |
15 |

FECrash 카페

16 |
17 | 18 | 0원 19 |
20 | 21 |
22 |
23 |
24 | item 25 |

C오늘의 커피

26 |

가격: 1,000원

27 | 28 |
29 |
30 | item 31 |

C나이트로 바닐라 크림

32 | 33 |

가격: 3,500원 34 |

35 | 36 |
37 |
38 | item 39 |

C나이트로 콜드 브루

40 | 41 |

가격: 4,000원 42 |

43 | 44 |
45 |
46 | item 47 |

C돌체 콜드 브루

48 | 49 |

가격: 3,900원 50 |

51 | 52 |
53 |
54 | item 55 |

C자바 칩 프라푸치노

56 | 57 |

가격: 5,200원 58 |

59 | 60 |
61 |
62 | item 63 |

C민트 콜드 브루

64 | 65 |

가격: 4,800원 66 |

67 | 68 |
69 |
70 | item 71 |

C바닐라 크림 콜드 브루

72 | 73 |

가격: 4,300원 74 |

75 | 76 |
77 |
78 | item 79 |

C아이스 토피넛 라떼

80 | 81 |

가격: 5,500원 82 |

83 | 84 |
85 |
86 | item 87 |

C제주 비저링 콜드 브루

88 | 89 |

가격: 6,000원 90 |

91 | 92 |
93 |
94 | item 95 |

B라즈베리 쇼콜라

96 | 97 |

가격: 7,000원 98 |

99 | 100 |
101 |
102 | item 103 |

B클래식 스콘

104 | 105 |

가격: 3,300원 106 |

107 | 108 |
109 |
110 | item 111 |

B티라미수 크림 데니쉬

112 | 113 |

가격: 7,200원 114 |

115 | 116 |
117 |
118 |
119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /src/2week/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fecrash-cafe", 3 | "version": "1.0.0", 4 | "main": "app.js", 5 | "license": "MIT", 6 | "scripts": { 7 | "test": "cypress run --browser chrome" 8 | }, 9 | "devDependencies": { 10 | "cypress": "^12.1.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/2week/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@colors/colors@1.5.0": 6 | version "1.5.0" 7 | resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" 8 | integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== 9 | 10 | "@cypress/request@^2.88.10": 11 | version "2.88.10" 12 | resolved "https://registry.yarnpkg.com/@cypress/request/-/request-2.88.10.tgz#b66d76b07f860d3a4b8d7a0604d020c662752cce" 13 | integrity sha512-Zp7F+R93N0yZyG34GutyTNr+okam7s/Fzc1+i3kcqOP8vk6OuajuE9qZJ6Rs+10/1JFtXFYMdyarnU1rZuJesg== 14 | dependencies: 15 | aws-sign2 "~0.7.0" 16 | aws4 "^1.8.0" 17 | caseless "~0.12.0" 18 | combined-stream "~1.0.6" 19 | extend "~3.0.2" 20 | forever-agent "~0.6.1" 21 | form-data "~2.3.2" 22 | http-signature "~1.3.6" 23 | is-typedarray "~1.0.0" 24 | isstream "~0.1.2" 25 | json-stringify-safe "~5.0.1" 26 | mime-types "~2.1.19" 27 | performance-now "^2.1.0" 28 | qs "~6.5.2" 29 | safe-buffer "^5.1.2" 30 | tough-cookie "~2.5.0" 31 | tunnel-agent "^0.6.0" 32 | uuid "^8.3.2" 33 | 34 | "@cypress/xvfb@^1.2.4": 35 | version "1.2.4" 36 | resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.2.4.tgz#2daf42e8275b39f4aa53c14214e557bd14e7748a" 37 | integrity sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q== 38 | dependencies: 39 | debug "^3.1.0" 40 | lodash.once "^4.1.1" 41 | 42 | "@types/node@*": 43 | version "18.11.15" 44 | resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.15.tgz#de0e1fbd2b22b962d45971431e2ae696643d3f5d" 45 | integrity sha512-VkhBbVo2+2oozlkdHXLrb3zjsRkpdnaU2bXmX8Wgle3PUi569eLRaHGlgETQHR7lLL1w7GiG3h9SnePhxNDecw== 46 | 47 | "@types/node@^14.14.31": 48 | version "14.18.34" 49 | resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.34.tgz#cd2e6fa0dbfb08a62582a7b967558e73c32061ec" 50 | integrity sha512-hcU9AIQVHmPnmjRK+XUUYlILlr9pQrsqSrwov/JK1pnf3GTQowVBhx54FbvM0AU/VXGH4i3+vgXS5EguR7fysA== 51 | 52 | "@types/sinonjs__fake-timers@8.1.1": 53 | version "8.1.1" 54 | resolved "https://registry.yarnpkg.com/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz#b49c2c70150141a15e0fa7e79cf1f92a72934ce3" 55 | integrity sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g== 56 | 57 | "@types/sizzle@^2.3.2": 58 | version "2.3.3" 59 | resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.3.tgz#ff5e2f1902969d305225a047c8a0fd5c915cebef" 60 | integrity sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ== 61 | 62 | "@types/yauzl@^2.9.1": 63 | version "2.10.0" 64 | resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.0.tgz#b3248295276cf8c6f153ebe6a9aba0c988cb2599" 65 | integrity sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw== 66 | dependencies: 67 | "@types/node" "*" 68 | 69 | aggregate-error@^3.0.0: 70 | version "3.1.0" 71 | resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" 72 | integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== 73 | dependencies: 74 | clean-stack "^2.0.0" 75 | indent-string "^4.0.0" 76 | 77 | ansi-colors@^4.1.1: 78 | version "4.1.3" 79 | resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" 80 | integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== 81 | 82 | ansi-escapes@^4.3.0: 83 | version "4.3.2" 84 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" 85 | integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== 86 | dependencies: 87 | type-fest "^0.21.3" 88 | 89 | ansi-regex@^5.0.1: 90 | version "5.0.1" 91 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" 92 | integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== 93 | 94 | ansi-styles@^4.0.0, ansi-styles@^4.1.0: 95 | version "4.3.0" 96 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" 97 | integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== 98 | dependencies: 99 | color-convert "^2.0.1" 100 | 101 | arch@^2.2.0: 102 | version "2.2.0" 103 | resolved "https://registry.yarnpkg.com/arch/-/arch-2.2.0.tgz#1bc47818f305764f23ab3306b0bfc086c5a29d11" 104 | integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== 105 | 106 | asn1@~0.2.3: 107 | version "0.2.6" 108 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" 109 | integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== 110 | dependencies: 111 | safer-buffer "~2.1.0" 112 | 113 | assert-plus@1.0.0, assert-plus@^1.0.0: 114 | version "1.0.0" 115 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 116 | integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== 117 | 118 | astral-regex@^2.0.0: 119 | version "2.0.0" 120 | resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" 121 | integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== 122 | 123 | async@^3.2.0: 124 | version "3.2.4" 125 | resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" 126 | integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== 127 | 128 | asynckit@^0.4.0: 129 | version "0.4.0" 130 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 131 | integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== 132 | 133 | at-least-node@^1.0.0: 134 | version "1.0.0" 135 | resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" 136 | integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== 137 | 138 | aws-sign2@~0.7.0: 139 | version "0.7.0" 140 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" 141 | integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== 142 | 143 | aws4@^1.8.0: 144 | version "1.11.0" 145 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" 146 | integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== 147 | 148 | balanced-match@^1.0.0: 149 | version "1.0.2" 150 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" 151 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== 152 | 153 | base64-js@^1.3.1: 154 | version "1.5.1" 155 | resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" 156 | integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== 157 | 158 | bcrypt-pbkdf@^1.0.0: 159 | version "1.0.2" 160 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 161 | integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== 162 | dependencies: 163 | tweetnacl "^0.14.3" 164 | 165 | blob-util@^2.0.2: 166 | version "2.0.2" 167 | resolved "https://registry.yarnpkg.com/blob-util/-/blob-util-2.0.2.tgz#3b4e3c281111bb7f11128518006cdc60b403a1eb" 168 | integrity sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ== 169 | 170 | bluebird@^3.7.2: 171 | version "3.7.2" 172 | resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" 173 | integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== 174 | 175 | brace-expansion@^1.1.7: 176 | version "1.1.11" 177 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 178 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 179 | dependencies: 180 | balanced-match "^1.0.0" 181 | concat-map "0.0.1" 182 | 183 | buffer-crc32@~0.2.3: 184 | version "0.2.13" 185 | resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" 186 | integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== 187 | 188 | buffer@^5.6.0: 189 | version "5.7.1" 190 | resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" 191 | integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== 192 | dependencies: 193 | base64-js "^1.3.1" 194 | ieee754 "^1.1.13" 195 | 196 | cachedir@^2.3.0: 197 | version "2.3.0" 198 | resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-2.3.0.tgz#0c75892a052198f0b21c7c1804d8331edfcae0e8" 199 | integrity sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw== 200 | 201 | caseless@~0.12.0: 202 | version "0.12.0" 203 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 204 | integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== 205 | 206 | chalk@^4.1.0: 207 | version "4.1.2" 208 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" 209 | integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== 210 | dependencies: 211 | ansi-styles "^4.1.0" 212 | supports-color "^7.1.0" 213 | 214 | check-more-types@^2.24.0: 215 | version "2.24.0" 216 | resolved "https://registry.yarnpkg.com/check-more-types/-/check-more-types-2.24.0.tgz#1420ffb10fd444dcfc79b43891bbfffd32a84600" 217 | integrity sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA== 218 | 219 | ci-info@^3.2.0: 220 | version "3.7.0" 221 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.7.0.tgz#6d01b3696c59915b6ce057e4aa4adfc2fa25f5ef" 222 | integrity sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog== 223 | 224 | clean-stack@^2.0.0: 225 | version "2.2.0" 226 | resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" 227 | integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== 228 | 229 | cli-cursor@^3.1.0: 230 | version "3.1.0" 231 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" 232 | integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== 233 | dependencies: 234 | restore-cursor "^3.1.0" 235 | 236 | cli-table3@~0.6.1: 237 | version "0.6.3" 238 | resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.6.3.tgz#61ab765aac156b52f222954ffc607a6f01dbeeb2" 239 | integrity sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg== 240 | dependencies: 241 | string-width "^4.2.0" 242 | optionalDependencies: 243 | "@colors/colors" "1.5.0" 244 | 245 | cli-truncate@^2.1.0: 246 | version "2.1.0" 247 | resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" 248 | integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== 249 | dependencies: 250 | slice-ansi "^3.0.0" 251 | string-width "^4.2.0" 252 | 253 | color-convert@^2.0.1: 254 | version "2.0.1" 255 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 256 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 257 | dependencies: 258 | color-name "~1.1.4" 259 | 260 | color-name@~1.1.4: 261 | version "1.1.4" 262 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 263 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 264 | 265 | colorette@^2.0.16: 266 | version "2.0.19" 267 | resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" 268 | integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== 269 | 270 | combined-stream@^1.0.6, combined-stream@~1.0.6: 271 | version "1.0.8" 272 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" 273 | integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== 274 | dependencies: 275 | delayed-stream "~1.0.0" 276 | 277 | commander@^5.1.0: 278 | version "5.1.0" 279 | resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae" 280 | integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== 281 | 282 | common-tags@^1.8.0: 283 | version "1.8.2" 284 | resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" 285 | integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== 286 | 287 | concat-map@0.0.1: 288 | version "0.0.1" 289 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 290 | integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== 291 | 292 | core-util-is@1.0.2: 293 | version "1.0.2" 294 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 295 | integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== 296 | 297 | cross-spawn@^7.0.0: 298 | version "7.0.3" 299 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" 300 | integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== 301 | dependencies: 302 | path-key "^3.1.0" 303 | shebang-command "^2.0.0" 304 | which "^2.0.1" 305 | 306 | cypress@^12.1.0: 307 | version "12.1.0" 308 | resolved "https://registry.yarnpkg.com/cypress/-/cypress-12.1.0.tgz#1fdaa631bc30df466dc9505154616f4cf69dbd4b" 309 | integrity sha512-7fz8N84uhN1+ePNDsfQvoWEl4P3/VGKKmAg+bJQFY4onhA37Ys+6oBkGbNdwGeC7n2QqibNVPhk8x3YuQLwzfw== 310 | dependencies: 311 | "@cypress/request" "^2.88.10" 312 | "@cypress/xvfb" "^1.2.4" 313 | "@types/node" "^14.14.31" 314 | "@types/sinonjs__fake-timers" "8.1.1" 315 | "@types/sizzle" "^2.3.2" 316 | arch "^2.2.0" 317 | blob-util "^2.0.2" 318 | bluebird "^3.7.2" 319 | buffer "^5.6.0" 320 | cachedir "^2.3.0" 321 | chalk "^4.1.0" 322 | check-more-types "^2.24.0" 323 | cli-cursor "^3.1.0" 324 | cli-table3 "~0.6.1" 325 | commander "^5.1.0" 326 | common-tags "^1.8.0" 327 | dayjs "^1.10.4" 328 | debug "^4.3.2" 329 | enquirer "^2.3.6" 330 | eventemitter2 "6.4.7" 331 | execa "4.1.0" 332 | executable "^4.1.1" 333 | extract-zip "2.0.1" 334 | figures "^3.2.0" 335 | fs-extra "^9.1.0" 336 | getos "^3.2.1" 337 | is-ci "^3.0.0" 338 | is-installed-globally "~0.4.0" 339 | lazy-ass "^1.6.0" 340 | listr2 "^3.8.3" 341 | lodash "^4.17.21" 342 | log-symbols "^4.0.0" 343 | minimist "^1.2.6" 344 | ospath "^1.2.2" 345 | pretty-bytes "^5.6.0" 346 | proxy-from-env "1.0.0" 347 | request-progress "^3.0.0" 348 | semver "^7.3.2" 349 | supports-color "^8.1.1" 350 | tmp "~0.2.1" 351 | untildify "^4.0.0" 352 | yauzl "^2.10.0" 353 | 354 | dashdash@^1.12.0: 355 | version "1.14.1" 356 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 357 | integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== 358 | dependencies: 359 | assert-plus "^1.0.0" 360 | 361 | dayjs@^1.10.4: 362 | version "1.11.7" 363 | resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.7.tgz#4b296922642f70999544d1144a2c25730fce63e2" 364 | integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ== 365 | 366 | debug@^3.1.0: 367 | version "3.2.7" 368 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" 369 | integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== 370 | dependencies: 371 | ms "^2.1.1" 372 | 373 | debug@^4.1.1, debug@^4.3.2: 374 | version "4.3.4" 375 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" 376 | integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== 377 | dependencies: 378 | ms "2.1.2" 379 | 380 | delayed-stream@~1.0.0: 381 | version "1.0.0" 382 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 383 | integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== 384 | 385 | ecc-jsbn@~0.1.1: 386 | version "0.1.2" 387 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" 388 | integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== 389 | dependencies: 390 | jsbn "~0.1.0" 391 | safer-buffer "^2.1.0" 392 | 393 | emoji-regex@^8.0.0: 394 | version "8.0.0" 395 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" 396 | integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== 397 | 398 | end-of-stream@^1.1.0: 399 | version "1.4.4" 400 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" 401 | integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== 402 | dependencies: 403 | once "^1.4.0" 404 | 405 | enquirer@^2.3.6: 406 | version "2.3.6" 407 | resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" 408 | integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== 409 | dependencies: 410 | ansi-colors "^4.1.1" 411 | 412 | escape-string-regexp@^1.0.5: 413 | version "1.0.5" 414 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 415 | integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== 416 | 417 | eventemitter2@6.4.7: 418 | version "6.4.7" 419 | resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.7.tgz#a7f6c4d7abf28a14c1ef3442f21cb306a054271d" 420 | integrity sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg== 421 | 422 | execa@4.1.0: 423 | version "4.1.0" 424 | resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" 425 | integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== 426 | dependencies: 427 | cross-spawn "^7.0.0" 428 | get-stream "^5.0.0" 429 | human-signals "^1.1.1" 430 | is-stream "^2.0.0" 431 | merge-stream "^2.0.0" 432 | npm-run-path "^4.0.0" 433 | onetime "^5.1.0" 434 | signal-exit "^3.0.2" 435 | strip-final-newline "^2.0.0" 436 | 437 | executable@^4.1.1: 438 | version "4.1.1" 439 | resolved "https://registry.yarnpkg.com/executable/-/executable-4.1.1.tgz#41532bff361d3e57af4d763b70582db18f5d133c" 440 | integrity sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg== 441 | dependencies: 442 | pify "^2.2.0" 443 | 444 | extend@~3.0.2: 445 | version "3.0.2" 446 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" 447 | integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== 448 | 449 | extract-zip@2.0.1: 450 | version "2.0.1" 451 | resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a" 452 | integrity sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg== 453 | dependencies: 454 | debug "^4.1.1" 455 | get-stream "^5.1.0" 456 | yauzl "^2.10.0" 457 | optionalDependencies: 458 | "@types/yauzl" "^2.9.1" 459 | 460 | extsprintf@1.3.0: 461 | version "1.3.0" 462 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 463 | integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== 464 | 465 | extsprintf@^1.2.0: 466 | version "1.4.1" 467 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" 468 | integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== 469 | 470 | fd-slicer@~1.1.0: 471 | version "1.1.0" 472 | resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" 473 | integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g== 474 | dependencies: 475 | pend "~1.2.0" 476 | 477 | figures@^3.2.0: 478 | version "3.2.0" 479 | resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" 480 | integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== 481 | dependencies: 482 | escape-string-regexp "^1.0.5" 483 | 484 | forever-agent@~0.6.1: 485 | version "0.6.1" 486 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 487 | integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== 488 | 489 | form-data@~2.3.2: 490 | version "2.3.3" 491 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" 492 | integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== 493 | dependencies: 494 | asynckit "^0.4.0" 495 | combined-stream "^1.0.6" 496 | mime-types "^2.1.12" 497 | 498 | fs-extra@^9.1.0: 499 | version "9.1.0" 500 | resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" 501 | integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== 502 | dependencies: 503 | at-least-node "^1.0.0" 504 | graceful-fs "^4.2.0" 505 | jsonfile "^6.0.1" 506 | universalify "^2.0.0" 507 | 508 | fs.realpath@^1.0.0: 509 | version "1.0.0" 510 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 511 | integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== 512 | 513 | get-stream@^5.0.0, get-stream@^5.1.0: 514 | version "5.2.0" 515 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" 516 | integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== 517 | dependencies: 518 | pump "^3.0.0" 519 | 520 | getos@^3.2.1: 521 | version "3.2.1" 522 | resolved "https://registry.yarnpkg.com/getos/-/getos-3.2.1.tgz#0134d1f4e00eb46144c5a9c0ac4dc087cbb27dc5" 523 | integrity sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q== 524 | dependencies: 525 | async "^3.2.0" 526 | 527 | getpass@^0.1.1: 528 | version "0.1.7" 529 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 530 | integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== 531 | dependencies: 532 | assert-plus "^1.0.0" 533 | 534 | glob@^7.1.3: 535 | version "7.2.3" 536 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" 537 | integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== 538 | dependencies: 539 | fs.realpath "^1.0.0" 540 | inflight "^1.0.4" 541 | inherits "2" 542 | minimatch "^3.1.1" 543 | once "^1.3.0" 544 | path-is-absolute "^1.0.0" 545 | 546 | global-dirs@^3.0.0: 547 | version "3.0.1" 548 | resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.1.tgz#0c488971f066baceda21447aecb1a8b911d22485" 549 | integrity sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA== 550 | dependencies: 551 | ini "2.0.0" 552 | 553 | graceful-fs@^4.1.6, graceful-fs@^4.2.0: 554 | version "4.2.10" 555 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" 556 | integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== 557 | 558 | has-flag@^4.0.0: 559 | version "4.0.0" 560 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" 561 | integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== 562 | 563 | http-signature@~1.3.6: 564 | version "1.3.6" 565 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.3.6.tgz#cb6fbfdf86d1c974f343be94e87f7fc128662cf9" 566 | integrity sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw== 567 | dependencies: 568 | assert-plus "^1.0.0" 569 | jsprim "^2.0.2" 570 | sshpk "^1.14.1" 571 | 572 | human-signals@^1.1.1: 573 | version "1.1.1" 574 | resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" 575 | integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== 576 | 577 | ieee754@^1.1.13: 578 | version "1.2.1" 579 | resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" 580 | integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== 581 | 582 | indent-string@^4.0.0: 583 | version "4.0.0" 584 | resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" 585 | integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== 586 | 587 | inflight@^1.0.4: 588 | version "1.0.6" 589 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 590 | integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== 591 | dependencies: 592 | once "^1.3.0" 593 | wrappy "1" 594 | 595 | inherits@2: 596 | version "2.0.4" 597 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 598 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 599 | 600 | ini@2.0.0: 601 | version "2.0.0" 602 | resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" 603 | integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== 604 | 605 | is-ci@^3.0.0: 606 | version "3.0.1" 607 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867" 608 | integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== 609 | dependencies: 610 | ci-info "^3.2.0" 611 | 612 | is-fullwidth-code-point@^3.0.0: 613 | version "3.0.0" 614 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" 615 | integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== 616 | 617 | is-installed-globally@~0.4.0: 618 | version "0.4.0" 619 | resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.4.0.tgz#9a0fd407949c30f86eb6959ef1b7994ed0b7b520" 620 | integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ== 621 | dependencies: 622 | global-dirs "^3.0.0" 623 | is-path-inside "^3.0.2" 624 | 625 | is-path-inside@^3.0.2: 626 | version "3.0.3" 627 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" 628 | integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== 629 | 630 | is-stream@^2.0.0: 631 | version "2.0.1" 632 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" 633 | integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== 634 | 635 | is-typedarray@~1.0.0: 636 | version "1.0.0" 637 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 638 | integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== 639 | 640 | is-unicode-supported@^0.1.0: 641 | version "0.1.0" 642 | resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" 643 | integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== 644 | 645 | isexe@^2.0.0: 646 | version "2.0.0" 647 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 648 | integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== 649 | 650 | isstream@~0.1.2: 651 | version "0.1.2" 652 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 653 | integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== 654 | 655 | jsbn@~0.1.0: 656 | version "0.1.1" 657 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 658 | integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== 659 | 660 | json-schema@0.4.0: 661 | version "0.4.0" 662 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" 663 | integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== 664 | 665 | json-stringify-safe@~5.0.1: 666 | version "5.0.1" 667 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 668 | integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== 669 | 670 | jsonfile@^6.0.1: 671 | version "6.1.0" 672 | resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" 673 | integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== 674 | dependencies: 675 | universalify "^2.0.0" 676 | optionalDependencies: 677 | graceful-fs "^4.1.6" 678 | 679 | jsprim@^2.0.2: 680 | version "2.0.2" 681 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-2.0.2.tgz#77ca23dbcd4135cd364800d22ff82c2185803d4d" 682 | integrity sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ== 683 | dependencies: 684 | assert-plus "1.0.0" 685 | extsprintf "1.3.0" 686 | json-schema "0.4.0" 687 | verror "1.10.0" 688 | 689 | lazy-ass@^1.6.0: 690 | version "1.6.0" 691 | resolved "https://registry.yarnpkg.com/lazy-ass/-/lazy-ass-1.6.0.tgz#7999655e8646c17f089fdd187d150d3324d54513" 692 | integrity sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw== 693 | 694 | listr2@^3.8.3: 695 | version "3.14.0" 696 | resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.14.0.tgz#23101cc62e1375fd5836b248276d1d2b51fdbe9e" 697 | integrity sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g== 698 | dependencies: 699 | cli-truncate "^2.1.0" 700 | colorette "^2.0.16" 701 | log-update "^4.0.0" 702 | p-map "^4.0.0" 703 | rfdc "^1.3.0" 704 | rxjs "^7.5.1" 705 | through "^2.3.8" 706 | wrap-ansi "^7.0.0" 707 | 708 | lodash.once@^4.1.1: 709 | version "4.1.1" 710 | resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" 711 | integrity sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg== 712 | 713 | lodash@^4.17.21: 714 | version "4.17.21" 715 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" 716 | integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== 717 | 718 | log-symbols@^4.0.0: 719 | version "4.1.0" 720 | resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" 721 | integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== 722 | dependencies: 723 | chalk "^4.1.0" 724 | is-unicode-supported "^0.1.0" 725 | 726 | log-update@^4.0.0: 727 | version "4.0.0" 728 | resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" 729 | integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== 730 | dependencies: 731 | ansi-escapes "^4.3.0" 732 | cli-cursor "^3.1.0" 733 | slice-ansi "^4.0.0" 734 | wrap-ansi "^6.2.0" 735 | 736 | lru-cache@^6.0.0: 737 | version "6.0.0" 738 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" 739 | integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== 740 | dependencies: 741 | yallist "^4.0.0" 742 | 743 | merge-stream@^2.0.0: 744 | version "2.0.0" 745 | resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" 746 | integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== 747 | 748 | mime-db@1.52.0: 749 | version "1.52.0" 750 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" 751 | integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== 752 | 753 | mime-types@^2.1.12, mime-types@~2.1.19: 754 | version "2.1.35" 755 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" 756 | integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== 757 | dependencies: 758 | mime-db "1.52.0" 759 | 760 | mimic-fn@^2.1.0: 761 | version "2.1.0" 762 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" 763 | integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== 764 | 765 | minimatch@^3.1.1: 766 | version "3.1.2" 767 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" 768 | integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== 769 | dependencies: 770 | brace-expansion "^1.1.7" 771 | 772 | minimist@^1.2.6: 773 | version "1.2.7" 774 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" 775 | integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== 776 | 777 | ms@2.1.2: 778 | version "2.1.2" 779 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" 780 | integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== 781 | 782 | ms@^2.1.1: 783 | version "2.1.3" 784 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" 785 | integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== 786 | 787 | npm-run-path@^4.0.0: 788 | version "4.0.1" 789 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" 790 | integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== 791 | dependencies: 792 | path-key "^3.0.0" 793 | 794 | once@^1.3.0, once@^1.3.1, once@^1.4.0: 795 | version "1.4.0" 796 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 797 | integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== 798 | dependencies: 799 | wrappy "1" 800 | 801 | onetime@^5.1.0: 802 | version "5.1.2" 803 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" 804 | integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== 805 | dependencies: 806 | mimic-fn "^2.1.0" 807 | 808 | ospath@^1.2.2: 809 | version "1.2.2" 810 | resolved "https://registry.yarnpkg.com/ospath/-/ospath-1.2.2.tgz#1276639774a3f8ef2572f7fe4280e0ea4550c07b" 811 | integrity sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA== 812 | 813 | p-map@^4.0.0: 814 | version "4.0.0" 815 | resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" 816 | integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== 817 | dependencies: 818 | aggregate-error "^3.0.0" 819 | 820 | path-is-absolute@^1.0.0: 821 | version "1.0.1" 822 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 823 | integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== 824 | 825 | path-key@^3.0.0, path-key@^3.1.0: 826 | version "3.1.1" 827 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" 828 | integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== 829 | 830 | pend@~1.2.0: 831 | version "1.2.0" 832 | resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" 833 | integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== 834 | 835 | performance-now@^2.1.0: 836 | version "2.1.0" 837 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" 838 | integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== 839 | 840 | pify@^2.2.0: 841 | version "2.3.0" 842 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 843 | integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== 844 | 845 | pretty-bytes@^5.6.0: 846 | version "5.6.0" 847 | resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" 848 | integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== 849 | 850 | proxy-from-env@1.0.0: 851 | version "1.0.0" 852 | resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee" 853 | integrity sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A== 854 | 855 | psl@^1.1.28: 856 | version "1.9.0" 857 | resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" 858 | integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== 859 | 860 | pump@^3.0.0: 861 | version "3.0.0" 862 | resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" 863 | integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== 864 | dependencies: 865 | end-of-stream "^1.1.0" 866 | once "^1.3.1" 867 | 868 | punycode@^2.1.1: 869 | version "2.1.1" 870 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" 871 | integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== 872 | 873 | qs@~6.5.2: 874 | version "6.5.3" 875 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" 876 | integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== 877 | 878 | request-progress@^3.0.0: 879 | version "3.0.0" 880 | resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-3.0.0.tgz#4ca754081c7fec63f505e4faa825aa06cd669dbe" 881 | integrity sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg== 882 | dependencies: 883 | throttleit "^1.0.0" 884 | 885 | restore-cursor@^3.1.0: 886 | version "3.1.0" 887 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" 888 | integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== 889 | dependencies: 890 | onetime "^5.1.0" 891 | signal-exit "^3.0.2" 892 | 893 | rfdc@^1.3.0: 894 | version "1.3.0" 895 | resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" 896 | integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== 897 | 898 | rimraf@^3.0.0: 899 | version "3.0.2" 900 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" 901 | integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== 902 | dependencies: 903 | glob "^7.1.3" 904 | 905 | rxjs@^7.5.1: 906 | version "7.6.0" 907 | resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.6.0.tgz#361da5362b6ddaa691a2de0b4f2d32028f1eb5a2" 908 | integrity sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ== 909 | dependencies: 910 | tslib "^2.1.0" 911 | 912 | safe-buffer@^5.0.1, safe-buffer@^5.1.2: 913 | version "5.2.1" 914 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" 915 | integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== 916 | 917 | safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: 918 | version "2.1.2" 919 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 920 | integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== 921 | 922 | semver@^7.3.2: 923 | version "7.3.8" 924 | resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" 925 | integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== 926 | dependencies: 927 | lru-cache "^6.0.0" 928 | 929 | shebang-command@^2.0.0: 930 | version "2.0.0" 931 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" 932 | integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== 933 | dependencies: 934 | shebang-regex "^3.0.0" 935 | 936 | shebang-regex@^3.0.0: 937 | version "3.0.0" 938 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" 939 | integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== 940 | 941 | signal-exit@^3.0.2: 942 | version "3.0.7" 943 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" 944 | integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== 945 | 946 | slice-ansi@^3.0.0: 947 | version "3.0.0" 948 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" 949 | integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== 950 | dependencies: 951 | ansi-styles "^4.0.0" 952 | astral-regex "^2.0.0" 953 | is-fullwidth-code-point "^3.0.0" 954 | 955 | slice-ansi@^4.0.0: 956 | version "4.0.0" 957 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" 958 | integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== 959 | dependencies: 960 | ansi-styles "^4.0.0" 961 | astral-regex "^2.0.0" 962 | is-fullwidth-code-point "^3.0.0" 963 | 964 | sshpk@^1.14.1: 965 | version "1.17.0" 966 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5" 967 | integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ== 968 | dependencies: 969 | asn1 "~0.2.3" 970 | assert-plus "^1.0.0" 971 | bcrypt-pbkdf "^1.0.0" 972 | dashdash "^1.12.0" 973 | ecc-jsbn "~0.1.1" 974 | getpass "^0.1.1" 975 | jsbn "~0.1.0" 976 | safer-buffer "^2.0.2" 977 | tweetnacl "~0.14.0" 978 | 979 | string-width@^4.1.0, string-width@^4.2.0: 980 | version "4.2.3" 981 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 982 | integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== 983 | dependencies: 984 | emoji-regex "^8.0.0" 985 | is-fullwidth-code-point "^3.0.0" 986 | strip-ansi "^6.0.1" 987 | 988 | strip-ansi@^6.0.0, strip-ansi@^6.0.1: 989 | version "6.0.1" 990 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 991 | integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== 992 | dependencies: 993 | ansi-regex "^5.0.1" 994 | 995 | strip-final-newline@^2.0.0: 996 | version "2.0.0" 997 | resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" 998 | integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== 999 | 1000 | supports-color@^7.1.0: 1001 | version "7.2.0" 1002 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" 1003 | integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== 1004 | dependencies: 1005 | has-flag "^4.0.0" 1006 | 1007 | supports-color@^8.1.1: 1008 | version "8.1.1" 1009 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" 1010 | integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== 1011 | dependencies: 1012 | has-flag "^4.0.0" 1013 | 1014 | throttleit@^1.0.0: 1015 | version "1.0.0" 1016 | resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c" 1017 | integrity sha512-rkTVqu6IjfQ/6+uNuuc3sZek4CEYxTJom3IktzgdSxcZqdARuebbA/f4QmAxMQIxqq9ZLEUkSYqvuk1I6VKq4g== 1018 | 1019 | through@^2.3.8: 1020 | version "2.3.8" 1021 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 1022 | integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== 1023 | 1024 | tmp@~0.2.1: 1025 | version "0.2.1" 1026 | resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.1.tgz#8457fc3037dcf4719c251367a1af6500ee1ccf14" 1027 | integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ== 1028 | dependencies: 1029 | rimraf "^3.0.0" 1030 | 1031 | tough-cookie@~2.5.0: 1032 | version "2.5.0" 1033 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" 1034 | integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== 1035 | dependencies: 1036 | psl "^1.1.28" 1037 | punycode "^2.1.1" 1038 | 1039 | tslib@^2.1.0: 1040 | version "2.4.1" 1041 | resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" 1042 | integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== 1043 | 1044 | tunnel-agent@^0.6.0: 1045 | version "0.6.0" 1046 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 1047 | integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== 1048 | dependencies: 1049 | safe-buffer "^5.0.1" 1050 | 1051 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1052 | version "0.14.5" 1053 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1054 | integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== 1055 | 1056 | type-fest@^0.21.3: 1057 | version "0.21.3" 1058 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" 1059 | integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== 1060 | 1061 | universalify@^2.0.0: 1062 | version "2.0.0" 1063 | resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" 1064 | integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== 1065 | 1066 | untildify@^4.0.0: 1067 | version "4.0.0" 1068 | resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" 1069 | integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== 1070 | 1071 | uuid@^8.3.2: 1072 | version "8.3.2" 1073 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" 1074 | integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== 1075 | 1076 | verror@1.10.0: 1077 | version "1.10.0" 1078 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 1079 | integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== 1080 | dependencies: 1081 | assert-plus "^1.0.0" 1082 | core-util-is "1.0.2" 1083 | extsprintf "^1.2.0" 1084 | 1085 | which@^2.0.1: 1086 | version "2.0.2" 1087 | resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" 1088 | integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== 1089 | dependencies: 1090 | isexe "^2.0.0" 1091 | 1092 | wrap-ansi@^6.2.0: 1093 | version "6.2.0" 1094 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" 1095 | integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== 1096 | dependencies: 1097 | ansi-styles "^4.0.0" 1098 | string-width "^4.1.0" 1099 | strip-ansi "^6.0.0" 1100 | 1101 | wrap-ansi@^7.0.0: 1102 | version "7.0.0" 1103 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 1104 | integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== 1105 | dependencies: 1106 | ansi-styles "^4.0.0" 1107 | string-width "^4.1.0" 1108 | strip-ansi "^6.0.0" 1109 | 1110 | wrappy@1: 1111 | version "1.0.2" 1112 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1113 | integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== 1114 | 1115 | yallist@^4.0.0: 1116 | version "4.0.0" 1117 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" 1118 | integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== 1119 | 1120 | yauzl@^2.10.0: 1121 | version "2.10.0" 1122 | resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" 1123 | integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g== 1124 | dependencies: 1125 | buffer-crc32 "~0.2.3" 1126 | fd-slicer "~1.1.0" 1127 | -------------------------------------------------------------------------------- /src/make-your-package/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | 84 | # Gatsby files 85 | .cache/ 86 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 87 | # https://nextjs.org/blog/next-9-1#public-directory-support 88 | # public 89 | 90 | # vuepress build output 91 | .vuepress/dist 92 | 93 | # Serverless directories 94 | .serverless/ 95 | 96 | # FuseBox cache 97 | .fusebox/ 98 | 99 | # DynamoDB Local files 100 | .dynamodb/ 101 | 102 | # TernJS port file 103 | .tern-port 104 | -------------------------------------------------------------------------------- /src/make-your-package/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 InSeong-So 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/make-your-package/index.js: -------------------------------------------------------------------------------- 1 | // 여기에 자신의 패키지를 작성할 거에요! 2 | -------------------------------------------------------------------------------- /src/make-your-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "parang-utils", 3 | "version": "0.0.1", 4 | "main": "./index.js", 5 | "author": "FECrash", 6 | "license": "ISC", 7 | "homepage": "https://github.com/FECrash/FunctionalProgramming#readme", 8 | "bugs": "https://github.com/FECrash/FunctionalProgramming#readme", 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/FECrash/FunctionalProgramming.git" 12 | }, 13 | "publishConfig": { 14 | "registry": "https://registry.npmjs.org/" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/refactoring/example-1.js: -------------------------------------------------------------------------------- 1 | function setPriceByName(cart, name, price) { 2 | var item = cart[name]; 3 | var newItem = objectSet(item, 'price', price); 4 | var newCart = objectSet(cart, name, newItem); 5 | return newCart; 6 | } 7 | 8 | function setShippingByName(cart, name, ship) { 9 | var item = cart[name]; 10 | var newItem = objectSet(item, 'shipping', ship); 11 | var newCart = objectSet(cart, name, newItem); 12 | return newCart; 13 | } 14 | 15 | function setQuantityByName(cart, name, quant) { 16 | var item = cart[name]; 17 | var newItem = objectSet(item, 'quantity', quant); 18 | var newCart = objectSet(cart, name, newItem); 19 | return newCart; 20 | } 21 | 22 | function setTaxByName(cart, name, tax) { 23 | var item = cart[name]; 24 | var newItem = objectSet(item, 'tax', tax); 25 | var newCart = objectSet(cart, name, newItem); 26 | return newCart; 27 | } 28 | 29 | function objectSet(object, key, value) { 30 | var copy = Object.assign({}, object); 31 | copy[key] = value; 32 | return copy; 33 | } 34 | -------------------------------------------------------------------------------- /src/refactoring/example-2.js: -------------------------------------------------------------------------------- 1 | for (var i = 0; i < foods.length; i++) { 2 | var food = foods[i]; 3 | cook(food); 4 | eat(food); 5 | } 6 | 7 | for (var i = 0; i < dishes.length; i++) { 8 | var dish = dishes[i]; 9 | wash(dish); 10 | dry(dish); 11 | putAway(dish); 12 | } 13 | -------------------------------------------------------------------------------- /src/refactoring/example-3.js: -------------------------------------------------------------------------------- 1 | var user = { 2 | id: '1', 3 | }; 4 | 5 | async function getUserData({ id }) { 6 | const response = await fetch(`https://jsonplaceholder.typicode.com/users?id=${id}`); 7 | } 8 | 9 | var logToSnapErrors = error => console.log(`🚫 에러가 발생했어요: ${error.message}`); 10 | 11 | try { 12 | getUserData(user); 13 | } catch (error) { 14 | logToSnapErrors(error); 15 | } 16 | -------------------------------------------------------------------------------- /src/refactoring/수정전-01_조건부_복잡성.js: -------------------------------------------------------------------------------- 1 | const getAnimalEmoji = animal => { 2 | if (animal === 'dog') { 3 | return '🐶'; 4 | } else if (animal === 'cat') { 5 | return '🐱'; 6 | } else if (animal === 'frog') { 7 | return '🐸'; 8 | } else if (animal === 'panda') { 9 | return '🐼'; 10 | } else if (animal === 'giraffe') { 11 | return '🦒'; 12 | } else if (animal === 'monkey') { 13 | return '🐵'; 14 | } else if (animal === 'unicorn') { 15 | return '🦄'; 16 | } else if (animal === 'dragon') { 17 | return '🐲'; 18 | } 19 | }; 20 | console.log(getAnimalEmoji('dragon')); 21 | 22 | const printMyAnimal = animal => { 23 | if (animal === 'dog' || animal === 'cat') { 24 | console.log(`I have a ${animal}`); 25 | } 26 | }; 27 | console.log(printMyAnimal('dog')); 28 | 29 | const getAnimalDetails = animal => { 30 | let result; 31 | 32 | if (animal) { 33 | if (animal.type) { 34 | if (animal.name) { 35 | if (animal.gender) { 36 | result = `${animal.name} is a ${animal.gender} ${animal.type}`; 37 | } else { 38 | result = 'No animal gender'; 39 | } 40 | } else { 41 | result = 'No animal name'; 42 | } 43 | } else { 44 | result = 'No animal type'; 45 | } 46 | } else { 47 | result = 'No animal'; 48 | } 49 | 50 | return result; 51 | }; 52 | console.log(getAnimalDetails()); 53 | console.log(getAnimalDetails({ type: 'dog', gender: 'female' })); 54 | console.log(getAnimalDetails({ type: 'dog', name: 'Lucy' })); 55 | console.log(getAnimalDetails({ type: 'dog', name: 'Lucy', gender: 'female' })); 56 | 57 | const printFruits = color => { 58 | switch (color) { 59 | case 'red': 60 | return ['apple', 'strawberry']; 61 | case 'yellow': 62 | return ['banana', 'pineapple']; 63 | case 'purple': 64 | return ['grape', 'plum']; 65 | default: 66 | return []; 67 | } 68 | }; 69 | console.log(printFruits(null)); 70 | console.log(printFruits('yellow')); 71 | 72 | const printVegetableName = vegetable => { 73 | if (vegetable && vegetable.name) { 74 | console.log(vegetable.name); 75 | } else { 76 | console.log('unknown'); 77 | } 78 | }; 79 | printVegetableName(undefined); 80 | printVegetableName({}); 81 | printVegetableName({ name: 'cabbage', quantity: 2 }); 82 | 83 | const car = { 84 | model: 'Fiesta', 85 | manufacturer: { 86 | name: 'Ford', 87 | address: { 88 | street: 'Some Street Name', 89 | number: '5555', 90 | state: 'USA', 91 | }, 92 | }, 93 | }; 94 | 95 | const model = (car && car.model) || 'default model'; 96 | 97 | const street = 98 | (car && car.manufacturer && car.manufacturer.address && car.manufacturer.address.street) || 'default street'; 99 | 100 | const phoneNumber = car && car.manufacturer && car.manufacturer.address && car.manufacturer.phoneNumber; 101 | console.log(model); 102 | console.log(street); 103 | console.log(phoneNumber); 104 | 105 | const isManufacturerFromUSA = () => { 106 | if (car && car.manufacturer && car.manufacturer.address && car.manufacturer.address.state === 'USA') { 107 | console.log('true'); 108 | } 109 | }; 110 | console.log(isManufacturerFromUSA()); 111 | -------------------------------------------------------------------------------- /src/refactoring/수정전-02_기능_특정하기.js: -------------------------------------------------------------------------------- 1 | function beforePrinter(user, phone) { 2 | console.log('USER PHONE:'); 3 | console.log(`Country code Phone : ${phone.countryCode}`); 4 | console.log(`Phone area code: ${phone.areaCode}`); 5 | console.log(`Phone base number: ${phone.baseNumber}\n`); 6 | console.log('USER DATA:'); 7 | console.log(`User name: ${user.userName}`); 8 | console.log(`User lastname: ${user.userLastName}`); 9 | console.log(`User DNI: ${user.userDni}`); 10 | console.log(`User phone: ${user.userEmail}`); 11 | console.log(`User email: ${user.userPhone}`); 12 | } 13 | 14 | function afterPrinter(user, phone) { 15 | console.log('USER PHONE:'); 16 | console.log(`Country code Phone : ${phone.getCountryCode()}`); 17 | console.log(`Phone: ${phone.getFormatPhone()}\n`); 18 | console.log('USER DATA:'); 19 | console.log(`User name: ${user.getName()}`); 20 | console.log(`User lastname: ${user.getLastName()}`); 21 | console.log(`User DNI: ${user.getDni()}`); 22 | console.log(`User email: ${user.getPhone()}`); 23 | } 24 | 25 | class Phone { 26 | constructor(unformattedNumber) { 27 | this.unformattedNumber = unformattedNumber; 28 | } 29 | 30 | get countryCode() { 31 | return this.unformattedNumber.substring(0, 3); 32 | } 33 | get areaCode() { 34 | return `${this.unformattedNumber.substring(3, 6)}`; 35 | } 36 | get baseNumber() { 37 | return `${this.unformattedNumber.substring(6, 9)} ${this.unformattedNumber.substring(9, 12)}`; 38 | } 39 | } 40 | 41 | class User { 42 | constructor(name, lastName, dni, phone, email) { 43 | this.name = name; 44 | this.lastName = lastName; 45 | this.dni = dni; 46 | this.email = email; 47 | this.phone = `${phone.countryCode} ${phone.areaCode} ${phone.baseNumber}`; 48 | } 49 | 50 | get userName() { 51 | return this.name; 52 | } 53 | get userLastName() { 54 | return this.lastName; 55 | } 56 | get userDni() { 57 | return this.dni; 58 | } 59 | get userEmail() { 60 | return this.email; 61 | } 62 | get userPhone() { 63 | return this.phone; 64 | } 65 | } 66 | 67 | const phone1 = new Phone('+34635538973'); 68 | const user1 = new User('Fernando', 'Aparicio Galende', '12345678S', phone1, 'fernando.aparicio@guidesmiths.com'); 69 | 70 | beforePrinter(user1, phone1); 71 | -------------------------------------------------------------------------------- /src/refactoring/수정전-03_부적절한_평가.js: -------------------------------------------------------------------------------- 1 | const per2Int = (value, per) => (value * per) / 100; 2 | 3 | const Client = ({ name, type, location }) => { 4 | this.offers = { 5 | normal: 0, 6 | premium: 20, 7 | }; 8 | this.name = name; 9 | this.type = type; 10 | this.location = location; 11 | 12 | getName = () => this.name; 13 | getType = () => this.name; 14 | getLocation = () => this.location; 15 | getPriceByProduct = product => product.value - per2Int(product.value, this.offers[this.type]); 16 | 17 | return { 18 | getName, 19 | getType, 20 | getLocation, 21 | getPriceByProduct, 22 | }; 23 | }; 24 | 25 | const Product = ({ value, name, shipping }) => { 26 | this.value = value; 27 | this.name = name; 28 | this.shipping = shipping; 29 | 30 | getValue = () => this.value; 31 | getProductName = () => this.name; 32 | getShipping = () => this.shipping; 33 | 34 | return { 35 | getValue, 36 | getProductName, 37 | getShipping, 38 | }; 39 | }; 40 | 41 | const Order = ({ id, value, client, product }) => { 42 | this.taxes = { 43 | EU: 21, 44 | USA: 14, 45 | }; 46 | this.id = id; 47 | this.value = value; 48 | this.client = client; 49 | this.product = product; 50 | 51 | getId = () => this.id; 52 | getValue = () => this.value; 53 | getClient = () => this.client; 54 | getProduct = () => this.product; 55 | getTaxes = loc => this.getTaxes(this.taxes[loc]); 56 | 57 | return { 58 | getId, 59 | getValue, 60 | getClient, 61 | getProduct, 62 | }; 63 | }; 64 | 65 | const Summary = ({ order }) => { 66 | this.order = order; 67 | 68 | printSummary = () => { 69 | let client = order.getClient(); 70 | let product = order.product(); 71 | 72 | return `Order: ${order.getId()} 73 | Client: ${client.getName()} 74 | Product: ${product.getProductName()} 75 | TotalAmount: ${client.getPriceByProduct(product) + this.order.getTaxes(client.getLocation())} 76 | 77 | 78 | Arrival in: ${this.order.product.getShipping()} days.`; 79 | }; 80 | 81 | return { 82 | printSummary, 83 | }; 84 | }; 85 | -------------------------------------------------------------------------------- /src/use-rxjs/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-rxjs", 3 | "version": "1.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "use-rxjs", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "rxjs": "^7.8.0" 13 | } 14 | }, 15 | "node_modules/rxjs": { 16 | "version": "7.8.0", 17 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", 18 | "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", 19 | "dependencies": { 20 | "tslib": "^2.1.0" 21 | } 22 | }, 23 | "node_modules/tslib": { 24 | "version": "2.5.0", 25 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", 26 | "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" 27 | } 28 | }, 29 | "dependencies": { 30 | "rxjs": { 31 | "version": "7.8.0", 32 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", 33 | "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", 34 | "requires": { 35 | "tslib": "^2.1.0" 36 | } 37 | }, 38 | "tslib": { 39 | "version": "2.5.0", 40 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", 41 | "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/use-rxjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-rxjs", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "rxjs": "^7.8.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/use-rxjs/src/code.js: -------------------------------------------------------------------------------- 1 | const rxjs = require('rxjs'); 2 | const { of } = require('rxjs'); // 생성함수 3 | const { map } = require('rxjs/operators'); // 연산함수 4 | 5 | const x = rxjs.of(1, 2, 3); 6 | 7 | x.subscribe(data => { 8 | console.log(data); 9 | }); 10 | // 1 11 | // 2 12 | // 3 13 | 14 | const y = of(1, 2, 3).pipe(map(x => x * 10)); 15 | 16 | y.subscribe(data => { 17 | console.log(data); 18 | }); 19 | // 10 20 | // 20 21 | // 30 22 | -------------------------------------------------------------------------------- /src/utils/groupBy.test.js: -------------------------------------------------------------------------------- 1 | // FIXME: npm test /src/utils/groupBy.test.js 2 | 3 | // 어떤 것을 해볼까요? 4 | const groupBy = (arr, callback) => { 5 | return arr; 6 | }; 7 | 8 | describe('groupBy 테스트', () => { 9 | describe('non-lazy', () => { 10 | it('case: 1, Normal', () => { 11 | const array = [6.1, 4.2, 6.3]; 12 | const grouped = groupBy(array, Math.floor); 13 | 14 | expect(grouped).toEqual({ 4: [4.2], 6: [6.1, 6.3] }); 15 | }); 16 | 17 | it('case: 2, Advanced', () => { 18 | const array = [ 19 | [1, 'a'], 20 | [2, 'a'], 21 | [2, 'b'], 22 | ]; 23 | 24 | // 두 번째 인자가 index 25 | const [groupedFirstIndex, groupedSecondIndex] = [groupBy(array, 0), groupBy(array, 1)]; 26 | 27 | expect(groupedFirstIndex).toEqual({ 28 | 1: [[1, 'a']], 29 | 2: [ 30 | [2, 'a'], 31 | [2, 'b'], 32 | ], 33 | }); 34 | 35 | expect(groupedSecondIndex).toEqual({ 36 | a: [ 37 | [1, 'a'], 38 | [2, 'a'], 39 | ], 40 | b: [[2, 'b']], 41 | }); 42 | }); 43 | 44 | it('case: 3, Advanced', () => { 45 | const grouped = groupBy({ a: 6.1, b: 4.2, c: 6.3 }, Math.floor); 46 | 47 | expect(grouped).toEqual({ 4: [4.2], 6: [6.1, 6.3] }); 48 | }); 49 | }); 50 | }); 51 | -------------------------------------------------------------------------------- /src/utils/lib.js: -------------------------------------------------------------------------------- 1 | // FIXME: 프로토타입 ================================================================= 2 | Array.prototype.generate = function (size = 10) { 3 | let returnArray = []; 4 | 5 | while (returnArray.length < size) { 6 | const temp = this[parseInt(Math.random() * this.length)]; 7 | 8 | returnArray = [...returnArray, temp]; 9 | } 10 | 11 | return returnArray; 12 | }; 13 | 14 | Array.prototype.shuffle = function () { 15 | for (let i = this.length - 1; i > 0; i--) { 16 | let j = Math.floor(Math.random() * (i + 1)); 17 | [this[i], this[j]] = [this[j], this[i]]; 18 | } 19 | return this; 20 | }; 21 | 22 | // FIXME: 상수 라인=================================================================== 23 | const 엄청_큰_배열_크기 = 10000; 24 | 25 | const 이름_목록 = [ 26 | 'Zachary', 27 | 'Zayden', 28 | 'Zane', 29 | 'Zion', 30 | 'Yadiel', 31 | 'Yousef', 32 | 'Xavier', 33 | 'Xander', 34 | 'Xayden', 35 | 'William', 36 | 'Wyatt', 37 | 'Wesley', 38 | 'Walter', 39 | 'Wade', 40 | 'Warren', 41 | 'Winston', 42 | 'Willie', 43 | 'Will', 44 | 'Woodrow', 45 | 'VVincent', 46 | 'Valentino', 47 | 'Victor', 48 | 'Vincenzo', 49 | 'Van', 50 | 'Vivaan', 51 | 'Vihaan', 52 | 'Vance', 53 | 'Ucal', 54 | 'Ulan', 55 | 'Uluka', 56 | 'Uner', 57 | 'Uriah', 58 | 'Thomas', 59 | 'Tyler', 60 | 'Theodore', 61 | 'Tony', 62 | 'Travis', 63 | 'Troy', 64 | 'Timothy', 65 | 'Titan', 66 | 'Toby', 67 | 'Tanner', 68 | 'Samuel', 69 | 'Steven', 70 | 'Sebastian', 71 | 'Santiago', 72 | 'Simon', 73 | 'Sean', 74 | 'Stephen', 75 | 'Scott', 76 | 'Ryan', 77 | 'Randolph', 78 | 'Robert', 79 | 'Roman', 80 | 'River', 81 | 'Raymond', 82 | 'Richard', 83 | 'Rowan', 84 | 'Russell', 85 | 'Ryder', 86 | 'Quincy', 87 | 'Quade', 88 | 'Parker', 89 | 'Patrick', 90 | 'Paul', 91 | 'Peter', 92 | 'Prince', 93 | 'Phillip', 94 | 'Pablo', 95 | 'Pedro', 96 | 'Oliver', 97 | 'Owen', 98 | 'Oscar', 99 | 'Orlando', 100 | 'Odin', 101 | 'Oakley', 102 | 'Ozzy', 103 | 'Ollie', 104 | 'Noah', 105 | 'Nicholas', 106 | 'Nolan', 107 | 'Nikolai', 108 | 'Nathan', 109 | 'Nelson', 110 | 'Matthew', 111 | 'Maddox', 112 | 'Max', 113 | 'Michael', 114 | 'Mason', 115 | 'Marcus', 116 | 'Miles', 117 | 'Mark', 118 | 'Mario', 119 | 'Mandy', 120 | 'Liam', 121 | 'Logan', 122 | 'Lucas', 123 | 'Luke', 124 | 'Lincoln', 125 | 'Leo', 126 | 'Luis', 127 | 'Leonardo', 128 | 'Luciano', 129 | 'Lucian', 130 | 'Kevin', 131 | 'Kai', 132 | 'Kale', 133 | 'Kade', 134 | 'Kaiden', 135 | 'Knox', 136 | 'Ken', 137 | 'Kendrick', 138 | 'Jayden', 139 | 'James', 140 | 'Jacob', 141 | 'Julian', 142 | 'Jackson', 143 | 'Jeffery', 144 | 'Jarry', 145 | 'Jeremy', 146 | 'Jayce', 147 | 'Jonathan', 148 | 'Justin', 149 | 'Joel', 150 | 'Ian', 151 | 'Ivan', 152 | 'Ismael', 153 | 'Israel', 154 | 'Isaac', 155 | 'Iker', 156 | 'Henry', 157 | 'Hunter', 158 | 'Hayden', 159 | 'Hendrix', 160 | 'Harry', 161 | 'Hugo', 162 | 'Harrison', 163 | 'Harvey', 164 | 'Hudson', 165 | 'Gabriel', 166 | 'Gael', 167 | 'Gunner', 168 | 'Garrett', 169 | 'Gregory', 170 | 'Griffin', 171 | 'Grady', 172 | 'George', 173 | 'Francisco', 174 | 'Felix', 175 | 'Fernando', 176 | 'Fabian', 177 | 'Finn', 178 | 'Frankie', 179 | 'Fredrick', 180 | 'Fabbro', 181 | 'Floyd', 182 | 'Ethan', 183 | 'Eli', 184 | 'Evan', 185 | 'Eric', 186 | 'Emmett', 187 | 'Elliott', 188 | 'Everett', 189 | 'Enzo', 190 | 'Danial', 191 | 'Dylan', 192 | 'Damian', 193 | 'Declan', 194 | 'Derek', 195 | 'Dante', 196 | 'Dominick', 197 | 'Dilan', 198 | 'Drew', 199 | 'Chistopher', 200 | 'Connor', 201 | 'Charles', 202 | 'Caleb', 203 | 'Cooper', 204 | 'Colin', 205 | 'Corbin', 206 | 'Covy', 207 | 'Chico', 208 | 'Benjamin', 209 | 'Brandon', 210 | 'Bentley', 211 | 'Blake', 212 | 'Brody', 213 | 'Bennett', 214 | 'Bradley', 215 | 'Brooks', 216 | 'Bruno', 217 | 'Aiden', 218 | 'Andew', 219 | 'Adrian', 220 | 'Asher', 221 | 'Austin', 222 | 'Ayaan', 223 | 'Aaron', 224 | 'Alex', 225 | 'Andres', 226 | 'Antonio', 227 | 'Archer', 228 | ]; 229 | 230 | const 도시_목록 = [ 231 | 'Afghanistan', 232 | 'Algeria', 233 | 'Angola', 234 | 'Argentina', 235 | 'Austria', 236 | 'Australia', 237 | 'Bangladesh', 238 | 'Belarus', 239 | 'Belgium', 240 | 'Bolivia', 241 | 'Bosnia', 242 | 'Brazil', 243 | 'Britain', 244 | 'Bulgaria', 245 | 'Cambodia', 246 | 'Cameroon', 247 | 'Canada', 248 | 'Central', 249 | 'Chad', 250 | 'China', 251 | 'Colombia', 252 | 'Costa', 253 | 'Croatia', 254 | 'the', 255 | 'Democratic', 256 | 'Denmark', 257 | 'Ecuador', 258 | 'Egypt', 259 | 'El', 260 | 'England', 261 | 'Estonia', 262 | 'Ethiopia', 263 | 'Finland', 264 | 'France', 265 | 'Germany', 266 | 'Ghana', 267 | 'Greece', 268 | 'Guatemala', 269 | 'Holland', 270 | 'Honduras', 271 | 'Hungary', 272 | 'Iceland', 273 | 'India', 274 | 'Indonesia', 275 | 'Iran', 276 | 'Iraq', 277 | 'Ireland', 278 | 'Israel', 279 | 'Italy', 280 | 'Ivory', 281 | 'Jamaica', 282 | 'Japan', 283 | 'Jordan', 284 | 'Kazakhstan', 285 | 'Kenya', 286 | 'Laos', 287 | 'Latvia', 288 | 'Libya', 289 | 'Lithuania', 290 | 'Madagascar', 291 | 'Malaysia', 292 | 'Mali', 293 | 'Mauritania', 294 | 'Mexico', 295 | 'Morocco', 296 | 'Namibia', 297 | 'New', 298 | 'Nicaragua', 299 | 'Niger', 300 | 'Nigeria', 301 | 'Norway', 302 | 'Oman', 303 | 'Pakistan', 304 | 'Panama', 305 | 'Paraguay', 306 | 'Peru', 307 | 'The', 308 | 'Poland', 309 | 'Portugal', 310 | 'Republic', 311 | 'Romania', 312 | 'Russia', 313 | 'Saudi', 314 | 'Scotland', 315 | 'Senegal', 316 | 'Serbia', 317 | 'Singapore', 318 | 'Slovakia', 319 | 'Somalia', 320 | 'South', 321 | 'Spain', 322 | 'Sudan', 323 | 'Sweden', 324 | 'Switzerland', 325 | 'Syria', 326 | 'Thailand', 327 | 'Tunisia', 328 | 'Turkey', 329 | 'Turkmenistan', 330 | 'Ukraine', 331 | 'The', 332 | 'The', 333 | 'Uruguay', 334 | 'Vietnam', 335 | 'Wales', 336 | 'Zambia', 337 | 'Zimbabwe', 338 | ]; 339 | 340 | const 무작위_이름_목록 = 이름_목록.generate(엄청_큰_배열_크기); 341 | const 무작위_나이_목록 = Array.from({ length: 엄청_큰_배열_크기 }, () => Math.floor(Math.random() * 99) + 1); 342 | const 무작위_도시_목록 = 도시_목록.generate(엄청_큰_배열_크기); 343 | 344 | const 무작위_데이터_리스트 = Array.from({ length: 엄청_큰_배열_크기 }).map((_, index) => ({ 345 | name: 무작위_이름_목록[index], 346 | age: 무작위_나이_목록[index], 347 | city: 무작위_도시_목록[index], 348 | })); 349 | 350 | // FIXME: 함수 라인 ================================================================== 351 | const timer = { 352 | time: 0, 353 | reset: () => { 354 | this.timer = 0; 355 | }, 356 | start: () => { 357 | this.time = performance.now(); 358 | }, 359 | end: () => { 360 | console.log(`추정 시간: ${performance.now() - this.time}`); 361 | this.time = 0; 362 | }, 363 | }; 364 | 365 | timer.start(); 366 | const getMockData = () => Object.assign([], 무작위_데이터_리스트); 367 | console.log(getMockData()); 368 | timer.end(); 369 | 370 | // module.exports = { 371 | // timer, 372 | // getMockData, 373 | // }; 374 | -------------------------------------------------------------------------------- /src/utils/unique.test.js: -------------------------------------------------------------------------------- 1 | // FIXME: npm test /src/utils/unique.test.js 2 | 3 | // 어떤 것을 해볼까요? 4 | const unique = (arr, callback, isSorted) => { 5 | return arr; 6 | }; 7 | 8 | describe('unique 테스트', () => { 9 | describe('non-lazy', () => { 10 | it('case: 1, Normal', () => { 11 | const [firstArray, secondArray] = [ 12 | [2, 1, 2], 13 | [1, 2, 1], 14 | ]; 15 | const firstUniqueArray = unique(firstArray); 16 | const secondUniqueArray = unique(secondArray); 17 | 18 | expect(firstUniqueArray).toEqual([2, 1]); 19 | expect(secondUniqueArray).toEqual([1, 2]); 20 | }); 21 | 22 | it('case: 2, Advanced', () => { 23 | const [firstArray, secondArray, thirdArray] = [ 24 | [1, 2, 3], 25 | [1, 1, 2, 2, 3], 26 | [1, 2, 3, 3, 3, 3, 3], 27 | ]; 28 | const firstUniqueArray = unique(firstArray, undefined, true); 29 | const secondUniqueArray = unique(secondArray, undefined, true); 30 | const thirdUniqueArray = unique(thirdArray, undefined, true); 31 | 32 | expect(firstUniqueArray).toEqual([1, 2, 3]); 33 | expect(secondUniqueArray).toEqual([1, 2, 3]); 34 | expect(thirdUniqueArray).toEqual([1, 2, 3]); 35 | }); 36 | 37 | it('case: 3, Advanced', () => { 38 | const objects = [ 39 | { x: 1, y: 2 }, 40 | { x: 2, y: 1 }, 41 | { x: 1, y: 2 }, 42 | ]; 43 | const uniqueObjects = unique(objects); 44 | 45 | expect(uniqueObjects).toEqual([ 46 | { x: 1, y: 2 }, 47 | { x: 2, y: 1 }, 48 | ]); 49 | }); 50 | }); 51 | }); 52 | --------------------------------------------------------------------------------