├── .clang-format ├── .editorconfig ├── .gitignore ├── .npmrc ├── .prettierignore ├── .travis.yml ├── LICENSE ├── README.md ├── binding.gyp ├── package.json ├── src ├── cpp │ ├── AddressBook.cc │ ├── AddressBook.h │ ├── Person.cc │ ├── Person.h │ └── wrapper.cc └── node │ ├── example.ts │ └── index.ts ├── tsconfig.json ├── tslint.json └── yarn.lock /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | # BasedOnStyle: Chromium 4 | AccessModifierOffset: -1 5 | AlignAfterOpenBracket: Align 6 | AlignConsecutiveAssignments: false 7 | AlignConsecutiveDeclarations: false 8 | AlignEscapedNewlinesLeft: true 9 | AlignOperands: true 10 | AlignTrailingComments: true 11 | AllowAllParametersOfDeclarationOnNextLine: false 12 | AllowShortBlocksOnASingleLine: false 13 | AllowShortCaseLabelsOnASingleLine: false 14 | AllowShortFunctionsOnASingleLine: Inline 15 | AllowShortIfStatementsOnASingleLine: false 16 | AllowShortLoopsOnASingleLine: false 17 | AlwaysBreakAfterDefinitionReturnType: None 18 | AlwaysBreakAfterReturnType: None 19 | AlwaysBreakBeforeMultilineStrings: true 20 | AlwaysBreakTemplateDeclarations: true 21 | BinPackArguments: true 22 | BinPackParameters: false 23 | BraceWrapping: 24 | AfterClass: false 25 | AfterControlStatement: false 26 | AfterEnum: false 27 | AfterFunction: false 28 | AfterNamespace: false 29 | AfterObjCDeclaration: false 30 | AfterStruct: false 31 | AfterUnion: false 32 | BeforeCatch: false 33 | BeforeElse: false 34 | IndentBraces: false 35 | BreakBeforeBinaryOperators: None 36 | BreakBeforeBraces: Attach 37 | BreakBeforeTernaryOperators: true 38 | BreakConstructorInitializersBeforeComma: false 39 | ColumnLimit: 120 40 | CommentPragmas: '^ IWYU pragma:' 41 | ConstructorInitializerAllOnOneLineOrOnePerLine: true 42 | ConstructorInitializerIndentWidth: 4 43 | ContinuationIndentWidth: 4 44 | Cpp11BracedListStyle: true 45 | DerivePointerAlignment: false 46 | DisableFormat: false 47 | ExperimentalAutoDetectBinPacking: false 48 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] 49 | IncludeCategories: 50 | - Regex: '^<.*\.h>' 51 | Priority: 1 52 | - Regex: '^<.*' 53 | Priority: 2 54 | - Regex: '.*' 55 | Priority: 3 56 | IndentCaseLabels: true 57 | IndentWidth: 2 58 | IndentWrappedFunctionNames: false 59 | KeepEmptyLinesAtTheStartOfBlocks: false 60 | MacroBlockBegin: '' 61 | MacroBlockEnd: '' 62 | MaxEmptyLinesToKeep: 1 63 | NamespaceIndentation: None 64 | ObjCBlockIndentWidth: 2 65 | ObjCSpaceAfterProperty: false 66 | ObjCSpaceBeforeProtocolList: false 67 | PenaltyBreakBeforeFirstCallParameter: 1 68 | PenaltyBreakComment: 300 69 | PenaltyBreakFirstLessLess: 120 70 | PenaltyBreakString: 1000 71 | PenaltyExcessCharacter: 1000000 72 | PenaltyReturnTypeOnItsOwnLine: 200 73 | PointerAlignment: Left 74 | ReflowComments: true 75 | SortIncludes: false 76 | SpaceAfterCStyleCast: false 77 | SpaceBeforeAssignmentOperators: true 78 | SpaceBeforeParens: ControlStatements 79 | SpaceInEmptyParentheses: false 80 | SpacesBeforeTrailingComments: 2 81 | SpacesInAngles: false 82 | SpacesInContainerLiterals: true 83 | SpacesInCStyleCastParentheses: false 84 | SpacesInParentheses: false 85 | SpacesInSquareBrackets: false 86 | Standard: Auto 87 | TabWidth: 8 88 | UseTab: Never 89 | ... 90 | 91 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.[oa] 2 | .*.swp 3 | *.log* 4 | local.properties 5 | .DS_STORE 6 | node_modules/ 7 | build/ 8 | .idea/ 9 | dist/ 10 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | registry=https://registry.npmjs.org/ 2 | save-exact=true 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | dist 3 | build 4 | node_modules 5 | package.json 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # http://docs.travis-ci.com/user/workers/container-based-infrastructure/ 2 | os: osx 3 | 4 | language: node_js 5 | 6 | node_js: 7 | - '12' 8 | 9 | notifications: 10 | email: false 11 | 12 | cache: 13 | yarn: true 14 | 15 | before_script: 16 | - git config clangFormat.binary node_modules/.bin/clang-format 17 | - git config clangFormat.style file 18 | 19 | script: 20 | - yarn lint 21 | - yarn dist 22 | - yarn test 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wire 2 | 3 | This repository is part of the source code of Wire. You can find more information at [wire.com](https://wire.com) or by contacting opensource@wire.com. 4 | 5 | You can find the published source code at [github.com/wireapp/wire](https://github.com/wireapp/wire). 6 | 7 | For licensing information, see the attached LICENSE file and the list of third-party licenses at [wire.com/legal/licenses/](https://wire.com/legal/licenses/). 8 | 9 | ## Building 10 | 11 | Building for node is done with node-gyp: 12 | 13 | ``` 14 | node-gyp configure 15 | node-gyp build 16 | ``` 17 | 18 | Building for electron seems to require the use of electron-rebuild: 19 | 20 | `electron-rebuild -v ` 21 | 22 | # Usage 23 | 24 | See [`example.ts`](./src/node/example.ts). 25 | -------------------------------------------------------------------------------- /binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | "targets": [ 3 | { 4 | "target_name": "electron-addressbook", 5 | "sources": [ 6 | "src/cpp/AddressBook.cc", 7 | "src/cpp/Person.cc", 8 | "src/cpp/wrapper.cc" 9 | ], 10 | "include_dirs": [ 11 | "", 3 | "dependencies": { 4 | "nan": "2.14.1" 5 | }, 6 | "description": "OSX addressbook access for node", 7 | "devDependencies": { 8 | "@types/node": "~12", 9 | "@types/progress": "2.0.3", 10 | "@wireapp/prettier-config": "0.3.0", 11 | "@wireapp/tslint-config": "1.4.1", 12 | "clang-format": "1.4.0", 13 | "husky": "4.2.5", 14 | "lint-staged": "10.2.2", 15 | "prettier": "2.0.5", 16 | "progress": "2.0.3", 17 | "rimraf": "3.0.2", 18 | "tslint": "5.20.1", 19 | "tslint-config-prettier": "1.18.0", 20 | "tslint-plugin-prettier": "2.3.0", 21 | "tslint-react": "4.2.0", 22 | "tslint-react-hooks": "2.2.2", 23 | "typescript": "3.8.3" 24 | }, 25 | "engines": { 26 | "node": ">= 10" 27 | }, 28 | "files": [ 29 | "binding.gyp", 30 | "src/cpp", 31 | "dist" 32 | ], 33 | "gypfile": true, 34 | "husky": { 35 | "hooks": { 36 | "pre-commit": "lint-staged" 37 | } 38 | }, 39 | "keywords": [ 40 | "address", 41 | "addressbook", 42 | "contacts", 43 | "binding" 44 | ], 45 | "license": "GPL-3.0", 46 | "lint-staged": { 47 | "*.ts": [ 48 | "tslint --project tsconfig.json --fix" 49 | ], 50 | "*.{h,cc}": [ 51 | "clang-format -i" 52 | ], 53 | "*.{json,md,yml}": [ 54 | "prettier --write" 55 | ] 56 | }, 57 | "main": "dist/index.js", 58 | "name": "@wireapp/node-addressbook", 59 | "os": [ 60 | "darwin" 61 | ], 62 | "prettier": "@wireapp/prettier-config", 63 | "repository": "https://github.com/wireapp/node-addressbook.git", 64 | "scripts": { 65 | "build": "yarn build:ts && yarn build:gyp", 66 | "build:gyp": "node-gyp rebuild", 67 | "build:ts": "tsc", 68 | "clear": "rimraf build dist", 69 | "dist": "yarn clear && yarn build", 70 | "fix": "yarn fix:other && yarn fix:cpp && yarn fix:ts", 71 | "fix:cpp": "clang-format -i --glob=\"src/cpp/*.{h,cc}\"", 72 | "fix:other": "yarn prettier --write", 73 | "fix:ts": "yarn lint:ts --fix", 74 | "lint": "yarn lint:other && yarn lint:cpp && yarn lint:ts", 75 | "lint:cpp": "check-clang-format", 76 | "lint:other": "yarn prettier --list-different", 77 | "lint:ts": "tslint --project tsconfig.json", 78 | "prettier": "prettier \"**/*.{json,md,yml}\"", 79 | "test": "yarn lint && yarn dist" 80 | }, 81 | "version": "3.3.1" 82 | } 83 | -------------------------------------------------------------------------------- /src/cpp/AddressBook.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Wire 3 | // Copyright (C) 2016 Wire Swiss GmbH 4 | // 5 | // This program is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program. If not, see . 17 | // 18 | 19 | #include "Person.h" 20 | 21 | #ifdef __APPLE__ 22 | #include "AddressBook/ABAddressBookC.h" 23 | #endif 24 | 25 | #include "AddressBook.h" 26 | 27 | AddressBook::AddressBook() {} 28 | 29 | Person* AddressBook::getMe() const { 30 | #ifdef __APPLE__ 31 | ABAddressBookRef ab = ABGetSharedAddressBook(); 32 | ABPersonRef me = ABGetMe(ab); 33 | Person* p = new Person(me); 34 | #else 35 | Person* p = new Person(); 36 | #endif 37 | return p; 38 | } 39 | 40 | unsigned long AddressBook::contactCount() const { 41 | #ifdef __APPLE__ 42 | CFIndex count = 0; 43 | ABAddressBookRef ab = ABGetSharedAddressBook(); 44 | CFArrayRef peeps = ABCopyArrayOfAllPeople(ab); 45 | if (peeps) { 46 | count = CFArrayGetCount(peeps); 47 | CFRelease(peeps); 48 | } 49 | return count; 50 | #else 51 | return 0; 52 | #endif 53 | } 54 | 55 | Person* AddressBook::getContact(unsigned long pos) const { 56 | #ifdef __APPLE__ 57 | Person* p = NULL; 58 | ABAddressBookRef ab = ABGetSharedAddressBook(); 59 | CFArrayRef peeps = ABCopyArrayOfAllPeople(ab); 60 | if (peeps) { 61 | CFIndex count = CFArrayGetCount(peeps); 62 | if ((CFIndex)pos < count) { 63 | ABPersonRef pe = (ABPersonRef)CFArrayGetValueAtIndex(peeps, pos); 64 | if (pe) { 65 | p = new Person(pe); 66 | } 67 | } 68 | CFRelease(peeps); 69 | } 70 | #else 71 | Person* p = new Person(); 72 | #endif 73 | return p; 74 | } 75 | -------------------------------------------------------------------------------- /src/cpp/AddressBook.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wire 3 | // Copyright (C) 2016 Wire Swiss GmbH 4 | // 5 | // This program is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program. If not, see . 17 | // 18 | 19 | #ifndef ADDRESSBOOK_H 20 | #define ADDRESSBOOK_H 21 | 22 | #include "Person.h" 23 | 24 | class AddressBook { 25 | public: 26 | Person* getMe() const; 27 | unsigned long contactCount() const; 28 | Person* getContact(unsigned long pos) const; 29 | 30 | AddressBook(); 31 | }; 32 | 33 | #endif // ADDRESSBOOK_H 34 | -------------------------------------------------------------------------------- /src/cpp/Person.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Wire 3 | // Copyright (C) 2016 Wire Swiss GmbH 4 | // 5 | // This program is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program. If not, see . 17 | // 18 | 19 | #include "Person.h" 20 | #include "AddressBook.h" 21 | 22 | #ifdef __APPLE__ 23 | std::string Person::CFString2String(CFStringRef str) { 24 | std::string rv; 25 | CFIndex length = CFStringGetLength(str); 26 | CFIndex maxSize = CFStringGetMaximumSizeForEncoding(length, kCFStringEncodingUTF8) + 1; 27 | char* buffer = (char*)malloc(maxSize); 28 | if (CFStringGetCString(str, buffer, maxSize, kCFStringEncodingUTF8)) { 29 | rv = buffer; 30 | free(buffer); 31 | } 32 | 33 | return rv; 34 | } 35 | 36 | std::string Person::getStringProperty(ABPersonRef person, CFStringRef propertyName) { 37 | CFStringRef propertyVal = (CFStringRef)ABRecordCopyValue(person, propertyName); 38 | std::string rv; 39 | 40 | if (propertyVal && CFGetTypeID(propertyVal) == CFStringGetTypeID()) { 41 | rv = CFString2String(propertyVal); 42 | CFRelease(propertyVal); 43 | } 44 | 45 | return rv; 46 | } 47 | 48 | void Person::fillPropertyVector(ABPersonRef person, CFStringRef propertyName, stringvector& vec) { 49 | ABMultiValueRef propertyArray = (ABMultiValueRef)ABRecordCopyValue(person, propertyName); 50 | 51 | if (propertyArray) { 52 | CFIndex count = ABMultiValueCount(propertyArray); 53 | for (CFIndex p = 0; p < count; p++) { 54 | CFStringRef propertyVal = (CFStringRef)ABMultiValueCopyValueAtIndex(propertyArray, p); 55 | vec.push_back(CFString2String(propertyVal)); 56 | CFRelease(propertyVal); 57 | } 58 | } 59 | } 60 | #endif 61 | 62 | Person::Person() {} 63 | 64 | #ifdef __APPLE__ 65 | Person::Person(ABPersonRef p) { 66 | m_firstName = getStringProperty(p, kABFirstNameProperty); 67 | m_lastName = getStringProperty(p, kABLastNameProperty); 68 | m_uid = getStringProperty(p, kABUIDProperty); 69 | 70 | fillPropertyVector(p, kABEmailProperty, m_emails); 71 | fillPropertyVector(p, kABPhoneProperty, m_numbers); 72 | } 73 | #endif 74 | 75 | const stringvector& Person::numbers() const { 76 | return m_numbers; 77 | } 78 | 79 | const stringvector& Person::emails() const { 80 | return m_emails; 81 | } 82 | -------------------------------------------------------------------------------- /src/cpp/Person.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wire 3 | // Copyright (C) 2016 Wire Swiss GmbH 4 | // 5 | // This program is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program. If not, see . 17 | // 18 | 19 | #ifndef PERSON_H 20 | #define PERSON_H 21 | 22 | #include 23 | #include 24 | #ifdef __APPLE__ 25 | #include 26 | #endif 27 | 28 | typedef std::vector stringvector; 29 | 30 | class Person { 31 | public: 32 | Person(); 33 | #ifdef __APPLE__ 34 | Person(ABPersonRef p); 35 | #endif 36 | 37 | const std::string& firstName() const { return m_firstName; } 38 | 39 | const std::string& lastName() const { return m_lastName; } 40 | 41 | const std::string& uid() const { return m_uid; } 42 | 43 | const stringvector& numbers() const; 44 | const stringvector& emails() const; 45 | 46 | private: 47 | #ifdef __APPLE__ 48 | static std::string CFString2String(CFStringRef str); 49 | static std::string getStringProperty(ABPersonRef person, CFStringRef propertyName); 50 | static void fillPropertyVector(ABPersonRef person, CFStringRef propertyName, stringvector& vec); 51 | #endif 52 | std::string m_firstName; 53 | std::string m_lastName; 54 | std::string m_uid; 55 | stringvector m_numbers; 56 | stringvector m_emails; 57 | }; 58 | 59 | #endif // PERSON_H 60 | -------------------------------------------------------------------------------- /src/cpp/wrapper.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Wire 3 | // Copyright (C) 2016 Wire Swiss GmbH 4 | // 5 | // This program is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program. If not, see . 17 | // 18 | 19 | #include 20 | #include 21 | #include 22 | #include "AddressBook.h" 23 | 24 | using namespace Nan; 25 | using namespace std; 26 | using namespace v8; 27 | 28 | void setStringArray(Isolate* isolate, Local obj, const char* name, const stringvector& src) { 29 | Local array = Array::New(isolate); 30 | for (unsigned int i = 0; i < src.size(); i++) { 31 | Local result = String::NewFromUtf8(isolate, src[i].c_str()); 32 | array->Set(i, result); 33 | } 34 | obj->Set(String::NewFromUtf8(isolate, name), array); 35 | } 36 | 37 | void fillPersonObject(Isolate* isolate, Local obj, Person* person) { 38 | obj->Set(String::NewFromUtf8(isolate, "firstName"), String::NewFromUtf8(isolate, person->firstName().c_str())); 39 | obj->Set(String::NewFromUtf8(isolate, "lastName"), String::NewFromUtf8(isolate, person->lastName().c_str())); 40 | obj->Set(String::NewFromUtf8(isolate, "uid"), String::NewFromUtf8(isolate, person->uid().c_str())); 41 | 42 | setStringArray(isolate, obj, "emails", person->emails()); 43 | setStringArray(isolate, obj, "numbers", person->numbers()); 44 | } 45 | 46 | class AddressBookWorker : public AsyncProgressWorker { 47 | public: 48 | AddressBookWorker(Callback* callback, Callback* progress) 49 | : AsyncProgressWorker(callback), progress(progress), contacts() {} 50 | 51 | ~AddressBookWorker() {} 52 | 53 | void Execute(const AsyncProgressWorker::ExecutionProgress& progress) { 54 | AddressBook ab; 55 | unsigned total = ab.contactCount(); 56 | for (unsigned int i = 0; i < total; i++) { 57 | contacts.push_back(ab.getContact(i)); 58 | int percent = i * 100 / total; 59 | progress.Send(reinterpret_cast(&percent), sizeof(int)); 60 | } 61 | } 62 | 63 | void HandleProgressCallback(const char* data, size_t size) { 64 | Nan::HandleScope scope; 65 | 66 | v8::Local argv[] = {New(*reinterpret_cast(const_cast(data)))}; 67 | progress->Call(1, argv); 68 | } 69 | 70 | // We have the results, and we're back in the event loop. 71 | void HandleOKCallback() { 72 | Isolate* isolate = Isolate::GetCurrent(); 73 | Nan::HandleScope scope; 74 | 75 | Local results = New(contacts.size()); 76 | int i = 0; 77 | 78 | for_each(contacts.begin(), contacts.end(), [&](Person* person) { 79 | Local contact = Object::New(isolate); 80 | fillPersonObject(isolate, contact, person); 81 | Nan::Set(results, i, contact); 82 | i++; 83 | }); 84 | 85 | Local argv[] = {results}; 86 | callback->Call(1, argv); 87 | } 88 | 89 | private: 90 | Callback* progress; 91 | vector contacts; 92 | }; 93 | 94 | // Asynchronous access to the `getContacts()` function 95 | NAN_METHOD(GetContacts) { 96 | Callback* progress = new Callback(info[0].As()); 97 | Callback* callback = new Callback(info[1].As()); 98 | 99 | AsyncQueueWorker(new AddressBookWorker(callback, progress)); 100 | } 101 | 102 | NAN_METHOD(GetMe) { 103 | AddressBook ab; 104 | Isolate* isolate = Isolate::GetCurrent(); 105 | 106 | Local me = Object::New(isolate); 107 | fillPersonObject(isolate, me, ab.getMe()); 108 | 109 | info.GetReturnValue().Set(me); 110 | } 111 | 112 | NAN_METHOD(GetContact) { 113 | #if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >= 7 114 | unsigned int index = info[0]->Uint32Value(Nan::GetCurrentContext()).ToChecked(); 115 | #else 116 | unsigned int index = info[0]->Uint32Value(); 117 | #endif 118 | 119 | AddressBook ab; 120 | Isolate* isolate = Isolate::GetCurrent(); 121 | Person* person = ab.getContact(index); 122 | 123 | Local contact = Object::New(isolate); 124 | 125 | if (person != NULL) { 126 | fillPersonObject(isolate, contact, person); 127 | } 128 | 129 | info.GetReturnValue().Set(contact); 130 | } 131 | 132 | NAN_METHOD(GetContactsCount) { 133 | AddressBook ab; 134 | info.GetReturnValue().Set((unsigned)ab.contactCount()); 135 | } 136 | 137 | NAN_MODULE_INIT(Init) { 138 | Nan::Set(target, New("getMe").ToLocalChecked(), GetFunction(New(GetMe)).ToLocalChecked()); 139 | Nan::Set(target, New("getContact").ToLocalChecked(), 140 | GetFunction(New(GetContact)).ToLocalChecked()); 141 | Nan::Set(target, New("getContactsCount").ToLocalChecked(), 142 | GetFunction(New(GetContactsCount)).ToLocalChecked()); 143 | Nan::Set(target, New("getContacts").ToLocalChecked(), 144 | GetFunction(New(GetContacts)).ToLocalChecked()); 145 | } 146 | 147 | NODE_MODULE(addon, Init) 148 | -------------------------------------------------------------------------------- /src/node/example.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Wire 3 | * Copyright (C) 2016 Wire Swiss GmbH 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | /** 20 | * Addressbook has a member `me` that represents the current user. 21 | * contacts member is an array of all contacts (includes the `me` user) 22 | * 23 | * `me` and contact objects have the following members: 24 | * `emails` - array of strings of email addresses 25 | * `firstName` - string 26 | * `lastName` - string 27 | * `uid` - string 28 | * `numbers` - array of strings of phone numbers 29 | */ 30 | 31 | import * as progress from 'progress'; 32 | import * as addressBook from './'; 33 | 34 | const me = addressBook.getMe(); 35 | const contact0 = addressBook.getContact(0); 36 | const contactsCount = addressBook.getContactsCount(); 37 | 38 | const progressBar = new progress('Loading: [:bar] :percent :elapseds', { 39 | complete: '=', 40 | incomplete: ' ', 41 | total: 100, 42 | width: 40, 43 | }); 44 | 45 | console.log('Me:', me); 46 | console.log('Contact [0]:', contact0); 47 | console.log('Number of contacts:', contactsCount); 48 | 49 | let lastProgress = 0; 50 | 51 | progressBar.tick(); 52 | addressBook.getContacts( 53 | progress => { 54 | if (progress > lastProgress) { 55 | progressBar.tick(); 56 | lastProgress = progress; 57 | } 58 | }, 59 | contacts => { 60 | console.log('Contacts with callback:', contacts); 61 | }, 62 | ); 63 | 64 | addressBook 65 | .getContacts() 66 | .then(contacts => console.log('Contacts asynchronously:', contacts)) 67 | .catch(error => console.error(error)); 68 | -------------------------------------------------------------------------------- /src/node/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Wire 3 | * Copyright (C) 2016 Wire Swiss GmbH 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | const { 20 | getContact, 21 | getMe, 22 | getContacts, 23 | getContactsCount, 24 | }: AddressBook = require('../build/Release/electron-addressbook'); 25 | 26 | export interface ContactInformation { 27 | emails: string[]; 28 | firstName: string; 29 | lastName: string; 30 | numbers: string[]; 31 | uid: string; 32 | } 33 | 34 | export type OnProgressCallback = (progress: number) => void; 35 | export type OnFinishCallback = (contacts: ContactInformation[]) => void; 36 | 37 | export interface AddressBook { 38 | /** 39 | * Get Contact Information from the AddressBook using it's index 40 | * 41 | * @param index contact index in the Addressbook 42 | * @returns Contact Information 43 | */ 44 | getContact(index?: number): ContactInformation; 45 | 46 | /** 47 | * Get Contact Information for the logged-in user 48 | * 49 | * @returns Contact Information 50 | */ 51 | getMe(): ContactInformation; 52 | 53 | /** Returns the number of contacts in the AddressBook. */ 54 | getContactsCount(): number; 55 | 56 | /** 57 | * Get all contacts information from the AddressBook 58 | * 59 | * @param onProgress Callback provides overall process percent as an integer value between 1 to 100 60 | * @param onFinish Callback provides an array contains all of the Addressbook contacts information 61 | */ 62 | getContacts(onProgress?: OnProgressCallback, onFinish?: OnFinishCallback): void; 63 | } 64 | 65 | function getContactsWrapper(): Promise; 66 | function getContactsWrapper(onProgress: OnProgressCallback, onFinish: OnFinishCallback): void; 67 | function getContactsWrapper( 68 | onProgress?: OnProgressCallback, 69 | onFinish?: OnFinishCallback, 70 | ): Promise | void { 71 | if (!onProgress && !onFinish) { 72 | return new Promise((resolve, reject) => { 73 | try { 74 | getContacts( 75 | () => {}, 76 | data => { 77 | resolve(data); 78 | }, 79 | ); 80 | } catch (error) { 81 | reject(error); 82 | } 83 | }); 84 | } 85 | return getContacts(onProgress, onFinish); 86 | } 87 | 88 | export {getContact, getContactsWrapper as getContacts, getMe, getContactsCount}; 89 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "declaration": true, 4 | "lib": ["dom", "es2018"], 5 | "module": "commonjs", 6 | "moduleResolution": "node", 7 | "noEmitOnError": true, 8 | "noImplicitReturns": true, 9 | "noUnusedLocals": true, 10 | "outDir": "dist", 11 | "rootDir": "src/node", 12 | "sourceMap": true, 13 | "strict": true, 14 | "target": "es6" 15 | }, 16 | "exclude": ["dist", "node_modules"] 17 | } 18 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@wireapp/tslint-config"], 3 | "linterOptions": { 4 | "exclude": ["dist/**", "node_modules/**"] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@babel/code-frame@^7.0.0": 6 | version "7.0.0" 7 | resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" 8 | integrity sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA== 9 | dependencies: 10 | "@babel/highlight" "^7.0.0" 11 | 12 | "@babel/highlight@^7.0.0": 13 | version "7.0.0" 14 | resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz#f710c38c8d458e6dd9a201afb637fcb781ce99e4" 15 | integrity sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw== 16 | dependencies: 17 | chalk "^2.0.0" 18 | esutils "^2.0.2" 19 | js-tokens "^4.0.0" 20 | 21 | "@babel/runtime@^7.6.3": 22 | version "7.7.7" 23 | resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.7.tgz#194769ca8d6d7790ec23605af9ee3e42a0aa79cf" 24 | integrity sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA== 25 | dependencies: 26 | regenerator-runtime "^0.13.2" 27 | 28 | "@samverschueren/stream-to-observable@^0.3.0": 29 | version "0.3.0" 30 | resolved "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f" 31 | integrity sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg== 32 | dependencies: 33 | any-observable "^0.3.0" 34 | 35 | "@types/color-name@^1.1.1": 36 | version "1.1.1" 37 | resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" 38 | integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== 39 | 40 | "@types/node@*", "@types/node@~12": 41 | version "12.12.37" 42 | resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.37.tgz#cb4782d847f801fa58316da5b4801ca3a59ae790" 43 | integrity sha512-4mXKoDptrXAwZErQHrLzpe0FN/0Wmf5JRniSVIdwUrtDf9wnmEV1teCNLBo/TwuXhkK/bVegoEn/wmb+x0AuPg== 44 | 45 | "@types/parse-json@^4.0.0": 46 | version "4.0.0" 47 | resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" 48 | integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== 49 | 50 | "@types/progress@2.0.3": 51 | version "2.0.3" 52 | resolved "https://registry.yarnpkg.com/@types/progress/-/progress-2.0.3.tgz#7ccbd9c6d4d601319126c469e73b5bb90dfc8ccc" 53 | integrity sha512-bPOsfCZ4tsTlKiBjBhKnM8jpY5nmIll166IPD58D92hR7G7kZDfx5iB9wGF4NfZrdKolebjeAr3GouYkSGoJ/A== 54 | dependencies: 55 | "@types/node" "*" 56 | 57 | "@wireapp/prettier-config@0.3.0": 58 | version "0.3.0" 59 | resolved "https://registry.yarnpkg.com/@wireapp/prettier-config/-/prettier-config-0.3.0.tgz#e8129b31021c81d90d564d9c4ff0f7f7b514e943" 60 | integrity sha512-BFokvX4NZlkhWq5/OoJUCS8Iels+MeRgzpd5V9QR3hj5swwCFGxJOAL7soPXkSNWo91gI1qwiTp8szB1O9aCfQ== 61 | 62 | "@wireapp/tslint-config@1.4.1": 63 | version "1.4.1" 64 | resolved "https://registry.yarnpkg.com/@wireapp/tslint-config/-/tslint-config-1.4.1.tgz#2089af720f65279d696293cbc3ca13063529139a" 65 | integrity sha512-hPoEUTlnjJ38r/NDHMhfCgWQAue4Q3Zf8iWQeLKn/aOxUVQTEY1/oALplooKwoX/ei5KulBQveEu/foBQ2TYsw== 66 | 67 | aggregate-error@^3.0.0: 68 | version "3.0.1" 69 | resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz#db2fe7246e536f40d9b5442a39e117d7dd6a24e0" 70 | integrity sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA== 71 | dependencies: 72 | clean-stack "^2.0.0" 73 | indent-string "^4.0.0" 74 | 75 | ansi-colors@^3.2.1: 76 | version "3.2.4" 77 | resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" 78 | integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== 79 | 80 | ansi-escapes@^4.3.0: 81 | version "4.3.1" 82 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" 83 | integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA== 84 | dependencies: 85 | type-fest "^0.11.0" 86 | 87 | ansi-regex@^5.0.0: 88 | version "5.0.0" 89 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" 90 | integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== 91 | 92 | ansi-styles@^3.2.1: 93 | version "3.2.1" 94 | resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 95 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 96 | dependencies: 97 | color-convert "^1.9.0" 98 | 99 | ansi-styles@^4.0.0, ansi-styles@^4.1.0: 100 | version "4.2.1" 101 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" 102 | integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== 103 | dependencies: 104 | "@types/color-name" "^1.1.1" 105 | color-convert "^2.0.1" 106 | 107 | any-observable@^0.3.0: 108 | version "0.3.0" 109 | resolved "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" 110 | integrity sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog== 111 | 112 | argparse@^1.0.7: 113 | version "1.0.10" 114 | resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 115 | integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 116 | dependencies: 117 | sprintf-js "~1.0.2" 118 | 119 | astral-regex@^2.0.0: 120 | version "2.0.0" 121 | resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" 122 | integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== 123 | 124 | async@^1.5.2: 125 | version "1.5.2" 126 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 127 | integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= 128 | 129 | balanced-match@^1.0.0: 130 | version "1.0.0" 131 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 132 | integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= 133 | 134 | brace-expansion@^1.1.7: 135 | version "1.1.11" 136 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 137 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 138 | dependencies: 139 | balanced-match "^1.0.0" 140 | concat-map "0.0.1" 141 | 142 | braces@^3.0.1: 143 | version "3.0.2" 144 | resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" 145 | integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== 146 | dependencies: 147 | fill-range "^7.0.1" 148 | 149 | builtin-modules@^1.1.1: 150 | version "1.1.1" 151 | resolved "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 152 | integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= 153 | 154 | callsites@^3.0.0: 155 | version "3.1.0" 156 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" 157 | integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== 158 | 159 | chalk@^2.0.0, chalk@^2.3.0, chalk@^2.4.2: 160 | version "2.4.2" 161 | resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 162 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 163 | dependencies: 164 | ansi-styles "^3.2.1" 165 | escape-string-regexp "^1.0.5" 166 | supports-color "^5.3.0" 167 | 168 | chalk@^3.0.0: 169 | version "3.0.0" 170 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" 171 | integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== 172 | dependencies: 173 | ansi-styles "^4.1.0" 174 | supports-color "^7.1.0" 175 | 176 | chalk@^4.0.0: 177 | version "4.0.0" 178 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.0.0.tgz#6e98081ed2d17faab615eb52ac66ec1fe6209e72" 179 | integrity sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A== 180 | dependencies: 181 | ansi-styles "^4.1.0" 182 | supports-color "^7.1.0" 183 | 184 | ci-info@^2.0.0: 185 | version "2.0.0" 186 | resolved "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" 187 | integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== 188 | 189 | clang-format@1.4.0: 190 | version "1.4.0" 191 | resolved "https://registry.yarnpkg.com/clang-format/-/clang-format-1.4.0.tgz#1ee2f10637eb5bb0bd7d0b82c949af68e848367e" 192 | integrity sha512-NrdyUnHJOGvMa60vbWk7GJTvOdhibj3uK5C0FlwdNG4301OUvqEJTFce9I9x8qw2odBbIVrJ+9xbsFS3a4FbDA== 193 | dependencies: 194 | async "^1.5.2" 195 | glob "^7.0.0" 196 | resolve "^1.1.6" 197 | 198 | clean-stack@^2.0.0: 199 | version "2.2.0" 200 | resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" 201 | integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== 202 | 203 | cli-cursor@^3.1.0: 204 | version "3.1.0" 205 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" 206 | integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== 207 | dependencies: 208 | restore-cursor "^3.1.0" 209 | 210 | cli-truncate@^2.1.0: 211 | version "2.1.0" 212 | resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" 213 | integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== 214 | dependencies: 215 | slice-ansi "^3.0.0" 216 | string-width "^4.2.0" 217 | 218 | clone@^1.0.2: 219 | version "1.0.4" 220 | resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" 221 | integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= 222 | 223 | color-convert@^1.9.0: 224 | version "1.9.3" 225 | resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 226 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 227 | dependencies: 228 | color-name "1.1.3" 229 | 230 | color-convert@^2.0.1: 231 | version "2.0.1" 232 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 233 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 234 | dependencies: 235 | color-name "~1.1.4" 236 | 237 | color-name@1.1.3: 238 | version "1.1.3" 239 | resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 240 | integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= 241 | 242 | color-name@~1.1.4: 243 | version "1.1.4" 244 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 245 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 246 | 247 | commander@^2.12.1: 248 | version "2.20.0" 249 | resolved "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" 250 | integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== 251 | 252 | commander@^5.0.0: 253 | version "5.0.0" 254 | resolved "https://registry.yarnpkg.com/commander/-/commander-5.0.0.tgz#dbf1909b49e5044f8fdaf0adc809f0c0722bdfd0" 255 | integrity sha512-JrDGPAKjMGSP1G0DUoaceEJ3DZgAfr/q6X7FVk4+U5KxUSKviYGM2k6zWkfyyBHy5rAtzgYJFa1ro2O9PtoxwQ== 256 | 257 | compare-versions@^3.6.0: 258 | version "3.6.0" 259 | resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62" 260 | integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA== 261 | 262 | concat-map@0.0.1: 263 | version "0.0.1" 264 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 265 | integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= 266 | 267 | cosmiconfig@^6.0.0: 268 | version "6.0.0" 269 | resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" 270 | integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== 271 | dependencies: 272 | "@types/parse-json" "^4.0.0" 273 | import-fresh "^3.1.0" 274 | parse-json "^5.0.0" 275 | path-type "^4.0.0" 276 | yaml "^1.7.2" 277 | 278 | cross-spawn@^7.0.0: 279 | version "7.0.1" 280 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" 281 | integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== 282 | dependencies: 283 | path-key "^3.1.0" 284 | shebang-command "^2.0.0" 285 | which "^2.0.1" 286 | 287 | debug@^4.1.1: 288 | version "4.1.1" 289 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" 290 | integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== 291 | dependencies: 292 | ms "^2.1.1" 293 | 294 | dedent@^0.7.0: 295 | version "0.7.0" 296 | resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" 297 | integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= 298 | 299 | defaults@^1.0.3: 300 | version "1.0.3" 301 | resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" 302 | integrity sha1-xlYFHpgX2f8I7YgUd/P+QBnz730= 303 | dependencies: 304 | clone "^1.0.2" 305 | 306 | diff@^4.0.1: 307 | version "4.0.1" 308 | resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff" 309 | integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q== 310 | 311 | elegant-spinner@^2.0.0: 312 | version "2.0.0" 313 | resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-2.0.0.tgz#f236378985ecd16da75488d166be4b688fd5af94" 314 | integrity sha512-5YRYHhvhYzV/FC4AiMdeSIg3jAYGq9xFvbhZMpPlJoBsfYgrw2DSCYeXfat6tYBu45PWiyRr3+flaCPPmviPaA== 315 | 316 | emoji-regex@^8.0.0: 317 | version "8.0.0" 318 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" 319 | integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== 320 | 321 | end-of-stream@^1.1.0: 322 | version "1.4.1" 323 | resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" 324 | integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== 325 | dependencies: 326 | once "^1.4.0" 327 | 328 | enquirer@^2.3.4: 329 | version "2.3.5" 330 | resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.5.tgz#3ab2b838df0a9d8ab9e7dff235b0e8712ef92381" 331 | integrity sha512-BNT1C08P9XD0vNg3J475yIUG+mVdp9T6towYFHUv897X0KoHBjB1shyrNmhmtHWKP17iSWgo7Gqh7BBuzLZMSA== 332 | dependencies: 333 | ansi-colors "^3.2.1" 334 | 335 | error-ex@^1.3.1: 336 | version "1.3.2" 337 | resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 338 | integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== 339 | dependencies: 340 | is-arrayish "^0.2.1" 341 | 342 | escape-string-regexp@^1.0.5: 343 | version "1.0.5" 344 | resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 345 | integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= 346 | 347 | eslint-plugin-prettier@^2.2.0: 348 | version "2.7.0" 349 | resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.7.0.tgz#b4312dcf2c1d965379d7f9d5b5f8aaadc6a45904" 350 | integrity sha512-CStQYJgALoQBw3FsBzH0VOVDRnJ/ZimUlpLm226U8qgqYJfPOY/CPK6wyRInMxh73HSKg5wyRwdS4BVYYHwokA== 351 | dependencies: 352 | fast-diff "^1.1.1" 353 | jest-docblock "^21.0.0" 354 | 355 | esprima@^4.0.0: 356 | version "4.0.1" 357 | resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 358 | integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== 359 | 360 | esutils@^2.0.2: 361 | version "2.0.2" 362 | resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 363 | integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= 364 | 365 | execa@^4.0.0: 366 | version "4.0.0" 367 | resolved "https://registry.yarnpkg.com/execa/-/execa-4.0.0.tgz#7f37d6ec17f09e6b8fc53288611695b6d12b9daf" 368 | integrity sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA== 369 | dependencies: 370 | cross-spawn "^7.0.0" 371 | get-stream "^5.0.0" 372 | human-signals "^1.1.1" 373 | is-stream "^2.0.0" 374 | merge-stream "^2.0.0" 375 | npm-run-path "^4.0.0" 376 | onetime "^5.1.0" 377 | signal-exit "^3.0.2" 378 | strip-final-newline "^2.0.0" 379 | 380 | fast-diff@^1.1.1: 381 | version "1.2.0" 382 | resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" 383 | integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== 384 | 385 | figures@^3.2.0: 386 | version "3.2.0" 387 | resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" 388 | integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== 389 | dependencies: 390 | escape-string-regexp "^1.0.5" 391 | 392 | fill-range@^7.0.1: 393 | version "7.0.1" 394 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" 395 | integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== 396 | dependencies: 397 | to-regex-range "^5.0.1" 398 | 399 | find-up@^4.0.0: 400 | version "4.1.0" 401 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" 402 | integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== 403 | dependencies: 404 | locate-path "^5.0.0" 405 | path-exists "^4.0.0" 406 | 407 | find-versions@^3.2.0: 408 | version "3.2.0" 409 | resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-3.2.0.tgz#10297f98030a786829681690545ef659ed1d254e" 410 | integrity sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww== 411 | dependencies: 412 | semver-regex "^2.0.0" 413 | 414 | fs.realpath@^1.0.0: 415 | version "1.0.0" 416 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 417 | integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= 418 | 419 | get-own-enumerable-property-symbols@^3.0.0: 420 | version "3.0.0" 421 | resolved "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203" 422 | integrity sha512-CIJYJC4GGF06TakLg8z4GQKvDsx9EMspVxOYih7LerEL/WosUnFIww45CGfxfeKHqlg3twgUrYRT1O3WQqjGCg== 423 | 424 | get-stream@^5.0.0: 425 | version "5.1.0" 426 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9" 427 | integrity sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw== 428 | dependencies: 429 | pump "^3.0.0" 430 | 431 | glob@^7.0.0, glob@^7.1.1, glob@^7.1.3: 432 | version "7.1.4" 433 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" 434 | integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== 435 | dependencies: 436 | fs.realpath "^1.0.0" 437 | inflight "^1.0.4" 438 | inherits "2" 439 | minimatch "^3.0.4" 440 | once "^1.3.0" 441 | path-is-absolute "^1.0.0" 442 | 443 | has-flag@^3.0.0: 444 | version "3.0.0" 445 | resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 446 | integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= 447 | 448 | has-flag@^4.0.0: 449 | version "4.0.0" 450 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" 451 | integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== 452 | 453 | human-signals@^1.1.1: 454 | version "1.1.1" 455 | resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" 456 | integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== 457 | 458 | husky@4.2.5: 459 | version "4.2.5" 460 | resolved "https://registry.yarnpkg.com/husky/-/husky-4.2.5.tgz#2b4f7622673a71579f901d9885ed448394b5fa36" 461 | integrity sha512-SYZ95AjKcX7goYVZtVZF2i6XiZcHknw50iXvY7b0MiGoj5RwdgRQNEHdb+gPDPCXKlzwrybjFjkL6FOj8uRhZQ== 462 | dependencies: 463 | chalk "^4.0.0" 464 | ci-info "^2.0.0" 465 | compare-versions "^3.6.0" 466 | cosmiconfig "^6.0.0" 467 | find-versions "^3.2.0" 468 | opencollective-postinstall "^2.0.2" 469 | pkg-dir "^4.2.0" 470 | please-upgrade-node "^3.2.0" 471 | slash "^3.0.0" 472 | which-pm-runs "^1.0.0" 473 | 474 | import-fresh@^3.1.0: 475 | version "3.2.1" 476 | resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" 477 | integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ== 478 | dependencies: 479 | parent-module "^1.0.0" 480 | resolve-from "^4.0.0" 481 | 482 | indent-string@^4.0.0: 483 | version "4.0.0" 484 | resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" 485 | integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== 486 | 487 | inflight@^1.0.4: 488 | version "1.0.6" 489 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 490 | integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= 491 | dependencies: 492 | once "^1.3.0" 493 | wrappy "1" 494 | 495 | inherits@2: 496 | version "2.0.3" 497 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 498 | integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= 499 | 500 | is-arrayish@^0.2.1: 501 | version "0.2.1" 502 | resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 503 | integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= 504 | 505 | is-fullwidth-code-point@^3.0.0: 506 | version "3.0.0" 507 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" 508 | integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== 509 | 510 | is-number@^7.0.0: 511 | version "7.0.0" 512 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" 513 | integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== 514 | 515 | is-obj@^1.0.1: 516 | version "1.0.1" 517 | resolved "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" 518 | integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= 519 | 520 | is-regexp@^1.0.0: 521 | version "1.0.0" 522 | resolved "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" 523 | integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= 524 | 525 | is-stream@^2.0.0: 526 | version "2.0.0" 527 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" 528 | integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== 529 | 530 | isexe@^2.0.0: 531 | version "2.0.0" 532 | resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 533 | integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= 534 | 535 | jest-docblock@^21.0.0: 536 | version "21.2.0" 537 | resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414" 538 | integrity sha512-5IZ7sY9dBAYSV+YjQ0Ovb540Ku7AO9Z5o2Cg789xj167iQuZ2cG+z0f3Uct6WeYLbU6aQiM2pCs7sZ+4dotydw== 539 | 540 | js-tokens@^4.0.0: 541 | version "4.0.0" 542 | resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 543 | integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 544 | 545 | js-yaml@^3.13.1: 546 | version "3.13.1" 547 | resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" 548 | integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== 549 | dependencies: 550 | argparse "^1.0.7" 551 | esprima "^4.0.0" 552 | 553 | json-parse-better-errors@^1.0.1: 554 | version "1.0.2" 555 | resolved "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" 556 | integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== 557 | 558 | lines-and-columns@^1.1.6: 559 | version "1.1.6" 560 | resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" 561 | integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= 562 | 563 | lint-staged@10.2.2: 564 | version "10.2.2" 565 | resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.2.2.tgz#901403c120eb5d9443a0358b55038b04c8a7db9b" 566 | integrity sha512-78kNqNdDeKrnqWsexAmkOU3Z5wi+1CsQmUmfCuYgMTE8E4rAIX8RHW7xgxwAZ+LAayb7Cca4uYX4P3LlevzjVg== 567 | dependencies: 568 | chalk "^4.0.0" 569 | commander "^5.0.0" 570 | cosmiconfig "^6.0.0" 571 | debug "^4.1.1" 572 | dedent "^0.7.0" 573 | execa "^4.0.0" 574 | listr2 "1.3.8" 575 | log-symbols "^3.0.0" 576 | micromatch "^4.0.2" 577 | normalize-path "^3.0.0" 578 | please-upgrade-node "^3.2.0" 579 | string-argv "0.3.1" 580 | stringify-object "^3.3.0" 581 | 582 | listr2@1.3.8: 583 | version "1.3.8" 584 | resolved "https://registry.yarnpkg.com/listr2/-/listr2-1.3.8.tgz#30924d79de1e936d8c40af54b6465cb814a9c828" 585 | integrity sha512-iRDRVTgSDz44tBeBBg/35TQz4W+EZBWsDUq7hPpqeUHm7yLPNll0rkwW3lIX9cPAK7l+x95mGWLpxjqxftNfZA== 586 | dependencies: 587 | "@samverschueren/stream-to-observable" "^0.3.0" 588 | chalk "^3.0.0" 589 | cli-cursor "^3.1.0" 590 | cli-truncate "^2.1.0" 591 | elegant-spinner "^2.0.0" 592 | enquirer "^2.3.4" 593 | figures "^3.2.0" 594 | indent-string "^4.0.0" 595 | log-update "^4.0.0" 596 | p-map "^4.0.0" 597 | pad "^3.2.0" 598 | rxjs "^6.3.3" 599 | through "^2.3.8" 600 | uuid "^7.0.2" 601 | 602 | locate-path@^5.0.0: 603 | version "5.0.0" 604 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" 605 | integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== 606 | dependencies: 607 | p-locate "^4.1.0" 608 | 609 | log-symbols@^3.0.0: 610 | version "3.0.0" 611 | resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" 612 | integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== 613 | dependencies: 614 | chalk "^2.4.2" 615 | 616 | log-update@^4.0.0: 617 | version "4.0.0" 618 | resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" 619 | integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== 620 | dependencies: 621 | ansi-escapes "^4.3.0" 622 | cli-cursor "^3.1.0" 623 | slice-ansi "^4.0.0" 624 | wrap-ansi "^6.2.0" 625 | 626 | merge-stream@^2.0.0: 627 | version "2.0.0" 628 | resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" 629 | integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== 630 | 631 | micromatch@^4.0.2: 632 | version "4.0.2" 633 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" 634 | integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== 635 | dependencies: 636 | braces "^3.0.1" 637 | picomatch "^2.0.5" 638 | 639 | mimic-fn@^2.1.0: 640 | version "2.1.0" 641 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" 642 | integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== 643 | 644 | minimatch@^3.0.4: 645 | version "3.0.4" 646 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 647 | integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== 648 | dependencies: 649 | brace-expansion "^1.1.7" 650 | 651 | minimist@^1.2.5: 652 | version "1.2.5" 653 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" 654 | integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== 655 | 656 | mkdirp@^0.5.1: 657 | version "0.5.5" 658 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" 659 | integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== 660 | dependencies: 661 | minimist "^1.2.5" 662 | 663 | ms@^2.1.1: 664 | version "2.1.1" 665 | resolved "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" 666 | integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== 667 | 668 | nan@2.14.1: 669 | version "2.14.1" 670 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" 671 | integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw== 672 | 673 | normalize-path@^3.0.0: 674 | version "3.0.0" 675 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" 676 | integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== 677 | 678 | npm-run-path@^4.0.0: 679 | version "4.0.1" 680 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" 681 | integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== 682 | dependencies: 683 | path-key "^3.0.0" 684 | 685 | once@^1.3.0, once@^1.3.1, once@^1.4.0: 686 | version "1.4.0" 687 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 688 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= 689 | dependencies: 690 | wrappy "1" 691 | 692 | onetime@^5.1.0: 693 | version "5.1.0" 694 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" 695 | integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q== 696 | dependencies: 697 | mimic-fn "^2.1.0" 698 | 699 | opencollective-postinstall@^2.0.2: 700 | version "2.0.2" 701 | resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89" 702 | integrity sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw== 703 | 704 | p-limit@^2.2.0: 705 | version "2.2.0" 706 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2" 707 | integrity sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ== 708 | dependencies: 709 | p-try "^2.0.0" 710 | 711 | p-locate@^4.1.0: 712 | version "4.1.0" 713 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" 714 | integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== 715 | dependencies: 716 | p-limit "^2.2.0" 717 | 718 | p-map@^4.0.0: 719 | version "4.0.0" 720 | resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" 721 | integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== 722 | dependencies: 723 | aggregate-error "^3.0.0" 724 | 725 | p-try@^2.0.0: 726 | version "2.2.0" 727 | resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" 728 | integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== 729 | 730 | pad@^3.2.0: 731 | version "3.2.0" 732 | resolved "https://registry.yarnpkg.com/pad/-/pad-3.2.0.tgz#be7a1d1cb6757049b4ad5b70e71977158fea95d1" 733 | integrity sha512-2u0TrjcGbOjBTJpyewEl4hBO3OeX5wWue7eIFPzQTg6wFSvoaHcBTTUY5m+n0hd04gmTCPuY0kCpVIVuw5etwg== 734 | dependencies: 735 | wcwidth "^1.0.1" 736 | 737 | parent-module@^1.0.0: 738 | version "1.0.1" 739 | resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" 740 | integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== 741 | dependencies: 742 | callsites "^3.0.0" 743 | 744 | parse-json@^5.0.0: 745 | version "5.0.0" 746 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.0.0.tgz#73e5114c986d143efa3712d4ea24db9a4266f60f" 747 | integrity sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw== 748 | dependencies: 749 | "@babel/code-frame" "^7.0.0" 750 | error-ex "^1.3.1" 751 | json-parse-better-errors "^1.0.1" 752 | lines-and-columns "^1.1.6" 753 | 754 | path-exists@^4.0.0: 755 | version "4.0.0" 756 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" 757 | integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== 758 | 759 | path-is-absolute@^1.0.0: 760 | version "1.0.1" 761 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 762 | integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= 763 | 764 | path-key@^3.0.0: 765 | version "3.1.0" 766 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.0.tgz#99a10d870a803bdd5ee6f0470e58dfcd2f9a54d3" 767 | integrity sha512-8cChqz0RP6SHJkMt48FW0A7+qUOn+OsnOsVtzI59tZ8m+5bCSk7hzwET0pulwOM2YMn9J1efb07KB9l9f30SGg== 768 | 769 | path-key@^3.1.0: 770 | version "3.1.1" 771 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" 772 | integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== 773 | 774 | path-parse@^1.0.6: 775 | version "1.0.6" 776 | resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" 777 | integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== 778 | 779 | path-type@^4.0.0: 780 | version "4.0.0" 781 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" 782 | integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== 783 | 784 | picomatch@^2.0.5: 785 | version "2.0.7" 786 | resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6" 787 | integrity sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA== 788 | 789 | pkg-dir@^4.2.0: 790 | version "4.2.0" 791 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" 792 | integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== 793 | dependencies: 794 | find-up "^4.0.0" 795 | 796 | please-upgrade-node@^3.2.0: 797 | version "3.2.0" 798 | resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942" 799 | integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== 800 | dependencies: 801 | semver-compare "^1.0.0" 802 | 803 | prettier@2.0.5: 804 | version "2.0.5" 805 | resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4" 806 | integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg== 807 | 808 | progress@2.0.3: 809 | version "2.0.3" 810 | resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" 811 | integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== 812 | 813 | pump@^3.0.0: 814 | version "3.0.0" 815 | resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" 816 | integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== 817 | dependencies: 818 | end-of-stream "^1.1.0" 819 | once "^1.3.1" 820 | 821 | regenerator-runtime@^0.13.2: 822 | version "0.13.3" 823 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" 824 | integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== 825 | 826 | resolve-from@^4.0.0: 827 | version "4.0.0" 828 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" 829 | integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== 830 | 831 | resolve@^1.1.6, resolve@^1.3.2: 832 | version "1.10.1" 833 | resolved "https://registry.npmjs.org/resolve/-/resolve-1.10.1.tgz#664842ac960795bbe758221cdccda61fb64b5f18" 834 | integrity sha512-KuIe4mf++td/eFb6wkaPbMDnP6kObCaEtIDuHOUED6MNUo4K670KZUHuuvYPZDxNF0WVLw49n06M2m2dXphEzA== 835 | dependencies: 836 | path-parse "^1.0.6" 837 | 838 | restore-cursor@^3.1.0: 839 | version "3.1.0" 840 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" 841 | integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== 842 | dependencies: 843 | onetime "^5.1.0" 844 | signal-exit "^3.0.2" 845 | 846 | rimraf@3.0.2: 847 | version "3.0.2" 848 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" 849 | integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== 850 | dependencies: 851 | glob "^7.1.3" 852 | 853 | rxjs@^6.3.3: 854 | version "6.5.1" 855 | resolved "https://registry.npmjs.org/rxjs/-/rxjs-6.5.1.tgz#f7a005a9386361921b8524f38f54cbf80e5d08f4" 856 | integrity sha512-y0j31WJc83wPu31vS1VlAFW5JGrnGC+j+TtGAa1fRQphy48+fDYiDmX8tjGloToEsMkxnouOg/1IzXGKkJnZMg== 857 | dependencies: 858 | tslib "^1.9.0" 859 | 860 | semver-compare@^1.0.0: 861 | version "1.0.0" 862 | resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" 863 | integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= 864 | 865 | semver-regex@^2.0.0: 866 | version "2.0.0" 867 | resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338" 868 | integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw== 869 | 870 | semver@^5.3.0: 871 | version "5.7.0" 872 | resolved "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" 873 | integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== 874 | 875 | shebang-command@^2.0.0: 876 | version "2.0.0" 877 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" 878 | integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== 879 | dependencies: 880 | shebang-regex "^3.0.0" 881 | 882 | shebang-regex@^3.0.0: 883 | version "3.0.0" 884 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" 885 | integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== 886 | 887 | signal-exit@^3.0.2: 888 | version "3.0.2" 889 | resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 890 | integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= 891 | 892 | slash@^3.0.0: 893 | version "3.0.0" 894 | resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" 895 | integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== 896 | 897 | slice-ansi@^3.0.0: 898 | version "3.0.0" 899 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" 900 | integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== 901 | dependencies: 902 | ansi-styles "^4.0.0" 903 | astral-regex "^2.0.0" 904 | is-fullwidth-code-point "^3.0.0" 905 | 906 | slice-ansi@^4.0.0: 907 | version "4.0.0" 908 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" 909 | integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== 910 | dependencies: 911 | ansi-styles "^4.0.0" 912 | astral-regex "^2.0.0" 913 | is-fullwidth-code-point "^3.0.0" 914 | 915 | sprintf-js@~1.0.2: 916 | version "1.0.3" 917 | resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 918 | integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= 919 | 920 | string-argv@0.3.1: 921 | version "0.3.1" 922 | resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" 923 | integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== 924 | 925 | string-width@^4.1.0, string-width@^4.2.0: 926 | version "4.2.0" 927 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" 928 | integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== 929 | dependencies: 930 | emoji-regex "^8.0.0" 931 | is-fullwidth-code-point "^3.0.0" 932 | strip-ansi "^6.0.0" 933 | 934 | stringify-object@^3.3.0: 935 | version "3.3.0" 936 | resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629" 937 | integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== 938 | dependencies: 939 | get-own-enumerable-property-symbols "^3.0.0" 940 | is-obj "^1.0.1" 941 | is-regexp "^1.0.0" 942 | 943 | strip-ansi@^6.0.0: 944 | version "6.0.0" 945 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" 946 | integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== 947 | dependencies: 948 | ansi-regex "^5.0.0" 949 | 950 | strip-final-newline@^2.0.0: 951 | version "2.0.0" 952 | resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" 953 | integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== 954 | 955 | supports-color@^5.3.0: 956 | version "5.5.0" 957 | resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 958 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 959 | dependencies: 960 | has-flag "^3.0.0" 961 | 962 | supports-color@^7.1.0: 963 | version "7.1.0" 964 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" 965 | integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== 966 | dependencies: 967 | has-flag "^4.0.0" 968 | 969 | through@^2.3.8: 970 | version "2.3.8" 971 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 972 | integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= 973 | 974 | to-regex-range@^5.0.1: 975 | version "5.0.1" 976 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" 977 | integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== 978 | dependencies: 979 | is-number "^7.0.0" 980 | 981 | tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: 982 | version "1.9.3" 983 | resolved "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" 984 | integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ== 985 | 986 | tslint-config-prettier@1.18.0: 987 | version "1.18.0" 988 | resolved "https://registry.npmjs.org/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37" 989 | integrity sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg== 990 | 991 | tslint-plugin-prettier@2.3.0: 992 | version "2.3.0" 993 | resolved "https://registry.yarnpkg.com/tslint-plugin-prettier/-/tslint-plugin-prettier-2.3.0.tgz#73fe71bf9f03842ac48c104122ca9b1de012ecf4" 994 | integrity sha512-F9e4K03yc9xuvv+A0v1EmjcnDwpz8SpCD8HzqSDe0eyg34cBinwn9JjmnnRrNAs4HdleRQj7qijp+P/JTxt4vA== 995 | dependencies: 996 | eslint-plugin-prettier "^2.2.0" 997 | lines-and-columns "^1.1.6" 998 | tslib "^1.7.1" 999 | 1000 | tslint-react-hooks@2.2.2: 1001 | version "2.2.2" 1002 | resolved "https://registry.yarnpkg.com/tslint-react-hooks/-/tslint-react-hooks-2.2.2.tgz#4dc9b3986196802d45c11cc0bf6319a8116fe2ed" 1003 | integrity sha512-gtwA14+WevNUtlBhvAD5Ukpxt2qMegYI7IDD8zN/3JXLksdLdEuU/T/oqlI1CtZhMJffqyNn+aqq2oUqUFXiNA== 1004 | 1005 | tslint-react@4.2.0: 1006 | version "4.2.0" 1007 | resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-4.2.0.tgz#41b16e0438365f8d3ed4120501f02cabff9fd1e4" 1008 | integrity sha512-lO22+FKr9ZZGueGiuALzvZE/8ANoDoCHGCknX1Ge3ALrfcLQHQ1VGdyb1scZXQFdEQEfwBTIU40r5BUlJpn0JA== 1009 | dependencies: 1010 | tsutils "^3.9.1" 1011 | 1012 | tslint@5.20.1: 1013 | version "5.20.1" 1014 | resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d" 1015 | integrity sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg== 1016 | dependencies: 1017 | "@babel/code-frame" "^7.0.0" 1018 | builtin-modules "^1.1.1" 1019 | chalk "^2.3.0" 1020 | commander "^2.12.1" 1021 | diff "^4.0.1" 1022 | glob "^7.1.1" 1023 | js-yaml "^3.13.1" 1024 | minimatch "^3.0.4" 1025 | mkdirp "^0.5.1" 1026 | resolve "^1.3.2" 1027 | semver "^5.3.0" 1028 | tslib "^1.8.0" 1029 | tsutils "^2.29.0" 1030 | 1031 | tsutils@^2.29.0: 1032 | version "2.29.0" 1033 | resolved "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" 1034 | integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== 1035 | dependencies: 1036 | tslib "^1.8.1" 1037 | 1038 | tsutils@^3.9.1: 1039 | version "3.10.0" 1040 | resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.10.0.tgz#6f1c95c94606e098592b0dff06590cf9659227d6" 1041 | integrity sha512-q20XSMq7jutbGB8luhKKsQldRKWvyBO2BGqni3p4yq8Ys9bEP/xQw3KepKmMRt9gJ4lvQSScrihJrcKdKoSU7Q== 1042 | dependencies: 1043 | tslib "^1.8.1" 1044 | 1045 | type-fest@^0.11.0: 1046 | version "0.11.0" 1047 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" 1048 | integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== 1049 | 1050 | typescript@3.8.3: 1051 | version "3.8.3" 1052 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" 1053 | integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== 1054 | 1055 | uuid@^7.0.2: 1056 | version "7.0.3" 1057 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b" 1058 | integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== 1059 | 1060 | wcwidth@^1.0.1: 1061 | version "1.0.1" 1062 | resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" 1063 | integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= 1064 | dependencies: 1065 | defaults "^1.0.3" 1066 | 1067 | which-pm-runs@^1.0.0: 1068 | version "1.0.0" 1069 | resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb" 1070 | integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs= 1071 | 1072 | which@^2.0.1: 1073 | version "2.0.2" 1074 | resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" 1075 | integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== 1076 | dependencies: 1077 | isexe "^2.0.0" 1078 | 1079 | wrap-ansi@^6.2.0: 1080 | version "6.2.0" 1081 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" 1082 | integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== 1083 | dependencies: 1084 | ansi-styles "^4.0.0" 1085 | string-width "^4.1.0" 1086 | strip-ansi "^6.0.0" 1087 | 1088 | wrappy@1: 1089 | version "1.0.2" 1090 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1091 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= 1092 | 1093 | yaml@^1.7.2: 1094 | version "1.7.2" 1095 | resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.7.2.tgz#f26aabf738590ab61efaca502358e48dc9f348b2" 1096 | integrity sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw== 1097 | dependencies: 1098 | "@babel/runtime" "^7.6.3" 1099 | --------------------------------------------------------------------------------