diff --git a/node_modules/.bin/js-yaml b/node_modules/.bin/js-yaml
deleted file mode 120000
index 9dbd010..0000000
--- a/node_modules/.bin/js-yaml
+++ /dev/null
@@ -1 +0,0 @@
-../js-yaml/bin/js-yaml.js
\ No newline at end of file
diff --git a/node_modules/irc/.npmignore b/node_modules/irc/.npmignore
deleted file mode 100644
index dd218dc..0000000
--- a/node_modules/irc/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules/
-_build/
diff --git a/node_modules/irc/COPYING b/node_modules/irc/COPYING
deleted file mode 100644
index 94a9ed0..0000000
--- a/node_modules/irc/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- Copyright (C)
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-.
diff --git a/node_modules/irc/Makefile b/node_modules/irc/Makefile
deleted file mode 100644
index ce7e945..0000000
--- a/node_modules/irc/Makefile
+++ /dev/null
@@ -1,4 +0,0 @@
-test:
- ./node_modules/.bin/mocha --reporter list
-
-.PHONY: test
diff --git a/node_modules/irc/README.rst b/node_modules/irc/README.rst
deleted file mode 100644
index 8b1f68d..0000000
--- a/node_modules/irc/README.rst
+++ /dev/null
@@ -1,105 +0,0 @@
-`node-irc`_ is an IRC client library written in JavaScript_ for Node_.
-
-.. _`node-irc`: http://node-irc.readthedocs.org/
-.. _JavaScript: http://en.wikipedia.org/wiki/JavaScript
-.. _Node: http://nodejs.org/
-
-You can access more detailed documentation for this module at `Read the Docs`_
-
-
-Installation
--------------
-
-The easiest way to get it is via npm_::
-
- npm install irc
-
-If you want to run the latest version (i.e. later than the version available via
-npm_) you can clone this repo, then use npm_ to link-install it::
-
- npm link /path/to/your/clone
-
-Of course, you can just clone this, and manually point at the library itself,
-but I really recommend using npm_!
-
-Basic Usage
--------------
-
-This library provides basic IRC client functionality. In the simplest case you
-can connect to an IRC server like so::
-
- var irc = require('irc');
- var client = new irc.Client('irc.dollyfish.net.nz', 'myNick', {
- channels: ['#blah'],
- });
-
-Of course it's not much use once it's connected if that's all you have!
-
-The client emits a large number of events that correlate to things you'd
-normally see in your favourite IRC client. Most likely the first one you'll want
-to use is::
-
- client.addListener('message', function (from, to, message) {
- console.log(from + ' => ' + to + ': ' + message);
- });
-
-or if you're only interested in messages to the bot itself::
-
- client.addListener('pm', function (from, message) {
- console.log(from + ' => ME: ' + message);
- });
-
-or to a particular channel::
-
- client.addListener('message#yourchannel', function (from, message) {
- console.log(from + ' => #yourchannel: ' + message);
- });
-
-At the moment there are functions for joining::
-
- client.join('#yourchannel yourpass');
-
-parting::
-
- client.part('#yourchannel');
-
-talking::
-
- client.say('#yourchannel', "I'm a bot!");
- client.say('nonbeliever', "SRSLY, I AM!");
-
-and many others. Check out the API documentation for a complete reference.
-
-For any commands that there aren't methods for you can use the send() method
-which sends raw messages to the server::
-
- client.send('MODE', '#yourchannel', '+o', 'yournick');
-
-Help! - it keeps crashing!
----------------------------
-
-When the client receives errors from the IRC network, it emits an "error"
-event. As stated in the `Node JS EventEmitter documentation`_ if you don't bind
-something to this error, it will cause a fatal stack trace.
-
-The upshot of this is basically that if you bind an error handler to your
-client, errors will be sent there instead of crashing your program.::
-
- client.addListener('error', function(message) {
- console.log('error: ', message);
- });
-
-
-Further Documentation
------------------------
-
-Further documentation (including a complete API reference) are available in
-reStructuredText format in the docs/ folder of this project, or online at `Read the Docs`_.
-
-If you find any issues with the documentation (or the module) please send a pull
-request or file an issue and I'll do my best to accommodate.
-
-.. _npm: http://github.com/isaacs/npm
-.. _here: http://node-irc.readthedocs.org/en/latest/API.html
-.. _`Read the Docs`: http://readthedocs.org/docs/node-irc/en/latest/
-.. _`Node JS EventEmitter documentation`: http://nodejs.org/api/events.html#events_class_events_eventemitter
diff --git a/node_modules/irc/docs/API.rst b/node_modules/irc/docs/API.rst
deleted file mode 100644
index c762a40..0000000
--- a/node_modules/irc/docs/API.rst
+++ /dev/null
@@ -1,504 +0,0 @@
-API
-===
-
-This library provides IRC client functionality
-
-Client
-----------
-
-.. js:function:: irc.Client(server, nick [, options])
-
- This object is the base of everything, it represents a single nick connected to
- a single IRC server.
-
- The first two arguments are the server to connect to, and the nickname to
- attempt to use. The third optional argument is an options object with default
- values::
-
- {
- userName: 'nodebot',
- realName: 'nodeJS IRC client',
- port: 6667,
- debug: false,
- showErrors: false,
- autoRejoin: true,
- autoConnect: true,
- channels: [],
- secure: false,
- selfSigned: false,
- certExpired: false,
- floodProtection: false,
- floodProtectionDelay: 1000,
- stripColors: false,
- channelPrefixes: "",
- messageSplit: 512
- }
-
- `secure` (SSL connection) can be a true value or an object (the kind of object
- returned from `crypto.createCredentials()`) specifying cert etc for validation.
- If you set `selfSigned` to true SSL accepts certificates from a non trusted CA.
- If you set `certExpired` to true, the bot connects even if the ssl cert has expired.
-
- `floodProtection` queues all your messages and slowly unpacks it to make sure
- that we won't get kicked out because for Excess Flood. You can also use
- `Client.activateFloodProtection()` to activate flood protection after
- instantiating the client.
-
- `floodProtectionDelay` sets the amount of time that the client will wait
- between sending subsequent messages when `floodProtection` is enabled.
-
- `messageSplit` will split up large messages sent with the `say` method
- into multiple messages of length fewer than `messageSplit` characters.
-
- `stripColors` removes mirc colors (0x03 followed by one or two ascii
- numbers for foreground,background) and ircII "effect" codes (0x02
- bold, 0x1f underline, 0x16 reverse, 0x0f reset) from the entire
- message before parsing it and passing it along.
-
- Setting `autoConnect` to false prevents the Client from connecting on
- instantiation. You will need to call `connect()` on the client instance::
-
- var client = new irc.Client({ autoConnect: false, ... });
- client.connect();
-
-
-.. js:function:: Client.send(command, arg1, arg2, ...)
-
- Sends a raw message to the server; generally speaking, it's best not to use
- this method unless you know what you're doing. Instead, use one of the
- methods below.
-
-.. js:function:: Client.join(channel, callback)
-
- Joins the specified channel.
-
- :param string channel: Channel to join
- :param function callback: Callback to automatically subscribed to the
- `join#channel` event, but removed after the first invocation. `channel`
- supports multiple JOIN arguments as a space separated string (similar to
- the IRC protocol).
-
-.. js:function:: Client.part(channel, callback)
-
- Parts the specified channel.
-
- :param string channel: Channel to part
- :param function callback: Callback to automatically subscribed to the
- `part#channel` event, but removed after the first invocation.
-
-.. js:function:: Client.say(target, message)
-
- Sends a message to the specified target.
-
- :param string target: is either a nickname, or a channel.
- :param string message: the message to send to the target.
-
-.. js:function:: Client.ctcp(target, type, text)
-
- Sends a CTCP message to the specified target.
-
- :param string target: is either a nickname, or a channel.
- :param string type: the type of the CTCP message, either "privmsg" for
- a PRIVMSG or something else for a NOTICE.
- :param string text: the CTCP message to send.
-
-.. js:function:: Client.action(target, message)
-
- Sends an action to the specified target.
-
-.. js:function:: Client.notice(target, message)
-
- Sends a notice to the specified target.
-
- :param string target: is either a nickname, or a channel.
- :param string message: the message to send as a notice to the target.
-
-.. js:function:: Client.whois(nick, callback)
-
- Request a whois for the specified `nick`.
-
- :param string nick: is a nickname
- :param function callback: Callback to fire when the server has finished
- generating the whois information and is passed exactly the same
- information as a `whois` event described above.
-
-.. js:function:: Client.list([arg1, arg2, ...])
-
- Request a channel listing from the server. The arguments for this method are
- fairly server specific, this method just passes them through exactly as
- specified.
-
- Responses from the server are available via the `channellist_start`,
- `channellist_item`, and `channellist` events.
-
-.. js:function:: Client.connect(retryCount, callback)
-
- Connects to the server. Used when `autoConnect` in the options is set to
- false. If `retryCount` is a function it will be treated as the `callback`
- (i.e. both arguments to this function are optional).
-
- :param integer retryCount: Optional number of times to attempt reconnection
- :param function callback: Optional callback
-
-.. js:function:: Client.disconnect(message, callback)
-
- Disconnects from the IRC server. If `message` if a function it will be
- treated as the `callback` (i.e. both arguments to this function are
- optional).
-
- :param string message: Optional message to send when disconnecting.
- :param function callback: Optional callback
-
-.. js:function:: Client.activateFloodProtection(interval)
-
- Activates flood protection "after the fact". You can also use
- `floodProtection` while instantiating the Client to enable flood
- protection, and `floodProtectionDelay` to set the default message
- interval.
-
- :param integer interval: Optional configuration for amount of time
- to wait between messages. Takes value from client configuration
- if unspecified.
-
-Events
-------
-
-`irc.Client` instances are EventEmitters with the following events:
-
-
-.. js:data:: 'registered'
-
- `function (message) { }`
-
- Emitted when the server sends the initial 001 line, indicating you've connected
- to the server. See the `raw` event for details on the `message` object.
-
-.. js:data:: 'motd'
-
- `function (motd) { }`
-
- Emitted when the server sends the message of the day to clients.
-
-.. js:data:: 'names'
-
- `function (channel, nicks) { }`
-
- Emitted when the server sends a list of nicks for a channel (which happens
- immediately after joining and on request. The nicks object passed to the
- callback is keyed by nick names, and has values '', '+', or '@' depending on the
- level of that nick in the channel.
-
-.. js:data:: 'names#channel'
-
- `function (nicks) { }`
-
- As per 'names' event but only emits for the subscribed channel.
-
-.. js:data:: 'topic'
-
- `function (channel, topic, nick, message) { }`
-
- Emitted when the server sends the channel topic on joining a channel, or when a
- user changes the topic on a channel. See the `raw` event for details on the
- `message` object.
-
-.. js:data:: 'join'
-
- `function (channel, nick, message) { }`
-
- Emitted when a user joins a channel (including when the client itself joins a
- channel). See the `raw` event for details on the `message` object.
-
-.. js:data:: 'join#channel'
-
- `function (nick, message) { }`
-
- As per 'join' event but only emits for the subscribed channel.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'part'
-
- `function (channel, nick, reason, message) { }`
-
- Emitted when a user parts a channel (including when the client itself parts a
- channel). See the `raw` event for details on the `message` object.
-
-.. js:data:: 'part#channel'
-
- `function (nick, reason, message) { }`
-
- As per 'part' event but only emits for the subscribed channel.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'quit'
-
- `function (nick, reason, channels, message) { }`
-
- Emitted when a user disconnects from the IRC, leaving the specified array of
- channels. See the `raw` event for details on the `message` object.
-
-.. js:data:: 'kick'
-
- `function (channel, nick, by, reason, message) { }`
-
- Emitted when a user is kicked from a channel. See the `raw` event for details
- on the `message` object.
-
-.. js:data:: 'kick#channel'
-
- `function (nick, by, reason, message) { }`
-
- As per 'kick' event but only emits for the subscribed channel.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'kill'
-
- `function (nick, reason, channels, message) { }`
-
- Emitted when a user is killed from the IRC server.
- `channels` is an array of channels the killed user was in which
- are known to the client.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'message'
-
- `function (nick, to, text, message) { }`
-
- Emitted when a message is sent. `to` can be either a nick (which is most likely
- this clients nick and means a private message), or a channel (which means a
- message to that channel). See the `raw` event for details on the `message` object.
-
-.. js:data:: 'message#'
-
- `function (nick, to, text, message) { }`
-
- Emitted when a message is sent to any channel (i.e. exactly the same as the
- `message` event but excluding private messages.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'message#channel'
-
- `function (nick, text, message) { }`
-
- As per 'message' event but only emits for the subscribed channel.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'notice'
-
- `function (nick, to, text, message) { }`
-
- Emitted when a notice is sent. `to` can be either a nick (which is most likely
- this clients nick and means a private message), or a channel (which means a
- message to that channel). `nick` is either the senders nick or `null` which
- means that the notice comes from the server. See the `raw` event for details
- on the `message` object.
-
-.. js:data:: 'ping'
-
- `function (server) { }`
-
- Emitted when a server PINGs the client. The client will automatically send a
- PONG request just before this is emitted.
-
-.. js:data:: 'pm'
-
- `function (nick, text, message) { }`
-
- As per 'message' event but only emits when the message is direct to the client.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'ctcp'
-
- `function (from, to, text, type) { }`
-
- Emitted when a CTCP notice or privmsg was received (`type` is either `'notice'`
- or `'privmsg'`).
-
-.. js:data:: 'ctcp-notice'
-
- `function (from, to, text) { }`
-
- Emitted when a CTCP notice was received.
-
-.. js:data:: 'ctcp-privmsg'
-
- `function (from, to, text) { }`
-
- Emitted when a CTCP privmsg was received.
-
-.. js:data:: 'ctcp-version'
-
- `function (from, to) { }`
-
- Emitted when a CTCP VERSION request was received.
-
-.. js:data:: 'nick'
-
- `function (oldnick, newnick, channels, message) { }`
-
- Emitted when a user changes nick along with the channels the user is in.
- See the `raw` event for details on the `message` object.
-
-.. js:data:: 'invite'
-
- `function (channel, from, message) { }`
-
- Emitted when the client recieves an `/invite`. See the `raw` event for details
- on the `message` object.
-
-.. js:data:: '+mode'
-
- `function (channel, by, mode, argument, message) { }`
-
- Emitted when a mode is added to a user or channel. `channel` is the channel
- which the mode is being set on/in. `by` is the user setting the mode. `mode`
- is the single character mode indentifier. If the mode is being set on a user,
- `argument` is the nick of the user. If the mode is being set on a channel,
- `argument` is the argument to the mode. If a channel mode doesn't have any
- arguments, `argument` will be 'undefined'. See the `raw` event for details
- on the `message` object.
-
-.. js:data:: '-mode'
-
- `function (channel, by, mode, argument, message) { }`
-
- Emitted when a mode is removed from a user or channel. `channel` is the channel
- which the mode is being set on/in. `by` is the user setting the mode. `mode`
- is the single character mode indentifier. If the mode is being set on a user,
- `argument` is the nick of the user. If the mode is being set on a channel,
- `argument` is the argument to the mode. If a channel mode doesn't have any
- arguments, `argument` will be 'undefined'. See the `raw` event for details
- on the `message` object.
-
-.. js:data:: 'whois'
-
- `function (info) { }`
-
- Emitted whenever the server finishes outputting a WHOIS response. The
- information should look something like::
-
- {
- nick: "Ned",
- user: "martyn",
- host: "10.0.0.18",
- realname: "Unknown",
- channels: ["@#purpledishwashers", "#blah", "#mmmmbacon"],
- server: "*.dollyfish.net.nz",
- serverinfo: "The Dollyfish Underworld",
- operator: "is an IRC Operator"
- }
-
-.. js:data:: 'channellist_start'
-
- `function () {}`
-
- Emitted whenever the server starts a new channel listing
-
-.. js:data:: 'channellist_item'
-
- `function (channel_info) {}`
-
- Emitted for each channel the server returns. The channel_info object
- contains keys 'name', 'users' (number of users on the channel), and 'topic'.
-
-.. js:data:: 'channellist'
-
- `function (channel_list) {}`
-
- Emitted when the server has finished returning a channel list. The
- channel_list array is simply a list of the objects that were returned in the
- intervening `channellist_item` events.
-
- This data is also available via the Client.channellist property after this
- event has fired.
-
-.. js:data:: 'raw'
-
- `function (message) { }`
-
- Emitted when ever the client receives a "message" from the server. A message is
- basically a single line of data from the server, but the parameter to the
- callback has already been parsed and contains::
-
- message = {
- prefix: "The prefix for the message (optional)",
- nick: "The nickname portion of the prefix (optional)",
- user: "The username portion of the prefix (optional)",
- host: "The hostname portion of the prefix (optional)",
- server: "The servername (if the prefix was a servername)",
- rawCommand: "The command exactly as sent from the server",
- command: "Human readable version of the command",
- commandType: "normal, error, or reply",
- args: ['arguments', 'to', 'the', 'command'],
- }
-
- You can read more about the IRC protocol by reading `RFC 1459
- `_
-
-.. js:data:: 'error'
-
- `function (message) { }`
-
- Emitted when ever the server responds with an error-type message. The message
- parameter is exactly as in the 'raw' event.
-
-Colors
-------
-
-.. js:function:: irc.colors.wrap(color, text [, reset_color])
-
- Takes a color by name, text, and optionally what color to return.
-
- :param string color: the name of the color as a string
- :param string text: the text you want colorized
- :param string reset_color: the nam of the color you want set after the text (defaults to 'reset')
-
-.. js:data:: irc.colors.codes
-
- This contains the set of colors available and a function to wrap text in a
- color.
-
- The following color choices are available:
-
- {
- white: '\u000300',
- black: '\u000301',
- dark_blue: '\u000302',
- dark_green: '\u000303',
- light_red: '\u000304',
- dark_red: '\u000305',
- magenta: '\u000306',
- orange: '\u000307',
- yellow: '\u000308',
- light_green: '\u000309',
- cyan: '\u000310',
- light_cyan: '\u000311',
- light_blue: '\u000312',
- light_magenta: '\u000313',
- gray: '\u000314',
- light_gray: '\u000315',
- reset: '\u000f',
- }
-
-Internal
-------
-
-.. js:data:: Client.conn
-
- Socket to the server. Rarely, if ever needed. Use `Client.send` instead.
-
-.. js:data:: Client.chans
-
- Channels joined. Updated *after* the server recognizes the join.
-
-.. js:function:: client._whoisData
-
- Buffer of whois data as whois is sent over multiple lines.
-
-.. js:function:: client._addWhoisData
-
- Self-explanatory.
-
-.. js:function:: client._clearWhoisData
-
- Self-explanatory.
diff --git a/node_modules/irc/docs/Makefile b/node_modules/irc/docs/Makefile
deleted file mode 100644
index a06411c..0000000
--- a/node_modules/irc/docs/Makefile
+++ /dev/null
@@ -1,130 +0,0 @@
-# Makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-PAPER =
-BUILDDIR = _build
-
-# Internal variables.
-PAPEROPT_a4 = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
-
-help:
- @echo "Please use \`make ' where is one of"
- @echo " html to make standalone HTML files"
- @echo " dirhtml to make HTML files named index.html in directories"
- @echo " singlehtml to make a single large HTML file"
- @echo " pickle to make pickle files"
- @echo " json to make JSON files"
- @echo " htmlhelp to make HTML files and a HTML help project"
- @echo " qthelp to make HTML files and a qthelp project"
- @echo " devhelp to make HTML files and a Devhelp project"
- @echo " epub to make an epub"
- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
- @echo " latexpdf to make LaTeX files and run them through pdflatex"
- @echo " text to make text files"
- @echo " man to make manual pages"
- @echo " changes to make an overview of all changed/added/deprecated items"
- @echo " linkcheck to check all external links for integrity"
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
-
-clean:
- -rm -rf $(BUILDDIR)/*
-
-html:
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-dirhtml:
- $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
-
-singlehtml:
- $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
- @echo
- @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
-
-pickle:
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
- @echo
- @echo "Build finished; now you can process the pickle files."
-
-json:
- $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
- @echo
- @echo "Build finished; now you can process the JSON files."
-
-htmlhelp:
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
- @echo
- @echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in $(BUILDDIR)/htmlhelp."
-
-qthelp:
- $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
- @echo
- @echo "Build finished; now you can run "qcollectiongenerator" with the" \
- ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/node-irc.qhcp"
- @echo "To view the help file:"
- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/node-irc.qhc"
-
-devhelp:
- $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
- @echo
- @echo "Build finished."
- @echo "To view the help file:"
- @echo "# mkdir -p $$HOME/.local/share/devhelp/node-irc"
- @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/node-irc"
- @echo "# devhelp"
-
-epub:
- $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
- @echo
- @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
-
-latex:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo
- @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
- @echo "Run \`make' in that directory to run these through (pdf)latex" \
- "(use \`make latexpdf' here to do that automatically)."
-
-latexpdf:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo "Running LaTeX files through pdflatex..."
- make -C $(BUILDDIR)/latex all-pdf
- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-text:
- $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
- @echo
- @echo "Build finished. The text files are in $(BUILDDIR)/text."
-
-man:
- $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
- @echo
- @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
-
-changes:
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
- @echo
- @echo "The overview file is in $(BUILDDIR)/changes."
-
-linkcheck:
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
- @echo
- @echo "Link check complete; look for any errors in the above output " \
- "or in $(BUILDDIR)/linkcheck/output.txt."
-
-doctest:
- $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
- @echo "Testing of doctests in the sources finished, look at the " \
- "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/node_modules/irc/docs/conf.py b/node_modules/irc/docs/conf.py
deleted file mode 100644
index 4f7e06b..0000000
--- a/node_modules/irc/docs/conf.py
+++ /dev/null
@@ -1,216 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# node-irc documentation build configuration file, created by
-# sphinx-quickstart on Sat Oct 1 00:02:31 2011.
-#
-# This file is execfile()d with the current directory set to its containing dir.
-#
-# Note that not all possible configuration values are present in this
-# autogenerated file.
-#
-# All configuration values have a default; values that are commented out
-# serve to show the default.
-
-import sys, os
-
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
-
-# -- General configuration -----------------------------------------------------
-
-# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
-
-# Add any Sphinx extension module names here, as strings. They can be extensions
-# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = []
-
-# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
-
-# The suffix of source filenames.
-source_suffix = '.rst'
-
-# The encoding of source files.
-#source_encoding = 'utf-8-sig'
-
-# The master toctree document.
-master_doc = 'index'
-
-# General information about the project.
-project = u'node-irc'
-copyright = u'2011, Martyn Smith'
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '2.1'
-# The full version, including alpha/beta/rc tags.
-release = '2.1'
-
-# The language for content autogenerated by Sphinx. Refer to documentation
-# for a list of supported languages.
-#language = None
-
-# There are two options for replacing |today|: either, you set today to some
-# non-false value, then it is used:
-#today = ''
-# Else, today_fmt is used as the format for a strftime call.
-#today_fmt = '%B %d, %Y'
-
-# List of patterns, relative to source directory, that match files and
-# directories to ignore when looking for source files.
-exclude_patterns = ['_build']
-
-# The reST default role (used for this markup: `text`) to use for all documents.
-#default_role = None
-
-# If true, '()' will be appended to :func: etc. cross-reference text.
-#add_function_parentheses = True
-
-# If true, the current module name will be prepended to all description
-# unit titles (such as .. function::).
-#add_module_names = True
-
-# If true, sectionauthor and moduleauthor directives will be shown in the
-# output. They are ignored by default.
-#show_authors = False
-
-# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
-
-# A list of ignored prefixes for module index sorting.
-#modindex_common_prefix = []
-
-
-# -- Options for HTML output ---------------------------------------------------
-
-# The theme to use for HTML and HTML Help pages. See the documentation for
-# a list of builtin themes.
-html_theme = 'default'
-
-# Theme options are theme-specific and customize the look and feel of a theme
-# further. For a list of options available for each theme, see the
-# documentation.
-#html_theme_options = {}
-
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
-
-# The name for this set of Sphinx documents. If None, it defaults to
-# " v documentation".
-#html_title = None
-
-# A shorter title for the navigation bar. Default is the same as html_title.
-#html_short_title = None
-
-# The name of an image file (relative to this directory) to place at the top
-# of the sidebar.
-#html_logo = None
-
-# The name of an image file (within the static path) to use as favicon of the
-# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
-# pixels large.
-#html_favicon = None
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
-
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-#html_last_updated_fmt = '%b %d, %Y'
-
-# If true, SmartyPants will be used to convert quotes and dashes to
-# typographically correct entities.
-#html_use_smartypants = True
-
-# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
-
-# Additional templates that should be rendered to pages, maps page names to
-# template names.
-#html_additional_pages = {}
-
-# If false, no module index is generated.
-#html_domain_indices = True
-
-# If false, no index is generated.
-#html_use_index = True
-
-# If true, the index is split into individual pages for each letter.
-#html_split_index = False
-
-# If true, links to the reST sources are added to the pages.
-#html_show_sourcelink = True
-
-# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-#html_show_sphinx = True
-
-# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
-#html_show_copyright = True
-
-# If true, an OpenSearch description file will be output, and all pages will
-# contain a tag referring to it. The value of this option must be the
-# base URL from which the finished HTML is served.
-#html_use_opensearch = ''
-
-# This is the file name suffix for HTML files (e.g. ".xhtml").
-#html_file_suffix = None
-
-# Output file base name for HTML help builder.
-htmlhelp_basename = 'node-ircdoc'
-
-
-# -- Options for LaTeX output --------------------------------------------------
-
-# The paper size ('letter' or 'a4').
-#latex_paper_size = 'letter'
-
-# The font size ('10pt', '11pt' or '12pt').
-#latex_font_size = '10pt'
-
-# Grouping the document tree into LaTeX files. List of tuples
-# (source start file, target name, title, author, documentclass [howto/manual]).
-latex_documents = [
- ('index', 'node-irc.tex', u'node-irc Documentation',
- u'Martyn Smith', 'manual'),
-]
-
-# The name of an image file (relative to this directory) to place at the top of
-# the title page.
-#latex_logo = None
-
-# For "manual" documents, if this is true, then toplevel headings are parts,
-# not chapters.
-#latex_use_parts = False
-
-# If true, show page references after internal links.
-#latex_show_pagerefs = False
-
-# If true, show URL addresses after external links.
-#latex_show_urls = False
-
-# Additional stuff for the LaTeX preamble.
-#latex_preamble = ''
-
-# Documents to append as an appendix to all manuals.
-#latex_appendices = []
-
-# If false, no module index is generated.
-#latex_domain_indices = True
-
-
-# -- Options for manual page output --------------------------------------------
-
-# One entry per manual page. List of tuples
-# (source start file, name, description, authors, manual section).
-man_pages = [
- ('index', 'node-irc', u'node-irc Documentation',
- [u'Martyn Smith'], 1)
-]
diff --git a/node_modules/irc/docs/index.rst b/node_modules/irc/docs/index.rst
deleted file mode 100644
index d35bc0f..0000000
--- a/node_modules/irc/docs/index.rst
+++ /dev/null
@@ -1,13 +0,0 @@
-Welcome to node-irc's documentation!
-====================================
-
-.. include:: ../README.rst
-
-More detailed docs:
--------------------
-
-.. toctree::
- :maxdepth: 2
-
- API
-
diff --git a/node_modules/irc/docs/make.bat b/node_modules/irc/docs/make.bat
deleted file mode 100644
index dc41ed1..0000000
--- a/node_modules/irc/docs/make.bat
+++ /dev/null
@@ -1,170 +0,0 @@
-@ECHO OFF
-
-REM Command file for Sphinx documentation
-
-if "%SPHINXBUILD%" == "" (
- set SPHINXBUILD=sphinx-build
-)
-set BUILDDIR=_build
-set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
-if NOT "%PAPER%" == "" (
- set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
-)
-
-if "%1" == "" goto help
-
-if "%1" == "help" (
- :help
- echo.Please use `make ^` where ^ is one of
- echo. html to make standalone HTML files
- echo. dirhtml to make HTML files named index.html in directories
- echo. singlehtml to make a single large HTML file
- echo. pickle to make pickle files
- echo. json to make JSON files
- echo. htmlhelp to make HTML files and a HTML help project
- echo. qthelp to make HTML files and a qthelp project
- echo. devhelp to make HTML files and a Devhelp project
- echo. epub to make an epub
- echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
- echo. text to make text files
- echo. man to make manual pages
- echo. changes to make an overview over all changed/added/deprecated items
- echo. linkcheck to check all external links for integrity
- echo. doctest to run all doctests embedded in the documentation if enabled
- goto end
-)
-
-if "%1" == "clean" (
- for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
- del /q /s %BUILDDIR%\*
- goto end
-)
-
-if "%1" == "html" (
- %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished. The HTML pages are in %BUILDDIR%/html.
- goto end
-)
-
-if "%1" == "dirhtml" (
- %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
- goto end
-)
-
-if "%1" == "singlehtml" (
- %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
- goto end
-)
-
-if "%1" == "pickle" (
- %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished; now you can process the pickle files.
- goto end
-)
-
-if "%1" == "json" (
- %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished; now you can process the JSON files.
- goto end
-)
-
-if "%1" == "htmlhelp" (
- %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished; now you can run HTML Help Workshop with the ^
-.hhp project file in %BUILDDIR%/htmlhelp.
- goto end
-)
-
-if "%1" == "qthelp" (
- %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished; now you can run "qcollectiongenerator" with the ^
-.qhcp project file in %BUILDDIR%/qthelp, like this:
- echo.^> qcollectiongenerator %BUILDDIR%\qthelp\node-irc.qhcp
- echo.To view the help file:
- echo.^> assistant -collectionFile %BUILDDIR%\qthelp\node-irc.ghc
- goto end
-)
-
-if "%1" == "devhelp" (
- %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished.
- goto end
-)
-
-if "%1" == "epub" (
- %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished. The epub file is in %BUILDDIR%/epub.
- goto end
-)
-
-if "%1" == "latex" (
- %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
- goto end
-)
-
-if "%1" == "text" (
- %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished. The text files are in %BUILDDIR%/text.
- goto end
-)
-
-if "%1" == "man" (
- %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
- if errorlevel 1 exit /b 1
- echo.
- echo.Build finished. The manual pages are in %BUILDDIR%/man.
- goto end
-)
-
-if "%1" == "changes" (
- %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
- if errorlevel 1 exit /b 1
- echo.
- echo.The overview file is in %BUILDDIR%/changes.
- goto end
-)
-
-if "%1" == "linkcheck" (
- %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
- if errorlevel 1 exit /b 1
- echo.
- echo.Link check complete; look for any errors in the above output ^
-or in %BUILDDIR%/linkcheck/output.txt.
- goto end
-)
-
-if "%1" == "doctest" (
- %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
- if errorlevel 1 exit /b 1
- echo.
- echo.Testing of doctests in the sources finished, look at the ^
-results in %BUILDDIR%/doctest/output.txt.
- goto end
-)
-
-:end
diff --git a/node_modules/irc/example/bot.js b/node_modules/irc/example/bot.js
deleted file mode 100755
index 1b9eee9..0000000
--- a/node_modules/irc/example/bot.js
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env node
-
-// Make sure the irc lib is available
-require.paths.unshift(__dirname + '/../lib');
-
-var irc = require('irc');
-
-var bot = new irc.Client('irc.dollyfish.net.nz', 'nodebot', {
- debug: true,
- channels: ['#blah', '#test'],
-});
-
-bot.addListener('error', function(message) {
- console.error('ERROR: %s: %s', message.command, message.args.join(' '));
-});
-
-bot.addListener('message#blah', function (from, message) {
- console.log('<%s> %s', from, message);
-});
-
-bot.addListener('message', function (from, to, message) {
- console.log('%s => %s: %s', from, to, message);
-
- if ( to.match(/^[#&]/) ) {
- // channel message
- if ( message.match(/hello/i) ) {
- bot.say(to, 'Hello there ' + from);
- }
- if ( message.match(/dance/) ) {
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D\\-<\u0001") }, 1000);
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D|-<\u0001") }, 2000);
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D/-<\u0001") }, 3000);
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D|-<\u0001") }, 4000);
- }
- }
- else {
- // private message
- }
-});
-bot.addListener('pm', function(nick, message) {
- console.log('Got private message from %s: %s', nick, message);
-});
-bot.addListener('join', function(channel, who) {
- console.log('%s has joined %s', who, channel);
-});
-bot.addListener('part', function(channel, who, reason) {
- console.log('%s has left %s: %s', who, channel, reason);
-});
-bot.addListener('kick', function(channel, who, by, reason) {
- console.log('%s was kicked from %s by %s: %s', who, channel, by, reason);
-});
diff --git a/node_modules/irc/example/secure.js b/node_modules/irc/example/secure.js
deleted file mode 100755
index 2be340a..0000000
--- a/node_modules/irc/example/secure.js
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/env node
-
-// Make sure the irc lib is available
-require.paths.unshift(__dirname + '/../lib');
-
-var irc = require('irc');
-/*
-* To set the key/cert explicitly, you could do the following
-var fs = require('fs');
-
-var options = {
- key: fs.readFileSync('privkey.pem'),
- cert: fs.readFileSync('certificate.crt')
-};
-*/
-
-// Or to just use defaults
-var options = true;
-
-var bot = new irc.Client('chat.us.freenode.net', 'nodebot', {
- port: 6697,
- debug: true,
- secure: options,
- channels: ['#botwar'],
-});
-
-bot.addListener('error', function(message) {
- console.error('ERROR: %s: %s', message.command, message.args.join(' '));
-});
-
-bot.addListener('message#blah', function (from, message) {
- console.log('<%s> %s', from, message);
-});
-
-bot.addListener('message', function (from, to, message) {
- console.log('%s => %s: %s', from, to, message);
-
- if ( to.match(/^[#&]/) ) {
- // channel message
- if ( message.match(/hello/i) ) {
- bot.say(to, 'Hello there ' + from);
- }
- if ( message.match(/dance/) ) {
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D\\-<\u0001") }, 1000);
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D|-<\u0001") }, 2000);
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D/-<\u0001") }, 3000);
- setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D|-<\u0001") }, 4000);
- }
- }
- else {
- // private message
- }
-});
-bot.addListener('pm', function(nick, message) {
- console.log('Got private message from %s: %s', nick, message);
-});
-bot.addListener('join', function(channel, who) {
- console.log('%s has joined %s', who, channel);
-});
-bot.addListener('part', function(channel, who, reason) {
- console.log('%s has left %s: %s', who, channel, reason);
-});
-bot.addListener('kick', function(channel, who, by, reason) {
- console.log('%s was kicked from %s by %s: %s', who, channel, by, reason);
-});
diff --git a/node_modules/irc/lib/codes.js b/node_modules/irc/lib/codes.js
deleted file mode 100644
index cf2c4a1..0000000
--- a/node_modules/irc/lib/codes.js
+++ /dev/null
@@ -1,494 +0,0 @@
-module.exports = { // {{{
- "004" : {
- "name" : "rpl_myinfo",
- "type" : "reply"
- },
- "005" : {
- "name" : "rpl_isupport",
- "type" : "reply"
- },
- "200" : {
- "name" : "rpl_tracelink",
- "type" : "reply"
- },
- "201" : {
- "name" : "rpl_traceconnecting",
- "type" : "reply"
- },
- "202" : {
- "name" : "rpl_tracehandshake",
- "type" : "reply"
- },
- "203" : {
- "name" : "rpl_traceunknown",
- "type" : "reply"
- },
- "204" : {
- "name" : "rpl_traceoperator",
- "type" : "reply"
- },
- "205" : {
- "name" : "rpl_traceuser",
- "type" : "reply"
- },
- "206" : {
- "name" : "rpl_traceserver",
- "type" : "reply"
- },
- "208" : {
- "name" : "rpl_tracenewtype",
- "type" : "reply"
- },
- "211" : {
- "name" : "rpl_statslinkinfo",
- "type" : "reply"
- },
- "212" : {
- "name" : "rpl_statscommands",
- "type" : "reply"
- },
- "213" : {
- "name" : "rpl_statscline",
- "type" : "reply"
- },
- "214" : {
- "name" : "rpl_statsnline",
- "type" : "reply"
- },
- "215" : {
- "name" : "rpl_statsiline",
- "type" : "reply"
- },
- "216" : {
- "name" : "rpl_statskline",
- "type" : "reply"
- },
- "218" : {
- "name" : "rpl_statsyline",
- "type" : "reply"
- },
- "219" : {
- "name" : "rpl_endofstats",
- "type" : "reply"
- },
- "221" : {
- "name" : "rpl_umodeis",
- "type" : "reply"
- },
- "241" : {
- "name" : "rpl_statslline",
- "type" : "reply"
- },
- "242" : {
- "name" : "rpl_statsuptime",
- "type" : "reply"
- },
- "243" : {
- "name" : "rpl_statsoline",
- "type" : "reply"
- },
- "244" : {
- "name" : "rpl_statshline",
- "type" : "reply"
- },
- "250" : {
- "name" : "rpl_statsconn",
- "type" : "reply"
- },
- "251" : {
- "name" : "rpl_luserclient",
- "type" : "reply"
- },
- "252" : {
- "name" : "rpl_luserop",
- "type" : "reply"
- },
- "253" : {
- "name" : "rpl_luserunknown",
- "type" : "reply"
- },
- "254" : {
- "name" : "rpl_luserchannels",
- "type" : "reply"
- },
- "255" : {
- "name" : "rpl_luserme",
- "type" : "reply"
- },
- "256" : {
- "name" : "rpl_adminme",
- "type" : "reply"
- },
- "257" : {
- "name" : "rpl_adminloc1",
- "type" : "reply"
- },
- "258" : {
- "name" : "rpl_adminloc2",
- "type" : "reply"
- },
- "259" : {
- "name" : "rpl_adminemail",
- "type" : "reply"
- },
- "261" : {
- "name" : "rpl_tracelog",
- "type" : "reply"
- },
- "265" : {
- "name" : "rpl_localusers",
- "type" : "reply"
- },
- "266" : {
- "name" : "rpl_globalusers",
- "type" : "reply"
- },
- "300" : {
- "name" : "rpl_none",
- "type" : "reply"
- },
- "301" : {
- "name" : "rpl_away",
- "type" : "reply"
- },
- "302" : {
- "name" : "rpl_userhost",
- "type" : "reply"
- },
- "303" : {
- "name" : "rpl_ison",
- "type" : "reply"
- },
- "305" : {
- "name" : "rpl_unaway",
- "type" : "reply"
- },
- "306" : {
- "name" : "rpl_nowaway",
- "type" : "reply"
- },
- "311" : {
- "name" : "rpl_whoisuser",
- "type" : "reply"
- },
- "312" : {
- "name" : "rpl_whoisserver",
- "type" : "reply"
- },
- "313" : {
- "name" : "rpl_whoisoperator",
- "type" : "reply"
- },
- "314" : {
- "name" : "rpl_whowasuser",
- "type" : "reply"
- },
- "315" : {
- "name" : "rpl_endofwho",
- "type" : "reply"
- },
- "317" : {
- "name" : "rpl_whoisidle",
- "type" : "reply"
- },
- "318" : {
- "name" : "rpl_endofwhois",
- "type" : "reply"
- },
- "319" : {
- "name" : "rpl_whoischannels",
- "type" : "reply"
- },
- "321" : {
- "name" : "rpl_liststart",
- "type" : "reply"
- },
- "322" : {
- "name" : "rpl_list",
- "type" : "reply"
- },
- "323" : {
- "name" : "rpl_listend",
- "type" : "reply"
- },
- "324" : {
- "name" : "rpl_channelmodeis",
- "type" : "reply"
- },
- "331" : {
- "name" : "rpl_notopic",
- "type" : "reply"
- },
- "332" : {
- "name" : "rpl_topic",
- "type" : "reply"
- },
- "341" : {
- "name" : "rpl_inviting",
- "type" : "reply"
- },
- "342" : {
- "name" : "rpl_summoning",
- "type" : "reply"
- },
- "351" : {
- "name" : "rpl_version",
- "type" : "reply"
- },
- "352" : {
- "name" : "rpl_whoreply",
- "type" : "reply"
- },
- "353" : {
- "name" : "rpl_namreply",
- "type" : "reply"
- },
- "364" : {
- "name" : "rpl_links",
- "type" : "reply"
- },
- "365" : {
- "name" : "rpl_endoflinks",
- "type" : "reply"
- },
- "366" : {
- "name" : "rpl_endofnames",
- "type" : "reply"
- },
- "367" : {
- "name" : "rpl_banlist",
- "type" : "reply"
- },
- "368" : {
- "name" : "rpl_endofbanlist",
- "type" : "reply"
- },
- "369" : {
- "name" : "rpl_endofwhowas",
- "type" : "reply"
- },
- "371" : {
- "name" : "rpl_info",
- "type" : "reply"
- },
- "372" : {
- "name" : "rpl_motd",
- "type" : "reply"
- },
- "374" : {
- "name" : "rpl_endofinfo",
- "type" : "reply"
- },
- "375" : {
- "name" : "rpl_motdstart",
- "type" : "reply"
- },
- "376" : {
- "name" : "rpl_endofmotd",
- "type" : "reply"
- },
- "381" : {
- "name" : "rpl_youreoper",
- "type" : "reply"
- },
- "382" : {
- "name" : "rpl_rehashing",
- "type" : "reply"
- },
- "391" : {
- "name" : "rpl_time",
- "type" : "reply"
- },
- "392" : {
- "name" : "rpl_usersstart",
- "type" : "reply"
- },
- "393" : {
- "name" : "rpl_users",
- "type" : "reply"
- },
- "394" : {
- "name" : "rpl_endofusers",
- "type" : "reply"
- },
- "395" : {
- "name" : "rpl_nousers",
- "type" : "reply"
- },
- "401" : {
- "name" : "err_nosuchnick",
- "type" : "error"
- },
- "402" : {
- "name" : "err_nosuchserver",
- "type" : "error"
- },
- "403" : {
- "name" : "err_nosuchchannel",
- "type" : "error"
- },
- "404" : {
- "name" : "err_cannotsendtochan",
- "type" : "error"
- },
- "405" : {
- "name" : "err_toomanychannels",
- "type" : "error"
- },
- "406" : {
- "name" : "err_wasnosuchnick",
- "type" : "error"
- },
- "407" : {
- "name" : "err_toomanytargets",
- "type" : "error"
- },
- "409" : {
- "name" : "err_noorigin",
- "type" : "error"
- },
- "411" : {
- "name" : "err_norecipient",
- "type" : "error"
- },
- "412" : {
- "name" : "err_notexttosend",
- "type" : "error"
- },
- "413" : {
- "name" : "err_notoplevel",
- "type" : "error"
- },
- "414" : {
- "name" : "err_wildtoplevel",
- "type" : "error"
- },
- "421" : {
- "name" : "err_unknowncommand",
- "type" : "error"
- },
- "422" : {
- "name" : "err_nomotd",
- "type" : "error"
- },
- "423" : {
- "name" : "err_noadmininfo",
- "type" : "error"
- },
- "424" : {
- "name" : "err_fileerror",
- "type" : "error"
- },
- "431" : {
- "name" : "err_nonicknamegiven",
- "type" : "error"
- },
- "432" : {
- "name" : "err_erroneusnickname",
- "type" : "error"
- },
- "433" : {
- "name" : "err_nicknameinuse",
- "type" : "error"
- },
- "436" : {
- "name" : "err_nickcollision",
- "type" : "error"
- },
- "441" : {
- "name" : "err_usernotinchannel",
- "type" : "error"
- },
- "442" : {
- "name" : "err_notonchannel",
- "type" : "error"
- },
- "443" : {
- "name" : "err_useronchannel",
- "type" : "error"
- },
- "444" : {
- "name" : "err_nologin",
- "type" : "error"
- },
- "445" : {
- "name" : "err_summondisabled",
- "type" : "error"
- },
- "446" : {
- "name" : "err_usersdisabled",
- "type" : "error"
- },
- "451" : {
- "name" : "err_notregistered",
- "type" : "error"
- },
- "461" : {
- "name" : "err_needmoreparams",
- "type" : "error"
- },
- "462" : {
- "name" : "err_alreadyregistred",
- "type" : "error"
- },
- "463" : {
- "name" : "err_nopermforhost",
- "type" : "error"
- },
- "464" : {
- "name" : "err_passwdmismatch",
- "type" : "error"
- },
- "465" : {
- "name" : "err_yourebannedcreep",
- "type" : "error"
- },
- "467" : {
- "name" : "err_keyset",
- "type" : "error"
- },
- "471" : {
- "name" : "err_channelisfull",
- "type" : "error"
- },
- "472" : {
- "name" : "err_unknownmode",
- "type" : "error"
- },
- "473" : {
- "name" : "err_inviteonlychan",
- "type" : "error"
- },
- "474" : {
- "name" : "err_bannedfromchan",
- "type" : "error"
- },
- "475" : {
- "name" : "err_badchannelkey",
- "type" : "error"
- },
- "481" : {
- "name" : "err_noprivileges",
- "type" : "error"
- },
- "482" : {
- "name" : "err_chanoprivsneeded",
- "type" : "error"
- },
- "483" : {
- "name" : "err_cantkillserver",
- "type" : "error"
- },
- "491" : {
- "name" : "err_nooperhost",
- "type" : "error"
- },
- "501" : {
- "name" : "err_umodeunknownflag",
- "type" : "error"
- },
- "502" : {
- "name" : "err_usersdontmatch",
- "type" : "error"
- }
-}; // }}}
diff --git a/node_modules/irc/lib/colors.js b/node_modules/irc/lib/colors.js
deleted file mode 100644
index e3f8475..0000000
--- a/node_modules/irc/lib/colors.js
+++ /dev/null
@@ -1,27 +0,0 @@
-codes = {
- white: '\u000300',
- black: '\u000301',
- dark_blue: '\u000302',
- dark_green: '\u000303',
- light_red: '\u000304',
- dark_red: '\u000305',
- magenta: '\u000306',
- orange: '\u000307',
- yellow: '\u000308',
- light_green: '\u000309',
- cyan: '\u000310',
- light_cyan: '\u000311',
- light_blue: '\u000312',
- light_magenta: '\u000313',
- gray: '\u000314',
- light_gray: '\u000315',
- reset: '\u000f',
-};
-exports.codes = codes;
-
-function wrap(color, text, reset_color) {
- reset_color = typeof(a) != 'undefined' ? a : 'reset';
- return codes[color] + text + codes[reset_color];
-};
-exports.wrap = wrap;
-
diff --git a/node_modules/irc/lib/irc.js b/node_modules/irc/lib/irc.js
deleted file mode 100644
index 79e9600..0000000
--- a/node_modules/irc/lib/irc.js
+++ /dev/null
@@ -1,894 +0,0 @@
-/*
- irc.js - Node JS IRC client library
-
- (C) Copyright Martyn Smith 2010
-
- This library is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this library. If not, see .
-*/
-
-exports.Client = Client;
-var net = require('net');
-var tls = require('tls');
-var util = require('util');
-
-var colors = require('./colors');
-exports.colors = colors;
-
-var replyFor = require('./codes');
-
-function Client(server, nick, opt) {
- var self = this;
- self.opt = {
- server: server,
- nick: nick,
- password: null,
- userName: 'nodebot',
- realName: 'nodeJS IRC client',
- port: 6667,
- debug: false,
- showErrors: false,
- autoRejoin: true,
- autoConnect: true,
- channels: [],
- retryCount: null,
- retryDelay: 2000,
- secure: false,
- selfSigned: false,
- certExpired: false,
- floodProtection: false,
- floodProtectionDelay: 1000,
- stripColors: false,
- channelPrefixes: "",
- messageSplit: 512
- };
-
- // Features supported by the server
- // (initial values are RFC 1459 defaults. Zeros signify
- // no default or unlimited value)
- self.supported = {
- channel: {
- idlength: [],
- length: 200,
- limit: [],
- modes: { a: '', b: '', c: '', d: ''},
- types: self.opt.channelPrefixes
- },
- kicklength: 0,
- maxlist: [],
- maxtargets: [],
- modes: 3,
- nicklength: 9,
- topiclength: 0,
- usermodes: ''
- };
-
- if (typeof arguments[2] == 'object') {
- var keys = Object.keys(self.opt);
- for (var i = 0; i < keys.length; i++) {
- var k = keys[i];
- if (arguments[2][k] !== undefined)
- self.opt[k] = arguments[2][k];
- }
- }
-
- if (self.opt.floodProtection) {
- self.activateFloodProtection();
- }
-
- // TODO - fail if nick or server missing
- // TODO - fail if username has a space in it
- if (self.opt.autoConnect === true) {
- self.connect();
- }
-
- self.addListener("raw", function (message) { // {{{
- switch ( message.command ) {
- case "001":
- // Set nick to whatever the server decided it really is
- // (normally this is because you chose something too long and
- // the server has shortened it
- self.nick = message.args[0];
- self.emit('registered', message);
- break;
- case "002":
- case "003":
- case "rpl_myinfo":
- self.supported.usermodes = message.args[3];
- break;
- case "rpl_isupport":
- message.args.forEach(function(arg) {
- var match;
- if ( match = arg.match(/([A-Z]+)=(.*)/) ) {
- var param = match[1];
- var value = match[2];
- switch(param) {
- case 'CHANLIMIT':
- value.split(',').forEach(function(val) {
- val = val.split(':');
- self.supported.channel.limit[val[0]] = parseInt(val[1]);
- });
- break;
- case 'CHANMODES':
- value = value.split(',');
- var type = ['a','b','c','d']
- for (var i = 0; i < type.length; i++) {
-
- self.supported.channel.modes[type[i]] += value[i];
- }
- break;
- case 'CHANTYPES':
- self.supported.channel.types = value;
- break;
- case 'CHANNELLEN':
- self.supported.channel.length = parseInt(value);
- break;
- case 'IDCHAN':
- value.split(',').forEach(function(val) {
- val = val.split(':');
- self.supported.channel.idlength[val[0]] = val[1];
- });
- break;
- case 'KICKLEN':
- self.supported.kicklength = value;
- break;
- case 'MAXLIST':
- value.split(',').forEach(function(val) {
- val = val.split(':');
- self.supported.maxlist[val[0]] = parseInt(val[1]);
- });
- break;
- case 'NICKLEN':
- self.supported.nicklength = parseInt(value);
- break;
- case 'PREFIX':
- if (match = value.match(/\((.*?)\)(.*)/)) {
- match[1] = match[1].split('');
- match[2] = match[2].split('');
- while ( match[1].length ) {
- self.modeForPrefix[match[2][0]] = match[1][0];
- self.supported.channel.modes.b += match[1][0];
- self.prefixForMode[match[1].shift()] = match[2].shift();
- }
- }
- break;
- case 'STATUSMSG':
- break;
- case 'TARGMAX':
- value.split(',').forEach(function(val) {
- val = val.split(':');
- val[1] = (!val[1]) ? 0 : parseInt(val[1]);
- self.supported.maxtargets[val[0]] = val[1];
- });
- break;
- case 'TOPICLEN':
- self.supported.topiclength = parseInt(value);
- break;
- }
- }
- });
- break;
- case "rpl_luserclient":
- case "rpl_luserop":
- case "rpl_luserchannels":
- case "rpl_luserme":
- case "rpl_localusers":
- case "rpl_globalusers":
- case "rpl_statsconn":
- // Random welcome crap, ignoring
- break;
- case "err_nicknameinuse":
- if ( typeof(self.opt.nickMod) == 'undefined' )
- self.opt.nickMod = 0;
- self.opt.nickMod++;
- self.send("NICK", self.opt.nick + self.opt.nickMod);
- self.nick = self.opt.nick + self.opt.nickMod;
- break;
- case "PING":
- self.send("PONG", message.args[0]);
- self.emit('ping', message.args[0]);
- break;
- case "NOTICE":
- var from = message.nick;
- var to = message.args[0];
- if (!to) {
- to = null;
- }
- var text = message.args[1];
- if (text[0] === '\1' && text.lastIndexOf('\1') > 0) {
- self._handleCTCP(from, to, text, 'notice');
- break;
- }
- self.emit('notice', from, to, text, message);
-
- if ( self.opt.debug && to == self.nick )
- util.log('GOT NOTICE from ' + (from?'"'+from+'"':'the server') + ': "' + text + '"');
- break;
- case "MODE":
- if ( self.opt.debug )
- util.log("MODE:" + message.args[0] + " sets mode: " + message.args[1]);
-
- var channel = self.chanData(message.args[0]);
- if ( !channel ) break;
- var modeList = message.args[1].split('');
- var adding = true;
- var modeArgs = message.args.slice(2);
- modeList.forEach(function(mode) {
- if ( mode == '+' ) { adding = true; return; }
- if ( mode == '-' ) { adding = false; return; }
- if ( mode in self.prefixForMode ) {
- // channel user modes
- var user = modeArgs.shift();
- if ( adding ) {
- if ( channel.users[user].indexOf(self.prefixForMode[mode]) === -1 )
- channel.users[user] += self.prefixForMode[mode];
-
- self.emit('+mode', message.args[0], message.nick, mode, user, message);
- }
- else {
- channel.users[user] = channel.users[user].replace(self.prefixForMode[mode], '');
- self.emit('-mode', message.args[0], message.nick, mode, user, message);
- }
- }
- else {
- var modeArg;
- // channel modes
- if ( mode.match(/^[bkl]$/) ) {
- modeArg = modeArgs.shift();
- if ( modeArg.length === 0 )
- modeArg = undefined;
- }
- // TODO - deal nicely with channel modes that take args
- if ( adding ) {
- if ( channel.mode.indexOf(mode) === -1 )
- channel.mode += mode;
-
- self.emit('+mode', message.args[0], message.nick, mode, modeArg, message);
- }
- else {
- channel.mode = channel.mode.replace(mode, '');
- self.emit('-mode', message.args[0], message.nick, mode, modeArg, message);
- }
- }
- });
- break;
- case "NICK":
- if ( message.nick == self.nick )
- // the user just changed their own nick
- self.nick = message.args[0];
-
- if ( self.opt.debug )
- util.log("NICK: " + message.nick + " changes nick to " + message.args[0]);
-
- var channels = [];
-
- // TODO better way of finding what channels a user is in?
- for ( var channame in self.chans ) {
- var channel = self.chans[channame];
- if ( 'string' == typeof channel.users[message.nick] ) {
- channel.users[message.args[0]] = channel.users[message.nick];
- delete channel.users[message.nick];
- channels.push(channame);
- }
- }
-
- // old nick, new nick, channels
- self.emit('nick', message.nick, message.args[0], channels, message);
- break;
- case "rpl_motdstart":
- self.motd = message.args[1] + "\n";
- break;
- case "rpl_motd":
- self.motd += message.args[1] + "\n";
- break;
- case "rpl_endofmotd":
- case "err_nomotd":
- self.motd += message.args[1] + "\n";
- self.emit('motd', self.motd);
- break;
- case "rpl_namreply":
- var channel = self.chanData(message.args[2]);
- var users = message.args[3].trim().split(/ +/);
- if ( channel ) {
- users.forEach(function (user) {
- var match = user.match(/^(.)(.*)$/);
- if ( match ) {
- if ( match[1] in self.modeForPrefix ) {
- channel.users[match[2]] = match[1];
- }
- else {
- channel.users[match[1] + match[2]] = '';
- }
- }
- });
- }
- break;
- case "rpl_endofnames":
- var channel = self.chanData(message.args[1]);
- if ( channel ) {
- self.emit('names', message.args[1], channel.users);
- self.emit('names' + message.args[1], channel.users);
- self.send('MODE', message.args[1]);
- }
- break;
- case "rpl_topic":
- var channel = self.chanData(message.args[1]);
- if ( channel ) {
- channel.topic = message.args[2];
- }
- break;
- case "rpl_away":
- self._addWhoisData(message.args[1], 'away', message.args[2], true);
- break;
- case "rpl_whoisuser":
- self._addWhoisData(message.args[1], 'user', message.args[2]);
- self._addWhoisData(message.args[1], 'host', message.args[3]);
- self._addWhoisData(message.args[1], 'realname', message.args[5]);
- break;
- case "rpl_whoisidle":
- self._addWhoisData(message.args[1], 'idle', message.args[2]);
- break;
- case "rpl_whoischannels":
- self._addWhoisData(message.args[1], 'channels', message.args[2].trim().split(/\s+/)); // TODO - clean this up?
- break;
- case "rpl_whoisserver":
- self._addWhoisData(message.args[1], 'server', message.args[2]);
- self._addWhoisData(message.args[1], 'serverinfo', message.args[3]);
- break;
- case "rpl_whoisoperator":
- self._addWhoisData(message.args[1], 'operator', message.args[2]);
- break;
- case "330": // rpl_whoisaccount?
- self._addWhoisData(message.args[1], 'account', message.args[2]);
- self._addWhoisData(message.args[1], 'accountinfo', message.args[3]);
- break;
- case "rpl_endofwhois":
- self.emit('whois', self._clearWhoisData(message.args[1]));
- break;
- case "rpl_liststart":
- self.channellist = [];
- self.emit('channellist_start');
- break;
- case "rpl_list":
- var channel = {
- name: message.args[1],
- users: message.args[2],
- topic: message.args[3],
- };
- self.emit('channellist_item', channel);
- self.channellist.push(channel);
- break;
- case "rpl_listend":
- self.emit('channellist', self.channellist);
- break;
- case "333":
- // TODO emit?
- var channel = self.chanData(message.args[1]);
- if ( channel ) {
- channel.topicBy = message.args[2];
- // channel, topic, nick
- self.emit('topic', message.args[1], channel.topic, channel.topicBy, message);
- }
- break;
- case "TOPIC":
- // channel, topic, nick
- self.emit('topic', message.args[0], message.args[1], message.nick, message);
-
- var channel = self.chanData(message.args[0]);
- if ( channel ) {
- channel.topic = message.args[1];
- channel.topicBy = message.nick;
- }
- break;
- case "rpl_channelmodeis":
- var channel = self.chanData(message.args[1]);
- if ( channel ) {
- channel.mode = message.args[2];
- }
- break;
- case "329":
- var channel = self.chanData(message.args[1]);
- if ( channel ) {
- channel.created = message.args[2];
- }
- break;
- case "JOIN":
- // channel, who
- if ( self.nick == message.nick ) {
- self.chanData(message.args[0], true);
- }
- else {
- var channel = self.chanData(message.args[0]);
- channel.users[message.nick] = '';
- }
- self.emit('join', message.args[0], message.nick, message);
- self.emit('join' + message.args[0], message.nick, message);
- if ( message.args[0] != message.args[0].toLowerCase() ) {
- self.emit('join' + message.args[0].toLowerCase(), message.nick, message);
- }
- break;
- case "PART":
- // channel, who, reason
- self.emit('part', message.args[0], message.nick, message.args[1], message);
- self.emit('part' + message.args[0], message.nick, message.args[1], message);
- if ( message.args[0] != message.args[0].toLowerCase() ) {
- self.emit('part' + message.args[0].toLowerCase(), message.nick, message.args[1], message);
- }
- if ( self.nick == message.nick ) {
- var channel = self.chanData(message.args[0]);
- delete self.chans[channel.key];
- }
- else {
- var channel = self.chanData(message.args[0]);
- delete channel.users[message.nick];
- }
- break;
- case "KICK":
- // channel, who, by, reason
- self.emit('kick', message.args[0], message.args[1], message.nick, message.args[2], message);
- self.emit('kick' + message.args[0], message.args[1], message.nick, message.args[2], message);
- if ( message.args[0] != message.args[0].toLowerCase() ) {
- self.emit('kick' + message.args[0].toLowerCase(), message.args[1], message.nick, message.args[2], message);
- }
-
- if ( self.nick == message.args[1] ) {
- var channel = self.chanData(message.args[0]);
- delete self.chans[channel.key];
- }
- else {
- var channel = self.chanData(message.args[0]);
- delete channel.users[message.args[1]];
- }
- break;
- case "KILL":
- var nick = message.args[0];
- var channels = [];
- for ( var channel in self.chans ) {
- if ( self.chans[channel].users[nick])
- channels.push(channel);
-
- delete self.chans[channel].users[nick];
- }
- self.emit('kill', nick, message.args[1], channels, message);
- break;
- case "PRIVMSG":
- var from = message.nick;
- var to = message.args[0];
- var text = message.args[1];
- if (text[0] === '\1' && text.lastIndexOf('\1') > 0) {
- self._handleCTCP(from, to, text, 'privmsg');
- break;
- }
- self.emit('message', from, to, text, message);
- if ( self.supported.channel.types.indexOf(to.charAt(0)) !== -1 ) {
- self.emit('message#', from, to, text, message);
- self.emit('message' + to, from, text, message);
- if ( to != to.toLowerCase() ) {
- self.emit('message' + to.toLowerCase(), from, text, message);
- }
- }
- if ( to == self.nick ) self.emit('pm', from, text, message);
-
- if ( self.opt.debug && to == self.nick )
- util.log('GOT MESSAGE from ' + from + ': ' + text);
- break;
- case "INVITE":
- var from = message.nick;
- var to = message.args[0];
- var channel = message.args[1];
- self.emit('invite', channel, from, message);
- break;
- case "QUIT":
- if ( self.opt.debug )
- util.log("QUIT: " + message.prefix + " " + message.args.join(" "));
- if ( self.nick == message.nick ) {
- // TODO handle?
- break;
- }
- // handle other people quitting
-
- var channels = [];
-
- // TODO better way of finding what channels a user is in?
- for ( var channame in self.chans ) {
- var channel = self.chans[channame];
- if ( 'string' == typeof channel.users[message.nick] ) {
- delete channel.users[message.nick];
- channels.push(channame);
- }
- }
-
- // who, reason, channels
- self.emit('quit', message.nick, message.args[0], channels, message);
- break;
- case "err_umodeunknownflag":
- if ( self.opt.showErrors )
- util.log("\033[01;31mERROR: " + util.inspect(message) + "\033[0m");
- break;
- default:
- if ( message.commandType == 'error' ) {
- self.emit('error', message);
- if ( self.opt.showErrors )
- util.log("\033[01;31mERROR: " + util.inspect(message) + "\033[0m");
- }
- else {
- if ( self.opt.debug )
- util.log("\033[01;31mUnhandled message: " + util.inspect(message) + "\033[0m");
- }
- break;
- }
- }); // }}}
-
- self.addListener('kick', function(channel, who, by, reason) {
- if ( self.opt.autoRejoin )
- self.send.apply(self, ['JOIN'].concat(channel.split(' ')));
- });
- self.addListener('motd', function (motd) {
- self.opt.channels.forEach(function(channel) {
- self.send.apply(self, ['JOIN'].concat(channel.split(' ')));
- });
- });
-
- process.EventEmitter.call(this);
-}
-
-util.inherits(Client, process.EventEmitter);
-
-Client.prototype.conn = null;
-Client.prototype.prefixForMode = {};
-Client.prototype.modeForPrefix = {};
-Client.prototype.chans = {};
-Client.prototype._whoisData = {};
-Client.prototype.chanData = function( name, create ) { // {{{
- var key = name.toLowerCase();
- if ( create ) {
- this.chans[key] = this.chans[key] || {
- key: key,
- serverName: name,
- users: {},
- mode: '',
- };
- }
-
- return this.chans[key];
-} // }}}
-Client.prototype.connect = function ( retryCount, callback ) { // {{{
- if ( typeof(retryCount) === 'function' ) {
- callback = retryCount;
- retryCount = undefined;
- }
- retryCount = retryCount || 0;
- if (typeof(callback) === 'function') {
- this.once('registered', callback);
- }
- var self = this;
- self.chans = {};
- // try to connect to the server
- if (self.opt.secure) {
- var creds = self.opt.secure;
- if (typeof self.opt.secure !== 'object') {
- creds = {};
- }
-
- self.conn = tls.connect(self.opt.port, self.opt.server, creds, function() {
- // callback called only after successful socket connection
- self.conn.connected = true;
- if (self.conn.authorized ||
- (self.opt.selfSigned &&
- (self.conn.authorizationError === 'DEPTH_ZERO_SELF_SIGNED_CERT' ||
- self.conn.authorizationError === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE')) ||
- (self.opt.certExpired &&
- self.conn.authorizationError === 'CERT_HAS_EXPIRED')) {
- // authorization successful
- self.conn.setEncoding('utf-8');
- if ( self.opt.certExpired &&
- self.conn.authorizationError === 'CERT_HAS_EXPIRED' ) {
- util.log('Connecting to server with expired certificate');
- }
- if ( self.opt.password !== null ) {
- self.send( "PASS", self.opt.password );
- }
- util.log('Sending irc NICK/USER');
- self.send("NICK", self.opt.nick);
- self.nick = self.opt.nick;
- self.send("USER", self.opt.userName, 8, "*", self.opt.realName);
- self.emit("connect");
- } else {
- // authorization failed
- util.log(self.conn.authorizationError);
- }
- });
- }else {
- self.conn = net.createConnection(self.opt.port, self.opt.server);
- }
- self.conn.requestedDisconnect = false;
- self.conn.setTimeout(0);
- self.conn.setEncoding('utf8');
- self.conn.addListener("connect", function () {
- if ( self.opt.password !== null ) {
- self.send( "PASS", self.opt.password );
- }
- self.send("NICK", self.opt.nick);
- self.nick = self.opt.nick;
- self.send("USER", self.opt.userName, 8, "*", self.opt.realName);
- self.emit("connect");
- });
- var buffer = '';
- self.conn.addListener("data", function (chunk) {
- buffer += chunk;
- var lines = buffer.split("\r\n");
- buffer = lines.pop();
- lines.forEach(function (line) {
- var message = parseMessage(line, self.opt.stripColors);
- try {
- self.emit('raw', message);
- } catch ( err ) {
- if ( !self.conn.requestedDisconnect ) {
- throw err;
- }
- }
- });
- });
- self.conn.addListener("end", function() {
- if ( self.opt.debug )
- util.log('Connection got "end" event');
- });
- self.conn.addListener("close", function() {
- if ( self.opt.debug )
- util.log('Connection got "close" event');
- if ( self.conn.requestedDisconnect )
- return;
- if ( self.opt.debug )
- util.log('Disconnected: reconnecting');
- if ( self.opt.retryCount !== null && retryCount >= self.opt.retryCount ) {
- if ( self.opt.debug ) {
- util.log( 'Maximum retry count (' + self.opt.retryCount + ') reached. Aborting' );
- }
- self.emit( 'abort', self.opt.retryCount );
- return;
- }
-
- if ( self.opt.debug ) {
- util.log( 'Waiting ' + self.opt.retryDelay + 'ms before retrying' );
- }
- setTimeout( function() {
- self.connect( retryCount + 1 );
- }, self.opt.retryDelay );
- });
- self.conn.addListener("error", function(exception) {
- self.emit("netError", exception);
- });
-}; // }}}
-Client.prototype.disconnect = function ( message, callback ) { // {{{
- if ( typeof(message) === 'function' ) {
- callback = message;
- message = undefined;
- }
- message = message || "node-irc says goodbye";
- var self = this;
- if ( self.conn.readyState == 'open' ) {
- self.send( "QUIT", message );
- }
- self.conn.requestedDisconnect = true;
- if (typeof(callback) === 'function') {
- self.conn.once('end', callback);
- }
- self.conn.end();
-}; // }}}
-Client.prototype.send = function(command) { // {{{
- var args = Array.prototype.slice.call(arguments);
-
- // Note that the command arg is included in the args array as the first element
-
- if ( args[args.length-1].match(/\s/) || args[args.length-1].match(/^:/) || args[args.length-1] === "" ) {
- args[args.length-1] = ":" + args[args.length-1];
- }
-
- if ( this.opt.debug )
- util.log('SEND: ' + args.join(" "));
-
- if ( ! this.conn.requestedDisconnect ) {
- this.conn.write(args.join(" ") + "\r\n");
- }
-}; // }}}
-Client.prototype.activateFloodProtection = function(interval) { // {{{
-
- var cmdQueue = [],
- safeInterval = interval || this.opt.floodProtectionDelay,
- self = this,
- origSend = this.send,
- dequeue;
-
- // Wrapper for the original function. Just put everything to on central
- // queue.
- this.send = function() {
- cmdQueue.push(arguments);
- };
-
- dequeue = function() {
- var args = cmdQueue.shift();
- if (args) {
- origSend.apply(self, args);
- }
- };
-
- // Slowly unpack the queue without flooding.
- setInterval(dequeue, safeInterval);
- dequeue();
-
-
-}; // }}}
-Client.prototype.join = function(channel, callback) { // {{{
- this.once('join' + channel, function () {
- // if join is successful, add this channel to opts.channels
- // so that it will be re-joined upon reconnect (as channels
- // specified in options are)
- if (this.opt.channels.indexOf(channel) == -1) {
- this.opt.channels.push(channel);
- }
-
- if ( typeof(callback) == 'function' ) {
- return callback.apply(this, arguments);
- }
- });
- this.send.apply(this, ['JOIN'].concat(channel.split(' ')));
-} // }}}
-Client.prototype.part = function(channel, callback) { // {{{
- if ( typeof(callback) == 'function' ) {
- this.once('part' + channel, callback);
- }
-
- // remove this channel from this.opt.channels so we won't rejoin
- // upon reconnect
- if (this.opt.channels.indexOf(channel) != -1) {
- this.opt.channels.splice(this.opt.channels.indexOf(channel), 1);
- }
-
- this.send('PART', channel);
-} // }}}
-Client.prototype.say = function(target, text) { // {{{
- var self = this;
- if (typeof text !== 'undefined') {
- text.toString().split(/\r?\n/).filter(function(line) {
- return line.length > 0;
- }).forEach(function(line) {
- var r = new RegExp(".{1," + self.opt.messageSplit + "}", "g");
- while ((messagePart = r.exec(line)) != null) {
- self.send('PRIVMSG', target, messagePart[0]);
- self.emit('selfMessage', target, messagePart[0]);
- }
- });
- }
-} // }}}
-Client.prototype.action = function(channel, text) { // {{{
- var self = this;
- if (typeof text !== 'undefined') {
- text.toString().split(/\r?\n/).filter(function(line) {
- return line.length > 0;
- }).forEach(function(line) {
- self.say(channel, '\u0001ACTION ' + line + '\u0001');
- });
- }
-} // }}}
-Client.prototype.notice = function(target, text) { // {{{
- this.send('NOTICE', target, text);
-} // }}}
-Client.prototype.whois = function(nick, callback) { // {{{
- if ( typeof callback === 'function' ) {
- var callbackWrapper = function(info) {
- if ( info.nick == nick ) {
- this.removeListener('whois', callbackWrapper);
- return callback.apply(this, arguments);
- }
- };
- this.addListener('whois', callbackWrapper);
- }
- this.send('WHOIS', nick);
-} // }}}
-Client.prototype.list = function() { // {{{
- var args = Array.prototype.slice.call(arguments, 0);
- args.unshift('LIST');
- this.send.apply(this, args);
-} // }}}
-Client.prototype._addWhoisData = function(nick, key, value, onlyIfExists) { // {{{
- if ( onlyIfExists && !this._whoisData[nick] ) return;
- this._whoisData[nick] = this._whoisData[nick] || {nick: nick};
- this._whoisData[nick][key] = value;
-} // }}}
-Client.prototype._clearWhoisData = function(nick) { // {{{
- // Ensure that at least the nick exists before trying to return
- this._addWhoisData(nick, 'nick', nick);
- var data = this._whoisData[nick];
- delete this._whoisData[nick];
- return data;
-} // }}}
-Client.prototype._handleCTCP = function(from, to, text, type) {
- text = text.slice(1)
- text = text.slice(0, text.indexOf('\1'))
- var parts = text.split(' ')
- this.emit('ctcp', from, to, text, type)
- this.emit('ctcp-'+type, from, to, text)
- if (type === 'privmsg' && text === 'VERSION')
- this.emit('ctcp-version', from, to)
- if (parts[0] === 'ACTION' && parts.length > 1)
- this.emit('action', from, to, parts.slice(1).join(' '))
- if (parts[0] === 'PING' && type === 'privmsg' && parts.length > 1)
- this.ctcp(from, 'notice', text)
-}
-Client.prototype.ctcp = function(to, type, text) {
- return this[type === 'privmsg' ? 'say' : 'notice'](to, '\1'+text+'\1');
-}
-
-/*
- * parseMessage(line, stripColors)
- *
- * takes a raw "line" from the IRC server and turns it into an object with
- * useful keys
- */
-function parseMessage(line, stripColors) { // {{{
- var message = {};
- var match;
-
- if (stripColors) {
- line = line.replace(/[\x02\x1f\x16\x0f]|\x03\d{0,2}(?:,\d{0,2})?/g, "");
- }
-
- // Parse prefix
- if ( match = line.match(/^:([^ ]+) +/) ) {
- message.prefix = match[1];
- line = line.replace(/^:[^ ]+ +/, '');
- if ( match = message.prefix.match(/^([_a-zA-Z0-9\[\]\\`^{}|-]*)(!([^@]+)@(.*))?$/) ) {
- message.nick = match[1];
- message.user = match[3];
- message.host = match[4];
- }
- else {
- message.server = message.prefix;
- }
- }
-
- // Parse command
- match = line.match(/^([^ ]+) */);
- message.command = match[1];
- message.rawCommand = match[1];
- message.commandType = 'normal';
- line = line.replace(/^[^ ]+ +/, '');
-
- if ( replyFor[message.rawCommand] ) {
- message.command = replyFor[message.rawCommand].name;
- message.commandType = replyFor[message.rawCommand].type;
- }
-
- message.args = [];
- var middle, trailing;
-
- // Parse parameters
- if ( line.search(/^:|\s+:/) != -1 ) {
- match = line.match(/(.*?)(?:^:|\s+:)(.*)/);
- middle = match[1].trimRight();
- trailing = match[2];
- }
- else {
- middle = line;
- }
-
- if ( middle.length )
- message.args = middle.split(/ +/);
-
- if ( typeof(trailing) != 'undefined' && trailing.length )
- message.args.push(trailing);
-
- return message;
-} // }}}
-
-exports.parseMessage = parseMessage;
diff --git a/node_modules/irc/package.json b/node_modules/irc/package.json
deleted file mode 100644
index 807c69e..0000000
--- a/node_modules/irc/package.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "irc",
- "description": "An IRC client library for node",
- "version": "0.3.6",
- "author": {
- "name": "Martyn Smith",
- "email": "martyn@dollyfish.net.nz"
- },
- "contributors": [
- {
- "name": "xAndy",
- "email": "xandy@hackerspace-bamberg.de"
- }
- ],
- "repository": {
- "type": "git",
- "url": "http://github.com/martynsmith/node-irc"
- },
- "bugs": {
- "mail": "martyn@dollyfish.net.nz",
- "url": "http://github.com/martynsmith/node-irc/issues"
- },
- "main": "lib/irc",
- "engines": {
- "node": ">=0.4.0"
- },
- "licenses": [
- {
- "type": "GPL",
- "url": "http://github.com/martynsmith/node-irc/raw/master/COPYING"
- }
- ],
- "readme": "`node-irc`_ is an IRC client library written in JavaScript_ for Node_.\n\n.. _`node-irc`: http://node-irc.readthedocs.org/\n.. _JavaScript: http://en.wikipedia.org/wiki/JavaScript\n.. _Node: http://nodejs.org/\n\nYou can access more detailed documentation for this module at `Read the Docs`_\n\n\nInstallation\n-------------\n\nThe easiest way to get it is via npm_::\n\n npm install irc\n\nIf you want to run the latest version (i.e. later than the version available via\nnpm_) you can clone this repo, then use npm_ to link-install it::\n\n npm link /path/to/your/clone\n\nOf course, you can just clone this, and manually point at the library itself,\nbut I really recommend using npm_!\n\nBasic Usage\n-------------\n\nThis library provides basic IRC client functionality. In the simplest case you\ncan connect to an IRC server like so::\n\n var irc = require('irc');\n var client = new irc.Client('irc.dollyfish.net.nz', 'myNick', {\n\tchannels: ['#blah'],\n });\n\nOf course it's not much use once it's connected if that's all you have!\n\nThe client emits a large number of events that correlate to things you'd\nnormally see in your favourite IRC client. Most likely the first one you'll want\nto use is::\n\n client.addListener('message', function (from, to, message) {\n\tconsole.log(from + ' => ' + to + ': ' + message);\n });\n\nor if you're only interested in messages to the bot itself::\n\n client.addListener('pm', function (from, message) {\n\tconsole.log(from + ' => ME: ' + message);\n });\n\nor to a particular channel::\n\n client.addListener('message#yourchannel', function (from, message) {\n\tconsole.log(from + ' => #yourchannel: ' + message);\n });\n\nAt the moment there are functions for joining::\n\n client.join('#yourchannel yourpass');\n\nparting::\n\n client.part('#yourchannel');\n\ntalking::\n\n client.say('#yourchannel', \"I'm a bot!\");\n client.say('nonbeliever', \"SRSLY, I AM!\");\n\nand many others. Check out the API documentation for a complete reference.\n\nFor any commands that there aren't methods for you can use the send() method\nwhich sends raw messages to the server::\n\n client.send('MODE', '#yourchannel', '+o', 'yournick');\n\nHelp! - it keeps crashing!\n---------------------------\n\nWhen the client receives errors from the IRC network, it emits an \"error\"\nevent. As stated in the `Node JS EventEmitter documentation`_ if you don't bind\nsomething to this error, it will cause a fatal stack trace.\n\nThe upshot of this is basically that if you bind an error handler to your\nclient, errors will be sent there instead of crashing your program.::\n\n client.addListener('error', function(message) {\n console.log('error: ', message);\n });\n\n\nFurther Documentation\n-----------------------\n\nFurther documentation (including a complete API reference) are available in\nreStructuredText format in the docs/ folder of this project, or online at `Read the Docs`_.\n\nIf you find any issues with the documentation (or the module) please send a pull\nrequest or file an issue and I'll do my best to accommodate.\n\n.. _npm: http://github.com/isaacs/npm\n.. _here: http://node-irc.readthedocs.org/en/latest/API.html\n.. _`Read the Docs`: http://readthedocs.org/docs/node-irc/en/latest/\n.. _`Node JS EventEmitter documentation`: http://nodejs.org/api/events.html#events_class_events_eventemitter\n",
- "_id": "irc@0.3.6",
- "dist": {
- "shasum": "b01919405ce2966d92f93d1d7b36a641784f7416"
- },
- "_from": "irc"
-}
diff --git a/node_modules/irc/test.js b/node_modules/irc/test.js
deleted file mode 100755
index 3250803..0000000
--- a/node_modules/irc/test.js
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env node
-
-var irc = require('./lib/irc.js');
-var util = require('util');
-var color = require('ansi-color').set;
-
-var c = new irc.Client(
- 'irc.dollyfish.net.nz',
- 'nodebot',
- {
- channels: ['#test'],
- //debug: true
- }
-);
-
-c.addListener('raw', function(message) { console.log('raw: ', message) });
-c.addListener('error', function(message) { console.log(color('error: ', 'red'), message) });
-
-var repl = require('repl').start('> ');
-repl.context.repl = repl;
-repl.context.util = util;
-repl.context.irc = irc;
-repl.context.c = c;
-
-repl.inputStream.addListener('close', function() {
- console.log("\nClosing session");
- c.disconnect('Closing session');
-});
-
diff --git a/node_modules/irc/test/parse-line.js b/node_modules/irc/test/parse-line.js
deleted file mode 100644
index 6f49c8e..0000000
--- a/node_modules/irc/test/parse-line.js
+++ /dev/null
@@ -1,90 +0,0 @@
-var irc = require('../lib/irc.js');
-var should = require('should');
-var _ = require('underscore');
-
-describe("irc.parseMessage", function() {
- var checks = {
- ':irc.dollyfish.net.nz 372 nodebot :The message of the day was last changed: 2012-6-16 23:57': {
- prefix: "irc.dollyfish.net.nz",
- server: "irc.dollyfish.net.nz",
- command: "rpl_motd",
- rawCommand: "372",
- commandType: "reply",
- args: [ "nodebot", "The message of the day was last changed: 2012-6-16 23:57" ]
- },
- ':Ned!~martyn@irc.dollyfish.net.nz PRIVMSG #test :Hello nodebot!': {
- prefix: "Ned!~martyn@irc.dollyfish.net.nz",
- nick: "Ned",
- user: "~martyn",
- host: "irc.dollyfish.net.nz",
- command: "PRIVMSG",
- rawCommand: "PRIVMSG",
- commandType: "normal",
- args: [ "#test", "Hello nodebot!" ]
- },
- ':Ned!~martyn@irc.dollyfish.net.nz PRIVMSG #test ::-)': {
- prefix: "Ned!~martyn@irc.dollyfish.net.nz",
- nick: "Ned",
- user: "~martyn",
- host: "irc.dollyfish.net.nz",
- command: "PRIVMSG",
- rawCommand: "PRIVMSG",
- commandType: "normal",
- args: [ "#test", ":-)" ]
- },
- ':Ned!~martyn@irc.dollyfish.net.nz PRIVMSG #test ::': {
- prefix: "Ned!~martyn@irc.dollyfish.net.nz",
- nick: "Ned",
- user: "~martyn",
- host: "irc.dollyfish.net.nz",
- command: "PRIVMSG",
- rawCommand: "PRIVMSG",
- commandType: "normal",
- args: [ "#test", ":" ]
- },
- ":Ned!~martyn@irc.dollyfish.net.nz PRIVMSG #test ::^:^:": {
- prefix: "Ned!~martyn@irc.dollyfish.net.nz",
- nick: "Ned",
- user: "~martyn",
- host: "irc.dollyfish.net.nz",
- command: "PRIVMSG",
- rawCommand: "PRIVMSG",
- commandType: "normal",
- args: [ "#test", ":^:^:" ]
- },
- ":some.irc.net 324 webuser #channel +Cnj 5:10": {
- prefix: "some.irc.net",
- server: "some.irc.net",
- command: "rpl_channelmodeis",
- rawCommand: "324",
- commandType: "reply",
- args: [ "webuser", "#channel", "+Cnj", "5:10" ]
- },
- ":nick!user@host QUIT :Ping timeout: 252 seconds": {
- prefix: "nick!user@host",
- nick: "nick",
- user: "user",
- host: "host",
- command: "QUIT",
- rawCommand: "QUIT",
- commandType: "normal",
- args: [ "Ping timeout: 252 seconds" ]
- },
- ":nick!user@host PRIVMSG #channel :so : colons: :are :: not a problem ::::": {
- prefix: "nick!user@host",
- nick: "nick",
- user: "user",
- host: "host",
- command: "PRIVMSG",
- rawCommand: "PRIVMSG",
- commandType: "normal",
- args: [ "#channel", "so : colons: :are :: not a problem ::::" ]
- }
- };
-
- _.each(checks, function(result, line) {
- it('parse ' + line, function() {
- JSON.stringify(result).should.equal(JSON.stringify(irc.parseMessage(line)));
- });
- });
-});
diff --git a/node_modules/js-yaml/HISTORY.md b/node_modules/js-yaml/HISTORY.md
deleted file mode 100644
index ea270c2..0000000
--- a/node_modules/js-yaml/HISTORY.md
+++ /dev/null
@@ -1,167 +0,0 @@
-2.1.0 / 2013-06-05
-------------------
-
-* Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`),
- JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`).
-* Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA`
- and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`.
-* Bug fix: export `NIL` constant from the public interface.
-* Add `skipInvalid` dumper option.
-* Use `safeLoad` for `require` extension.
-
-
-2.0.5 / 2013-04-26
-------------------
-
-* Close security issue in !!js/function constructor.
- Big thanks to @nealpoole for security audit.
-
-
-2.0.4 / 2013-04-08
-------------------
-
-* Updated .npmignore to reduce package size
-
-
-2.0.3 / 2013-02-26
-------------------
-
-* Fixed dumping of empty arrays ans objects. ([] and {} instead of null)
-
-
-2.0.2 / 2013-02-15
-------------------
-
-* Fixed input validation: tabs are printable characters.
-
-
-2.0.1 / 2013-02-09
-------------------
-
-* Fixed error, when options not passed to function cass
-
-
-2.0.0 / 2013-02-09
-------------------
-
-* Full rewrite. New architecture. Fast one-stage parsing.
-* Changed custom types API.
-* Added YAML dumper.
-
-
-1.0.3 / 2012-11-05
-------------------
-
-* Fixed utf-8 files loading.
-
-
-1.0.2 / 2012-08-02
-------------------
-
-* Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44.
-* Fix timstamps incorectly parsed in local time when no time part specified.
-
-
-1.0.1 / 2012-07-07
-------------------
-
-* Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong.
-* Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46.
-
-
-1.0.0 / 2012-07-01
-------------------
-
-* `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore.
- Fixes #42.
-* `require(filename)` now returns a single document and throws an Error if
- file contains more than one document.
-* CLI was merged back from js-yaml.bin
-
-
-0.3.7 / 2012-02-28
-------------------
-
-* Fix export of `addConstructor()`. Closes #39.
-
-
-0.3.6 / 2012-02-22
-------------------
-
-* Removed AMD parts - too buggy to use. Need help to rewrite from scratch
-* Removed YUI compressor warning (renamed `double` variable). Closes #40.
-
-
-0.3.5 / 2012-01-10
-------------------
-
-* Workagound for .npmignore fuckup under windows. Thanks to airportyh.
-
-
-0.3.4 / 2011-12-24
-------------------
-
-* Fixes str[] for oldIEs support.
-* Adds better has change support for browserified demo.
-* improves compact output of Error. Closes #33.
-
-
-0.3.3 / 2011-12-20
-------------------
-
-* jsyaml executable moved to separate module.
-* adds `compact` stringification of Errors.
-
-
-0.3.2 / 2011-12-16
-------------------
-
-* Fixes ug with block style scalars. Closes #26.
-* All sources are passing JSLint now.
-* Fixes bug in Safari. Closes #28.
-* Fixes bug in Opers. Closes #29.
-* Improves browser support. Closes #20.
-* Added jsyaml executable.
-* Added !!js/function support. Closes #12.
-
-
-0.3.1 / 2011-11-18
-------------------
-
-* Added AMD support for browserified version.
-* Wrapped browserified js-yaml into closure.
-* Fixed the resolvement of non-specific tags. Closes #17.
-* Added permalinks for online demo YAML snippets. Now we have YPaste service, lol.
-* Added !!js/regexp and !!js/undefined types. Partially solves #12.
-* Fixed !!set mapping.
-* Fixed month parse in dates. Closes #19.
-
-
-0.3.0 / 2011-11-09
-------------------
-
-* Removed JS.Class dependency. Closes #3.
-* Added browserified version. Closes #13.
-* Added live demo of browserified version.
-* Ported some of the PyYAML tests. See #14.
-* Fixed timestamp bug when fraction was given.
-
-
-0.2.2 / 2011-11-06
-------------------
-
-* Fixed crash on docs without ---. Closes #8.
-* Fixed miltiline string parse
-* Fixed tests/comments for using array as key
-
-
-0.2.1 / 2011-11-02
-------------------
-
-* Fixed short file read (<4k). Closes #9.
-
-
-0.2.0 / 2011-11-02
-------------------
-
-* First public release
diff --git a/node_modules/js-yaml/LICENSE b/node_modules/js-yaml/LICENSE
deleted file mode 100644
index 0f16ee9..0000000
--- a/node_modules/js-yaml/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-(The MIT License)
-
-Copyright (C) 2011, 2013 by Vitaly Puzrin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/js-yaml/README.md b/node_modules/js-yaml/README.md
deleted file mode 100644
index 1265927..0000000
--- a/node_modules/js-yaml/README.md
+++ /dev/null
@@ -1,277 +0,0 @@
-JS-YAML - YAML 1.2 parser and serializer for JavaScript
-=======================================================
-
-[](http://travis-ci.org/nodeca/js-yaml)
-
-[Online Demo](http://nodeca.github.com/js-yaml/)
-
-
-This is an implementation of [YAML](http://yaml.org/), a human friendly data
-serialization language. Started as [PyYAML](http://pyyaml.org/) port, it was
-completely rewritten from scratch. Now it's very fast, and supports 1.2 spec.
-
-
-Installation
-------------
-
-### YAML module for node.js
-
-```
-npm install js-yaml
-```
-
-
-### CLI executable
-
-If you want to inspect your YAML files from CLI, install js-yaml globally:
-
-```
-npm install js-yaml -g
-```
-
-#### Usage
-
-```
-usage: js-yaml [-h] [-v] [-c] [-j] [-t] file
-
-Positional arguments:
- file File with YAML document(s)
-
-Optional arguments:
- -h, --help Show this help message and exit.
- -v, --version Show program's version number and exit.
- -c, --compact Display errors in compact mode
- -j, --to-json Output a non-funky boring JSON
- -t, --trace Show stack trace on error
-```
-
-
-### Bundled YAML library for browsers
-
-``` html
-
-
-```
-
-Browser support was done mostly for online demo. If you find any errors - feel
-free to send pull requests with fixes. Also note, that IE and other old browsers
-needs [es5-shims](https://github.com/kriskowal/es5-shim) to operate.
-
-
-API
----
-
-Here we cover the most 'useful' methods. If you need advanced details (creating
-your own tags), see [wiki](https://github.com/nodeca/js-yaml/wiki) and
-[examples](https://github.com/nodeca/js-yaml/tree/master/examples) for more
-info.
-
-In node.js JS-YAML automatically registers handlers for `.yml` and `.yaml`
-files. You can load them just with `require`. That's mostly equivalent to
-calling `load()` on fetched content of a file. Just with one string!
-
-``` javascript
-require('js-yaml');
-
-// Get document, or throw exception on error
-try {
- var doc = require('/home/ixti/example.yml');
- console.log(doc);
-} catch (e) {
- console.log(e);
-}
-```
-
-
-### safeLoad (string [ , options ])
-
-**Recommended loading way.** Parses `string` as single YAML document. Returns a JavaScript
-object or throws `YAMLException` on error. By default, does not support regexps,
-functions and undefined. This method is safe for untrusted data.
-
-options:
-
-- `filename` _(default: null)_ - string to be used as a file path in
- error/warning messages.
-- `strict` _(default - false)_ makes the loader to throw errors instead of
- warnings.
-- `schema` _(default: `DEFAULT_FULL_SCHEMA`)_ - specifies a schema to use.
- - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects:
- http://www.yaml.org/spec/1.2/spec.html#id2802346
- - `JSON_SCHEMA` - all JSON-supported types:
- http://www.yaml.org/spec/1.2/spec.html#id2803231
- - `CORE_SCHEMA` - same as `JSON_SCHEMA`:
- http://www.yaml.org/spec/1.2/spec.html#id2804923
- - `DEFAULT_SAFE_SCHEMA` - all supported YAML types, without unsafe ones
- (`!!js/undefined`, `!!js/regexp` and `!!js/function`):
- http://yaml.org/type/
- - `DEFAULT_FULL_SCHEMA` - all supported YAML types.
-
-NOTE: This function **does not** understand multi-document sources, it throws
-exception on those.
-
-NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions.
-So, JSON schema is not such strict as defined in the YAML specification.
-It allows numbers in any notaion, use `Null` and `NULL` as `null`, etc.
-Core schema also has no such restrictions. It allows binary notation for integers.
-
-
-### load (string [ , options ])
-
-**Use with care with untrusted sources**. The same as `safeLoad()` but uses
-`DEFAULT_FULL_SCHEMA` by default - adds some JavaScript-specific types:
-`!!js/function`, `!!js/regexp` and `!!js/undefined`. For untrusted sources you
-must additionally validate object structure, to avoid injections:
-
-``` javascript
-var untrusted_code = '"toString": ! "function (){very_evil_thing();}"';
-
-// I'm just converting that string, what could possibly go wrong?
-require('js-yaml').load(untrusted_code) + ''
-```
-
-
-### safeLoadAll (string, iterator [ , options ])
-
-Same as `safeLoad()`, but understands multi-document sources and apply
-`iterator` to each document.
-
-``` javascript
-var yaml = require('js-yaml');
-
-yaml.safeLoadAll(data, function (doc) {
- console.log(doc);
-});
-```
-
-
-### loadAll (string, iterator [ , options ])
-
-Same as `safeLoadAll()` but uses `DEFAULT_FULL_SCHEMA` by default.
-
-
-### safeDump (object [ , options ])
-
-Serializes `object` as YAML document. Uses `DEFAULT_SAFE_SCHEMA`, so it will
-throw exception if you try to dump regexps or functions. However, you can
-disable exceptions by `skipInvalid` option.
-
-options:
-
-- `indent` _(default: 2)_ - indentation width to use (in spaces).
-- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function
- in the safe schema) and skip pairs and single values with such types.
-- `flowLevel` (default: -1) - specifies level of nesting, when to switch from
- block to flow style for collections. -1 means block style everwhere
-- `styles` - "tag" => "style" map. Each tag may have own set of styles.
-- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ specifies a schema to use.
-
-styles:
-
-``` none
-!!null
- "canonical" => "~"
-
-!!int
- "binary" => "0b1", "0b101010", "0b1110001111010"
- "octal" => "01", "052", "016172"
- "decimal" => "1", "42", "7290"
- "hexadecimal" => "0x1", "0x2A", "0x1C7A"
-
-!!null, !!bool, !!float
- "lowercase" => "null", "true", "false", ".nan", '.inf'
- "uppercase" => "NULL", "TRUE", "FALSE", ".NAN", '.INF'
- "camelcase" => "Null", "True", "False", ".NaN", '.Inf'
-```
-
-By default, !!int uses `decimal`, and !!null, !!bool, !!float use `lowercase`.
-
-
-
-### dump (object [ , options ])
-
-Same as `safeDump()` but without limits (uses `DEFAULT_FULL_SCHEMA` by default).
-
-
-Supported YAML types
---------------------
-
-The list of standard YAML tags and corresponding JavaScipt types. See also
-[YAML tag discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and
-[YAML types repository](http://yaml.org/type/).
-
-```
-!!null '' # null
-!!bool 'yes' # bool
-!!int '3...' # number
-!!float '3.14...' # number
-!!binary '...base64...' # buffer
-!!timestamp 'YYYY-...' # date
-!!omap [ ... ] # array of key-value pairs
-!!pairs [ ... ] # array or array pairs
-!!set { ... } # array of objects with given keys and null values
-!!str '...' # string
-!!seq [ ... ] # array
-!!map { ... } # object
-```
-
-**JavaScript-specific tags**
-
-```
-!!js/regexp /pattern/gim # RegExp
-!!js/undefined '' # Undefined
-!!js/function 'function () {...}' # Function
-```
-
-Caveats
--------
-
-Note, that you use arrays or objects as key in JS-YAML. JS do not allows objects
-or array as keys, and stringifies (by calling .toString method) them at the
-moment of adding them.
-
-``` yaml
----
-? [ foo, bar ]
-: - baz
-? { foo: bar }
-: - baz
- - baz
-```
-
-``` javascript
-{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] }
-```
-
-Also, reading of properties on implicit block mapping keys is not supported yet.
-So, the following YAML document cannot be loaded.
-
-``` yaml
-&anchor foo:
- foo: bar
- *anchor: duplicate key
- baz: bat
- *anchor: duplicate key
-```
-
-
-Breaking changes in 1.x.x -> 2.0.x
-----------------------------------
-
-If your have not used __custom__ tags or loader classes - no changes needed. Just
-upgrade library and enjoy high parse speed.
-
-In other case, you should rewrite your tag constructors and custom loader
-classes, to conform new schema-based API. See
-[examples](https://github.com/nodeca/js-yaml/tree/master/examples) and
-[wiki](https://github.com/nodeca/js-yaml/wiki) for details.
-Note, that parser internals were completely rewritten.
-
-
-License
--------
-
-View the [LICENSE](https://github.com/nodeca/js-yaml/blob/master/LICENSE) file
-(MIT).
diff --git a/node_modules/js-yaml/bin/js-yaml.js b/node_modules/js-yaml/bin/js-yaml.js
deleted file mode 100755
index 5110a4c..0000000
--- a/node_modules/js-yaml/bin/js-yaml.js
+++ /dev/null
@@ -1,125 +0,0 @@
-#!/usr/bin/env node
-
-
-'use strict';
-
-
-// stdlib
-var fs = require('fs');
-var util = require('util');
-
-
-// 3rd-party
-var ArgumentParser = require('argparse').ArgumentParser;
-
-
-// internal
-var yaml = require('..');
-
-
-////////////////////////////////////////////////////////////////////////////////
-
-
-var cli = new ArgumentParser({
- prog: 'js-yaml',
- version: require('../package.json').version,
- addHelp: true
-});
-
-
-cli.addArgument(['-c', '--compact'], {
- help: 'Display errors in compact mode',
- action: 'storeTrue'
-});
-
-
-cli.addArgument(['-j', '--to-json'], {
- help: 'Output a non-funky boring JSON',
- dest: 'json',
- action: 'storeTrue'
-});
-
-
-cli.addArgument(['-t', '--trace'], {
- help: 'Show stack trace on error',
- action: 'storeTrue'
-});
-
-
-cli.addArgument(['file'], {
- help: 'File to read'
-});
-
-
-////////////////////////////////////////////////////////////////////////////////
-
-
-var options = cli.parseArgs();
-
-
-////////////////////////////////////////////////////////////////////////////////
-
-
-fs.readFile(options.file, 'utf8', function (error, input) {
- var output, isYaml;
-
- if (error) {
- if ('ENOENT' === error.code) {
- console.error('File not found: ' + options.file);
- process.exit(2);
- }
-
- console.error(
- options.trace && error.stack ||
- error.message ||
- String(error));
-
- process.exit(1);
- }
-
- try {
- output = JSON.parse(input);
- isYaml = false;
- } catch (error) {
- if (error instanceof SyntaxError) {
- try {
- output = [];
- yaml.loadAll(input, function (doc) { output.push(doc); }, {});
- isYaml = true;
-
- if (0 === output.length) {
- output = null;
- } else if (1 === output.length) {
- output = output[0];
- }
- } catch (error) {
- if (options.trace && error.stack) {
- console.error(error.stack);
- } else {
- console.error(error.toString(options.compact));
- }
-
- process.exit(1);
- }
- } else {
- console.error(
- options.trace && error.stack ||
- error.message ||
- String(error));
-
- process.exit(1);
- }
- }
-
- if (isYaml) {
- if (options.json) {
- console.log(JSON.stringify(output, null, ' '));
- } else {
- console.log("\n" + util.inspect(output, false, 10, true) + "\n");
- }
- } else {
- console.log(yaml.dump(output));
- }
-
- process.exit(0);
-});
diff --git a/node_modules/js-yaml/examples/custom_types.js b/node_modules/js-yaml/examples/custom_types.js
deleted file mode 100644
index 1cb987c..0000000
--- a/node_modules/js-yaml/examples/custom_types.js
+++ /dev/null
@@ -1,104 +0,0 @@
-'use strict';
-
-
-var fs = require('fs');
-var path = require('path');
-var util = require('util');
-var yaml = require('../lib/js-yaml');
-
-
-// Let define a couple of classes...
-
-function Point(x, y, z) {
- this.klass = 'Point';
- this.x = x;
- this.y = y;
- this.z = z;
-}
-
-
-function Space(height, width, points) {
- if (points) {
- if (!points.every(function (point) { return point instanceof Point; })) {
- throw new Error('A non-Point inside a points array!');
- }
- }
-
- this.klass = 'Space';
- this.height = height;
- this.width = width;
- this.points = points;
-}
-
-
-// Let define YAML types to load and dump our Point/Space objects.
-
-var pointYamlType = new yaml.Type('!point', {
- // The information used to load a Point.
- loader: {
- kind: 'array', // It must be an array. (sequence in YAML)
- resolver: function (object) {
- // It must contain exactly tree elements.
- if (3 === object.length) {
- return new Point(object[0], object[1], object[2]);
-
- // Otherwise, it is NOT a Point.
- } else {
- return yaml.NIL;
- }
- }
- },
- // The information used to dump a Point.
- dumper: {
- kind: 'object', // It must be an object but not an array.
- instanceOf: Point, // Also, it must be an instance of Point class.
- representer: function (point) {
- // And it should be represented in YAML as three-element sequence.
- return [ point.x, point.y, point.z ];
- }
- }
-});
-
-
-var spaceYamlType = new yaml.Type('!space', {
- loader: {
- kind: 'object', // 'object' here means 'mapping' in YAML.
- resolver: function (object) {
- return new Space(object.height, object.width, object.points);
- }
- },
- dumper: {
- kind: 'object',
- instanceOf: Space
- // The representer is omitted here. So, Space objects will be dumped as is.
- // That is regular mapping with three key-value pairs but with !space tag.
- }
-});
-
-
-// After our types are defined, it's time to join them into a schema.
-
-var SPACE_SCHEMA = yaml.Schema.create([ spaceYamlType, pointYamlType ]);
-
-
-// And read a document using that schema.
-
-fs.readFile(path.join(__dirname, 'custom_types.yaml'), 'utf8', function (error, data) {
- var loaded;
-
- if (!error) {
- loaded = yaml.load(data, { schema: SPACE_SCHEMA });
- console.log(util.inspect(loaded, false, 20, true));
- } else {
- console.error(error.stack || error.message || String(error));
- }
-});
-
-
-// There are some exports to play with this example interactively.
-
-module.exports.Point = Point;
-module.exports.Space = Space;
-module.exports.pointYamlType = pointYamlType;
-module.exports.spaceYamlType = spaceYamlType;
-module.exports.SPACE_SCHEMA = SPACE_SCHEMA;
diff --git a/node_modules/js-yaml/examples/custom_types.yaml b/node_modules/js-yaml/examples/custom_types.yaml
deleted file mode 100644
index 033134f..0000000
--- a/node_modules/js-yaml/examples/custom_types.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-subject: Custom types in JS-YAML
-spaces:
-- !space
- height: 1000
- width: 1000
- points:
- - !point [ 10, 43, 23 ]
- - !point [ 165, 0, 50 ]
- - !point [ 100, 100, 100 ]
-
-- !space
- height: 64
- width: 128
- points:
- - !point [ 12, 43, 0 ]
- - !point [ 1, 4, 90 ]
-
-- !space {} # An empty space
diff --git a/node_modules/js-yaml/examples/dumper.js b/node_modules/js-yaml/examples/dumper.js
deleted file mode 100644
index 7952b18..0000000
--- a/node_modules/js-yaml/examples/dumper.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-
-var yaml = require('../lib/js-yaml');
-var object = require('./dumper.json');
-
-
-console.log(yaml.dump(object, {
- flowLevel: 3,
- styles: {
- '!!int' : 'hexadecimal',
- '!!null' : 'camelcase'
- }
-}));
-
-
-// Output:
-//==============================================================================
-// name: Wizzard
-// level: 0x11
-// sanity: Null
-// inventory:
-// - name: Hat
-// features: [magic, pointed]
-// traits: {}
-// - name: Staff
-// features: []
-// traits: {damage: 0xA}
-// - name: Cloak
-// features: [old]
-// traits: {defence: 0x0, comfort: 0x3}
diff --git a/node_modules/js-yaml/examples/dumper.json b/node_modules/js-yaml/examples/dumper.json
deleted file mode 100644
index 9f54c05..0000000
--- a/node_modules/js-yaml/examples/dumper.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name" : "Wizzard",
- "level" : 17,
- "sanity" : null,
- "inventory" : [
- {
- "name" : "Hat",
- "features" : [ "magic", "pointed" ],
- "traits" : {}
- },
- {
- "name" : "Staff",
- "features" : [],
- "traits" : { "damage" : 10 }
- },
- {
- "name" : "Cloak",
- "features" : [ "old" ],
- "traits" : { "defence" : 0, "comfort" : 3 }
- }
- ]
-}
diff --git a/node_modules/js-yaml/examples/sample_document.js b/node_modules/js-yaml/examples/sample_document.js
deleted file mode 100644
index 2378aba..0000000
--- a/node_modules/js-yaml/examples/sample_document.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-
-var fs = require('fs');
-var path = require('path');
-var util = require('util');
-var yaml = require('../lib/js-yaml');
-
-
-try {
- var filename = path.join(__dirname, 'sample_document.yaml'),
- contents = fs.readFileSync(filename, 'utf8'),
- data = yaml.load(contents);
-
- console.log(util.inspect(data, false, 10, true));
-} catch (err) {
- console.log(err.stack || String(err));
-}
diff --git a/node_modules/js-yaml/examples/sample_document.yaml b/node_modules/js-yaml/examples/sample_document.yaml
deleted file mode 100644
index 4479ee9..0000000
--- a/node_modules/js-yaml/examples/sample_document.yaml
+++ /dev/null
@@ -1,197 +0,0 @@
----
-# Collection Types #############################################################
-################################################################################
-
-# http://yaml.org/type/map.html -----------------------------------------------#
-
-map:
- # Unordered set of key: value pairs.
- Block style: !!map
- Clark : Evans
- Ingy : döt Net
- Oren : Ben-Kiki
- Flow style: !!map { Clark: Evans, Ingy: döt Net, Oren: Ben-Kiki }
-
-# http://yaml.org/type/omap.html ----------------------------------------------#
-
-omap:
- # Explicitly typed ordered map (dictionary).
- Bestiary: !!omap
- - aardvark: African pig-like ant eater. Ugly.
- - anteater: South-American ant eater. Two species.
- - anaconda: South-American constrictor snake. Scaly.
- # Etc.
- # Flow style
- Numbers: !!omap [ one: 1, two: 2, three : 3 ]
-
-# http://yaml.org/type/pairs.html ---------------------------------------------#
-
-pairs:
- # Explicitly typed pairs.
- Block tasks: !!pairs
- - meeting: with team.
- - meeting: with boss.
- - break: lunch.
- - meeting: with client.
- Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
-
-# http://yaml.org/type/set.html -----------------------------------------------#
-
-set:
- # Explicitly typed set.
- baseball players: !!set
- ? Mark McGwire
- ? Sammy Sosa
- ? Ken Griffey
- # Flow style
- baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }
-
-# http://yaml.org/type/seq.html -----------------------------------------------#
-
-seq:
- # Ordered sequence of nodes
- Block style: !!seq
- - Mercury # Rotates - no light/dark sides.
- - Venus # Deadliest. Aptly named.
- - Earth # Mostly dirt.
- - Mars # Seems empty.
- - Jupiter # The king.
- - Saturn # Pretty.
- - Uranus # Where the sun hardly shines.
- - Neptune # Boring. No rings.
- - Pluto # You call this a planet?
- Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks
- Jupiter, Saturn, Uranus, Neptune, # Gas
- Pluto ] # Overrated
-
-
-# Scalar Types #################################################################
-################################################################################
-
-# http://yaml.org/type/binary.html --------------------------------------------#
-
-binary:
- canonical: !!binary "\
- R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
- OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
- +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
- AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
- generic: !!binary |
- R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
- OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
- +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
- AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
- description:
- The binary value above is a tiny arrow encoded as a gif image.
-
-# http://yaml.org/type/bool.html ----------------------------------------------#
-
-bool:
- - true
- - True
- - TRUE
- - false
- - False
- - FALSE
-
-# http://yaml.org/type/float.html ---------------------------------------------#
-
-float:
- canonical: 6.8523015e+5
- exponentioal: 685.230_15e+03
- fixed: 685_230.15
- sexagesimal: 190:20:30.15
- negative infinity: -.inf
- not a number: .NaN
-
-# http://yaml.org/type/int.html -----------------------------------------------#
-
-int:
- canonical: 685230
- decimal: +685_230
- octal: 02472256
- hexadecimal: 0x_0A_74_AE
- binary: 0b1010_0111_0100_1010_1110
- sexagesimal: 190:20:30
-
-# http://yaml.org/type/merge.html ---------------------------------------------#
-
-merge:
- - &CENTER { x: 1, y: 2 }
- - &LEFT { x: 0, y: 2 }
- - &BIG { r: 10 }
- - &SMALL { r: 1 }
-
- # All the following maps are equal:
-
- - # Explicit keys
- x: 1
- y: 2
- r: 10
- label: nothing
-
- - # Merge one map
- << : *CENTER
- r: 10
- label: center
-
- - # Merge multiple maps
- << : [ *CENTER, *BIG ]
- label: center/big
-
- - # Override
- << : [ *BIG, *LEFT, *SMALL ]
- x: 1
- label: big/left/small
-
-# http://yaml.org/type/null.html ----------------------------------------------#
-
-null:
- # This mapping has four keys,
- # one has a value.
- empty:
- canonical: ~
- english: null
- ~: null key
- # This sequence has five
- # entries, two have values.
- sparse:
- - ~
- - 2nd entry
- -
- - 4th entry
- - Null
-
-# http://yaml.org/type/str.html -----------------------------------------------#
-
-string: abcd
-
-# http://yaml.org/type/timestamp.html -----------------------------------------#
-
-timestamp:
- canonical: 2001-12-15T02:59:43.1Z
- valid iso8601: 2001-12-14t21:59:43.10-05:00
- space separated: 2001-12-14 21:59:43.10 -5
- no time zone (Z): 2001-12-15 2:59:43.10
- date (00:00:00Z): 2002-12-14
-
-
-# JavaScript Specific Types ####################################################
-################################################################################
-
-# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp
-
-regexp:
- simple: !!js/regexp foobar
- modifiers: !!js/regexp /foobar/mi
-
-# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined
-
-undefined: !!js/undefined ~
-
-# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function
-
-function: !!js/function >
- function foobar() {
- return 'Wow! JS-YAML Rocks!';
- }
diff --git a/node_modules/js-yaml/index.js b/node_modules/js-yaml/index.js
deleted file mode 100644
index 40606dd..0000000
--- a/node_modules/js-yaml/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lib/js-yaml.js');
diff --git a/node_modules/js-yaml/lib/js-yaml.js b/node_modules/js-yaml/lib/js-yaml.js
deleted file mode 100644
index 1409828..0000000
--- a/node_modules/js-yaml/lib/js-yaml.js
+++ /dev/null
@@ -1,43 +0,0 @@
-'use strict';
-
-
-var loader = require('./js-yaml/loader');
-var dumper = require('./js-yaml/dumper');
-
-
-function deprecated(name) {
- return function () {
- throw new Error('Function ' + name + ' is deprecated and cannot be used.');
- };
-}
-
-
-module.exports.NIL = require('./js-yaml/common').NIL;
-module.exports.Type = require('./js-yaml/type');
-module.exports.Schema = require('./js-yaml/schema');
-module.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');
-module.exports.JSON_SCHEMA = require('./js-yaml/schema/json');
-module.exports.CORE_SCHEMA = require('./js-yaml/schema/core');
-module.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
-module.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');
-module.exports.load = loader.load;
-module.exports.loadAll = loader.loadAll;
-module.exports.safeLoad = loader.safeLoad;
-module.exports.safeLoadAll = loader.safeLoadAll;
-module.exports.dump = dumper.dump;
-module.exports.safeDump = dumper.safeDump;
-module.exports.YAMLException = require('./js-yaml/exception');
-
-// Deprecared schema names from JS-YAML 2.0.x
-module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');
-module.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
-module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');
-
-// Deprecated functions from JS-YAML 1.x.x
-module.exports.scan = deprecated('scan');
-module.exports.parse = deprecated('parse');
-module.exports.compose = deprecated('compose');
-module.exports.addConstructor = deprecated('addConstructor');
-
-
-require('./js-yaml/require');
diff --git a/node_modules/js-yaml/lib/js-yaml/common.js b/node_modules/js-yaml/lib/js-yaml/common.js
deleted file mode 100644
index cc7f824..0000000
--- a/node_modules/js-yaml/lib/js-yaml/common.js
+++ /dev/null
@@ -1,60 +0,0 @@
-'use strict';
-
-
-var NIL = {};
-
-
-function isNothing(subject) {
- return (undefined === subject) || (null === subject);
-}
-
-
-function isObject(subject) {
- return ('object' === typeof subject) && (null !== subject);
-}
-
-
-function toArray(sequence) {
- if (Array.isArray(sequence)) {
- return sequence;
- } else if (isNothing(sequence)) {
- return [];
- } else {
- return [ sequence ];
- }
-}
-
-
-function extend(target, source) {
- var index, length, key, sourceKeys;
-
- if (source) {
- sourceKeys = Object.keys(source);
-
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
- key = sourceKeys[index];
- target[key] = source[key];
- }
- }
-
- return target;
-}
-
-
-function repeat(string, count) {
- var result = '', cycle;
-
- for (cycle = 0; cycle < count; cycle += 1) {
- result += string;
- }
-
- return result;
-}
-
-
-module.exports.NIL = NIL;
-module.exports.isNothing = isNothing;
-module.exports.isObject = isObject;
-module.exports.toArray = toArray;
-module.exports.repeat = repeat;
-module.exports.extend = extend;
diff --git a/node_modules/js-yaml/lib/js-yaml/dumper.js b/node_modules/js-yaml/lib/js-yaml/dumper.js
deleted file mode 100644
index 3a97a2a..0000000
--- a/node_modules/js-yaml/lib/js-yaml/dumper.js
+++ /dev/null
@@ -1,473 +0,0 @@
-'use strict';
-
-
-var common = require('./common');
-var NIL = common.NIL;
-var YAMLException = require('./exception');
-var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
-var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
-
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-
-
-var CHAR_TAB = 0x09; /* Tab */
-var CHAR_LINE_FEED = 0x0A; /* LF */
-var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
-var CHAR_SPACE = 0x20; /* Space */
-var CHAR_EXCLAMATION = 0x21; /* ! */
-var CHAR_DOUBLE_QUOTE = 0x22; /* " */
-var CHAR_SHARP = 0x23; /* # */
-var CHAR_PERCENT = 0x25; /* % */
-var CHAR_AMPERSAND = 0x26; /* & */
-var CHAR_SINGLE_QUOTE = 0x27; /* ' */
-var CHAR_ASTERISK = 0x2A; /* * */
-var CHAR_COMMA = 0x2C; /* , */
-var CHAR_MINUS = 0x2D; /* - */
-var CHAR_COLON = 0x3A; /* : */
-var CHAR_GREATER_THAN = 0x3E; /* > */
-var CHAR_QUESTION = 0x3F; /* ? */
-var CHAR_COMMERCIAL_AT = 0x40; /* @ */
-var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
-var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
-var CHAR_GRAVE_ACCENT = 0x60; /* ` */
-var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
-var CHAR_VERTICAL_LINE = 0x7C; /* | */
-var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
-
-
-var ESCAPE_SEQUENCES = {};
-
-ESCAPE_SEQUENCES[0x00] = '\\0';
-ESCAPE_SEQUENCES[0x07] = '\\a';
-ESCAPE_SEQUENCES[0x08] = '\\b';
-ESCAPE_SEQUENCES[0x09] = '\\t';
-ESCAPE_SEQUENCES[0x0A] = '\\n';
-ESCAPE_SEQUENCES[0x0B] = '\\v';
-ESCAPE_SEQUENCES[0x0C] = '\\f';
-ESCAPE_SEQUENCES[0x0D] = '\\r';
-ESCAPE_SEQUENCES[0x1B] = '\\e';
-ESCAPE_SEQUENCES[0x22] = '\\"';
-ESCAPE_SEQUENCES[0x5C] = '\\\\';
-ESCAPE_SEQUENCES[0x85] = '\\N';
-ESCAPE_SEQUENCES[0xA0] = '\\_';
-ESCAPE_SEQUENCES[0x2028] = '\\L';
-ESCAPE_SEQUENCES[0x2029] = '\\P';
-
-
-function kindOf(object) {
- var kind = typeof object;
-
- if (null === object) {
- return 'null';
- } else if ('number' === kind) {
- return 0 === object % 1 ? 'integer' : 'float';
- } else if ('object' === kind && Array.isArray(object)) {
- return 'array';
- } else {
- return kind;
- }
-}
-
-
-function compileStyleMap(schema, map) {
- var result, keys, index, length, tag, style, type;
-
- if (null === map) {
- return {};
- }
-
- result = {};
- keys = Object.keys(map);
-
- for (index = 0, length = keys.length; index < length; index += 1) {
- tag = keys[index];
- style = String(map[tag]);
-
- if ('!!' === tag.slice(0, 2)) {
- tag = 'tag:yaml.org,2002:' + tag.slice(2);
- }
-
- type = schema.compiledTypeMap[tag];
-
- if (type && type.dumper) {
- if (_hasOwnProperty.call(type.dumper.styleAliases, style)) {
- style = type.dumper.styleAliases[style];
- }
- }
-
- result[tag] = style;
- }
-
- return result;
-}
-
-
-function encodeHex(character) {
- var string, handle, length;
-
- string = character.toString(16).toUpperCase();
-
- if (character <= 0xFF) {
- handle = 'x';
- length = 2;
- } else if (character <= 0xFFFF) {
- handle = 'u';
- length = 4;
- } else if (character <= 0xFFFFFFFF) {
- handle = 'U';
- length = 8;
- } else {
- throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
- }
-
- return '\\' + handle + common.repeat('0', length - string.length) + string;
-}
-
-
-function dump(input, options) {
- options = options || {};
-
- var schema = options['schema'] || DEFAULT_FULL_SCHEMA,
- indent = Math.max(1, (options['indent'] || 2)),
- skipInvalid = options['skipInvalid'] || false,
- flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']),
- styleMap = compileStyleMap(schema, options['styles'] || null),
-
- implicitTypes = schema.compiledImplicit,
- explicitTypes = schema.compiledExplicit,
-
- kind,
- tag,
- result;
-
- function generateNextLine(level) {
- return '\n' + common.repeat(' ', indent * level);
- }
-
- function testImplicitResolving(object) {
- var index, length, type;
-
- for (index = 0, length = implicitTypes.length; index < length; index += 1) {
- type = implicitTypes[index];
-
- if (null !== type.loader &&
- NIL !== type.loader.resolver(object, false)) {
- return true;
- }
- }
-
- return false;
- }
-
- function writeScalar(object) {
- var isQuoted, checkpoint, position, length, character;
-
- result = '';
- isQuoted = false;
- checkpoint = 0;
-
- if (0 === object.length ||
- CHAR_SPACE === object.charCodeAt(0) ||
- CHAR_SPACE === object.charCodeAt(object.length - 1)) {
- isQuoted = true;
- }
-
- for (position = 0, length = object.length; position < length; position += 1) {
- character = object.charCodeAt(position);
-
- if (!isQuoted) {
- if (CHAR_TAB === character ||
- CHAR_LINE_FEED === character ||
- CHAR_CARRIAGE_RETURN === character ||
- CHAR_COMMA === character ||
- CHAR_LEFT_SQUARE_BRACKET === character ||
- CHAR_RIGHT_SQUARE_BRACKET === character ||
- CHAR_LEFT_CURLY_BRACKET === character ||
- CHAR_RIGHT_CURLY_BRACKET === character ||
- CHAR_SHARP === character ||
- CHAR_AMPERSAND === character ||
- CHAR_ASTERISK === character ||
- CHAR_EXCLAMATION === character ||
- CHAR_VERTICAL_LINE === character ||
- CHAR_GREATER_THAN === character ||
- CHAR_SINGLE_QUOTE === character ||
- CHAR_DOUBLE_QUOTE === character ||
- CHAR_PERCENT === character ||
- CHAR_COMMERCIAL_AT === character ||
- CHAR_GRAVE_ACCENT === character ||
- CHAR_QUESTION === character ||
- CHAR_COLON === character ||
- CHAR_MINUS === character) {
- isQuoted = true;
- }
- }
-
- if (ESCAPE_SEQUENCES[character] ||
- !((0x00020 <= character && character <= 0x00007E) ||
- (0x00085 === character) ||
- (0x000A0 <= character && character <= 0x00D7FF) ||
- (0x0E000 <= character && character <= 0x00FFFD) ||
- (0x10000 <= character && character <= 0x10FFFF))) {
- result += object.slice(checkpoint, position);
- result += ESCAPE_SEQUENCES[character] || encodeHex(character);
- checkpoint = position + 1;
- isQuoted = true;
- }
- }
-
- if (checkpoint < position) {
- result += object.slice(checkpoint, position);
- }
-
- if (!isQuoted && testImplicitResolving(result)) {
- isQuoted = true;
- }
-
- if (isQuoted) {
- result = '"' + result + '"';
- }
- }
-
- function writeFlowSequence(level, object) {
- var _result = '',
- _tag = tag,
- index,
- length;
-
- for (index = 0, length = object.length; index < length; index += 1) {
- // Write only valid elements.
- if (writeNode(level, object[index], false, false)) {
- if (0 !== index) {
- _result += ', ';
- }
- _result += result;
- }
- }
-
- tag = _tag;
- result = '[' + _result + ']';
- }
-
- function writeBlockSequence(level, object, compact) {
- var _result = '',
- _tag = tag,
- index,
- length;
-
- for (index = 0, length = object.length; index < length; index += 1) {
- // Write only valid elements.
- if (writeNode(level + 1, object[index], true, true)) {
- if (!compact || 0 !== index) {
- _result += generateNextLine(level);
- }
- _result += '- ' + result;
- }
- }
-
- tag = _tag;
- result = _result || '[]'; // Empty sequence if no valid values.
- }
-
- function writeFlowMapping(level, object) {
- var _result = '',
- _tag = tag,
- objectKeyList = Object.keys(object),
- index,
- length,
- objectKey,
- objectValue,
- pairBuffer;
-
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
- pairBuffer = '';
-
- if (0 !== index) {
- pairBuffer += ', ';
- }
-
- objectKey = objectKeyList[index];
- objectValue = object[objectKey];
-
- if (!writeNode(level, objectKey, false, false)) {
- continue; // Skip this pair because of invalid key;
- }
-
- if (result.length > 1024) {
- pairBuffer += '? ';
- }
-
- pairBuffer += result + ': ';
-
- if (!writeNode(level, objectValue, false, false)) {
- continue; // Skip this pair because of invalid value.
- }
-
- pairBuffer += result;
-
- // Both key and value are valid.
- _result += pairBuffer;
- }
-
- tag = _tag;
- result = '{' + _result + '}';
- }
-
- function writeBlockMapping(level, object, compact) {
- var _result = '',
- _tag = tag,
- objectKeyList = Object.keys(object),
- index,
- length,
- objectKey,
- objectValue,
- explicitPair,
- pairBuffer;
-
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
- pairBuffer = '';
-
- if (!compact || 0 !== index) {
- pairBuffer += generateNextLine(level);
- }
-
- objectKey = objectKeyList[index];
- objectValue = object[objectKey];
-
- if (!writeNode(level + 1, objectKey, true, true)) {
- continue; // Skip this pair because of invalid key.
- }
-
- explicitPair = (null !== tag && '?' !== tag && result.length <= 1024);
-
- if (explicitPair) {
- pairBuffer += '? ';
- }
-
- pairBuffer += result;
-
- if (explicitPair) {
- pairBuffer += generateNextLine(level);
- }
-
- if (!writeNode(level + 1, objectValue, true, explicitPair)) {
- continue; // Skip this pair because of invalid value.
- }
-
- pairBuffer += ': ' + result;
-
- // Both key and value are valid.
- _result += pairBuffer;
- }
-
- tag = _tag;
- result = _result || '{}'; // Empty mapping if no valid pairs.
- }
-
- function detectType(object, explicit) {
- var _result, typeList, index, length, type, style;
-
- typeList = explicit ? explicitTypes : implicitTypes;
- kind = kindOf(object);
-
- for (index = 0, length = typeList.length; index < length; index += 1) {
- type = typeList[index];
-
- if ((null !== type.dumper) &&
- (null === type.dumper.kind || kind === type.dumper.kind) &&
- (null === type.dumper.instanceOf || object instanceof type.dumper.instanceOf) &&
- (null === type.dumper.predicate || type.dumper.predicate(object))) {
- tag = explicit ? type.tag : '?';
-
- if (null !== type.dumper.representer) {
- style = styleMap[type.tag] || type.dumper.defaultStyle;
-
- if ('function' === typeof type.dumper.representer) {
- _result = type.dumper.representer(object, style);
- } else if (_hasOwnProperty.call(type.dumper.representer, style)) {
- _result = type.dumper.representer[style](object, style);
- } else {
- throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
- }
-
- if (NIL !== _result) {
- kind = kindOf(_result);
- result = _result;
- } else {
- if (explicit) {
- throw new YAMLException('cannot represent an object of !<' + type.tag + '> type');
- } else {
- continue;
- }
- }
- }
-
- return true;
- }
- }
-
- return false;
- }
-
- // Serializes `object` and writes it to global `result`.
- // Returns true on success, or false on invalid object.
- //
- function writeNode(level, object, block, compact) {
- tag = null;
- result = object;
-
- if (!detectType(object, false)) {
- detectType(object, true);
- }
-
- if (block) {
- block = (0 > flowLevel || flowLevel > level);
- }
-
- if ((null !== tag && '?' !== tag) || (2 !== indent && level > 0)) {
- compact = false;
- }
-
- if ('object' === kind) {
- if (block && (0 !== Object.keys(result).length)) {
- writeBlockMapping(level, result, compact);
- } else {
- writeFlowMapping(level, result);
- }
- } else if ('array' === kind) {
- if (block && (0 !== result.length)) {
- writeBlockSequence(level, result, compact);
- } else {
- writeFlowSequence(level, result);
- }
- } else if ('string' === kind) {
- if ('?' !== tag) {
- writeScalar(result);
- }
- } else if (skipInvalid) {
- return false;
- } else {
- throw new YAMLException('unacceptabe kind of an object to dump (' + kind + ')');
- }
-
- if (null !== tag && '?' !== tag) {
- result = '!<' + tag + '> ' + result;
- }
- return true;
- }
-
- if (writeNode(0, input, true, true)) {
- return result + '\n';
- } else {
- return '';
- }
-}
-
-
-function safeDump(input, options) {
- return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
-}
-
-
-module.exports.dump = dump;
-module.exports.safeDump = safeDump;
diff --git a/node_modules/js-yaml/lib/js-yaml/exception.js b/node_modules/js-yaml/lib/js-yaml/exception.js
deleted file mode 100644
index 479ba88..0000000
--- a/node_modules/js-yaml/lib/js-yaml/exception.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-
-function YAMLException(reason, mark) {
- this.name = 'YAMLException';
- this.reason = reason;
- this.mark = mark;
- this.message = this.toString(false);
-}
-
-
-YAMLException.prototype.toString = function toString(compact) {
- var result;
-
- result = 'JS-YAML: ' + (this.reason || '(unknown reason)');
-
- if (!compact && this.mark) {
- result += ' ' + this.mark.toString();
- }
-
- return result;
-};
-
-
-module.exports = YAMLException;
diff --git a/node_modules/js-yaml/lib/js-yaml/loader.js b/node_modules/js-yaml/lib/js-yaml/loader.js
deleted file mode 100644
index fa2e3c7..0000000
--- a/node_modules/js-yaml/lib/js-yaml/loader.js
+++ /dev/null
@@ -1,1549 +0,0 @@
-'use strict';
-
-
-var common = require('./common');
-var YAMLException = require('./exception');
-var Mark = require('./mark');
-var NIL = common.NIL;
-var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
-var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
-
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-
-
-var KIND_STRING = 'string';
-var KIND_ARRAY = 'array';
-var KIND_OBJECT = 'object';
-
-
-var CONTEXT_FLOW_IN = 1;
-var CONTEXT_FLOW_OUT = 2;
-var CONTEXT_BLOCK_IN = 3;
-var CONTEXT_BLOCK_OUT = 4;
-
-
-var CHOMPING_CLIP = 1;
-var CHOMPING_STRIP = 2;
-var CHOMPING_KEEP = 3;
-
-
-var CHAR_TAB = 0x09; /* Tab */
-var CHAR_LINE_FEED = 0x0A; /* LF */
-var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
-var CHAR_SPACE = 0x20; /* Space */
-var CHAR_EXCLAMATION = 0x21; /* ! */
-var CHAR_DOUBLE_QUOTE = 0x22; /* " */
-var CHAR_SHARP = 0x23; /* # */
-var CHAR_PERCENT = 0x25; /* % */
-var CHAR_AMPERSAND = 0x26; /* & */
-var CHAR_SINGLE_QUOTE = 0x27; /* ' */
-var CHAR_ASTERISK = 0x2A; /* * */
-var CHAR_PLUS = 0x2B; /* + */
-var CHAR_COMMA = 0x2C; /* , */
-var CHAR_MINUS = 0x2D; /* - */
-var CHAR_DOT = 0x2E; /* . */
-var CHAR_SLASH = 0x2F; /* / */
-var CHAR_DIGIT_ZERO = 0x30; /* 0 */
-var CHAR_DIGIT_ONE = 0x31; /* 1 */
-var CHAR_DIGIT_NINE = 0x39; /* 9 */
-var CHAR_COLON = 0x3A; /* : */
-var CHAR_LESS_THAN = 0x3C; /* < */
-var CHAR_GREATER_THAN = 0x3E; /* > */
-var CHAR_QUESTION = 0x3F; /* ? */
-var CHAR_COMMERCIAL_AT = 0x40; /* @ */
-var CHAR_CAPITAL_A = 0x41; /* A */
-var CHAR_CAPITAL_F = 0x46; /* F */
-var CHAR_CAPITAL_L = 0x4C; /* L */
-var CHAR_CAPITAL_N = 0x4E; /* N */
-var CHAR_CAPITAL_P = 0x50; /* P */
-var CHAR_CAPITAL_U = 0x55; /* U */
-var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
-var CHAR_BACKSLASH = 0x5C; /* \ */
-var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
-var CHAR_UNDERSCORE = 0x5F; /* _ */
-var CHAR_GRAVE_ACCENT = 0x60; /* ` */
-var CHAR_SMALL_A = 0x61; /* a */
-var CHAR_SMALL_B = 0x62; /* b */
-var CHAR_SMALL_E = 0x65; /* e */
-var CHAR_SMALL_F = 0x66; /* f */
-var CHAR_SMALL_N = 0x6E; /* n */
-var CHAR_SMALL_R = 0x72; /* r */
-var CHAR_SMALL_T = 0x74; /* t */
-var CHAR_SMALL_U = 0x75; /* u */
-var CHAR_SMALL_V = 0x76; /* v */
-var CHAR_SMALL_X = 0x78; /* x */
-var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
-var CHAR_VERTICAL_LINE = 0x7C; /* | */
-var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
-
-
-var SIMPLE_ESCAPE_SEQUENCES = {};
-
-SIMPLE_ESCAPE_SEQUENCES[CHAR_DIGIT_ZERO] = '\x00';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_A] = '\x07';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_B] = '\x08';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_T] = '\x09';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_TAB] = '\x09';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_N] = '\x0A';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_V] = '\x0B';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_F] = '\x0C';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_R] = '\x0D';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SMALL_E] = '\x1B';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SPACE] = ' ';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_DOUBLE_QUOTE] = '\x22';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_SLASH] = '/';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_BACKSLASH] = '\x5C';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_CAPITAL_N] = '\x85';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_UNDERSCORE] = '\xA0';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_CAPITAL_L] = '\u2028';
-SIMPLE_ESCAPE_SEQUENCES[CHAR_CAPITAL_P] = '\u2029';
-
-
-var HEXADECIMAL_ESCAPE_SEQUENCES = {};
-
-HEXADECIMAL_ESCAPE_SEQUENCES[CHAR_SMALL_X] = 2;
-HEXADECIMAL_ESCAPE_SEQUENCES[CHAR_SMALL_U] = 4;
-HEXADECIMAL_ESCAPE_SEQUENCES[CHAR_CAPITAL_U] = 8;
-
-
-var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uD800-\uDFFF\uFFFE\uFFFF]/;
-var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
-var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
-var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
-var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
-
-
-function loadAll(input, output, options) {
- options = options || {};
-
- var filename = options['filename'] || null,
- schema = options['schema'] || DEFAULT_FULL_SCHEMA,
- resolve = options['resolve'] || true,
- validate = options['validate'] || true,
- strict = options['strict'] || false,
- legacy = options['legacy'] || false,
-
- directiveHandlers = {},
- implicitTypes = schema.compiledImplicit,
- typeMap = schema.compiledTypeMap,
-
- length = input.length,
- position = 0,
- line = 0,
- lineStart = 0,
- lineIndent = 0,
- character = input.charCodeAt(position),
-
- version,
- checkLineBreaks,
- tagMap,
- anchorMap,
- tag,
- anchor,
- kind,
- result;
-
- function generateError(message) {
- return new YAMLException(
- message,
- new Mark(filename, input, position, line, (position - lineStart)));
- }
-
- function throwError(message) {
- throw generateError(message);
- }
-
- function throwWarning(message) {
- var error = generateError(message);
-
- if (strict) {
- throw error;
- } else {
- console.warn(error.toString());
- }
- }
-
- directiveHandlers['YAML'] = function handleYamlDirective(name, args) {
- var match, major, minor;
-
- if (null !== version) {
- throwError('duplication of %YAML directive');
- }
-
- if (1 !== args.length) {
- throwError('YAML directive accepts exactly one argument');
- }
-
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
-
- if (null === match) {
- throwError('ill-formed argument of the YAML directive');
- }
-
- major = parseInt(match[1], 10);
- minor = parseInt(match[2], 10);
-
- if (1 !== major) {
- throwError('unacceptable YAML version of the document');
- }
-
- version = args[0];
- checkLineBreaks = (minor < 2);
-
- if (1 !== minor && 2 !== minor) {
- throwWarning('unsupported YAML version of the document');
- }
- };
-
- directiveHandlers['TAG'] = function handleTagDirective(name, args) {
- var handle, prefix;
-
- if (2 !== args.length) {
- throwError('TAG directive accepts exactly two arguments');
- }
-
- handle = args[0];
- prefix = args[1];
-
- if (!PATTERN_TAG_HANDLE.test(handle)) {
- throwError('ill-formed tag handle (first argument) of the TAG directive');
- }
-
- if (_hasOwnProperty.call(tagMap, handle)) {
- throwError('there is a previously declared suffix for "' + handle + '" tag handle');
- }
-
- if (!PATTERN_TAG_URI.test(prefix)) {
- throwError('ill-formed tag prefix (second argument) of the TAG directive');
- }
-
- tagMap[handle] = prefix;
- };
-
- function captureSegment(start, end, checkJson) {
- var _position, _length, _character, _result;
-
- if (start < end) {
- _result = input.slice(start, end);
-
- if (checkJson && validate) {
- for (_position = 0, _length = _result.length;
- _position < _length;
- _position += 1) {
- _character = _result.charCodeAt(_position);
- if (!(0x09 === _character ||
- 0x20 <= _character && _character <= 0x10FFFF)) {
- throwError('expected valid JSON character');
- }
- }
- }
-
- result += _result;
- }
- }
-
- function mergeMappings(destination, source) {
- var sourceKeys, key, index, quantity;
-
- if (!common.isObject(source)) {
- throwError('cannot merge mappings; the provided source object is unacceptable');
- }
-
- sourceKeys = Object.keys(source);
-
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
- key = sourceKeys[index];
-
- if (!_hasOwnProperty.call(destination, key)) {
- destination[key] = source[key];
- }
- }
- }
-
- function storeMappingPair(_result, keyTag, keyNode, valueNode) {
- var index, quantity;
-
- keyNode = String(keyNode);
-
- if (null === _result) {
- _result = {};
- }
-
- if ('tag:yaml.org,2002:merge' === keyTag) {
- if (Array.isArray(valueNode)) {
- for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
- mergeMappings(_result, valueNode[index]);
- }
- } else {
- mergeMappings(_result, valueNode);
- }
- } else {
- _result[keyNode] = valueNode;
- }
-
- return _result;
- }
-
- function readLineBreak() {
- if (CHAR_LINE_FEED === character) {
- position += 1;
- } else if (CHAR_CARRIAGE_RETURN === character) {
- if (CHAR_LINE_FEED === input.charCodeAt(position + 1)) {
- position += 2;
- } else {
- position += 1;
- }
- } else {
- throwError('a line break is expected');
- }
-
- line += 1;
- lineStart = position;
- character = input.charCodeAt(position);
- }
-
- function skipSeparationSpace(allowComments, checkIndent) {
- var lineBreaks = 0;
-
- while (position < length) {
- while (CHAR_SPACE === character || CHAR_TAB === character) {
- character = input.charCodeAt(++position);
- }
-
- if (allowComments && CHAR_SHARP === character) {
- do { character = input.charCodeAt(++position); }
- while (position < length &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character);
- }
-
- if (CHAR_LINE_FEED === character || CHAR_CARRIAGE_RETURN === character) {
- readLineBreak();
- lineBreaks += 1;
- lineIndent = 0;
-
- while (CHAR_SPACE === character) {
- lineIndent += 1;
- character = input.charCodeAt(++position);
- }
-
- if (lineIndent < checkIndent) {
- throwWarning('deficient indentation');
- }
- } else {
- break;
- }
- }
-
- return lineBreaks;
- }
-
- function testDocumentSeparator() {
- var _position, _character;
-
- if (position === lineStart &&
- (CHAR_MINUS === character || CHAR_DOT === character) &&
- input.charCodeAt(position + 1) === character &&
- input.charCodeAt(position + 2) === character) {
-
- _position = position + 3;
- _character = input.charCodeAt(_position);
-
- if (_position >= length ||
- CHAR_SPACE === _character ||
- CHAR_TAB === _character ||
- CHAR_LINE_FEED === _character ||
- CHAR_CARRIAGE_RETURN === _character) {
- return true;
- }
- }
-
- return false;
- }
-
- function writeFoldedLines(count) {
- if (1 === count) {
- result += ' ';
- } else if (count > 1) {
- result += common.repeat('\n', count - 1);
- }
- }
-
- function readPlainScalar(nodeIndent, withinFlowCollection) {
- var preceding,
- following,
- captureStart,
- captureEnd,
- hasPendingContent,
- _line,
- _lineStart,
- _lineIndent,
- _kind = kind,
- _result = result;
-
- if (CHAR_SPACE === character ||
- CHAR_TAB === character ||
- CHAR_LINE_FEED === character ||
- CHAR_CARRIAGE_RETURN === character ||
- CHAR_COMMA === character ||
- CHAR_LEFT_SQUARE_BRACKET === character ||
- CHAR_RIGHT_SQUARE_BRACKET === character ||
- CHAR_LEFT_CURLY_BRACKET === character ||
- CHAR_RIGHT_CURLY_BRACKET === character ||
- CHAR_SHARP === character ||
- CHAR_AMPERSAND === character ||
- CHAR_ASTERISK === character ||
- CHAR_EXCLAMATION === character ||
- CHAR_VERTICAL_LINE === character ||
- CHAR_GREATER_THAN === character ||
- CHAR_SINGLE_QUOTE === character ||
- CHAR_DOUBLE_QUOTE === character ||
- CHAR_PERCENT === character ||
- CHAR_COMMERCIAL_AT === character ||
- CHAR_GRAVE_ACCENT === character) {
- return false;
- }
-
- if (CHAR_QUESTION === character ||
- CHAR_MINUS === character) {
- following = input.charCodeAt(position + 1);
-
- if (CHAR_SPACE === following ||
- CHAR_TAB === following ||
- CHAR_LINE_FEED === following ||
- CHAR_CARRIAGE_RETURN === following ||
- withinFlowCollection &&
- (CHAR_COMMA === following ||
- CHAR_LEFT_SQUARE_BRACKET === following ||
- CHAR_RIGHT_SQUARE_BRACKET === following ||
- CHAR_LEFT_CURLY_BRACKET === following ||
- CHAR_RIGHT_CURLY_BRACKET === following)) {
- return false;
- }
- }
-
- kind = KIND_STRING;
- result = '';
- captureStart = captureEnd = position;
- hasPendingContent = false;
-
- while (position < length) {
- if (CHAR_COLON === character) {
- following = input.charCodeAt(position + 1);
-
- if (CHAR_SPACE === following ||
- CHAR_TAB === following ||
- CHAR_LINE_FEED === following ||
- CHAR_CARRIAGE_RETURN === following ||
- withinFlowCollection &&
- (CHAR_COMMA === following ||
- CHAR_LEFT_SQUARE_BRACKET === following ||
- CHAR_RIGHT_SQUARE_BRACKET === following ||
- CHAR_LEFT_CURLY_BRACKET === following ||
- CHAR_RIGHT_CURLY_BRACKET === following)) {
- break;
- }
-
- } else if (CHAR_SHARP === character) {
- preceding = input.charCodeAt(position - 1);
-
- if (CHAR_SPACE === preceding ||
- CHAR_TAB === preceding ||
- CHAR_LINE_FEED === preceding ||
- CHAR_CARRIAGE_RETURN === preceding) {
- break;
- }
-
- } else if ((position === lineStart && testDocumentSeparator()) ||
- withinFlowCollection &&
- (CHAR_COMMA === character ||
- CHAR_LEFT_SQUARE_BRACKET === character ||
- CHAR_RIGHT_SQUARE_BRACKET === character ||
- CHAR_LEFT_CURLY_BRACKET === character ||
- CHAR_RIGHT_CURLY_BRACKET === character)) {
- break;
-
- } else if (CHAR_LINE_FEED === character ||
- CHAR_CARRIAGE_RETURN === character) {
- _line = line;
- _lineStart = lineStart;
- _lineIndent = lineIndent;
- skipSeparationSpace(false, -1);
-
- if (lineIndent >= nodeIndent) {
- hasPendingContent = true;
- continue;
- } else {
- position = captureEnd;
- line = _line;
- lineStart = _lineStart;
- lineIndent = _lineIndent;
- character = input.charCodeAt(position);
- break;
- }
- }
-
- if (hasPendingContent) {
- captureSegment(captureStart, captureEnd, false);
- writeFoldedLines(line - _line);
- captureStart = captureEnd = position;
- hasPendingContent = false;
- }
-
- if (CHAR_SPACE !== character && CHAR_TAB !== character) {
- captureEnd = position + 1;
- }
-
- character = input.charCodeAt(++position);
- }
-
- captureSegment(captureStart, captureEnd, false);
-
- if (result) {
- return true;
- } else {
- kind = _kind;
- result = _result;
- return false;
- }
- }
-
- function readSingleQuotedScalar(nodeIndent) {
- var captureStart, captureEnd;
-
- if (CHAR_SINGLE_QUOTE !== character) {
- return false;
- }
-
- kind = KIND_STRING;
- result = '';
- character = input.charCodeAt(++position);
- captureStart = captureEnd = position;
-
- while (position < length) {
- if (CHAR_SINGLE_QUOTE === character) {
- captureSegment(captureStart, position, true);
- character = input.charCodeAt(++position);
-
- if (CHAR_SINGLE_QUOTE === character) {
- captureStart = captureEnd = position;
- character = input.charCodeAt(++position);
- } else {
- return true;
- }
-
- } else if (CHAR_LINE_FEED === character ||
- CHAR_CARRIAGE_RETURN === character) {
- captureSegment(captureStart, captureEnd, true);
- writeFoldedLines(skipSeparationSpace(false, nodeIndent));
- captureStart = captureEnd = position;
- character = input.charCodeAt(position);
-
- } else if (position === lineStart && testDocumentSeparator()) {
- throwError('unexpected end of the document within a single quoted scalar');
-
- } else {
- character = input.charCodeAt(++position);
- captureEnd = position;
- }
- }
-
- throwError('unexpected end of the stream within a single quoted scalar');
- }
-
- function readDoubleQuotedScalar(nodeIndent) {
- var captureStart,
- captureEnd,
- hexLength,
- hexIndex,
- hexOffset,
- hexResult;
-
- if (CHAR_DOUBLE_QUOTE !== character) {
- return false;
- }
-
- kind = KIND_STRING;
- result = '';
- character = input.charCodeAt(++position);
- captureStart = captureEnd = position;
-
- while (position < length) {
- if (CHAR_DOUBLE_QUOTE === character) {
- captureSegment(captureStart, position, true);
- character = input.charCodeAt(++position);
- return true;
-
- } else if (CHAR_BACKSLASH === character) {
- captureSegment(captureStart, position, true);
- character = input.charCodeAt(++position);
-
- if (CHAR_LINE_FEED === character ||
- CHAR_CARRIAGE_RETURN === character) {
- skipSeparationSpace(false, nodeIndent);
-
- } else if (SIMPLE_ESCAPE_SEQUENCES[character]) {
- result += SIMPLE_ESCAPE_SEQUENCES[character];
- character = input.charCodeAt(++position);
-
- } else if (HEXADECIMAL_ESCAPE_SEQUENCES[character]) {
- hexLength = HEXADECIMAL_ESCAPE_SEQUENCES[character];
- hexResult = 0;
-
- for (hexIndex = 1; hexIndex <= hexLength; hexIndex += 1) {
- hexOffset = (hexLength - hexIndex) * 4;
- character = input.charCodeAt(++position);
-
- if (CHAR_DIGIT_ZERO <= character && character <= CHAR_DIGIT_NINE) {
- hexResult |= (character - CHAR_DIGIT_ZERO) << hexOffset;
-
- } else if (CHAR_CAPITAL_A <= character && character <= CHAR_CAPITAL_F) {
- hexResult |= (character - CHAR_CAPITAL_A + 10) << hexOffset;
-
- } else if (CHAR_SMALL_A <= character && character <= CHAR_SMALL_F) {
- hexResult |= (character - CHAR_SMALL_A + 10) << hexOffset;
-
- } else {
- throwError('expected hexadecimal character');
- }
- }
-
- result += String.fromCharCode(hexResult);
- character = input.charCodeAt(++position);
-
- } else {
- throwError('unknown escape sequence');
- }
-
- captureStart = captureEnd = position;
-
- } else if (CHAR_LINE_FEED === character ||
- CHAR_CARRIAGE_RETURN === character) {
- captureSegment(captureStart, captureEnd, true);
- writeFoldedLines(skipSeparationSpace(false, nodeIndent));
- captureStart = captureEnd = position;
- character = input.charCodeAt(position);
-
- } else if (position === lineStart && testDocumentSeparator()) {
- throwError('unexpected end of the document within a double quoted scalar');
-
- } else {
- character = input.charCodeAt(++position);
- captureEnd = position;
- }
- }
-
- throwError('unexpected end of the stream within a double quoted scalar');
- }
-
- function readFlowCollection(nodeIndent) {
- var readNext = true,
- _line,
- _tag = tag,
- _result,
- following,
- terminator,
- isPair,
- isExplicitPair,
- isMapping,
- keyNode,
- keyTag,
- valueNode;
-
- switch (character) {
- case CHAR_LEFT_SQUARE_BRACKET:
- terminator = CHAR_RIGHT_SQUARE_BRACKET;
- isMapping = false;
- _result = [];
- break;
-
- case CHAR_LEFT_CURLY_BRACKET:
- terminator = CHAR_RIGHT_CURLY_BRACKET;
- isMapping = true;
- _result = {};
- break;
-
- default:
- return false;
- }
-
- if (null !== anchor) {
- anchorMap[anchor] = _result;
- }
-
- character = input.charCodeAt(++position);
-
- while (position < length) {
- skipSeparationSpace(true, nodeIndent);
-
- if (character === terminator) {
- character = input.charCodeAt(++position);
- tag = _tag;
- kind = isMapping ? KIND_OBJECT : KIND_ARRAY;
- result = _result;
- return true;
- } else if (!readNext) {
- throwError('missed comma between flow collection entries');
- }
-
- keyTag = keyNode = valueNode = null;
- isPair = isExplicitPair = false;
-
- if (CHAR_QUESTION === character) {
- following = input.charCodeAt(position + 1);
-
- if (CHAR_SPACE === following ||
- CHAR_TAB === following ||
- CHAR_LINE_FEED === following ||
- CHAR_CARRIAGE_RETURN === following) {
- isPair = isExplicitPair = true;
- position += 1;
- character = following;
- skipSeparationSpace(true, nodeIndent);
- }
- }
-
- _line = line;
- composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
- keyTag = tag;
- keyNode = result;
-
- if ((isExplicitPair || line === _line) && CHAR_COLON === character) {
- isPair = true;
- character = input.charCodeAt(++position);
- skipSeparationSpace(true, nodeIndent);
- composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
- valueNode = result;
- }
-
- if (isMapping) {
- storeMappingPair(_result, keyTag, keyNode, valueNode);
- } else if (isPair) {
- _result.push(storeMappingPair(null, keyTag, keyNode, valueNode));
- } else {
- _result.push(keyNode);
- }
-
- skipSeparationSpace(true, nodeIndent);
-
- if (CHAR_COMMA === character) {
- readNext = true;
- character = input.charCodeAt(++position);
- } else {
- readNext = false;
- }
- }
-
- throwError('unexpected end of the stream within a flow collection');
- }
-
- function readBlockScalar(nodeIndent) {
- var captureStart,
- folding,
- chomping = CHOMPING_CLIP,
- detectedIndent = false,
- textIndent = nodeIndent,
- emptyLines = -1;
-
- switch (character) {
- case CHAR_VERTICAL_LINE:
- folding = false;
- break;
-
- case CHAR_GREATER_THAN:
- folding = true;
- break;
-
- default:
- return false;
- }
-
- kind = KIND_STRING;
- result = '';
-
- while (position < length) {
- character = input.charCodeAt(++position);
-
- if (CHAR_PLUS === character || CHAR_MINUS === character) {
- if (CHOMPING_CLIP === chomping) {
- chomping = (CHAR_PLUS === character) ? CHOMPING_KEEP : CHOMPING_STRIP;
- } else {
- throwError('repeat of a chomping mode identifier');
- }
-
- } else if (CHAR_DIGIT_ZERO <= character && character <= CHAR_DIGIT_NINE) {
- if (CHAR_DIGIT_ZERO === character) {
- throwError('bad explicit indentation width of a block scalar; it cannot be less than one');
- } else if (!detectedIndent) {
- textIndent = nodeIndent + (character - CHAR_DIGIT_ONE);
- detectedIndent = true;
- } else {
- throwError('repeat of an indentation width identifier');
- }
-
- } else {
- break;
- }
- }
-
- if (CHAR_SPACE === character || CHAR_TAB === character) {
- do { character = input.charCodeAt(++position); }
- while (CHAR_SPACE === character || CHAR_TAB === character);
-
- if (CHAR_SHARP === character) {
- do { character = input.charCodeAt(++position); }
- while (position < length &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character);
- }
- }
-
- while (position < length) {
- readLineBreak();
- lineIndent = 0;
-
- while ((!detectedIndent || lineIndent < textIndent) &&
- (CHAR_SPACE === character)) {
- lineIndent += 1;
- character = input.charCodeAt(++position);
- }
-
- if (!detectedIndent && lineIndent > textIndent) {
- textIndent = lineIndent;
- }
-
- if (CHAR_LINE_FEED === character || CHAR_CARRIAGE_RETURN === character) {
- emptyLines += 1;
- continue;
- }
-
- // End of the scalar. Perform the chomping.
- if (lineIndent < textIndent) {
- if (CHOMPING_KEEP === chomping) {
- result += common.repeat('\n', emptyLines + 1);
- } else if (CHOMPING_CLIP === chomping) {
- result += '\n';
- }
- break;
- }
-
- detectedIndent = true;
-
- if (folding) {
- if (CHAR_SPACE === character || CHAR_TAB === character) {
- result += common.repeat('\n', emptyLines + 1);
- emptyLines = 1;
- } else if (0 === emptyLines) {
- result += ' ';
- emptyLines = 0;
- } else {
- result += common.repeat('\n', emptyLines);
- emptyLines = 0;
- }
- } else {
- result += common.repeat('\n', emptyLines + 1);
- emptyLines = 0;
- }
-
- captureStart = position;
-
- do { character = input.charCodeAt(++position); }
- while (position < length &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character);
-
- captureSegment(captureStart, position, false);
- }
-
- return true;
- }
-
- function readBlockSequence(nodeIndent) {
- var _line,
- _tag = tag,
- _result = [],
- following,
- detected = false;
-
- if (null !== anchor) {
- anchorMap[anchor] = _result;
- }
-
- while (position < length) {
- if (CHAR_MINUS !== character) {
- break;
- }
-
- following = input.charCodeAt(position + 1);
-
- if (CHAR_SPACE !== following &&
- CHAR_TAB !== following &&
- CHAR_LINE_FEED !== following &&
- CHAR_CARRIAGE_RETURN !== following) {
- break;
- }
-
- detected = true;
- position += 1;
- character = following;
-
- if (skipSeparationSpace(true, -1)) {
- if (lineIndent <= nodeIndent) {
- _result.push(null);
- continue;
- }
- }
-
- _line = line;
- composeNode(nodeIndent, CONTEXT_BLOCK_IN, false, true);
- _result.push(result);
- skipSeparationSpace(true, -1);
-
- if ((line === _line || lineIndent > nodeIndent) && position < length) {
- throwError('bad indentation of a sequence entry');
- } else if (lineIndent < nodeIndent) {
- break;
- }
- }
-
- if (detected) {
- tag = _tag;
- kind = KIND_ARRAY;
- result = _result;
- return true;
- } else {
- return false;
- }
- }
-
- function readBlockMapping(nodeIndent) {
- var following,
- allowCompact,
- _line,
- _tag = tag,
- _result = {},
- keyTag = null,
- keyNode = null,
- valueNode = null,
- atExplicitKey = false,
- detected = false;
-
- if (null !== anchor) {
- anchorMap[anchor] = _result;
- }
-
- while (position < length) {
- following = input.charCodeAt(position + 1);
- _line = line; // Save the current line.
-
- if ((CHAR_QUESTION === character ||
- CHAR_COLON === character) &&
- (CHAR_SPACE === following ||
- CHAR_TAB === following ||
- CHAR_LINE_FEED === following ||
- CHAR_CARRIAGE_RETURN === following)) {
-
- if (CHAR_QUESTION === character) {
- if (atExplicitKey) {
- storeMappingPair(_result, keyTag, keyNode, null);
- keyTag = keyNode = valueNode = null;
- }
-
- detected = true;
- atExplicitKey = true;
- allowCompact = true;
-
- } else if (atExplicitKey) {
- // i.e. CHAR_COLON === character after the explicit key.
- atExplicitKey = false;
- allowCompact = true;
-
- } else {
- throwError('incomplete explicit mapping pair; a key node is missed');
- }
-
- position += 1;
- character = following;
-
- } else if (composeNode(nodeIndent, CONTEXT_FLOW_OUT, false, true)) {
- if (line === _line) {
- // TODO: Remove this cycle when the flow readers will consume
- // trailing whitespaces like the block readers.
- while (CHAR_SPACE === character ||
- CHAR_TAB === character) {
- character = input.charCodeAt(++position);
- }
-
- if (CHAR_COLON === character) {
- character = input.charCodeAt(++position);
-
- if (CHAR_SPACE !== character &&
- CHAR_TAB !== character &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character) {
- throwError('a whitespace character is expected after the key-value separator within a block mapping');
- }
-
- if (atExplicitKey) {
- storeMappingPair(_result, keyTag, keyNode, null);
- keyTag = keyNode = valueNode = null;
- }
-
- detected = true;
- atExplicitKey = false;
- allowCompact = false;
- keyTag = tag;
- keyNode = result;
-
- } else if (detected) {
- throwError('can not read an implicit mapping pair; a colon is missed');
-
- } else {
- tag = _tag;
- return true; // Keep the result of `composeNode`.
- }
-
- } else if (detected) {
- throwError('can not read a block mapping entry; a multiline key may not be an implicit key');
-
- } else {
- tag = _tag;
- return true; // Keep the result of `composeNode`.
- }
-
- } else {
- break;
- }
-
- if (line === _line || lineIndent > nodeIndent) {
- if (composeNode(nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
- if (atExplicitKey) {
- keyNode = result;
- } else {
- valueNode = result;
- }
- }
-
- if (!atExplicitKey) {
- storeMappingPair(_result, keyTag, keyNode, valueNode);
- keyTag = keyNode = valueNode = null;
- }
-
- // TODO: It is needed only for flow node readers. It should be removed
- // when the flow readers will consume trailing whitespaces as well as
- // the block readers.
- skipSeparationSpace(true, -1);
- }
-
- if (lineIndent > nodeIndent && position < length) {
- throwError('bad indentation of a mapping entry');
- } else if (lineIndent < nodeIndent) {
- break;
- }
- }
-
- if (atExplicitKey) {
- storeMappingPair(_result, keyTag, keyNode, null);
- }
-
- if (detected) {
- tag = _tag;
- kind = KIND_OBJECT;
- result = _result;
- }
-
- return detected;
- }
-
- function readTagProperty() {
- var _position,
- isVerbatim = false,
- isNamed = false,
- tagHandle,
- tagName;
-
- if (CHAR_EXCLAMATION !== character) {
- return false;
- }
-
- if (null !== tag) {
- throwError('duplication of a tag property');
- }
-
- character = input.charCodeAt(++position);
-
- if (CHAR_LESS_THAN === character) {
- isVerbatim = true;
- character = input.charCodeAt(++position);
-
- } else if (CHAR_EXCLAMATION === character) {
- isNamed = true;
- tagHandle = '!!';
- character = input.charCodeAt(++position);
-
- } else {
- tagHandle = '!';
- }
-
- _position = position;
-
- if (isVerbatim) {
- do { character = input.charCodeAt(++position); }
- while (position < length && CHAR_GREATER_THAN !== character);
-
- if (position < length) {
- tagName = input.slice(_position, position);
- character = input.charCodeAt(++position);
- } else {
- throwError('unexpected end of the stream within a verbatim tag');
- }
- } else {
- while (position < length &&
- CHAR_SPACE !== character &&
- CHAR_TAB !== character &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character) {
-
- if (CHAR_EXCLAMATION === character) {
- if (!isNamed) {
- tagHandle = input.slice(_position - 1, position + 1);
-
- if (validate && !PATTERN_TAG_HANDLE.test(tagHandle)) {
- throwError('named tag handle cannot contain such characters');
- }
-
- isNamed = true;
- _position = position + 1;
- } else {
- throwError('tag suffix cannot contain exclamation marks');
- }
- }
-
- character = input.charCodeAt(++position);
- }
-
- tagName = input.slice(_position, position);
-
- if (validate && PATTERN_FLOW_INDICATORS.test(tagName)) {
- throwError('tag suffix cannot contain flow indicator characters');
- }
- }
-
- if (validate && tagName && !PATTERN_TAG_URI.test(tagName)) {
- throwError('tag name cannot contain such characters: ' + tagName);
- }
-
- if (isVerbatim) {
- tag = tagName;
-
- } else if (_hasOwnProperty.call(tagMap, tagHandle)) {
- tag = tagMap[tagHandle] + tagName;
-
- } else if ('!' === tagHandle) {
- tag = '!' + tagName;
-
- } else if ('!!' === tagHandle) {
- tag = 'tag:yaml.org,2002:' + tagName;
-
- } else {
- throwError('undeclared tag handle "' + tagHandle + '"');
- }
-
- return true;
- }
-
- function readAnchorProperty() {
- var _position;
-
- if (CHAR_AMPERSAND !== character) {
- return false;
- }
-
- if (null !== anchor) {
- throwError('duplication of an anchor property');
- }
-
- character = input.charCodeAt(++position);
- _position = position;
-
- while (position < length &&
- CHAR_SPACE !== character &&
- CHAR_TAB !== character &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character &&
- CHAR_COMMA !== character &&
- CHAR_LEFT_SQUARE_BRACKET !== character &&
- CHAR_RIGHT_SQUARE_BRACKET !== character &&
- CHAR_LEFT_CURLY_BRACKET !== character &&
- CHAR_RIGHT_CURLY_BRACKET !== character) {
- character = input.charCodeAt(++position);
- }
-
- if (position === _position) {
- throwError('name of an anchor node must contain at least one character');
- }
-
- anchor = input.slice(_position, position);
- return true;
- }
-
- function readAlias() {
- var _position, alias;
-
- if (CHAR_ASTERISK !== character) {
- return false;
- }
-
- character = input.charCodeAt(++position);
- _position = position;
-
- while (position < length &&
- CHAR_SPACE !== character &&
- CHAR_TAB !== character &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character &&
- CHAR_COMMA !== character &&
- CHAR_LEFT_SQUARE_BRACKET !== character &&
- CHAR_RIGHT_SQUARE_BRACKET !== character &&
- CHAR_LEFT_CURLY_BRACKET !== character &&
- CHAR_RIGHT_CURLY_BRACKET !== character) {
- character = input.charCodeAt(++position);
- }
-
- if (position === _position) {
- throwError('name of an alias node must contain at least one character');
- }
-
- alias = input.slice(_position, position);
-
- if (!anchorMap.hasOwnProperty(alias)) {
- throwError('unidentified alias "' + alias + '"');
- }
-
- result = anchorMap[alias];
- skipSeparationSpace(true, -1);
- return true;
- }
-
- function composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
- var allowBlockStyles,
- allowBlockScalars,
- allowBlockCollections,
- atNewLine = false,
- isIndented = true,
- hasContent = false,
- typeIndex,
- typeQuantity,
- type,
- typeLoader,
- flowIndent,
- blockIndent,
- _result;
-
- tag = null;
- anchor = null;
- kind = null;
- result = null;
-
- allowBlockStyles = allowBlockScalars = allowBlockCollections =
- CONTEXT_BLOCK_OUT === nodeContext ||
- CONTEXT_BLOCK_IN === nodeContext;
-
- if (allowToSeek) {
- if (skipSeparationSpace(true, -1)) {
- atNewLine = true;
-
- if (lineIndent === parentIndent) {
- isIndented = false;
-
- } else if (lineIndent > parentIndent) {
- isIndented = true;
-
- } else {
- return false;
- }
- }
- }
-
- if (isIndented) {
- while (readTagProperty() || readAnchorProperty()) {
- if (skipSeparationSpace(true, -1)) {
- atNewLine = true;
-
- if (lineIndent > parentIndent) {
- isIndented = true;
- allowBlockCollections = allowBlockStyles;
-
- } else if (lineIndent === parentIndent) {
- isIndented = false;
- allowBlockCollections = allowBlockStyles;
-
- } else {
- return true;
- }
- } else {
- allowBlockCollections = false;
- }
- }
- }
-
- if (allowBlockCollections) {
- allowBlockCollections = atNewLine || allowCompact;
- }
-
- if (isIndented || CONTEXT_BLOCK_OUT === nodeContext) {
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
- flowIndent = parentIndent;
- } else {
- flowIndent = parentIndent + 1;
- }
-
- blockIndent = position - lineStart;
-
- if (isIndented) {
- if (allowBlockCollections &&
- (readBlockSequence(blockIndent) ||
- readBlockMapping(blockIndent)) ||
- readFlowCollection(flowIndent)) {
- hasContent = true;
- } else {
- if ((allowBlockScalars && readBlockScalar(flowIndent)) ||
- readSingleQuotedScalar(flowIndent) ||
- readDoubleQuotedScalar(flowIndent)) {
- hasContent = true;
-
- } else if (readAlias()) {
- hasContent = true;
-
- if (null !== tag || null !== anchor) {
- throwError('alias node should not have any properties');
- }
-
- } else if (readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
- hasContent = true;
-
- if (null === tag) {
- tag = '?';
- }
- }
-
- if (null !== anchor) {
- anchorMap[anchor] = result;
- }
- }
- } else {
- hasContent = allowBlockCollections && readBlockSequence(blockIndent);
- }
- }
-
- if (null !== tag && '!' !== tag) {
- if ('?' === tag) {
- if (resolve) {
- for (typeIndex = 0, typeQuantity = implicitTypes.length;
- typeIndex < typeQuantity;
- typeIndex += 1) {
- type = implicitTypes[typeIndex];
-
- // Implicit resolving is not allowed for non-scalar types, and '?'
- // non-specific tag is only assigned to plain scalars. So, it isn't
- // needed to check for 'kind' conformity.
- _result = type.loader.resolver(result, false);
-
- if (NIL !== _result) {
- tag = type.tag;
- result = _result;
- break;
- }
- }
- }
- } else if (_hasOwnProperty.call(typeMap, tag)) {
- typeLoader = typeMap[tag].loader;
-
- if (null !== result && typeLoader.kind !== kind) {
- throwError('unacceptable node kind for !<' + tag + '> tag; it should be "' + typeLoader.kind + '", not "' + kind + '"');
- }
-
- if (typeLoader.resolver) {
- _result = typeLoader.resolver(result, true);
-
- if (NIL !== _result) {
- result = _result;
- } else {
- throwError('cannot resolve a node with !<' + tag + '> explicit tag');
- }
- }
- } else {
- throwWarning('unknown tag !<' + tag + '>');
- }
- }
-
- return null !== tag || null !== anchor || hasContent;
- }
-
- function readDocument() {
- var documentStart = position,
- _position,
- directiveName,
- directiveArgs,
- hasDirectives = false;
-
- version = null;
- checkLineBreaks = legacy;
- tagMap = {};
- anchorMap = {};
-
- while (position < length) {
- skipSeparationSpace(true, -1);
-
- if (lineIndent > 0 || CHAR_PERCENT !== character) {
- break;
- }
-
- hasDirectives = true;
- character = input.charCodeAt(++position);
- _position = position;
-
- while (position < length &&
- CHAR_SPACE !== character &&
- CHAR_TAB !== character &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character) {
- character = input.charCodeAt(++position);
- }
-
- directiveName = input.slice(_position, position);
- directiveArgs = [];
-
- if (directiveName.length < 1) {
- throwError('directive name must not be less than one character in length');
- }
-
- while (position < length) {
- while (CHAR_SPACE === character || CHAR_TAB === character) {
- character = input.charCodeAt(++position);
- }
-
- if (CHAR_SHARP === character) {
- do { character = input.charCodeAt(++position); }
- while (position < length &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character);
- break;
- }
-
- if (CHAR_LINE_FEED === character || CHAR_CARRIAGE_RETURN === character) {
- break;
- }
-
- _position = position;
-
- while (position < length &&
- CHAR_SPACE !== character &&
- CHAR_TAB !== character &&
- CHAR_LINE_FEED !== character &&
- CHAR_CARRIAGE_RETURN !== character) {
- character = input.charCodeAt(++position);
- }
-
- directiveArgs.push(input.slice(_position, position));
- }
-
- if (position < length) {
- readLineBreak();
- }
-
- if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
- directiveHandlers[directiveName](directiveName, directiveArgs);
- } else {
- throwWarning('unknown document directive "' + directiveName + '"');
- }
- }
-
- skipSeparationSpace(true, -1);
-
- if (0 === lineIndent &&
- CHAR_MINUS === character &&
- CHAR_MINUS === input.charCodeAt(position + 1) &&
- CHAR_MINUS === input.charCodeAt(position + 2)) {
- position += 3;
- character = input.charCodeAt(position);
- skipSeparationSpace(true, -1);
-
- } else if (hasDirectives) {
- throwError('directives end mark is expected');
- }
-
- composeNode(lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
- skipSeparationSpace(true, -1);
-
- if (validate && checkLineBreaks &&
- PATTERN_NON_ASCII_LINE_BREAKS.test(input.slice(documentStart, position))) {
- throwWarning('non-ASCII line breaks are interpreted as content');
- }
-
- output(result);
-
- if (position === lineStart && testDocumentSeparator()) {
- if (CHAR_DOT === character) {
- position += 3;
- character = input.charCodeAt(position);
- skipSeparationSpace(true, -1);
- }
- return;
- }
-
- if (position < length) {
- throwError('end of the stream or a document separator is expected');
- } else {
- return;
- }
- }
-
- if (validate && PATTERN_NON_PRINTABLE.test(input)) {
- throwError('the stream contains non-printable characters');
- }
-
- while (CHAR_SPACE === character) {
- lineIndent += 1;
- character = input.charCodeAt(++position);
- }
-
- while (position < length) {
- readDocument();
- }
-}
-
-
-function load(input, options) {
- var result = null, received = false;
-
- function callback(data) {
- if (!received) {
- result = data;
- received = true;
- } else {
- throw new YAMLException('expected a single document in the stream, but found more');
- }
- }
-
- loadAll(input, callback, options);
-
- return result;
-}
-
-
-function safeLoadAll(input, output, options) {
- loadAll(input, output, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
-}
-
-
-function safeLoad(input, options) {
- return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
-}
-
-
-module.exports.loadAll = loadAll;
-module.exports.load = load;
-module.exports.safeLoadAll = safeLoadAll;
-module.exports.safeLoad = safeLoad;
diff --git a/node_modules/js-yaml/lib/js-yaml/mark.js b/node_modules/js-yaml/lib/js-yaml/mark.js
deleted file mode 100644
index bfe279b..0000000
--- a/node_modules/js-yaml/lib/js-yaml/mark.js
+++ /dev/null
@@ -1,78 +0,0 @@
-'use strict';
-
-
-var common = require('./common');
-
-
-function Mark(name, buffer, position, line, column) {
- this.name = name;
- this.buffer = buffer;
- this.position = position;
- this.line = line;
- this.column = column;
-}
-
-
-Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
- var head, start, tail, end, snippet;
-
- if (!this.buffer) {
- return null;
- }
-
- indent = indent || 4;
- maxLength = maxLength || 75;
-
- head = '';
- start = this.position;
-
- while (start > 0 && -1 === '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1))) {
- start -= 1;
- if (this.position - start > (maxLength / 2 - 1)) {
- head = ' ... ';
- start += 5;
- break;
- }
- }
-
- tail = '';
- end = this.position;
-
- while (end < this.buffer.length && -1 === '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end))) {
- end += 1;
- if (end - this.position > (maxLength / 2 - 1)) {
- tail = ' ... ';
- end -= 5;
- break;
- }
- }
-
- snippet = this.buffer.slice(start, end);
-
- return common.repeat(' ', indent) + head + snippet + tail + '\n' +
- common.repeat(' ', indent + this.position - start + head.length) + '^';
-};
-
-
-Mark.prototype.toString = function toString(compact) {
- var snippet, where = '';
-
- if (this.name) {
- where += 'in "' + this.name + '" ';
- }
-
- where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
-
- if (!compact) {
- snippet = this.getSnippet();
-
- if (snippet) {
- where += ':\n' + snippet;
- }
- }
-
- return where;
-};
-
-
-module.exports = Mark;
diff --git a/node_modules/js-yaml/lib/js-yaml/require.js b/node_modules/js-yaml/lib/js-yaml/require.js
deleted file mode 100644
index c237ff8..0000000
--- a/node_modules/js-yaml/lib/js-yaml/require.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-
-var fs = require('fs');
-var loader = require('./loader');
-
-
-function yamlRequireHandler(module, filename) {
- var content = fs.readFileSync(filename, 'utf8');
-
- // fill in documents
- module.exports = loader.safeLoad(content, { filename: filename });
-}
-
-// register require extensions only if we're on node.js
-// hack for browserify
-if (undefined !== require.extensions) {
- require.extensions['.yml'] = yamlRequireHandler;
- require.extensions['.yaml'] = yamlRequireHandler;
-}
-
-
-module.exports = require;
diff --git a/node_modules/js-yaml/lib/js-yaml/schema.js b/node_modules/js-yaml/lib/js-yaml/schema.js
deleted file mode 100644
index ce21391..0000000
--- a/node_modules/js-yaml/lib/js-yaml/schema.js
+++ /dev/null
@@ -1,103 +0,0 @@
-'use strict';
-
-
-var common = require('./common');
-var YAMLException = require('./exception');
-var Type = require('./type');
-
-
-function compileList(schema, name, result) {
- var exclude = [];
-
- schema.include.forEach(function (includedSchema) {
- result = compileList(includedSchema, name, result);
- });
-
- schema[name].forEach(function (currentType) {
- result.forEach(function (previousType, previousIndex) {
- if (previousType.tag === currentType.tag) {
- exclude.push(previousIndex);
- }
- });
-
- result.push(currentType);
- });
-
- return result.filter(function (type, index) {
- return -1 === exclude.indexOf(index);
- });
-}
-
-
-function compileMap(/* lists... */) {
- var result = {}, index, length;
-
- function collectType(type) {
- result[type.tag] = type;
- }
-
- for (index = 0, length = arguments.length; index < length; index += 1) {
- arguments[index].forEach(collectType);
- }
-
- return result;
-}
-
-
-function Schema(definition) {
- this.include = definition.include || [];
- this.implicit = definition.implicit || [];
- this.explicit = definition.explicit || [];
-
- this.implicit.forEach(function (type) {
- if (null !== type.loader && 'string' !== type.loader.kind) {
- throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
- }
- });
-
- this.compiledImplicit = compileList(this, 'implicit', []);
- this.compiledExplicit = compileList(this, 'explicit', []);
- this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
-}
-
-
-Schema.DEFAULT = null;
-
-
-Schema.create = function createSchema() {
- var schemas, types;
-
- switch (arguments.length) {
- case 1:
- schemas = Schema.DEFAULT;
- types = arguments[0];
- break;
-
- case 2:
- schemas = arguments[0];
- types = arguments[1];
- break;
-
- default:
- throw new YAMLException('Wrong number of arguments for Schema.create function');
- }
-
- schemas = common.toArray(schemas);
- types = common.toArray(types);
-
- if (!schemas.every(function (schema) { return schema instanceof Schema; })) {
- throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
- }
-
- if (!types.every(function (type) { return type instanceof Type; })) {
- throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
- }
-
- return new Schema({
- include: schemas,
- explicit: types
- });
-};
-
-
-module.exports = Schema;
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/core.js b/node_modules/js-yaml/lib/js-yaml/schema/core.js
deleted file mode 100644
index 206daab..0000000
--- a/node_modules/js-yaml/lib/js-yaml/schema/core.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// Standard YAML's Core schema.
-// http://www.yaml.org/spec/1.2/spec.html#id2804923
-//
-// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
-// So, Core schema has no distinctions from JSON schema is JS-YAML.
-
-
-'use strict';
-
-
-var Schema = require('../schema');
-
-
-module.exports = new Schema({
- include: [
- require('./json')
- ]
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/default_full.js b/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
deleted file mode 100644
index a55ef42..0000000
--- a/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// JS-YAML's default schema for `load` function.
-// It is not described in the YAML specification.
-//
-// This schema is based on JS-YAML's default safe schema and includes
-// JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.
-//
-// Also this schema is used as default base schema at `Schema.create` function.
-
-
-'use strict';
-
-
-var Schema = require('../schema');
-
-
-module.exports = Schema.DEFAULT = new Schema({
- include: [
- require('./default_safe')
- ],
- explicit: [
- require('../type/js/undefined'),
- require('../type/js/regexp'),
- require('../type/js/function')
- ]
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js b/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
deleted file mode 100644
index 11d89bb..0000000
--- a/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// JS-YAML's default schema for `safeLoad` function.
-// It is not described in the YAML specification.
-//
-// This schema is based on standard YAML's Core schema and includes most of
-// extra types described at YAML tag repository. (http://yaml.org/type/)
-
-
-'use strict';
-
-
-var Schema = require('../schema');
-
-
-module.exports = new Schema({
- include: [
- require('./core')
- ],
- implicit: [
- require('../type/timestamp'),
- require('../type/merge')
- ],
- explicit: [
- require('../type/binary'),
- require('../type/omap'),
- require('../type/pairs'),
- require('../type/set')
- ]
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js b/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
deleted file mode 100644
index b7a33eb..0000000
--- a/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// Standard YAML's Failsafe schema.
-// http://www.yaml.org/spec/1.2/spec.html#id2802346
-
-
-'use strict';
-
-
-var Schema = require('../schema');
-
-
-module.exports = new Schema({
- explicit: [
- require('../type/str'),
- require('../type/seq'),
- require('../type/map')
- ]
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/json.js b/node_modules/js-yaml/lib/js-yaml/schema/json.js
deleted file mode 100644
index 5be3dbf..0000000
--- a/node_modules/js-yaml/lib/js-yaml/schema/json.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Standard YAML's JSON schema.
-// http://www.yaml.org/spec/1.2/spec.html#id2803231
-//
-// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
-// So, this schema is not such strict as defined in the YAML specification.
-// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
-
-
-'use strict';
-
-
-var Schema = require('../schema');
-
-
-module.exports = new Schema({
- include: [
- require('./failsafe')
- ],
- implicit: [
- require('../type/null'),
- require('../type/bool'),
- require('../type/int'),
- require('../type/float')
- ]
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type.js b/node_modules/js-yaml/lib/js-yaml/type.js
deleted file mode 100644
index e0124f2..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type.js
+++ /dev/null
@@ -1,82 +0,0 @@
-'use strict';
-
-
-var YAMLException = require('./exception');
-
-
-// TODO: Add tag format check.
-function Type(tag, options) {
- options = options || {};
-
- this.tag = tag;
- this.loader = options['loader'] || null;
- this.dumper = options['dumper'] || null;
-
- if (null === this.loader && null === this.dumper) {
- throw new YAMLException('Incomplete YAML type definition. "loader" or "dumper" setting must be specified.');
- }
-
- if (null !== this.loader) {
- this.loader = new Type.Loader(this.loader);
- }
-
- if (null !== this.dumper) {
- this.dumper = new Type.Dumper(this.dumper);
- }
-}
-
-
-Type.Loader = function TypeLoader(options) {
- options = options || {};
-
- this.kind = options['kind'] || null;
- this.resolver = options['resolver'] || null;
-
- if ('string' !== this.kind &&
- 'array' !== this.kind &&
- 'object' !== this.kind) {
- throw new YAMLException('Unacceptable "kind" setting of a type loader.');
- }
-};
-
-
-function compileAliases(map) {
- var result = {};
-
- if (null !== map) {
- Object.keys(map).forEach(function (style) {
- map[style].forEach(function (alias) {
- result[String(alias)] = style;
- });
- });
- }
-
- return result;
-}
-
-
-Type.Dumper = function TypeDumper(options) {
- options = options || {};
-
- this.kind = options['kind'] || null;
- this.defaultStyle = options['defaultStyle'] || null;
- this.instanceOf = options['instanceOf'] || null;
- this.predicate = options['predicate'] || null;
- this.representer = options['representer'] || null;
- this.styleAliases = compileAliases(options['styleAliases'] || null);
-
- if ('undefined' !== this.kind &&
- 'null' !== this.kind &&
- 'boolean' !== this.kind &&
- 'integer' !== this.kind &&
- 'float' !== this.kind &&
- 'string' !== this.kind &&
- 'array' !== this.kind &&
- 'object' !== this.kind &&
- 'function' !== this.kind) {
- throw new YAMLException('Unacceptable "kind" setting of a type dumper.');
- }
-};
-
-
-module.exports = Type;
diff --git a/node_modules/js-yaml/lib/js-yaml/type/binary.js b/node_modules/js-yaml/lib/js-yaml/type/binary.js
deleted file mode 100644
index 37b4bc7..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/binary.js
+++ /dev/null
@@ -1,118 +0,0 @@
-// Modified from:
-// https://raw.github.com/kanaka/noVNC/d890e8640f20fba3215ba7be8e0ff145aeb8c17c/include/base64.js
-
-'use strict';
-
-
-var NodeBuffer = require('buffer').Buffer; // A trick for browserified version.
-var common = require('../common');
-var NIL = common.NIL;
-var Type = require('../type');
-
-
-
-var BASE64_PADDING = '=';
-
-var BASE64_BINTABLE = [
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
- 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1,
- -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
- -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
- 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1
-];
-
-var BASE64_CHARTABLE =
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
-
-
-function resolveYamlBinary(object /*, explicit*/) {
- var value, code, idx = 0, result = [], leftbits, leftdata;
-
- leftbits = 0; // number of bits decoded, but yet to be appended
- leftdata = 0; // bits decoded, but yet to be appended
-
- // Convert one by one.
- for (idx = 0; idx < object.length; idx += 1) {
- code = object.charCodeAt(idx);
- value = BASE64_BINTABLE[code & 0x7F];
-
- // Skip LF(NL) || CR
- if (0x0A !== code && 0x0D !== code) {
- // Fail on illegal characters
- if (-1 === value) {
- return NIL;
- }
-
- // Collect data into leftdata, update bitcount
- leftdata = (leftdata << 6) | value;
- leftbits += 6;
-
- // If we have 8 or more bits, append 8 bits to the result
- if (leftbits >= 8) {
- leftbits -= 8;
-
- // Append if not padding.
- if (BASE64_PADDING !== object.charAt(idx)) {
- result.push((leftdata >> leftbits) & 0xFF);
- }
-
- leftdata &= (1 << leftbits) - 1;
- }
- }
- }
-
- // If there are any bits left, the base64 string was corrupted
- if (leftbits) {
- return NIL;
- } else {
- return new NodeBuffer(result);
- }
-}
-
-
-function representYamlBinary(object /*, style*/) {
- var result = '', index, length, rest;
-
- // Convert every three bytes to 4 ASCII characters.
- for (index = 0, length = object.length - 2; index < length; index += 3) {
- result += BASE64_CHARTABLE[object[index + 0] >> 2];
- result += BASE64_CHARTABLE[((object[index + 0] & 0x03) << 4) + (object[index + 1] >> 4)];
- result += BASE64_CHARTABLE[((object[index + 1] & 0x0F) << 2) + (object[index + 2] >> 6)];
- result += BASE64_CHARTABLE[object[index + 2] & 0x3F];
- }
-
- rest = object.length % 3;
-
- // Convert the remaining 1 or 2 bytes, padding out to 4 characters.
- if (0 !== rest) {
- index = object.length - rest;
- result += BASE64_CHARTABLE[object[index + 0] >> 2];
-
- if (2 === rest) {
- result += BASE64_CHARTABLE[((object[index + 0] & 0x03) << 4) + (object[index + 1] >> 4)];
- result += BASE64_CHARTABLE[(object[index + 1] & 0x0F) << 2];
- result += BASE64_PADDING;
- } else {
- result += BASE64_CHARTABLE[(object[index + 0] & 0x03) << 4];
- result += BASE64_PADDING + BASE64_PADDING;
- }
- }
-
- return result;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:binary', {
- loader: {
- kind: 'string',
- resolver: resolveYamlBinary
- },
- dumper: {
- kind: 'object',
- instanceOf: NodeBuffer,
- representer: representYamlBinary
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/bool.js b/node_modules/js-yaml/lib/js-yaml/type/bool.js
deleted file mode 100644
index 987a9e6..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/bool.js
+++ /dev/null
@@ -1,74 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var YAML_IMPLICIT_BOOLEAN_MAP = {
- 'true' : true,
- 'True' : true,
- 'TRUE' : true,
- 'false' : false,
- 'False' : false,
- 'FALSE' : false
-};
-
-var YAML_EXPLICIT_BOOLEAN_MAP = {
- 'true' : true,
- 'True' : true,
- 'TRUE' : true,
- 'false' : false,
- 'False' : false,
- 'FALSE' : false,
- 'y' : true,
- 'Y' : true,
- 'yes' : true,
- 'Yes' : true,
- 'YES' : true,
- 'n' : false,
- 'N' : false,
- 'no' : false,
- 'No' : false,
- 'NO' : false,
- 'on' : true,
- 'On' : true,
- 'ON' : true,
- 'off' : false,
- 'Off' : false,
- 'OFF' : false
-};
-
-
-function resolveYamlBoolean(object, explicit) {
- if (explicit) {
- if (YAML_EXPLICIT_BOOLEAN_MAP.hasOwnProperty(object)) {
- return YAML_EXPLICIT_BOOLEAN_MAP[object];
- } else {
- return NIL;
- }
- } else {
- if (YAML_IMPLICIT_BOOLEAN_MAP.hasOwnProperty(object)) {
- return YAML_IMPLICIT_BOOLEAN_MAP[object];
- } else {
- return NIL;
- }
- }
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:bool', {
- loader: {
- kind: 'string',
- resolver: resolveYamlBoolean
- },
- dumper: {
- kind: 'boolean',
- defaultStyle: 'lowercase',
- representer: {
- lowercase: function (object) { return object ? 'true' : 'false'; },
- uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
- camelcase: function (object) { return object ? 'True' : 'False'; }
- }
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/float.js b/node_modules/js-yaml/lib/js-yaml/type/float.js
deleted file mode 100644
index edb5fcb..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/float.js
+++ /dev/null
@@ -1,102 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var YAML_FLOAT_PATTERN = new RegExp(
- '^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?' +
- '|\\.[0-9_]+(?:[eE][-+][0-9]+)?' +
- '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' +
- '|[-+]?\\.(?:inf|Inf|INF)' +
- '|\\.(?:nan|NaN|NAN))$');
-
-
-function resolveYamlFloat(object /*, explicit*/) {
- var value, sign, base, digits;
-
- if (!YAML_FLOAT_PATTERN.test(object)) {
- return NIL;
- }
-
- value = object.replace(/_/g, '').toLowerCase();
- sign = '-' === value[0] ? -1 : 1;
- digits = [];
-
- if (0 <= '+-'.indexOf(value[0])) {
- value = value.slice(1);
- }
-
- if ('.inf' === value) {
- return (1 === sign) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
-
- } else if ('.nan' === value) {
- return NaN;
-
- } else if (0 <= value.indexOf(':')) {
- value.split(':').forEach(function (v) {
- digits.unshift(parseFloat(v, 10));
- });
-
- value = 0.0;
- base = 1;
-
- digits.forEach(function (d) {
- value += d * base;
- base *= 60;
- });
-
- return sign * value;
-
- } else {
- return sign * parseFloat(value, 10);
- }
-}
-
-
-function representYamlFloat(object, style) {
- if (isNaN(object)) {
- switch (style) {
- case 'lowercase':
- return '.nan';
- case 'uppercase':
- return '.NAN';
- case 'camelcase':
- return '.NaN';
- }
- } else if (Number.POSITIVE_INFINITY === object) {
- switch (style) {
- case 'lowercase':
- return '.inf';
- case 'uppercase':
- return '.INF';
- case 'camelcase':
- return '.Inf';
- }
- } else if (Number.NEGATIVE_INFINITY === object) {
- switch (style) {
- case 'lowercase':
- return '-.inf';
- case 'uppercase':
- return '-.INF';
- case 'camelcase':
- return '-.Inf';
- }
- } else {
- return object.toString(10);
- }
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:float', {
- loader: {
- kind: 'string',
- resolver: resolveYamlFloat
- },
- dumper: {
- kind: 'float',
- defaultStyle: 'lowercase',
- representer: representYamlFloat
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/int.js b/node_modules/js-yaml/lib/js-yaml/type/int.js
deleted file mode 100644
index f5e1e7e..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/int.js
+++ /dev/null
@@ -1,85 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var YAML_INTEGER_PATTERN = new RegExp(
- '^(?:[-+]?0b[0-1_]+' +
- '|[-+]?0[0-7_]+' +
- '|[-+]?(?:0|[1-9][0-9_]*)' +
- '|[-+]?0x[0-9a-fA-F_]+' +
- '|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$');
-
-
-function resolveYamlInteger(object /*, explicit*/) {
- var value, sign, base, digits;
-
- if (!YAML_INTEGER_PATTERN.test(object)) {
- return NIL;
- }
-
- value = object.replace(/_/g, '');
- sign = '-' === value[0] ? -1 : 1;
- digits = [];
-
- if (0 <= '+-'.indexOf(value[0])) {
- value = value.slice(1);
- }
-
- if ('0' === value) {
- return 0;
-
- } else if (/^0b/.test(value)) {
- return sign * parseInt(value.slice(2), 2);
-
- } else if (/^0x/.test(value)) {
- return sign * parseInt(value, 16);
-
- } else if ('0' === value[0]) {
- return sign * parseInt(value, 8);
-
- } else if (0 <= value.indexOf(':')) {
- value.split(':').forEach(function (v) {
- digits.unshift(parseInt(v, 10));
- });
-
- value = 0;
- base = 1;
-
- digits.forEach(function (d) {
- value += (d * base);
- base *= 60;
- });
-
- return sign * value;
-
- } else {
- return sign * parseInt(value, 10);
- }
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:int', {
- loader: {
- kind: 'string',
- resolver: resolveYamlInteger
- },
- dumper: {
- kind: 'integer',
- defaultStyle: 'decimal',
- representer: {
- binary: function (object) { return '0b' + object.toString(2); },
- octal: function (object) { return '0' + object.toString(8); },
- decimal: function (object) { return object.toString(10); },
- hexadecimal: function (object) { return '0x' + object.toString(16).toUpperCase(); }
- },
- styleAliases: {
- binary: [ 2, 'bin' ],
- octal: [ 8, 'oct' ],
- decimal: [ 10, 'dec' ],
- hexadecimal: [ 16, 'hex' ]
- }
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/js/function.js b/node_modules/js-yaml/lib/js-yaml/type/js/function.js
deleted file mode 100644
index 4b3b3ca..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/js/function.js
+++ /dev/null
@@ -1,56 +0,0 @@
-'use strict';
-
-
-var esprima = require('esprima');
-
-
-var NIL = require('../../common').NIL;
-var Type = require('../../type');
-
-
-function resolveJavascriptFunction(object /*, explicit*/) {
- /*jslint evil:true*/
-
- try {
- var source = '(' + object + ')',
- ast = esprima.parse(source, { range: true }),
- params = [],
- body;
-
- if ('Program' !== ast.type ||
- 1 !== ast.body.length ||
- 'ExpressionStatement' !== ast.body[0].type ||
- 'FunctionExpression' !== ast.body[0].expression.type) {
- return NIL;
- }
-
- ast.body[0].expression.params.forEach(function (param) {
- params.push(param.name);
- });
-
- body = ast.body[0].expression.body.range;
-
- // Esprima's ranges include the first '{' and the last '}' characters on
- // function expressions. So cut them out.
- return new Function(params, source.slice(body[0]+1, body[1]-1));
- } catch (err) {
- return NIL;
- }
-}
-
-
-function representJavascriptFunction(object /*, style*/) {
- return object.toString();
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:js/function', {
- loader: {
- kind: 'string',
- resolver: resolveJavascriptFunction
- },
- dumper: {
- kind: 'function',
- representer: representJavascriptFunction,
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js b/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
deleted file mode 100644
index 9f4f89e..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
+++ /dev/null
@@ -1,56 +0,0 @@
-'use strict';
-
-
-var NIL = require('../../common').NIL;
-var Type = require('../../type');
-
-
-function resolveJavascriptRegExp(object /*, explicit*/) {
- var regexp = object,
- tail = /\/([gim]*)$/.exec(object),
- modifiers;
-
- // `/foo/gim` - tail can be maximum 4 chars
- if ('/' === regexp[0] && tail && 4 >= tail[0].length) {
- regexp = regexp.slice(1, regexp.length - tail[0].length);
- modifiers = tail[1];
- }
-
- try {
- return new RegExp(regexp, modifiers);
- } catch (error) {
- return NIL;
- }
-}
-
-
-function representJavascriptRegExp(object /*, style*/) {
- var result = '/' + object.source + '/';
-
- if (object.global) {
- result += 'g';
- }
-
- if (object.multiline) {
- result += 'm';
- }
-
- if (object.ignoreCase) {
- result += 'i';
- }
-
- return result;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:js/regexp', {
- loader: {
- kind: 'string',
- resolver: resolveJavascriptRegExp
- },
- dumper: {
- kind: 'object',
- instanceOf: RegExp,
- representer: representJavascriptRegExp
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js b/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
deleted file mode 100644
index 8d2835e..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict';
-
-
-var Type = require('../../type');
-
-
-function resolveJavascriptUndefined(/*object, explicit*/) {
- var undef;
-
- return undef;
-}
-
-
-function representJavascriptUndefined(/*object, explicit*/) {
- return '';
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:js/undefined', {
- loader: {
- kind: 'string',
- resolver: resolveJavascriptUndefined
- },
- dumper: {
- kind: 'undefined',
- representer: representJavascriptUndefined
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/map.js b/node_modules/js-yaml/lib/js-yaml/type/map.js
deleted file mode 100644
index 5cda6de..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/map.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-
-var Type = require('../type');
-
-
-module.exports = new Type('tag:yaml.org,2002:map', {
- loader: {
- kind: 'object'
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/merge.js b/node_modules/js-yaml/lib/js-yaml/type/merge.js
deleted file mode 100644
index 8facc70..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/merge.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-function resolveYamlMerge(object /*, explicit*/) {
- return '<<' === object ? object : NIL;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:merge', {
- loader: {
- kind: 'string',
- resolver: resolveYamlMerge
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/null.js b/node_modules/js-yaml/lib/js-yaml/type/null.js
deleted file mode 100644
index 796e1af..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/null.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var YAML_NULL_MAP = {
- '~' : true,
- 'null' : true,
- 'Null' : true,
- 'NULL' : true
-};
-
-
-function resolveYamlNull(object /*, explicit*/) {
- return YAML_NULL_MAP[object] ? null : NIL;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:null', {
- loader: {
- kind: 'string',
- resolver: resolveYamlNull
- },
- dumper: {
- kind: 'null',
- defaultStyle: 'lowercase',
- representer: {
- canonical: function () { return '~'; },
- lowercase: function () { return 'null'; },
- uppercase: function () { return 'NULL'; },
- camelcase: function () { return 'Null'; },
- }
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/omap.js b/node_modules/js-yaml/lib/js-yaml/type/omap.js
deleted file mode 100644
index f7c248d..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/omap.js
+++ /dev/null
@@ -1,53 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-var _toString = Object.prototype.toString;
-
-
-function resolveYamlOmap(object /*, explicit*/) {
- var objectKeys = [], index, length, pair, pairKey, pairHasKey;
-
- for (index = 0, length = object.length; index < length; index += 1) {
- pair = object[index];
- pairHasKey = false;
-
- if ('[object Object]' !== _toString.call(pair)) {
- return NIL;
- }
-
- for (pairKey in pair) {
- if (_hasOwnProperty.call(pair, pairKey)) {
- if (!pairHasKey) {
- pairHasKey = true;
- } else {
- return NIL;
- }
- }
- }
-
- if (!pairHasKey) {
- return NIL;
- }
-
- if (-1 === objectKeys.indexOf(pairKey)) {
- objectKeys.push(pairKey);
- } else {
- return NIL;
- }
- }
-
- return object;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:omap', {
- loader: {
- kind: 'array',
- resolver: resolveYamlOmap
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/pairs.js b/node_modules/js-yaml/lib/js-yaml/type/pairs.js
deleted file mode 100644
index 828ff1b..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/pairs.js
+++ /dev/null
@@ -1,41 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var _toString = Object.prototype.toString;
-
-
-function resolveYamlPairs(object /*, explicit*/) {
- var index, length, pair, keys, result;
-
- result = new Array(object.length);
-
- for (index = 0, length = object.length; index < length; index += 1) {
- pair = object[index];
-
- if ('[object Object]' !== _toString.call(pair)) {
- return NIL;
- }
-
- keys = Object.keys(pair);
-
- if (1 !== keys.length) {
- return NIL;
- }
-
- result[index] = [ keys[0], pair[keys[0]] ];
- }
-
- return result;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:pairs', {
- loader: {
- kind: 'array',
- resolver: resolveYamlPairs
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/seq.js b/node_modules/js-yaml/lib/js-yaml/type/seq.js
deleted file mode 100644
index 80a7cf0..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/seq.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-
-var Type = require('../type');
-
-
-module.exports = new Type('tag:yaml.org,2002:seq', {
- loader: {
- kind: 'array'
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/set.js b/node_modules/js-yaml/lib/js-yaml/type/set.js
deleted file mode 100644
index 64bdc66..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/set.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-
-
-function resolveYamlSet(object /*, explicit*/) {
- var key;
-
- for (key in object) {
- if (_hasOwnProperty.call(object, key)) {
- if (null !== object[key]) {
- return NIL;
- }
- }
- }
-
- return object;
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:set', {
- loader: {
- kind: 'object',
- resolver: resolveYamlSet
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/str.js b/node_modules/js-yaml/lib/js-yaml/type/str.js
deleted file mode 100644
index 384f14e..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/str.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-
-var Type = require('../type');
-
-
-module.exports = new Type('tag:yaml.org,2002:str', {
- loader: {
- kind: 'string'
- }
-});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/timestamp.js b/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
deleted file mode 100644
index 24da9e2..0000000
--- a/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
+++ /dev/null
@@ -1,91 +0,0 @@
-'use strict';
-
-
-var NIL = require('../common').NIL;
-var Type = require('../type');
-
-
-var YAML_TIMESTAMP_REGEXP = new RegExp(
- '^([0-9][0-9][0-9][0-9])' + // [1] year
- '-([0-9][0-9]?)' + // [2] month
- '-([0-9][0-9]?)' + // [3] day
- '(?:(?:[Tt]|[ \\t]+)' + // ...
- '([0-9][0-9]?)' + // [4] hour
- ':([0-9][0-9])' + // [5] minute
- ':([0-9][0-9])' + // [6] second
- '(?:\\.([0-9]*))?' + // [7] fraction
- '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
- '(?::([0-9][0-9]))?))?)?$'); // [11] tz_minute
-
-
-function resolveYamlTimestamp(object /*, explicit*/) {
- var match, year, month, day, hour, minute, second, fraction = 0,
- delta = null, tz_hour, tz_minute, data;
-
- match = YAML_TIMESTAMP_REGEXP.exec(object);
-
- if (null === match) {
- return NIL;
- }
-
- // match: [1] year [2] month [3] day
-
- year = +(match[1]);
- month = +(match[2]) - 1; // JS month starts with 0
- day = +(match[3]);
-
- if (!match[4]) { // no hour
- return new Date(Date.UTC(year, month, day));
- }
-
- // match: [4] hour [5] minute [6] second [7] fraction
-
- hour = +(match[4]);
- minute = +(match[5]);
- second = +(match[6]);
-
- if (match[7]) {
- fraction = match[7].slice(0, 3);
- while (fraction.length < 3) { // milli-seconds
- fraction += '0';
- }
- fraction = +fraction;
- }
-
- // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
-
- if (match[9]) {
- tz_hour = +(match[10]);
- tz_minute = +(match[11] || 0);
- delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
- if ('-' === match[9]) {
- delta = -delta;
- }
- }
-
- data = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
-
- if (delta) {
- data.setTime(data.getTime() - delta);
- }
-
- return data;
-}
-
-
-function representYamlTimestamp(object /*, style*/) {
- return object.toISOString();
-}
-
-
-module.exports = new Type('tag:yaml.org,2002:timestamp', {
- loader: {
- kind: 'string',
- resolver: resolveYamlTimestamp
- },
- dumper: {
- kind: 'object',
- instanceOf: Date,
- representer: representYamlTimestamp
- }
-});
diff --git a/node_modules/js-yaml/node_modules/.bin/esparse b/node_modules/js-yaml/node_modules/.bin/esparse
deleted file mode 120000
index 7423b18..0000000
--- a/node_modules/js-yaml/node_modules/.bin/esparse
+++ /dev/null
@@ -1 +0,0 @@
-../esprima/bin/esparse.js
\ No newline at end of file
diff --git a/node_modules/js-yaml/node_modules/.bin/esvalidate b/node_modules/js-yaml/node_modules/.bin/esvalidate
deleted file mode 120000
index 16069ef..0000000
--- a/node_modules/js-yaml/node_modules/.bin/esvalidate
+++ /dev/null
@@ -1 +0,0 @@
-../esprima/bin/esvalidate.js
\ No newline at end of file
diff --git a/node_modules/js-yaml/node_modules/argparse/HISTORY.md b/node_modules/js-yaml/node_modules/argparse/HISTORY.md
deleted file mode 100644
index 102f82b..0000000
--- a/node_modules/js-yaml/node_modules/argparse/HISTORY.md
+++ /dev/null
@@ -1,109 +0,0 @@
-0.1.15 / 2013-05-13
--------------------
-
-* Fixed #55, @trebor89
-
-
-0.1.14 / 2013-05-12
--------------------
-
-* Fixed #62, @maxtaco
-
-
-0.1.13 / 2013-04-08
--------------------
-
-* Added `.npmignore` to reduce package size
-
-
-0.1.12 / 2013-02-10
--------------------
-
-* Fixed conflictHandler (#46), @hpaulj
-
-
-0.1.11 / 2013-02-07
--------------------
-
-* Multiple bugfixes, @hpaulj
-* Added 70+ tests (ported from python), @hpaulj
-* Added conflictHandler, @applepicke
-* Added fromfilePrefixChar, @hpaulj
-
-
-0.1.10 / 2012-12-30
--------------------
-
-* Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion)
- support, thanks to @hpaulj
-* Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj
-
-
-0.1.9 / 2012-12-27
-------------------
-
-* Fixed option dest interferens with other options (issue #23), thanks to @hpaulj
-* Fixed default value behavior with `*` positionals, thanks to @hpaulj
-* Improve `getDefault()` behavior, thanks to @hpaulj
-* Imrove negative argument parsing, thanks to @hpaulj
-
-
-0.1.8 / 2012-12-01
-------------------
-
-* Fixed parser parents (issue #19), thanks to @hpaulj
-* Fixed negative argument parse (issue #20), thanks to @hpaulj
-
-
-0.1.7 / 2012-10-14
-------------------
-
-* Fixed 'choices' argument parse (issue #16)
-* Fixed stderr output (issue #15)
-
-
-0.1.6 / 2012-09-09
-------------------
-
-* Fixed check for conflict of options (thanks to @tomxtobin)
-
-
-0.1.5 / 2012-09-03
-------------------
-
-* Fix parser #setDefaults method (thanks to @tomxtobin)
-
-
-0.1.4 / 2012-07-30
-------------------
-
-* Fixed pseudo-argument support (thanks to @CGamesPlay)
-* Fixed addHelp default (should be true), if not set (thanks to @benblank)
-
-
-0.1.3 / 2012-06-27
-------------------
-
-* Fixed formatter api name: Formatter -> HelpFormatter
-
-
-0.1.2 / 2012-05-29
-------------------
-
-* Added basic tests
-* Removed excess whitespace in help
-* Fixed error reporting, when parcer with subcommands
- called with empty arguments
-
-
-0.1.1 / 2012-05-23
-------------------
-
-* Fixed line wrapping in help formatter
-* Added better error reporting on invalid arguments
-
-
-0.1.0 / 2012-05-16
-------------------
-
-* First release.
diff --git a/node_modules/js-yaml/node_modules/argparse/LICENSE b/node_modules/js-yaml/node_modules/argparse/LICENSE
deleted file mode 100644
index 1afdae5..0000000
--- a/node_modules/js-yaml/node_modules/argparse/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-(The MIT License)
-
-Copyright (C) 2012 by Vitaly Puzrin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/js-yaml/node_modules/argparse/README.md b/node_modules/js-yaml/node_modules/argparse/README.md
deleted file mode 100644
index f20e0c1..0000000
--- a/node_modules/js-yaml/node_modules/argparse/README.md
+++ /dev/null
@@ -1,239 +0,0 @@
-argparse
-========
-
-[](http://travis-ci.org/nodeca/argparse)
-
-CLI arguments parser for node.js. Javascript port of python's
-[argparse](http://docs.python.org/dev/library/argparse.html) module
-(original version 3.2). That's a full port, except some very rare options,
-recorded in issue tracker.
-
-**NB.** Method names changed to camelCase. See [generated docs](http://nodeca.github.com/argparse/).
-
-
-Example
-=======
-
-test.js file:
-
-```javascript
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp:true,
- description: 'Argparse example'
-});
-parser.addArgument(
- [ '-f', '--foo' ],
- {
- help: 'foo bar'
- }
-);
-parser.addArgument(
- [ '-b', '--bar' ],
- {
- help: 'bar foo'
- }
-);
-var args = parser.parseArgs();
-console.dir(args);
-```
-
-Display help:
-
-```
-$ ./test.js -h
-usage: example.js [-h] [-v] [-f FOO] [-b BAR]
-
-Argparse example
-
-Optional arguments:
- -h, --help Show this help message and exit.
- -v, --version Show program's version number and exit.
- -f FOO, --foo FOO foo bar
- -b BAR, --bar BAR bar foo
-```
-
-Parse arguments:
-
-```
-$ ./test.js -f=3 --bar=4
-{ foo: '3', bar: '4' }
-```
-
-More [examples](https://github.com/nodeca/argparse/tree/master/examples).
-
-
-ArgumentParser objects
-======================
-
-```
-new ArgumentParser({paramters hash});
-```
-
-Creates a new ArgumentParser object.
-
-**Supported params:**
-
-- ```description``` - Text to display before the argument help.
-- ```epilog``` - Text to display after the argument help.
-- ```addHelp``` - Add a -h/–help option to the parser. (default: True)
-- ```argumentDefault``` - Set the global default value for arguments. (default: None)
-- ```parents``` - A list of ArgumentParser objects whose arguments should also be included.
-- ```prefixChars``` - The set of characters that prefix optional arguments. (default: ‘-‘)
-- ```formatterClass``` - A class for customizing the help output.
-- ```prog``` - The name of the program (default: sys.argv[0])
-- ```usage``` - The string describing the program usage (default: generated)
-- ```conflictHandler``` - Usually unnecessary, defines strategy for resolving conflicting optionals.
-
-**Not supportied yet**
-
-- ```fromfilePrefixChars``` - The set of characters that prefix files from which additional arguments should be read.
-
-
-Details in [original ArgumentParser guide](http://docs.python.org/dev/library/argparse.html#argumentparser-objects)
-
-
-addArgument() method
-====================
-
-```
-ArgumentParser.addArgument([names or flags], {options})
-```
-
-Defines how a single command-line argument should be parsed.
-
-- ```name or flags``` - Either a name or a list of option strings, e.g. foo or -f, --foo.
-
-Options:
-
-- ```action``` - The basic type of action to be taken when this argument is encountered at the command line.
-- ```nargs```- The number of command-line arguments that should be consumed.
-- ```constant``` - A constant value required by some action and nargs selections.
-- ```defaultValue``` - The value produced if the argument is absent from the command line.
-- ```type``` - The type to which the command-line argument should be converted.
-- ```choices``` - A container of the allowable values for the argument.
-- ```required``` - Whether or not the command-line option may be omitted (optionals only).
-- ```help``` - A brief description of what the argument does.
-- ```metavar``` - A name for the argument in usage messages.
-- ```dest``` - The name of the attribute to be added to the object returned by parseArgs().
-
-Details in [original add_argument guide](http://docs.python.org/dev/library/argparse.html#the-add-argument-method)
-
-
-Action (some details)
-================
-
-ArgumentParser objects associate command-line arguments with actions.
-These actions can do just about anything with the command-line arguments associated
-with them, though most actions simply add an attribute to the object returned by
-parseArgs(). The action keyword argument specifies how the command-line arguments
-should be handled. The supported actions are:
-
-- ```store``` - Just stores the argument’s value. This is the default action.
-- ```storeConst``` - Stores value, specified by the const keyword argument.
- (Note that the const keyword argument defaults to the rather unhelpful None.)
- The 'storeConst' action is most commonly used with optional arguments, that
- specify some sort of flag.
-- ```storeTrue``` and ```storeFalse``` - Stores values True and False
- respectively. These are special cases of 'storeConst'.
-- ```append``` - Stores a list, and appends each argument value to the list.
- This is useful to allow an option to be specified multiple times.
-- ```appendConst``` - Stores a list, and appends value, specified by the
- const keyword argument to the list. (Note, that the const keyword argument defaults
- is None.) The 'appendConst' action is typically used when multiple arguments need
- to store constants to the same list.
-- ```count``` - Counts the number of times a keyword argument occurs. For example,
- used for increasing verbosity levels.
-- ```help``` - Prints a complete help message for all the options in the current
- parser and then exits. By default a help action is automatically added to the parser.
- See ArgumentParser for details of how the output is created.
-- ```version``` - Prints version information and exit. Expects a `version=`
- keyword argument in the addArgument() call.
-
-Details in [original action guide](http://docs.python.org/dev/library/argparse.html#action)
-
-
-Sub-commands
-============
-
-ArgumentParser.addSubparsers()
-
-Many programs split their functionality into a number of sub-commands, for
-example, the svn program can invoke sub-commands like `svn checkout`, `svn update`,
-and `svn commit`. Splitting up functionality this way can be a particularly good
-idea when a program performs several different functions which require different
-kinds of command-line arguments. `ArgumentParser` supports creation of such
-sub-commands with `addSubparsers()` method. The `addSubparsers()` method is
-normally called with no arguments and returns an special action object.
-This object has a single method `addParser()`, which takes a command name and
-any `ArgumentParser` constructor arguments, and returns an `ArgumentParser` object
-that can be modified as usual.
-
-Example:
-
-sub_commands.js
-```javascript
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp:true,
- description: 'Argparse examples: sub-commands',
-});
-
-var subparsers = parser.addSubparsers({
- title:'subcommands',
- dest:"subcommand_name"
-});
-
-var bar = subparsers.addParser('c1', {addHelp:true});
-bar.addArgument(
- [ '-f', '--foo' ],
- {
- action: 'store',
- help: 'foo3 bar3'
- }
-);
-var bar = subparsers.addParser(
- 'c2',
- {aliases:['co'], addHelp:true}
-);
-bar.addArgument(
- [ '-b', '--bar' ],
- {
- action: 'store',
- type: 'int',
- help: 'foo3 bar3'
- }
-);
-
-var args = parser.parseArgs();
-console.dir(args);
-
-```
-
-Details in [original sub-commands guide](http://docs.python.org/dev/library/argparse.html#sub-commands)
-
-
-Contributors
-============
-
-- [Eugene Shkuropat](https://github.com/shkuropat)
-- [Paul Jacobson](https://github.com/hpaulj)
-
-[others](https://github.com/nodeca/argparse/graphs/contributors)
-
-License
-=======
-
-Copyright (c) 2012 [Vitaly Puzrin](https://github.com/puzrin).
-Released under the MIT license. See
-[LICENSE](https://github.com/nodeca/argparse/blob/master/LICENSE) for details.
-
-
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/arguments.js b/node_modules/js-yaml/node_modules/argparse/examples/arguments.js
deleted file mode 100755
index 5b090fa..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/arguments.js
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: arguments'
-});
-parser.addArgument(
- [ '-f', '--foo' ],
- {
- help: 'foo bar'
- }
-);
-parser.addArgument(
- [ '-b', '--bar' ],
- {
- help: 'bar foo'
- }
-);
-
-
-parser.printHelp();
-console.log('-----------');
-
-var args;
-args = parser.parseArgs('-f 1 -b2'.split(' '));
-console.dir(args);
-console.log('-----------');
-args = parser.parseArgs('-f=3 --bar=4'.split(' '));
-console.dir(args);
-console.log('-----------');
-args = parser.parseArgs('--foo 5 --bar 6'.split(' '));
-console.dir(args);
-console.log('-----------');
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/choice.js b/node_modules/js-yaml/node_modules/argparse/examples/choice.js
deleted file mode 100755
index 2616fa4..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/choice.js
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: choice'
-});
-
-parser.addArgument(['foo'], {choices: 'abc'});
-
-parser.printHelp();
-console.log('-----------');
-
-var args;
-args = parser.parseArgs(['c']);
-console.dir(args);
-console.log('-----------');
-parser.parseArgs(['X']);
-console.dir(args);
-
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/constants.js b/node_modules/js-yaml/node_modules/argparse/examples/constants.js
deleted file mode 100755
index 172a4f3..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/constants.js
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: constant'
-});
-
-parser.addArgument(
- [ '-a'],
- {
- action: 'storeConst',
- dest: 'answer',
- help: 'store constant',
- constant: 42
- }
-);
-parser.addArgument(
- [ '--str' ],
- {
- action: 'appendConst',
- dest: 'types',
- help: 'append constant "str" to types',
- constant: 'str'
- }
-);
-parser.addArgument(
- [ '--int' ],
- {
- action: 'appendConst',
- dest: 'types',
- help: 'append constant "int" to types',
- constant: 'int'
- }
-);
-
-parser.addArgument(
- [ '--true' ],
- {
- action: 'storeTrue',
- help: 'store true constant'
- }
-);
-parser.addArgument(
- [ '--false' ],
- {
- action: 'storeFalse',
- help: 'store false constant'
- }
-);
-
-parser.printHelp();
-console.log('-----------');
-
-var args;
-args = parser.parseArgs('-a --str --int --true'.split(' '));
-console.dir(args);
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/help.js b/node_modules/js-yaml/node_modules/argparse/examples/help.js
deleted file mode 100755
index 7eb9555..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/help.js
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: help',
- epilog: 'help epilog',
- prog: 'help_example_prog',
- usage: 'Usage %(prog)s '
-});
-parser.printHelp();
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/nargs.js b/node_modules/js-yaml/node_modules/argparse/examples/nargs.js
deleted file mode 100755
index 74f376b..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/nargs.js
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: nargs'
-});
-parser.addArgument(
- [ '-f', '--foo' ],
- {
- help: 'foo bar',
- nargs: 1
- }
-);
-parser.addArgument(
- [ '-b', '--bar' ],
- {
- help: 'bar foo',
- nargs: '*'
- }
-);
-
-parser.printHelp();
-console.log('-----------');
-
-var args;
-args = parser.parseArgs('--foo a --bar c d'.split(' '));
-console.dir(args);
-console.log('-----------');
-args = parser.parseArgs('--bar b c f --foo a'.split(' '));
-console.dir(args);
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/parents.js b/node_modules/js-yaml/node_modules/argparse/examples/parents.js
deleted file mode 100755
index dfe8968..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/parents.js
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-
-var args;
-var parent_parser = new ArgumentParser({ addHelp: false });
-// note addHelp:false to prevent duplication of the -h option
-parent_parser.addArgument(
- ['--parent'],
- { type: 'int', description: 'parent' }
-);
-
-var foo_parser = new ArgumentParser({
- parents: [ parent_parser ],
- description: 'child1'
-});
-foo_parser.addArgument(['foo']);
-args = foo_parser.parseArgs(['--parent', '2', 'XXX']);
-console.log(args);
-
-var bar_parser = new ArgumentParser({
- parents: [ parent_parser ],
- description: 'child2'
-});
-bar_parser.addArgument(['--bar']);
-args = bar_parser.parseArgs(['--bar', 'YYY']);
-console.log(args);
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js b/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js
deleted file mode 100755
index 430d5e1..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: prefix_chars',
- prefixChars: '-+'
-});
-parser.addArgument(['+f', '++foo']);
-parser.addArgument(['++bar'], {action: 'storeTrue'});
-
-parser.printHelp();
-console.log('-----------');
-
-var args;
-args = parser.parseArgs(['+f', '1']);
-console.dir(args);
-args = parser.parseArgs(['++bar']);
-console.dir(args);
-args = parser.parseArgs(['++foo', '2', '++bar']);
-console.dir(args);
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js b/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js
deleted file mode 100755
index df9c494..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp: true,
- description: 'Argparse examples: sub-commands'
-});
-
-var subparsers = parser.addSubparsers({
- title: 'subcommands',
- dest: "subcommand_name"
-});
-
-var bar = subparsers.addParser('c1', {addHelp: true, help: 'c1 help'});
-bar.addArgument(
- [ '-f', '--foo' ],
- {
- action: 'store',
- help: 'foo3 bar3'
- }
-);
-var bar = subparsers.addParser(
- 'c2',
- {aliases: ['co'], addHelp: true, help: 'c2 help'}
-);
-bar.addArgument(
- [ '-b', '--bar' ],
- {
- action: 'store',
- type: 'int',
- help: 'foo3 bar3'
- }
-);
-parser.printHelp();
-console.log('-----------');
-
-var args;
-args = parser.parseArgs('c1 -f 2'.split(' '));
-console.dir(args);
-console.log('-----------');
-args = parser.parseArgs('c2 -b 1'.split(' '));
-console.dir(args);
-console.log('-----------');
-args = parser.parseArgs('co -b 1'.split(' '));
-console.dir(args);
-console.log('-----------');
-parser.parseArgs(['c1', '-h']);
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/sum.js b/node_modules/js-yaml/node_modules/argparse/examples/sum.js
deleted file mode 100755
index 4532800..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/sum.js
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env node
-
-'use strict';
-
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({ description: 'Process some integers.' });
-
-
-function sum(arr) {
- return arr.reduce(function (a, b) {
- return a + b;
- }, 0);
-}
-function max(arr) {
- return Math.max.apply(Math, arr);
-}
-
-
-parser.addArgument(['integers'], {
- metavar: 'N',
- type: 'int',
- nargs: '+',
- help: 'an integer for the accumulator'
-});
-parser.addArgument(['--sum'], {
- dest: 'accumulate',
- action: 'storeConst',
- constant: sum,
- defaultValue: max,
- help: 'sum the integers (default: find the max)'
-});
-
-var args = parser.parseArgs('--sum 1 2 -1'.split(' '));
-console.log(args.accumulate(args.integers));
diff --git a/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js b/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js
deleted file mode 100644
index afb4a2d..0000000
--- a/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js
+++ /dev/null
@@ -1,270 +0,0 @@
-'use strict';
-
-var a, group, parser, helptext;
-
-var assert = require('assert');
-var _ = require('underscore');
-_.str = require('underscore.string');
-var print = function () {
- return console.log.apply(console, arguments);
- };
-// print = function () {};
-
-var argparse = require('argparse');
-
-print("TEST argparse.ArgumentDefaultsHelpFormatter");
-
-parser = new argparse.ArgumentParser({
- debug: true,
- formatterClass: argparse.ArgumentDefaultsHelpFormatter,
- description: 'description'
-});
-
-parser.addArgument(['--foo'], {
- help: 'foo help - oh and by the way, %(defaultValue)s'
-});
-
-parser.addArgument(['--bar'], {
- action: 'storeTrue',
- help: 'bar help'
-});
-
-parser.addArgument(['spam'], {
- help: 'spam help'
-});
-
-parser.addArgument(['badger'], {
- nargs: '?',
- defaultValue: 'wooden',
- help: 'badger help'
-});
-
-group = parser.addArgumentGroup({
- title: 'title',
- description: 'group description'
-});
-
-group.addArgument(['--baz'], {
- type: 'int',
- defaultValue: 42,
- help: 'baz help'
-});
-
-helptext = parser.formatHelp();
-print(helptext);
-// test selected clips
-assert(helptext.match(/badger help \(default: wooden\)/));
-assert(helptext.match(/foo help - oh and by the way, null/));
-assert(helptext.match(/bar help \(default: false\)/));
-assert(helptext.match(/title:\n {2}group description/)); // test indent
-assert(helptext.match(/baz help \(default: 42\)/im));
-
-/*
-usage: PROG [-h] [--foo FOO] [--bar] [--baz BAZ] spam [badger]
-
-description
-
-positional arguments:
- spam spam help
- badger badger help (default: wooden)
-
-optional arguments:
- -h, --help show this help message and exit
- --foo FOO foo help - oh and by the way, null
- --bar bar help (default: false)
-
-title:
- group description
-
- --baz BAZ baz help (default: 42)
-*/
-
-print("TEST argparse.RawDescriptionHelpFormatter");
-
-parser = new argparse.ArgumentParser({
- debug: true,
- prog: 'PROG',
- formatterClass: argparse.RawDescriptionHelpFormatter,
- description: 'Keep the formatting\n' +
- ' exactly as it is written\n' +
- '\n' +
- 'here\n'
-});
-
-a = parser.addArgument(['--foo'], {
- help: ' foo help should not\n' +
- ' retain this odd formatting'
-});
-
-parser.addArgument(['spam'], {
- 'help': 'spam help'
-});
-
-group = parser.addArgumentGroup({
- title: 'title',
- description: ' This text\n' +
- ' should be indented\n' +
- ' exactly like it is here\n'
-});
-
-group.addArgument(['--bar'], {
- help: 'bar help'
-});
-
-helptext = parser.formatHelp();
-print(helptext);
-// test selected clips
-assert(helptext.match(parser.description));
-assert.equal(helptext.match(a.help), null);
-assert(helptext.match(/foo help should not retain this odd formatting/));
-
-/*
-class TestHelpRawDescription(HelpTestCase):
- """Test the RawTextHelpFormatter"""
-....
-
-usage: PROG [-h] [--foo FOO] [--bar BAR] spam
-
-Keep the formatting
- exactly as it is written
-
-here
-
-positional arguments:
- spam spam help
-
-optional arguments:
- -h, --help show this help message and exit
- --foo FOO foo help should not retain this odd formatting
-
-title:
- This text
- should be indented
- exactly like it is here
-
- --bar BAR bar help
-*/
-
-
-print("TEST argparse.RawTextHelpFormatter");
-
-parser = new argparse.ArgumentParser({
- debug: true,
- prog: 'PROG',
- formatterClass: argparse.RawTextHelpFormatter,
- description: 'Keep the formatting\n' +
- ' exactly as it is written\n' +
- '\n' +
- 'here\n'
-});
-
-parser.addArgument(['--baz'], {
- help: ' baz help should also\n' +
- 'appear as given here'
-});
-
-a = parser.addArgument(['--foo'], {
- help: ' foo help should also\n' +
- 'appear as given here'
-});
-
-parser.addArgument(['spam'], {
- 'help': 'spam help'
-});
-
-group = parser.addArgumentGroup({
- title: 'title',
- description: ' This text\n' +
- ' should be indented\n' +
- ' exactly like it is here\n'
-});
-
-group.addArgument(['--bar'], {
- help: 'bar help'
-});
-
-helptext = parser.formatHelp();
-print(helptext);
-// test selected clips
-assert(helptext.match(parser.description));
-assert(helptext.match(/( {14})appear as given here/gm));
-
-/*
-class TestHelpRawText(HelpTestCase):
- """Test the RawTextHelpFormatter"""
-
-usage: PROG [-h] [--foo FOO] [--bar BAR] spam
-
-Keep the formatting
- exactly as it is written
-
-here
-
-positional arguments:
- spam spam help
-
-optional arguments:
- -h, --help show this help message and exit
- --foo FOO foo help should also
- appear as given here
-
-title:
- This text
- should be indented
- exactly like it is here
-
- --bar BAR bar help
-*/
-
-
-print("TEST metavar as a tuple");
-
-parser = new argparse.ArgumentParser({
- prog: 'PROG'
-});
-
-parser.addArgument(['-w'], {
- help: 'w',
- nargs: '+',
- metavar: ['W1', 'W2']
-});
-
-parser.addArgument(['-x'], {
- help: 'x',
- nargs: '*',
- metavar: ['X1', 'X2']
-});
-
-parser.addArgument(['-y'], {
- help: 'y',
- nargs: 3,
- metavar: ['Y1', 'Y2', 'Y3']
-});
-
-parser.addArgument(['-z'], {
- help: 'z',
- nargs: '?',
- metavar: ['Z1']
-});
-
-helptext = parser.formatHelp();
-print(helptext);
-var ustring = 'PROG [-h] [-w W1 [W2 ...]] [-x [X1 [X2 ...]]] [-y Y1 Y2 Y3] [-z [Z1]]';
-ustring = ustring.replace(/\[/g, '\\[').replace(/\]/g, '\\]');
-// print(ustring)
-assert(helptext.match(new RegExp(ustring)));
-
-/*
-class TestHelpTupleMetavar(HelpTestCase):
- """Test specifying metavar as a tuple"""
-
-usage: PROG [-h] [-w W1 [W2 ...]] [-x [X1 [X2 ...]]] [-y Y1 Y2 Y3] [-z [Z1]]
-
-optional arguments:
- -h, --help show this help message and exit
- -w W1 [W2 ...] w
- -x [X1 [X2 ...]] x
- -y Y1 Y2 Y3 y
- -z [Z1] z
-*/
-
diff --git a/node_modules/js-yaml/node_modules/argparse/index.js b/node_modules/js-yaml/node_modules/argparse/index.js
deleted file mode 100644
index 3b6eea0..0000000
--- a/node_modules/js-yaml/node_modules/argparse/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lib/argparse');
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action.js b/node_modules/js-yaml/node_modules/argparse/lib/action.js
deleted file mode 100644
index 6f7e9a5..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action.js
+++ /dev/null
@@ -1,146 +0,0 @@
-/**
- * class Action
- *
- * Base class for all actions
- * Do not call in your code, use this class only for inherits your own action
- *
- * Information about how to convert command line strings to Javascript objects.
- * Action objects are used by an ArgumentParser to represent the information
- * needed to parse a single argument from one or more strings from the command
- * line. The keyword arguments to the Action constructor are also all attributes
- * of Action instances.
- *
- * #####Alowed keywords:
- *
- * - `store`
- * - `storeConstant`
- * - `storeTrue`
- * - `storeFalse`
- * - `append`
- * - `appendConstant`
- * - `count`
- * - `help`
- * - `version`
- *
- * Information about action options see [[Action.new]]
- *
- * See also [original guide](http://docs.python.org/dev/library/argparse.html#action)
- *
- **/
-
-'use strict';
-
-
-// Constants
-var $$ = require('./const');
-
-
-/**
- * new Action(options)
- *
- * Base class for all actions. Used only for inherits
- *
- *
- * ##### Options:
- *
- * - `optionStrings` A list of command-line option strings for the action.
- * - `dest` Attribute to hold the created object(s)
- * - `nargs` The number of command-line arguments that should be consumed.
- * By default, one argument will be consumed and a single value will be
- * produced.
- * - `constant` Default value for an action with no value.
- * - `defaultValue` The value to be produced if the option is not specified.
- * - `type` Cast to 'string'|'int'|'float'|'complex'|function (string). If
- * None, 'string'.
- * - `choices` The choices available.
- * - `required` True if the action must always be specified at the command
- * line.
- * - `help` The help describing the argument.
- * - `metavar` The name to be used for the option's argument with the help
- * string. If None, the 'dest' value will be used as the name.
- *
- * ##### nargs supported values:
- *
- * - `N` (an integer) consumes N arguments (and produces a list)
- * - `?` consumes zero or one arguments
- * - `*` consumes zero or more arguments (and produces a list)
- * - `+` consumes one or more arguments (and produces a list)
- *
- * Note: that the difference between the default and nargs=1 is that with the
- * default, a single value will be produced, while with nargs=1, a list
- * containing a single value will be produced.
- **/
-var Action = module.exports = function Action(options) {
- options = options || {};
- this.optionStrings = options.optionStrings || [];
- this.dest = options.dest;
- this.nargs = options.nargs !== undefined ? options.nargs : null;
- this.constant = options.constant !== undefined ? options.constant : null;
- this.defaultValue = options.defaultValue;
- this.type = options.type !== undefined ? options.type : null;
- this.choices = options.choices !== undefined ? options.choices : null;
- this.required = options.required !== undefined ? options.required: false;
- this.help = options.help !== undefined ? options.help : null;
- this.metavar = options.metavar !== undefined ? options.metavar : null;
-
- if (!(this.optionStrings instanceof Array)) {
- throw new Error('optionStrings should be an array');
- }
- if (this.required !== undefined && typeof(this.required) !== 'boolean') {
- throw new Error('required should be a boolean');
- }
-};
-
-/**
- * Action#getName -> String
- *
- * Tells action name
- **/
-Action.prototype.getName = function () {
- if (this.optionStrings.length > 0) {
- return this.optionStrings.join('/');
- } else if (this.metavar !== null && this.metavar !== $$.SUPPRESS) {
- return this.metavar;
- } else if (this.dest !== undefined && this.dest !== $$.SUPPRESS) {
- return this.dest;
- }
- return null;
-};
-
-/**
- * Action#isOptional -> Boolean
- *
- * Return true if optional
- **/
-Action.prototype.isOptional = function () {
- return !this.isPositional();
-};
-
-/**
- * Action#isPositional -> Boolean
- *
- * Return true if positional
- **/
-Action.prototype.isPositional = function () {
- return (this.optionStrings.length === 0);
-};
-
-/**
- * Action#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Should be implemented in inherited classes
- *
- * ##### Example
- *
- * ActionCount.prototype.call = function (parser, namespace, values, optionString) {
- * namespace.set(this.dest, (namespace[this.dest] || 0) + 1);
- * };
- *
- **/
-Action.prototype.call = function () {
- throw new Error('.call() not defined');// Not Implemented error
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/append.js b/node_modules/js-yaml/node_modules/argparse/lib/action/append.js
deleted file mode 100644
index 48c6dbe..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/append.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/*:nodoc:*
- * class ActionAppend
- *
- * This action stores a list, and appends each argument value to the list.
- * This is useful to allow an option to be specified multiple times.
- * This class inherided from [[Action]]
- *
- **/
-
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-// Constants
-var $$ = require('../const');
-
-/*:nodoc:*
- * new ActionAppend(options)
- * - options (object): options hash see [[Action.new]]
- *
- * Note: options.nargs should be optional for constants
- * and more then zero for other
- **/
-var ActionAppend = module.exports = function ActionAppend(options) {
- options = options || {};
- if (this.nargs <= 0) {
- throw new Error('nargs for append actions must be > 0; if arg ' +
- 'strings are not supplying the value to append, ' +
- 'the append const action may be more appropriate');
- }
- if (!!this.constant && this.nargs !== $$.OPTIONAL) {
- throw new Error('nargs must be OPTIONAL to supply const');
- }
- Action.call(this, options);
-};
-util.inherits(ActionAppend, Action);
-
-/*:nodoc:*
- * ActionAppend#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionAppend.prototype.call = function (parser, namespace, values) {
- var items = [].concat(namespace[this.dest] || []); // or _.clone
- items.push(values);
- namespace.set(this.dest, items);
-};
-
-
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js b/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js
deleted file mode 100644
index 90747ab..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*:nodoc:*
- * class ActionAppendConstant
- *
- * This stores a list, and appends the value specified by
- * the const keyword argument to the list.
- * (Note that the const keyword argument defaults to null.)
- * The 'appendConst' action is typically useful when multiple
- * arguments need to store constants to the same list.
- *
- * This class inherited from [[Action]]
- **/
-
-'use strict';
-
-var util = require('util');
-
-var Action = require('../../action');
-
-/*:nodoc:*
- * new ActionAppendConstant(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionAppendConstant = module.exports = function ActionAppendConstant(options) {
- options = options || {};
- options.nargs = 0;
- if (options.constant === undefined) {
- throw new Error('constant option is required for appendAction');
- }
- Action.call(this, options);
-};
-util.inherits(ActionAppendConstant, Action);
-
-/*:nodoc:*
- * ActionAppendConstant#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionAppendConstant.prototype.call = function (parser, namespace) {
- var items = [].concat(namespace[this.dest] || []);
- items.push(this.constant);
- namespace.set(this.dest, items);
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/count.js b/node_modules/js-yaml/node_modules/argparse/lib/action/count.js
deleted file mode 100644
index d6a5899..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/count.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/*:nodoc:*
- * class ActionCount
- *
- * This counts the number of times a keyword argument occurs.
- * For example, this is useful for increasing verbosity levels
- *
- * This class inherided from [[Action]]
- *
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-/*:nodoc:*
- * new ActionCount(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionCount = module.exports = function ActionCount(options) {
- options = options || {};
- options.nargs = 0;
-
- Action.call(this, options);
-};
-util.inherits(ActionCount, Action);
-
-/*:nodoc:*
- * ActionCount#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionCount.prototype.call = function (parser, namespace) {
- namespace.set(this.dest, (namespace[this.dest] || 0) + 1);
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/help.js b/node_modules/js-yaml/node_modules/argparse/lib/action/help.js
deleted file mode 100644
index 7f7b4e2..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/help.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*:nodoc:*
- * class ActionHelp
- *
- * Support action for printing help
- * This class inherided from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-// Constants
-var $$ = require('../const');
-
-/*:nodoc:*
- * new ActionHelp(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionHelp = module.exports = function ActionHelp(options) {
- options = options || {};
- if (options.defaultValue !== null) {
- options.defaultValue = options.defaultValue;
- }
- else {
- options.defaultValue = $$.SUPPRESS;
- }
- options.dest = (options.dest !== null ? options.dest: $$.SUPPRESS);
- options.nargs = 0;
- Action.call(this, options);
-
-};
-util.inherits(ActionHelp, Action);
-
-/*:nodoc:*
- * ActionHelp#call(parser, namespace, values, optionString)
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Print help and exit
- **/
-ActionHelp.prototype.call = function (parser) {
- parser.printHelp();
- parser.exit();
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/store.js b/node_modules/js-yaml/node_modules/argparse/lib/action/store.js
deleted file mode 100644
index 8ebc974..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/store.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*:nodoc:*
- * class ActionStore
- *
- * This action just stores the argument’s value. This is the default action.
- *
- * This class inherited from [[Action]]
- *
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-// Constants
-var $$ = require('../const');
-
-
-/*:nodoc:*
- * new ActionStore(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionStore = module.exports = function ActionStore(options) {
- options = options || {};
- if (this.nargs <= 0) {
- throw new Error('nargs for store actions must be > 0; if you ' +
- 'have nothing to store, actions such as store ' +
- 'true or store const may be more appropriate');
-
- }
- if (this.constant !== undefined && this.nargs !== $$.OPTIONAL) {
- throw new Error('nargs must be OPTIONAL to supply const');
- }
- Action.call(this, options);
-};
-util.inherits(ActionStore, Action);
-
-/*:nodoc:*
- * ActionStore#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionStore.prototype.call = function (parser, namespace, values) {
- namespace.set(this.dest, values);
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js b/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js
deleted file mode 100644
index 8410fcf..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*:nodoc:*
- * class ActionStoreConstant
- *
- * This action stores the value specified by the const keyword argument.
- * (Note that the const keyword argument defaults to the rather unhelpful null.)
- * The 'store_const' action is most commonly used with optional
- * arguments that specify some sort of flag.
- *
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../../action');
-
-/*:nodoc:*
- * new ActionStoreConstant(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionStoreConstant = module.exports = function ActionStoreConstant(options) {
- options = options || {};
- options.nargs = 0;
- if (options.constant === undefined) {
- throw new Error('constant option is required for storeAction');
- }
- Action.call(this, options);
-};
-util.inherits(ActionStoreConstant, Action);
-
-/*:nodoc:*
- * ActionStoreConstant#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionStoreConstant.prototype.call = function (parser, namespace) {
- namespace.set(this.dest, this.constant);
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js b/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js
deleted file mode 100644
index 66417bf..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*:nodoc:*
- * class ActionStoreFalse
- *
- * This action store the values False respectively.
- * This is special cases of 'storeConst'
- *
- * This class inherited from [[Action]]
- **/
-
-'use strict';
-
-var util = require('util');
-
-var ActionStoreConstant = require('./constant');
-
-/*:nodoc:*
- * new ActionStoreFalse(options)
- * - options (object): hash of options see [[Action.new]]
- *
- **/
-var ActionStoreFalse = module.exports = function ActionStoreFalse(options) {
- options = options || {};
- options.constant = false;
- options.defaultValue = options.defaultValue !== null ? options.defaultValue: true;
- ActionStoreConstant.call(this, options);
-};
-util.inherits(ActionStoreFalse, ActionStoreConstant);
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js b/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js
deleted file mode 100644
index 43ec708..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*:nodoc:*
- * class ActionStoreTrue
- *
- * This action store the values True respectively.
- * This isspecial cases of 'storeConst'
- *
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var ActionStoreConstant = require('./constant');
-
-/*:nodoc:*
- * new ActionStoreTrue(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionStoreTrue = module.exports = function ActionStoreTrue(options) {
- options = options || {};
- options.constant = true;
- options.defaultValue = options.defaultValue !== null ? options.defaultValue: false;
- ActionStoreConstant.call(this, options);
-};
-util.inherits(ActionStoreTrue, ActionStoreConstant);
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js b/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js
deleted file mode 100644
index adecf65..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js
+++ /dev/null
@@ -1,148 +0,0 @@
-/** internal
- * class ActionSubparsers
- *
- * Support the creation of such sub-commands with the addSubparsers()
- *
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-var format = require('util').format;
-var _ = require('underscore');
-
-
-var Action = require('../action');
-
-// Constants
-var $$ = require('../const');
-
-// Errors
-var argumentErrorHelper = require('../argument/error');
-
-
-/*:nodoc:*
- * new ChoicesPseudoAction(name, help)
- *
- * Create pseudo action for correct help text
- *
- **/
-var ChoicesPseudoAction = function (name, help) {
- var options = {
- optionStrings: [],
- dest: name,
- help: help
- };
-
- Action.call(this, options);
-};
-util.inherits(ChoicesPseudoAction, Action);
-
-/**
- * new ActionSubparsers(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionSubparsers = module.exports = function ActionSubparsers(options) {
- options = options || {};
- options.dest = options.dest || $$.SUPPRESS;
- options.nargs = $$.PARSER;
-
- this.debug = (options.debug === true);
-
- this._progPrefix = options.prog;
- this._parserClass = options.parserClass;
- this._nameParserMap = {};
- this._choicesActions = [];
-
- options.choices = this._nameParserMap;
- Action.call(this, options);
-};
-util.inherits(ActionSubparsers, Action);
-
-/*:nodoc:*
- * ActionSubparsers#addParser(name, options) -> ArgumentParser
- * - name (string): sub-command name
- * - options (object): see [[ArgumentParser.new]]
- *
- * Note:
- * addParser supports an additional aliases option,
- * which allows multiple strings to refer to the same subparser.
- * This example, like svn, aliases co as a shorthand for checkout
- *
- **/
-ActionSubparsers.prototype.addParser = function (name, options) {
- var parser;
-
- var self = this;
-
- options = options || {};
-
- options.debug = (this.debug === true);
-
- // set program from the existing prefix
- if (!options.prog) {
- options.prog = this._progPrefix + ' ' + name;
- }
-
- var aliases = options.aliases || [];
-
- // create a pseudo-action to hold the choice help
- if (!!options.help || _.isString(options.help)) {
- var help = options.help;
- delete options.help;
-
- var choiceAction = new ChoicesPseudoAction(name, help);
- this._choicesActions.push(choiceAction);
- }
-
- // create the parser and add it to the map
- parser = new this._parserClass(options);
- this._nameParserMap[name] = parser;
-
- // make parser available under aliases also
- aliases.forEach(function (alias) {
- self._nameParserMap[alias] = parser;
- });
-
- return parser;
-};
-
-ActionSubparsers.prototype._getSubactions = function () {
- return this._choicesActions;
-};
-
-/*:nodoc:*
- * ActionSubparsers#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Parse input aguments
- **/
-ActionSubparsers.prototype.call = function (parser, namespace, values) {
- var parserName = values[0];
- var argStrings = values.slice(1);
-
- // set the parser name if requested
- if (this.dest !== $$.SUPPRESS) {
- namespace[this.dest] = parserName;
- }
-
- // select the parser
- if (!!this._nameParserMap[parserName]) {
- parser = this._nameParserMap[parserName];
- } else {
- throw argumentErrorHelper(format(
- 'Unknown parser "%s" (choices: [%s]).',
- parserName,
- _.keys(this._nameParserMap).join(', ')
- ));
- }
-
- // parse all the remaining options into the namespace
- parser.parseArgs(argStrings, namespace);
-};
-
-
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action/version.js b/node_modules/js-yaml/node_modules/argparse/lib/action/version.js
deleted file mode 100644
index a17877c..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action/version.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*:nodoc:*
- * class ActionVersion
- *
- * Support action for printing program version
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-//
-// Constants
-//
-var $$ = require('../const');
-
-/*:nodoc:*
- * new ActionVersion(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionVersion = module.exports = function ActionVersion(options) {
- options = options || {};
- options.defaultValue = (!!options.defaultValue ? options.defaultValue: $$.SUPPRESS);
- options.dest = (options.dest || $$.SUPPRESS);
- options.nargs = 0;
- this.version = options.version;
- Action.call(this, options);
-};
-util.inherits(ActionVersion, Action);
-
-/*:nodoc:*
- * ActionVersion#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Print version and exit
- **/
-ActionVersion.prototype.call = function (parser) {
- var version = this.version || parser.version;
- var formatter = parser._getFormatter();
- formatter.addText(version);
- parser.exit(0, formatter.formatHelp());
-};
-
-
-
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/action_container.js b/node_modules/js-yaml/node_modules/argparse/lib/action_container.js
deleted file mode 100644
index dbe3e3c..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/action_container.js
+++ /dev/null
@@ -1,481 +0,0 @@
-/** internal
- * class ActionContainer
- *
- * Action container. Parent for [[ArgumentParser]] and [[ArgumentGroup]]
- **/
-
-'use strict';
-
-var format = require('util').format;
-var _ = require('underscore');
-
-_.str = require('underscore.string');
-
-// Constants
-var $$ = require('./const');
-
-//Actions
-var ActionHelp = require('./action/help');
-var ActionAppend = require('./action/append');
-var ActionAppendConstant = require('./action/append/constant');
-var ActionCount = require('./action/count');
-var ActionStore = require('./action/store');
-var ActionStoreConstant = require('./action/store/constant');
-var ActionStoreTrue = require('./action/store/true');
-var ActionStoreFalse = require('./action/store/false');
-var ActionVersion = require('./action/version');
-var ActionSubparsers = require('./action/subparsers');
-
-// Errors
-var argumentErrorHelper = require('./argument/error');
-
-
-
-/**
- * new ActionContainer(options)
- *
- * Action container. Parent for [[ArgumentParser]] and [[ArgumentGroup]]
- *
- * ##### Options:
- *
- * - `description` -- A description of what the program does
- * - `prefixChars` -- Characters that prefix optional arguments
- * - `argumentDefault` -- The default value for all arguments
- * - `conflictHandler` -- The conflict handler to use for duplicate arguments
- **/
-var ActionContainer = module.exports = function ActionContainer(options) {
- options = options || {};
-
- this.description = options.description;
- this.argumentDefault = options.argumentDefault;
- this.prefixChars = options.prefixChars || '';
- this.conflictHandler = options.conflictHandler;
-
- // set up registries
- this._registries = {};
-
- // register actions
- this.register('action', null, ActionStore);
- this.register('action', 'store', ActionStore);
- this.register('action', 'storeConst', ActionStoreConstant);
- this.register('action', 'storeTrue', ActionStoreTrue);
- this.register('action', 'storeFalse', ActionStoreFalse);
- this.register('action', 'append', ActionAppend);
- this.register('action', 'appendConst', ActionAppendConstant);
- this.register('action', 'count', ActionCount);
- this.register('action', 'help', ActionHelp);
- this.register('action', 'version', ActionVersion);
- this.register('action', 'parsers', ActionSubparsers);
-
- // raise an exception if the conflict handler is invalid
- this._getHandler();
-
- // action storage
- this._actions = [];
- this._optionStringActions = {};
-
- // groups
- this._actionGroups = [];
- this._mutuallyExclusiveGroups = [];
-
- // defaults storage
- this._defaults = {};
-
- // determines whether an "option" looks like a negative number
- // -1, -1.5 -5e+4
- this._regexpNegativeNumber = new RegExp('^[-]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?$');
-
- // whether or not there are any optionals that look like negative
- // numbers -- uses a list so it can be shared and edited
- this._hasNegativeNumberOptionals = [];
-};
-
-// Groups must be required, then ActionContainer already defined
-var ArgumentGroup = require('./argument/group');
-var MutuallyExclusiveGroup = require('./argument/exclusive');
-
-//
-// Registration methods
-//
-
-/**
- * ActionContainer#register(registryName, value, object) -> Void
- * - registryName (String) : object type action|type
- * - value (string) : keyword
- * - object (Object|Function) : handler
- *
- * Register handlers
- **/
-ActionContainer.prototype.register = function (registryName, value, object) {
- this._registries[registryName] = this._registries[registryName] || {};
- this._registries[registryName][value] = object;
-};
-
-ActionContainer.prototype._registryGet = function (registryName, value, defaultValue) {
- if (3 > arguments.length) {
- defaultValue = null;
- }
- return this._registries[registryName][value] || defaultValue;
-};
-
-//
-// Namespace default accessor methods
-//
-
-/**
- * ActionContainer#setDefaults(options) -> Void
- * - options (object):hash of options see [[Action.new]]
- *
- * Set defaults
- **/
-ActionContainer.prototype.setDefaults = function (options) {
- options = options || {};
- for (var property in options) {
- this._defaults[property] = options[property];
- }
-
- // if these defaults match any existing arguments, replace the previous
- // default on the object with the new one
- this._actions.forEach(function (action) {
- if (action.dest in options) {
- action.defaultValue = options[action.dest];
- }
- });
-};
-
-/**
- * ActionContainer#getDefault(dest) -> Mixed
- * - dest (string): action destination
- *
- * Return action default value
- **/
-ActionContainer.prototype.getDefault = function (dest) {
- var result = (_.has(this._defaults, dest)) ? this._defaults[dest] : null;
-
- this._actions.forEach(function (action) {
- if (action.dest === dest && _.has(action, 'defaultValue')) {
- result = action.defaultValue;
- }
- });
-
- return result;
-};
-//
-// Adding argument actions
-//
-
-/**
- * ActionContainer#addArgument(args, options) -> Object
- * - args (Array): array of argument keys
- * - options (Object): action objects see [[Action.new]]
- *
- * #### Examples
- * - addArgument([-f, --foo], {action:'store', defaultValue=1, ...})
- * - addArgument(['bar'], action: 'store', nargs:1, ...})
- **/
-ActionContainer.prototype.addArgument = function (args, options) {
- args = args;
- options = options || {};
-
- if (!_.isArray(args)) {
- throw new TypeError('addArgument first argument should be an array');
- }
- if (!_.isObject(options) || _.isArray(options)) {
- throw new TypeError('addArgument second argument should be a hash');
- }
-
- // if no positional args are supplied or only one is supplied and
- // it doesn't look like an option string, parse a positional argument
- if (!args || args.length === 1 && this.prefixChars.indexOf(args[0][0]) < 0) {
- if (args && !!options.dest) {
- throw new Error('dest supplied twice for positional argument');
- }
- options = this._getPositional(args, options);
-
- // otherwise, we're adding an optional argument
- } else {
- options = this._getOptional(args, options);
- }
-
- // if no default was supplied, use the parser-level default
- if (_.isUndefined(options.defaultValue)) {
- var dest = options.dest;
- if (_.has(this._defaults, dest)) {
- options.defaultValue = this._defaults[dest];
- } else if (!_.isUndefined(this.argumentDefault)) {
- options.defaultValue = this.argumentDefault;
- }
- }
-
- // create the action object, and add it to the parser
- var ActionClass = this._popActionClass(options);
- if (! _.isFunction(ActionClass)) {
- throw new Error(format('Unknown action "%s".', ActionClass));
- }
- var action = new ActionClass(options);
-
- // throw an error if the action type is not callable
- var typeFunction = this._registryGet('type', action.type, action.type);
- if (!_.isFunction(typeFunction)) {
- throw new Error(format('"%s" is not callable', typeFunction));
- }
-
- return this._addAction(action);
-};
-
-/**
- * ActionContainer#addArgumentGroup(options) -> ArgumentGroup
- * - options (Object): hash of options see [[ArgumentGroup.new]]
- *
- * Create new arguments groups
- **/
-ActionContainer.prototype.addArgumentGroup = function (options) {
- var group = new ArgumentGroup(this, options);
- this._actionGroups.push(group);
- return group;
-};
-
-/**
- * ActionContainer#addMutuallyExclusiveGroup(options) -> ArgumentGroup
- * - options (Object): {required: false}
- *
- * Create new mutual exclusive groups
- **/
-ActionContainer.prototype.addMutuallyExclusiveGroup = function (options) {
- var group = new MutuallyExclusiveGroup(this, options);
- this._mutuallyExclusiveGroups.push(group);
- return group;
-};
-
-ActionContainer.prototype._addAction = function (action) {
- var self = this;
-
- // resolve any conflicts
- this._checkConflict(action);
-
- // add to actions list
- this._actions.push(action);
- action.container = this;
-
- // index the action by any option strings it has
- action.optionStrings.forEach(function (optionString) {
- self._optionStringActions[optionString] = action;
- });
-
- // set the flag if any option strings look like negative numbers
- action.optionStrings.forEach(function (optionString) {
- if (optionString.match(self._regexpNegativeNumber)) {
- if (!_.any(self._hasNegativeNumberOptionals)) {
- self._hasNegativeNumberOptionals.push(true);
- }
- }
- });
-
- // return the created action
- return action;
-};
-
-ActionContainer.prototype._removeAction = function (action) {
- var actionIndex = this._actions.indexOf(action);
- if (actionIndex >= 0) {
- this._actions.splice(actionIndex, 1);
- }
-};
-
-ActionContainer.prototype._addContainerActions = function (container) {
- // collect groups by titles
- var titleGroupMap = {};
- this._actionGroups.forEach(function (group) {
- if (titleGroupMap[group.title]) {
- throw new Error(format('Cannot merge actions - two groups are named "%s".', group.title));
- }
- titleGroupMap[group.title] = group;
- });
-
- // map each action to its group
- var groupMap = {};
- function actionHash(action) {
- // unique (hopefully?) string suitable as dictionary key
- return action.getName();
- }
- container._actionGroups.forEach(function (group) {
- // if a group with the title exists, use that, otherwise
- // create a new group matching the container's group
- if (!titleGroupMap[group.title]) {
- titleGroupMap[group.title] = this.addArgumentGroup({
- title: group.title,
- description: group.description
- });
- }
-
- // map the actions to their new group
- group._groupActions.forEach(function (action) {
- groupMap[actionHash(action)] = titleGroupMap[group.title];
- });
- }, this);
-
- // add container's mutually exclusive groups
- // NOTE: if add_mutually_exclusive_group ever gains title= and
- // description= then this code will need to be expanded as above
- var mutexGroup;
- container._mutuallyExclusiveGroups.forEach(function (group) {
- mutexGroup = this.addMutuallyExclusiveGroup({
- required: group.required
- });
- // map the actions to their new mutex group
- group._groupActions.forEach(function (action) {
- groupMap[actionHash(action)] = mutexGroup;
- });
- }, this); // forEach takes a 'this' argument
-
- // add all actions to this container or their group
- container._actions.forEach(function (action) {
- var key = actionHash(action);
- if (!!groupMap[key]) {
- groupMap[key]._addAction(action);
- }
- else
- {
- this._addAction(action);
- }
- });
-};
-
-ActionContainer.prototype._getPositional = function (dest, options) {
- if (_.isArray(dest)) {
- dest = _.first(dest);
- }
- // make sure required is not specified
- if (options.required) {
- throw new Error('"required" is an invalid argument for positionals.');
- }
-
- // mark positional arguments as required if at least one is
- // always required
- if (options.nargs !== $$.OPTIONAL && options.nargs !== $$.ZERO_OR_MORE) {
- options.required = true;
- }
- if (options.nargs === $$.ZERO_OR_MORE && options.defaultValue === undefined) {
- options.required = true;
- }
-
- // return the keyword arguments with no option strings
- options.dest = dest;
- options.optionStrings = [];
- return options;
-};
-
-ActionContainer.prototype._getOptional = function (args, options) {
- var prefixChars = this.prefixChars;
- var optionStrings = [];
- var optionStringsLong = [];
-
- // determine short and long option strings
- args.forEach(function (optionString) {
- // error on strings that don't start with an appropriate prefix
- if (prefixChars.indexOf(optionString[0]) < 0) {
- throw new Error(format('Invalid option string "%s": must start with a "%s".',
- optionString,
- prefixChars
- ));
- }
-
- // strings starting with two prefix characters are long options
- optionStrings.push(optionString);
- if (optionString.length > 1 && prefixChars.indexOf(optionString[1]) >= 0) {
- optionStringsLong.push(optionString);
- }
- });
-
- // infer dest, '--foo-bar' -> 'foo_bar' and '-x' -> 'x'
- var dest = options.dest || null;
- delete options.dest;
-
- if (!dest) {
- var optionStringDest = optionStringsLong.length ? optionStringsLong[0] :optionStrings[0];
- dest = _.str.strip(optionStringDest, this.prefixChars);
-
- if (dest.length === 0) {
- throw new Error(
- format('dest= is required for options like "%s"', optionStrings.join(', '))
- );
- }
- dest = dest.replace(/-/g, '_');
- }
-
- // return the updated keyword arguments
- options.dest = dest;
- options.optionStrings = optionStrings;
-
- return options;
-};
-
-ActionContainer.prototype._popActionClass = function (options, defaultValue) {
- defaultValue = defaultValue || null;
-
- var action = (options.action || defaultValue);
- delete options.action;
-
- var actionClass = this._registryGet('action', action, action);
- return actionClass;
-};
-
-ActionContainer.prototype._getHandler = function () {
- var handlerString = this.conflictHandler;
- var handlerFuncName = "_handleConflict" + _.str.capitalize(handlerString);
- var func = this[handlerFuncName];
- if (typeof func === 'undefined') {
- var msg = "invalid conflict resolution value: " + handlerString;
- throw new Error(msg);
- } else {
- return func;
- }
-};
-
-ActionContainer.prototype._checkConflict = function (action) {
- var optionStringActions = this._optionStringActions;
- var conflictOptionals = [];
-
- // find all options that conflict with this option
- // collect pairs, the string, and an existing action that it conflicts with
- action.optionStrings.forEach(function (optionString) {
- var conflOptional = optionStringActions[optionString];
- if (typeof conflOptional !== 'undefined') {
- conflictOptionals.push([optionString, conflOptional]);
- }
- });
-
- if (conflictOptionals.length > 0) {
- var conflictHandler = this._getHandler();
- conflictHandler.call(this, action, conflictOptionals);
- }
-};
-
-ActionContainer.prototype._handleConflictError = function (action, conflOptionals) {
- var conflicts = _.map(conflOptionals, function (pair) {return pair[0]; });
- conflicts = conflicts.join(', ');
- throw argumentErrorHelper(
- action,
- format('Conflicting option string(s): %s', conflicts)
- );
-};
-
-ActionContainer.prototype._handleConflictResolve = function (action, conflOptionals) {
- // remove all conflicting options
- var self = this;
- conflOptionals.forEach(function (pair) {
- var optionString = pair[0];
- var conflictingAction = pair[1];
- // remove the conflicting option string
- var i = conflictingAction.optionStrings.indexOf(optionString);
- if (i >= 0) {
- conflictingAction.optionStrings.splice(i, 1);
- }
- delete self._optionStringActions[optionString];
- // if the option now has no option string, remove it from the
- // container holding it
- if (conflictingAction.optionStrings.length === 0) {
- conflictingAction.container._removeAction(conflictingAction);
- }
- });
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/argparse.js b/node_modules/js-yaml/node_modules/argparse/lib/argparse.js
deleted file mode 100644
index f2a2c51..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/argparse.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports.ArgumentParser = require('./argument_parser.js');
-module.exports.Namespace = require('./namespace');
-module.exports.Action = require('./action');
-module.exports.HelpFormatter = require('./help/formatter.js');
-module.exports.Const = require('./const.js');
-
-module.exports.ArgumentDefaultsHelpFormatter =
- require('./help/added_formatters.js').ArgumentDefaultsHelpFormatter;
-module.exports.RawDescriptionHelpFormatter =
- require('./help/added_formatters.js').RawDescriptionHelpFormatter;
-module.exports.RawTextHelpFormatter =
- require('./help/added_formatters.js').RawTextHelpFormatter;
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js b/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js
deleted file mode 100644
index c8a02a0..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-
-
-var format = require('util').format;
-
-
-var ERR_CODE = 'ARGError';
-
-/*:nodoc:*
- * argumentError(argument, message) -> TypeError
- * - argument (Object): action with broken argument
- * - message (String): error message
- *
- * Error format helper. An error from creating or using an argument
- * (optional or positional). The string value of this exception
- * is the message, augmented with information
- * about the argument that caused it.
- *
- * #####Example
- *
- * var argumentErrorHelper = require('./argument/error');
- * if (conflictOptionals.length > 0) {
- * throw argumentErrorHelper(
- * action,
- * format('Conflicting option string(s): %s', conflictOptionals.join(', '))
- * );
- * }
- *
- **/
-module.exports = function (argument, message) {
- var argumentName = null;
- var errMessage;
- var err;
-
- if (argument.getName) {
- argumentName = argument.getName();
- } else {
- argumentName = '' + argument;
- }
-
- if (!argumentName) {
- errMessage = message;
- } else {
- errMessage = format('argument "%s": %s', argumentName, message);
- }
-
- err = new TypeError(errMessage);
- err.code = ERR_CODE;
- return err;
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js b/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js
deleted file mode 100644
index 8287e00..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/** internal
- * class MutuallyExclusiveGroup
- *
- * Group arguments.
- * By default, ArgumentParser groups command-line arguments
- * into “positional arguments” and “optional arguments”
- * when displaying help messages. When there is a better
- * conceptual grouping of arguments than this default one,
- * appropriate groups can be created using the addArgumentGroup() method
- *
- * This class inherited from [[ArgumentContainer]]
- **/
-'use strict';
-
-var util = require('util');
-
-var ArgumentGroup = require('./group');
-
-/**
- * new MutuallyExclusiveGroup(container, options)
- * - container (object): main container
- * - options (object): options.required -> true/false
- *
- * `required` could be an argument itself, but making it a property of
- * the options argument is more consistent with the JS adaptation of the Python)
- **/
-var MutuallyExclusiveGroup = module.exports = function MutuallyExclusiveGroup(container, options) {
- var required;
- options = options || {};
- required = options.required || false;
- ArgumentGroup.call(this, container);
- this.required = required;
-
-};
-util.inherits(MutuallyExclusiveGroup, ArgumentGroup);
-
-
-MutuallyExclusiveGroup.prototype._addAction = function (action) {
- var msg;
- if (action.required) {
- msg = 'mutually exclusive arguments must be optional';
- throw new Error(msg);
- }
- action = this._container._addAction(action);
- this._groupActions.push(action);
- return action;
-};
-
-
-MutuallyExclusiveGroup.prototype._removeAction = function (action) {
- this._container._removeAction(action);
- this._groupActions.remove(action);
-};
-
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js b/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js
deleted file mode 100644
index 58b271f..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/** internal
- * class ArgumentGroup
- *
- * Group arguments.
- * By default, ArgumentParser groups command-line arguments
- * into “positional arguments” and “optional arguments”
- * when displaying help messages. When there is a better
- * conceptual grouping of arguments than this default one,
- * appropriate groups can be created using the addArgumentGroup() method
- *
- * This class inherited from [[ArgumentContainer]]
- **/
-'use strict';
-
-var util = require('util');
-
-var ActionContainer = require('../action_container');
-
-
-/**
- * new ArgumentGroup(container, options)
- * - container (object): main container
- * - options (object): hash of group options
- *
- * #### options
- * - **prefixChars** group name prefix
- * - **argumentDefault** default argument value
- * - **title** group title
- * - **description** group description
- *
- **/
-var ArgumentGroup = module.exports = function ArgumentGroup(container, options) {
-
- options = options || {};
-
- // add any missing keyword arguments by checking the container
- options.conflictHandler = (options.conflictHandler || container.conflictHandler);
- options.prefixChars = (options.prefixChars || container.prefixChars);
- options.argumentDefault = (options.argumentDefault || container.argumentDefault);
-
- ActionContainer.call(this, options);
-
- // group attributes
- this.title = options.title;
- this._groupActions = [];
-
- // share most attributes with the container
- this._container = container;
- this._registries = container._registries;
- this._actions = container._actions;
- this._optionStringActions = container._optionStringActions;
- this._defaults = container._defaults;
- this._hasNegativeNumberOptionals = container._hasNegativeNumberOptionals;
- this._mutuallyExclusiveGroups = container._mutuallyExclusiveGroups;
-};
-util.inherits(ArgumentGroup, ActionContainer);
-
-
-ArgumentGroup.prototype._addAction = function (action) {
- // Parent add action
- action = ActionContainer.prototype._addAction.call(this, action);
- this._groupActions.push(action);
- return action;
-};
-
-
-ArgumentGroup.prototype._removeAction = function (action) {
- // Parent remove action
- ActionContainer.prototype._removeAction.call(this, action);
- var actionIndex = this._groupActions.indexOf(action);
- if (actionIndex >= 0) {
- this._groupActions.splice(actionIndex, 1);
- }
-};
-
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js b/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js
deleted file mode 100644
index 97cf098..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js
+++ /dev/null
@@ -1,1165 +0,0 @@
-/**
- * class ArgumentParser
- *
- * Object for parsing command line strings into js objects.
- *
- * Inherited from [[ActionContainer]]
- **/
-'use strict';
-
-var util = require('util');
-var format = require('util').format;
-var Path = require('path');
-
-var _ = require('underscore');
-_.str = require('underscore.string');
-
-// Constants
-var $$ = require('./const');
-
-var ActionContainer = require('./action_container');
-
-// Errors
-var argumentErrorHelper = require('./argument/error');
-
-var HelpFormatter = require('./help/formatter');
-
-var Namespace = require('./namespace');
-
-
-/**
- * new ArgumentParser(options)
- *
- * Create a new ArgumentParser object.
- *
- * ##### Options:
- * - `prog` The name of the program (default: sys.argv[0])
- * - `usage` A usage message (default: auto-generated from arguments)
- * - `description` A description of what the program does
- * - `epilog` Text following the argument descriptions
- * - `parents` Parsers whose arguments should be copied into this one
- * - `formatterClass` HelpFormatter class for printing help messages
- * - `prefixChars` Characters that prefix optional arguments
- * - `fromfilePrefixChars` Characters that prefix files containing additional arguments
- * - `argumentDefault` The default value for all arguments
- * - `addHelp` Add a -h/-help option
- * - `conflictHandler` Specifies how to handle conflicting argument names
- * - `debug` Enable debug mode. Argument errors throw exception in
- * debug mode and process.exit in normal. Used for development and
- * testing (default: false)
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#argumentparser-objects
- **/
-var ArgumentParser = module.exports = function ArgumentParser(options) {
- var self = this;
- options = options || {};
-
- options.description = (options.description || null);
- options.argumentDefault = (options.argumentDefault || null);
- options.prefixChars = (options.prefixChars || '-');
- options.conflictHandler = (options.conflictHandler || 'error');
- ActionContainer.call(this, options);
-
- options.addHelp = (options.addHelp === undefined || !!options.addHelp);
- options.parents = (options.parents || []);
- // default program name
- options.prog = (options.prog || Path.basename(process.argv[1]));
- this.prog = options.prog;
- this.usage = options.usage;
- this.epilog = options.epilog;
- this.version = options.version;
-
- this.debug = (options.debug === true);
-
- this.formatterClass = (options.formatterClass || HelpFormatter);
- this.fromfilePrefixChars = options.fromfilePrefixChars || null;
- this._positionals = this.addArgumentGroup({title: 'Positional arguments'});
- this._optionals = this.addArgumentGroup({title: 'Optional arguments'});
- this._subparsers = null;
-
- // register types
- var FUNCTION_IDENTITY = function (o) {
- return o;
- };
- this.register('type', 'auto', FUNCTION_IDENTITY);
- this.register('type', null, FUNCTION_IDENTITY);
- this.register('type', 'int', function (x) {
- var result = parseInt(x, 10);
- if (isNaN(result)) {
- throw new Error(x + ' is not a valid integer.');
- }
- return result;
- });
- this.register('type', 'float', function (x) {
- var result = parseFloat(x);
- if (isNaN(result)) {
- throw new Error(x + ' is not a valid float.');
- }
- return result;
- });
- this.register('type', 'string', function (x) {
- return '' + x;
- });
-
- // add help and version arguments if necessary
- var defaultPrefix = (this.prefixChars.indexOf('-') > -1) ? '-' : this.prefixChars[0];
- if (options.addHelp) {
- this.addArgument(
- [defaultPrefix + 'h', defaultPrefix + defaultPrefix + 'help'],
- {
- action: 'help',
- defaultValue: $$.SUPPRESS,
- help: 'Show this help message and exit.'
- }
- );
- }
- if (this.version !== undefined) {
- this.addArgument(
- [defaultPrefix + 'v', defaultPrefix + defaultPrefix + 'version'],
- {
- action: 'version',
- version: this.version,
- defaultValue: $$.SUPPRESS,
- help: "Show program's version number and exit."
- }
- );
- }
-
- // add parent arguments and defaults
- options.parents.forEach(function (parent) {
- self._addContainerActions(parent);
- if (parent._defaults !== undefined) {
- for (var defaultKey in parent._defaults) {
- if (parent._defaults.hasOwnProperty(defaultKey)) {
- self._defaults[defaultKey] = parent._defaults[defaultKey];
- }
- }
- }
- });
-
-};
-util.inherits(ArgumentParser, ActionContainer);
-
-/**
- * ArgumentParser#addSubparsers(options) -> [[ActionSubparsers]]
- * - options (object): hash of options see [[ActionSubparsers.new]]
- *
- * See also [subcommands][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#sub-commands
- **/
-ArgumentParser.prototype.addSubparsers = function (options) {
- if (!!this._subparsers) {
- this.error('Cannot have multiple subparser arguments.');
- }
-
- options = options || {};
- options.debug = (this.debug === true);
- options.optionStrings = [];
- options.parserClass = (options.parserClass || ArgumentParser);
-
-
- if (!!options.title || !!options.description) {
-
- this._subparsers = this.addArgumentGroup({
- title: (options.title || 'subcommands'),
- description: options.description
- });
- delete options.title;
- delete options.description;
-
- } else {
- this._subparsers = this._positionals;
- }
-
- // prog defaults to the usage message of this parser, skipping
- // optional arguments and with no "usage:" prefix
- if (!options.prog) {
- var formatter = this._getFormatter();
- var positionals = this._getPositionalActions();
- var groups = this._mutuallyExclusiveGroups;
- formatter.addUsage(this.usage, positionals, groups, '');
- options.prog = _.str.strip(formatter.formatHelp());
- }
-
- // create the parsers action and add it to the positionals list
- var ParsersClass = this._popActionClass(options, 'parsers');
- var action = new ParsersClass(options);
- this._subparsers._addAction(action);
-
- // return the created parsers action
- return action;
-};
-
-ArgumentParser.prototype._addAction = function (action) {
- if (action.isOptional()) {
- this._optionals._addAction(action);
- } else {
- this._positionals._addAction(action);
- }
- return action;
-};
-
-ArgumentParser.prototype._getOptionalActions = function () {
- return this._actions.filter(function (action) {
- return action.isOptional();
- });
-};
-
-ArgumentParser.prototype._getPositionalActions = function () {
- return this._actions.filter(function (action) {
- return action.isPositional();
- });
-};
-
-
-/**
- * ArgumentParser#parseArgs(args, namespace) -> Namespace|Object
- * - args (array): input elements
- * - namespace (Namespace|Object): result object
- *
- * Parsed args and throws error if some arguments are not recognized
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#the-parse-args-method
- **/
-ArgumentParser.prototype.parseArgs = function (args, namespace) {
- var argv;
- var result = this.parseKnownArgs(args, namespace);
-
- args = result[0];
- argv = result[1];
- if (argv && argv.length > 0) {
- this.error(
- format('Unrecognized arguments: %s.', argv.join(' '))
- );
- }
- return args;
-};
-
-/**
- * ArgumentParser#parseKnownArgs(args, namespace) -> array
- * - args (array): input options
- * - namespace (Namespace|Object): result object
- *
- * Parse known arguments and return tuple of result object
- * and unknown args
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#partial-parsing
- **/
-ArgumentParser.prototype.parseKnownArgs = function (args, namespace) {
- var self = this;
-
- // args default to the system args
- args = args || process.argv.slice(2);
-
- // default Namespace built from parser defaults
- namespace = namespace || new Namespace();
-
- self._actions.forEach(function (action) {
- if (action.dest !== $$.SUPPRESS) {
- if (!_.has(namespace, action.dest)) {
- if (action.defaultValue !== $$.SUPPRESS) {
- var defaultValue = action.defaultValue;
- if (_.isString(action.defaultValue)) {
- defaultValue = self._getValue(action, defaultValue);
- }
- namespace[action.dest] = defaultValue;
- }
- }
- }
- });
-
- _.keys(self._defaults).forEach(function (dest) {
- namespace[dest] = self._defaults[dest];
- });
-
- // parse the arguments and exit if there are any errors
- try {
- var res = this._parseKnownArgs(args, namespace);
-
- namespace = res[0];
- args = res[1];
- if (_.has(namespace, $$._UNRECOGNIZED_ARGS_ATTR)) {
- args = _.union(args, namespace[$$._UNRECOGNIZED_ARGS_ATTR]);
- delete namespace[$$._UNRECOGNIZED_ARGS_ATTR];
- }
- return [namespace, args];
- } catch (e) {
- this.error(e);
- }
-};
-
-ArgumentParser.prototype._parseKnownArgs = function (argStrings, namespace) {
- var self = this;
-
- var extras = [];
-
- // replace arg strings that are file references
- if (this.fromfilePrefixChars !== null) {
- argStrings = this._readArgsFromFiles(argStrings);
- }
- // map all mutually exclusive arguments to the other arguments
- // they can't occur with
- // Python has 'conflicts = action_conflicts.setdefault(mutex_action, [])'
- // though I can't conceive of a way in which an action could be a member
- // of two different mutually exclusive groups.
-
- function actionHash(action) {
- // some sort of hashable key for this action
- // action itself cannot be a key in actionConflicts
- // I think getName() (join of optionStrings) is unique enough
- return action.getName();
- }
- var conflicts, key;
- var actionConflicts = {};
- this._mutuallyExclusiveGroups.forEach(function (mutexGroup) {
- mutexGroup._groupActions.forEach(function (mutexAction, i, groupActions) {
- key = actionHash(mutexAction);
- if (!_.has(actionConflicts, key)) {
- actionConflicts[key] = [];
- }
- conflicts = actionConflicts[key];
- conflicts.push.apply(conflicts, groupActions.slice(0, i));
- conflicts.push.apply(conflicts, groupActions.slice(i + 1));
- });
- });
-
- // find all option indices, and determine the arg_string_pattern
- // which has an 'O' if there is an option at an index,
- // an 'A' if there is an argument, or a '-' if there is a '--'
- var optionStringIndices = {};
-
- var argStringPatternParts = [];
-
- argStrings.forEach(function (argString, argStringIndex) {
- if (argString === '--') {
- argStringPatternParts.push('-');
- while (argStringIndex < argStrings.length) {
- argStringPatternParts.push('A');
- argStringIndex++;
- }
- }
- // otherwise, add the arg to the arg strings
- // and note the index if it was an option
- else {
- var pattern;
- var optionTuple = self._parseOptional(argString);
- if (!optionTuple) {
- pattern = 'A';
- }
- else {
- optionStringIndices[argStringIndex] = optionTuple;
- pattern = 'O';
- }
- argStringPatternParts.push(pattern);
- }
- });
- var argStringsPattern = argStringPatternParts.join('');
-
- var seenActions = [];
- var seenNonDefaultActions = [];
-
-
- function takeAction(action, argumentStrings, optionString) {
- seenActions.push(action);
- var argumentValues = self._getValues(action, argumentStrings);
-
- // error if this argument is not allowed with other previously
- // seen arguments, assuming that actions that use the default
- // value don't really count as "present"
- if (argumentValues !== action.defaultValue) {
- seenNonDefaultActions.push(action);
- if (!!actionConflicts[actionHash(action)]) {
- actionConflicts[actionHash(action)].forEach(function (actionConflict) {
- if (seenNonDefaultActions.indexOf(actionConflict) >= 0) {
- throw argumentErrorHelper(
- action,
- format('Not allowed with argument "%s".', actionConflict.getName())
- );
- }
- });
- }
- }
-
- if (argumentValues !== $$.SUPPRESS) {
- action.call(self, namespace, argumentValues, optionString);
- }
- }
-
- function consumeOptional(startIndex) {
- // get the optional identified at this index
- var optionTuple = optionStringIndices[startIndex];
- var action = optionTuple[0];
- var optionString = optionTuple[1];
- var explicitArg = optionTuple[2];
-
- // identify additional optionals in the same arg string
- // (e.g. -xyz is the same as -x -y -z if no args are required)
- var actionTuples = [];
-
- var args, argCount, start, stop;
-
- while (true) {
- if (!action) {
- extras.push(argStrings[startIndex]);
- return startIndex + 1;
- }
- if (!!explicitArg) {
- argCount = self._matchArgument(action, 'A');
-
- // if the action is a single-dash option and takes no
- // arguments, try to parse more single-dash options out
- // of the tail of the option string
- var chars = self.prefixChars;
- if (argCount === 0 && chars.indexOf(optionString[1]) < 0) {
- actionTuples.push([action, [], optionString]);
- optionString = optionString[0] + explicitArg[0];
- var newExplicitArg = explicitArg.slice(1) || null;
- var optionalsMap = self._optionStringActions;
-
- if (_.keys(optionalsMap).indexOf(optionString) >= 0) {
- action = optionalsMap[optionString];
- explicitArg = newExplicitArg;
- }
- else {
- var msg = 'ignored explicit argument %r';
- throw argumentErrorHelper(action, msg);
- }
- }
- // if the action expect exactly one argument, we've
- // successfully matched the option; exit the loop
- else if (argCount === 1) {
- stop = startIndex + 1;
- args = [explicitArg];
- actionTuples.push([action, args, optionString]);
- break;
- }
- // error if a double-dash option did not use the
- // explicit argument
- else {
- var message = 'ignored explicit argument %r';
- throw argumentErrorHelper(action, _.str.sprintf(message, explicitArg));
- }
- }
- // if there is no explicit argument, try to match the
- // optional's string arguments with the following strings
- // if successful, exit the loop
- else {
-
- start = startIndex + 1;
- var selectedPatterns = argStringsPattern.substr(start);
-
- argCount = self._matchArgument(action, selectedPatterns);
- stop = start + argCount;
-
-
- args = argStrings.slice(start, stop);
-
- actionTuples.push([action, args, optionString]);
- break;
- }
-
- }
-
- // add the Optional to the list and return the index at which
- // the Optional's string args stopped
- if (actionTuples.length < 1) {
- throw new Error('length should be > 0');
- }
- for (var i = 0; i < actionTuples.length; i++) {
- takeAction.apply(self, actionTuples[i]);
- }
- return stop;
- }
-
- // the list of Positionals left to be parsed; this is modified
- // by consume_positionals()
- var positionals = self._getPositionalActions();
-
- function consumePositionals(startIndex) {
- // match as many Positionals as possible
- var selectedPattern = argStringsPattern.substr(startIndex);
- var argCounts = self._matchArgumentsPartial(positionals, selectedPattern);
-
- // slice off the appropriate arg strings for each Positional
- // and add the Positional and its args to the list
- _.zip(positionals, argCounts).forEach(function (item) {
- var action = item[0];
- var argCount = item[1];
- if (argCount === undefined) {
- return;
- }
- var args = argStrings.slice(startIndex, startIndex + argCount);
-
- startIndex += argCount;
- takeAction(action, args);
- });
-
- // slice off the Positionals that we just parsed and return the
- // index at which the Positionals' string args stopped
- positionals = positionals.slice(argCounts.length);
- return startIndex;
- }
-
- // consume Positionals and Optionals alternately, until we have
- // passed the last option string
- var startIndex = 0;
- var position;
-
- var maxOptionStringIndex = -1;
- if (!!optionStringIndices) {
- for (position in optionStringIndices) {
- maxOptionStringIndex = Math.max(maxOptionStringIndex, parseInt(position, 10));
- }
- }
-
- var positionalsEndIndex, nextOptionStringIndex;
-
- while (startIndex <= maxOptionStringIndex) {
- // consume any Positionals preceding the next option
- nextOptionStringIndex = null;
- for (position in optionStringIndices) {
- position = parseInt(position, 10);
- if (position >= startIndex) {
- if (nextOptionStringIndex !== null) {
- nextOptionStringIndex = Math.min(nextOptionStringIndex, position);
- }
- else {
- nextOptionStringIndex = position;
- }
- }
- }
-
- if (startIndex !== nextOptionStringIndex) {
- positionalsEndIndex = consumePositionals(startIndex);
- // only try to parse the next optional if we didn't consume
- // the option string during the positionals parsing
- if (positionalsEndIndex > startIndex) {
- startIndex = positionalsEndIndex;
- continue;
- }
- else {
- startIndex = positionalsEndIndex;
- }
- }
-
- // if we consumed all the positionals we could and we're not
- // at the index of an option string, there were extra arguments
- if (!optionStringIndices[startIndex]) {
- var strings = argStrings.slice(startIndex, nextOptionStringIndex);
- extras = extras.concat(strings);
- startIndex = nextOptionStringIndex;
- }
- // consume the next optional and any arguments for it
- startIndex = consumeOptional(startIndex);
- }
-
- // consume any positionals following the last Optional
- var stopIndex = consumePositionals(startIndex);
-
- // if we didn't consume all the argument strings, there were extras
- extras = extras.concat(_.rest(argStrings, stopIndex));
-
- // if we didn't use all the Positional objects, there were too few
- // arg strings supplied.
- if (positionals.length > 0) {
- self.error('too few arguments');
- }
-
- // make sure all required actions were present
- self._actions.forEach(function (action) {
- if (action.required) {
- if (_.indexOf(seenActions, action) < 0) {
- self.error(format('Argument "%s" is required', action.getName()));
- }
- }
- });
-
- // make sure all required groups have one option present
- var actionUsed = false;
- self._mutuallyExclusiveGroups.forEach(function (group) {
- if (group.required) {
- actionUsed = _.any(group._groupActions, function (action) {
- return _.contains(seenNonDefaultActions, action);
- });
-
- // if no actions were used, report the error
- if (!actionUsed) {
- var names = [];
- group._groupActions.forEach(function (action) {
- if (action.help !== $$.SUPPRESS) {
- names.push(action.getName());
- }
- });
- names = names.join(' ');
- var msg = 'one of the arguments ' + names + ' is required';
- self.error(msg);
- }
- }
- });
-
- // return the updated namespace and the extra arguments
- return [namespace, extras];
-};
-
-ArgumentParser.prototype._readArgsFromFiles = function (argStrings) {
- // expand arguments referencing files
- var _this = this;
- var fs = require('fs');
- var newArgStrings = [];
- argStrings.forEach(function (argString) {
- if (_this.fromfilePrefixChars.indexOf(argString[0]) < 0) {
- // for regular arguments, just add them back into the list
- newArgStrings.push(argString);
- } else {
- // replace arguments referencing files with the file content
- try {
- var argstrs = [];
- var filename = argString.slice(1);
- var content = fs.readFileSync(filename, 'utf8');
- content = content.trim().split('\n');
- content.forEach(function (argLine) {
- _this.convertArgLineToArgs(argLine).forEach(function (arg) {
- argstrs.push(arg);
- });
- argstrs = _this._readArgsFromFiles(argstrs);
- });
- newArgStrings.push.apply(newArgStrings, argstrs);
- } catch (error) {
- return _this.error(error.message);
- }
- }
- });
- return newArgStrings;
-};
-
-ArgumentParser.prototype.convertArgLineToArgs = function (argLine) {
- return [argLine];
-};
-
-ArgumentParser.prototype._matchArgument = function (action, regexpArgStrings) {
-
- // match the pattern for this action to the arg strings
- var regexpNargs = new RegExp('^' + this._getNargsPattern(action));
- var matches = regexpArgStrings.match(regexpNargs);
- var message;
-
- // throw an exception if we weren't able to find a match
- if (!matches) {
- switch (action.nargs) {
- case undefined:
- case null:
- message = 'Expected one argument.';
- break;
- case $$.OPTIONAL:
- message = 'Expected at most one argument.';
- break;
- case $$.ONE_OR_MORE:
- message = 'Expected at least one argument.';
- break;
- default:
- message = 'Expected %s argument(s)';
- }
-
- throw argumentErrorHelper(
- action,
- format(message, action.nargs)
- );
- }
- // return the number of arguments matched
- return matches[1].length;
-};
-
-ArgumentParser.prototype._matchArgumentsPartial = function (actions, regexpArgStrings) {
- // progressively shorten the actions list by slicing off the
- // final actions until we find a match
- var self = this;
- var result = [];
- var actionSlice, pattern, matches;
- var i, j;
-
- var getLength = function (string) {
- return string.length;
- };
-
- for (i = actions.length; i > 0; i -= 1) {
- pattern = '';
- actionSlice = actions.slice(0, i);
- for (j in actionSlice) {
- pattern += self._getNargsPattern(actionSlice[j]);
- }
-
- pattern = new RegExp('^' + pattern);
- matches = regexpArgStrings.match(pattern);
-
- if (matches && matches.length > 0) {
- // need only groups
- matches = matches.splice(1);
- result = result.concat(matches.map(getLength));
- break;
- }
- }
-
- // return the list of arg string counts
- return result;
-};
-
-ArgumentParser.prototype._parseOptional = function (argString) {
- var action, optionString, argExplicit, optionTuples;
-
- // if it's an empty string, it was meant to be a positional
- if (!argString) {
- return null;
- }
-
- // if it doesn't start with a prefix, it was meant to be positional
- if (this.prefixChars.indexOf(argString[0]) < 0) {
- return null;
- }
-
- // if the option string is present in the parser, return the action
- if (!!this._optionStringActions[argString]) {
- return [this._optionStringActions[argString], argString, null];
- }
-
- // if it's just a single character, it was meant to be positional
- if (argString.length === 1) {
- return null;
- }
-
- // if the option string before the "=" is present, return the action
- if (argString.indexOf('=') >= 0) {
- var argStringSplit = argString.split('=');
- optionString = argStringSplit[0];
- argExplicit = argStringSplit[1];
-
- if (!!this._optionStringActions[optionString]) {
- action = this._optionStringActions[optionString];
- return [action, optionString, argExplicit];
- }
- }
-
- // search through all possible prefixes of the option string
- // and all actions in the parser for possible interpretations
- optionTuples = this._getOptionTuples(argString);
-
- // if multiple actions match, the option string was ambiguous
- if (optionTuples.length > 1) {
- var optionStrings = optionTuples.map(function (optionTuple) {
- return optionTuple[1];
- });
- this.error(format(
- 'Ambiguous option: "%s" could match %s.',
- argString, optionStrings.join(', ')
- ));
- // if exactly one action matched, this segmentation is good,
- // so return the parsed action
- } else if (optionTuples.length === 1) {
- return optionTuples[0];
- }
-
- // if it was not found as an option, but it looks like a negative
- // number, it was meant to be positional
- // unless there are negative-number-like options
- if (argString.match(this._regexpNegativeNumber)) {
- if (!_.any(this._hasNegativeNumberOptionals)) {
- return null;
- }
- }
- // if it contains a space, it was meant to be a positional
- if (argString.search(' ') >= 0) {
- return null;
- }
-
- // it was meant to be an optional but there is no such option
- // in this parser (though it might be a valid option in a subparser)
- return [null, argString, null];
-};
-
-ArgumentParser.prototype._getOptionTuples = function (optionString) {
- var result = [];
- var chars = this.prefixChars;
- var optionPrefix;
- var argExplicit;
- var action;
- var actionOptionString;
-
- // option strings starting with two prefix characters are only split at
- // the '='
- if (chars.indexOf(optionString[0]) >= 0 && chars.indexOf(optionString[1]) >= 0) {
- if (optionString.indexOf('=') >= 0) {
- var optionStringSplit = optionString.split('=', 1);
-
- optionPrefix = optionStringSplit[0];
- argExplicit = optionStringSplit[1];
- } else {
- optionPrefix = optionString;
- argExplicit = null;
- }
-
- for (actionOptionString in this._optionStringActions) {
- if (actionOptionString.substr(0, optionPrefix.length) === optionPrefix) {
- action = this._optionStringActions[actionOptionString];
- result.push([action, actionOptionString, argExplicit]);
- }
- }
-
- // single character options can be concatenated with their arguments
- // but multiple character options always have to have their argument
- // separate
- } else if (chars.indexOf(optionString[0]) >= 0 && chars.indexOf(optionString[1]) < 0) {
- optionPrefix = optionString;
- argExplicit = null;
- var optionPrefixShort = optionString.substr(0, 2);
- var argExplicitShort = optionString.substr(2);
-
- for (actionOptionString in this._optionStringActions) {
- action = this._optionStringActions[actionOptionString];
- if (actionOptionString === optionPrefixShort) {
- result.push([action, actionOptionString, argExplicitShort]);
- } else if (actionOptionString.substr(0, optionPrefix.length) === optionPrefix) {
- result.push([action, actionOptionString, argExplicit]);
- }
- }
-
- // shouldn't ever get here
- } else {
- throw new Error(format('Unexpected option string: %s.', optionString));
- }
- // return the collected option tuples
- return result;
-};
-
-ArgumentParser.prototype._getNargsPattern = function (action) {
- // in all examples below, we have to allow for '--' args
- // which are represented as '-' in the pattern
- var regexpNargs;
-
- switch (action.nargs) {
- // the default (null) is assumed to be a single argument
- case undefined:
- case null:
- regexpNargs = '(-*A-*)';
- break;
- // allow zero or more arguments
- case $$.OPTIONAL:
- regexpNargs = '(-*A?-*)';
- break;
- // allow zero or more arguments
- case $$.ZERO_OR_MORE:
- regexpNargs = '(-*[A-]*)';
- break;
- // allow one or more arguments
- case $$.ONE_OR_MORE:
- regexpNargs = '(-*A[A-]*)';
- break;
- // allow any number of options or arguments
- case $$.REMAINDER:
- regexpNargs = '([-AO]*)';
- break;
- // allow one argument followed by any number of options or arguments
- case $$.PARSER:
- regexpNargs = '(-*A[-AO]*)';
- break;
- // all others should be integers
- default:
- regexpNargs = '(-*' + _.str.repeat('-*A', action.nargs) + '-*)';
- }
-
- // if this is an optional action, -- is not allowed
- if (action.isOptional()) {
- regexpNargs = regexpNargs.replace(/-\*/g, '');
- regexpNargs = regexpNargs.replace(/-/g, '');
- }
-
- // return the pattern
- return regexpNargs;
-};
-
-//
-// Value conversion methods
-//
-
-ArgumentParser.prototype._getValues = function (action, argStrings) {
- var self = this;
-
- // for everything but PARSER args, strip out '--'
- if (action.nargs !== $$.PARSER && action.nargs !== $$.REMAINDER) {
- argStrings = argStrings.filter(function (arrayElement) {
- return arrayElement !== '--';
- });
- }
-
- var value, argString;
-
- // optional argument produces a default when not present
- if (argStrings.length === 0 && action.nargs === $$.OPTIONAL) {
-
- value = (action.isOptional()) ? action.constant: action.defaultValue;
-
- if (typeof(value) === 'string') {
- value = this._getValue(action, value);
- this._checkValue(action, value);
- }
-
- // when nargs='*' on a positional, if there were no command-line
- // args, use the default if it is anything other than None
- } else if (argStrings.length === 0 && action.nargs === $$.ZERO_OR_MORE &&
- action.optionStrings.length === 0) {
-
- value = (action.defaultValue || argStrings);
- this._checkValue(action, value);
-
- // single argument or optional argument produces a single value
- } else if (argStrings.length === 1 &&
- (!action.nargs || action.nargs === $$.OPTIONAL)) {
-
- argString = argStrings[0];
- value = this._getValue(action, argString);
- this._checkValue(action, value);
-
- // REMAINDER arguments convert all values, checking none
- } else if (action.nargs === $$.REMAINDER) {
- value = argStrings.map(function (v) {
- return self._getValue(action, v);
- });
-
- // PARSER arguments convert all values, but check only the first
- } else if (action.nargs === $$.PARSER) {
- value = argStrings.map(function (v) {
- return self._getValue(action, v);
- });
- this._checkValue(action, value[0]);
-
- // all other types of nargs produce a list
- } else {
- value = argStrings.map(function (v) {
- return self._getValue(action, v);
- });
- value.forEach(function (v) {
- self._checkValue(action, v);
- });
- }
-
- // return the converted value
- return value;
-};
-
-ArgumentParser.prototype._getValue = function (action, argString) {
- var result;
-
- var typeFunction = this._registryGet('type', action.type, action.type);
- if (!_.isFunction(typeFunction)) {
- var message = format('%s is not callable', typeFunction);
- throw argumentErrorHelper(action, message);
- }
-
- // convert the value to the appropriate type
- try {
- result = typeFunction(argString);
-
- // ArgumentTypeErrors indicate errors
- // If action.type is not a registered string, it is a function
- // Try to deduce its name for inclusion in the error message
- // Failing that, include the error message it raised.
- } catch (e) {
- var name = null;
- if (_.isString(action.type)) {
- name = action.type;
- } else {
- name = action.type.name || action.type.displayName || '';
- }
- var msg = format('Invalid %s value: %s', name, argString);
- if (name === '') {msg += '\n' + e.message; }
- throw argumentErrorHelper(action, msg);
- }
- // return the converted value
- return result;
-};
-
-ArgumentParser.prototype._checkValue = function (action, value) {
- // converted value must be one of the choices (if specified)
- var choices = action.choices;
- if (!!choices) {
- // choise for argument can by array or string
- if ((_.isString(choices) || _.isArray(choices)) &&
- choices.indexOf(value) !== -1) {
- return;
- }
- // choise for subparsers can by only hash
- if (_.isObject(choices) && !_.isArray(choices) && choices[value]) {
- return;
- }
-
- if (_.isString(choices)) {
- choices = choices.split('').join(', ');
- }
- else if (_.isArray(choices)) {
- choices = choices.join(', ');
- }
- else {
- choices = _.keys(choices).join(', ');
- }
- var message = format('Invalid choice: %s (choose from [%s])', value, choices);
- throw argumentErrorHelper(action, message);
- }
-};
-
-//
-// Help formatting methods
-//
-
-/**
- * ArgumentParser#formatUsage -> string
- *
- * Return usage string
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.formatUsage = function () {
- var formatter = this._getFormatter();
- formatter.addUsage(this.usage, this._actions, this._mutuallyExclusiveGroups);
- return formatter.formatHelp();
-};
-
-/**
- * ArgumentParser#formatHelp -> string
- *
- * Return help
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.formatHelp = function () {
- var formatter = this._getFormatter();
-
- // usage
- formatter.addUsage(this.usage, this._actions, this._mutuallyExclusiveGroups);
-
- // description
- formatter.addText(this.description);
-
- // positionals, optionals and user-defined groups
- this._actionGroups.forEach(function (actionGroup) {
- formatter.startSection(actionGroup.title);
- formatter.addText(actionGroup.description);
- formatter.addArguments(actionGroup._groupActions);
- formatter.endSection();
- });
-
- // epilog
- formatter.addText(this.epilog);
-
- // determine help from format above
- return formatter.formatHelp();
-};
-
-ArgumentParser.prototype._getFormatter = function () {
- var FormatterClass = this.formatterClass;
- var formatter = new FormatterClass({prog: this.prog});
- return formatter;
-};
-
-//
-// Print functions
-//
-
-/**
- * ArgumentParser#printUsage() -> Void
- *
- * Print usage
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.printUsage = function () {
- this._printMessage(this.formatUsage());
-};
-
-/**
- * ArgumentParser#printHelp() -> Void
- *
- * Print help
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.printHelp = function () {
- this._printMessage(this.formatHelp());
-};
-
-ArgumentParser.prototype._printMessage = function (message, stream) {
- if (!stream) {
- stream = process.stdout;
- }
- if (message) {
- stream.write('' + message);
- }
-};
-
-//
-// Exit functions
-//
-
-/**
- * ArgumentParser#exit(status=0, message) -> Void
- * - status (int): exit status
- * - message (string): message
- *
- * Print message in stderr/stdout and exit program
- **/
-ArgumentParser.prototype.exit = function (status, message) {
- if (!!message) {
- if (status === 0) {
- this._printMessage(message);
- }
- else {
- this._printMessage(message, process.stderr);
- }
- }
-
- process.exit(status);
-};
-
-/**
- * ArgumentParser#error(message) -> Void
- * - err (Error|string): message
- *
- * Error method Prints a usage message incorporating the message to stderr and
- * exits. If you override this in a subclass,
- * it should not return -- it should
- * either exit or throw an exception.
- *
- **/
-ArgumentParser.prototype.error = function (err) {
- var message;
- if (err instanceof Error) {
- if (this.debug === true) {
- throw err;
- }
- message = err.message;
- }
- else {
- message = err;
- }
- var msg = format('%s: error: %s', this.prog, message) + $$.EOL;
-
- if (this.debug === true) {
- throw new Error(msg);
- }
-
- this.printUsage(process.stderr);
-
- return this.exit(2, msg);
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/const.js b/node_modules/js-yaml/node_modules/argparse/lib/const.js
deleted file mode 100644
index de831ba..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/const.js
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-// Constants
-//
-module.exports.EOL = '\n';
-
-module.exports.SUPPRESS = '==SUPPRESS==';
-
-module.exports.OPTIONAL = '?';
-
-module.exports.ZERO_OR_MORE = '*';
-
-module.exports.ONE_OR_MORE = '+';
-
-module.exports.PARSER = 'A...';
-
-module.exports.REMAINDER = '...';
-
-module.exports._UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args';
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js b/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js
deleted file mode 100644
index cd2f369..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js
+++ /dev/null
@@ -1,88 +0,0 @@
-'use strict';
-
-var util = require('util');
-var _ = require('underscore');
-_.str = require('underscore.string');
-
-// Constants
-var $$ = require('../const');
-
-var HelpFormatter = require('./formatter.js');
-
-/**
- * new RawDescriptionHelpFormatter(options)
- * new ArgumentParser({formatterClass: argparse.RawDescriptionHelpFormatter, ...})
- *
- * Help message formatter which adds default values to argument help.
- *
- * Only the name of this class is considered a public API. All the methods
- * provided by the class are considered an implementation detail.
- **/
-
-var ArgumentDefaultsHelpFormatter = function ArgumentDefaultsHelpFormatter(options) {
- HelpFormatter.call(this, options);
-};
-
-util.inherits(ArgumentDefaultsHelpFormatter, HelpFormatter);
-
-ArgumentDefaultsHelpFormatter.prototype._getHelpString = function (action) {
- var help = action.help;
- if (action.help.indexOf('%(defaultValue)s') === -1) {
- if (action.defaultValue !== $$.SUPPRESS) {
- var defaulting_nargs = [$$.OPTIONAL, $$.ZERO_OR_MORE];
- if (action.isOptional() || (defaulting_nargs.indexOf(action.nargs) >= 0)) {
- help += ' (default: %(defaultValue)s)';
- }
- }
- }
- return help;
-};
-
-module.exports.ArgumentDefaultsHelpFormatter = ArgumentDefaultsHelpFormatter;
-
-/**
- * new RawDescriptionHelpFormatter(options)
- * new ArgumentParser({formatterClass: argparse.RawDescriptionHelpFormatter, ...})
- *
- * Help message formatter which retains any formatting in descriptions.
- *
- * Only the name of this class is considered a public API. All the methods
- * provided by the class are considered an implementation detail.
- **/
-
-var RawDescriptionHelpFormatter = function RawDescriptionHelpFormatter(options) {
- HelpFormatter.call(this, options);
-};
-
-util.inherits(RawDescriptionHelpFormatter, HelpFormatter);
-
-RawDescriptionHelpFormatter.prototype._fillText = function (text, width, indent) {
- var lines = text.split('\n');
- lines = lines.map(function (line) {
- return _.str.rtrim(indent + line);
- });
- return lines.join('\n');
-};
-module.exports.RawDescriptionHelpFormatter = RawDescriptionHelpFormatter;
-
-/**
- * new RawTextHelpFormatter(options)
- * new ArgumentParser({formatterClass: argparse.RawTextHelpFormatter, ...})
- *
- * Help message formatter which retains formatting of all help text.
- *
- * Only the name of this class is considered a public API. All the methods
- * provided by the class are considered an implementation detail.
- **/
-
-var RawTextHelpFormatter = function RawTextHelpFormatter(options) {
- RawDescriptionHelpFormatter.call(this, options);
-};
-
-util.inherits(RawTextHelpFormatter, RawDescriptionHelpFormatter);
-
-RawTextHelpFormatter.prototype._splitLines = function (text) {
- return text.split('\n');
-};
-
-module.exports.RawTextHelpFormatter = RawTextHelpFormatter;
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js b/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js
deleted file mode 100644
index 541d918..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js
+++ /dev/null
@@ -1,803 +0,0 @@
-/**
- * class HelpFormatter
- *
- * Formatter for generating usage messages and argument help strings. Only the
- * name of this class is considered a public API. All the methods provided by
- * the class are considered an implementation detail.
- *
- * Do not call in your code, use this class only for inherits your own forvatter
- *
- * ToDo add [additonal formatters][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#formatter-class
- **/
-'use strict';
-
-var _ = require('underscore');
-_.str = require('underscore.string');
-
-// Constants
-var $$ = require('../const');
-
-
-/*:nodoc:* internal
- * new Support(parent, heding)
- * - parent (object): parent section
- * - heading (string): header string
- *
- **/
-function Section(parent, heading) {
- this._parent = parent;
- this._heading = heading;
- this._items = [];
-}
-
-/*:nodoc:* internal
- * Section#addItem(callback) -> Void
- * - callback (array): tuple with function and args
- *
- * Add function for single element
- **/
-Section.prototype.addItem = function (callback) {
- this._items.push(callback);
-};
-
-/*:nodoc:* internal
- * Section#formatHelp(formatter) -> string
- * - formatter (HelpFormatter): current formatter
- *
- * Form help section string
- *
- **/
-Section.prototype.formatHelp = function (formatter) {
- var itemHelp, heading;
-
- // format the indented section
- if (!!this._parent) {
- formatter._indent();
- }
-
- itemHelp = this._items.map(function (item) {
- var obj, func, args;
-
- obj = formatter;
- func = item[0];
- args = item[1];
- return func.apply(obj, args);
- });
- itemHelp = formatter._joinParts(itemHelp);
-
- if (!!this._parent) {
- formatter._dedent();
- }
-
- // return nothing if the section was empty
- if (!itemHelp) {
- return '';
- }
-
- // add the heading if the section was non-empty
- heading = '';
- if (!!this._heading && this._heading !== $$.SUPPRESS) {
- var currentIndent = formatter.currentIndent;
- heading = _.str.repeat(' ', currentIndent) + this._heading + ':' + $$.EOL;
- }
-
- // join the section-initialize newline, the heading and the help
- return formatter._joinParts([$$.EOL, heading, itemHelp, $$.EOL]);
-};
-
-/**
- * new HelpFormatter(options)
- *
- * #### Options:
- * - `prog`: program name
- * - `indentIncriment`: indent step, default value 2
- * - `maxHelpPosition`: max help position, default value = 24
- * - `width`: line width
- *
- **/
-var HelpFormatter = module.exports = function HelpFormatter(options) {
- options = options || {};
-
- this._prog = options.prog;
-
- this._maxHelpPosition = options.maxHelpPosition || 24;
- this._width = (options.width || ((process.env.COLUMNS || 80) - 2));
-
- this._currentIndent = 0;
- this._indentIncriment = options.indentIncriment || 2;
- this._level = 0;
- this._actionMaxLength = 0;
-
- this._rootSection = new Section(null);
- this._currentSection = this._rootSection;
-
- this._whitespaceMatcher = new RegExp('\\s+', 'g');
- this._longBreakMatcher = new RegExp($$.EOL + $$.EOL + $$.EOL + '+', 'g');
-};
-
-HelpFormatter.prototype._indent = function () {
- this._currentIndent += this._indentIncriment;
- this._level += 1;
-};
-
-HelpFormatter.prototype._dedent = function () {
- this._currentIndent -= this._indentIncriment;
- this._level -= 1;
- if (this._currentIndent < 0) {
- throw new Error('Indent decreased below 0.');
- }
-};
-
-HelpFormatter.prototype._addItem = function (func, args) {
- this._currentSection.addItem([func, args]);
-};
-
-//
-// Message building methods
-//
-
-/**
- * HelpFormatter#startSection(heading) -> Void
- * - heading (string): header string
- *
- * Start new help section
- *
- * See alse [code example][1]
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- *
- **/
-HelpFormatter.prototype.startSection = function (heading) {
- this._indent();
- var section = new Section(this._currentSection, heading);
- var func = section.formatHelp.bind(section);
- this._addItem(func, [this]);
- this._currentSection = section;
-};
-
-/**
- * HelpFormatter#endSection -> Void
- *
- * End help section
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- **/
-HelpFormatter.prototype.endSection = function () {
- this._currentSection = this._currentSection._parent;
- this._dedent();
-};
-
-/**
- * HelpFormatter#addText(text) -> Void
- * - text (string): plain text
- *
- * Add plain text into current section
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- *
- **/
-HelpFormatter.prototype.addText = function (text) {
- if (!!text && text !== $$.SUPPRESS) {
- this._addItem(this._formatText, [text]);
- }
-};
-
-/**
- * HelpFormatter#addUsage(usage, actions, groups, prefix) -> Void
- * - usage (string): usage text
- * - actions (array): actions list
- * - groups (array): groups list
- * - prefix (string): usage prefix
- *
- * Add usage data into current section
- *
- * ##### Example
- *
- * formatter.addUsage(this.usage, this._actions, []);
- * return formatter.formatHelp();
- *
- **/
-HelpFormatter.prototype.addUsage = function (usage, actions, groups, prefix) {
- if (usage !== $$.SUPPRESS) {
- this._addItem(this._formatUsage, [usage, actions, groups, prefix]);
- }
-};
-
-/**
- * HelpFormatter#addArgument(action) -> Void
- * - action (object): action
- *
- * Add argument into current section
- *
- * Single variant of [[HelpFormatter#addArguments]]
- **/
-HelpFormatter.prototype.addArgument = function (action) {
- if (action.help !== $$.SUPPRESS) {
- var self = this;
-
- // find all invocations
- var invocations = [this._formatActionInvocation(action)];
- var invocationLength = invocations[0].length;
-
- var actionLength;
-
- if (!!action._getSubactions) {
- this._indent();
- action._getSubactions().forEach(function (subaction) {
-
- var invocationNew = self._formatActionInvocation(subaction);
- invocations.push(invocationNew);
- invocationLength = Math.max(invocationLength, invocationNew.length);
-
- });
- this._dedent();
- }
-
- // update the maximum item length
- actionLength = invocationLength + this._currentIndent;
- this._actionMaxLength = Math.max(this._actionMaxLength, actionLength);
-
- // add the item to the list
- this._addItem(this._formatAction, [action]);
- }
-};
-
-/**
- * HelpFormatter#addArguments(actions) -> Void
- * - actions (array): actions list
- *
- * Mass add arguments into current section
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- *
- **/
-HelpFormatter.prototype.addArguments = function (actions) {
- var self = this;
- actions.forEach(function (action) {
- self.addArgument(action);
- });
-};
-
-//
-// Help-formatting methods
-//
-
-/**
- * HelpFormatter#formatHelp -> string
- *
- * Format help
- *
- * ##### Example
- *
- * formatter.addText(this.epilog);
- * return formatter.formatHelp();
- *
- **/
-HelpFormatter.prototype.formatHelp = function () {
- var help = this._rootSection.formatHelp(this);
- if (help) {
- help = help.replace(this._longBreakMatcher, $$.EOL + $$.EOL);
- help = _.str.strip(help, $$.EOL) + $$.EOL;
- }
- return help;
-};
-
-HelpFormatter.prototype._joinParts = function (partStrings) {
- return partStrings.filter(function (part) {
- return (!!part && part !== $$.SUPPRESS);
- }).join('');
-};
-
-HelpFormatter.prototype._formatUsage = function (usage, actions, groups, prefix) {
- if (!prefix && !_.isString(prefix)) {
- prefix = 'usage: ';
- }
-
- actions = actions || [];
- groups = groups || [];
-
-
- // if usage is specified, use that
- if (usage) {
- usage = _.str.sprintf(usage, {prog: this._prog});
-
- // if no optionals or positionals are available, usage is just prog
- } else if (!usage && actions.length === 0) {
- usage = this._prog;
-
- // if optionals and positionals are available, calculate usage
- } else if (!usage) {
- var prog = this._prog;
- var optionals = [];
- var positionals = [];
- var actionUsage;
- var textWidth;
-
- // split optionals from positionals
- actions.forEach(function (action) {
- if (action.isOptional()) {
- optionals.push(action);
- } else {
- positionals.push(action);
- }
- });
-
- // build full usage string
- actionUsage = this._formatActionsUsage([].concat(optionals, positionals), groups);
- usage = [prog, actionUsage].join(' ');
-
- // wrap the usage parts if it's too long
- textWidth = this._width - this._currentIndent;
- if ((prefix.length + usage.length) > textWidth) {
-
- // break usage into wrappable parts
- var regexpPart = new RegExp('\\(.*?\\)+|\\[.*?\\]+|\\S+', 'g');
- var optionalUsage = this._formatActionsUsage(optionals, groups);
- var positionalUsage = this._formatActionsUsage(positionals, groups);
-
-
- var optionalParts = optionalUsage.match(regexpPart);
- var positionalParts = positionalUsage.match(regexpPart) || [];
-
- if (optionalParts.join(' ') !== optionalUsage) {
- throw new Error('assert "optionalParts.join(\' \') === optionalUsage"');
- }
- if (positionalParts.join(' ') !== positionalUsage) {
- throw new Error('assert "positionalParts.join(\' \') === positionalUsage"');
- }
-
- // helper for wrapping lines
- var _getLines = function (parts, indent, prefix) {
- var lines = [];
- var line = [];
-
- var lineLength = !!prefix ? prefix.length - 1: indent.length - 1;
-
- parts.forEach(function (part) {
- if (lineLength + 1 + part.length > textWidth) {
- lines.push(indent + line.join(' '));
- line = [];
- lineLength = indent.length - 1;
- }
- line.push(part);
- lineLength += part.length + 1;
- });
-
- if (line) {
- lines.push(indent + line.join(' '));
- }
- if (prefix) {
- lines[0] = lines[0].substr(indent.length);
- }
- return lines;
- };
-
- var lines, indent, parts;
- // if prog is short, follow it with optionals or positionals
- if (prefix.length + prog.length <= 0.75 * textWidth) {
- indent = _.str.repeat(' ', (prefix.length + prog.length + 1));
- if (optionalParts) {
- lines = [].concat(
- _getLines([prog].concat(optionalParts), indent, prefix),
- _getLines(positionalParts, indent)
- );
- } else if (positionalParts) {
- lines = _getLines([prog].concat(positionalParts), indent, prefix);
- } else {
- lines = [prog];
- }
-
- // if prog is long, put it on its own line
- } else {
- indent = _.str.repeat(' ', prefix.length);
- parts = optionalParts + positionalParts;
- lines = _getLines(parts, indent);
- if (lines.length > 1) {
- lines = [].concat(
- _getLines(optionalParts, indent),
- _getLines(positionalParts, indent)
- );
- }
- lines = [prog] + lines;
- }
- // join lines into usage
- usage = lines.join($$.EOL);
- }
- }
-
- // prefix with 'usage:'
- return prefix + usage + $$.EOL + $$.EOL;
-};
-
-HelpFormatter.prototype._formatActionsUsage = function (actions, groups) {
- // find group indices and identify actions in groups
- var groupActions = [];
- var inserts = [];
- var self = this;
-
- groups.forEach(function (group) {
- var end;
- var i;
-
- var start = actions.indexOf(group._groupActions[0]);
- if (start >= 0) {
- end = start + group._groupActions.length;
-
- //if (actions.slice(start, end) === group._groupActions) {
- if (_.isEqual(actions.slice(start, end), group._groupActions)) {
- group._groupActions.forEach(function (action) {
- groupActions.push(action);
- });
-
- if (!group.required) {
- if (!!inserts[start]) {
- inserts[start] += ' [';
- }
- else {
- inserts[start] = '[';
- }
- inserts[end] = ']';
- } else {
- if (!!inserts[start]) {
- inserts[start] += ' (';
- }
- else {
- inserts[start] = '(';
- }
- inserts[end] = ')';
- }
- for (i = start + 1; i < end; i += 1) {
- inserts[i] = '|';
- }
- }
- }
- });
-
- // collect all actions format strings
- var parts = [];
-
- actions.forEach(function (action, actionIndex) {
- var part;
- var optionString;
- var argsDefault;
- var argsString;
-
- // suppressed arguments are marked with None
- // remove | separators for suppressed arguments
- if (action.help === $$.SUPPRESS) {
- parts.push(null);
- if (inserts[actionIndex] === '|') {
- inserts.splice(actionIndex, actionIndex);
- } else if (inserts[actionIndex + 1] === '|') {
- inserts.splice(actionIndex + 1, actionIndex + 1);
- }
-
- // produce all arg strings
- } else if (!action.isOptional()) {
- part = self._formatArgs(action, action.dest);
-
- // if it's in a group, strip the outer []
- if (groupActions.indexOf(action) >= 0) {
- if (part[0] === '[' && part[part.length - 1] === ']') {
- part = part.slice(1, -1);
- }
- }
- // add the action string to the list
- parts.push(part);
-
- // produce the first way to invoke the option in brackets
- } else {
- optionString = action.optionStrings[0];
-
- // if the Optional doesn't take a value, format is: -s or --long
- if (action.nargs === 0) {
- part = '' + optionString;
-
- // if the Optional takes a value, format is: -s ARGS or --long ARGS
- } else {
- argsDefault = action.dest.toUpperCase();
- argsString = self._formatArgs(action, argsDefault);
- part = optionString + ' ' + argsString;
- }
- // make it look optional if it's not required or in a group
- if (!action.required && groupActions.indexOf(action) < 0) {
- part = '[' + part + ']';
- }
- // add the action string to the list
- parts.push(part);
- }
- });
-
- // insert things at the necessary indices
- for (var i = inserts.length - 1; i >= 0; --i) {
- if (inserts[i] !== null) {
- parts.splice(i, 0, inserts[i]);
- }
- }
-
- // join all the action items with spaces
- var text = parts.filter(function (part) {
- return !!part;
- }).join(' ');
-
- // clean up separators for mutually exclusive groups
- text = text.replace(/([\[(]) /g, '$1'); // remove spaces
- text = text.replace(/ ([\])])/g, '$1');
- text = text.replace(/\[ *\]/g, ''); // remove empty groups
- text = text.replace(/\( *\)/g, '');
- text = text.replace(/\(([^|]*)\)/g, '$1'); // remove () from single action groups
-
- text = _.str.strip(text);
-
- // return the text
- return text;
-};
-
-HelpFormatter.prototype._formatText = function (text) {
- text = _.str.sprintf(text, {prog: this._prog});
- var textWidth = this._width - this._currentIndent;
- var indentIncriment = _.str.repeat(' ', this._currentIndent);
- return this._fillText(text, textWidth, indentIncriment) + $$.EOL + $$.EOL;
-};
-
-HelpFormatter.prototype._formatAction = function (action) {
- var self = this;
-
- var helpText;
- var helpLines;
- var parts;
- var indentFirst;
-
- // determine the required width and the entry label
- var helpPosition = Math.min(this._actionMaxLength + 2, this._maxHelpPosition);
- var helpWidth = this._width - helpPosition;
- var actionWidth = helpPosition - this._currentIndent - 2;
- var actionHeader = this._formatActionInvocation(action);
-
- // no help; start on same line and add a final newline
- if (!action.help) {
- actionHeader = _.str.repeat(' ', this._currentIndent) + actionHeader + $$.EOL;
-
- // short action name; start on the same line and pad two spaces
- } else if (actionHeader.length <= actionWidth) {
- actionHeader = _.str.repeat(' ', this._currentIndent) +
- actionHeader +
- ' ' +
- _.str.repeat(' ', actionWidth - actionHeader.length);
- indentFirst = 0;
-
- // long action name; start on the next line
- } else {
- actionHeader = _.str.repeat(' ', this._currentIndent) + actionHeader + $$.EOL;
- indentFirst = helpPosition;
- }
-
- // collect the pieces of the action help
- parts = [actionHeader];
-
- // if there was help for the action, add lines of help text
- if (!!action.help) {
- helpText = this._expandHelp(action);
- helpLines = this._splitLines(helpText, helpWidth);
- parts.push(_.str.repeat(' ', indentFirst) + helpLines[0] + $$.EOL);
- helpLines.slice(1).forEach(function (line) {
- parts.push(_.str.repeat(' ', helpPosition) + line + $$.EOL);
- });
-
- // or add a newline if the description doesn't end with one
- } else if (actionHeader.charAt(actionHeader.length - 1) !== $$.EOL) {
- parts.push($$.EOL);
- }
- // if there are any sub-actions, add their help as well
- if (!!action._getSubactions) {
- this._indent();
- action._getSubactions().forEach(function (subaction) {
- parts.push(self._formatAction(subaction));
- });
- this._dedent();
- }
- // return a single string
- return this._joinParts(parts);
-};
-
-HelpFormatter.prototype._formatActionInvocation = function (action) {
- if (!action.isOptional()) {
- var format_func = this._metavarFormatter(action, action.dest);
- var metavars = format_func(1);
- return metavars[0];
- } else {
- var parts = [];
- var argsDefault;
- var argsString;
-
- // if the Optional doesn't take a value, format is: -s, --long
- if (action.nargs === 0) {
- parts = parts.concat(action.optionStrings);
-
- // if the Optional takes a value, format is: -s ARGS, --long ARGS
- } else {
- argsDefault = action.dest.toUpperCase();
- argsString = this._formatArgs(action, argsDefault);
- action.optionStrings.forEach(function (optionString) {
- parts.push(optionString + ' ' + argsString);
- });
- }
- return parts.join(', ');
- }
-};
-
-HelpFormatter.prototype._metavarFormatter = function (action, metavarDefault) {
- var result;
-
- if (!!action.metavar || action.metavar === '') {
- result = action.metavar;
- } else if (!!action.choices) {
- var choices = action.choices;
-
- if (_.isString(choices)) {
- choices = choices.split('').join(', ');
- } else if (_.isArray(choices)) {
- choices = choices.join(',');
- }
- else
- {
- choices = _.keys(choices).join(',');
- }
- result = '{' + choices + '}';
- } else {
- result = metavarDefault;
- }
-
- return function (size) {
- if (Array.isArray(result)) {
- return result;
- } else {
- var metavars = [];
- for (var i = 0; i < size; i += 1) {
- metavars.push(result);
- }
- return metavars;
- }
- };
-};
-
-HelpFormatter.prototype._formatArgs = function (action, metavarDefault) {
- var result;
- var metavars;
-
- var buildMetavar = this._metavarFormatter(action, metavarDefault);
-
- switch (action.nargs) {
- case undefined:
- case null:
- metavars = buildMetavar(1);
- result = '' + metavars[0];
- break;
- case $$.OPTIONAL:
- metavars = buildMetavar(1);
- result = '[' + metavars[0] + ']';
- break;
- case $$.ZERO_OR_MORE:
- metavars = buildMetavar(2);
- result = '[' + metavars[0] + ' [' + metavars[1] + ' ...]]';
- break;
- case $$.ONE_OR_MORE:
- metavars = buildMetavar(2);
- result = '' + metavars[0] + ' [' + metavars[1] + ' ...]';
- break;
- case $$.REMAINDER:
- result = '...';
- break;
- case $$.PARSER:
- metavars = buildMetavar(1);
- result = metavars[0] + ' ...';
- break;
- default:
- metavars = buildMetavar(action.nargs);
- result = metavars.join(' ');
- }
- return result;
-};
-
-HelpFormatter.prototype._expandHelp = function (action) {
- var actionProperty;
- var actionValue;
-
- var params = {prog: this._prog};
-
- for (actionProperty in action) {
- if (action.hasOwnProperty(actionProperty)) {
- actionValue = action[actionProperty];
-
- if (actionValue !== $$.SUPPRESS) {
- params[actionProperty] = actionValue;
- }
- }
- }
-
- if (!!params.choices) {
- if (_.isString(params.choices)) {
- params.choices = params.choices.split('').join(', ');
- }
- else if (_.isArray(params.choices)) {
- params.choices = params.choices.join(', ');
- }
- else {
- params.choices = _.keys(params.choices).join(', ');
- }
- }
-
- return _.str.sprintf(this._getHelpString(action), params);
-};
-
-HelpFormatter.prototype._splitLines = function (text, width) {
- var lines = [];
- var delimiters = [" ", ".", ",", "!", "?"];
- var re = new RegExp('[' + delimiters.join('') + '][^' + delimiters.join('') + ']*$');
-
- text = text.replace(/[\n\|\t]/g, ' ');
-
- text = _.str.strip(text);
- text = text.replace(this._whitespaceMatcher, ' ');
-
- // Wraps the single paragraph in text (a string) so every line
- // is at most width characters long.
- text.split($$.EOL).forEach(function (line) {
- if (width >= line.length) {
- lines.push(line);
- return;
- }
-
- var wrapStart = 0;
- var wrapEnd = width;
- var delimiterIndex = 0;
- while (wrapEnd <= line.length) {
- if (wrapEnd !== line.length && delimiters.indexOf(line[wrapEnd] < -1)) {
- delimiterIndex = (re.exec(line.substring(wrapStart, wrapEnd)) || {}).index;
- wrapEnd = wrapStart + delimiterIndex + 1;
- }
- lines.push(line.substring(wrapStart, wrapEnd));
- wrapStart = wrapEnd;
- wrapEnd += width;
- }
- if (wrapStart < line.length) {
- lines.push(line.substring(wrapStart, wrapEnd));
- }
- });
-
- return lines;
-};
-
-HelpFormatter.prototype._fillText = function (text, width, indent) {
- var lines = this._splitLines(text, width);
- lines = lines.map(function (line) {
- return indent + line;
- });
- return lines.join($$.EOL);
-};
-
-HelpFormatter.prototype._getHelpString = function (action) {
- return action.help;
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/lib/namespace.js b/node_modules/js-yaml/node_modules/argparse/lib/namespace.js
deleted file mode 100644
index 3546f2d..0000000
--- a/node_modules/js-yaml/node_modules/argparse/lib/namespace.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * class Namespace
- *
- * Simple object for storing attributes. Implements equality by attribute names
- * and values, and provides a simple string representation.
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#the-namespace-object
- **/
-'use strict';
-
-var _ = require('underscore');
-
-/**
- * new Namespace(options)
- * - options(object): predefined propertis for result object
- *
- **/
-var Namespace = module.exports = function Namespace(options) {
- _.extend(this, options);
-};
-
-/**
- * Namespace#isset(key) -> Boolean
- * - key (string|number): property name
- *
- * Tells whenever `namespace` contains given `key` or not.
- **/
-Namespace.prototype.isset = function (key) {
- return _.has(this, key);
-};
-
-/**
- * Namespace#set(key, value) -> self
- * -key (string|number|object): propery name
- * -value (mixed): new property value
- *
- * Set the property named key with value.
- * If key object then set all key properties to namespace object
- **/
-Namespace.prototype.set = function (key, value) {
- if (typeof (key) === 'object') {
- _.extend(this, key);
- } else {
- this[key] = value;
- }
- return this;
-};
-
-/**
- * Namespace#get(key, defaultValue) -> mixed
- * - key (string|number): property name
- * - defaultValue (mixed): default value
- *
- * Return the property key or defaulValue if not set
- **/
-Namespace.prototype.get = function (key, defaultValue) {
- return !this[key] ? defaultValue: this[key];
-};
-
-/**
- * Namespace#unset(key, defaultValue) -> mixed
- * - key (string|number): property name
- * - defaultValue (mixed): default value
- *
- * Return data[key](and delete it) or defaultValue
- **/
-Namespace.prototype.unset = function (key, defaultValue) {
- var value = this[key];
- if (value !== null) {
- delete this[key];
- return value;
- } else {
- return defaultValue;
- }
-};
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/.travis.yml b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/.travis.yml
deleted file mode 100644
index ab27b29..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: ruby
-rvm:
- - 1.9.3
-
-before_script:
- - "export DISPLAY=:99.0"
- - "sh -e /etc/init.d/xvfb start"
- - sleep 2
\ No newline at end of file
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile
deleted file mode 100644
index aed29c3..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile
+++ /dev/null
@@ -1,4 +0,0 @@
-source "https://rubygems.org"
-
-gem 'uglifier'
-gem 'rake'
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock
deleted file mode 100644
index 2c52be4..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock
+++ /dev/null
@@ -1,17 +0,0 @@
-GEM
- remote: https://rubygems.org/
- specs:
- execjs (1.4.0)
- multi_json (~> 1.0)
- multi_json (1.3.6)
- rake (0.9.2.2)
- uglifier (1.3.0)
- execjs (>= 0.3.0)
- multi_json (~> 1.0, >= 1.0.2)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- rake
- uglifier
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown
deleted file mode 100644
index 1a39ad9..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown
+++ /dev/null
@@ -1,814 +0,0 @@
-# Underscore.string [](http://travis-ci.org/epeli/underscore.string) #
-
-
-
-Javascript lacks complete string manipulation operations.
-This an attempt to fill that gap. List of build-in methods can be found
-for example from [Dive Into JavaScript][d].
-
-[d]: http://www.diveintojavascript.com/core-javascript-reference/the-string-object
-
-
-As name states this an extension for [Underscore.js][u], but it can be used
-independently from **_s**-global variable. But with Underscore.js you can
-use Object-Oriented style and chaining:
-
-[u]: http://documentcloud.github.com/underscore/
-
-```javascript
-_(" epeli ").chain().trim().capitalize().value()
-=> "Epeli"
-```
-
-## Download ##
-
- * [Development version](https://raw.github.com/epeli/underscore.string/master/lib/underscore.string.js) *Uncompressed with Comments 18kb*
- * [Production version](https://github.com/epeli/underscore.string/raw/master/dist/underscore.string.min.js) *Minified 7kb*
-
-
-## Node.js installation ##
-
-**npm package**
-
- npm install underscore.string
-
-**Standalone usage**:
-
-```javascript
-var _s = require('underscore.string');
-```
-
-**Integrate with Underscore.js**:
-
-```javascript
-var _ = require('underscore');
-
-// Import Underscore.string to separate object, because there are conflict functions (include, reverse, contains)
-_.str = require('underscore.string');
-
-// Mix in non-conflict functions to Underscore namespace if you want
-_.mixin(_.str.exports());
-
-// All functions, include conflict, will be available through _.str object
-_.str.include('Underscore.string', 'string'); // => true
-```
-
-**Or Integrate with Underscore.js without module loading**
-
-Run the following expression after Underscore.js and Underscore.string are loaded
-```javascript
-// _.str becomes a global variable if no module loading is detected
-// Mix in non-conflict functions to Underscore namespace
-_.mixin(_.str.exports());
-```
-
-## String Functions ##
-
-For availability of functions in this way you need to mix in Underscore.string functions:
-
-```javascript
-_.mixin(_.string.exports());
-```
-
-otherwise functions from examples will be available through _.string or _.str objects:
-
-```javascript
-_.str.capitalize('epeli')
-=> "Epeli"
-```
-
-**numberFormat** _.numberFormat(number, [ decimals=0, decimalSeparator='.', orderSeparator=','])
-
-Formats the numbers.
-
-```javascript
-_.numberFormat(1000, 2)
-=> "1,000.00"
-
-_.numberFormat(123456789.123, 5, '.', ',')
-=> "123,456,789.12300"
-```
-
-
-**levenshtein** _.levenshtein(string1, string2)
-
-Calculates [Levenshtein distance][ld] between two strings.
-[ld]: http://en.wikipedia.org/wiki/Levenshtein_distance
-
-```javascript
-_.levenshtein('kitten', 'kittah')
-=> 2
-```
-
-**capitalize** _.capitalize(string)
-
-Converts first letter of the string to uppercase.
-
-```javascript
-_.capitalize("foo Bar")
-=> "Foo Bar"
-```
-
-**chop** _.chop(string, step)
-
-```javascript
-_.chop('whitespace', 3)
-=> ['whi','tes','pac','e']
-```
-
-**clean** _.clean(str)
-
-Compress some whitespaces to one.
-
-```javascript
-_.clean(" foo bar ")
-=> 'foo bar'
-```
-
-**chars** _.chars(str)
-
-```javascript
-_.chars('Hello')
-=> ['H','e','l','l','o']
-```
-
-**swapCase** _.swapCase(str)
-
-Returns a copy of the string in which all the case-based characters have had their case swapped.
-
-```javascript
-_.swapCase('hELLO')
-=> 'Hello'
-```
-
-**include** available only through _.str object, because Underscore has function with the same name.
-
-```javascript
-_.str.include("foobar", "ob")
-=> true
-```
-
-(removed) **includes** _.includes(string, substring)
-
-Tests if string contains a substring.
-
-```javascript
-_.includes("foobar", "ob")
-=> true
-```
-
-**includes** function was removed
-
-But you can create it in this way, for compatibility with previous versions:
-
-```javascript
-_.includes = _.str.include
-```
-
-**count** _.count(string, substring)
-
-```javascript
-_('Hello world').count('l')
-=> 3
-```
-
-**escapeHTML** _.escapeHTML(string)
-
-Converts HTML special characters to their entity equivalents.
-
-```javascript
-_('
'
-```
-
-**insert** _.insert(string, index, substing)
-
-```javascript
-_('Hello ').insert(6, 'world')
-=> 'Hello world'
-```
-
-**isBlank** _.isBlank(string)
-
-```javascript
-_('').isBlank(); // => true
-_('\n').isBlank(); // => true
-_(' ').isBlank(); // => true
-_('a').isBlank(); // => false
-```
-
-**join** _.join(separator, *strings)
-
-Joins strings together with given separator
-
-```javascript
-_.join(" ", "foo", "bar")
-=> "foo bar"
-```
-
-**lines** _.lines(str)
-
-```javascript
-_.lines("Hello\nWorld")
-=> ["Hello", "World"]
-```
-
-**reverse** available only through _.str object, because Underscore has function with the same name.
-
-Return reversed string:
-
-```javascript
-_.str.reverse("foobar")
-=> 'raboof'
-```
-
-**splice** _.splice(string, index, howmany, substring)
-
-Like a array splice.
-
-```javascript
-_('https://edtsech@bitbucket.org/edtsech/underscore.strings').splice(30, 7, 'epeli')
-=> 'https://edtsech@bitbucket.org/epeli/underscore.strings'
-```
-
-**startsWith** _.startsWith(string, starts)
-
-This method checks whether string starts with starts.
-
-```javascript
-_("image.gif").startsWith("image")
-=> true
-```
-
-**endsWith** _.endsWith(string, ends)
-
-This method checks whether string ends with ends.
-
-```javascript
-_("image.gif").endsWith("gif")
-=> true
-```
-
-**succ** _.succ(str)
-
-Returns the successor to str.
-
-```javascript
-_('a').succ()
-=> 'b'
-
-_('A').succ()
-=> 'B'
-```
-
-**supplant**
-
-Supplant function was removed, use Underscore.js [template function][p].
-
-[p]: http://documentcloud.github.com/underscore/#template
-
-**strip** alias for *trim*
-
-**lstrip** alias for *ltrim*
-
-**rstrip** alias for *rtrim*
-
-**titleize** _.titleize(string)
-
-```javascript
-_('my name is epeli').titleize()
-=> 'My Name Is Epeli'
-```
-
-**camelize** _.camelize(string)
-
-Converts underscored or dasherized string to a camelized one
-
-```javascript
-_('-moz-transform').camelize()
-=> 'MozTransform'
-```
-
-**classify** _.classify(string)
-
-Converts string to camelized class name
-
-```javascript
-_('some_class_name').classify()
-=> 'SomeClassName'
-```
-
-**underscored** _.underscored(string)
-
-Converts a camelized or dasherized string into an underscored one
-
-```javascript
-_('MozTransform').underscored()
-=> 'moz_transform'
-```
-
-**dasherize** _.dasherize(string)
-
-Converts a underscored or camelized string into an dasherized one
-
-```javascript
-_('MozTransform').dasherize()
-=> '-moz-transform'
-```
-
-**humanize** _.humanize(string)
-
-Converts an underscored, camelized, or dasherized string into a humanized one.
-Also removes beginning and ending whitespace, and removes the postfix '_id'.
-
-```javascript
-_(' capitalize dash-CamelCase_underscore trim ').humanize()
-=> 'Capitalize dash camel case underscore trim'
-```
-
-**trim** _.trim(string, [characters])
-
-trims defined characters from begining and ending of the string.
-Defaults to whitespace characters.
-
-```javascript
-_.trim(" foobar ")
-=> "foobar"
-
-_.trim("_-foobar-_", "_-")
-=> "foobar"
-```
-
-
-**ltrim** _.ltrim(string, [characters])
-
-Left trim. Similar to trim, but only for left side.
-
-
-**rtrim** _.rtrim(string, [characters])
-
-Right trim. Similar to trim, but only for right side.
-
-**truncate** _.truncate(string, length, truncateString)
-
-```javascript
-_('Hello world').truncate(5)
-=> 'Hello...'
-
-_('Hello').truncate(10)
-=> 'Hello'
-```
-
-**prune** _.prune(string, length, pruneString)
-
-Elegant version of truncate.
-Makes sure the pruned string does not exceed the original length.
-Avoid half-chopped words when truncating.
-
-```javascript
-_('Hello, world').prune(5)
-=> 'Hello...'
-
-_('Hello, world').prune(8)
-=> 'Hello...'
-
-_('Hello, world').prune(5, ' (read a lot more)')
-=> 'Hello, world' (as adding "(read a lot more)" would be longer than the original string)
-
-_('Hello, cruel world').prune(15)
-=> 'Hello, cruel...'
-
-_('Hello').prune(10)
-=> 'Hello'
-```
-
-**words** _.words(str, delimiter=/\s+/)
-
-Split string by delimiter (String or RegExp), /\s+/ by default.
-
-```javascript
-_.words(" I love you ")
-=> ["I","love","you"]
-
-_.words("I_love_you", "_")
-=> ["I","love","you"]
-
-_.words("I-love-you", /-/)
-=> ["I","love","you"]
-
-_.words(" ")
-=> []
-```
-
-**sprintf** _.sprintf(string format, *arguments)
-
-C like string formatting.
-Credits goes to [Alexandru Marasteanu][o].
-For more detailed documentation, see the [original page][o].
-
-[o]: http://www.diveintojavascript.com/projects/sprintf-for-javascript
-
-```javascript
-_.sprintf("%.1f", 1.17)
-"1.2"
-```
-
-**pad** _.pad(str, length, [padStr, type])
-
-pads the `str` with characters until the total string length is equal to the passed `length` parameter. By default, pads on the **left** with the space char (`" "`). `padStr` is truncated to a single character if necessary.
-
-```javascript
-_.pad("1", 8)
--> " 1";
-
-_.pad("1", 8, '0')
--> "00000001";
-
-_.pad("1", 8, '0', 'right')
--> "10000000";
-
-_.pad("1", 8, '0', 'both')
--> "00001000";
-
-_.pad("1", 8, 'bleepblorp', 'both')
--> "bbbb1bbb";
-```
-
-**lpad** _.lpad(str, length, [padStr])
-
-left-pad a string. Alias for `pad(str, length, padStr, 'left')`
-
-```javascript
-_.lpad("1", 8, '0')
--> "00000001";
-```
-
-**rpad** _.rpad(str, length, [padStr])
-
-right-pad a string. Alias for `pad(str, length, padStr, 'right')`
-
-```javascript
-_.rpad("1", 8, '0')
--> "10000000";
-```
-
-**lrpad** _.lrpad(str, length, [padStr])
-
-left/right-pad a string. Alias for `pad(str, length, padStr, 'both')`
-
-```javascript
-_.lrpad("1", 8, '0')
--> "00001000";
-```
-
-**center** alias for **lrpad**
-
-**ljust** alias for *rpad*
-
-**rjust** alias for *lpad*
-
-**toNumber** _.toNumber(string, [decimals])
-
-Parse string to number. Returns NaN if string can't be parsed to number.
-
-```javascript
-_('2.556').toNumber()
-=> 3
-
-_('2.556').toNumber(1)
-=> 2.6
-```
-
-**strRight** _.strRight(string, pattern)
-
-Searches a string from left to right for a pattern and returns a substring consisting of the characters in the string that are to the right of the pattern or all string if no match found.
-
-```javascript
-_('This_is_a_test_string').strRight('_')
-=> "is_a_test_string";
-```
-
-**strRightBack** _.strRightBack(string, pattern)
-
-Searches a string from right to left for a pattern and returns a substring consisting of the characters in the string that are to the right of the pattern or all string if no match found.
-
-```javascript
-_('This_is_a_test_string').strRightBack('_')
-=> "string";
-```
-
-**strLeft** _.strLeft(string, pattern)
-
-Searches a string from left to right for a pattern and returns a substring consisting of the characters in the string that are to the left of the pattern or all string if no match found.
-
-```javascript
-_('This_is_a_test_string').strLeft('_')
-=> "This";
-```
-
-**strLeftBack** _.strLeftBack(string, pattern)
-
-Searches a string from right to left for a pattern and returns a substring consisting of the characters in the string that are to the left of the pattern or all string if no match found.
-
-```javascript
-_('This_is_a_test_string').strLeftBack('_')
-=> "This_is_a_test";
-```
-
-**stripTags**
-
-Removes all html tags from string.
-
-```javascript
-_('a link').stripTags()
-=> 'a link'
-
-_('a link').stripTags()
-=> 'a linkalert("hello world!")'
-```
-
-**toSentence** _.toSentence(array, [delimiter, lastDelimiter])
-
-Join an array into a human readable sentence.
-
-```javascript
-_.toSentence(['jQuery', 'Mootools', 'Prototype'])
-=> 'jQuery, Mootools and Prototype';
-
-_.toSentence(['jQuery', 'Mootools', 'Prototype'], ', ', ' unt ')
-=> 'jQuery, Mootools unt Prototype';
-```
-
-**toSentenceSerial** _.toSentenceSerial(array, [delimiter, lastDelimiter])
-
-The same as `toSentence`, but adjusts delimeters to use [Serial comma](http://en.wikipedia.org/wiki/Serial_comma).
-
-```javascript
-_.toSentenceSerial(['jQuery', 'Mootools'])
-=> 'jQuery and Mootools';
-
-_.toSentenceSerial(['jQuery', 'Mootools', 'Prototype'])
-=> 'jQuery, Mootools, and Prototype'
-
-_.toSentenceSerial(['jQuery', 'Mootools', 'Prototype'], ', ', ' unt ');
-=> 'jQuery, Mootools, unt Prototype';
-```
-
-**repeat** _.repeat(string, count, [separator])
-
-Repeats a string count times.
-
-```javascript
-_.repeat("foo", 3)
-=> 'foofoofoo';
-
-_.repeat("foo", 3, "bar")
-=> 'foobarfoobarfoo'
-```
-
-**surround** _.surround(string, wrap)
-
-Surround a string with another string.
-
-```javascript
-_.surround("foo", "ab")
-=> 'abfooab';
-```
-
-**quote** _.quote(string, quoteChar) or _.q(string, quoteChar)
-
-Quotes a string. `quoteChar` defaults to `"`.
-
-```javascript
-_.quote('foo', quoteChar)
-=> '"foo"';
-```
-**unquote** _.unquote(string, quoteChar)
-
-Unquotes a string. `quoteChar` defaults to `"`.
-
-```javascript
-_.unquote('"foo"')
-=> 'foo';
-_.unquote("'foo'", "'")
-=> 'foo';
-```
-
-
-**slugify** _.slugify(string)
-
-Transform text into a URL slug. Replaces whitespaces, accentuated, and special characters with a dash.
-
-```javascript
-_.slugify("Un éléphant à l'orée du bois")
-=> 'un-elephant-a-loree-du-bois';
-```
-
-***Caution: this function is charset dependent***
-
-**naturalCmp** array.sort(_.naturalCmp)
-
-Naturally sort strings like humans would do.
-
-```javascript
-['foo20', 'foo5'].sort(_.naturalCmp)
-=> [ 'foo5', 'foo20' ]
-```
-
-**toBoolean** _.toBoolean(string) or _.toBool(string)
-
-Turn strings that can be commonly considered as booleas to real booleans. Such as "true", "false", "1" and "0". This function is case insensitive.
-
-```javascript
-_.toBoolean("true")
-=> true
-_.toBoolean("FALSE")
-=> false
-_.toBoolean("random")
-=> undefined
-```
-
-It can be customized by giving arrays of truth and falsy value matcher as parameters. Matchers can be also RegExp objects.
-
-```javascript
-_.toBoolean("truthy", ["truthy"], ["falsy"])
-=> true
-_.toBoolean("true only at start", [/^true/])
-=> true
-```
-
-## Roadmap ##
-
-Any suggestions or bug reports are welcome. Just email me or more preferably open an issue.
-
-#### Problems
-
-We lose two things for `include` and `reverse` methods from `_.string`:
-
-* Calls like `_('foobar').include('bar')` aren't available;
-* Chaining isn't available too.
-
-But if you need this functionality you can create aliases for conflict functions which will be convenient for you:
-
-```javascript
-_.mixin({
- includeString: _.str.include,
- reverseString: _.str.reverse
-})
-
-// Now wrapper calls and chaining are available.
-_('foobar').chain().reverseString().includeString('rab').value()
-```
-
-#### Standalone Usage
-
-If you are using Underscore.string without Underscore. You also have `_.string` namespace for it and `_.str` alias
-But of course you can just reassign `_` variable with `_.string`
-
-```javascript
-_ = _.string
-```
-
-## Changelog ##
-
-### 2.3.3 ###
-
-* Add `toBoolean`
-* Add `unquote`
-* Add quote char option to `quote`
-* Support dash-separated words in `titleize`
-
-### 2.3.2 ###
-
-* Add `naturalCmp`
-* Bug fix to `camelize`
-* Add ă, ș, ț and ś to `slugify`
-* Doc updates
-* Add support for [component](http://component.io/)
-* [Full changelog](https://github.com/epeli/underscore.string/compare/v2.3.1...v2.3.2)
-
-### 2.3.1 ###
-
-* Bug fixes to `escapeHTML`, `classify`, `substr`
-* Faster `count`
-* Documentation fixes
-* [Full changelog](https://github.com/epeli/underscore.string/compare/v2.3.0...v2.3.1)
-
-### 2.3.0 ###
-
-* Added `numberformat` method
-* Added `levenshtein` method (Levenshtein distance calculation)
-* Added `swapCase` method
-* Changed default behavior of `words` method
-* Added `toSentenceSerial` method
-* Added `surround` and `quote` methods
-
-### 2.2.1 ###
-
-* Same as 2.2.0 (2.2.0rc on npm) to fix some npm drama
-
-### 2.2.0 ###
-
-* Capitalize method behavior changed
-* Various perfomance tweaks
-
-### 2.1.1###
-
-* Fixed words method bug
-* Added classify method
-
-### 2.1.0 ###
-
-* AMD support
-* Added toSentence method
-* Added slugify method
-* Lots of speed optimizations
-
-### 2.0.0 ###
-
-* Added prune, humanize functions
-* Added _.string (_.str) namespace for Underscore.string library
-* Removed includes function
-
-For upgrading to this version you need to mix in Underscore.string library to Underscore object:
-
-```javascript
-_.mixin(_.string.exports());
-```
-
-and all non-conflict Underscore.string functions will be available through Underscore object.
-Also function `includes` has been removed, you should replace this function by `_.str.include`
-or create alias `_.includes = _.str.include` and all your code will work fine.
-
-### 1.1.6 ###
-
-* Fixed reverse and truncate
-* Added isBlank, stripTags, inlude(alias for includes)
-* Added uglifier compression
-
-### 1.1.5 ###
-
-* Added strRight, strRightBack, strLeft, strLeftBack
-
-### 1.1.4 ###
-
-* Added pad, lpad, rpad, lrpad methods and aliases center, ljust, rjust
-* Integration with Underscore 1.1.6
-
-### 1.1.3 ###
-
-* Added methods: underscored, camelize, dasherize
-* Support newer version of npm
-
-### 1.1.2 ###
-
-* Created functions: lines, chars, words functions
-
-### 1.0.2 ###
-
-* Created integration test suite with underscore.js 1.1.4 (now it's absolutely compatible)
-* Removed 'reverse' function, because this function override underscore.js 'reverse'
-
-## Contribute ##
-
-* Fork & pull request. Don't forget about tests.
-* If you planning add some feature please create issue before.
-
-Otherwise changes will be rejected.
-
-## Contributors list ##
-[Can be found here](https://github.com/epeli/underscore.string/graphs/contributors).
-
-
-## Licence ##
-
-The MIT License
-
-Copyright (c) 2011 Esa-Matti Suuronen esa-matti@suuronen.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile
deleted file mode 100644
index 2cd9eed..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile
+++ /dev/null
@@ -1,23 +0,0 @@
-# encoding: utf-8
-task default: :test
-
-desc 'Use UglifyJS to compress Underscore.string'
-task :build do
- require 'uglifier'
- source = File.read('lib/underscore.string.js', :encoding => 'utf-8')
- compressed = Uglifier.compile(source, copyright: false)
- File.open('dist/underscore.string.min.js', 'w'){ |f| f.write compressed }
- compression_rate = compressed.length.to_f/source.length
- puts "compressed dist/underscore.string.min.js: #{compressed.length}/#{source.length} #{(compression_rate * 100).round}%"
-end
-
-desc 'Run tests'
-task :test do
- puts "Running underscore.string test suite."
- result1 = system %{phantomjs ./test/run-qunit.js "test/test.html"}
-
- puts "Running Underscore test suite."
- result2 = system %{phantomjs ./test/run-qunit.js "test/test_underscore/index.html"}
-
- exit(result1 && result2 ? 0 : 1)
-end
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json
deleted file mode 100644
index ae91b65..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "name": "underscore.string",
- "repo": "epeli/underscore.string",
- "description": "String manipulation extensions for Underscore.js javascript library",
- "version": "2.3.3",
- "keywords": ["underscore", "string"],
- "dependencies": {},
- "development": {},
- "main": "lib/underscore.string.js",
- "scripts": ["lib/underscore.string.js"]
-}
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js
deleted file mode 100644
index 4f6b2b9..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(e,n){"use strict";function r(e,n){var r,t,u=e.toLowerCase();for(n=[].concat(n),r=0;n.length>r;r+=1)if(t=n[r]){if(t.test&&t.test(e))return!0;if(t.toLowerCase()===u)return!0}}var t=n.prototype.trim,u=n.prototype.trimRight,i=n.prototype.trimLeft,l=function(e){return 1*e||0},o=function(e,n){if(1>n)return"";for(var r="";n>0;)1&n&&(r+=e),n>>=1,e+=e;return r},a=[].slice,c=function(e){return null==e?"\\s":e.source?e.source:"["+g.escapeRegExp(e)+"]"},s={lt:"<",gt:">",quot:'"',amp:"&",apos:"'"},f={};for(var p in s)f[s[p]]=p;f["'"]="#39";var h=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}var r=o,t=function(){return t.cache.hasOwnProperty(arguments[0])||(t.cache[arguments[0]]=t.parse(arguments[0])),t.format.call(null,t.cache[arguments[0]],arguments)};return t.format=function(t,u){var i,l,o,a,c,s,f,p=1,g=t.length,d="",m=[];for(l=0;g>l;l++)if(d=e(t[l]),"string"===d)m.push(t[l]);else if("array"===d){if(a=t[l],a[2])for(i=u[p],o=0;a[2].length>o;o++){if(!i.hasOwnProperty(a[2][o]))throw new Error(h('[_.sprintf] property "%s" does not exist',a[2][o]));i=i[a[2][o]]}else i=a[1]?u[a[1]]:u[p++];if(/[^s]/.test(a[8])&&"number"!=e(i))throw new Error(h("[_.sprintf] expecting number but found %s",e(i)));switch(a[8]){case"b":i=i.toString(2);break;case"c":i=n.fromCharCode(i);break;case"d":i=parseInt(i,10);break;case"e":i=a[7]?i.toExponential(a[7]):i.toExponential();break;case"f":i=a[7]?parseFloat(i).toFixed(a[7]):parseFloat(i);break;case"o":i=i.toString(8);break;case"s":i=(i=n(i))&&a[7]?i.substring(0,a[7]):i;break;case"u":i=Math.abs(i);break;case"x":i=i.toString(16);break;case"X":i=i.toString(16).toUpperCase()}i=/[def]/.test(a[8])&&a[3]&&i>=0?"+"+i:i,s=a[4]?"0"==a[4]?"0":a[4].charAt(1):" ",f=a[6]-n(i).length,c=a[6]?r(s,f):"",m.push(a[5]?i+c:c+i)}return m.join("")},t.cache={},t.parse=function(e){for(var n=e,r=[],t=[],u=0;n;){if(null!==(r=/^[^\x25]+/.exec(n)))t.push(r[0]);else if(null!==(r=/^\x25{2}/.exec(n)))t.push("%");else{if(null===(r=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(n)))throw new Error("[_.sprintf] huh?");if(r[2]){u|=1;var i=[],l=r[2],o=[];if(null===(o=/^([a-z_][a-z_\d]*)/i.exec(l)))throw new Error("[_.sprintf] huh?");for(i.push(o[1]);""!==(l=l.substring(o[0].length));)if(null!==(o=/^\.([a-z_][a-z_\d]*)/i.exec(l)))i.push(o[1]);else{if(null===(o=/^\[(\d+)\]/.exec(l)))throw new Error("[_.sprintf] huh?");i.push(o[1])}r[2]=i}else u|=2;if(3===u)throw new Error("[_.sprintf] mixing positional and named placeholders is not (yet) supported");t.push(r)}n=n.substring(r[0].length)}return t},t}(),g={VERSION:"2.3.0",isBlank:function(e){return null==e&&(e=""),/^\s*$/.test(e)},stripTags:function(e){return null==e?"":n(e).replace(/<\/?[^>]+>/g,"")},capitalize:function(e){return e=null==e?"":n(e),e.charAt(0).toUpperCase()+e.slice(1)},chop:function(e,r){return null==e?[]:(e=n(e),r=~~r,r>0?e.match(new RegExp(".{1,"+r+"}","g")):[e])},clean:function(e){return g.strip(e).replace(/\s+/g," ")},count:function(e,r){if(null==e||null==r)return 0;e=n(e),r=n(r);for(var t=0,u=0,i=r.length;;){if(u=e.indexOf(r,u),-1===u)break;t++,u+=i}return t},chars:function(e){return null==e?[]:n(e).split("")},swapCase:function(e){return null==e?"":n(e).replace(/\S/g,function(e){return e===e.toUpperCase()?e.toLowerCase():e.toUpperCase()})},escapeHTML:function(e){return null==e?"":n(e).replace(/[&<>"']/g,function(e){return"&"+f[e]+";"})},unescapeHTML:function(e){return null==e?"":n(e).replace(/\&([^;]+);/g,function(e,r){var t;return r in s?s[r]:(t=r.match(/^#x([\da-fA-F]+)$/))?n.fromCharCode(parseInt(t[1],16)):(t=r.match(/^#(\d+)$/))?n.fromCharCode(~~t[1]):e})},escapeRegExp:function(e){return null==e?"":n(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},splice:function(e,n,r,t){var u=g.chars(e);return u.splice(~~n,~~r,t),u.join("")},insert:function(e,n,r){return g.splice(e,n,0,r)},include:function(e,r){return""===r?!0:null==e?!1:-1!==n(e).indexOf(r)},join:function(){var e=a.call(arguments),n=e.shift();return null==n&&(n=""),e.join(n)},lines:function(e){return null==e?[]:n(e).split("\n")},reverse:function(e){return g.chars(e).reverse().join("")},startsWith:function(e,r){return""===r?!0:null==e||null==r?!1:(e=n(e),r=n(r),e.length>=r.length&&e.slice(0,r.length)===r)},endsWith:function(e,r){return""===r?!0:null==e||null==r?!1:(e=n(e),r=n(r),e.length>=r.length&&e.slice(e.length-r.length)===r)},succ:function(e){return null==e?"":(e=n(e),e.slice(0,-1)+n.fromCharCode(e.charCodeAt(e.length-1)+1))},titleize:function(e){return null==e?"":(e=n(e).toLowerCase(),e.replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()}))},camelize:function(e){return g.trim(e).replace(/[-_\s]+(.)?/g,function(e,n){return n?n.toUpperCase():""})},underscored:function(e){return g.trim(e).replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase()},dasherize:function(e){return g.trim(e).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()},classify:function(e){return g.titleize(n(e).replace(/[\W_]/g," ")).replace(/\s/g,"")},humanize:function(e){return g.capitalize(g.underscored(e).replace(/_id$/,"").replace(/_/g," "))},trim:function(e,r){return null==e?"":!r&&t?t.call(e):(r=c(r),n(e).replace(new RegExp("^"+r+"+|"+r+"+$","g"),""))},ltrim:function(e,r){return null==e?"":!r&&i?i.call(e):(r=c(r),n(e).replace(new RegExp("^"+r+"+"),""))},rtrim:function(e,r){return null==e?"":!r&&u?u.call(e):(r=c(r),n(e).replace(new RegExp(r+"+$"),""))},truncate:function(e,r,t){return null==e?"":(e=n(e),t=t||"...",r=~~r,e.length>r?e.slice(0,r)+t:e)},prune:function(e,r,t){if(null==e)return"";if(e=n(e),r=~~r,t=null!=t?n(t):"...",r>=e.length)return e;var u=function(e){return e.toUpperCase()!==e.toLowerCase()?"A":" "},i=e.slice(0,r+1).replace(/.(?=\W*\w*$)/g,u);return i=i.slice(i.length-2).match(/\w\w/)?i.replace(/\s*\S+$/,""):g.rtrim(i.slice(0,i.length-1)),(i+t).length>e.length?e:e.slice(0,i.length)+t},words:function(e,n){return g.isBlank(e)?[]:g.trim(e,n).split(n||/\s+/)},pad:function(e,r,t,u){e=null==e?"":n(e),r=~~r;var i=0;switch(t?t.length>1&&(t=t.charAt(0)):t=" ",u){case"right":return i=r-e.length,e+o(t,i);case"both":return i=r-e.length,o(t,Math.ceil(i/2))+e+o(t,Math.floor(i/2));default:return i=r-e.length,o(t,i)+e}},lpad:function(e,n,r){return g.pad(e,n,r)},rpad:function(e,n,r){return g.pad(e,n,r,"right")},lrpad:function(e,n,r){return g.pad(e,n,r,"both")},sprintf:h,vsprintf:function(e,n){return n.unshift(e),h.apply(null,n)},toNumber:function(e,n){return e?(e=g.trim(e),e.match(/^-?\d+(?:\.\d+)?$/)?l(l(e).toFixed(~~n)):0/0):0},numberFormat:function(e,n,r,t){if(isNaN(e)||null==e)return"";e=e.toFixed(~~n),t="string"==typeof t?t:",";var u=e.split("."),i=u[0],l=u[1]?(r||".")+u[1]:"";return i.replace(/(\d)(?=(?:\d{3})+$)/g,"$1"+t)+l},strRight:function(e,r){if(null==e)return"";e=n(e),r=null!=r?n(r):r;var t=r?e.indexOf(r):-1;return~t?e.slice(t+r.length,e.length):e},strRightBack:function(e,r){if(null==e)return"";e=n(e),r=null!=r?n(r):r;var t=r?e.lastIndexOf(r):-1;return~t?e.slice(t+r.length,e.length):e},strLeft:function(e,r){if(null==e)return"";e=n(e),r=null!=r?n(r):r;var t=r?e.indexOf(r):-1;return~t?e.slice(0,t):e},strLeftBack:function(e,n){if(null==e)return"";e+="",n=null!=n?""+n:n;var r=e.lastIndexOf(n);return~r?e.slice(0,r):e},toSentence:function(e,n,r,t){n=n||", ",r=r||" and ";var u=e.slice(),i=u.pop();return e.length>2&&t&&(r=g.rtrim(n)+r),u.length?u.join(n)+r+i:i},toSentenceSerial:function(){var e=a.call(arguments);return e[3]=!0,g.toSentence.apply(g,e)},slugify:function(e){if(null==e)return"";var r="ąàáäâãåæăćęèéëêìíïîłńòóöôõøśșțùúüûñçżź",t="aaaaaaaaaceeeeeiiiilnoooooosstuuuunczz",u=new RegExp(c(r),"g");return e=n(e).toLowerCase().replace(u,function(e){var n=r.indexOf(e);return t.charAt(n)||"-"}),g.dasherize(e.replace(/[^\w\s-]/g,""))},surround:function(e,n){return[n,e,n].join("")},quote:function(e,n){return g.surround(e,n||'"')},unquote:function(e,n){return n=n||'"',e[0]===n&&e[e.length-1]===n?e.slice(1,e.length-1):e},exports:function(){var e={};for(var n in this)this.hasOwnProperty(n)&&!n.match(/^(?:include|contains|reverse)$/)&&(e[n]=this[n]);return e},repeat:function(e,r,t){if(null==e)return"";if(r=~~r,null==t)return o(n(e),r);for(var u=[];r>0;u[--r]=e);return u.join(t)},naturalCmp:function(e,r){if(e==r)return 0;if(!e)return-1;if(!r)return 1;for(var t=/(\.\d+)|(\d+)|(\D+)/g,u=n(e).toLowerCase().match(t),i=n(r).toLowerCase().match(t),l=Math.min(u.length,i.length),o=0;l>o;o++){var a=u[o],c=i[o];if(a!==c){var s=parseInt(a,10);if(!isNaN(s)){var f=parseInt(c,10);if(!isNaN(f)&&s-f)return s-f}return c>a?-1:1}}return u.length===i.length?u.length-i.length:r>e?-1:1},levenshtein:function(e,r){if(null==e&&null==r)return 0;if(null==e)return n(r).length;if(null==r)return n(e).length;e=n(e),r=n(r);for(var t,u,i=[],l=0;r.length>=l;l++)for(var o=0;e.length>=o;o++)u=l&&o?e.charAt(o-1)===r.charAt(l-1)?t:Math.min(i[o],i[o-1],t)+1:l+o,t=i[o],i[o]=u;return i.pop()},toBoolean:function(e,n,t){return"number"==typeof e&&(e=""+e),"string"!=typeof e?!!e:(e=g.trim(e),r(e,n||["true","1"])?!0:r(e,t||["false","0"])?!1:void 0)}};g.strip=g.trim,g.lstrip=g.ltrim,g.rstrip=g.rtrim,g.center=g.lrpad,g.rjust=g.lpad,g.ljust=g.rpad,g.contains=g.include,g.q=g.quote,g.toBool=g.toBoolean,"undefined"!=typeof exports&&("undefined"!=typeof module&&module.exports&&(module.exports=g),exports._s=g),"function"==typeof define&&define.amd&&define("underscore.string",[],function(){return g}),e._=e._||{},e._.string=e._.str=g}(this,String);
\ No newline at end of file
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js
deleted file mode 100644
index 8761117..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js
+++ /dev/null
@@ -1,673 +0,0 @@
-// Underscore.string
-// (c) 2010 Esa-Matti Suuronen
-// Underscore.string is freely distributable under the terms of the MIT license.
-// Documentation: https://github.com/epeli/underscore.string
-// Some code is borrowed from MooTools and Alexandru Marasteanu.
-// Version '2.3.2'
-
-!function(root, String){
- 'use strict';
-
- // Defining helper functions.
-
- var nativeTrim = String.prototype.trim;
- var nativeTrimRight = String.prototype.trimRight;
- var nativeTrimLeft = String.prototype.trimLeft;
-
- var parseNumber = function(source) { return source * 1 || 0; };
-
- var strRepeat = function(str, qty){
- if (qty < 1) return '';
- var result = '';
- while (qty > 0) {
- if (qty & 1) result += str;
- qty >>= 1, str += str;
- }
- return result;
- };
-
- var slice = [].slice;
-
- var defaultToWhiteSpace = function(characters) {
- if (characters == null)
- return '\\s';
- else if (characters.source)
- return characters.source;
- else
- return '[' + _s.escapeRegExp(characters) + ']';
- };
-
- // Helper for toBoolean
- function boolMatch(s, matchers) {
- var i, matcher, down = s.toLowerCase();
- matchers = [].concat(matchers);
- for (i = 0; i < matchers.length; i += 1) {
- matcher = matchers[i];
- if (!matcher) continue;
- if (matcher.test && matcher.test(s)) return true;
- if (matcher.toLowerCase() === down) return true;
- }
- }
-
- var escapeChars = {
- lt: '<',
- gt: '>',
- quot: '"',
- amp: '&',
- apos: "'"
- };
-
- var reversedEscapeChars = {};
- for(var key in escapeChars) reversedEscapeChars[escapeChars[key]] = key;
- reversedEscapeChars["'"] = '#39';
-
- // sprintf() for JavaScript 0.7-beta1
- // http://www.diveintojavascript.com/projects/javascript-sprintf
- //
- // Copyright (c) Alexandru Marasteanu
- // All rights reserved.
-
- var sprintf = (function() {
- function get_type(variable) {
- return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
- }
-
- var str_repeat = strRepeat;
-
- var str_format = function() {
- if (!str_format.cache.hasOwnProperty(arguments[0])) {
- str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
- }
- return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
- };
-
- str_format.format = function(parse_tree, argv) {
- var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length;
- for (i = 0; i < tree_length; i++) {
- node_type = get_type(parse_tree[i]);
- if (node_type === 'string') {
- output.push(parse_tree[i]);
- }
- else if (node_type === 'array') {
- match = parse_tree[i]; // convenience purposes only
- if (match[2]) { // keyword argument
- arg = argv[cursor];
- for (k = 0; k < match[2].length; k++) {
- if (!arg.hasOwnProperty(match[2][k])) {
- throw new Error(sprintf('[_.sprintf] property "%s" does not exist', match[2][k]));
- }
- arg = arg[match[2][k]];
- }
- } else if (match[1]) { // positional argument (explicit)
- arg = argv[match[1]];
- }
- else { // positional argument (implicit)
- arg = argv[cursor++];
- }
-
- if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) {
- throw new Error(sprintf('[_.sprintf] expecting number but found %s', get_type(arg)));
- }
- switch (match[8]) {
- case 'b': arg = arg.toString(2); break;
- case 'c': arg = String.fromCharCode(arg); break;
- case 'd': arg = parseInt(arg, 10); break;
- case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break;
- case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break;
- case 'o': arg = arg.toString(8); break;
- case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break;
- case 'u': arg = Math.abs(arg); break;
- case 'x': arg = arg.toString(16); break;
- case 'X': arg = arg.toString(16).toUpperCase(); break;
- }
- arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg);
- pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' ';
- pad_length = match[6] - String(arg).length;
- pad = match[6] ? str_repeat(pad_character, pad_length) : '';
- output.push(match[5] ? arg + pad : pad + arg);
- }
- }
- return output.join('');
- };
-
- str_format.cache = {};
-
- str_format.parse = function(fmt) {
- var _fmt = fmt, match = [], parse_tree = [], arg_names = 0;
- while (_fmt) {
- if ((match = /^[^\x25]+/.exec(_fmt)) !== null) {
- parse_tree.push(match[0]);
- }
- else if ((match = /^\x25{2}/.exec(_fmt)) !== null) {
- parse_tree.push('%');
- }
- else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
- if (match[2]) {
- arg_names |= 1;
- var field_list = [], replacement_field = match[2], field_match = [];
- if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
- field_list.push(field_match[1]);
- while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
- if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
- field_list.push(field_match[1]);
- }
- else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
- field_list.push(field_match[1]);
- }
- else {
- throw new Error('[_.sprintf] huh?');
- }
- }
- }
- else {
- throw new Error('[_.sprintf] huh?');
- }
- match[2] = field_list;
- }
- else {
- arg_names |= 2;
- }
- if (arg_names === 3) {
- throw new Error('[_.sprintf] mixing positional and named placeholders is not (yet) supported');
- }
- parse_tree.push(match);
- }
- else {
- throw new Error('[_.sprintf] huh?');
- }
- _fmt = _fmt.substring(match[0].length);
- }
- return parse_tree;
- };
-
- return str_format;
- })();
-
-
-
- // Defining underscore.string
-
- var _s = {
-
- VERSION: '2.3.0',
-
- isBlank: function(str){
- if (str == null) str = '';
- return (/^\s*$/).test(str);
- },
-
- stripTags: function(str){
- if (str == null) return '';
- return String(str).replace(/<\/?[^>]+>/g, '');
- },
-
- capitalize : function(str){
- str = str == null ? '' : String(str);
- return str.charAt(0).toUpperCase() + str.slice(1);
- },
-
- chop: function(str, step){
- if (str == null) return [];
- str = String(str);
- step = ~~step;
- return step > 0 ? str.match(new RegExp('.{1,' + step + '}', 'g')) : [str];
- },
-
- clean: function(str){
- return _s.strip(str).replace(/\s+/g, ' ');
- },
-
- count: function(str, substr){
- if (str == null || substr == null) return 0;
-
- str = String(str);
- substr = String(substr);
-
- var count = 0,
- pos = 0,
- length = substr.length;
-
- while (true) {
- pos = str.indexOf(substr, pos);
- if (pos === -1) break;
- count++;
- pos += length;
- }
-
- return count;
- },
-
- chars: function(str) {
- if (str == null) return [];
- return String(str).split('');
- },
-
- swapCase: function(str) {
- if (str == null) return '';
- return String(str).replace(/\S/g, function(c){
- return c === c.toUpperCase() ? c.toLowerCase() : c.toUpperCase();
- });
- },
-
- escapeHTML: function(str) {
- if (str == null) return '';
- return String(str).replace(/[&<>"']/g, function(m){ return '&' + reversedEscapeChars[m] + ';'; });
- },
-
- unescapeHTML: function(str) {
- if (str == null) return '';
- return String(str).replace(/\&([^;]+);/g, function(entity, entityCode){
- var match;
-
- if (entityCode in escapeChars) {
- return escapeChars[entityCode];
- } else if (match = entityCode.match(/^#x([\da-fA-F]+)$/)) {
- return String.fromCharCode(parseInt(match[1], 16));
- } else if (match = entityCode.match(/^#(\d+)$/)) {
- return String.fromCharCode(~~match[1]);
- } else {
- return entity;
- }
- });
- },
-
- escapeRegExp: function(str){
- if (str == null) return '';
- return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
- },
-
- splice: function(str, i, howmany, substr){
- var arr = _s.chars(str);
- arr.splice(~~i, ~~howmany, substr);
- return arr.join('');
- },
-
- insert: function(str, i, substr){
- return _s.splice(str, i, 0, substr);
- },
-
- include: function(str, needle){
- if (needle === '') return true;
- if (str == null) return false;
- return String(str).indexOf(needle) !== -1;
- },
-
- join: function() {
- var args = slice.call(arguments),
- separator = args.shift();
-
- if (separator == null) separator = '';
-
- return args.join(separator);
- },
-
- lines: function(str) {
- if (str == null) return [];
- return String(str).split("\n");
- },
-
- reverse: function(str){
- return _s.chars(str).reverse().join('');
- },
-
- startsWith: function(str, starts){
- if (starts === '') return true;
- if (str == null || starts == null) return false;
- str = String(str); starts = String(starts);
- return str.length >= starts.length && str.slice(0, starts.length) === starts;
- },
-
- endsWith: function(str, ends){
- if (ends === '') return true;
- if (str == null || ends == null) return false;
- str = String(str); ends = String(ends);
- return str.length >= ends.length && str.slice(str.length - ends.length) === ends;
- },
-
- succ: function(str){
- if (str == null) return '';
- str = String(str);
- return str.slice(0, -1) + String.fromCharCode(str.charCodeAt(str.length-1) + 1);
- },
-
- titleize: function(str){
- if (str == null) return '';
- str = String(str).toLowerCase();
- return str.replace(/(?:^|\s|-)\S/g, function(c){ return c.toUpperCase(); });
- },
-
- camelize: function(str){
- return _s.trim(str).replace(/[-_\s]+(.)?/g, function(match, c){ return c ? c.toUpperCase() : ""; });
- },
-
- underscored: function(str){
- return _s.trim(str).replace(/([a-z\d])([A-Z]+)/g, '$1_$2').replace(/[-\s]+/g, '_').toLowerCase();
- },
-
- dasherize: function(str){
- return _s.trim(str).replace(/([A-Z])/g, '-$1').replace(/[-_\s]+/g, '-').toLowerCase();
- },
-
- classify: function(str){
- return _s.titleize(String(str).replace(/[\W_]/g, ' ')).replace(/\s/g, '');
- },
-
- humanize: function(str){
- return _s.capitalize(_s.underscored(str).replace(/_id$/,'').replace(/_/g, ' '));
- },
-
- trim: function(str, characters){
- if (str == null) return '';
- if (!characters && nativeTrim) return nativeTrim.call(str);
- characters = defaultToWhiteSpace(characters);
- return String(str).replace(new RegExp('\^' + characters + '+|' + characters + '+$', 'g'), '');
- },
-
- ltrim: function(str, characters){
- if (str == null) return '';
- if (!characters && nativeTrimLeft) return nativeTrimLeft.call(str);
- characters = defaultToWhiteSpace(characters);
- return String(str).replace(new RegExp('^' + characters + '+'), '');
- },
-
- rtrim: function(str, characters){
- if (str == null) return '';
- if (!characters && nativeTrimRight) return nativeTrimRight.call(str);
- characters = defaultToWhiteSpace(characters);
- return String(str).replace(new RegExp(characters + '+$'), '');
- },
-
- truncate: function(str, length, truncateStr){
- if (str == null) return '';
- str = String(str); truncateStr = truncateStr || '...';
- length = ~~length;
- return str.length > length ? str.slice(0, length) + truncateStr : str;
- },
-
- /**
- * _s.prune: a more elegant version of truncate
- * prune extra chars, never leaving a half-chopped word.
- * @author github.com/rwz
- */
- prune: function(str, length, pruneStr){
- if (str == null) return '';
-
- str = String(str); length = ~~length;
- pruneStr = pruneStr != null ? String(pruneStr) : '...';
-
- if (str.length <= length) return str;
-
- var tmpl = function(c){ return c.toUpperCase() !== c.toLowerCase() ? 'A' : ' '; },
- template = str.slice(0, length+1).replace(/.(?=\W*\w*$)/g, tmpl); // 'Hello, world' -> 'HellAA AAAAA'
-
- if (template.slice(template.length-2).match(/\w\w/))
- template = template.replace(/\s*\S+$/, '');
- else
- template = _s.rtrim(template.slice(0, template.length-1));
-
- return (template+pruneStr).length > str.length ? str : str.slice(0, template.length)+pruneStr;
- },
-
- words: function(str, delimiter) {
- if (_s.isBlank(str)) return [];
- return _s.trim(str, delimiter).split(delimiter || /\s+/);
- },
-
- pad: function(str, length, padStr, type) {
- str = str == null ? '' : String(str);
- length = ~~length;
-
- var padlen = 0;
-
- if (!padStr)
- padStr = ' ';
- else if (padStr.length > 1)
- padStr = padStr.charAt(0);
-
- switch(type) {
- case 'right':
- padlen = length - str.length;
- return str + strRepeat(padStr, padlen);
- case 'both':
- padlen = length - str.length;
- return strRepeat(padStr, Math.ceil(padlen/2)) + str
- + strRepeat(padStr, Math.floor(padlen/2));
- default: // 'left'
- padlen = length - str.length;
- return strRepeat(padStr, padlen) + str;
- }
- },
-
- lpad: function(str, length, padStr) {
- return _s.pad(str, length, padStr);
- },
-
- rpad: function(str, length, padStr) {
- return _s.pad(str, length, padStr, 'right');
- },
-
- lrpad: function(str, length, padStr) {
- return _s.pad(str, length, padStr, 'both');
- },
-
- sprintf: sprintf,
-
- vsprintf: function(fmt, argv){
- argv.unshift(fmt);
- return sprintf.apply(null, argv);
- },
-
- toNumber: function(str, decimals) {
- if (!str) return 0;
- str = _s.trim(str);
- if (!str.match(/^-?\d+(?:\.\d+)?$/)) return NaN;
- return parseNumber(parseNumber(str).toFixed(~~decimals));
- },
-
- numberFormat : function(number, dec, dsep, tsep) {
- if (isNaN(number) || number == null) return '';
-
- number = number.toFixed(~~dec);
- tsep = typeof tsep == 'string' ? tsep : ',';
-
- var parts = number.split('.'), fnums = parts[0],
- decimals = parts[1] ? (dsep || '.') + parts[1] : '';
-
- return fnums.replace(/(\d)(?=(?:\d{3})+$)/g, '$1' + tsep) + decimals;
- },
-
- strRight: function(str, sep){
- if (str == null) return '';
- str = String(str); sep = sep != null ? String(sep) : sep;
- var pos = !sep ? -1 : str.indexOf(sep);
- return ~pos ? str.slice(pos+sep.length, str.length) : str;
- },
-
- strRightBack: function(str, sep){
- if (str == null) return '';
- str = String(str); sep = sep != null ? String(sep) : sep;
- var pos = !sep ? -1 : str.lastIndexOf(sep);
- return ~pos ? str.slice(pos+sep.length, str.length) : str;
- },
-
- strLeft: function(str, sep){
- if (str == null) return '';
- str = String(str); sep = sep != null ? String(sep) : sep;
- var pos = !sep ? -1 : str.indexOf(sep);
- return ~pos ? str.slice(0, pos) : str;
- },
-
- strLeftBack: function(str, sep){
- if (str == null) return '';
- str += ''; sep = sep != null ? ''+sep : sep;
- var pos = str.lastIndexOf(sep);
- return ~pos ? str.slice(0, pos) : str;
- },
-
- toSentence: function(array, separator, lastSeparator, serial) {
- separator = separator || ', ';
- lastSeparator = lastSeparator || ' and ';
- var a = array.slice(), lastMember = a.pop();
-
- if (array.length > 2 && serial) lastSeparator = _s.rtrim(separator) + lastSeparator;
-
- return a.length ? a.join(separator) + lastSeparator + lastMember : lastMember;
- },
-
- toSentenceSerial: function() {
- var args = slice.call(arguments);
- args[3] = true;
- return _s.toSentence.apply(_s, args);
- },
-
- slugify: function(str) {
- if (str == null) return '';
-
- var from = "ąàáäâãåæăćęèéëêìíïîłńòóöôõøśșțùúüûñçżź",
- to = "aaaaaaaaaceeeeeiiiilnoooooosstuuuunczz",
- regex = new RegExp(defaultToWhiteSpace(from), 'g');
-
- str = String(str).toLowerCase().replace(regex, function(c){
- var index = from.indexOf(c);
- return to.charAt(index) || '-';
- });
-
- return _s.dasherize(str.replace(/[^\w\s-]/g, ''));
- },
-
- surround: function(str, wrapper) {
- return [wrapper, str, wrapper].join('');
- },
-
- quote: function(str, quoteChar) {
- return _s.surround(str, quoteChar || '"');
- },
-
- unquote: function(str, quoteChar) {
- quoteChar = quoteChar || '"';
- if (str[0] === quoteChar && str[str.length-1] === quoteChar)
- return str.slice(1,str.length-1);
- else return str;
- },
-
- exports: function() {
- var result = {};
-
- for (var prop in this) {
- if (!this.hasOwnProperty(prop) || prop.match(/^(?:include|contains|reverse)$/)) continue;
- result[prop] = this[prop];
- }
-
- return result;
- },
-
- repeat: function(str, qty, separator){
- if (str == null) return '';
-
- qty = ~~qty;
-
- // using faster implementation if separator is not needed;
- if (separator == null) return strRepeat(String(str), qty);
-
- // this one is about 300x slower in Google Chrome
- for (var repeat = []; qty > 0; repeat[--qty] = str) {}
- return repeat.join(separator);
- },
-
- naturalCmp: function(str1, str2){
- if (str1 == str2) return 0;
- if (!str1) return -1;
- if (!str2) return 1;
-
- var cmpRegex = /(\.\d+)|(\d+)|(\D+)/g,
- tokens1 = String(str1).toLowerCase().match(cmpRegex),
- tokens2 = String(str2).toLowerCase().match(cmpRegex),
- count = Math.min(tokens1.length, tokens2.length);
-
- for(var i = 0; i < count; i++) {
- var a = tokens1[i], b = tokens2[i];
-
- if (a !== b){
- var num1 = parseInt(a, 10);
- if (!isNaN(num1)){
- var num2 = parseInt(b, 10);
- if (!isNaN(num2) && num1 - num2)
- return num1 - num2;
- }
- return a < b ? -1 : 1;
- }
- }
-
- if (tokens1.length === tokens2.length)
- return tokens1.length - tokens2.length;
-
- return str1 < str2 ? -1 : 1;
- },
-
- levenshtein: function(str1, str2) {
- if (str1 == null && str2 == null) return 0;
- if (str1 == null) return String(str2).length;
- if (str2 == null) return String(str1).length;
-
- str1 = String(str1); str2 = String(str2);
-
- var current = [], prev, value;
-
- for (var i = 0; i <= str2.length; i++)
- for (var j = 0; j <= str1.length; j++) {
- if (i && j)
- if (str1.charAt(j - 1) === str2.charAt(i - 1))
- value = prev;
- else
- value = Math.min(current[j], current[j - 1], prev) + 1;
- else
- value = i + j;
-
- prev = current[j];
- current[j] = value;
- }
-
- return current.pop();
- },
-
- toBoolean: function(str, trueValues, falseValues) {
- if (typeof str === "number") str = "" + str;
- if (typeof str !== "string") return !!str;
- str = _s.trim(str);
- if (boolMatch(str, trueValues || ["true", "1"])) return true;
- if (boolMatch(str, falseValues || ["false", "0"])) return false;
- }
- };
-
- // Aliases
-
- _s.strip = _s.trim;
- _s.lstrip = _s.ltrim;
- _s.rstrip = _s.rtrim;
- _s.center = _s.lrpad;
- _s.rjust = _s.lpad;
- _s.ljust = _s.rpad;
- _s.contains = _s.include;
- _s.q = _s.quote;
- _s.toBool = _s.toBoolean;
-
- // Exporting
-
- // CommonJS module is defined
- if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports)
- module.exports = _s;
-
- exports._s = _s;
- }
-
- // Register as a named module with AMD.
- if (typeof define === 'function' && define.amd)
- define('underscore.string', [], function(){ return _s; });
-
-
- // Integrate with Underscore.js if defined
- // or create our own underscore object.
- root._ = root._ || {};
- root._.string = root._.str = _s;
-}(this, String);
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log
deleted file mode 100644
index e69de29..0000000
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json
deleted file mode 100644
index 0ba3d99..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "name": "underscore.string",
- "version": "2.3.3",
- "description": "String manipulation extensions for Underscore.js javascript library.",
- "homepage": "http://epeli.github.com/underscore.string/",
- "contributors": [
- {
- "name": "Esa-Matti Suuronen",
- "email": "esa-matti@suuronen.org",
- "url": "http://esa-matti.suuronen.org/"
- },
- {
- "name": "Edward Tsech",
- "email": "edtsech@gmail.com"
- },
- {
- "name": "Pavel Pravosud",
- "email": "pavel@pravosud.com",
- "url": ""
- },
- {
- "name": "Sasha Koss",
- "email": "kossnocorp@gmail.com",
- "url": "http://koss.nocorp.me/"
- },
- {
- "name": "Vladimir Dronnikov",
- "email": "dronnikov@gmail.com"
- },
- {
- "name": "Pete Kruckenberg",
- "email": "https://github.com/kruckenb",
- "url": ""
- },
- {
- "name": "Paul Chavard",
- "email": "paul@chavard.net",
- "url": ""
- },
- {
- "name": "Ed Finkler",
- "email": "coj@funkatron.com",
- "url": ""
- }
- ],
- "keywords": [
- "underscore",
- "string"
- ],
- "main": "./lib/underscore.string",
- "directories": {
- "lib": "./lib"
- },
- "engines": {
- "node": "*"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/epeli/underscore.string.git"
- },
- "bugs": {
- "url": "https://github.com/epeli/underscore.string/issues"
- },
- "licenses": [
- {
- "type": "MIT"
- }
- ],
- "readme": "# Underscore.string [](http://travis-ci.org/epeli/underscore.string) #\n\n\n\nJavascript lacks complete string manipulation operations.\nThis an attempt to fill that gap. List of build-in methods can be found\nfor example from [Dive Into JavaScript][d].\n\n[d]: http://www.diveintojavascript.com/core-javascript-reference/the-string-object\n\n\nAs name states this an extension for [Underscore.js][u], but it can be used\nindependently from **_s**-global variable. But with Underscore.js you can\nuse Object-Oriented style and chaining:\n\n[u]: http://documentcloud.github.com/underscore/\n\n```javascript\n_(\" epeli \").chain().trim().capitalize().value()\n=> \"Epeli\"\n```\n\n## Download ##\n\n * [Development version](https://raw.github.com/epeli/underscore.string/master/lib/underscore.string.js) *Uncompressed with Comments 18kb*\n * [Production version](https://github.com/epeli/underscore.string/raw/master/dist/underscore.string.min.js) *Minified 7kb*\n\n\n## Node.js installation ##\n\n**npm package**\n\n npm install underscore.string\n\n**Standalone usage**:\n\n```javascript\nvar _s = require('underscore.string');\n```\n\n**Integrate with Underscore.js**:\n\n```javascript\nvar _ = require('underscore');\n\n// Import Underscore.string to separate object, because there are conflict functions (include, reverse, contains)\n_.str = require('underscore.string');\n\n// Mix in non-conflict functions to Underscore namespace if you want\n_.mixin(_.str.exports());\n\n// All functions, include conflict, will be available through _.str object\n_.str.include('Underscore.string', 'string'); // => true\n```\n\n**Or Integrate with Underscore.js without module loading**\n\nRun the following expression after Underscore.js and Underscore.string are loaded\n```javascript\n// _.str becomes a global variable if no module loading is detected\n// Mix in non-conflict functions to Underscore namespace\n_.mixin(_.str.exports());\n```\n\n## String Functions ##\n\nFor availability of functions in this way you need to mix in Underscore.string functions:\n\n```javascript\n_.mixin(_.string.exports());\n```\n\notherwise functions from examples will be available through _.string or _.str objects:\n\n```javascript\n_.str.capitalize('epeli')\n=> \"Epeli\"\n```\n\n**numberFormat** _.numberFormat(number, [ decimals=0, decimalSeparator='.', orderSeparator=','])\n\nFormats the numbers.\n\n```javascript\n_.numberFormat(1000, 2)\n=> \"1,000.00\"\n\n_.numberFormat(123456789.123, 5, '.', ',')\n=> \"123,456,789.12300\"\n```\n\n\n**levenshtein** _.levenshtein(string1, string2)\n\nCalculates [Levenshtein distance][ld] between two strings.\n[ld]: http://en.wikipedia.org/wiki/Levenshtein_distance\n\n```javascript\n_.levenshtein('kitten', 'kittah')\n=> 2\n```\n\n**capitalize** _.capitalize(string)\n\nConverts first letter of the string to uppercase.\n\n```javascript\n_.capitalize(\"foo Bar\")\n=> \"Foo Bar\"\n```\n\n**chop** _.chop(string, step)\n\n```javascript\n_.chop('whitespace', 3)\n=> ['whi','tes','pac','e']\n```\n\n**clean** _.clean(str)\n\nCompress some whitespaces to one.\n\n```javascript\n_.clean(\" foo bar \")\n=> 'foo bar'\n```\n\n**chars** _.chars(str)\n\n```javascript\n_.chars('Hello')\n=> ['H','e','l','l','o']\n```\n\n**swapCase** _.swapCase(str)\n\nReturns a copy of the string in which all the case-based characters have had their case swapped.\n\n```javascript\n_.swapCase('hELLO')\n=> 'Hello'\n```\n\n**include** available only through _.str object, because Underscore has function with the same name.\n\n```javascript\n_.str.include(\"foobar\", \"ob\")\n=> true\n```\n\n(removed) **includes** _.includes(string, substring)\n\nTests if string contains a substring.\n\n```javascript\n_.includes(\"foobar\", \"ob\")\n=> true\n```\n\n**includes** function was removed\n\nBut you can create it in this way, for compatibility with previous versions:\n\n```javascript\n_.includes = _.str.include\n```\n\n**count** _.count(string, substring)\n\n```javascript\n_('Hello world').count('l')\n=> 3\n```\n\n**escapeHTML** _.escapeHTML(string)\n\nConverts HTML special characters to their entity equivalents.\n\n```javascript\n_('
Blah blah blah
').escapeHTML();\n=> '<div>Blah blah blah</div>'\n```\n\n**unescapeHTML** _.unescapeHTML(string)\n\nConverts entity characters to HTML equivalents.\n\n```javascript\n_('<div>Blah blah blah</div>').unescapeHTML();\n=> '
Blah blah blah
'\n```\n\n**insert** _.insert(string, index, substing)\n\n```javascript\n_('Hello ').insert(6, 'world')\n=> 'Hello world'\n```\n\n**isBlank** _.isBlank(string)\n\n```javascript\n_('').isBlank(); // => true\n_('\\n').isBlank(); // => true\n_(' ').isBlank(); // => true\n_('a').isBlank(); // => false\n```\n\n**join** _.join(separator, *strings)\n\nJoins strings together with given separator\n\n```javascript\n_.join(\" \", \"foo\", \"bar\")\n=> \"foo bar\"\n```\n\n**lines** _.lines(str)\n\n```javascript\n_.lines(\"Hello\\nWorld\")\n=> [\"Hello\", \"World\"]\n```\n\n**reverse** available only through _.str object, because Underscore has function with the same name.\n\nReturn reversed string:\n\n```javascript\n_.str.reverse(\"foobar\")\n=> 'raboof'\n```\n\n**splice** _.splice(string, index, howmany, substring)\n\nLike a array splice.\n\n```javascript\n_('https://edtsech@bitbucket.org/edtsech/underscore.strings').splice(30, 7, 'epeli')\n=> 'https://edtsech@bitbucket.org/epeli/underscore.strings'\n```\n\n**startsWith** _.startsWith(string, starts)\n\nThis method checks whether string starts with starts.\n\n```javascript\n_(\"image.gif\").startsWith(\"image\")\n=> true\n```\n\n**endsWith** _.endsWith(string, ends)\n\nThis method checks whether string ends with ends.\n\n```javascript\n_(\"image.gif\").endsWith(\"gif\")\n=> true\n```\n\n**succ** _.succ(str)\n\nReturns the successor to str.\n\n```javascript\n_('a').succ()\n=> 'b'\n\n_('A').succ()\n=> 'B'\n```\n\n**supplant**\n\nSupplant function was removed, use Underscore.js [template function][p].\n\n[p]: http://documentcloud.github.com/underscore/#template\n\n**strip** alias for *trim*\n\n**lstrip** alias for *ltrim*\n\n**rstrip** alias for *rtrim*\n\n**titleize** _.titleize(string)\n\n```javascript\n_('my name is epeli').titleize()\n=> 'My Name Is Epeli'\n```\n\n**camelize** _.camelize(string)\n\nConverts underscored or dasherized string to a camelized one\n\n```javascript\n_('-moz-transform').camelize()\n=> 'MozTransform'\n```\n\n**classify** _.classify(string)\n\nConverts string to camelized class name\n\n```javascript\n_('some_class_name').classify()\n=> 'SomeClassName'\n```\n\n**underscored** _.underscored(string)\n\nConverts a camelized or dasherized string into an underscored one\n\n```javascript\n_('MozTransform').underscored()\n=> 'moz_transform'\n```\n\n**dasherize** _.dasherize(string)\n\nConverts a underscored or camelized string into an dasherized one\n\n```javascript\n_('MozTransform').dasherize()\n=> '-moz-transform'\n```\n\n**humanize** _.humanize(string)\n\nConverts an underscored, camelized, or dasherized string into a humanized one.\nAlso removes beginning and ending whitespace, and removes the postfix '_id'.\n\n```javascript\n_(' capitalize dash-CamelCase_underscore trim ').humanize()\n=> 'Capitalize dash camel case underscore trim'\n```\n\n**trim** _.trim(string, [characters])\n\ntrims defined characters from begining and ending of the string.\nDefaults to whitespace characters.\n\n```javascript\n_.trim(\" foobar \")\n=> \"foobar\"\n\n_.trim(\"_-foobar-_\", \"_-\")\n=> \"foobar\"\n```\n\n\n**ltrim** _.ltrim(string, [characters])\n\nLeft trim. Similar to trim, but only for left side.\n\n\n**rtrim** _.rtrim(string, [characters])\n\nRight trim. Similar to trim, but only for right side.\n\n**truncate** _.truncate(string, length, truncateString)\n\n```javascript\n_('Hello world').truncate(5)\n=> 'Hello...'\n\n_('Hello').truncate(10)\n=> 'Hello'\n```\n\n**prune** _.prune(string, length, pruneString)\n\nElegant version of truncate.\nMakes sure the pruned string does not exceed the original length.\nAvoid half-chopped words when truncating.\n\n```javascript\n_('Hello, world').prune(5)\n=> 'Hello...'\n\n_('Hello, world').prune(8)\n=> 'Hello...'\n\n_('Hello, world').prune(5, ' (read a lot more)')\n=> 'Hello, world' (as adding \"(read a lot more)\" would be longer than the original string)\n\n_('Hello, cruel world').prune(15)\n=> 'Hello, cruel...'\n\n_('Hello').prune(10)\n=> 'Hello'\n```\n\n**words** _.words(str, delimiter=/\\s+/)\n\nSplit string by delimiter (String or RegExp), /\\s+/ by default.\n\n```javascript\n_.words(\" I love you \")\n=> [\"I\",\"love\",\"you\"]\n\n_.words(\"I_love_you\", \"_\")\n=> [\"I\",\"love\",\"you\"]\n\n_.words(\"I-love-you\", /-/)\n=> [\"I\",\"love\",\"you\"]\n\n_.words(\" \")\n=> []\n```\n\n**sprintf** _.sprintf(string format, *arguments)\n\nC like string formatting.\nCredits goes to [Alexandru Marasteanu][o].\nFor more detailed documentation, see the [original page][o].\n\n[o]: http://www.diveintojavascript.com/projects/sprintf-for-javascript\n\n```javascript\n_.sprintf(\"%.1f\", 1.17)\n\"1.2\"\n```\n\n**pad** _.pad(str, length, [padStr, type])\n\npads the `str` with characters until the total string length is equal to the passed `length` parameter. By default, pads on the **left** with the space char (`\" \"`). `padStr` is truncated to a single character if necessary.\n\n```javascript\n_.pad(\"1\", 8)\n-> \" 1\";\n\n_.pad(\"1\", 8, '0')\n-> \"00000001\";\n\n_.pad(\"1\", 8, '0', 'right')\n-> \"10000000\";\n\n_.pad(\"1\", 8, '0', 'both')\n-> \"00001000\";\n\n_.pad(\"1\", 8, 'bleepblorp', 'both')\n-> \"bbbb1bbb\";\n```\n\n**lpad** _.lpad(str, length, [padStr])\n\nleft-pad a string. Alias for `pad(str, length, padStr, 'left')`\n\n```javascript\n_.lpad(\"1\", 8, '0')\n-> \"00000001\";\n```\n\n**rpad** _.rpad(str, length, [padStr])\n\nright-pad a string. Alias for `pad(str, length, padStr, 'right')`\n\n```javascript\n_.rpad(\"1\", 8, '0')\n-> \"10000000\";\n```\n\n**lrpad** _.lrpad(str, length, [padStr])\n\nleft/right-pad a string. Alias for `pad(str, length, padStr, 'both')`\n\n```javascript\n_.lrpad(\"1\", 8, '0')\n-> \"00001000\";\n```\n\n**center** alias for **lrpad**\n\n**ljust** alias for *rpad*\n\n**rjust** alias for *lpad*\n\n**toNumber** _.toNumber(string, [decimals])\n\nParse string to number. Returns NaN if string can't be parsed to number.\n\n```javascript\n_('2.556').toNumber()\n=> 3\n\n_('2.556').toNumber(1)\n=> 2.6\n```\n\n**strRight** _.strRight(string, pattern)\n\nSearches a string from left to right for a pattern and returns a substring consisting of the characters in the string that are to the right of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strRight('_')\n=> \"is_a_test_string\";\n```\n\n**strRightBack** _.strRightBack(string, pattern)\n\nSearches a string from right to left for a pattern and returns a substring consisting of the characters in the string that are to the right of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strRightBack('_')\n=> \"string\";\n```\n\n**strLeft** _.strLeft(string, pattern)\n\nSearches a string from left to right for a pattern and returns a substring consisting of the characters in the string that are to the left of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strLeft('_')\n=> \"This\";\n```\n\n**strLeftBack** _.strLeftBack(string, pattern)\n\nSearches a string from right to left for a pattern and returns a substring consisting of the characters in the string that are to the left of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strLeftBack('_')\n=> \"This_is_a_test\";\n```\n\n**stripTags**\n\nRemoves all html tags from string.\n\n```javascript\n_('a link').stripTags()\n=> 'a link'\n\n_('a link').stripTags()\n=> 'a linkalert(\"hello world!\")'\n```\n\n**toSentence** _.toSentence(array, [delimiter, lastDelimiter])\n\nJoin an array into a human readable sentence.\n\n```javascript\n_.toSentence(['jQuery', 'Mootools', 'Prototype'])\n=> 'jQuery, Mootools and Prototype';\n\n_.toSentence(['jQuery', 'Mootools', 'Prototype'], ', ', ' unt ')\n=> 'jQuery, Mootools unt Prototype';\n```\n\n**toSentenceSerial** _.toSentenceSerial(array, [delimiter, lastDelimiter])\n\nThe same as `toSentence`, but adjusts delimeters to use [Serial comma](http://en.wikipedia.org/wiki/Serial_comma).\n\n```javascript\n_.toSentenceSerial(['jQuery', 'Mootools'])\n=> 'jQuery and Mootools';\n\n_.toSentenceSerial(['jQuery', 'Mootools', 'Prototype'])\n=> 'jQuery, Mootools, and Prototype'\n\n_.toSentenceSerial(['jQuery', 'Mootools', 'Prototype'], ', ', ' unt ');\n=> 'jQuery, Mootools, unt Prototype';\n```\n\n**repeat** _.repeat(string, count, [separator])\n\nRepeats a string count times.\n\n```javascript\n_.repeat(\"foo\", 3)\n=> 'foofoofoo';\n\n_.repeat(\"foo\", 3, \"bar\")\n=> 'foobarfoobarfoo'\n```\n\n**surround** _.surround(string, wrap)\n\nSurround a string with another string.\n\n```javascript\n_.surround(\"foo\", \"ab\")\n=> 'abfooab';\n```\n\n**quote** _.quote(string, quoteChar) or _.q(string, quoteChar)\n\nQuotes a string. `quoteChar` defaults to `\"`.\n\n```javascript\n_.quote('foo', quoteChar)\n=> '\"foo\"';\n```\n**unquote** _.unquote(string, quoteChar)\n\nUnquotes a string. `quoteChar` defaults to `\"`.\n\n```javascript\n_.unquote('\"foo\"')\n=> 'foo';\n_.unquote(\"'foo'\", \"'\")\n=> 'foo';\n```\n\n\n**slugify** _.slugify(string)\n\nTransform text into a URL slug. Replaces whitespaces, accentuated, and special characters with a dash.\n\n```javascript\n_.slugify(\"Un éléphant à l'orée du bois\")\n=> 'un-elephant-a-loree-du-bois';\n```\n\n***Caution: this function is charset dependent***\n\n**naturalCmp** array.sort(_.naturalCmp)\n\nNaturally sort strings like humans would do.\n\n```javascript\n['foo20', 'foo5'].sort(_.naturalCmp)\n=> [ 'foo5', 'foo20' ]\n```\n\n**toBoolean** _.toBoolean(string) or _.toBool(string)\n\nTurn strings that can be commonly considered as booleas to real booleans. Such as \"true\", \"false\", \"1\" and \"0\". This function is case insensitive.\n\n```javascript\n_.toBoolean(\"true\")\n=> true\n_.toBoolean(\"FALSE\")\n=> false\n_.toBoolean(\"random\")\n=> undefined\n```\n\nIt can be customized by giving arrays of truth and falsy value matcher as parameters. Matchers can be also RegExp objects.\n\n```javascript\n_.toBoolean(\"truthy\", [\"truthy\"], [\"falsy\"])\n=> true\n_.toBoolean(\"true only at start\", [/^true/])\n=> true\n```\n\n## Roadmap ##\n\nAny suggestions or bug reports are welcome. Just email me or more preferably open an issue.\n\n#### Problems\n\nWe lose two things for `include` and `reverse` methods from `_.string`:\n\n* Calls like `_('foobar').include('bar')` aren't available;\n* Chaining isn't available too.\n\nBut if you need this functionality you can create aliases for conflict functions which will be convenient for you:\n\n```javascript\n_.mixin({\n includeString: _.str.include,\n reverseString: _.str.reverse\n})\n\n// Now wrapper calls and chaining are available.\n_('foobar').chain().reverseString().includeString('rab').value()\n```\n\n#### Standalone Usage\n\nIf you are using Underscore.string without Underscore. You also have `_.string` namespace for it and `_.str` alias\nBut of course you can just reassign `_` variable with `_.string`\n\n```javascript\n_ = _.string\n```\n\n## Changelog ##\n\n### 2.3.3 ###\n\n* Add `toBoolean`\n* Add `unquote`\n* Add quote char option to `quote`\n* Support dash-separated words in `titleize`\n\n### 2.3.2 ###\n\n* Add `naturalCmp`\n* Bug fix to `camelize`\n* Add ă, ș, ț and ś to `slugify`\n* Doc updates\n* Add support for [component](http://component.io/)\n* [Full changelog](https://github.com/epeli/underscore.string/compare/v2.3.1...v2.3.2)\n\n### 2.3.1 ###\n\n* Bug fixes to `escapeHTML`, `classify`, `substr`\n* Faster `count`\n* Documentation fixes\n* [Full changelog](https://github.com/epeli/underscore.string/compare/v2.3.0...v2.3.1)\n\n### 2.3.0 ###\n\n* Added `numberformat` method\n* Added `levenshtein` method (Levenshtein distance calculation)\n* Added `swapCase` method\n* Changed default behavior of `words` method\n* Added `toSentenceSerial` method\n* Added `surround` and `quote` methods\n\n### 2.2.1 ###\n\n* Same as 2.2.0 (2.2.0rc on npm) to fix some npm drama\n\n### 2.2.0 ###\n\n* Capitalize method behavior changed\n* Various perfomance tweaks\n\n### 2.1.1###\n\n* Fixed words method bug\n* Added classify method\n\n### 2.1.0 ###\n\n* AMD support\n* Added toSentence method\n* Added slugify method\n* Lots of speed optimizations\n\n### 2.0.0 ###\n\n* Added prune, humanize functions\n* Added _.string (_.str) namespace for Underscore.string library\n* Removed includes function\n\nFor upgrading to this version you need to mix in Underscore.string library to Underscore object:\n\n```javascript\n_.mixin(_.string.exports());\n```\n\nand all non-conflict Underscore.string functions will be available through Underscore object.\nAlso function `includes` has been removed, you should replace this function by `_.str.include`\nor create alias `_.includes = _.str.include` and all your code will work fine.\n\n### 1.1.6 ###\n\n* Fixed reverse and truncate\n* Added isBlank, stripTags, inlude(alias for includes)\n* Added uglifier compression\n\n### 1.1.5 ###\n\n* Added strRight, strRightBack, strLeft, strLeftBack\n\n### 1.1.4 ###\n\n* Added pad, lpad, rpad, lrpad methods and aliases center, ljust, rjust\n* Integration with Underscore 1.1.6\n\n### 1.1.3 ###\n\n* Added methods: underscored, camelize, dasherize\n* Support newer version of npm\n\n### 1.1.2 ###\n\n* Created functions: lines, chars, words functions\n\n### 1.0.2 ###\n\n* Created integration test suite with underscore.js 1.1.4 (now it's absolutely compatible)\n* Removed 'reverse' function, because this function override underscore.js 'reverse'\n\n## Contribute ##\n\n* Fork & pull request. Don't forget about tests.\n* If you planning add some feature please create issue before.\n\nOtherwise changes will be rejected.\n\n## Contributors list ##\n[Can be found here](https://github.com/epeli/underscore.string/graphs/contributors).\n\n\n## Licence ##\n\nThe MIT License\n\nCopyright (c) 2011 Esa-Matti Suuronen esa-matti@suuronen.org\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
- "_id": "underscore.string@2.3.3",
- "dist": {
- "shasum": "b3fc4960a9caa6cdc0301474edcbf4579b049580"
- },
- "_from": "underscore.string@~2.3.1"
-}
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js
deleted file mode 100644
index 44a2167..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js
+++ /dev/null
@@ -1,45 +0,0 @@
-function waitFor(test, complete, timeout) {
- var result, start = new Date().getTime()
- setInterval(function interval() {
- if ((new Date().getTime() - start < timeout) && !result) {
- result = test()
- } else {
- if (!result) {
- phantom.exit(1)
- } else {
- complete()
- clearInterval(interval)
- }
- }
- }, 100)
-}
-
-
-var fs = require('fs'), page = require('webpage').create();
-var url = 'file://localhost' + fs.workingDirectory + '/' + phantom.args[0];
-
-page.onConsoleMessage = function(msg) {
- console.log(msg)
-}
-
-page.open(url, function(status) {
- waitFor(function() {
- return page.evaluate(function(){
- var el = document.getElementById('qunit-testresult')
- return el && el.innerText.match('completed')
- })
- }, function() {
- var failures = page.evaluate(function() {
- var el = document.getElementById('qunit-testresult'),
- fails = document.getElementsByClassName('fail')
-
- for (var i = 0; i < fails.length; i++)
- console.log(fails[i].innerText)
-
- console.log(el.innerText)
-
- return parseInt(el.getElementsByClassName('failed')[0].innerHTML)
- })
- phantom.exit(failures > 0 ? 1 : 0)
- }, 10000)
-})
\ No newline at end of file
diff --git a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js b/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js
deleted file mode 100644
index 9ceeea7..0000000
--- a/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js
+++ /dev/null
@@ -1,148 +0,0 @@
-(function() {
-
- JSLitmus.test('levenshtein', function() {
- return [
- _.levenshtein('pineapple', 'potato'),
- _.levenshtein('seven', 'eight'),
- _.levenshtein('the very same string', 'the very same string'),
- _.levenshtein('very very very long string', 'something completely different')
- ];
- });
-
-
- JSLitmus.test('trimNoNative', function() {
- return _.trim(" foobar ", " ");
- });
-
- JSLitmus.test('trim', function() {
- return _.trim(" foobar ");
- });
-
- JSLitmus.test('trim object-oriented', function() {
- return _(" foobar ").trim();
- });
-
- JSLitmus.test('trim jQuery', function() {
- return jQuery.trim(" foobar ");
- });
-
- JSLitmus.test('ltrimp', function() {
- return _.ltrim(" foobar ", " ");
- });
-
- JSLitmus.test('rtrimp', function() {
- return _.rtrim(" foobar ", " ");
- });
-
- JSLitmus.test('startsWith', function() {
- return _.startsWith("foobar", "foo");
- });
-
- JSLitmus.test('endsWith', function() {
- return _.endsWith("foobar", "xx");
- });
-
- JSLitmus.test('chop', function(){
- return _('whitespace').chop(2);
- });
-
- JSLitmus.test('count', function(){
- return _('Hello worls').count('l');
- });
-
- JSLitmus.test('insert', function() {
- return _('Hello ').insert(6, 'world');
- });
-
- JSLitmus.test('splice', function() {
- return _('https://edtsech@bitbucket.org/edtsech/underscore.strings').splice(30, 7, 'epeli');
- });
-
- JSLitmus.test('succ', function(){
- var let = 'a', alphabet = [];
-
- for (var i=0; i < 26; i++) {
- alphabet.push(let);
- let = _(let).succ();
- }
-
- return alphabet;
- });
-
- JSLitmus.test('titleize', function(){
- return _('the titleize string method').titleize();
- });
-
- JSLitmus.test('truncate', function(){
- return _('Hello world').truncate(5);
- });
-
- JSLitmus.test('prune', function(){
- return _('Hello world').prune(5);
- });
-
- JSLitmus.test('isBlank', function(){
- return _('').isBlank();
- });
-
- JSLitmus.test('escapeHTML', function(){
- _('