├── .gitignore
├── Gruntfile.js
├── LICENSE
├── README.md
├── assets
└── screenshot-1.png
├── package-lock.json
├── package.json
├── readme.txt
└── wpml-rest-api.php
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | .idea/
--------------------------------------------------------------------------------
/Gruntfile.js:
--------------------------------------------------------------------------------
1 | module.exports = function( grunt ) {
2 |
3 | 'use strict';
4 | var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
5 | // Project configuration
6 | grunt.initConfig( {
7 |
8 | pkg: grunt.file.readJSON( 'package.json' ),
9 |
10 | addtextdomain: {
11 | options: {
12 | textdomain: 'wpcli-clean-multisitedb',
13 | },
14 | target: {
15 | files: {
16 | src: [ '*.php', '**/*.php', '!node_modules/**', '!php-tests/**', '!bin/**' ]
17 | }
18 | }
19 | },
20 |
21 | wp_readme_to_markdown: {
22 | your_target: {
23 | files: {
24 | 'README.md': 'readme.txt'
25 | }
26 | },
27 | },
28 |
29 | makepot: {
30 | target: {
31 | options: {
32 | domainPath: '/languages',
33 | mainFile: 'wpcli-clean-multisitedb.php',
34 | potFilename: 'wpcli-clean-multisitedb.pot',
35 | potHeaders: {
36 | poedit: true,
37 | 'x-poedit-keywordslist': true
38 | },
39 | type: 'wp-plugin',
40 | updateTimestamp: true
41 | }
42 | }
43 | },
44 | } );
45 |
46 | grunt.loadNpmTasks( 'grunt-wp-i18n' );
47 | grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
48 | grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
49 | grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
50 |
51 | grunt.util.linefeed = '\n';
52 |
53 | };
54 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WPML REST API #
2 | **Contributors:** [shooper](https://profiles.wordpress.org/shooper/)
3 | **Donate link:** http://shawnhooper.ca/
4 | **Tags:** wpml, api, rest
5 | **Requires at least:** 5.2
6 | **Tested up to:** 6.4.2
7 | **Requires PHP:** 7.4
8 | **Stable tag:** trunk
9 | **License:** GPLv2 or later
10 | **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
11 |
12 | Get translations details with the WP REST API on sites running WordPress & WPML
13 |
14 | ## Description ##
15 |
16 | This plugin adds links to pages and posts in other languages into the results of a WP REST API query for sites running the WPML plugin.
17 |
18 | It adds a "wpml_current_locale" string containing the locale code of the current response, and a "wpml_translations" array
19 | containing the available translations for this plugin.
20 |
21 | ## Screenshots ##
22 |
23 | 1. This screenshot shows an excerpt of the JSON returned by the WP REST API when a page has translations available
24 |
25 | ## Changelog ##
26 |
27 | ### 2.0.1 (2024-01-07) ###
28 | * Fixed: Some posts without translations would return a random post when no translation was available
29 |
30 | ### 2.0.0 (2022-10-27) ###
31 | * Fixed: Permalink style /yyyy/mm/dd/post_name/ returns slug without the dates (reported by @lukas-hablitzel)
32 | * Change: array keys in the wpml_translations response are now the locale code instead of an integer
33 | * Updated PHP Style: Short array syntax
34 | * Updated PHP Style: Added return types to all methods
35 | * Updated PHP Style: Added types to all parameters
36 | * Updated PHP Style: replaced str_pos with str_contains and str_ends_with
37 |
38 | ### 1.1.4 (2022-05-31) ###
39 | * Update build tool dependencies to fix CVE-2022-1537, CVE-2022-0436 and CVE-2020-7729
40 |
41 | ### 1.1.3 (2022-03-18) ###
42 | * Returns the post slug (post_name column) in the return value (thanks @mags1317)
43 |
44 | ### 1.1.2 (2021-06-27) ###
45 | * Fixed child page URL handling
46 | * Adds 'wpmlrestapi_get_translation' filter immediately before adding translation to array (thanks @elskwid)
47 |
48 | ### 1.1.1 (2021-01-10) ###
49 | * Fix: Refactored into a class and namesapce (thanks @szepeviktor)
50 | * Changed minimum required version to 5.2 (for PHP 7 support)
51 |
52 | ### 1.1 (2021-01-05) ###
53 | * Fix: properly renders URLs for pages that have parent parents (Thank you @rburgst)
54 | * Fix: Respect home and allow filtering of language url (Thank you ghost contributor)
55 | * Fix: Updated WPML filters/functions to replace deprecated ones.
56 | * Fix: No longer returns draft translations
57 | * Fix: When adding new posts - PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array (Thanks @darenzammit!)
58 |
59 | ### 1.0.5 ###
60 | * Allows language switching by specifying 'lang' or 'wpml_lang' parameters on the query string.
61 | * Typos in code fixed.
62 |
63 | ### 1.0 ###
64 | * First release.
65 |
--------------------------------------------------------------------------------
/assets/screenshot-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shawnhooper/wpml-rest-api/b168287a1e73fd2c5ac52d46a14abc2a2b4be3fd/assets/screenshot-1.png
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wpml-rest-api",
3 | "version": "0.0.0",
4 | "lockfileVersion": 2,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "wpml-rest-api",
9 | "version": "0.0.0",
10 | "devDependencies": {
11 | "grunt": "^1.5.3",
12 | "grunt-wp-i18n": "^1.0.3",
13 | "grunt-wp-readme-to-markdown": "^2.1.0"
14 | }
15 | },
16 | "node_modules/abbrev": {
17 | "version": "1.1.1",
18 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
19 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
20 | "dev": true
21 | },
22 | "node_modules/ansi-styles": {
23 | "version": "4.3.0",
24 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
25 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
26 | "dev": true,
27 | "dependencies": {
28 | "color-convert": "^2.0.1"
29 | },
30 | "engines": {
31 | "node": ">=8"
32 | },
33 | "funding": {
34 | "url": "https://github.com/chalk/ansi-styles?sponsor=1"
35 | }
36 | },
37 | "node_modules/argparse": {
38 | "version": "1.0.10",
39 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
40 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
41 | "dev": true,
42 | "dependencies": {
43 | "sprintf-js": "~1.0.2"
44 | }
45 | },
46 | "node_modules/array-each": {
47 | "version": "1.0.1",
48 | "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz",
49 | "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==",
50 | "dev": true,
51 | "engines": {
52 | "node": ">=0.10.0"
53 | }
54 | },
55 | "node_modules/array-slice": {
56 | "version": "1.1.0",
57 | "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz",
58 | "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==",
59 | "dev": true,
60 | "engines": {
61 | "node": ">=0.10.0"
62 | }
63 | },
64 | "node_modules/async": {
65 | "version": "3.2.3",
66 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz",
67 | "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==",
68 | "dev": true
69 | },
70 | "node_modules/balanced-match": {
71 | "version": "1.0.2",
72 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
73 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
74 | "dev": true
75 | },
76 | "node_modules/bluebird": {
77 | "version": "3.7.2",
78 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
79 | "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
80 | "dev": true
81 | },
82 | "node_modules/brace-expansion": {
83 | "version": "1.1.11",
84 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
85 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
86 | "dev": true,
87 | "dependencies": {
88 | "balanced-match": "^1.0.0",
89 | "concat-map": "0.0.1"
90 | }
91 | },
92 | "node_modules/braces": {
93 | "version": "3.0.2",
94 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
95 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
96 | "dev": true,
97 | "dependencies": {
98 | "fill-range": "^7.0.1"
99 | },
100 | "engines": {
101 | "node": ">=8"
102 | }
103 | },
104 | "node_modules/chalk": {
105 | "version": "4.1.2",
106 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
107 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
108 | "dev": true,
109 | "dependencies": {
110 | "ansi-styles": "^4.1.0",
111 | "supports-color": "^7.1.0"
112 | },
113 | "engines": {
114 | "node": ">=10"
115 | },
116 | "funding": {
117 | "url": "https://github.com/chalk/chalk?sponsor=1"
118 | }
119 | },
120 | "node_modules/color-convert": {
121 | "version": "2.0.1",
122 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
123 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
124 | "dev": true,
125 | "dependencies": {
126 | "color-name": "~1.1.4"
127 | },
128 | "engines": {
129 | "node": ">=7.0.0"
130 | }
131 | },
132 | "node_modules/color-name": {
133 | "version": "1.1.4",
134 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
135 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
136 | "dev": true
137 | },
138 | "node_modules/colors": {
139 | "version": "1.1.2",
140 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz",
141 | "integrity": "sha512-ENwblkFQpqqia6b++zLD/KUWafYlVY/UNnAp7oz7LY7E924wmpye416wBOmvv/HMWzl8gL1kJlfvId/1Dg176w==",
142 | "dev": true,
143 | "engines": {
144 | "node": ">=0.1.90"
145 | }
146 | },
147 | "node_modules/concat-map": {
148 | "version": "0.0.1",
149 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
150 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
151 | "dev": true
152 | },
153 | "node_modules/dateformat": {
154 | "version": "3.0.3",
155 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz",
156 | "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==",
157 | "dev": true,
158 | "engines": {
159 | "node": "*"
160 | }
161 | },
162 | "node_modules/detect-file": {
163 | "version": "1.0.0",
164 | "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz",
165 | "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==",
166 | "dev": true,
167 | "engines": {
168 | "node": ">=0.10.0"
169 | }
170 | },
171 | "node_modules/encoding": {
172 | "version": "0.1.13",
173 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
174 | "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
175 | "dev": true,
176 | "dependencies": {
177 | "iconv-lite": "^0.6.2"
178 | }
179 | },
180 | "node_modules/encoding/node_modules/iconv-lite": {
181 | "version": "0.6.3",
182 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
183 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
184 | "dev": true,
185 | "dependencies": {
186 | "safer-buffer": ">= 2.1.2 < 3.0.0"
187 | },
188 | "engines": {
189 | "node": ">=0.10.0"
190 | }
191 | },
192 | "node_modules/esprima": {
193 | "version": "4.0.1",
194 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
195 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
196 | "dev": true,
197 | "bin": {
198 | "esparse": "bin/esparse.js",
199 | "esvalidate": "bin/esvalidate.js"
200 | },
201 | "engines": {
202 | "node": ">=4"
203 | }
204 | },
205 | "node_modules/eventemitter2": {
206 | "version": "0.4.14",
207 | "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz",
208 | "integrity": "sha512-K7J4xq5xAD5jHsGM5ReWXRTFa3JRGofHiMcVgQ8PRwgWxzjHpMWCIzsmyf60+mh8KLsqYPcjUMa0AC4hd6lPyQ==",
209 | "dev": true
210 | },
211 | "node_modules/exit": {
212 | "version": "0.1.2",
213 | "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
214 | "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==",
215 | "dev": true,
216 | "engines": {
217 | "node": ">= 0.8.0"
218 | }
219 | },
220 | "node_modules/expand-tilde": {
221 | "version": "2.0.2",
222 | "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz",
223 | "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==",
224 | "dev": true,
225 | "dependencies": {
226 | "homedir-polyfill": "^1.0.1"
227 | },
228 | "engines": {
229 | "node": ">=0.10.0"
230 | }
231 | },
232 | "node_modules/extend": {
233 | "version": "3.0.2",
234 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
235 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
236 | "dev": true
237 | },
238 | "node_modules/fill-range": {
239 | "version": "7.0.1",
240 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
241 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
242 | "dev": true,
243 | "dependencies": {
244 | "to-regex-range": "^5.0.1"
245 | },
246 | "engines": {
247 | "node": ">=8"
248 | }
249 | },
250 | "node_modules/findup-sync": {
251 | "version": "0.3.0",
252 | "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz",
253 | "integrity": "sha512-z8Nrwhi6wzxNMIbxlrTzuUW6KWuKkogZ/7OdDVq+0+kxn77KUH1nipx8iU6suqkHqc4y6n7a9A8IpmxY/pTjWg==",
254 | "dev": true,
255 | "dependencies": {
256 | "glob": "~5.0.0"
257 | },
258 | "engines": {
259 | "node": ">= 0.6.0"
260 | }
261 | },
262 | "node_modules/findup-sync/node_modules/glob": {
263 | "version": "5.0.15",
264 | "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz",
265 | "integrity": "sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA==",
266 | "dev": true,
267 | "dependencies": {
268 | "inflight": "^1.0.4",
269 | "inherits": "2",
270 | "minimatch": "2 || 3",
271 | "once": "^1.3.0",
272 | "path-is-absolute": "^1.0.0"
273 | },
274 | "engines": {
275 | "node": "*"
276 | }
277 | },
278 | "node_modules/fined": {
279 | "version": "1.2.0",
280 | "resolved": "https://registry.npmjs.org/fined/-/fined-1.2.0.tgz",
281 | "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==",
282 | "dev": true,
283 | "dependencies": {
284 | "expand-tilde": "^2.0.2",
285 | "is-plain-object": "^2.0.3",
286 | "object.defaults": "^1.1.0",
287 | "object.pick": "^1.2.0",
288 | "parse-filepath": "^1.0.1"
289 | },
290 | "engines": {
291 | "node": ">= 0.10"
292 | }
293 | },
294 | "node_modules/flagged-respawn": {
295 | "version": "1.0.1",
296 | "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz",
297 | "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==",
298 | "dev": true,
299 | "engines": {
300 | "node": ">= 0.10"
301 | }
302 | },
303 | "node_modules/for-in": {
304 | "version": "1.0.2",
305 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
306 | "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==",
307 | "dev": true,
308 | "engines": {
309 | "node": ">=0.10.0"
310 | }
311 | },
312 | "node_modules/for-own": {
313 | "version": "1.0.0",
314 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz",
315 | "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==",
316 | "dev": true,
317 | "dependencies": {
318 | "for-in": "^1.0.1"
319 | },
320 | "engines": {
321 | "node": ">=0.10.0"
322 | }
323 | },
324 | "node_modules/fs.realpath": {
325 | "version": "1.0.0",
326 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
327 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
328 | "dev": true
329 | },
330 | "node_modules/function-bind": {
331 | "version": "1.1.1",
332 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
333 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
334 | "dev": true
335 | },
336 | "node_modules/getobject": {
337 | "version": "1.0.2",
338 | "resolved": "https://registry.npmjs.org/getobject/-/getobject-1.0.2.tgz",
339 | "integrity": "sha512-2zblDBaFcb3rB4rF77XVnuINOE2h2k/OnqXAiy0IrTxUfV1iFp3la33oAQVY9pCpWU268WFYVt2t71hlMuLsOg==",
340 | "dev": true,
341 | "engines": {
342 | "node": ">=10"
343 | }
344 | },
345 | "node_modules/gettext-parser": {
346 | "version": "3.1.1",
347 | "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-3.1.1.tgz",
348 | "integrity": "sha512-vNhWcqXEtZPs5Ft1ReA34g7ByWotpcOIeJvXVy2jF3/G2U9v6W0wG4Z4hXzcU8R//jArqkgHcVCGgGqa4vxVlQ==",
349 | "dev": true,
350 | "dependencies": {
351 | "encoding": "^0.1.12",
352 | "readable-stream": "^3.2.0",
353 | "safe-buffer": "^5.1.2"
354 | }
355 | },
356 | "node_modules/glob": {
357 | "version": "7.1.7",
358 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz",
359 | "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
360 | "dev": true,
361 | "dependencies": {
362 | "fs.realpath": "^1.0.0",
363 | "inflight": "^1.0.4",
364 | "inherits": "2",
365 | "minimatch": "^3.0.4",
366 | "once": "^1.3.0",
367 | "path-is-absolute": "^1.0.0"
368 | },
369 | "engines": {
370 | "node": "*"
371 | },
372 | "funding": {
373 | "url": "https://github.com/sponsors/isaacs"
374 | }
375 | },
376 | "node_modules/global-modules": {
377 | "version": "1.0.0",
378 | "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz",
379 | "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==",
380 | "dev": true,
381 | "dependencies": {
382 | "global-prefix": "^1.0.1",
383 | "is-windows": "^1.0.1",
384 | "resolve-dir": "^1.0.0"
385 | },
386 | "engines": {
387 | "node": ">=0.10.0"
388 | }
389 | },
390 | "node_modules/global-prefix": {
391 | "version": "1.0.2",
392 | "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz",
393 | "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==",
394 | "dev": true,
395 | "dependencies": {
396 | "expand-tilde": "^2.0.2",
397 | "homedir-polyfill": "^1.0.1",
398 | "ini": "^1.3.4",
399 | "is-windows": "^1.0.1",
400 | "which": "^1.2.14"
401 | },
402 | "engines": {
403 | "node": ">=0.10.0"
404 | }
405 | },
406 | "node_modules/global-prefix/node_modules/which": {
407 | "version": "1.3.1",
408 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
409 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
410 | "dev": true,
411 | "dependencies": {
412 | "isexe": "^2.0.0"
413 | },
414 | "bin": {
415 | "which": "bin/which"
416 | }
417 | },
418 | "node_modules/grunt": {
419 | "version": "1.5.3",
420 | "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.5.3.tgz",
421 | "integrity": "sha512-mKwmo4X2d8/4c/BmcOETHek675uOqw0RuA/zy12jaspWqvTp4+ZeQF1W+OTpcbncnaBsfbQJ6l0l4j+Sn/GmaQ==",
422 | "dev": true,
423 | "dependencies": {
424 | "dateformat": "~3.0.3",
425 | "eventemitter2": "~0.4.13",
426 | "exit": "~0.1.2",
427 | "findup-sync": "~0.3.0",
428 | "glob": "~7.1.6",
429 | "grunt-cli": "~1.4.3",
430 | "grunt-known-options": "~2.0.0",
431 | "grunt-legacy-log": "~3.0.0",
432 | "grunt-legacy-util": "~2.0.1",
433 | "iconv-lite": "~0.4.13",
434 | "js-yaml": "~3.14.0",
435 | "minimatch": "~3.0.4",
436 | "mkdirp": "~1.0.4",
437 | "nopt": "~3.0.6",
438 | "rimraf": "~3.0.2"
439 | },
440 | "bin": {
441 | "grunt": "bin/grunt"
442 | },
443 | "engines": {
444 | "node": ">=8"
445 | }
446 | },
447 | "node_modules/grunt-cli": {
448 | "version": "1.4.3",
449 | "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.4.3.tgz",
450 | "integrity": "sha512-9Dtx/AhVeB4LYzsViCjUQkd0Kw0McN2gYpdmGYKtE2a5Yt7v1Q+HYZVWhqXc/kGnxlMtqKDxSwotiGeFmkrCoQ==",
451 | "dev": true,
452 | "dependencies": {
453 | "grunt-known-options": "~2.0.0",
454 | "interpret": "~1.1.0",
455 | "liftup": "~3.0.1",
456 | "nopt": "~4.0.1",
457 | "v8flags": "~3.2.0"
458 | },
459 | "bin": {
460 | "grunt": "bin/grunt"
461 | },
462 | "engines": {
463 | "node": ">=10"
464 | }
465 | },
466 | "node_modules/grunt-cli/node_modules/nopt": {
467 | "version": "4.0.3",
468 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz",
469 | "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==",
470 | "dev": true,
471 | "dependencies": {
472 | "abbrev": "1",
473 | "osenv": "^0.1.4"
474 | },
475 | "bin": {
476 | "nopt": "bin/nopt.js"
477 | }
478 | },
479 | "node_modules/grunt-known-options": {
480 | "version": "2.0.0",
481 | "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-2.0.0.tgz",
482 | "integrity": "sha512-GD7cTz0I4SAede1/+pAbmJRG44zFLPipVtdL9o3vqx9IEyb7b4/Y3s7r6ofI3CchR5GvYJ+8buCSioDv5dQLiA==",
483 | "dev": true,
484 | "engines": {
485 | "node": ">=0.10.0"
486 | }
487 | },
488 | "node_modules/grunt-legacy-log": {
489 | "version": "3.0.0",
490 | "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-3.0.0.tgz",
491 | "integrity": "sha512-GHZQzZmhyq0u3hr7aHW4qUH0xDzwp2YXldLPZTCjlOeGscAOWWPftZG3XioW8MasGp+OBRIu39LFx14SLjXRcA==",
492 | "dev": true,
493 | "dependencies": {
494 | "colors": "~1.1.2",
495 | "grunt-legacy-log-utils": "~2.1.0",
496 | "hooker": "~0.2.3",
497 | "lodash": "~4.17.19"
498 | },
499 | "engines": {
500 | "node": ">= 0.10.0"
501 | }
502 | },
503 | "node_modules/grunt-legacy-log-utils": {
504 | "version": "2.1.0",
505 | "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-2.1.0.tgz",
506 | "integrity": "sha512-lwquaPXJtKQk0rUM1IQAop5noEpwFqOXasVoedLeNzaibf/OPWjKYvvdqnEHNmU+0T0CaReAXIbGo747ZD+Aaw==",
507 | "dev": true,
508 | "dependencies": {
509 | "chalk": "~4.1.0",
510 | "lodash": "~4.17.19"
511 | },
512 | "engines": {
513 | "node": ">=10"
514 | }
515 | },
516 | "node_modules/grunt-legacy-util": {
517 | "version": "2.0.1",
518 | "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-2.0.1.tgz",
519 | "integrity": "sha512-2bQiD4fzXqX8rhNdXkAywCadeqiPiay0oQny77wA2F3WF4grPJXCvAcyoWUJV+po/b15glGkxuSiQCK299UC2w==",
520 | "dev": true,
521 | "dependencies": {
522 | "async": "~3.2.0",
523 | "exit": "~0.1.2",
524 | "getobject": "~1.0.0",
525 | "hooker": "~0.2.3",
526 | "lodash": "~4.17.21",
527 | "underscore.string": "~3.3.5",
528 | "which": "~2.0.2"
529 | },
530 | "engines": {
531 | "node": ">=10"
532 | }
533 | },
534 | "node_modules/grunt-wp-i18n": {
535 | "version": "1.0.3",
536 | "resolved": "https://registry.npmjs.org/grunt-wp-i18n/-/grunt-wp-i18n-1.0.3.tgz",
537 | "integrity": "sha512-CJNbEKeBeOSAPeaJ9B8iCgSwtaG63UR9/uT46a4OsIqnFhOJpeAi138JTlvjfIbnDVoBrzvdrKJe1svveLjUtA==",
538 | "dev": true,
539 | "dependencies": {
540 | "grunt": "^1.0.3",
541 | "node-wp-i18n": "^1.2.2"
542 | },
543 | "engines": {
544 | "node": ">=0.12.0"
545 | }
546 | },
547 | "node_modules/grunt-wp-readme-to-markdown": {
548 | "version": "2.1.0",
549 | "resolved": "https://registry.npmjs.org/grunt-wp-readme-to-markdown/-/grunt-wp-readme-to-markdown-2.1.0.tgz",
550 | "integrity": "sha512-32OYDYNaKgykI2vxVsbqzvYBA9xHJI3XqXHSwXbLzUd1wa0ZepoceHYCs4rYFLo3ZxKpPExxvVuH3gLUS/Fq1Q==",
551 | "dev": true,
552 | "engines": {
553 | "node": ">= 0.8.0"
554 | },
555 | "peerDependencies": {
556 | "grunt": ">=0.4.0"
557 | }
558 | },
559 | "node_modules/has": {
560 | "version": "1.0.3",
561 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
562 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
563 | "dev": true,
564 | "dependencies": {
565 | "function-bind": "^1.1.1"
566 | },
567 | "engines": {
568 | "node": ">= 0.4.0"
569 | }
570 | },
571 | "node_modules/has-flag": {
572 | "version": "4.0.0",
573 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
574 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
575 | "dev": true,
576 | "engines": {
577 | "node": ">=8"
578 | }
579 | },
580 | "node_modules/homedir-polyfill": {
581 | "version": "1.0.3",
582 | "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz",
583 | "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==",
584 | "dev": true,
585 | "dependencies": {
586 | "parse-passwd": "^1.0.0"
587 | },
588 | "engines": {
589 | "node": ">=0.10.0"
590 | }
591 | },
592 | "node_modules/hooker": {
593 | "version": "0.2.3",
594 | "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz",
595 | "integrity": "sha512-t+UerCsQviSymAInD01Pw+Dn/usmz1sRO+3Zk1+lx8eg+WKpD2ulcwWqHHL0+aseRBr+3+vIhiG1K1JTwaIcTA==",
596 | "dev": true,
597 | "engines": {
598 | "node": "*"
599 | }
600 | },
601 | "node_modules/iconv-lite": {
602 | "version": "0.4.24",
603 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
604 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
605 | "dev": true,
606 | "dependencies": {
607 | "safer-buffer": ">= 2.1.2 < 3"
608 | },
609 | "engines": {
610 | "node": ">=0.10.0"
611 | }
612 | },
613 | "node_modules/inflight": {
614 | "version": "1.0.6",
615 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
616 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
617 | "dev": true,
618 | "dependencies": {
619 | "once": "^1.3.0",
620 | "wrappy": "1"
621 | }
622 | },
623 | "node_modules/inherits": {
624 | "version": "2.0.4",
625 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
626 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
627 | "dev": true
628 | },
629 | "node_modules/ini": {
630 | "version": "1.3.8",
631 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
632 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
633 | "dev": true
634 | },
635 | "node_modules/interpret": {
636 | "version": "1.1.0",
637 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz",
638 | "integrity": "sha512-CLM8SNMDu7C5psFCn6Wg/tgpj/bKAg7hc2gWqcuR9OD5Ft9PhBpIu8PLicPeis+xDd6YX2ncI8MCA64I9tftIA==",
639 | "dev": true
640 | },
641 | "node_modules/is-absolute": {
642 | "version": "1.0.0",
643 | "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz",
644 | "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==",
645 | "dev": true,
646 | "dependencies": {
647 | "is-relative": "^1.0.0",
648 | "is-windows": "^1.0.1"
649 | },
650 | "engines": {
651 | "node": ">=0.10.0"
652 | }
653 | },
654 | "node_modules/is-core-module": {
655 | "version": "2.9.0",
656 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz",
657 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",
658 | "dev": true,
659 | "dependencies": {
660 | "has": "^1.0.3"
661 | },
662 | "funding": {
663 | "url": "https://github.com/sponsors/ljharb"
664 | }
665 | },
666 | "node_modules/is-extglob": {
667 | "version": "2.1.1",
668 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
669 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
670 | "dev": true,
671 | "engines": {
672 | "node": ">=0.10.0"
673 | }
674 | },
675 | "node_modules/is-glob": {
676 | "version": "4.0.3",
677 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
678 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
679 | "dev": true,
680 | "dependencies": {
681 | "is-extglob": "^2.1.1"
682 | },
683 | "engines": {
684 | "node": ">=0.10.0"
685 | }
686 | },
687 | "node_modules/is-number": {
688 | "version": "7.0.0",
689 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
690 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
691 | "dev": true,
692 | "engines": {
693 | "node": ">=0.12.0"
694 | }
695 | },
696 | "node_modules/is-plain-object": {
697 | "version": "2.0.4",
698 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
699 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
700 | "dev": true,
701 | "dependencies": {
702 | "isobject": "^3.0.1"
703 | },
704 | "engines": {
705 | "node": ">=0.10.0"
706 | }
707 | },
708 | "node_modules/is-relative": {
709 | "version": "1.0.0",
710 | "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz",
711 | "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==",
712 | "dev": true,
713 | "dependencies": {
714 | "is-unc-path": "^1.0.0"
715 | },
716 | "engines": {
717 | "node": ">=0.10.0"
718 | }
719 | },
720 | "node_modules/is-unc-path": {
721 | "version": "1.0.0",
722 | "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz",
723 | "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==",
724 | "dev": true,
725 | "dependencies": {
726 | "unc-path-regex": "^0.1.2"
727 | },
728 | "engines": {
729 | "node": ">=0.10.0"
730 | }
731 | },
732 | "node_modules/is-windows": {
733 | "version": "1.0.2",
734 | "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
735 | "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
736 | "dev": true,
737 | "engines": {
738 | "node": ">=0.10.0"
739 | }
740 | },
741 | "node_modules/isexe": {
742 | "version": "2.0.0",
743 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
744 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
745 | "dev": true
746 | },
747 | "node_modules/isobject": {
748 | "version": "3.0.1",
749 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
750 | "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",
751 | "dev": true,
752 | "engines": {
753 | "node": ">=0.10.0"
754 | }
755 | },
756 | "node_modules/js-yaml": {
757 | "version": "3.14.1",
758 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
759 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
760 | "dev": true,
761 | "dependencies": {
762 | "argparse": "^1.0.7",
763 | "esprima": "^4.0.0"
764 | },
765 | "bin": {
766 | "js-yaml": "bin/js-yaml.js"
767 | }
768 | },
769 | "node_modules/kind-of": {
770 | "version": "6.0.3",
771 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
772 | "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
773 | "dev": true,
774 | "engines": {
775 | "node": ">=0.10.0"
776 | }
777 | },
778 | "node_modules/liftup": {
779 | "version": "3.0.1",
780 | "resolved": "https://registry.npmjs.org/liftup/-/liftup-3.0.1.tgz",
781 | "integrity": "sha512-yRHaiQDizWSzoXk3APcA71eOI/UuhEkNN9DiW2Tt44mhYzX4joFoCZlxsSOF7RyeLlfqzFLQI1ngFq3ggMPhOw==",
782 | "dev": true,
783 | "dependencies": {
784 | "extend": "^3.0.2",
785 | "findup-sync": "^4.0.0",
786 | "fined": "^1.2.0",
787 | "flagged-respawn": "^1.0.1",
788 | "is-plain-object": "^2.0.4",
789 | "object.map": "^1.0.1",
790 | "rechoir": "^0.7.0",
791 | "resolve": "^1.19.0"
792 | },
793 | "engines": {
794 | "node": ">=10"
795 | }
796 | },
797 | "node_modules/liftup/node_modules/findup-sync": {
798 | "version": "4.0.0",
799 | "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-4.0.0.tgz",
800 | "integrity": "sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ==",
801 | "dev": true,
802 | "dependencies": {
803 | "detect-file": "^1.0.0",
804 | "is-glob": "^4.0.0",
805 | "micromatch": "^4.0.2",
806 | "resolve-dir": "^1.0.1"
807 | },
808 | "engines": {
809 | "node": ">= 8"
810 | }
811 | },
812 | "node_modules/lodash": {
813 | "version": "4.17.21",
814 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
815 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
816 | "dev": true
817 | },
818 | "node_modules/make-iterator": {
819 | "version": "1.0.1",
820 | "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz",
821 | "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==",
822 | "dev": true,
823 | "dependencies": {
824 | "kind-of": "^6.0.2"
825 | },
826 | "engines": {
827 | "node": ">=0.10.0"
828 | }
829 | },
830 | "node_modules/map-cache": {
831 | "version": "0.2.2",
832 | "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz",
833 | "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==",
834 | "dev": true,
835 | "engines": {
836 | "node": ">=0.10.0"
837 | }
838 | },
839 | "node_modules/micromatch": {
840 | "version": "4.0.5",
841 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
842 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
843 | "dev": true,
844 | "dependencies": {
845 | "braces": "^3.0.2",
846 | "picomatch": "^2.3.1"
847 | },
848 | "engines": {
849 | "node": ">=8.6"
850 | }
851 | },
852 | "node_modules/minimatch": {
853 | "version": "3.0.8",
854 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz",
855 | "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==",
856 | "dev": true,
857 | "dependencies": {
858 | "brace-expansion": "^1.1.7"
859 | },
860 | "engines": {
861 | "node": "*"
862 | }
863 | },
864 | "node_modules/minimist": {
865 | "version": "1.2.6",
866 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
867 | "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
868 | "dev": true
869 | },
870 | "node_modules/mkdirp": {
871 | "version": "1.0.4",
872 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
873 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
874 | "dev": true,
875 | "bin": {
876 | "mkdirp": "bin/cmd.js"
877 | },
878 | "engines": {
879 | "node": ">=10"
880 | }
881 | },
882 | "node_modules/node-wp-i18n": {
883 | "version": "1.2.6",
884 | "resolved": "https://registry.npmjs.org/node-wp-i18n/-/node-wp-i18n-1.2.6.tgz",
885 | "integrity": "sha512-aLutjDB1rMJ3FNlNcs/XjmaejED1/y30uLYQrmkXpeUj1NH/SA6pI94CUz3iI7fbQd63lTGg0YNvOQAT8cWdIw==",
886 | "dev": true,
887 | "dependencies": {
888 | "bluebird": "^3.4.1",
889 | "gettext-parser": "^3.1.0",
890 | "glob": "^7.0.5",
891 | "lodash": "^4.14.2",
892 | "minimist": "^1.2.5",
893 | "mkdirp": "^1.0.4",
894 | "tmp": "^0.2.1"
895 | },
896 | "bin": {
897 | "wpi18n": "bin/wpi18n"
898 | }
899 | },
900 | "node_modules/nopt": {
901 | "version": "3.0.6",
902 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
903 | "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
904 | "dev": true,
905 | "dependencies": {
906 | "abbrev": "1"
907 | },
908 | "bin": {
909 | "nopt": "bin/nopt.js"
910 | }
911 | },
912 | "node_modules/object.defaults": {
913 | "version": "1.1.0",
914 | "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz",
915 | "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=",
916 | "dev": true,
917 | "dependencies": {
918 | "array-each": "^1.0.1",
919 | "array-slice": "^1.0.0",
920 | "for-own": "^1.0.0",
921 | "isobject": "^3.0.0"
922 | },
923 | "engines": {
924 | "node": ">=0.10.0"
925 | }
926 | },
927 | "node_modules/object.map": {
928 | "version": "1.0.1",
929 | "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz",
930 | "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=",
931 | "dev": true,
932 | "dependencies": {
933 | "for-own": "^1.0.0",
934 | "make-iterator": "^1.0.0"
935 | },
936 | "engines": {
937 | "node": ">=0.10.0"
938 | }
939 | },
940 | "node_modules/object.pick": {
941 | "version": "1.3.0",
942 | "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
943 | "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=",
944 | "dev": true,
945 | "dependencies": {
946 | "isobject": "^3.0.1"
947 | },
948 | "engines": {
949 | "node": ">=0.10.0"
950 | }
951 | },
952 | "node_modules/once": {
953 | "version": "1.4.0",
954 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
955 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
956 | "dev": true,
957 | "dependencies": {
958 | "wrappy": "1"
959 | }
960 | },
961 | "node_modules/os-homedir": {
962 | "version": "1.0.2",
963 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
964 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
965 | "dev": true,
966 | "engines": {
967 | "node": ">=0.10.0"
968 | }
969 | },
970 | "node_modules/os-tmpdir": {
971 | "version": "1.0.2",
972 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
973 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
974 | "dev": true,
975 | "engines": {
976 | "node": ">=0.10.0"
977 | }
978 | },
979 | "node_modules/osenv": {
980 | "version": "0.1.5",
981 | "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
982 | "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
983 | "dev": true,
984 | "dependencies": {
985 | "os-homedir": "^1.0.0",
986 | "os-tmpdir": "^1.0.0"
987 | }
988 | },
989 | "node_modules/parse-filepath": {
990 | "version": "1.0.2",
991 | "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz",
992 | "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=",
993 | "dev": true,
994 | "dependencies": {
995 | "is-absolute": "^1.0.0",
996 | "map-cache": "^0.2.0",
997 | "path-root": "^0.1.1"
998 | },
999 | "engines": {
1000 | "node": ">=0.8"
1001 | }
1002 | },
1003 | "node_modules/parse-passwd": {
1004 | "version": "1.0.0",
1005 | "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz",
1006 | "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=",
1007 | "dev": true,
1008 | "engines": {
1009 | "node": ">=0.10.0"
1010 | }
1011 | },
1012 | "node_modules/path-is-absolute": {
1013 | "version": "1.0.1",
1014 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1015 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
1016 | "dev": true,
1017 | "engines": {
1018 | "node": ">=0.10.0"
1019 | }
1020 | },
1021 | "node_modules/path-parse": {
1022 | "version": "1.0.7",
1023 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
1024 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
1025 | "dev": true
1026 | },
1027 | "node_modules/path-root": {
1028 | "version": "0.1.1",
1029 | "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz",
1030 | "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=",
1031 | "dev": true,
1032 | "dependencies": {
1033 | "path-root-regex": "^0.1.0"
1034 | },
1035 | "engines": {
1036 | "node": ">=0.10.0"
1037 | }
1038 | },
1039 | "node_modules/path-root-regex": {
1040 | "version": "0.1.2",
1041 | "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz",
1042 | "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=",
1043 | "dev": true,
1044 | "engines": {
1045 | "node": ">=0.10.0"
1046 | }
1047 | },
1048 | "node_modules/picomatch": {
1049 | "version": "2.3.1",
1050 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
1051 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
1052 | "dev": true,
1053 | "engines": {
1054 | "node": ">=8.6"
1055 | },
1056 | "funding": {
1057 | "url": "https://github.com/sponsors/jonschlinkert"
1058 | }
1059 | },
1060 | "node_modules/readable-stream": {
1061 | "version": "3.6.0",
1062 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
1063 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
1064 | "dev": true,
1065 | "dependencies": {
1066 | "inherits": "^2.0.3",
1067 | "string_decoder": "^1.1.1",
1068 | "util-deprecate": "^1.0.1"
1069 | },
1070 | "engines": {
1071 | "node": ">= 6"
1072 | }
1073 | },
1074 | "node_modules/rechoir": {
1075 | "version": "0.7.1",
1076 | "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz",
1077 | "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==",
1078 | "dev": true,
1079 | "dependencies": {
1080 | "resolve": "^1.9.0"
1081 | },
1082 | "engines": {
1083 | "node": ">= 0.10"
1084 | }
1085 | },
1086 | "node_modules/resolve": {
1087 | "version": "1.22.0",
1088 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
1089 | "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
1090 | "dev": true,
1091 | "dependencies": {
1092 | "is-core-module": "^2.8.1",
1093 | "path-parse": "^1.0.7",
1094 | "supports-preserve-symlinks-flag": "^1.0.0"
1095 | },
1096 | "bin": {
1097 | "resolve": "bin/resolve"
1098 | },
1099 | "funding": {
1100 | "url": "https://github.com/sponsors/ljharb"
1101 | }
1102 | },
1103 | "node_modules/resolve-dir": {
1104 | "version": "1.0.1",
1105 | "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz",
1106 | "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=",
1107 | "dev": true,
1108 | "dependencies": {
1109 | "expand-tilde": "^2.0.0",
1110 | "global-modules": "^1.0.0"
1111 | },
1112 | "engines": {
1113 | "node": ">=0.10.0"
1114 | }
1115 | },
1116 | "node_modules/rimraf": {
1117 | "version": "3.0.2",
1118 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1119 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1120 | "dev": true,
1121 | "dependencies": {
1122 | "glob": "^7.1.3"
1123 | },
1124 | "bin": {
1125 | "rimraf": "bin.js"
1126 | },
1127 | "funding": {
1128 | "url": "https://github.com/sponsors/isaacs"
1129 | }
1130 | },
1131 | "node_modules/safe-buffer": {
1132 | "version": "5.2.1",
1133 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1134 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1135 | "dev": true,
1136 | "funding": [
1137 | {
1138 | "type": "github",
1139 | "url": "https://github.com/sponsors/feross"
1140 | },
1141 | {
1142 | "type": "patreon",
1143 | "url": "https://www.patreon.com/feross"
1144 | },
1145 | {
1146 | "type": "consulting",
1147 | "url": "https://feross.org/support"
1148 | }
1149 | ]
1150 | },
1151 | "node_modules/safer-buffer": {
1152 | "version": "2.1.2",
1153 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1154 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1155 | "dev": true
1156 | },
1157 | "node_modules/sprintf-js": {
1158 | "version": "1.0.3",
1159 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
1160 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
1161 | "dev": true
1162 | },
1163 | "node_modules/string_decoder": {
1164 | "version": "1.3.0",
1165 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
1166 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
1167 | "dev": true,
1168 | "dependencies": {
1169 | "safe-buffer": "~5.2.0"
1170 | }
1171 | },
1172 | "node_modules/supports-color": {
1173 | "version": "7.2.0",
1174 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
1175 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
1176 | "dev": true,
1177 | "dependencies": {
1178 | "has-flag": "^4.0.0"
1179 | },
1180 | "engines": {
1181 | "node": ">=8"
1182 | }
1183 | },
1184 | "node_modules/supports-preserve-symlinks-flag": {
1185 | "version": "1.0.0",
1186 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
1187 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
1188 | "dev": true,
1189 | "engines": {
1190 | "node": ">= 0.4"
1191 | },
1192 | "funding": {
1193 | "url": "https://github.com/sponsors/ljharb"
1194 | }
1195 | },
1196 | "node_modules/tmp": {
1197 | "version": "0.2.1",
1198 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz",
1199 | "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==",
1200 | "dev": true,
1201 | "dependencies": {
1202 | "rimraf": "^3.0.0"
1203 | },
1204 | "engines": {
1205 | "node": ">=8.17.0"
1206 | }
1207 | },
1208 | "node_modules/to-regex-range": {
1209 | "version": "5.0.1",
1210 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1211 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1212 | "dev": true,
1213 | "dependencies": {
1214 | "is-number": "^7.0.0"
1215 | },
1216 | "engines": {
1217 | "node": ">=8.0"
1218 | }
1219 | },
1220 | "node_modules/unc-path-regex": {
1221 | "version": "0.1.2",
1222 | "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz",
1223 | "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=",
1224 | "dev": true,
1225 | "engines": {
1226 | "node": ">=0.10.0"
1227 | }
1228 | },
1229 | "node_modules/underscore.string": {
1230 | "version": "3.3.6",
1231 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.6.tgz",
1232 | "integrity": "sha512-VoC83HWXmCrF6rgkyxS9GHv8W9Q5nhMKho+OadDJGzL2oDYbYEppBaCMH6pFlwLeqj2QS+hhkw2kpXkSdD1JxQ==",
1233 | "dev": true,
1234 | "dependencies": {
1235 | "sprintf-js": "^1.1.1",
1236 | "util-deprecate": "^1.0.2"
1237 | },
1238 | "engines": {
1239 | "node": "*"
1240 | }
1241 | },
1242 | "node_modules/underscore.string/node_modules/sprintf-js": {
1243 | "version": "1.1.2",
1244 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
1245 | "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
1246 | "dev": true
1247 | },
1248 | "node_modules/util-deprecate": {
1249 | "version": "1.0.2",
1250 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1251 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
1252 | "dev": true
1253 | },
1254 | "node_modules/v8flags": {
1255 | "version": "3.2.0",
1256 | "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz",
1257 | "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==",
1258 | "dev": true,
1259 | "dependencies": {
1260 | "homedir-polyfill": "^1.0.1"
1261 | },
1262 | "engines": {
1263 | "node": ">= 0.10"
1264 | }
1265 | },
1266 | "node_modules/which": {
1267 | "version": "2.0.2",
1268 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
1269 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1270 | "dev": true,
1271 | "dependencies": {
1272 | "isexe": "^2.0.0"
1273 | },
1274 | "bin": {
1275 | "node-which": "bin/node-which"
1276 | },
1277 | "engines": {
1278 | "node": ">= 8"
1279 | }
1280 | },
1281 | "node_modules/wrappy": {
1282 | "version": "1.0.2",
1283 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1284 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
1285 | "dev": true
1286 | }
1287 | },
1288 | "dependencies": {
1289 | "abbrev": {
1290 | "version": "1.1.1",
1291 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
1292 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
1293 | "dev": true
1294 | },
1295 | "ansi-styles": {
1296 | "version": "4.3.0",
1297 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
1298 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
1299 | "dev": true,
1300 | "requires": {
1301 | "color-convert": "^2.0.1"
1302 | }
1303 | },
1304 | "argparse": {
1305 | "version": "1.0.10",
1306 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
1307 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
1308 | "dev": true,
1309 | "requires": {
1310 | "sprintf-js": "~1.0.2"
1311 | }
1312 | },
1313 | "array-each": {
1314 | "version": "1.0.1",
1315 | "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz",
1316 | "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==",
1317 | "dev": true
1318 | },
1319 | "array-slice": {
1320 | "version": "1.1.0",
1321 | "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz",
1322 | "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==",
1323 | "dev": true
1324 | },
1325 | "async": {
1326 | "version": "3.2.3",
1327 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz",
1328 | "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==",
1329 | "dev": true
1330 | },
1331 | "balanced-match": {
1332 | "version": "1.0.2",
1333 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
1334 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
1335 | "dev": true
1336 | },
1337 | "bluebird": {
1338 | "version": "3.7.2",
1339 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
1340 | "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
1341 | "dev": true
1342 | },
1343 | "brace-expansion": {
1344 | "version": "1.1.11",
1345 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
1346 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
1347 | "dev": true,
1348 | "requires": {
1349 | "balanced-match": "^1.0.0",
1350 | "concat-map": "0.0.1"
1351 | }
1352 | },
1353 | "braces": {
1354 | "version": "3.0.2",
1355 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
1356 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
1357 | "dev": true,
1358 | "requires": {
1359 | "fill-range": "^7.0.1"
1360 | }
1361 | },
1362 | "chalk": {
1363 | "version": "4.1.2",
1364 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
1365 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
1366 | "dev": true,
1367 | "requires": {
1368 | "ansi-styles": "^4.1.0",
1369 | "supports-color": "^7.1.0"
1370 | }
1371 | },
1372 | "color-convert": {
1373 | "version": "2.0.1",
1374 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
1375 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
1376 | "dev": true,
1377 | "requires": {
1378 | "color-name": "~1.1.4"
1379 | }
1380 | },
1381 | "color-name": {
1382 | "version": "1.1.4",
1383 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
1384 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
1385 | "dev": true
1386 | },
1387 | "colors": {
1388 | "version": "1.1.2",
1389 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz",
1390 | "integrity": "sha512-ENwblkFQpqqia6b++zLD/KUWafYlVY/UNnAp7oz7LY7E924wmpye416wBOmvv/HMWzl8gL1kJlfvId/1Dg176w==",
1391 | "dev": true
1392 | },
1393 | "concat-map": {
1394 | "version": "0.0.1",
1395 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
1396 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
1397 | "dev": true
1398 | },
1399 | "dateformat": {
1400 | "version": "3.0.3",
1401 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz",
1402 | "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==",
1403 | "dev": true
1404 | },
1405 | "detect-file": {
1406 | "version": "1.0.0",
1407 | "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz",
1408 | "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==",
1409 | "dev": true
1410 | },
1411 | "encoding": {
1412 | "version": "0.1.13",
1413 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
1414 | "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
1415 | "dev": true,
1416 | "requires": {
1417 | "iconv-lite": "^0.6.2"
1418 | },
1419 | "dependencies": {
1420 | "iconv-lite": {
1421 | "version": "0.6.3",
1422 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
1423 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
1424 | "dev": true,
1425 | "requires": {
1426 | "safer-buffer": ">= 2.1.2 < 3.0.0"
1427 | }
1428 | }
1429 | }
1430 | },
1431 | "esprima": {
1432 | "version": "4.0.1",
1433 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
1434 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
1435 | "dev": true
1436 | },
1437 | "eventemitter2": {
1438 | "version": "0.4.14",
1439 | "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz",
1440 | "integrity": "sha512-K7J4xq5xAD5jHsGM5ReWXRTFa3JRGofHiMcVgQ8PRwgWxzjHpMWCIzsmyf60+mh8KLsqYPcjUMa0AC4hd6lPyQ==",
1441 | "dev": true
1442 | },
1443 | "exit": {
1444 | "version": "0.1.2",
1445 | "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
1446 | "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==",
1447 | "dev": true
1448 | },
1449 | "expand-tilde": {
1450 | "version": "2.0.2",
1451 | "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz",
1452 | "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==",
1453 | "dev": true,
1454 | "requires": {
1455 | "homedir-polyfill": "^1.0.1"
1456 | }
1457 | },
1458 | "extend": {
1459 | "version": "3.0.2",
1460 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
1461 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
1462 | "dev": true
1463 | },
1464 | "fill-range": {
1465 | "version": "7.0.1",
1466 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
1467 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
1468 | "dev": true,
1469 | "requires": {
1470 | "to-regex-range": "^5.0.1"
1471 | }
1472 | },
1473 | "findup-sync": {
1474 | "version": "0.3.0",
1475 | "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz",
1476 | "integrity": "sha512-z8Nrwhi6wzxNMIbxlrTzuUW6KWuKkogZ/7OdDVq+0+kxn77KUH1nipx8iU6suqkHqc4y6n7a9A8IpmxY/pTjWg==",
1477 | "dev": true,
1478 | "requires": {
1479 | "glob": "~5.0.0"
1480 | },
1481 | "dependencies": {
1482 | "glob": {
1483 | "version": "5.0.15",
1484 | "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz",
1485 | "integrity": "sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA==",
1486 | "dev": true,
1487 | "requires": {
1488 | "inflight": "^1.0.4",
1489 | "inherits": "2",
1490 | "minimatch": "2 || 3",
1491 | "once": "^1.3.0",
1492 | "path-is-absolute": "^1.0.0"
1493 | }
1494 | }
1495 | }
1496 | },
1497 | "fined": {
1498 | "version": "1.2.0",
1499 | "resolved": "https://registry.npmjs.org/fined/-/fined-1.2.0.tgz",
1500 | "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==",
1501 | "dev": true,
1502 | "requires": {
1503 | "expand-tilde": "^2.0.2",
1504 | "is-plain-object": "^2.0.3",
1505 | "object.defaults": "^1.1.0",
1506 | "object.pick": "^1.2.0",
1507 | "parse-filepath": "^1.0.1"
1508 | }
1509 | },
1510 | "flagged-respawn": {
1511 | "version": "1.0.1",
1512 | "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz",
1513 | "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==",
1514 | "dev": true
1515 | },
1516 | "for-in": {
1517 | "version": "1.0.2",
1518 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
1519 | "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==",
1520 | "dev": true
1521 | },
1522 | "for-own": {
1523 | "version": "1.0.0",
1524 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz",
1525 | "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==",
1526 | "dev": true,
1527 | "requires": {
1528 | "for-in": "^1.0.1"
1529 | }
1530 | },
1531 | "fs.realpath": {
1532 | "version": "1.0.0",
1533 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
1534 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
1535 | "dev": true
1536 | },
1537 | "function-bind": {
1538 | "version": "1.1.1",
1539 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
1540 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
1541 | "dev": true
1542 | },
1543 | "getobject": {
1544 | "version": "1.0.2",
1545 | "resolved": "https://registry.npmjs.org/getobject/-/getobject-1.0.2.tgz",
1546 | "integrity": "sha512-2zblDBaFcb3rB4rF77XVnuINOE2h2k/OnqXAiy0IrTxUfV1iFp3la33oAQVY9pCpWU268WFYVt2t71hlMuLsOg==",
1547 | "dev": true
1548 | },
1549 | "gettext-parser": {
1550 | "version": "3.1.1",
1551 | "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-3.1.1.tgz",
1552 | "integrity": "sha512-vNhWcqXEtZPs5Ft1ReA34g7ByWotpcOIeJvXVy2jF3/G2U9v6W0wG4Z4hXzcU8R//jArqkgHcVCGgGqa4vxVlQ==",
1553 | "dev": true,
1554 | "requires": {
1555 | "encoding": "^0.1.12",
1556 | "readable-stream": "^3.2.0",
1557 | "safe-buffer": "^5.1.2"
1558 | }
1559 | },
1560 | "glob": {
1561 | "version": "7.1.7",
1562 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz",
1563 | "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
1564 | "dev": true,
1565 | "requires": {
1566 | "fs.realpath": "^1.0.0",
1567 | "inflight": "^1.0.4",
1568 | "inherits": "2",
1569 | "minimatch": "^3.0.4",
1570 | "once": "^1.3.0",
1571 | "path-is-absolute": "^1.0.0"
1572 | }
1573 | },
1574 | "global-modules": {
1575 | "version": "1.0.0",
1576 | "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz",
1577 | "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==",
1578 | "dev": true,
1579 | "requires": {
1580 | "global-prefix": "^1.0.1",
1581 | "is-windows": "^1.0.1",
1582 | "resolve-dir": "^1.0.0"
1583 | }
1584 | },
1585 | "global-prefix": {
1586 | "version": "1.0.2",
1587 | "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz",
1588 | "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==",
1589 | "dev": true,
1590 | "requires": {
1591 | "expand-tilde": "^2.0.2",
1592 | "homedir-polyfill": "^1.0.1",
1593 | "ini": "^1.3.4",
1594 | "is-windows": "^1.0.1",
1595 | "which": "^1.2.14"
1596 | },
1597 | "dependencies": {
1598 | "which": {
1599 | "version": "1.3.1",
1600 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
1601 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
1602 | "dev": true,
1603 | "requires": {
1604 | "isexe": "^2.0.0"
1605 | }
1606 | }
1607 | }
1608 | },
1609 | "grunt": {
1610 | "version": "1.5.3",
1611 | "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.5.3.tgz",
1612 | "integrity": "sha512-mKwmo4X2d8/4c/BmcOETHek675uOqw0RuA/zy12jaspWqvTp4+ZeQF1W+OTpcbncnaBsfbQJ6l0l4j+Sn/GmaQ==",
1613 | "dev": true,
1614 | "requires": {
1615 | "dateformat": "~3.0.3",
1616 | "eventemitter2": "~0.4.13",
1617 | "exit": "~0.1.2",
1618 | "findup-sync": "~0.3.0",
1619 | "glob": "~7.1.6",
1620 | "grunt-cli": "~1.4.3",
1621 | "grunt-known-options": "~2.0.0",
1622 | "grunt-legacy-log": "~3.0.0",
1623 | "grunt-legacy-util": "~2.0.1",
1624 | "iconv-lite": "~0.4.13",
1625 | "js-yaml": "~3.14.0",
1626 | "minimatch": "~3.0.4",
1627 | "mkdirp": "~1.0.4",
1628 | "nopt": "~3.0.6",
1629 | "rimraf": "~3.0.2"
1630 | }
1631 | },
1632 | "grunt-cli": {
1633 | "version": "1.4.3",
1634 | "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.4.3.tgz",
1635 | "integrity": "sha512-9Dtx/AhVeB4LYzsViCjUQkd0Kw0McN2gYpdmGYKtE2a5Yt7v1Q+HYZVWhqXc/kGnxlMtqKDxSwotiGeFmkrCoQ==",
1636 | "dev": true,
1637 | "requires": {
1638 | "grunt-known-options": "~2.0.0",
1639 | "interpret": "~1.1.0",
1640 | "liftup": "~3.0.1",
1641 | "nopt": "~4.0.1",
1642 | "v8flags": "~3.2.0"
1643 | },
1644 | "dependencies": {
1645 | "nopt": {
1646 | "version": "4.0.3",
1647 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz",
1648 | "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==",
1649 | "dev": true,
1650 | "requires": {
1651 | "abbrev": "1",
1652 | "osenv": "^0.1.4"
1653 | }
1654 | }
1655 | }
1656 | },
1657 | "grunt-known-options": {
1658 | "version": "2.0.0",
1659 | "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-2.0.0.tgz",
1660 | "integrity": "sha512-GD7cTz0I4SAede1/+pAbmJRG44zFLPipVtdL9o3vqx9IEyb7b4/Y3s7r6ofI3CchR5GvYJ+8buCSioDv5dQLiA==",
1661 | "dev": true
1662 | },
1663 | "grunt-legacy-log": {
1664 | "version": "3.0.0",
1665 | "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-3.0.0.tgz",
1666 | "integrity": "sha512-GHZQzZmhyq0u3hr7aHW4qUH0xDzwp2YXldLPZTCjlOeGscAOWWPftZG3XioW8MasGp+OBRIu39LFx14SLjXRcA==",
1667 | "dev": true,
1668 | "requires": {
1669 | "colors": "~1.1.2",
1670 | "grunt-legacy-log-utils": "~2.1.0",
1671 | "hooker": "~0.2.3",
1672 | "lodash": "~4.17.19"
1673 | }
1674 | },
1675 | "grunt-legacy-log-utils": {
1676 | "version": "2.1.0",
1677 | "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-2.1.0.tgz",
1678 | "integrity": "sha512-lwquaPXJtKQk0rUM1IQAop5noEpwFqOXasVoedLeNzaibf/OPWjKYvvdqnEHNmU+0T0CaReAXIbGo747ZD+Aaw==",
1679 | "dev": true,
1680 | "requires": {
1681 | "chalk": "~4.1.0",
1682 | "lodash": "~4.17.19"
1683 | }
1684 | },
1685 | "grunt-legacy-util": {
1686 | "version": "2.0.1",
1687 | "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-2.0.1.tgz",
1688 | "integrity": "sha512-2bQiD4fzXqX8rhNdXkAywCadeqiPiay0oQny77wA2F3WF4grPJXCvAcyoWUJV+po/b15glGkxuSiQCK299UC2w==",
1689 | "dev": true,
1690 | "requires": {
1691 | "async": "~3.2.0",
1692 | "exit": "~0.1.2",
1693 | "getobject": "~1.0.0",
1694 | "hooker": "~0.2.3",
1695 | "lodash": "~4.17.21",
1696 | "underscore.string": "~3.3.5",
1697 | "which": "~2.0.2"
1698 | }
1699 | },
1700 | "grunt-wp-i18n": {
1701 | "version": "1.0.3",
1702 | "resolved": "https://registry.npmjs.org/grunt-wp-i18n/-/grunt-wp-i18n-1.0.3.tgz",
1703 | "integrity": "sha512-CJNbEKeBeOSAPeaJ9B8iCgSwtaG63UR9/uT46a4OsIqnFhOJpeAi138JTlvjfIbnDVoBrzvdrKJe1svveLjUtA==",
1704 | "dev": true,
1705 | "requires": {
1706 | "grunt": "^1.0.3",
1707 | "node-wp-i18n": "^1.2.2"
1708 | }
1709 | },
1710 | "grunt-wp-readme-to-markdown": {
1711 | "version": "2.1.0",
1712 | "resolved": "https://registry.npmjs.org/grunt-wp-readme-to-markdown/-/grunt-wp-readme-to-markdown-2.1.0.tgz",
1713 | "integrity": "sha512-32OYDYNaKgykI2vxVsbqzvYBA9xHJI3XqXHSwXbLzUd1wa0ZepoceHYCs4rYFLo3ZxKpPExxvVuH3gLUS/Fq1Q==",
1714 | "dev": true,
1715 | "requires": {}
1716 | },
1717 | "has": {
1718 | "version": "1.0.3",
1719 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
1720 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
1721 | "dev": true,
1722 | "requires": {
1723 | "function-bind": "^1.1.1"
1724 | }
1725 | },
1726 | "has-flag": {
1727 | "version": "4.0.0",
1728 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
1729 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
1730 | "dev": true
1731 | },
1732 | "homedir-polyfill": {
1733 | "version": "1.0.3",
1734 | "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz",
1735 | "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==",
1736 | "dev": true,
1737 | "requires": {
1738 | "parse-passwd": "^1.0.0"
1739 | }
1740 | },
1741 | "hooker": {
1742 | "version": "0.2.3",
1743 | "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz",
1744 | "integrity": "sha512-t+UerCsQviSymAInD01Pw+Dn/usmz1sRO+3Zk1+lx8eg+WKpD2ulcwWqHHL0+aseRBr+3+vIhiG1K1JTwaIcTA==",
1745 | "dev": true
1746 | },
1747 | "iconv-lite": {
1748 | "version": "0.4.24",
1749 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
1750 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
1751 | "dev": true,
1752 | "requires": {
1753 | "safer-buffer": ">= 2.1.2 < 3"
1754 | }
1755 | },
1756 | "inflight": {
1757 | "version": "1.0.6",
1758 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
1759 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
1760 | "dev": true,
1761 | "requires": {
1762 | "once": "^1.3.0",
1763 | "wrappy": "1"
1764 | }
1765 | },
1766 | "inherits": {
1767 | "version": "2.0.4",
1768 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
1769 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
1770 | "dev": true
1771 | },
1772 | "ini": {
1773 | "version": "1.3.8",
1774 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
1775 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
1776 | "dev": true
1777 | },
1778 | "interpret": {
1779 | "version": "1.1.0",
1780 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz",
1781 | "integrity": "sha512-CLM8SNMDu7C5psFCn6Wg/tgpj/bKAg7hc2gWqcuR9OD5Ft9PhBpIu8PLicPeis+xDd6YX2ncI8MCA64I9tftIA==",
1782 | "dev": true
1783 | },
1784 | "is-absolute": {
1785 | "version": "1.0.0",
1786 | "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz",
1787 | "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==",
1788 | "dev": true,
1789 | "requires": {
1790 | "is-relative": "^1.0.0",
1791 | "is-windows": "^1.0.1"
1792 | }
1793 | },
1794 | "is-core-module": {
1795 | "version": "2.9.0",
1796 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz",
1797 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",
1798 | "dev": true,
1799 | "requires": {
1800 | "has": "^1.0.3"
1801 | }
1802 | },
1803 | "is-extglob": {
1804 | "version": "2.1.1",
1805 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
1806 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
1807 | "dev": true
1808 | },
1809 | "is-glob": {
1810 | "version": "4.0.3",
1811 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
1812 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
1813 | "dev": true,
1814 | "requires": {
1815 | "is-extglob": "^2.1.1"
1816 | }
1817 | },
1818 | "is-number": {
1819 | "version": "7.0.0",
1820 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
1821 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
1822 | "dev": true
1823 | },
1824 | "is-plain-object": {
1825 | "version": "2.0.4",
1826 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
1827 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
1828 | "dev": true,
1829 | "requires": {
1830 | "isobject": "^3.0.1"
1831 | }
1832 | },
1833 | "is-relative": {
1834 | "version": "1.0.0",
1835 | "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz",
1836 | "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==",
1837 | "dev": true,
1838 | "requires": {
1839 | "is-unc-path": "^1.0.0"
1840 | }
1841 | },
1842 | "is-unc-path": {
1843 | "version": "1.0.0",
1844 | "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz",
1845 | "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==",
1846 | "dev": true,
1847 | "requires": {
1848 | "unc-path-regex": "^0.1.2"
1849 | }
1850 | },
1851 | "is-windows": {
1852 | "version": "1.0.2",
1853 | "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
1854 | "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
1855 | "dev": true
1856 | },
1857 | "isexe": {
1858 | "version": "2.0.0",
1859 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
1860 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
1861 | "dev": true
1862 | },
1863 | "isobject": {
1864 | "version": "3.0.1",
1865 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
1866 | "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",
1867 | "dev": true
1868 | },
1869 | "js-yaml": {
1870 | "version": "3.14.1",
1871 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
1872 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
1873 | "dev": true,
1874 | "requires": {
1875 | "argparse": "^1.0.7",
1876 | "esprima": "^4.0.0"
1877 | }
1878 | },
1879 | "kind-of": {
1880 | "version": "6.0.3",
1881 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
1882 | "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
1883 | "dev": true
1884 | },
1885 | "liftup": {
1886 | "version": "3.0.1",
1887 | "resolved": "https://registry.npmjs.org/liftup/-/liftup-3.0.1.tgz",
1888 | "integrity": "sha512-yRHaiQDizWSzoXk3APcA71eOI/UuhEkNN9DiW2Tt44mhYzX4joFoCZlxsSOF7RyeLlfqzFLQI1ngFq3ggMPhOw==",
1889 | "dev": true,
1890 | "requires": {
1891 | "extend": "^3.0.2",
1892 | "findup-sync": "^4.0.0",
1893 | "fined": "^1.2.0",
1894 | "flagged-respawn": "^1.0.1",
1895 | "is-plain-object": "^2.0.4",
1896 | "object.map": "^1.0.1",
1897 | "rechoir": "^0.7.0",
1898 | "resolve": "^1.19.0"
1899 | },
1900 | "dependencies": {
1901 | "findup-sync": {
1902 | "version": "4.0.0",
1903 | "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-4.0.0.tgz",
1904 | "integrity": "sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ==",
1905 | "dev": true,
1906 | "requires": {
1907 | "detect-file": "^1.0.0",
1908 | "is-glob": "^4.0.0",
1909 | "micromatch": "^4.0.2",
1910 | "resolve-dir": "^1.0.1"
1911 | }
1912 | }
1913 | }
1914 | },
1915 | "lodash": {
1916 | "version": "4.17.21",
1917 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
1918 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
1919 | "dev": true
1920 | },
1921 | "make-iterator": {
1922 | "version": "1.0.1",
1923 | "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz",
1924 | "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==",
1925 | "dev": true,
1926 | "requires": {
1927 | "kind-of": "^6.0.2"
1928 | }
1929 | },
1930 | "map-cache": {
1931 | "version": "0.2.2",
1932 | "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz",
1933 | "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==",
1934 | "dev": true
1935 | },
1936 | "micromatch": {
1937 | "version": "4.0.5",
1938 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
1939 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
1940 | "dev": true,
1941 | "requires": {
1942 | "braces": "^3.0.2",
1943 | "picomatch": "^2.3.1"
1944 | }
1945 | },
1946 | "minimatch": {
1947 | "version": "3.0.8",
1948 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz",
1949 | "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==",
1950 | "dev": true,
1951 | "requires": {
1952 | "brace-expansion": "^1.1.7"
1953 | }
1954 | },
1955 | "minimist": {
1956 | "version": "1.2.6",
1957 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
1958 | "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
1959 | "dev": true
1960 | },
1961 | "mkdirp": {
1962 | "version": "1.0.4",
1963 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
1964 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
1965 | "dev": true
1966 | },
1967 | "node-wp-i18n": {
1968 | "version": "1.2.6",
1969 | "resolved": "https://registry.npmjs.org/node-wp-i18n/-/node-wp-i18n-1.2.6.tgz",
1970 | "integrity": "sha512-aLutjDB1rMJ3FNlNcs/XjmaejED1/y30uLYQrmkXpeUj1NH/SA6pI94CUz3iI7fbQd63lTGg0YNvOQAT8cWdIw==",
1971 | "dev": true,
1972 | "requires": {
1973 | "bluebird": "^3.4.1",
1974 | "gettext-parser": "^3.1.0",
1975 | "glob": "^7.0.5",
1976 | "lodash": "^4.14.2",
1977 | "minimist": "^1.2.5",
1978 | "mkdirp": "^1.0.4",
1979 | "tmp": "^0.2.1"
1980 | }
1981 | },
1982 | "nopt": {
1983 | "version": "3.0.6",
1984 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
1985 | "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
1986 | "dev": true,
1987 | "requires": {
1988 | "abbrev": "1"
1989 | }
1990 | },
1991 | "object.defaults": {
1992 | "version": "1.1.0",
1993 | "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz",
1994 | "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=",
1995 | "dev": true,
1996 | "requires": {
1997 | "array-each": "^1.0.1",
1998 | "array-slice": "^1.0.0",
1999 | "for-own": "^1.0.0",
2000 | "isobject": "^3.0.0"
2001 | }
2002 | },
2003 | "object.map": {
2004 | "version": "1.0.1",
2005 | "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz",
2006 | "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=",
2007 | "dev": true,
2008 | "requires": {
2009 | "for-own": "^1.0.0",
2010 | "make-iterator": "^1.0.0"
2011 | }
2012 | },
2013 | "object.pick": {
2014 | "version": "1.3.0",
2015 | "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
2016 | "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=",
2017 | "dev": true,
2018 | "requires": {
2019 | "isobject": "^3.0.1"
2020 | }
2021 | },
2022 | "once": {
2023 | "version": "1.4.0",
2024 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
2025 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
2026 | "dev": true,
2027 | "requires": {
2028 | "wrappy": "1"
2029 | }
2030 | },
2031 | "os-homedir": {
2032 | "version": "1.0.2",
2033 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
2034 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
2035 | "dev": true
2036 | },
2037 | "os-tmpdir": {
2038 | "version": "1.0.2",
2039 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
2040 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
2041 | "dev": true
2042 | },
2043 | "osenv": {
2044 | "version": "0.1.5",
2045 | "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
2046 | "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
2047 | "dev": true,
2048 | "requires": {
2049 | "os-homedir": "^1.0.0",
2050 | "os-tmpdir": "^1.0.0"
2051 | }
2052 | },
2053 | "parse-filepath": {
2054 | "version": "1.0.2",
2055 | "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz",
2056 | "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=",
2057 | "dev": true,
2058 | "requires": {
2059 | "is-absolute": "^1.0.0",
2060 | "map-cache": "^0.2.0",
2061 | "path-root": "^0.1.1"
2062 | }
2063 | },
2064 | "parse-passwd": {
2065 | "version": "1.0.0",
2066 | "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz",
2067 | "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=",
2068 | "dev": true
2069 | },
2070 | "path-is-absolute": {
2071 | "version": "1.0.1",
2072 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
2073 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
2074 | "dev": true
2075 | },
2076 | "path-parse": {
2077 | "version": "1.0.7",
2078 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
2079 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
2080 | "dev": true
2081 | },
2082 | "path-root": {
2083 | "version": "0.1.1",
2084 | "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz",
2085 | "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=",
2086 | "dev": true,
2087 | "requires": {
2088 | "path-root-regex": "^0.1.0"
2089 | }
2090 | },
2091 | "path-root-regex": {
2092 | "version": "0.1.2",
2093 | "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz",
2094 | "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=",
2095 | "dev": true
2096 | },
2097 | "picomatch": {
2098 | "version": "2.3.1",
2099 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
2100 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
2101 | "dev": true
2102 | },
2103 | "readable-stream": {
2104 | "version": "3.6.0",
2105 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
2106 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
2107 | "dev": true,
2108 | "requires": {
2109 | "inherits": "^2.0.3",
2110 | "string_decoder": "^1.1.1",
2111 | "util-deprecate": "^1.0.1"
2112 | }
2113 | },
2114 | "rechoir": {
2115 | "version": "0.7.1",
2116 | "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz",
2117 | "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==",
2118 | "dev": true,
2119 | "requires": {
2120 | "resolve": "^1.9.0"
2121 | }
2122 | },
2123 | "resolve": {
2124 | "version": "1.22.0",
2125 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
2126 | "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
2127 | "dev": true,
2128 | "requires": {
2129 | "is-core-module": "^2.8.1",
2130 | "path-parse": "^1.0.7",
2131 | "supports-preserve-symlinks-flag": "^1.0.0"
2132 | }
2133 | },
2134 | "resolve-dir": {
2135 | "version": "1.0.1",
2136 | "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz",
2137 | "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=",
2138 | "dev": true,
2139 | "requires": {
2140 | "expand-tilde": "^2.0.0",
2141 | "global-modules": "^1.0.0"
2142 | }
2143 | },
2144 | "rimraf": {
2145 | "version": "3.0.2",
2146 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
2147 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
2148 | "dev": true,
2149 | "requires": {
2150 | "glob": "^7.1.3"
2151 | }
2152 | },
2153 | "safe-buffer": {
2154 | "version": "5.2.1",
2155 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
2156 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
2157 | "dev": true
2158 | },
2159 | "safer-buffer": {
2160 | "version": "2.1.2",
2161 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
2162 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
2163 | "dev": true
2164 | },
2165 | "sprintf-js": {
2166 | "version": "1.0.3",
2167 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
2168 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
2169 | "dev": true
2170 | },
2171 | "string_decoder": {
2172 | "version": "1.3.0",
2173 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
2174 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
2175 | "dev": true,
2176 | "requires": {
2177 | "safe-buffer": "~5.2.0"
2178 | }
2179 | },
2180 | "supports-color": {
2181 | "version": "7.2.0",
2182 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
2183 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
2184 | "dev": true,
2185 | "requires": {
2186 | "has-flag": "^4.0.0"
2187 | }
2188 | },
2189 | "supports-preserve-symlinks-flag": {
2190 | "version": "1.0.0",
2191 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
2192 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
2193 | "dev": true
2194 | },
2195 | "tmp": {
2196 | "version": "0.2.1",
2197 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz",
2198 | "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==",
2199 | "dev": true,
2200 | "requires": {
2201 | "rimraf": "^3.0.0"
2202 | }
2203 | },
2204 | "to-regex-range": {
2205 | "version": "5.0.1",
2206 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
2207 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
2208 | "dev": true,
2209 | "requires": {
2210 | "is-number": "^7.0.0"
2211 | }
2212 | },
2213 | "unc-path-regex": {
2214 | "version": "0.1.2",
2215 | "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz",
2216 | "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=",
2217 | "dev": true
2218 | },
2219 | "underscore.string": {
2220 | "version": "3.3.6",
2221 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.6.tgz",
2222 | "integrity": "sha512-VoC83HWXmCrF6rgkyxS9GHv8W9Q5nhMKho+OadDJGzL2oDYbYEppBaCMH6pFlwLeqj2QS+hhkw2kpXkSdD1JxQ==",
2223 | "dev": true,
2224 | "requires": {
2225 | "sprintf-js": "^1.1.1",
2226 | "util-deprecate": "^1.0.2"
2227 | },
2228 | "dependencies": {
2229 | "sprintf-js": {
2230 | "version": "1.1.2",
2231 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
2232 | "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
2233 | "dev": true
2234 | }
2235 | }
2236 | },
2237 | "util-deprecate": {
2238 | "version": "1.0.2",
2239 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
2240 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
2241 | "dev": true
2242 | },
2243 | "v8flags": {
2244 | "version": "3.2.0",
2245 | "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz",
2246 | "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==",
2247 | "dev": true,
2248 | "requires": {
2249 | "homedir-polyfill": "^1.0.1"
2250 | }
2251 | },
2252 | "which": {
2253 | "version": "2.0.2",
2254 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
2255 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
2256 | "dev": true,
2257 | "requires": {
2258 | "isexe": "^2.0.0"
2259 | }
2260 | },
2261 | "wrappy": {
2262 | "version": "1.0.2",
2263 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
2264 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
2265 | "dev": true
2266 | }
2267 | }
2268 | }
2269 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "name": "wpml-rest-api",
4 | "version": "0.0.0",
5 | "main": "Gruntfile.js",
6 | "author": "Shawn Hooper",
7 | "devDependencies": {
8 | "grunt": "^1.5.3",
9 | "grunt-wp-i18n": "^1.0.3",
10 | "grunt-wp-readme-to-markdown": "^2.1.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/readme.txt:
--------------------------------------------------------------------------------
1 | === WPML REST API ===
2 | Contributors: shooper
3 | Donate link: http://shawnhooper.ca/
4 | Tags: wpml, api, rest, headless, multilingual, translations
5 | Requires at least: 5.2
6 | Tested up to: 6.4.2
7 | Requires PHP: 7.4
8 | Stable tag: trunk
9 | License: GPLv2 or later
10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 |
12 | Get translations details with the WP REST API on sites running WordPress & WPML
13 |
14 | == Description ==
15 |
16 | This plugin adds links to pages and posts in other languages into the results of a WP REST API query for sites running the WPML plugin.
17 |
18 | It adds a "wpml_current_locale" string containing the locale code of the current response, and a "wpml_translations" array
19 | containing the available translations for this plugin.
20 |
21 | == Screenshots ==
22 |
23 | 1. This screenshot shows an excerpt of the JSON returned by the WP REST API when a page has translations available
24 |
25 | == Changelog ==
26 |
27 | = 2.0.1 (2024-01-07) =
28 | * Fixed: Some posts without translations would return a random post when no translation was available
29 |
30 | = 2.0.0 (2022-10-27) =
31 | * Fixed: Permalink style /yyyy/mm/dd/post_name/ returns slug without the dates (reported by @lukas-hablitzel)
32 | * Change: array keys in the wpml_translations response are now the locale code instead of an integer
33 | * Updated PHP Style: Short array syntax
34 | * Updated PHP Style: Added return types to all methods
35 | * Updated PHP Style: Added types to all parameters
36 | * Updated PHP Style: replaced str_pos with str_contains and str_ends_with
37 |
38 | = 1.1.4 (2022-05-31) =
39 | * Update build tool dependencies to fix CVE-2022-1537, CVE-2022-0436 and CVE-2020-7729
40 |
41 | = 1.1.3 (2022-03-18) =
42 | * Returns the post slug (post_name column) in the return value (thanks @mags1317)
43 |
44 | = 1.1.2 (2021-06-27) =
45 | * Fixed child page URL handling
46 | * Adds 'wpmlrestapi_get_translation' filter immediately before adding translation to array (thanks @elskwid)
47 |
48 | = 1.1.1 (2021-01-10) =
49 | * Fix: Refactored into a class and namesapce (thanks @szepeviktor)
50 | * Changed minimum required version to 5.2 (for PHP 7 support)
51 |
52 | = 1.1 (2021-01-05) =
53 | * Fix: properly renders URLs for pages that have parent parents (Thank you @rburgst)
54 | * Fix: Respect home and allow filtering of language url (Thank you ghost contributor)
55 | * Fix: Updated WPML filters/functions to replace deprecated ones.
56 | * Fix: No longer returns draft translations
57 | * Fix: When adding new posts - PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array (Thanks @darenzammit!)
58 |
59 | = 1.0.5 =
60 | * Allows language switching by specifying 'lang' or 'wpml_lang' parameters on the query string.
61 | * Typos in code fixed.
62 |
63 | = 1.0 =
64 | * First release.
65 |
--------------------------------------------------------------------------------
/wpml-rest-api.php:
--------------------------------------------------------------------------------
1 | false]);
36 |
37 | if ((!empty($available_languages) && !isset($GLOBALS['icl_language_switched'])) || !$GLOBALS['icl_language_switched']) {
38 | if (isset($_REQUEST['wpml_lang'])) {
39 | $lang = $_REQUEST['wpml_lang'];
40 | } else if (isset($_REQUEST['lang'])) {
41 | $lang = $_REQUEST['lang'];
42 | }
43 |
44 | if (isset($lang) && array_key_exists($lang, $available_languages)) {
45 | do_action('wpml_switch_language', $lang);
46 | }
47 | }
48 |
49 | // Add WPML fields to all post types
50 | // Thanks to Roy Sivan for this trick.
51 | // http://www.roysivan.com/wp-api-v2-adding-fields-to-all-post-types/#.VsH0e5MrLcM
52 |
53 | $post_types = get_post_types(array('public' => true, 'exclude_from_search' => false));
54 | foreach ($post_types as $post_type) {
55 | $this->register_api_field($post_type);
56 | }
57 | }
58 |
59 | /**
60 | * @param string $post_type
61 | * @return void
62 | */
63 | public function register_api_field(string $post_type): void
64 | {
65 | register_rest_field($post_type,
66 | 'wpml_current_locale',
67 | array(
68 | 'get_callback' => [$this, 'get_current_locale'],
69 | 'update_callback' => null,
70 | 'schema' => null,
71 | )
72 | );
73 |
74 | register_rest_field($post_type,
75 | 'wpml_translations',
76 | array(
77 | 'get_callback' => [$this, 'get_translations'],
78 | 'update_callback' => null,
79 | 'schema' => null,
80 | )
81 | );
82 | }
83 |
84 | /**
85 | * REST API ENDPOINT Handler
86 | *
87 | * Retrieve the current locale
88 | *
89 | * @param array $object Details of current post.
90 | * @param string $field_name Name of field.
91 | * @param WP_REST_Request $request Current request
92 | *
93 | * @return string
94 | * @throws RuntimeException
95 | * @noinspection PhpUnusedParameterInspection
96 | */
97 | public function get_current_locale(array $object, string $field_name, WP_REST_Request $request): string
98 | {
99 | $langInfo = wpml_get_language_information($object);
100 | if (is_wp_error($langInfo)) {
101 | throw new RuntimeException('Unable to retrieve the current locale');
102 | }
103 | return $langInfo['locale'];
104 | }
105 |
106 | /**
107 | * REST API ENDPOINT Handler
108 | *
109 | * Retrieve available translations
110 | *
111 | * @param array $object Details of current post.
112 | * @param string $field_name Name of field.
113 | * @param WP_REST_Request $request Current request
114 | *
115 | * @return array
116 | * @noinspection PhpUnusedParameterInspection
117 | */
118 | public function get_translations(array $object, string $field_name, WP_REST_Request $request): array
119 | {
120 | $languages = apply_filters('wpml_active_languages', null);
121 |
122 | foreach ($languages as $language) {
123 | $this->get_translations_for_language($object, $language);
124 | }
125 |
126 | return $this->translations;
127 | }
128 |
129 | /**
130 | * @param array $object
131 | * @param array $language
132 | * @return void
133 | */
134 | private function get_translations_for_language(array $object, array $language) : void {
135 | $post_id = wpml_object_id_filter($object['id'], 'post', false, $language['language_code']);
136 | if ($post_id === null || $post_id === $object['id']) {
137 | $this->translations = [];
138 | return;
139 | }
140 |
141 | $thisPost = get_post($post_id);
142 |
143 | $translation = [
144 | 'locale' => $language['default_locale'],
145 | 'id' => $thisPost->ID,
146 | 'slug' => $thisPost->post_name,
147 | 'post_title' => $thisPost->post_title,
148 | 'href' => get_permalink($thisPost),
149 | ];
150 |
151 | $this->translations[$language['default_locale']] = apply_filters('wpmlrestapi_get_translation', $translation, $thisPost, $language);
152 | }
153 | }
154 |
155 | $GLOBALS['WPML_REST_API'] = new WPML_REST_API();
156 | $GLOBALS['WPML_REST_API']->wordpress_hooks();
157 |
--------------------------------------------------------------------------------