├── .all-contributorsrc ├── .editorconfig ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── publish-release.yml │ └── unit-tests.yml ├── .gitignore ├── .husky └── pre-commit ├── .idea ├── php.xml └── vcs.xml ├── .markdownlint.json ├── .npmignore ├── .prettierrc ├── .vscode ├── extensions.json └── settings.json ├── .yarn ├── cache │ ├── @babel-plugin-syntax-async-generators-npm-7.8.4-d10cf993c9-7ed1c1d9b9.zip │ ├── @babel-plugin-syntax-bigint-npm-7.8.3-b05d971e6c-3a10849d83.zip │ ├── @babel-plugin-syntax-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip │ ├── @babel-plugin-syntax-import-meta-npm-7.10.4-4a0a0158bc-166ac1125d.zip │ ├── @babel-plugin-syntax-json-strings-npm-7.8.3-6dc7848179-bf5aea1f31.zip │ ├── @babel-plugin-syntax-logical-assignment-operators-npm-7.10.4-72ae00fdf6-aff3357703.zip │ ├── @babel-plugin-syntax-nullish-coalescing-operator-npm-7.8.3-8a723173b5-87aca49189.zip │ ├── @babel-plugin-syntax-numeric-separator-npm-7.10.4-81444be605-01ec5547bd.zip │ ├── @babel-plugin-syntax-object-rest-spread-npm-7.8.3-60bd05b6ae-fddcf581a5.zip │ ├── @babel-plugin-syntax-optional-catch-binding-npm-7.8.3-ce337427d8-910d90e72b.zip │ ├── @babel-plugin-syntax-optional-chaining-npm-7.8.3-f3f3c79579-eef94d53a1.zip │ ├── @babel-plugin-syntax-top-level-await-npm-7.14.5-60a0a2e83b-bbd1a56b09.zip │ ├── @bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-850f930553.zip │ ├── @humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip │ ├── @istanbuljs-load-nyc-config-npm-1.1.0-42d17c9cb1-d578da5e2e.zip │ ├── @istanbuljs-schema-npm-0.1.3-466bd3eaaa-5282759d96.zip │ ├── @nodelib-fs.scandir-npm-2.1.5-89c67370dd-a970d595bd.zip │ ├── @nodelib-fs.stat-npm-2.0.5-01f4dd3030-012480b5ca.zip │ ├── @nodelib-fs.walk-npm-1.2.8-b4a89da548-190c643f15.zip │ ├── @types-babel__generator-npm-7.6.4-03e776f956-20effbbb5f.zip │ ├── @types-babel__template-npm-7.4.1-fe1db49e53-649fe8b42c.zip │ ├── @types-faker-npm-5.5.9-2ce4f59dc2-c2cbd082ab.zip │ ├── @types-istanbul-lib-coverage-npm-2.0.4-734954bb56-a25d7589ee.zip │ ├── @types-istanbul-lib-report-npm-3.0.0-50de3e6b3b-656398b62d.zip │ ├── @types-istanbul-reports-npm-3.0.1-770e825002-f1ad54bc68.zip │ ├── @types-json5-npm-0.0.29-f63a7916bd-e60b153664.zip │ ├── @types-stack-utils-npm-2.0.1-867718ab70-205fdbe332.zip │ ├── abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip │ ├── acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip │ ├── acorn-walk-npm-8.2.0-2f2cac3177-1715e76c01.zip │ ├── agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip │ ├── aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip │ ├── ajv-npm-6.12.6-4b5105e2b2-874972efe5.zip │ ├── ansi-escapes-npm-4.3.2-3ad173702f-93111c4218.zip │ ├── ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip │ ├── ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip │ ├── ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip │ ├── ansi-styles-npm-5.2.0-72fc7003e3-d7f4e97ce0.zip │ ├── aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip │ ├── arg-npm-4.1.3-1748b966a8-544af8dd3f.zip │ ├── argparse-npm-1.0.10-528934e59d-7ca6e45583.zip │ ├── argparse-npm-2.0.1-faff7999e6-83644b5649.zip │ ├── array-union-npm-2.1.0-4e4852b221-5bee12395c.zip │ ├── babel-plugin-istanbul-npm-6.1.1-df824055e4-cb4fd95738.zip │ ├── babel-preset-current-node-syntax-npm-1.0.1-849ec71e32-d118c27424.zip │ ├── balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip │ ├── brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip │ ├── braces-npm-3.0.2-782240b28a-e2a8e769a8.zip │ ├── bs-logger-npm-0.2.6-7670f88b66-d34bdaf68c.zip │ ├── bser-npm-2.1.1-cc902055ce-9ba4dc58ce.zip │ ├── buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip │ ├── call-bind-npm-1.0.2-c957124861-f8e31de9d1.zip │ ├── callsites-npm-3.1.0-268f989910-072d17b6ab.zip │ ├── camelcase-npm-5.3.1-5db8af62c5-e6effce26b.zip │ ├── camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip │ ├── chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip │ ├── chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip │ ├── char-regex-npm-1.0.2-ecade5f97f-b563e4b603.zip │ ├── chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip │ ├── cjs-module-lexer-npm-1.2.2-473ce063ea-977f3f042b.zip │ ├── clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip │ ├── co-npm-4.6.0-03f2d1feb6-5210d92230.zip │ ├── collect-v8-coverage-npm-1.0.1-39dec86bad-4efe0a1fcc.zip │ ├── color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip │ ├── color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip │ ├── color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip │ ├── color-name-npm-1.1.4-025792b0ea-b044585952.zip │ ├── color-support-npm-1.1.3-3be5c53455-9b73568176.zip │ ├── concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip │ ├── console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip │ ├── create-require-npm-1.1.1-839884ca2e-a9a1503d43.zip │ ├── cross-fetch-npm-3.1.5-e414995db9-f6b8c6ee3e.zip │ ├── cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip │ ├── debug-npm-3.2.7-754e818c7a-b3d8c59407.zip │ ├── dedent-npm-0.7.0-2dbb45a4c5-87de191050.zip │ ├── deep-is-npm-0.1.4-88938b5a67-edb65dd0d7.zip │ ├── delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip │ ├── depd-npm-1.1.2-b0c8414da7-6b406620d2.zip │ ├── detect-newline-npm-3.1.0-6d33fa8d37-ae6cd429c4.zip │ ├── diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip │ ├── dir-glob-npm-3.0.1-1aea628b1b-fa05e18324.zip │ ├── doctrine-npm-2.1.0-ac15d049b7-a45e277f7f.zip │ ├── doctrine-npm-3.0.0-c6f1615f04-fd7673ca77.zip │ ├── emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip │ ├── encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip │ ├── env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip │ ├── err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip │ ├── es-to-primitive-npm-1.2.1-b7a7eac6c5-4ead6671a2.zip │ ├── escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip │ ├── escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip │ ├── escape-string-regexp-npm-2.0.0-aef69d2a25-9f8a2d5743.zip │ ├── escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip │ ├── eslint-plugin-eslint-comments-npm-3.2.0-b1dc85dfb2-c9fe273dd5.zip │ ├── eslint-plugin-unused-imports-npm-2.0.0-026709453d-8aa1e03e75.zip │ ├── eslint-rule-composer-npm-0.3.0-0188afafaa-c2f57cded8.zip │ ├── eslint-scope-npm-5.1.1-71fe59b18a-47e4b6a3f0.zip │ ├── eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip │ ├── eslint-visitor-keys-npm-2.1.0-c31806b6b9-e3081d7dd2.zip │ ├── esprima-npm-4.0.1-1084e98778-b45bc805a6.zip │ ├── esquery-npm-1.4.0-f39408b1a7-a0807e17ab.zip │ ├── esrecurse-npm-4.3.0-10b86a887a-ebc17b1a33.zip │ ├── estraverse-npm-4.3.0-920a32f3c6-a6299491f9.zip │ ├── estraverse-npm-5.3.0-03284f8f63-072780882d.zip │ ├── esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip │ ├── execa-npm-5.1.1-191347acf5-fba9022c8c.zip │ ├── exit-npm-0.1.2-ef3761a67d-abc407f07a.zip │ ├── faker-npm-5.5.3-541ce97798-684fd64c8d.zip │ ├── fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip │ ├── fast-diff-npm-1.2.0-5ba4171bb6-1b5306eaa9.zip │ ├── fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip │ ├── fast-levenshtein-npm-2.0.6-fcd74b8df5-92cfec0a8d.zip │ ├── file-entry-cache-npm-6.0.1-31965cf0af-f49701feaa.zip │ ├── fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip │ ├── find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip │ ├── flat-cache-npm-3.0.4-ee77e5911e-4fdd10ecbc.zip │ ├── fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip │ ├── fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip │ ├── fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip │ ├── function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip │ ├── gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip │ ├── get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip │ ├── get-package-type-npm-0.1.0-6c70cdc8ab-bba0811116.zip │ ├── get-stream-npm-6.0.1-83e51a4642-e04ecece32.zip │ ├── get-symbol-description-npm-1.0.0-9c95a4bc1f-9ceff8fe96.zip │ ├── glob-parent-npm-5.1.2-021ab32634-f4f2bfe242.zip │ ├── glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip │ ├── globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip │ ├── globby-npm-11.1.0-bdcdf20c71-b4be8885e0.zip │ ├── has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip │ ├── has-flag-npm-4.0.0-32af9f0536-261a135703.zip │ ├── has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip │ ├── has-tostringtag-npm-1.0.0-b1fcf3ab55-cc12eb28cb.zip │ ├── has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip │ ├── html-escaper-npm-2.0.2-38e51ef294-d2df2da3ad.zip │ ├── human-signals-npm-2.1.0-f75815481d-b87fd89fce.zip │ ├── humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip │ ├── iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip │ ├── import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip │ ├── import-local-npm-3.1.0-8960af5e51-bfcdb63b5e.zip │ ├── imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip │ ├── indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip │ ├── infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip │ ├── inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip │ ├── inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip │ ├── is-bigint-npm-1.0.4-31c2eecbc9-c56edfe09b.zip │ ├── is-boolean-object-npm-1.1.2-ecbd575e6a-c03b23dbaa.zip │ ├── is-date-object-npm-1.0.5-88f3d08b5e-baa9077cdf.zip │ ├── is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip │ ├── is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip │ ├── is-generator-fn-npm-2.1.0-37895c2d2b-a6ad5492cf.zip │ ├── is-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.zip │ ├── is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip │ ├── is-negative-zero-npm-2.0.2-0adac91f15-f3232194c4.zip │ ├── is-number-npm-7.0.0-060086935c-456ac6f8e0.zip │ ├── is-regex-npm-1.1.4-cca193ef11-362399b335.zip │ ├── is-stream-npm-2.0.1-c802db55e7-b8e05ccdf9.zip │ ├── is-string-npm-1.0.7-9f7066daed-323b3d0462.zip │ ├── is-symbol-npm-1.0.4-eb9baac703-92805812ef.zip │ ├── is-typedarray-npm-1.0.0-bbd99de5b6-3508c6cd0a.zip │ ├── is-weakref-npm-1.0.2-ff80e8c314-95bd9a57cd.zip │ ├── isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip │ ├── istanbul-lib-coverage-npm-3.2.0-93f84b2c8c-a2a545033b.zip │ ├── istanbul-lib-report-npm-3.0.0-660f97340a-3f29eb3f53.zip │ ├── istanbul-lib-source-maps-npm-4.0.1-af0f859df7-21ad3df45d.zip │ ├── jest-specific-snapshot-npm-5.0.0-20b19f759f-b1d2a7ab2d.zip │ ├── js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip │ ├── js-yaml-npm-3.14.1-b968c6095e-bef146085f.zip │ ├── js-yaml-npm-4.1.0-3606f32312-c7830dfd45.zip │ ├── jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip │ ├── json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip │ ├── json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-cff44156dd.zip │ ├── kleur-npm-3.0.3-f6f53649a4-df82cd1e17.zip │ ├── leven-npm-3.1.0-b7697736a3-638401d534.zip │ ├── levn-npm-0.4.1-d183b2d7bb-12c5021c85.zip │ ├── locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip │ ├── lodash.memoize-npm-4.1.2-0e6250041f-9ff3942fee.zip │ ├── lodash.merge-npm-4.6.2-77cb4416bf-ad580b4bdb.zip │ ├── lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip │ ├── make-dir-npm-3.1.0-d1d7505142-484200020a.zip │ ├── make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip │ ├── makeerror-npm-1.0.12-69abf085d7-b38a025a12.zip │ ├── merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip │ ├── merge2-npm-1.4.1-a2507bd06c-7268db63ed.zip │ ├── mimic-fn-npm-2.1.0-4fbeb3abb4-d2421a3444.zip │ ├── minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip │ ├── minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip │ ├── minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip │ ├── minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip │ ├── minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip │ ├── mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip │ ├── ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip │ ├── ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip │ ├── natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip │ ├── node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip │ ├── node-int64-npm-0.4.0-0dc04ec3b2-d0b30b1ee6.zip │ ├── normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip │ ├── npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip │ ├── object-keys-npm-1.1.1-1bf2f1be93-b363c5e764.zip │ ├── once-npm-1.4.0-ccf03ef07a-cd0a885013.zip │ ├── onetime-npm-5.1.2-3ed148fa42-2478859ef8.zip │ ├── optionator-npm-0.9.1-577e397aae-dbc6fa0656.zip │ ├── p-limit-npm-2.3.0-94a0310039-84ff17f1a3.zip │ ├── p-locate-npm-4.1.0-eec6872537-513bd14a45.zip │ ├── p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip │ ├── p-try-npm-2.2.0-e0390dbaf8-f8a8e9a769.zip │ ├── parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip │ ├── path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip │ ├── path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip │ ├── path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip │ ├── path-parse-npm-1.0.7-09564527b7-49abf3d811.zip │ ├── path-type-npm-4.0.0-10d47fc86a-5b1e2daa24.zip │ ├── picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip │ ├── picomatch-npm-2.3.1-c782cfd986-050c865ce8.zip │ ├── pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip │ ├── prelude-ls-npm-1.2.1-3e4d272a55-cd192ec0d0.zip │ ├── prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip │ ├── promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip │ ├── promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip │ ├── prompts-npm-2.4.2-f5d25d5eea-d8fd1fe638.zip │ ├── queue-microtask-npm-1.2.3-fcc98e4e2d-b676f8c040.zip │ ├── react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip │ ├── readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip │ ├── regexpp-npm-3.2.0-2513f32cfc-a78dc5c715.zip │ ├── require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip │ ├── resolve-cwd-npm-3.0.0-e6f4e296bf-546e081601.zip │ ├── resolve-from-npm-4.0.0-f758ec21bf-f4ba0b8494.zip │ ├── resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip │ ├── retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip │ ├── reusify-npm-1.0.4-95ac4aec11-c3076ebcc2.zip │ ├── rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip │ ├── run-parallel-npm-1.2.0-3f47ff2034-cb4f97ad25.zip │ ├── safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip │ ├── safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip │ ├── semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip │ ├── set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip │ ├── shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip │ ├── shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip │ ├── side-channel-npm-1.0.4-e1f38b9e06-351e41b947.zip │ ├── sisteransi-npm-1.0.5-af60cc0cfa-aba6438f46.zip │ ├── slash-npm-3.0.0-b87de2279a-94a93fff61.zip │ ├── smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip │ ├── source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip │ ├── source-map-support-npm-0.5.21-09ca99e250-43e98d700d.zip │ ├── sprintf-js-npm-1.0.3-73f0a322fa-19d79aec21.zip │ ├── string-length-npm-4.0.2-675173c7a2-ce85533ef5.zip │ ├── string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip │ ├── string_decoder-npm-1.3.0-2422117fd0-8417646695.zip │ ├── strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip │ ├── strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip │ ├── strip-bom-npm-4.0.0-97d367a64d-9dbcfbaf50.zip │ ├── strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip │ ├── strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip │ ├── supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip │ ├── supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip │ ├── supports-color-npm-8.1.1-289e937149-c052193a7e.zip │ ├── supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip │ ├── terminal-link-npm-2.1.1-de80341758-ce3d2cd3a4.zip │ ├── test-exclude-npm-6.0.0-3fb03d69df-3b34a3d771.zip │ ├── text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip │ ├── tmpl-npm-1.0.5-d399ba37e2-cd922d9b85.zip │ ├── to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip │ ├── to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip │ ├── tr46-npm-0.0.3-de53018915-726321c5ea.zip │ ├── tslib-npm-1.14.1-102499115e-dbe628ef87.zip │ ├── tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip │ ├── type-check-npm-0.4.0-60565800ce-ec688ebfc9.zip │ ├── type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip │ ├── type-fest-npm-0.20.2-b36432617f-4fb3272df2.zip │ ├── type-fest-npm-0.21.3-5ff2a9c6fd-e6b32a3b38.zip │ ├── typedarray-to-buffer-npm-3.1.5-aadc11995e-99c11aaa8f.zip │ ├── uri-js-npm-4.4.1-66d11cbcaf-7167432de6.zip │ ├── util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip │ ├── walker-npm-1.0.8-b0a05b9478-ad7a257ea1.zip │ ├── webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip │ ├── whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip │ ├── which-boxed-primitive-npm-1.0.2-e214f9ae5a-53ce774c73.zip │ ├── which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip │ ├── wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip │ ├── word-wrap-npm-1.2.3-7fb15ab002-30b48f91fc.zip │ ├── wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip │ ├── wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip │ ├── write-file-atomic-npm-3.0.3-d948a237da-c55b24617c.zip │ ├── y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip │ ├── yallist-npm-4.0.0-b493d9e907-343617202a.zip │ └── yn-npm-3.1.1-8ad4259784-2c487b0e14.zip ├── plugins │ └── @yarnpkg │ │ ├── plugin-interactive-tools.cjs │ │ └── plugin-typescript.cjs ├── releases │ └── yarn-3.4.1.cjs └── sdks │ ├── eslint │ ├── bin │ │ └── eslint.js │ ├── lib │ │ └── api.js │ └── package.json │ ├── integrations.yml │ ├── prettier │ ├── index.js │ └── package.json │ └── typescript │ ├── bin │ ├── tsc │ └── tsserver │ ├── lib │ ├── tsc.js │ ├── tsserver.js │ ├── tsserverlibrary.js │ └── typescript.js │ └── package.json ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── __snapshots__ ├── comment │ ├── e2e-create.snapshot │ ├── e2e-delete.snapshot │ ├── e2e-find_all.snapshot │ ├── e2e-find_one.snapshot │ └── e2e-update.snapshot ├── e2e-blockType.snapshot ├── e2e-postType.snapshot ├── e2e-search.snapshot ├── e2e-siteSettings-find.snapshot ├── e2e-siteSettings-update.snapshot ├── e2e-status-authenticated.snapshot ├── e2e-status.snapshot ├── plugin │ ├── e2e-create.snapshot │ ├── e2e-delete.snapshot │ ├── e2e-find_all.snapshot │ ├── e2e-find_one.snapshot │ └── e2e-update.snapshot ├── taxonomy │ ├── e2e-find_all.snapshot │ └── e2e-find_one.snapshot └── user │ ├── e2e-create.snapshot │ ├── e2e-delete.snapshot │ ├── e2e-deleteMe.snapshot │ ├── e2e-find_all.snapshot │ ├── e2e-find_me.snapshot │ ├── e2e-find_one.snapshot │ └── e2e-update.snapshot ├── __tests__ ├── e2e │ ├── Dockerfile │ ├── db.sql │ ├── docker-compose.yml │ ├── jpg.jpg │ ├── png.png │ ├── spec │ │ ├── application-password.e2e-spec.ts │ │ ├── block-directory.e2e-spec.ts │ │ ├── block-type.e2e-spec.ts │ │ ├── comment.e2e-spec.ts │ │ ├── media.e2e-spec.ts │ │ ├── page.e2e-spec.ts │ │ ├── plugin.e2e-spec.ts │ │ ├── post-category.e2e-spec.ts │ │ ├── post-tag.e2e-spec.ts │ │ ├── post-type.e2e-spec.ts │ │ ├── post.e2e-spec.ts │ │ ├── rendered-block.e2e-spec.ts │ │ ├── reusable-block.e2e-spec.ts │ │ ├── search.e2e-spec.ts │ │ ├── site-settings.e2e-spec.ts │ │ ├── status.e2e-spec.ts │ │ ├── taxonomy.e2e-spec.ts │ │ ├── theme.e2e-spec.ts │ │ └── user.e2e-spec.ts │ ├── wait-for-db-import.sh │ └── wp-plugin.php ├── factories │ ├── category.factory.ts │ ├── object-links.factory.ts │ ├── page.factory.ts │ ├── post.factory.ts │ └── tag.factory.ts ├── fetch-client.spec.ts ├── util.spec.ts ├── util.ts └── wp-api-client.spec.ts ├── jest.config.ts ├── package.json ├── sonar-project.properties ├── src ├── constants.ts ├── fetch-client.ts ├── index.ts ├── types.ts ├── util.ts └── wp-api-client.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.all-contributorsrc: -------------------------------------------------------------------------------- 1 | { 2 | "files": [ 3 | "README.md" 4 | ], 5 | "imageSize": 100, 6 | "commit": false, 7 | "contributors": [ 8 | { 9 | "login": "dkress59", 10 | "name": "Damian", 11 | "avatar_url": "https://avatars.githubusercontent.com/u/28515387?v=4", 12 | "profile": "http://www.damiankress.de", 13 | "contributions": [ 14 | "code", 15 | "doc", 16 | "example", 17 | "maintenance", 18 | "test" 19 | ] 20 | }, 21 | { 22 | "login": "JonathanWolfe", 23 | "name": "Jon Wolfe", 24 | "avatar_url": "https://avatars.githubusercontent.com/u/1449779?v=4", 25 | "profile": "https://jonathanwolfe.github.io", 26 | "contributions": [ 27 | "code", 28 | "ideas" 29 | ] 30 | } 31 | ], 32 | "contributorsPerLine": 7, 33 | "projectName": "wordpress-api-client", 34 | "projectOwner": "dkress59", 35 | "repoType": "github", 36 | "repoHost": "https://github.com", 37 | "skipCi": true 38 | } 39 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_size = 4 5 | tab_width = 4 6 | indent_style = tab 7 | 8 | [*.{json,md,yaml}] 9 | indent_style = space 10 | 11 | [*.json,md] 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true, 5 | jest: true, 6 | }, 7 | extends: ['@tool-belt/eslint-config'], 8 | parserOptions: { 9 | project: ['./tsconfig.json'], 10 | }, 11 | plugins: ['unused-imports'], 12 | settings: { 13 | 'import/parsers': { 14 | '@typescript-eslint/parser': ['.ts'], 15 | }, 16 | 'import/resolver': { 17 | typescript: { 18 | alwaysTryTypes: true, 19 | }, 20 | }, 21 | }, 22 | rules: { 23 | 'curly': 'off', 24 | 'no-console': 'error', 25 | 'unused-imports/no-unused-imports': 'error', 26 | //'no-restricted-imports': ['error', { 'paths': ['.'] }] 27 | }, 28 | } 29 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/publish-release.yml: -------------------------------------------------------------------------------- 1 | name: Publish Release 2 | 3 | on: 4 | release: 5 | types: [created] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v2 12 | - uses: actions/setup-node@v2 13 | with: 14 | node-version: '16.x' 15 | registry-url: 'https://registry.npmjs.org' 16 | - run: yarn 17 | - run: yarn npm audit 18 | - run: yarn check:script 19 | - run: yarn test 20 | - run: yarn build 21 | - name: 'Publish to NPM' 22 | run: npm publish 23 | env: 24 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -------------------------------------------------------------------------------- /.github/workflows/unit-tests.yml: -------------------------------------------------------------------------------- 1 | name: Unit Tests 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | pull_request: 7 | branches: [main, 'dependabot/*'] 8 | types: [opened, synchronize, reopened] 9 | 10 | jobs: 11 | test: 12 | runs-on: ubuntu-latest 13 | 14 | strategy: 15 | matrix: 16 | node-version: [14.x, 16.x, 17.x, 18.x] 17 | 18 | steps: 19 | - uses: actions/checkout@v2 20 | - name: Use Node.js ${{ matrix.node-version }} 21 | uses: actions/setup-node@v1 22 | with: 23 | node-version: ${{ matrix.node-version }} 24 | - run: yarn 25 | - run: yarn build 26 | - run: yarn test 27 | 28 | coverage: 29 | runs-on: ubuntu-latest 30 | steps: 31 | - uses: actions/checkout@v2 32 | with: 33 | fetch-depth: 0 # better relevancy of analysis 34 | - uses: actions/setup-node@v1 35 | with: 36 | node-version: '16' 37 | - name: Install Dependencies 38 | run: yarn 39 | - name: Run Tests 40 | run: yarn test 41 | - name: SonarCloud Scan 42 | uses: SonarSource/sonarcloud-github-action@master 43 | env: 44 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # PR information 45 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} 46 | 47 | e2e: 48 | runs-on: ubuntu-latest 49 | steps: 50 | - uses: actions/checkout@v2 51 | - uses: actions/setup-node@v1 52 | with: 53 | node-version: '16' 54 | - name: Install Dependencies 55 | run: yarn install 56 | - name: Bring up WordPress 57 | run: yarn docker 58 | - name: Wait for DB import 59 | run: | 60 | echo 'pausing: waiting for mysql to come available' 61 | ./__tests__/e2e/wait-for-db-import.sh 62 | echo 'un-pausing: mysql is now available' 63 | - name: Run end-to-end test 64 | run: yarn test:e2e 65 | - name: Tear down WordPress 66 | run: yarn docker:down 67 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # yarn 2 | .pnp.* 3 | .yarn/* 4 | !.yarn/patches 5 | !.yarn/plugins 6 | !.yarn/releases 7 | !.yarn/sdks 8 | !.yarn/versions 9 | 10 | # build 11 | dist/ 12 | src/**/*.js 13 | 14 | # misc 15 | .DS_Store 16 | .idea/workspace.xml 17 | .jest/cache/ 18 | coverage/ 19 | node_modules/ 20 | *.bak 21 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | yarn lint:script 5 | -------------------------------------------------------------------------------- /.idea/php.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "no-hard-tabs": true, 3 | "no-inline-html": false 4 | } -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | __snapshots__/ 2 | __tests__/ 3 | .github/ 4 | .husky/ 5 | .idea/ 6 | .jest/ 7 | .vscode/ 8 | .yarn/ 9 | .all-contributorsrc 10 | .codecov.yaml 11 | .pnp.*js 12 | coverage/ 13 | jest.config.ts 14 | sonar-project.properties -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "arrowParens": "avoid", 3 | "quoteProps": "consistent", 4 | "semi": false, 5 | "singleQuote": true, 6 | "tabWidth": 4, 7 | "trailingComma": "all", 8 | "useTabs": true 9 | } 10 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "arcanis.vscode-zipfs", 4 | "dbaeumer.vscode-eslint", 5 | "esbenp.prettier-vscode" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cSpell.language": "en_US,en_GB", 3 | "cSpell.words": [ 4 | "trashable", 5 | "untrashable" 6 | ], 7 | "editor.codeActionsOnSave": { 8 | "source.fixAll": true 9 | }, 10 | "typescript.preferences.importModuleSpecifier": "relative", 11 | "typescript.tsdk": ".yarn/sdks/typescript/lib", 12 | "search.exclude": { 13 | "**/.yarn": true, 14 | "**/.pnp.*": true 15 | }, 16 | "eslint.nodePath": ".yarn/sdks", 17 | "prettier.prettierPath": ".yarn/sdks/prettier/index.js", 18 | "typescript.enablePromptUseWorkspaceTsdk": true, 19 | "editor.stickyScroll.enabled": true 20 | } 21 | -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-async-generators-npm-7.8.4-d10cf993c9-7ed1c1d9b9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-async-generators-npm-7.8.4-d10cf993c9-7ed1c1d9b9.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-bigint-npm-7.8.3-b05d971e6c-3a10849d83.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-bigint-npm-7.8.3-b05d971e6c-3a10849d83.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-import-meta-npm-7.10.4-4a0a0158bc-166ac1125d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-import-meta-npm-7.10.4-4a0a0158bc-166ac1125d.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-json-strings-npm-7.8.3-6dc7848179-bf5aea1f31.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-json-strings-npm-7.8.3-6dc7848179-bf5aea1f31.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-logical-assignment-operators-npm-7.10.4-72ae00fdf6-aff3357703.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-logical-assignment-operators-npm-7.10.4-72ae00fdf6-aff3357703.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-nullish-coalescing-operator-npm-7.8.3-8a723173b5-87aca49189.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-nullish-coalescing-operator-npm-7.8.3-8a723173b5-87aca49189.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-numeric-separator-npm-7.10.4-81444be605-01ec5547bd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-numeric-separator-npm-7.10.4-81444be605-01ec5547bd.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-object-rest-spread-npm-7.8.3-60bd05b6ae-fddcf581a5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-object-rest-spread-npm-7.8.3-60bd05b6ae-fddcf581a5.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-optional-catch-binding-npm-7.8.3-ce337427d8-910d90e72b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-optional-catch-binding-npm-7.8.3-ce337427d8-910d90e72b.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-optional-chaining-npm-7.8.3-f3f3c79579-eef94d53a1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-optional-chaining-npm-7.8.3-f3f3c79579-eef94d53a1.zip -------------------------------------------------------------------------------- /.yarn/cache/@babel-plugin-syntax-top-level-await-npm-7.14.5-60a0a2e83b-bbd1a56b09.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@babel-plugin-syntax-top-level-await-npm-7.14.5-60a0a2e83b-bbd1a56b09.zip -------------------------------------------------------------------------------- /.yarn/cache/@bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-850f930553.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-850f930553.zip -------------------------------------------------------------------------------- /.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip -------------------------------------------------------------------------------- /.yarn/cache/@istanbuljs-load-nyc-config-npm-1.1.0-42d17c9cb1-d578da5e2e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@istanbuljs-load-nyc-config-npm-1.1.0-42d17c9cb1-d578da5e2e.zip -------------------------------------------------------------------------------- /.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-5282759d96.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-5282759d96.zip -------------------------------------------------------------------------------- /.yarn/cache/@nodelib-fs.scandir-npm-2.1.5-89c67370dd-a970d595bd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@nodelib-fs.scandir-npm-2.1.5-89c67370dd-a970d595bd.zip -------------------------------------------------------------------------------- /.yarn/cache/@nodelib-fs.stat-npm-2.0.5-01f4dd3030-012480b5ca.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@nodelib-fs.stat-npm-2.0.5-01f4dd3030-012480b5ca.zip -------------------------------------------------------------------------------- /.yarn/cache/@nodelib-fs.walk-npm-1.2.8-b4a89da548-190c643f15.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@nodelib-fs.walk-npm-1.2.8-b4a89da548-190c643f15.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-babel__generator-npm-7.6.4-03e776f956-20effbbb5f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-babel__generator-npm-7.6.4-03e776f956-20effbbb5f.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-babel__template-npm-7.4.1-fe1db49e53-649fe8b42c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-babel__template-npm-7.4.1-fe1db49e53-649fe8b42c.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-faker-npm-5.5.9-2ce4f59dc2-c2cbd082ab.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-faker-npm-5.5.9-2ce4f59dc2-c2cbd082ab.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-istanbul-lib-coverage-npm-2.0.4-734954bb56-a25d7589ee.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-istanbul-lib-coverage-npm-2.0.4-734954bb56-a25d7589ee.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-istanbul-lib-report-npm-3.0.0-50de3e6b3b-656398b62d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-istanbul-lib-report-npm-3.0.0-50de3e6b3b-656398b62d.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-istanbul-reports-npm-3.0.1-770e825002-f1ad54bc68.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-istanbul-reports-npm-3.0.1-770e825002-f1ad54bc68.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-json5-npm-0.0.29-f63a7916bd-e60b153664.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-json5-npm-0.0.29-f63a7916bd-e60b153664.zip -------------------------------------------------------------------------------- /.yarn/cache/@types-stack-utils-npm-2.0.1-867718ab70-205fdbe332.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/@types-stack-utils-npm-2.0.1-867718ab70-205fdbe332.zip -------------------------------------------------------------------------------- /.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip -------------------------------------------------------------------------------- /.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip -------------------------------------------------------------------------------- /.yarn/cache/acorn-walk-npm-8.2.0-2f2cac3177-1715e76c01.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/acorn-walk-npm-8.2.0-2f2cac3177-1715e76c01.zip -------------------------------------------------------------------------------- /.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip -------------------------------------------------------------------------------- /.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip -------------------------------------------------------------------------------- /.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-874972efe5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-874972efe5.zip -------------------------------------------------------------------------------- /.yarn/cache/ansi-escapes-npm-4.3.2-3ad173702f-93111c4218.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ansi-escapes-npm-4.3.2-3ad173702f-93111c4218.zip -------------------------------------------------------------------------------- /.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip -------------------------------------------------------------------------------- /.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip -------------------------------------------------------------------------------- /.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip -------------------------------------------------------------------------------- /.yarn/cache/ansi-styles-npm-5.2.0-72fc7003e3-d7f4e97ce0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ansi-styles-npm-5.2.0-72fc7003e3-d7f4e97ce0.zip -------------------------------------------------------------------------------- /.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip -------------------------------------------------------------------------------- /.yarn/cache/arg-npm-4.1.3-1748b966a8-544af8dd3f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/arg-npm-4.1.3-1748b966a8-544af8dd3f.zip -------------------------------------------------------------------------------- /.yarn/cache/argparse-npm-1.0.10-528934e59d-7ca6e45583.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/argparse-npm-1.0.10-528934e59d-7ca6e45583.zip -------------------------------------------------------------------------------- /.yarn/cache/argparse-npm-2.0.1-faff7999e6-83644b5649.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/argparse-npm-2.0.1-faff7999e6-83644b5649.zip -------------------------------------------------------------------------------- /.yarn/cache/array-union-npm-2.1.0-4e4852b221-5bee12395c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/array-union-npm-2.1.0-4e4852b221-5bee12395c.zip -------------------------------------------------------------------------------- /.yarn/cache/babel-plugin-istanbul-npm-6.1.1-df824055e4-cb4fd95738.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/babel-plugin-istanbul-npm-6.1.1-df824055e4-cb4fd95738.zip -------------------------------------------------------------------------------- /.yarn/cache/babel-preset-current-node-syntax-npm-1.0.1-849ec71e32-d118c27424.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/babel-preset-current-node-syntax-npm-1.0.1-849ec71e32-d118c27424.zip -------------------------------------------------------------------------------- /.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip -------------------------------------------------------------------------------- /.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip -------------------------------------------------------------------------------- /.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip -------------------------------------------------------------------------------- /.yarn/cache/bs-logger-npm-0.2.6-7670f88b66-d34bdaf68c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/bs-logger-npm-0.2.6-7670f88b66-d34bdaf68c.zip -------------------------------------------------------------------------------- /.yarn/cache/bser-npm-2.1.1-cc902055ce-9ba4dc58ce.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/bser-npm-2.1.1-cc902055ce-9ba4dc58ce.zip -------------------------------------------------------------------------------- /.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip -------------------------------------------------------------------------------- /.yarn/cache/call-bind-npm-1.0.2-c957124861-f8e31de9d1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/call-bind-npm-1.0.2-c957124861-f8e31de9d1.zip -------------------------------------------------------------------------------- /.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip -------------------------------------------------------------------------------- /.yarn/cache/camelcase-npm-5.3.1-5db8af62c5-e6effce26b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/camelcase-npm-5.3.1-5db8af62c5-e6effce26b.zip -------------------------------------------------------------------------------- /.yarn/cache/camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip -------------------------------------------------------------------------------- /.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip -------------------------------------------------------------------------------- /.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip -------------------------------------------------------------------------------- /.yarn/cache/char-regex-npm-1.0.2-ecade5f97f-b563e4b603.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/char-regex-npm-1.0.2-ecade5f97f-b563e4b603.zip -------------------------------------------------------------------------------- /.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip -------------------------------------------------------------------------------- /.yarn/cache/cjs-module-lexer-npm-1.2.2-473ce063ea-977f3f042b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/cjs-module-lexer-npm-1.2.2-473ce063ea-977f3f042b.zip -------------------------------------------------------------------------------- /.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip -------------------------------------------------------------------------------- /.yarn/cache/co-npm-4.6.0-03f2d1feb6-5210d92230.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/co-npm-4.6.0-03f2d1feb6-5210d92230.zip -------------------------------------------------------------------------------- /.yarn/cache/collect-v8-coverage-npm-1.0.1-39dec86bad-4efe0a1fcc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/collect-v8-coverage-npm-1.0.1-39dec86bad-4efe0a1fcc.zip -------------------------------------------------------------------------------- /.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip -------------------------------------------------------------------------------- /.yarn/cache/color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip -------------------------------------------------------------------------------- /.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip -------------------------------------------------------------------------------- /.yarn/cache/color-name-npm-1.1.4-025792b0ea-b044585952.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/color-name-npm-1.1.4-025792b0ea-b044585952.zip -------------------------------------------------------------------------------- /.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip -------------------------------------------------------------------------------- /.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip -------------------------------------------------------------------------------- /.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip -------------------------------------------------------------------------------- /.yarn/cache/create-require-npm-1.1.1-839884ca2e-a9a1503d43.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/create-require-npm-1.1.1-839884ca2e-a9a1503d43.zip -------------------------------------------------------------------------------- /.yarn/cache/cross-fetch-npm-3.1.5-e414995db9-f6b8c6ee3e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/cross-fetch-npm-3.1.5-e414995db9-f6b8c6ee3e.zip -------------------------------------------------------------------------------- /.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip -------------------------------------------------------------------------------- /.yarn/cache/debug-npm-3.2.7-754e818c7a-b3d8c59407.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/debug-npm-3.2.7-754e818c7a-b3d8c59407.zip -------------------------------------------------------------------------------- /.yarn/cache/dedent-npm-0.7.0-2dbb45a4c5-87de191050.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/dedent-npm-0.7.0-2dbb45a4c5-87de191050.zip -------------------------------------------------------------------------------- /.yarn/cache/deep-is-npm-0.1.4-88938b5a67-edb65dd0d7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/deep-is-npm-0.1.4-88938b5a67-edb65dd0d7.zip -------------------------------------------------------------------------------- /.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip -------------------------------------------------------------------------------- /.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip -------------------------------------------------------------------------------- /.yarn/cache/detect-newline-npm-3.1.0-6d33fa8d37-ae6cd429c4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/detect-newline-npm-3.1.0-6d33fa8d37-ae6cd429c4.zip -------------------------------------------------------------------------------- /.yarn/cache/diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip -------------------------------------------------------------------------------- /.yarn/cache/dir-glob-npm-3.0.1-1aea628b1b-fa05e18324.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/dir-glob-npm-3.0.1-1aea628b1b-fa05e18324.zip -------------------------------------------------------------------------------- /.yarn/cache/doctrine-npm-2.1.0-ac15d049b7-a45e277f7f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/doctrine-npm-2.1.0-ac15d049b7-a45e277f7f.zip -------------------------------------------------------------------------------- /.yarn/cache/doctrine-npm-3.0.0-c6f1615f04-fd7673ca77.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/doctrine-npm-3.0.0-c6f1615f04-fd7673ca77.zip -------------------------------------------------------------------------------- /.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip -------------------------------------------------------------------------------- /.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip -------------------------------------------------------------------------------- /.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip -------------------------------------------------------------------------------- /.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip -------------------------------------------------------------------------------- /.yarn/cache/es-to-primitive-npm-1.2.1-b7a7eac6c5-4ead6671a2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/es-to-primitive-npm-1.2.1-b7a7eac6c5-4ead6671a2.zip -------------------------------------------------------------------------------- /.yarn/cache/escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip -------------------------------------------------------------------------------- /.yarn/cache/escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip -------------------------------------------------------------------------------- /.yarn/cache/escape-string-regexp-npm-2.0.0-aef69d2a25-9f8a2d5743.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/escape-string-regexp-npm-2.0.0-aef69d2a25-9f8a2d5743.zip -------------------------------------------------------------------------------- /.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip -------------------------------------------------------------------------------- /.yarn/cache/eslint-plugin-eslint-comments-npm-3.2.0-b1dc85dfb2-c9fe273dd5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/eslint-plugin-eslint-comments-npm-3.2.0-b1dc85dfb2-c9fe273dd5.zip -------------------------------------------------------------------------------- /.yarn/cache/eslint-plugin-unused-imports-npm-2.0.0-026709453d-8aa1e03e75.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/eslint-plugin-unused-imports-npm-2.0.0-026709453d-8aa1e03e75.zip -------------------------------------------------------------------------------- /.yarn/cache/eslint-rule-composer-npm-0.3.0-0188afafaa-c2f57cded8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/eslint-rule-composer-npm-0.3.0-0188afafaa-c2f57cded8.zip -------------------------------------------------------------------------------- /.yarn/cache/eslint-scope-npm-5.1.1-71fe59b18a-47e4b6a3f0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/eslint-scope-npm-5.1.1-71fe59b18a-47e4b6a3f0.zip -------------------------------------------------------------------------------- /.yarn/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip -------------------------------------------------------------------------------- /.yarn/cache/eslint-visitor-keys-npm-2.1.0-c31806b6b9-e3081d7dd2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/eslint-visitor-keys-npm-2.1.0-c31806b6b9-e3081d7dd2.zip -------------------------------------------------------------------------------- /.yarn/cache/esprima-npm-4.0.1-1084e98778-b45bc805a6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/esprima-npm-4.0.1-1084e98778-b45bc805a6.zip -------------------------------------------------------------------------------- /.yarn/cache/esquery-npm-1.4.0-f39408b1a7-a0807e17ab.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/esquery-npm-1.4.0-f39408b1a7-a0807e17ab.zip -------------------------------------------------------------------------------- /.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-ebc17b1a33.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-ebc17b1a33.zip -------------------------------------------------------------------------------- /.yarn/cache/estraverse-npm-4.3.0-920a32f3c6-a6299491f9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/estraverse-npm-4.3.0-920a32f3c6-a6299491f9.zip -------------------------------------------------------------------------------- /.yarn/cache/estraverse-npm-5.3.0-03284f8f63-072780882d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/estraverse-npm-5.3.0-03284f8f63-072780882d.zip -------------------------------------------------------------------------------- /.yarn/cache/esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip -------------------------------------------------------------------------------- /.yarn/cache/execa-npm-5.1.1-191347acf5-fba9022c8c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/execa-npm-5.1.1-191347acf5-fba9022c8c.zip -------------------------------------------------------------------------------- /.yarn/cache/exit-npm-0.1.2-ef3761a67d-abc407f07a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/exit-npm-0.1.2-ef3761a67d-abc407f07a.zip -------------------------------------------------------------------------------- /.yarn/cache/faker-npm-5.5.3-541ce97798-684fd64c8d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/faker-npm-5.5.3-541ce97798-684fd64c8d.zip -------------------------------------------------------------------------------- /.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip -------------------------------------------------------------------------------- /.yarn/cache/fast-diff-npm-1.2.0-5ba4171bb6-1b5306eaa9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fast-diff-npm-1.2.0-5ba4171bb6-1b5306eaa9.zip -------------------------------------------------------------------------------- /.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip -------------------------------------------------------------------------------- /.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-92cfec0a8d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-92cfec0a8d.zip -------------------------------------------------------------------------------- /.yarn/cache/file-entry-cache-npm-6.0.1-31965cf0af-f49701feaa.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/file-entry-cache-npm-6.0.1-31965cf0af-f49701feaa.zip -------------------------------------------------------------------------------- /.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip -------------------------------------------------------------------------------- /.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip -------------------------------------------------------------------------------- /.yarn/cache/flat-cache-npm-3.0.4-ee77e5911e-4fdd10ecbc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/flat-cache-npm-3.0.4-ee77e5911e-4fdd10ecbc.zip -------------------------------------------------------------------------------- /.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip -------------------------------------------------------------------------------- /.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip -------------------------------------------------------------------------------- /.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip -------------------------------------------------------------------------------- /.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip -------------------------------------------------------------------------------- /.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip -------------------------------------------------------------------------------- /.yarn/cache/get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip -------------------------------------------------------------------------------- /.yarn/cache/get-package-type-npm-0.1.0-6c70cdc8ab-bba0811116.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/get-package-type-npm-0.1.0-6c70cdc8ab-bba0811116.zip -------------------------------------------------------------------------------- /.yarn/cache/get-stream-npm-6.0.1-83e51a4642-e04ecece32.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/get-stream-npm-6.0.1-83e51a4642-e04ecece32.zip -------------------------------------------------------------------------------- /.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-9ceff8fe96.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-9ceff8fe96.zip -------------------------------------------------------------------------------- /.yarn/cache/glob-parent-npm-5.1.2-021ab32634-f4f2bfe242.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/glob-parent-npm-5.1.2-021ab32634-f4f2bfe242.zip -------------------------------------------------------------------------------- /.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip -------------------------------------------------------------------------------- /.yarn/cache/globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip -------------------------------------------------------------------------------- /.yarn/cache/globby-npm-11.1.0-bdcdf20c71-b4be8885e0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/globby-npm-11.1.0-bdcdf20c71-b4be8885e0.zip -------------------------------------------------------------------------------- /.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip -------------------------------------------------------------------------------- /.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip -------------------------------------------------------------------------------- /.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip -------------------------------------------------------------------------------- /.yarn/cache/has-tostringtag-npm-1.0.0-b1fcf3ab55-cc12eb28cb.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/has-tostringtag-npm-1.0.0-b1fcf3ab55-cc12eb28cb.zip -------------------------------------------------------------------------------- /.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip -------------------------------------------------------------------------------- /.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-d2df2da3ad.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-d2df2da3ad.zip -------------------------------------------------------------------------------- /.yarn/cache/human-signals-npm-2.1.0-f75815481d-b87fd89fce.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/human-signals-npm-2.1.0-f75815481d-b87fd89fce.zip -------------------------------------------------------------------------------- /.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip -------------------------------------------------------------------------------- /.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip -------------------------------------------------------------------------------- /.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip -------------------------------------------------------------------------------- /.yarn/cache/import-local-npm-3.1.0-8960af5e51-bfcdb63b5e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/import-local-npm-3.1.0-8960af5e51-bfcdb63b5e.zip -------------------------------------------------------------------------------- /.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip -------------------------------------------------------------------------------- /.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip -------------------------------------------------------------------------------- /.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip -------------------------------------------------------------------------------- /.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip -------------------------------------------------------------------------------- /.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip -------------------------------------------------------------------------------- /.yarn/cache/is-bigint-npm-1.0.4-31c2eecbc9-c56edfe09b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-bigint-npm-1.0.4-31c2eecbc9-c56edfe09b.zip -------------------------------------------------------------------------------- /.yarn/cache/is-boolean-object-npm-1.1.2-ecbd575e6a-c03b23dbaa.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-boolean-object-npm-1.1.2-ecbd575e6a-c03b23dbaa.zip -------------------------------------------------------------------------------- /.yarn/cache/is-date-object-npm-1.0.5-88f3d08b5e-baa9077cdf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-date-object-npm-1.0.5-88f3d08b5e-baa9077cdf.zip -------------------------------------------------------------------------------- /.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip -------------------------------------------------------------------------------- /.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip -------------------------------------------------------------------------------- /.yarn/cache/is-generator-fn-npm-2.1.0-37895c2d2b-a6ad5492cf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-generator-fn-npm-2.1.0-37895c2d2b-a6ad5492cf.zip -------------------------------------------------------------------------------- /.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.zip -------------------------------------------------------------------------------- /.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip -------------------------------------------------------------------------------- /.yarn/cache/is-negative-zero-npm-2.0.2-0adac91f15-f3232194c4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-negative-zero-npm-2.0.2-0adac91f15-f3232194c4.zip -------------------------------------------------------------------------------- /.yarn/cache/is-number-npm-7.0.0-060086935c-456ac6f8e0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-number-npm-7.0.0-060086935c-456ac6f8e0.zip -------------------------------------------------------------------------------- /.yarn/cache/is-regex-npm-1.1.4-cca193ef11-362399b335.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-regex-npm-1.1.4-cca193ef11-362399b335.zip -------------------------------------------------------------------------------- /.yarn/cache/is-stream-npm-2.0.1-c802db55e7-b8e05ccdf9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-stream-npm-2.0.1-c802db55e7-b8e05ccdf9.zip -------------------------------------------------------------------------------- /.yarn/cache/is-string-npm-1.0.7-9f7066daed-323b3d0462.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-string-npm-1.0.7-9f7066daed-323b3d0462.zip -------------------------------------------------------------------------------- /.yarn/cache/is-symbol-npm-1.0.4-eb9baac703-92805812ef.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-symbol-npm-1.0.4-eb9baac703-92805812ef.zip -------------------------------------------------------------------------------- /.yarn/cache/is-typedarray-npm-1.0.0-bbd99de5b6-3508c6cd0a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-typedarray-npm-1.0.0-bbd99de5b6-3508c6cd0a.zip -------------------------------------------------------------------------------- /.yarn/cache/is-weakref-npm-1.0.2-ff80e8c314-95bd9a57cd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/is-weakref-npm-1.0.2-ff80e8c314-95bd9a57cd.zip -------------------------------------------------------------------------------- /.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip -------------------------------------------------------------------------------- /.yarn/cache/istanbul-lib-coverage-npm-3.2.0-93f84b2c8c-a2a545033b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/istanbul-lib-coverage-npm-3.2.0-93f84b2c8c-a2a545033b.zip -------------------------------------------------------------------------------- /.yarn/cache/istanbul-lib-report-npm-3.0.0-660f97340a-3f29eb3f53.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/istanbul-lib-report-npm-3.0.0-660f97340a-3f29eb3f53.zip -------------------------------------------------------------------------------- /.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-21ad3df45d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-21ad3df45d.zip -------------------------------------------------------------------------------- /.yarn/cache/jest-specific-snapshot-npm-5.0.0-20b19f759f-b1d2a7ab2d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/jest-specific-snapshot-npm-5.0.0-20b19f759f-b1d2a7ab2d.zip -------------------------------------------------------------------------------- /.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip -------------------------------------------------------------------------------- /.yarn/cache/js-yaml-npm-3.14.1-b968c6095e-bef146085f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/js-yaml-npm-3.14.1-b968c6095e-bef146085f.zip -------------------------------------------------------------------------------- /.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c7830dfd45.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c7830dfd45.zip -------------------------------------------------------------------------------- /.yarn/cache/jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip -------------------------------------------------------------------------------- /.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip -------------------------------------------------------------------------------- /.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-cff44156dd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-cff44156dd.zip -------------------------------------------------------------------------------- /.yarn/cache/kleur-npm-3.0.3-f6f53649a4-df82cd1e17.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/kleur-npm-3.0.3-f6f53649a4-df82cd1e17.zip -------------------------------------------------------------------------------- /.yarn/cache/leven-npm-3.1.0-b7697736a3-638401d534.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/leven-npm-3.1.0-b7697736a3-638401d534.zip -------------------------------------------------------------------------------- /.yarn/cache/levn-npm-0.4.1-d183b2d7bb-12c5021c85.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/levn-npm-0.4.1-d183b2d7bb-12c5021c85.zip -------------------------------------------------------------------------------- /.yarn/cache/locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip -------------------------------------------------------------------------------- /.yarn/cache/lodash.memoize-npm-4.1.2-0e6250041f-9ff3942fee.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/lodash.memoize-npm-4.1.2-0e6250041f-9ff3942fee.zip -------------------------------------------------------------------------------- /.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-ad580b4bdb.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-ad580b4bdb.zip -------------------------------------------------------------------------------- /.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip -------------------------------------------------------------------------------- /.yarn/cache/make-dir-npm-3.1.0-d1d7505142-484200020a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/make-dir-npm-3.1.0-d1d7505142-484200020a.zip -------------------------------------------------------------------------------- /.yarn/cache/make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip -------------------------------------------------------------------------------- /.yarn/cache/makeerror-npm-1.0.12-69abf085d7-b38a025a12.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/makeerror-npm-1.0.12-69abf085d7-b38a025a12.zip -------------------------------------------------------------------------------- /.yarn/cache/merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip -------------------------------------------------------------------------------- /.yarn/cache/merge2-npm-1.4.1-a2507bd06c-7268db63ed.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/merge2-npm-1.4.1-a2507bd06c-7268db63ed.zip -------------------------------------------------------------------------------- /.yarn/cache/mimic-fn-npm-2.1.0-4fbeb3abb4-d2421a3444.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/mimic-fn-npm-2.1.0-4fbeb3abb4-d2421a3444.zip -------------------------------------------------------------------------------- /.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip -------------------------------------------------------------------------------- /.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip -------------------------------------------------------------------------------- /.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip -------------------------------------------------------------------------------- /.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip -------------------------------------------------------------------------------- /.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip -------------------------------------------------------------------------------- /.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip -------------------------------------------------------------------------------- /.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip -------------------------------------------------------------------------------- /.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip -------------------------------------------------------------------------------- /.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip -------------------------------------------------------------------------------- /.yarn/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip -------------------------------------------------------------------------------- /.yarn/cache/node-int64-npm-0.4.0-0dc04ec3b2-d0b30b1ee6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/node-int64-npm-0.4.0-0dc04ec3b2-d0b30b1ee6.zip -------------------------------------------------------------------------------- /.yarn/cache/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip -------------------------------------------------------------------------------- /.yarn/cache/npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip -------------------------------------------------------------------------------- /.yarn/cache/object-keys-npm-1.1.1-1bf2f1be93-b363c5e764.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/object-keys-npm-1.1.1-1bf2f1be93-b363c5e764.zip -------------------------------------------------------------------------------- /.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip -------------------------------------------------------------------------------- /.yarn/cache/onetime-npm-5.1.2-3ed148fa42-2478859ef8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/onetime-npm-5.1.2-3ed148fa42-2478859ef8.zip -------------------------------------------------------------------------------- /.yarn/cache/optionator-npm-0.9.1-577e397aae-dbc6fa0656.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/optionator-npm-0.9.1-577e397aae-dbc6fa0656.zip -------------------------------------------------------------------------------- /.yarn/cache/p-limit-npm-2.3.0-94a0310039-84ff17f1a3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/p-limit-npm-2.3.0-94a0310039-84ff17f1a3.zip -------------------------------------------------------------------------------- /.yarn/cache/p-locate-npm-4.1.0-eec6872537-513bd14a45.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/p-locate-npm-4.1.0-eec6872537-513bd14a45.zip -------------------------------------------------------------------------------- /.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip -------------------------------------------------------------------------------- /.yarn/cache/p-try-npm-2.2.0-e0390dbaf8-f8a8e9a769.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/p-try-npm-2.2.0-e0390dbaf8-f8a8e9a769.zip -------------------------------------------------------------------------------- /.yarn/cache/parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip -------------------------------------------------------------------------------- /.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip -------------------------------------------------------------------------------- /.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip -------------------------------------------------------------------------------- /.yarn/cache/path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip -------------------------------------------------------------------------------- /.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip -------------------------------------------------------------------------------- /.yarn/cache/path-type-npm-4.0.0-10d47fc86a-5b1e2daa24.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/path-type-npm-4.0.0-10d47fc86a-5b1e2daa24.zip -------------------------------------------------------------------------------- /.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip -------------------------------------------------------------------------------- /.yarn/cache/picomatch-npm-2.3.1-c782cfd986-050c865ce8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/picomatch-npm-2.3.1-c782cfd986-050c865ce8.zip -------------------------------------------------------------------------------- /.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip -------------------------------------------------------------------------------- /.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-cd192ec0d0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-cd192ec0d0.zip -------------------------------------------------------------------------------- /.yarn/cache/prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip -------------------------------------------------------------------------------- /.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip -------------------------------------------------------------------------------- /.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip -------------------------------------------------------------------------------- /.yarn/cache/prompts-npm-2.4.2-f5d25d5eea-d8fd1fe638.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/prompts-npm-2.4.2-f5d25d5eea-d8fd1fe638.zip -------------------------------------------------------------------------------- /.yarn/cache/queue-microtask-npm-1.2.3-fcc98e4e2d-b676f8c040.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/queue-microtask-npm-1.2.3-fcc98e4e2d-b676f8c040.zip -------------------------------------------------------------------------------- /.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip -------------------------------------------------------------------------------- /.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip -------------------------------------------------------------------------------- /.yarn/cache/regexpp-npm-3.2.0-2513f32cfc-a78dc5c715.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/regexpp-npm-3.2.0-2513f32cfc-a78dc5c715.zip -------------------------------------------------------------------------------- /.yarn/cache/require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip -------------------------------------------------------------------------------- /.yarn/cache/resolve-cwd-npm-3.0.0-e6f4e296bf-546e081601.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/resolve-cwd-npm-3.0.0-e6f4e296bf-546e081601.zip -------------------------------------------------------------------------------- /.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-f4ba0b8494.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-f4ba0b8494.zip -------------------------------------------------------------------------------- /.yarn/cache/resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip -------------------------------------------------------------------------------- /.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip -------------------------------------------------------------------------------- /.yarn/cache/reusify-npm-1.0.4-95ac4aec11-c3076ebcc2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/reusify-npm-1.0.4-95ac4aec11-c3076ebcc2.zip -------------------------------------------------------------------------------- /.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip -------------------------------------------------------------------------------- /.yarn/cache/run-parallel-npm-1.2.0-3f47ff2034-cb4f97ad25.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/run-parallel-npm-1.2.0-3f47ff2034-cb4f97ad25.zip -------------------------------------------------------------------------------- /.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip -------------------------------------------------------------------------------- /.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip -------------------------------------------------------------------------------- /.yarn/cache/semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip -------------------------------------------------------------------------------- /.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip -------------------------------------------------------------------------------- /.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip -------------------------------------------------------------------------------- /.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip -------------------------------------------------------------------------------- /.yarn/cache/side-channel-npm-1.0.4-e1f38b9e06-351e41b947.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/side-channel-npm-1.0.4-e1f38b9e06-351e41b947.zip -------------------------------------------------------------------------------- /.yarn/cache/sisteransi-npm-1.0.5-af60cc0cfa-aba6438f46.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/sisteransi-npm-1.0.5-af60cc0cfa-aba6438f46.zip -------------------------------------------------------------------------------- /.yarn/cache/slash-npm-3.0.0-b87de2279a-94a93fff61.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/slash-npm-3.0.0-b87de2279a-94a93fff61.zip -------------------------------------------------------------------------------- /.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip -------------------------------------------------------------------------------- /.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip -------------------------------------------------------------------------------- /.yarn/cache/source-map-support-npm-0.5.21-09ca99e250-43e98d700d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/source-map-support-npm-0.5.21-09ca99e250-43e98d700d.zip -------------------------------------------------------------------------------- /.yarn/cache/sprintf-js-npm-1.0.3-73f0a322fa-19d79aec21.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/sprintf-js-npm-1.0.3-73f0a322fa-19d79aec21.zip -------------------------------------------------------------------------------- /.yarn/cache/string-length-npm-4.0.2-675173c7a2-ce85533ef5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/string-length-npm-4.0.2-675173c7a2-ce85533ef5.zip -------------------------------------------------------------------------------- /.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip -------------------------------------------------------------------------------- /.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip -------------------------------------------------------------------------------- /.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip -------------------------------------------------------------------------------- /.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip -------------------------------------------------------------------------------- /.yarn/cache/strip-bom-npm-4.0.0-97d367a64d-9dbcfbaf50.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/strip-bom-npm-4.0.0-97d367a64d-9dbcfbaf50.zip -------------------------------------------------------------------------------- /.yarn/cache/strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip -------------------------------------------------------------------------------- /.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip -------------------------------------------------------------------------------- /.yarn/cache/supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip -------------------------------------------------------------------------------- /.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip -------------------------------------------------------------------------------- /.yarn/cache/supports-color-npm-8.1.1-289e937149-c052193a7e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/supports-color-npm-8.1.1-289e937149-c052193a7e.zip -------------------------------------------------------------------------------- /.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip -------------------------------------------------------------------------------- /.yarn/cache/terminal-link-npm-2.1.1-de80341758-ce3d2cd3a4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/terminal-link-npm-2.1.1-de80341758-ce3d2cd3a4.zip -------------------------------------------------------------------------------- /.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-3b34a3d771.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-3b34a3d771.zip -------------------------------------------------------------------------------- /.yarn/cache/text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip -------------------------------------------------------------------------------- /.yarn/cache/tmpl-npm-1.0.5-d399ba37e2-cd922d9b85.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/tmpl-npm-1.0.5-d399ba37e2-cd922d9b85.zip -------------------------------------------------------------------------------- /.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip -------------------------------------------------------------------------------- /.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip -------------------------------------------------------------------------------- /.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip -------------------------------------------------------------------------------- /.yarn/cache/tslib-npm-1.14.1-102499115e-dbe628ef87.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/tslib-npm-1.14.1-102499115e-dbe628ef87.zip -------------------------------------------------------------------------------- /.yarn/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip -------------------------------------------------------------------------------- /.yarn/cache/type-check-npm-0.4.0-60565800ce-ec688ebfc9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/type-check-npm-0.4.0-60565800ce-ec688ebfc9.zip -------------------------------------------------------------------------------- /.yarn/cache/type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip -------------------------------------------------------------------------------- /.yarn/cache/type-fest-npm-0.20.2-b36432617f-4fb3272df2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/type-fest-npm-0.20.2-b36432617f-4fb3272df2.zip -------------------------------------------------------------------------------- /.yarn/cache/type-fest-npm-0.21.3-5ff2a9c6fd-e6b32a3b38.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/type-fest-npm-0.21.3-5ff2a9c6fd-e6b32a3b38.zip -------------------------------------------------------------------------------- /.yarn/cache/typedarray-to-buffer-npm-3.1.5-aadc11995e-99c11aaa8f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/typedarray-to-buffer-npm-3.1.5-aadc11995e-99c11aaa8f.zip -------------------------------------------------------------------------------- /.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-7167432de6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-7167432de6.zip -------------------------------------------------------------------------------- /.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip -------------------------------------------------------------------------------- /.yarn/cache/walker-npm-1.0.8-b0a05b9478-ad7a257ea1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/walker-npm-1.0.8-b0a05b9478-ad7a257ea1.zip -------------------------------------------------------------------------------- /.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip -------------------------------------------------------------------------------- /.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip -------------------------------------------------------------------------------- /.yarn/cache/which-boxed-primitive-npm-1.0.2-e214f9ae5a-53ce774c73.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/which-boxed-primitive-npm-1.0.2-e214f9ae5a-53ce774c73.zip -------------------------------------------------------------------------------- /.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip -------------------------------------------------------------------------------- /.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip -------------------------------------------------------------------------------- /.yarn/cache/word-wrap-npm-1.2.3-7fb15ab002-30b48f91fc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/word-wrap-npm-1.2.3-7fb15ab002-30b48f91fc.zip -------------------------------------------------------------------------------- /.yarn/cache/wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip -------------------------------------------------------------------------------- /.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip -------------------------------------------------------------------------------- /.yarn/cache/write-file-atomic-npm-3.0.3-d948a237da-c55b24617c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/write-file-atomic-npm-3.0.3-d948a237da-c55b24617c.zip -------------------------------------------------------------------------------- /.yarn/cache/y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip -------------------------------------------------------------------------------- /.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip -------------------------------------------------------------------------------- /.yarn/cache/yn-npm-3.1.1-8ad4259784-2c487b0e14.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/.yarn/cache/yn-npm-3.1.1-8ad4259784-2c487b0e14.zip -------------------------------------------------------------------------------- /.yarn/sdks/eslint/bin/eslint.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require eslint/bin/eslint.js 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real eslint/bin/eslint.js your application uses 20 | module.exports = absRequire(`eslint/bin/eslint.js`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/eslint/lib/api.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require eslint 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real eslint your application uses 20 | module.exports = absRequire(`eslint`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/eslint/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eslint", 3 | "version": "8.21.0-sdk", 4 | "main": "./lib/api.js", 5 | "type": "commonjs" 6 | } 7 | -------------------------------------------------------------------------------- /.yarn/sdks/integrations.yml: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by @yarnpkg/sdks. 2 | # Manual changes might be lost! 3 | 4 | integrations: 5 | - vscode 6 | -------------------------------------------------------------------------------- /.yarn/sdks/prettier/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require prettier/index.js 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real prettier/index.js your application uses 20 | module.exports = absRequire(`prettier/index.js`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/prettier/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "prettier", 3 | "version": "2.7.1-sdk", 4 | "main": "./index.js", 5 | "type": "commonjs" 6 | } 7 | -------------------------------------------------------------------------------- /.yarn/sdks/typescript/bin/tsc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require typescript/bin/tsc 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real typescript/bin/tsc your application uses 20 | module.exports = absRequire(`typescript/bin/tsc`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/typescript/bin/tsserver: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require typescript/bin/tsserver 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real typescript/bin/tsserver your application uses 20 | module.exports = absRequire(`typescript/bin/tsserver`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/typescript/lib/tsc.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require typescript/lib/tsc.js 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real typescript/lib/tsc.js your application uses 20 | module.exports = absRequire(`typescript/lib/tsc.js`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/typescript/lib/typescript.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const {existsSync} = require(`fs`); 4 | const {createRequire} = require(`module`); 5 | const {resolve} = require(`path`); 6 | 7 | const relPnpApiPath = "../../../../.pnp.cjs"; 8 | 9 | const absPnpApiPath = resolve(__dirname, relPnpApiPath); 10 | const absRequire = createRequire(absPnpApiPath); 11 | 12 | if (existsSync(absPnpApiPath)) { 13 | if (!process.versions.pnp) { 14 | // Setup the environment to be able to require typescript/lib/typescript.js 15 | require(absPnpApiPath).setup(); 16 | } 17 | } 18 | 19 | // Defer to the real typescript/lib/typescript.js your application uses 20 | module.exports = absRequire(`typescript/lib/typescript.js`); 21 | -------------------------------------------------------------------------------- /.yarn/sdks/typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typescript", 3 | "version": "4.7.4-sdk", 4 | "main": "./lib/typescript.js", 5 | "type": "commonjs" 6 | } 7 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | - path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs 3 | spec: "@yarnpkg/plugin-typescript" 4 | - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs 5 | spec: "@yarnpkg/plugin-interactive-tools" 6 | 7 | yarnPath: .yarn/releases/yarn-3.4.1.cjs 8 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | The current progress can be tracked [here](https://github.com/dkress59/wordpress-api-client/projects/1) 4 | 5 | - v0.4.9 6 | - dependency upgrade 7 | 8 | - v0.4.8 9 | - fixes typings for `.media.create()`, `.media.update()` and `.media.delete()` 10 | - emits declaration files in order to suppress user-facing errors 11 | 12 | - v0.4.7 13 | - implements the `defaultQuery` argument on the `.{postType}.total()` methods 14 | 15 | - v0.4.6 16 | - new method `.{postType}.total()` 17 | - reverted `.{postType}.find()` in favour of: 18 | - new method `.{postType}.dangerouslyFindAll()` 19 | 20 | - v0.4.5 21 | - typings for Yoast! SEO now included 22 | - internal imports repaired (+ `no-restricted-imports` rule added) 23 | 24 | - v0.4.4 25 | - allows for `options.onError` to be asynchronous 26 | - fixes `delete` query param to be overridden for DELETE requests 27 | 28 | - v0.4.3 29 | - introduction of TRASHABLE constant (appends `&force=true` to the URIs of delete 30 | requests for non-trashable objects) 31 | 32 | - v0.4.2 33 | - `.media.create()` fix 34 | - `.media.create()` improvements 35 | 36 | - v0.4.1 37 | - basic auth improvements 38 | - jwt auth improvements 39 | 40 | - v0.4.0 41 | - conversion to Yarn3 (zero-install) 42 | - **breaking** removal of static collectors 43 | - possible re-introduction in the future 44 | - dependency update 45 | - `POST_STATUS_MAP` moved back to `src/factories.ts` 46 | - `POST_TYPE_MAP` moved back to `src/factories.ts` 47 | 48 | - v0.3.5 49 | - dependency update 50 | - minor fixes 51 | 52 | - v0.3.4 .getAll fix 53 | - fixes the problem that .find() returns results starting on page 2 54 | 55 | - v0.3.3 FetchClient.getAll 56 | - .find() with no arguments will return **all** items instead of the first 100 57 | 58 | - v0.3.2 59 | - full end-to-end test-suite added 60 | - repaired default methods: 61 | - `.blockDirectory` 62 | - `.blockType` 63 | - `.media.delete` 64 | - `.postCategory.delete` 65 | - `.postTag.delete` 66 | - `.reusableBlock` 67 | - `.settings` 68 | - `.taxonomy` 69 | - `.theme` 70 | - `.user.create` 71 | - `.user.delete` 72 | - `.user.deleteMe` 73 | - `.user.update` 74 | 75 | - v0.3.1 "Accept"-default-header 76 | - added default "Accept" and "Content-Type" headers 77 | - repaired .createEndpointCustomPost() 78 | 79 | - v0.3.0 ACF v5.11.1 80 | - adjustment to Advanced Custom Fields v5.11.1 81 | - minor typing issue repaired: FetchClient.fetch 82 | 83 | - v0.2.3 default methods, error handling 84 | - implemented last two missing default methods 85 | - applications passwords 86 | - block revisions 87 | - improved error handling 88 | 89 | - v.0.2.2 minor fixes 90 | 91 | - v.0.2.1 minor fixes 92 | - type casting 93 | - .plugin fix 94 | - minor fixes 95 | 96 | - v.0.2.0 cross-fetch and advanced options 97 | - less overhead by replacing axios with a fetch client 98 | - authorisation is now handled via constructor arguments and a blacklist 99 | - matching input- and output-typings: WPCreate has been replaced by postCreate 100 | - includes minor fixes 101 | 102 | - v.0.1.5 repaired `.revision().find()` and `.plugin().create()` 103 | 104 | - v.0.1.4 implemented extendable query-params and default-query-params 105 | - **Note:** Authentification will confuse eslint/tslint with axios < v0.24.0 106 | 107 | - v0.1.3 added methods for most missing default wp-api routes, such as 108 | - .plugin() for wp/v2/plugins 109 | - .postType() for wp/v2/types 110 | - .taxonomy() for wp/v2/taxonomies 111 | - .theme() for wp/v2/themes 112 | - …and quite some more 113 | 114 | - methods for two default wp-api routes are still missing: 115 |
`wp/v2/users//application-passwords` 116 |
and `wp/v2/blocks//autosaves` 117 | 118 | - v0.1.2 repaired type casting in handleWpApiError() 119 | 120 | - v0.1.1 import path repaired 121 | 122 | - v0.1.0 public beta release 123 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Damian Kress 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /__snapshots__/comment/e2e-create.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .comment .create 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "author": Array [ 7 | Object { 8 | "embeddable": true, 9 | "href": "http://localhost:8080/wp-json/wp/v2/users/1", 10 | }, 11 | ], 12 | "collection": Array [ 13 | Object { 14 | "href": "http://localhost:8080/wp-json/wp/v2/comments", 15 | }, 16 | ], 17 | "self": Array [ 18 | Object { 19 | "href": "http://localhost:8080/wp-json/wp/v2/comments/2", 20 | }, 21 | ], 22 | "up": Array [ 23 | Object { 24 | "embeddable": true, 25 | "href": "http://localhost:8080/wp-json/wp/v2/posts/1", 26 | "post_type": "post", 27 | }, 28 | ], 29 | }, 30 | "author": 1, 31 | "author_avatar_urls": Object { 32 | "24": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=24&d=mm&r=g", 33 | "48": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=48&d=mm&r=g", 34 | "96": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=96&d=mm&r=g", 35 | }, 36 | "author_email": "admin@localhost.net", 37 | "author_name": "admin", 38 | "author_url": "http://localhost:8080", 39 | "author_user_agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)", 40 | "content": Object { 41 | "raw": "

Mock Content

", 42 | "rendered": "

Mock Content

43 | ", 44 | }, 45 | "id": 2, 46 | "link": "http://localhost:8080/hello-world/#comment-2", 47 | "meta": Array [], 48 | "parent": 0, 49 | "post": 1, 50 | "status": "approved", 51 | "type": "comment", 52 | } 53 | `; 54 | -------------------------------------------------------------------------------- /__snapshots__/comment/e2e-delete.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .comment .delete 1`] = ` 4 | Array [ 5 | Object { 6 | "deleted": true, 7 | "previous": Object { 8 | "author": 1, 9 | "author_avatar_urls": Object { 10 | "24": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=24&d=mm&r=g", 11 | "48": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=48&d=mm&r=g", 12 | "96": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=96&d=mm&r=g", 13 | }, 14 | "author_email": "admin@localhost.net", 15 | "author_name": "admin", 16 | "author_url": "http://localhost:8080", 17 | "author_user_agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)", 18 | "content": Object { 19 | "raw": "

Mock Content

", 20 | "rendered": "

Mock Content

21 | ", 22 | }, 23 | "id": 3, 24 | "link": "http://localhost:8080/hello-world/#comment-3", 25 | "meta": Array [], 26 | "parent": 0, 27 | "post": 1, 28 | "status": "approved", 29 | "type": "comment", 30 | }, 31 | }, 32 | ] 33 | `; 34 | -------------------------------------------------------------------------------- /__snapshots__/comment/e2e-update.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .comment .update 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "author": Array [ 7 | Object { 8 | "embeddable": true, 9 | "href": "http://localhost:8080/wp-json/wp/v2/users/1", 10 | }, 11 | ], 12 | "collection": Array [ 13 | Object { 14 | "href": "http://localhost:8080/wp-json/wp/v2/comments", 15 | }, 16 | ], 17 | "self": Array [ 18 | Object { 19 | "href": "http://localhost:8080/wp-json/wp/v2/comments/6", 20 | }, 21 | ], 22 | "up": Array [ 23 | Object { 24 | "embeddable": true, 25 | "href": "http://localhost:8080/wp-json/wp/v2/posts/1", 26 | "post_type": "post", 27 | }, 28 | ], 29 | }, 30 | "author": 1, 31 | "author_avatar_urls": Object { 32 | "24": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=24&d=mm&r=g", 33 | "48": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=48&d=mm&r=g", 34 | "96": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=96&d=mm&r=g", 35 | }, 36 | "author_email": "admin@localhost.net", 37 | "author_name": "admin", 38 | "author_url": "http://localhost:8080", 39 | "author_user_agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)", 40 | "content": Object { 41 | "raw": "

Updated Content

", 42 | "rendered": "

Updated Content

43 | ", 44 | }, 45 | "id": 6, 46 | "link": "http://localhost:8080/hello-world/#comment-6", 47 | "meta": Array [], 48 | "parent": 0, 49 | "post": 1, 50 | "status": "approved", 51 | "type": "comment", 52 | } 53 | `; 54 | -------------------------------------------------------------------------------- /__snapshots__/e2e-search.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .search 1`] = `Array []`; 4 | -------------------------------------------------------------------------------- /__snapshots__/e2e-siteSettings-find.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .siteSettings .find 1`] = ` 4 | Object { 5 | "date_format": "F j, Y", 6 | "default_category": 1, 7 | "default_comment_status": "open", 8 | "default_ping_status": "open", 9 | "default_post_format": "0", 10 | "description": "Just another WordPress site", 11 | "email": "admin@localhost.net", 12 | "language": "en_US", 13 | "page_for_posts": 0, 14 | "page_on_front": 0, 15 | "posts_per_page": 10, 16 | "show_on_front": "posts", 17 | "site_icon": 0, 18 | "site_logo": null, 19 | "start_of_week": 1, 20 | "time_format": "g:i a", 21 | "timezone": "", 22 | "title": "E2E Test - Wordpress API Client", 23 | "url": "http://localhost:8080", 24 | "use_smilies": true, 25 | } 26 | `; 27 | -------------------------------------------------------------------------------- /__snapshots__/e2e-siteSettings-update.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .siteSettings .update 1`] = ` 4 | Object { 5 | "date_format": "F j, Y", 6 | "default_category": 1, 7 | "default_comment_status": "open", 8 | "default_ping_status": "open", 9 | "default_post_format": "0", 10 | "description": "Just another WordPress site", 11 | "email": "admin@localhost.org", 12 | "language": "en_US", 13 | "page_for_posts": 0, 14 | "page_on_front": 0, 15 | "posts_per_page": 10, 16 | "show_on_front": "posts", 17 | "site_icon": 0, 18 | "site_logo": null, 19 | "start_of_week": 1, 20 | "time_format": "g:i a", 21 | "timezone": "", 22 | "title": "E2E Test - Wordpress API Client", 23 | "url": "http://localhost:8080", 24 | "use_smilies": true, 25 | } 26 | `; 27 | -------------------------------------------------------------------------------- /__snapshots__/e2e-status-authenticated.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .status authenticated 1`] = ` 4 | Object { 5 | "draft": Object { 6 | "_links": Object { 7 | "archives": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/posts?status=draft", 10 | }, 11 | ], 12 | }, 13 | "date_floating": true, 14 | "name": "Draft", 15 | "public": false, 16 | "queryable": false, 17 | "slug": "draft", 18 | }, 19 | "future": Object { 20 | "_links": Object { 21 | "archives": Array [ 22 | Object { 23 | "href": "http://localhost:8080/wp-json/wp/v2/posts?status=future", 24 | }, 25 | ], 26 | }, 27 | "date_floating": false, 28 | "name": "Scheduled", 29 | "public": false, 30 | "queryable": false, 31 | "slug": "future", 32 | }, 33 | "pending": Object { 34 | "_links": Object { 35 | "archives": Array [ 36 | Object { 37 | "href": "http://localhost:8080/wp-json/wp/v2/posts?status=pending", 38 | }, 39 | ], 40 | }, 41 | "date_floating": true, 42 | "name": "Pending", 43 | "public": false, 44 | "queryable": false, 45 | "slug": "pending", 46 | }, 47 | "private": Object { 48 | "_links": Object { 49 | "archives": Array [ 50 | Object { 51 | "href": "http://localhost:8080/wp-json/wp/v2/posts?status=private", 52 | }, 53 | ], 54 | }, 55 | "date_floating": false, 56 | "name": "Private", 57 | "public": false, 58 | "queryable": false, 59 | "slug": "private", 60 | }, 61 | "publish": Object { 62 | "_links": Object { 63 | "archives": Array [ 64 | Object { 65 | "href": "http://localhost:8080/wp-json/wp/v2/posts", 66 | }, 67 | ], 68 | }, 69 | "date_floating": false, 70 | "name": "Published", 71 | "public": true, 72 | "queryable": true, 73 | "slug": "publish", 74 | }, 75 | "trash": Object { 76 | "_links": Object { 77 | "archives": Array [ 78 | Object { 79 | "href": "http://localhost:8080/wp-json/wp/v2/posts?status=trash", 80 | }, 81 | ], 82 | }, 83 | "date_floating": false, 84 | "name": "Trash", 85 | "public": false, 86 | "queryable": false, 87 | "slug": "trash", 88 | }, 89 | } 90 | `; 91 | -------------------------------------------------------------------------------- /__snapshots__/e2e-status.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .status unauthenticated 1`] = ` 4 | Object { 5 | "publish": Object { 6 | "_links": Object { 7 | "archives": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/posts", 10 | }, 11 | ], 12 | }, 13 | "date_floating": false, 14 | "name": "Published", 15 | "public": true, 16 | "queryable": true, 17 | "slug": "publish", 18 | }, 19 | } 20 | `; 21 | -------------------------------------------------------------------------------- /__snapshots__/plugin/e2e-create.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .plugin .create 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "self": Array [ 7 | Object { 8 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/advanced-custom-fields/acf", 9 | }, 10 | ], 11 | }, 12 | "author": "WP Engine", 13 | "author_uri": "https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields", 14 | "description": Object { 15 | "raw": "Customize WordPress with powerful, professional and intuitive fields.", 16 | "rendered": "Customize WordPress with powerful, professional and intuitive fields. By WP Engine.", 17 | }, 18 | "name": "Advanced Custom Fields", 19 | "network_only": false, 20 | "plugin": "advanced-custom-fields/acf", 21 | "plugin_uri": "https://www.advancedcustomfields.com", 22 | "requires_php": "", 23 | "requires_wp": "", 24 | "status": "active", 25 | "textdomain": "acf", 26 | "version": "6.0.7", 27 | } 28 | `; 29 | -------------------------------------------------------------------------------- /__snapshots__/plugin/e2e-delete.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .plugin .delete 1`] = ` 4 | Object { 5 | "deleted": true, 6 | "previous": Object { 7 | "author": "Automattic", 8 | "author_uri": "https://automattic.com/wordpress-plugins/", 9 | "description": Object { 10 | "raw": "Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.", 11 | "rendered": "Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. By Automattic.", 12 | }, 13 | "name": "Akismet Anti-Spam", 14 | "network_only": false, 15 | "plugin": "akismet/akismet", 16 | "plugin_uri": "https://akismet.com/", 17 | "requires_php": "5.2", 18 | "requires_wp": "5.0", 19 | "status": "inactive", 20 | "textdomain": "akismet", 21 | "version": "5.0.1", 22 | }, 23 | } 24 | `; 25 | -------------------------------------------------------------------------------- /__snapshots__/plugin/e2e-find_all.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .plugin .find (all) 1`] = ` 4 | Array [ 5 | Object { 6 | "_links": Object { 7 | "self": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/advanced-custom-fields/acf", 10 | }, 11 | ], 12 | }, 13 | "author": "WP Engine", 14 | "author_uri": "https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields", 15 | "description": Object { 16 | "raw": "Customize WordPress with powerful, professional and intuitive fields.", 17 | "rendered": "Customize WordPress with powerful, professional and intuitive fields. By WP Engine.", 18 | }, 19 | "name": "Advanced Custom Fields", 20 | "network_only": false, 21 | "plugin": "advanced-custom-fields/acf", 22 | "plugin_uri": "https://www.advancedcustomfields.com", 23 | "requires_php": "", 24 | "requires_wp": "", 25 | "status": "inactive", 26 | "textdomain": "acf", 27 | "version": "6.0.7", 28 | }, 29 | Object { 30 | "_links": Object { 31 | "self": Array [ 32 | Object { 33 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/hello", 34 | }, 35 | ], 36 | }, 37 | "author": "Matt Mullenweg", 38 | "author_uri": "http://ma.tt/", 39 | "description": Object { 40 | "raw": "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.", 41 | "rendered": "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. By Matt Mullenweg.", 42 | }, 43 | "name": "Hello Dolly", 44 | "network_only": false, 45 | "plugin": "hello", 46 | "plugin_uri": "http://wordpress.org/plugins/hello-dolly/", 47 | "requires_php": "", 48 | "requires_wp": "", 49 | "status": "inactive", 50 | "textdomain": "", 51 | "version": "1.7.2", 52 | }, 53 | Object { 54 | "_links": Object { 55 | "self": Array [ 56 | Object { 57 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/basic-auth/basic-auth", 58 | }, 59 | ], 60 | }, 61 | "author": "WordPress API Team", 62 | "author_uri": "https://github.com/WP-API", 63 | "description": Object { 64 | "raw": "Basic Authentication handler for the JSON API, used for development and debugging purposes", 65 | "rendered": "Basic Authentication handler for the JSON API, used for development and debugging purposes By WordPress API Team.", 66 | }, 67 | "name": "JSON Basic Authentication", 68 | "network_only": false, 69 | "plugin": "basic-auth/basic-auth", 70 | "plugin_uri": "https://github.com/WP-API/Basic-Auth", 71 | "requires_php": "", 72 | "requires_wp": "", 73 | "status": "active", 74 | "textdomain": "basic-auth", 75 | "version": "0.1", 76 | }, 77 | Object { 78 | "_links": Object { 79 | "self": Array [ 80 | Object { 81 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/wp-plugin", 82 | }, 83 | ], 84 | }, 85 | "author": "Damian Kress", 86 | "author_uri": "https://www.damiankress.de/", 87 | "description": Object { 88 | "raw": "Hide date- and network-related fields from the WordPress REST API", 89 | "rendered": "Hide date- and network-related fields from the WordPress REST API By Damian Kress.", 90 | }, 91 | "name": "REST for Jest", 92 | "network_only": false, 93 | "plugin": "wp-plugin", 94 | "plugin_uri": "", 95 | "requires_php": "8.0", 96 | "requires_wp": "5.8.2", 97 | "status": "active", 98 | "textdomain": "", 99 | "version": "0.0.1", 100 | }, 101 | ] 102 | `; 103 | -------------------------------------------------------------------------------- /__snapshots__/plugin/e2e-find_one.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .plugin .find (one) 1`] = ` 4 | Array [ 5 | Object { 6 | "_links": Object { 7 | "self": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/hello", 10 | }, 11 | ], 12 | }, 13 | "author": "Matt Mullenweg", 14 | "author_uri": "http://ma.tt/", 15 | "description": Object { 16 | "raw": "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.", 17 | "rendered": "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. By Matt Mullenweg.", 18 | }, 19 | "name": "Hello Dolly", 20 | "network_only": false, 21 | "plugin": "hello", 22 | "plugin_uri": "http://wordpress.org/plugins/hello-dolly/", 23 | "requires_php": "", 24 | "requires_wp": "", 25 | "status": "inactive", 26 | "textdomain": "", 27 | "version": "1.7.2", 28 | }, 29 | ] 30 | `; 31 | -------------------------------------------------------------------------------- /__snapshots__/plugin/e2e-update.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .plugin .update 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "self": Array [ 7 | Object { 8 | "href": "http://localhost:8080/wp-json/wp/v2/plugins/hello", 9 | }, 10 | ], 11 | }, 12 | "author": "Matt Mullenweg", 13 | "author_uri": "http://ma.tt/", 14 | "description": Object { 15 | "raw": "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.", 16 | "rendered": "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. By Matt Mullenweg.", 17 | }, 18 | "name": "Hello Dolly", 19 | "network_only": false, 20 | "plugin": "hello", 21 | "plugin_uri": "http://wordpress.org/plugins/hello-dolly/", 22 | "requires_php": "", 23 | "requires_wp": "", 24 | "status": "active", 25 | "textdomain": "", 26 | "version": "1.7.2", 27 | } 28 | `; 29 | -------------------------------------------------------------------------------- /__snapshots__/taxonomy/e2e-find_all.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .taxonomy .find (all) 1`] = ` 4 | Object { 5 | "category": Object { 6 | "_links": Object { 7 | "collection": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/taxonomies", 10 | }, 11 | ], 12 | "curies": Array [ 13 | Object { 14 | "href": "https://api.w.org/{rel}", 15 | "name": "wp", 16 | "templated": true, 17 | }, 18 | ], 19 | "wp:items": Array [ 20 | Object { 21 | "href": "http://localhost:8080/wp-json/wp/v2/categories", 22 | }, 23 | ], 24 | }, 25 | "description": "", 26 | "hierarchical": true, 27 | "name": "Categories", 28 | "rest_base": "categories", 29 | "rest_namespace": "wp/v2", 30 | "slug": "category", 31 | "types": Array [ 32 | "post", 33 | ], 34 | }, 35 | "nav_menu": Object { 36 | "_links": Object { 37 | "collection": Array [ 38 | Object { 39 | "href": "http://localhost:8080/wp-json/wp/v2/taxonomies", 40 | }, 41 | ], 42 | "curies": Array [ 43 | Object { 44 | "href": "https://api.w.org/{rel}", 45 | "name": "wp", 46 | "templated": true, 47 | }, 48 | ], 49 | "wp:items": Array [ 50 | Object { 51 | "href": "http://localhost:8080/wp-json/wp/v2/menus", 52 | }, 53 | ], 54 | }, 55 | "description": "", 56 | "hierarchical": false, 57 | "name": "Navigation Menus", 58 | "rest_base": "menus", 59 | "rest_namespace": "wp/v2", 60 | "slug": "nav_menu", 61 | "types": Array [ 62 | "nav_menu_item", 63 | ], 64 | }, 65 | "post_tag": Object { 66 | "_links": Object { 67 | "collection": Array [ 68 | Object { 69 | "href": "http://localhost:8080/wp-json/wp/v2/taxonomies", 70 | }, 71 | ], 72 | "curies": Array [ 73 | Object { 74 | "href": "https://api.w.org/{rel}", 75 | "name": "wp", 76 | "templated": true, 77 | }, 78 | ], 79 | "wp:items": Array [ 80 | Object { 81 | "href": "http://localhost:8080/wp-json/wp/v2/tags", 82 | }, 83 | ], 84 | }, 85 | "description": "", 86 | "hierarchical": false, 87 | "name": "Tags", 88 | "rest_base": "tags", 89 | "rest_namespace": "wp/v2", 90 | "slug": "post_tag", 91 | "types": Array [ 92 | "post", 93 | ], 94 | }, 95 | } 96 | `; 97 | -------------------------------------------------------------------------------- /__snapshots__/taxonomy/e2e-find_one.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .taxonomy .find (one) 1`] = ` 4 | Array [ 5 | Object { 6 | "_links": Object { 7 | "collection": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/taxonomies", 10 | }, 11 | ], 12 | "curies": Array [ 13 | Object { 14 | "href": "https://api.w.org/{rel}", 15 | "name": "wp", 16 | "templated": true, 17 | }, 18 | ], 19 | "wp:items": Array [ 20 | Object { 21 | "href": "http://localhost:8080/wp-json/wp/v2/categories", 22 | }, 23 | ], 24 | }, 25 | "description": "", 26 | "hierarchical": true, 27 | "name": "Categories", 28 | "rest_base": "categories", 29 | "rest_namespace": "wp/v2", 30 | "slug": "category", 31 | "types": Array [ 32 | "post", 33 | ], 34 | }, 35 | ] 36 | `; 37 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-create.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .create 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "collection": Array [ 7 | Object { 8 | "href": "http://localhost:8080/wp-json/wp/v2/users", 9 | }, 10 | ], 11 | "self": Array [ 12 | Object { 13 | "href": "http://localhost:8080/wp-json/wp/v2/users/2", 14 | }, 15 | ], 16 | }, 17 | "avatar_urls": Object { 18 | "24": "http://2.gravatar.com/avatar/5065aac0330a46af9b5308cc9e2a4796?s=24&d=mm&r=g", 19 | "48": "http://2.gravatar.com/avatar/5065aac0330a46af9b5308cc9e2a4796?s=48&d=mm&r=g", 20 | "96": "http://2.gravatar.com/avatar/5065aac0330a46af9b5308cc9e2a4796?s=96&d=mm&r=g", 21 | }, 22 | "capabilities": Object { 23 | "level_0": true, 24 | "read": true, 25 | "subscriber": true, 26 | }, 27 | "description": "", 28 | "email": "0mock@email.com", 29 | "extra_capabilities": Object { 30 | "subscriber": true, 31 | }, 32 | "first_name": "", 33 | "id": 2, 34 | "last_name": "", 35 | "link": "http://localhost:8080/author/mockuser0/", 36 | "locale": "en_US", 37 | "meta": Object { 38 | "persisted_preferences": Array [], 39 | }, 40 | "name": "Mock Title", 41 | "nickname": "mockuser0", 42 | "roles": Array [ 43 | "subscriber", 44 | ], 45 | "slug": "mockuser0", 46 | "url": "", 47 | "username": "mockuser0", 48 | } 49 | `; 50 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-delete.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .delete 1`] = ` 4 | Array [ 5 | Object { 6 | "deleted": true, 7 | "previous": Object { 8 | "avatar_urls": Object { 9 | "24": "http://1.gravatar.com/avatar/7c981bca7cd49f8032cda228c9ec3dcc?s=24&d=mm&r=g", 10 | "48": "http://1.gravatar.com/avatar/7c981bca7cd49f8032cda228c9ec3dcc?s=48&d=mm&r=g", 11 | "96": "http://1.gravatar.com/avatar/7c981bca7cd49f8032cda228c9ec3dcc?s=96&d=mm&r=g", 12 | }, 13 | "capabilities": Object { 14 | "level_0": true, 15 | "read": true, 16 | "subscriber": true, 17 | }, 18 | "description": "", 19 | "email": "1mock@email.com", 20 | "extra_capabilities": Object { 21 | "subscriber": true, 22 | }, 23 | "first_name": "", 24 | "id": 3, 25 | "last_name": "", 26 | "link": "http://localhost:8080/author/mockuser1/", 27 | "locale": "en_US", 28 | "meta": Object { 29 | "persisted_preferences": Array [], 30 | }, 31 | "name": "Mock Title", 32 | "nickname": "mockuser1", 33 | "roles": Array [ 34 | "subscriber", 35 | ], 36 | "slug": "mockuser1", 37 | "url": "", 38 | "username": "mockuser1", 39 | }, 40 | }, 41 | ] 42 | `; 43 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-deleteMe.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .deleteMe 1`] = ` 4 | Object { 5 | "deleted": true, 6 | "previous": Object { 7 | "avatar_urls": Object { 8 | "24": "http://1.gravatar.com/avatar/738c1748074481b9c1a5fcf8de604745?s=24&d=mm&r=g", 9 | "48": "http://1.gravatar.com/avatar/738c1748074481b9c1a5fcf8de604745?s=48&d=mm&r=g", 10 | "96": "http://1.gravatar.com/avatar/738c1748074481b9c1a5fcf8de604745?s=96&d=mm&r=g", 11 | }, 12 | "capabilities": Object { 13 | "activate_plugins": true, 14 | "administrator": true, 15 | "create_users": true, 16 | "delete_others_pages": true, 17 | "delete_others_posts": true, 18 | "delete_pages": true, 19 | "delete_plugins": true, 20 | "delete_posts": true, 21 | "delete_private_pages": true, 22 | "delete_private_posts": true, 23 | "delete_published_pages": true, 24 | "delete_published_posts": true, 25 | "delete_themes": true, 26 | "delete_users": true, 27 | "edit_dashboard": true, 28 | "edit_files": true, 29 | "edit_others_pages": true, 30 | "edit_others_posts": true, 31 | "edit_pages": true, 32 | "edit_plugins": true, 33 | "edit_posts": true, 34 | "edit_private_pages": true, 35 | "edit_private_posts": true, 36 | "edit_published_pages": true, 37 | "edit_published_posts": true, 38 | "edit_theme_options": true, 39 | "edit_themes": true, 40 | "edit_users": true, 41 | "export": true, 42 | "import": true, 43 | "install_plugins": true, 44 | "install_themes": true, 45 | "level_0": true, 46 | "level_1": true, 47 | "level_10": true, 48 | "level_2": true, 49 | "level_3": true, 50 | "level_4": true, 51 | "level_5": true, 52 | "level_6": true, 53 | "level_7": true, 54 | "level_8": true, 55 | "level_9": true, 56 | "list_users": true, 57 | "manage_categories": true, 58 | "manage_links": true, 59 | "manage_options": true, 60 | "moderate_comments": true, 61 | "promote_users": true, 62 | "publish_pages": true, 63 | "publish_posts": true, 64 | "read": true, 65 | "read_private_pages": true, 66 | "read_private_posts": true, 67 | "remove_users": true, 68 | "switch_themes": true, 69 | "unfiltered_html": true, 70 | "unfiltered_upload": true, 71 | "update_core": true, 72 | "update_plugins": true, 73 | "update_themes": true, 74 | "upload_files": true, 75 | }, 76 | "description": "", 77 | "email": "2mock@email.com", 78 | "extra_capabilities": Object { 79 | "administrator": true, 80 | }, 81 | "first_name": "", 82 | "id": 4, 83 | "last_name": "", 84 | "link": "http://localhost:8080/author/mockuser2/", 85 | "locale": "en_US", 86 | "meta": Object { 87 | "persisted_preferences": Array [], 88 | }, 89 | "name": "Mock Title", 90 | "nickname": "mockuser2", 91 | "roles": Array [ 92 | "administrator", 93 | ], 94 | "slug": "mockuser2", 95 | "url": "", 96 | "username": "mockuser2", 97 | }, 98 | } 99 | `; 100 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-find_all.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .find (all) 1`] = ` 4 | Array [ 5 | Object { 6 | "_links": Object { 7 | "collection": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/users", 10 | }, 11 | ], 12 | "self": Array [ 13 | Object { 14 | "href": "http://localhost:8080/wp-json/wp/v2/users/1", 15 | }, 16 | ], 17 | }, 18 | "avatar_urls": Object { 19 | "24": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=24&d=mm&r=g", 20 | "48": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=48&d=mm&r=g", 21 | "96": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=96&d=mm&r=g", 22 | }, 23 | "description": "", 24 | "id": 1, 25 | "link": "http://localhost:8080/author/admin/", 26 | "meta": Array [], 27 | "name": "admin", 28 | "slug": "admin", 29 | "url": "http://localhost:8080", 30 | }, 31 | Object { 32 | "_links": Object { 33 | "collection": Array [ 34 | Object { 35 | "href": "http://localhost:8080/wp-json/wp/v2/users", 36 | }, 37 | ], 38 | "self": Array [ 39 | Object { 40 | "href": "http://localhost:8080/wp-json/wp/v2/users/5", 41 | }, 42 | ], 43 | }, 44 | "avatar_urls": Object { 45 | "24": "http://0.gravatar.com/avatar/9ea74214e4fda24b4e34fd7eb525c455?s=24&d=mm&r=g", 46 | "48": "http://0.gravatar.com/avatar/9ea74214e4fda24b4e34fd7eb525c455?s=48&d=mm&r=g", 47 | "96": "http://0.gravatar.com/avatar/9ea74214e4fda24b4e34fd7eb525c455?s=96&d=mm&r=g", 48 | }, 49 | "description": "", 50 | "id": 5, 51 | "link": "http://localhost:8080/author/mockuser3/", 52 | "meta": Array [], 53 | "name": "Mock Title", 54 | "slug": "mockuser3", 55 | "url": "", 56 | }, 57 | ] 58 | `; 59 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-find_me.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .find (me) 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "collection": Array [ 7 | Object { 8 | "href": "http://localhost:8080/wp-json/wp/v2/users", 9 | }, 10 | ], 11 | "self": Array [ 12 | Object { 13 | "href": "http://localhost:8080/wp-json/wp/v2/users/1", 14 | }, 15 | ], 16 | }, 17 | "avatar_urls": Object { 18 | "24": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=24&d=mm&r=g", 19 | "48": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=48&d=mm&r=g", 20 | "96": "http://2.gravatar.com/avatar/5c0689e79c6f7fc399bb1459c5709046?s=96&d=mm&r=g", 21 | }, 22 | "description": "", 23 | "id": 1, 24 | "link": "http://localhost:8080/author/admin/", 25 | "meta": Array [], 26 | "name": "admin", 27 | "slug": "admin", 28 | "url": "http://localhost:8080", 29 | } 30 | `; 31 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-find_one.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .find (one) 1`] = ` 4 | Array [ 5 | Object { 6 | "_links": Object { 7 | "collection": Array [ 8 | Object { 9 | "href": "http://localhost:8080/wp-json/wp/v2/users", 10 | }, 11 | ], 12 | "self": Array [ 13 | Object { 14 | "href": "http://localhost:8080/wp-json/wp/v2/users/6", 15 | }, 16 | ], 17 | }, 18 | "avatar_urls": Object { 19 | "24": "http://2.gravatar.com/avatar/bcf2cb8656d6aa221cb96ece43a73ccd?s=24&d=mm&r=g", 20 | "48": "http://2.gravatar.com/avatar/bcf2cb8656d6aa221cb96ece43a73ccd?s=48&d=mm&r=g", 21 | "96": "http://2.gravatar.com/avatar/bcf2cb8656d6aa221cb96ece43a73ccd?s=96&d=mm&r=g", 22 | }, 23 | "description": "", 24 | "id": 6, 25 | "link": "http://localhost:8080/author/mockuser4/", 26 | "meta": Array [], 27 | "name": "Mock Title", 28 | "slug": "mockuser4", 29 | "url": "", 30 | }, 31 | ] 32 | `; 33 | -------------------------------------------------------------------------------- /__snapshots__/user/e2e-update.snapshot: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`End-to-end test .user .update 1`] = ` 4 | Object { 5 | "_links": Object { 6 | "collection": Array [ 7 | Object { 8 | "href": "http://localhost:8080/wp-json/wp/v2/users", 9 | }, 10 | ], 11 | "self": Array [ 12 | Object { 13 | "href": "http://localhost:8080/wp-json/wp/v2/users/7", 14 | }, 15 | ], 16 | }, 17 | "avatar_urls": Object { 18 | "24": "http://2.gravatar.com/avatar/bffe87956a454372ee471b87b609a19b?s=24&d=mm&r=g", 19 | "48": "http://2.gravatar.com/avatar/bffe87956a454372ee471b87b609a19b?s=48&d=mm&r=g", 20 | "96": "http://2.gravatar.com/avatar/bffe87956a454372ee471b87b609a19b?s=96&d=mm&r=g", 21 | }, 22 | "capabilities": Object { 23 | "level_0": true, 24 | "read": true, 25 | "subscriber": true, 26 | }, 27 | "description": "", 28 | "email": "6mock@email.com", 29 | "extra_capabilities": Object { 30 | "subscriber": true, 31 | }, 32 | "first_name": "", 33 | "id": 7, 34 | "last_name": "", 35 | "link": "http://localhost:8080/author/mockuser6/", 36 | "locale": "en_US", 37 | "meta": Object { 38 | "persisted_preferences": Array [], 39 | }, 40 | "name": "Updated Title", 41 | "nickname": "mockuser6", 42 | "roles": Array [ 43 | "subscriber", 44 | ], 45 | "slug": "mockuser6", 46 | "url": "", 47 | "username": "mockuser6", 48 | } 49 | `; 50 | -------------------------------------------------------------------------------- /__tests__/e2e/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM wordpress:php8.0 2 | 3 | RUN apt-get -y update \ 4 | && apt-get -y upgrade \ 5 | && apt-get -y install default-mysql-client unzip wget \ 6 | && wget -O composer-setup.php https://getcomposer.org/installer \ 7 | && php composer-setup.php --install-dir=/usr/local/bin --filename=composer 8 | RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ 9 | && chmod +x wp-cli.phar \ 10 | && mv ./wp-cli.phar /usr/local/bin/wp 11 | 12 | WORKDIR /usr/src/wordpress 13 | 14 | RUN composer init \ 15 | --stability 'dev' \ 16 | --name 'wordpress-api-client/e2e-test' 17 | RUN composer require "wp-api/basic-auth" \ 18 | && mv vendor/wp-api/basic-auth wp-content/plugins 19 | COPY wp-plugin.php wp-content/plugins 20 | 21 | WORKDIR /var/www/html -------------------------------------------------------------------------------- /__tests__/e2e/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.9' 2 | 3 | services: 4 | 5 | db: 6 | container_name: e2e-db 7 | image: mysql:8 8 | cap_add: 9 | - SYS_NICE # CAP_SYS_NICE 10 | platform: linux/amd64 # Apple M1 fix 11 | volumes: 12 | - ./db.sql:/docker-entrypoint-initdb.d/db.sql 13 | environment: 14 | MYSQL_DATABASE: wordpress 15 | MYSQL_PASSWORD: wordpress_db_password 16 | MYSQL_ROOT_PASSWORD: password 17 | MYSQL_USER: wordpress_db_user 18 | networks: 19 | - wpsite 20 | 21 | wordpress: 22 | container_name: e2e-wp 23 | depends_on: 24 | - db 25 | build: 26 | context: . 27 | dockerfile: Dockerfile 28 | environment: 29 | WORDPRESS_DB_HOST: db 30 | WORDPRESS_DB_NAME: wordpress 31 | WORDPRESS_DB_PASSWORD: wordpress_db_password 32 | WORDPRESS_DB_USER: wordpress_db_user 33 | WORDPRESS_DEBUG: 1 34 | WORDPRESS_CONFIG_EXTRA: | 35 | define('FORCE_SSL_ADMIN', 0); 36 | define('WP_SITEURL', 'http://localhost:8080'); 37 | ports: 38 | - "8080:80" 39 | networks: 40 | - wpsite 41 | 42 | 43 | networks: 44 | wpsite: -------------------------------------------------------------------------------- /__tests__/e2e/jpg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/__tests__/e2e/jpg.jpg -------------------------------------------------------------------------------- /__tests__/e2e/png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkress59/wordpress-api-client/640f6c73cb5da9490f69813ee010a0c24f74ab09/__tests__/e2e/png.png -------------------------------------------------------------------------------- /__tests__/e2e/spec/application-password.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import { randomUUID } from 'crypto' 4 | import fs from 'fs' 5 | import path from 'path' 6 | 7 | import WpApiClient from '../../../src' 8 | 9 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 10 | 11 | describe('End-to-end test', () => { 12 | const client = new WpApiClient('http://localhost:8080', { 13 | auth: { 14 | type: 'basic', 15 | password: 'password', 16 | username: 'admin', 17 | }, 18 | }) 19 | 20 | beforeAll(() => () => { 21 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 22 | }) 23 | 24 | describe('.applicationPassword', () => { 25 | it('.create', async () => { 26 | const appId = randomUUID() 27 | const mockAppName = 'mock-app-name' 28 | const userId = (await client.user().findMe()).id 29 | const response = await client 30 | .applicationPassword() 31 | .create(userId, appId, mockAppName) 32 | expect(response._links.self).toHaveLength(1) 33 | expect(response.name).toEqual(mockAppName) 34 | expect(response.last_used).toBeNull() 35 | }) 36 | }) 37 | }) 38 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/block-directory.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | 10 | describe('End-to-end test', () => { 11 | const client = new WpApiClient('http://localhost:8080', { 12 | auth: { 13 | type: 'basic', 14 | password: 'password', 15 | username: 'admin', 16 | }, 17 | }) 18 | 19 | beforeAll(() => () => { 20 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 21 | }) 22 | 23 | it('.blockDirectory', async () => { 24 | const response = await client.blockDirectory(' ') 25 | expect(response.some(Boolean)).toBe(true) 26 | }) 27 | }) 28 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/block-type.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | it('.blockType', async () => { 29 | expect(await client.blockType()).toMatchSpecificSnapshot( 30 | fileName('blockType'), 31 | ) 32 | }) 33 | }) 34 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/comment.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const mockContent = { 9 | rendered: '

Mock Content

', 10 | protected: false, 11 | } 12 | const mockUpdatedContent = { 13 | rendered: '

Updated Content

', 14 | } 15 | 16 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 17 | function fileName(name: string, dir?: string) { 18 | const pathName = path.join(snapshotPath, dir ?? '') 19 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 20 | return path.join(pathName, `e2e-${name}.snapshot`) 21 | } 22 | 23 | describe('End-to-end test', () => { 24 | const client = new WpApiClient('http://localhost:8080', { 25 | auth: { 26 | type: 'basic', 27 | password: 'password', 28 | username: 'admin', 29 | }, 30 | }) 31 | 32 | beforeAll(() => () => { 33 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 34 | }) 35 | 36 | describe('.comment', () => { 37 | let newCommentId: number | undefined 38 | 39 | afterEach(async () => { 40 | if (newCommentId) await client.comment().delete(newCommentId) 41 | newCommentId = 0 42 | }) 43 | 44 | it('.create', async () => { 45 | const response = await client.comment().create({ 46 | content: mockContent, 47 | post: 1, 48 | }) 49 | newCommentId = response?.id 50 | expect(response).toMatchSpecificSnapshot( 51 | fileName('create', 'comment'), 52 | ) 53 | }) 54 | it('.delete', async () => { 55 | const response = await client.comment().create({ 56 | content: mockContent, 57 | post: 1, 58 | }) 59 | expect( 60 | await client.comment().delete(response!.id), 61 | ).toMatchSpecificSnapshot(fileName('delete', 'comment')) 62 | }) 63 | it('.find (all)', async () => { 64 | const response = await client.comment().create({ 65 | content: mockContent, 66 | post: 1, 67 | }) 68 | newCommentId = response?.id 69 | expect(await client.comment().find()).toMatchSpecificSnapshot( 70 | fileName('find_all', 'comment'), 71 | ) 72 | }) 73 | it('.find (one)', async () => { 74 | const response = await client.comment().create({ 75 | content: mockContent, 76 | post: 1, 77 | }) 78 | newCommentId = response?.id 79 | expect( 80 | await client.comment().find(response!.id), 81 | ).toMatchSpecificSnapshot(fileName('find_one', 'comment')) 82 | }) 83 | it('.update', async () => { 84 | const response = await client.comment().create({ 85 | content: mockContent, 86 | post: 1, 87 | }) 88 | newCommentId = response?.id 89 | expect( 90 | await client.comment().update( 91 | { 92 | content: mockUpdatedContent, 93 | }, 94 | response!.id, 95 | ), 96 | ).toMatchSpecificSnapshot(fileName('update', 'comment')) 97 | }) 98 | }) 99 | }) 100 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/media.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const mockTitle = { 9 | rendered: 'Mock Title', 10 | } 11 | const mockPng = fs.readFileSync(path.resolve(__dirname, '../png.png')) 12 | const mockJpg = fs.readFileSync(path.resolve(__dirname, '../jpg.jpg')) 13 | 14 | describe('End-to-end test', () => { 15 | const client = new WpApiClient('http://localhost:8080', { 16 | auth: { 17 | type: 'basic', 18 | password: 'password', 19 | username: 'admin', 20 | }, 21 | }) 22 | 23 | describe('.media', () => { 24 | let newMediaId: number | undefined 25 | const mockFilename = 'filename.png' 26 | const mockMimeType = 'image/png' 27 | 28 | afterEach(async () => { 29 | if (newMediaId) await client.media().delete(newMediaId) 30 | newMediaId = 0 31 | }) 32 | 33 | describe('.create', () => { 34 | it('default', async () => { 35 | const response = await client 36 | .media() 37 | .create(mockFilename, mockJpg) 38 | newMediaId = response.id 39 | expect(response.title.rendered).toEqual( 40 | mockFilename.split('.')[0], 41 | ) 42 | }) 43 | it('custom mime-type', async () => { 44 | const response = await client 45 | .media() 46 | .create(mockFilename, mockPng, mockMimeType) 47 | newMediaId = response.id 48 | expect(response.media_type).toEqual(mockMimeType.split('/')[0]) 49 | }) 50 | it('with update', async () => { 51 | const mockAlText = 'mock alt-text' 52 | const response = await client 53 | .media() 54 | .create(mockFilename, mockJpg, undefined, { 55 | alt_text: mockAlText, 56 | title: mockTitle, 57 | slug: 'mock_slug', 58 | }) 59 | newMediaId = response.id 60 | expect(response.alt_text).toEqual(mockAlText) 61 | }) 62 | }) 63 | it('.delete', async () => { 64 | const response = await client.media().create(mockFilename, mockJpg) 65 | const deleted = await client.media().delete(response.id) 66 | expect(deleted[0]!.deleted).toBe(true) 67 | }) 68 | it('.find (all)', async () => { 69 | const response = await client.media().create(mockFilename, mockJpg) 70 | const response2 = await client 71 | .media() 72 | .create('2' + mockFilename, mockJpg) 73 | newMediaId = response.id 74 | expect((await client.media().find()).length > 1).toBe(true) 75 | 76 | await client.media().delete(response2.id) 77 | }) 78 | it('.find (one)', async () => { 79 | const response = await client.media().create(mockFilename, mockJpg) 80 | newMediaId = response.id 81 | expect((await client.media().find(response.id))[0]!.id).toEqual( 82 | response.id, 83 | ) 84 | }) 85 | it('.update', async () => { 86 | const created = await client.media().create(mockFilename, mockJpg) 87 | newMediaId = created.id 88 | const mockCaption = 'Mock Caption' 89 | const updated = await client 90 | .media() 91 | .update({ caption: mockCaption }, created.id) 92 | expect(updated!.caption.raw).toEqual(mockCaption) 93 | }) 94 | }) 95 | }) 96 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/page.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import WpApiClient from '../../../src' 4 | 5 | const mockTitle = { 6 | rendered: 'Mock Title', 7 | } 8 | const mockContent = { 9 | rendered: '

Mock Content

', 10 | protected: false, 11 | } 12 | const mockUpdatedTitle = { rendered: 'Updated Title' } 13 | 14 | describe('End-to-end test', () => { 15 | const client = new WpApiClient('http://localhost:8080', { 16 | auth: { 17 | type: 'basic', 18 | password: 'password', 19 | username: 'admin', 20 | }, 21 | }) 22 | 23 | describe('.page', () => { 24 | let newPostId: number | undefined 25 | 26 | beforeEach(async () => { 27 | if (newPostId) await client.page().delete(newPostId) 28 | newPostId = 0 29 | }) 30 | 31 | it('.find (all)', async () => { 32 | const response = await client.page().create({ 33 | content: mockContent, 34 | title: mockTitle, 35 | status: 'publish', 36 | }) 37 | newPostId = response!.id 38 | const currentLength = (await client.page().find()).length 39 | expect(currentLength > 1).toBe(true) 40 | }) 41 | it('.find (one)', async () => { 42 | const allPages = await client.page().find() 43 | expect(await client.page().find(allPages[0]!.id)).toEqual([ 44 | allPages[0], 45 | ]) 46 | }) 47 | it('.create', async () => { 48 | const response = await client.page().create({ 49 | content: mockContent, 50 | title: mockTitle, 51 | }) 52 | newPostId = response?.id 53 | expect(response!.title).toEqual({ 54 | ...mockTitle, 55 | raw: mockTitle.rendered, 56 | }) 57 | }) 58 | it('.update', async () => { 59 | const response = await client.page().create({ 60 | content: mockContent, 61 | title: mockTitle, 62 | }) 63 | newPostId = response?.id 64 | expect( 65 | ( 66 | await client 67 | .page() 68 | .update({ title: mockUpdatedTitle }, response!.id) 69 | )?.title.raw, 70 | ).toEqual(mockUpdatedTitle.rendered) 71 | }) 72 | it('.delete', async () => { 73 | const response = await client.page().create({ 74 | content: mockContent, 75 | title: mockTitle, 76 | }) 77 | await client.page().delete(response!.id) 78 | expect(response?.title).toEqual({ 79 | ...mockTitle, 80 | raw: mockTitle.rendered, 81 | }) 82 | }) 83 | }) 84 | }) 85 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/plugin.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | describe('.plugin', () => { 29 | jest.setTimeout(30 * 1000) 30 | it('.create', async () => { 31 | const response = await client 32 | .plugin() 33 | .create('advanced-custom-fields', 'active') 34 | expect(response).toMatchSpecificSnapshot( 35 | fileName('create', 'plugin'), 36 | ) 37 | 38 | await client 39 | .plugin() 40 | .update('advanced-custom-fields/acf', 'inactive') 41 | }) 42 | it('.delete', async () => { 43 | expect( 44 | await client.plugin().delete('akismet/akismet'), 45 | ).toMatchSpecificSnapshot(fileName('delete', 'plugin')) 46 | }) 47 | it('.find (all)', async () => { 48 | expect(await client.plugin().find()).toMatchSpecificSnapshot( 49 | fileName('find_all', 'plugin'), 50 | ) 51 | }) 52 | it('.find (one)', async () => { 53 | expect(await client.plugin().find('hello')).toMatchSpecificSnapshot( 54 | fileName('find_one', 'plugin'), 55 | ) 56 | }) 57 | it('.update', async () => { 58 | expect( 59 | await client.plugin().update('hello', 'active'), 60 | ).toMatchSpecificSnapshot(fileName('update', 'plugin')) 61 | }) 62 | }) 63 | }) 64 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/post-category.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import WpApiClient from '../../../src' 4 | 5 | const mockTitle = { 6 | rendered: 'Mock Title', 7 | } 8 | 9 | describe('End-to-end test', () => { 10 | const client = new WpApiClient('http://localhost:8080', { 11 | auth: { 12 | type: 'basic', 13 | password: 'password', 14 | username: 'admin', 15 | }, 16 | }) 17 | 18 | describe('.postCategory', () => { 19 | let newCategoryId: number | undefined 20 | 21 | afterEach(async () => { 22 | if (newCategoryId) await client.postCategory().delete(newCategoryId) 23 | newCategoryId = 0 24 | }) 25 | 26 | it('.create', async () => { 27 | const currentLength = (await client.postCategory().find()).length 28 | const response = await client 29 | .postCategory() 30 | .create({ name: mockTitle.rendered }) 31 | newCategoryId = response?.id 32 | expect((await client.postCategory().find()).length).toBe( 33 | currentLength + 1, 34 | ) 35 | }) 36 | it('.delete', async () => { 37 | const response = await client 38 | .postCategory() 39 | .create({ name: mockTitle.rendered }) 40 | const currentLength = (await client.postCategory().find()).length 41 | await client.postCategory().delete(response!.id) 42 | expect((await client.postCategory().find()).length).toBe( 43 | currentLength - 1, 44 | ) 45 | }) 46 | it('.find (all)', async () => { 47 | await client.postCategory().create({ name: mockTitle.rendered }) 48 | expect((await client.postCategory().find()).length > 1).toBe(true) 49 | }) 50 | it('.find (one)', async () => { 51 | const allCategories = await client.postCategory().find() 52 | expect( 53 | await client.postCategory().find(allCategories[0]!.id), 54 | ).toEqual([allCategories[0]]) 55 | }) 56 | it('.update', async () => { 57 | const mockTitle2 = 'mock-title' 58 | const mockUpdatedTitle2 = 'mock-title-2' 59 | const response = await client.postCategory().create({ 60 | name: mockTitle2, 61 | }) 62 | newCategoryId = response?.id 63 | expect( 64 | (await client.postCategory().update( 65 | { 66 | name: mockUpdatedTitle2, 67 | }, 68 | response!.id, 69 | ))!.name, 70 | ).toEqual(mockUpdatedTitle2) 71 | }) 72 | }) 73 | }) 74 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/post-tag.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import WpApiClient from '../../../src' 4 | 5 | const mockTitle = { 6 | rendered: 'Mock Title', 7 | } 8 | const mockUpdatedTitle = { rendered: 'Updated Title' } 9 | 10 | describe('End-to-end test', () => { 11 | const client = new WpApiClient('http://localhost:8080', { 12 | auth: { 13 | type: 'basic', 14 | password: 'password', 15 | username: 'admin', 16 | }, 17 | }) 18 | 19 | describe('.postTag', () => { 20 | let newTagId: number | undefined 21 | 22 | beforeAll(async () => { 23 | await client.postTag().create({ 24 | name: 'Initial Tag', 25 | }) 26 | }) 27 | 28 | afterEach(async () => { 29 | if (newTagId) await client.postTag().delete(newTagId) 30 | newTagId = 0 31 | }) 32 | 33 | it('.create', async () => { 34 | const currentLength = (await client.postTag().find()).length 35 | const response = await client.postTag().create({ 36 | name: mockTitle.rendered, 37 | }) 38 | newTagId = response!.id 39 | expect((await client.postTag().find()).length).toBe( 40 | currentLength + 1, 41 | ) 42 | }) 43 | it('.delete', async () => { 44 | const response = await client.postTag().create({ 45 | name: mockTitle.rendered, 46 | }) 47 | const currentLength = (await client.postTag().find()).length 48 | await client.postTag().delete(response!.id) 49 | expect((await client.postTag().find()).length).toBe( 50 | currentLength - 1, 51 | ) 52 | }) 53 | it('.find (all)', async () => { 54 | //await client.postTag().create({ name: mockTitle.rendered }) 55 | await client.postTag().create({ name: mockTitle.rendered }) 56 | expect((await client.postTag().find()).length > 1).toBe(true) 57 | }) 58 | it('.find (one)', async () => { 59 | const allTags = await client.postTag().find() 60 | expect(await client.postTag().find(allTags[0]!.id)).toEqual([ 61 | allTags[0], 62 | ]) 63 | }) 64 | it('.update', async () => { 65 | const mockName = 'mock-name-new' 66 | const mockUpdatedName = 'mock-updated-name-new' 67 | const response = await client.postTag().create({ 68 | name: mockName, 69 | }) 70 | newTagId = response?.id 71 | expect( 72 | (await client.postTag().update( 73 | { 74 | name: mockUpdatedName, 75 | }, 76 | response!.id, 77 | ))!.name, 78 | ).toEqual(mockUpdatedName) 79 | }) 80 | }) 81 | }) 82 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/post-type.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | it('.postType', async () => { 29 | expect(await client.postType()).toMatchSpecificSnapshot( 30 | fileName('postType'), 31 | ) 32 | }) 33 | }) 34 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/post.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import WpApiClient from '../../../src' 4 | 5 | const mockTitle = { 6 | rendered: 'Mock Title', 7 | } 8 | const mockContent = { 9 | rendered: '

Mock Content

', 10 | protected: false, 11 | } 12 | const mockUpdatedTitle = { rendered: 'Updated Title' } 13 | 14 | describe('End-to-end test', () => { 15 | const client = new WpApiClient('http://localhost:8080', { 16 | auth: { 17 | type: 'basic', 18 | password: 'password', 19 | username: 'admin', 20 | }, 21 | }) 22 | 23 | describe('.post', () => { 24 | let newPostId: number | undefined 25 | 26 | beforeEach(async () => { 27 | if (newPostId) await client.post().delete(newPostId) 28 | newPostId = 0 29 | }) 30 | 31 | it('.find (all)', async () => { 32 | const response = await client.post().create({ 33 | content: mockContent, 34 | title: mockTitle, 35 | status: 'publish', 36 | }) 37 | newPostId = response!.id 38 | const currentLength = (await client.post().find()).length 39 | expect(currentLength > 1).toBe(true) 40 | }) 41 | it('.find (one)', async () => { 42 | const allPosts = await client.post().find() 43 | expect(await client.post().find(allPosts[0]!.id)).toEqual([ 44 | allPosts[0], 45 | ]) 46 | }) 47 | it('.create', async () => { 48 | const response = await client.post().create({ 49 | content: mockContent, 50 | title: mockTitle, 51 | }) 52 | newPostId = response!.id 53 | expect(response?.title).toEqual({ 54 | ...mockTitle, 55 | raw: mockTitle.rendered, 56 | }) 57 | }) 58 | it('.update', async () => { 59 | const response = await client.post().create({ 60 | content: mockContent, 61 | title: mockTitle, 62 | }) 63 | newPostId = response?.id 64 | expect( 65 | ( 66 | await client 67 | .post() 68 | .update({ title: mockUpdatedTitle }, response!.id) 69 | )?.title.raw, 70 | ).toEqual(mockUpdatedTitle.rendered) 71 | }) 72 | it('.delete', async () => { 73 | const response = await client.post().create({ 74 | content: mockContent, 75 | title: mockTitle, 76 | }) 77 | await client.post().delete(response!.id) 78 | expect(response?.title).toEqual({ 79 | ...mockTitle, 80 | raw: mockTitle.rendered, 81 | }) 82 | }) 83 | }) 84 | }) 85 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/rendered-block.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | // eslint-disable-next-line jest/no-disabled-tests 29 | it.skip('.renderedBlock', async () => { 30 | // ToDo: Find out what .renderedBlock actually is supposed to do 31 | expect( 32 | await client.renderedBlock({ 33 | name: 'mock-rendered-block', 34 | postId: 1, 35 | }), 36 | ).toMatchSpecificSnapshot(fileName('renderedBlock')) 37 | }) 38 | }) 39 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/reusable-block.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import WpApiClient from '../../../src' 4 | 5 | const mockTitle = { 6 | rendered: 'Mock Title', 7 | } 8 | const mockContent = { 9 | rendered: '

Mock Content

', 10 | protected: false, 11 | } 12 | const mockUpdatedTitle = { rendered: 'Updated Title' } 13 | const mockRawContent = { raw: mockContent.rendered, protected: false } 14 | const mockRawTitle = { raw: mockTitle.rendered, protected: false } 15 | 16 | describe('End-to-end test', () => { 17 | const client = new WpApiClient('http://localhost:8080', { 18 | auth: { 19 | type: 'basic', 20 | password: 'password', 21 | username: 'admin', 22 | }, 23 | }) 24 | 25 | describe('.reusableBlock', () => { 26 | let newBlockId = 0 27 | 28 | beforeEach(async () => { 29 | const response = await client.reusableBlock().create({ 30 | content: mockRawContent, 31 | title: mockRawTitle, 32 | status: 'publish', 33 | }) 34 | newBlockId = response!.id 35 | }) 36 | 37 | afterEach(async () => { 38 | if (newBlockId) await client.reusableBlock().delete(newBlockId) 39 | newBlockId = 0 40 | }) 41 | 42 | it('.find (all)', async () => { 43 | const response = await client.reusableBlock().create({ 44 | content: mockRawContent, 45 | title: mockRawTitle, 46 | status: 'publish', 47 | }) 48 | const response2 = await client.reusableBlock().create({ 49 | content: mockRawContent, 50 | title: mockRawTitle, 51 | status: 'publish', 52 | }) 53 | expect((await client.reusableBlock().find()).length > 1).toBe(true) 54 | 55 | await client.reusableBlock().delete(response!.id) 56 | await client.reusableBlock().delete(response2!.id) 57 | }) 58 | it('.find (one)', async () => { 59 | const response = await client.reusableBlock().create({ 60 | content: mockRawContent, 61 | title: mockRawTitle, 62 | status: 'publish', 63 | }) 64 | newBlockId = response!.id 65 | expect( 66 | (await client.reusableBlock().find(newBlockId))[0]!.slug, 67 | ).toEqual(response!.slug) 68 | }) 69 | it('.create', async () => { 70 | const response = await client.reusableBlock().create({ 71 | content: mockRawContent, 72 | title: mockRawTitle, 73 | status: 'publish', 74 | }) 75 | newBlockId = response!.id 76 | expect(response?.title.raw).toEqual(mockRawTitle.raw) 77 | }) 78 | it('.update', async () => { 79 | const response = await client.reusableBlock().create({ 80 | content: mockRawContent, 81 | title: mockRawTitle, 82 | status: 'publish', 83 | }) 84 | newBlockId = response!.id 85 | expect( 86 | (await client 87 | .reusableBlock() 88 | .update( 89 | { title: { raw: mockUpdatedTitle.rendered } }, 90 | newBlockId, 91 | ))!.title, 92 | ).toEqual({ 93 | raw: mockUpdatedTitle.rendered, 94 | }) 95 | }) 96 | it('.delete', async () => { 97 | const response = await client.reusableBlock().create({ 98 | content: mockRawContent, 99 | title: mockRawTitle, 100 | status: 'publish', 101 | }) 102 | expect( 103 | (await client.reusableBlock().delete(response!.id))[0]!.id, 104 | ).toEqual(response!.id) 105 | }) 106 | }) 107 | }) 108 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/search.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | it('.search', async () => { 29 | expect( 30 | await client.search('mock', { per_page: '2' }), 31 | ).toMatchSpecificSnapshot(fileName('search')) 32 | }) 33 | }) 34 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/site-settings.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | describe('.siteSettings', () => { 29 | it('.find', async () => { 30 | expect(await client.siteSettings().find()).toMatchSpecificSnapshot( 31 | fileName('siteSettings-find'), 32 | ) 33 | }) 34 | it('.update', async () => { 35 | expect( 36 | await client 37 | .siteSettings() 38 | .update({ email: 'admin@localhost.org' }), 39 | ).toMatchSpecificSnapshot(fileName('siteSettings-update')) 40 | }) 41 | }) 42 | }) 43 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/status.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | const noAuthClient = new WpApiClient('http://localhost:8080') 24 | 25 | beforeAll(() => () => { 26 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 27 | }) 28 | 29 | describe('.status', () => { 30 | it('unauthenticated', async () => { 31 | expect(await noAuthClient.status()).toMatchSpecificSnapshot( 32 | fileName('status'), 33 | ) 34 | }) 35 | it('authenticated', async () => { 36 | expect(await client.status()).toMatchSpecificSnapshot( 37 | fileName('status-authenticated'), 38 | ) 39 | }) 40 | }) 41 | }) 42 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/taxonomy.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 9 | function fileName(name: string, dir?: string) { 10 | const pathName = path.join(snapshotPath, dir ?? '') 11 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 12 | return path.join(pathName, `e2e-${name}.snapshot`) 13 | } 14 | 15 | describe('End-to-end test', () => { 16 | const client = new WpApiClient('http://localhost:8080', { 17 | auth: { 18 | type: 'basic', 19 | password: 'password', 20 | username: 'admin', 21 | }, 22 | }) 23 | 24 | beforeAll(() => () => { 25 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 26 | }) 27 | 28 | describe('.taxonomy', () => { 29 | it('.find (all)', async () => { 30 | expect(await client.taxonomy()).toMatchSpecificSnapshot( 31 | fileName('find_all', 'taxonomy'), 32 | ) 33 | }) 34 | it('.find (one)', async () => { 35 | expect(await client.taxonomy('category')).toMatchSpecificSnapshot( 36 | fileName('find_one', 'taxonomy'), 37 | ) 38 | }) 39 | }) 40 | }) 41 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/theme.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import WpApiClient from '../../../src' 4 | 5 | describe('End-to-end test', () => { 6 | const client = new WpApiClient('http://localhost:8080', { 7 | auth: { 8 | type: 'basic', 9 | password: 'password', 10 | username: 'admin', 11 | }, 12 | }) 13 | 14 | it('.theme', async () => { 15 | expect( 16 | (await client.theme()).filter( 17 | theme => theme.textdomain === 'twentytwentyone', 18 | ), 19 | ).toHaveLength(1) 20 | }) 21 | }) 22 | -------------------------------------------------------------------------------- /__tests__/e2e/spec/user.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import 'jest-specific-snapshot' 2 | 3 | import fs from 'fs' 4 | import path from 'path' 5 | 6 | import WpApiClient from '../../../src' 7 | 8 | const mockTitle = { 9 | rendered: 'Mock Title', 10 | } 11 | const mockUpdatedTitle = { rendered: 'Updated Title' } 12 | 13 | const snapshotPath = path.resolve(process.cwd(), './__snapshots__') 14 | function fileName(name: string, dir?: string) { 15 | const pathName = path.join(snapshotPath, dir ?? '') 16 | if (dir && !fs.existsSync(pathName)) fs.mkdirSync(pathName) 17 | return path.join(pathName, `e2e-${name}.snapshot`) 18 | } 19 | 20 | describe('End-to-end test', () => { 21 | const client = new WpApiClient('http://localhost:8080', { 22 | auth: { 23 | type: 'basic', 24 | password: 'password', 25 | username: 'admin', 26 | }, 27 | }) 28 | 29 | beforeAll(() => () => { 30 | if (!fs.existsSync(snapshotPath)) fs.mkdirSync(snapshotPath) 31 | }) 32 | 33 | describe('.user', () => { 34 | let i = 0 35 | let newUserId = 0 36 | const mockUsername = 'mockuser' 37 | const mockEmail = 'mock@email.com' 38 | const mockPassword = 'Mock_Password1' 39 | 40 | afterEach(async () => { 41 | i++ 42 | if (newUserId) await client.user().delete(1, newUserId) 43 | newUserId = 0 44 | }) 45 | 46 | it('.create', async () => { 47 | const response = await client.user().create({ 48 | email: String(i) + mockEmail, 49 | name: mockTitle.rendered, 50 | password: mockPassword, 51 | username: mockUsername + String(i), 52 | }) 53 | newUserId = response!.id 54 | expect(response).toMatchSpecificSnapshot(fileName('create', 'user')) 55 | }) 56 | it('.delete', async () => { 57 | const response = await client.user().create({ 58 | email: String(i) + mockEmail, 59 | name: mockTitle.rendered, 60 | password: mockPassword, 61 | username: mockUsername + String(i), 62 | }) 63 | expect( 64 | await client.user().delete(1, response!.id), 65 | ).toMatchSpecificSnapshot(fileName('delete', 'user')) 66 | }) 67 | it('.deleteMe', async () => { 68 | const password = mockPassword 69 | const username = mockUsername + String(i) 70 | await client.user().create({ 71 | name: mockTitle.rendered, 72 | email: String(i) + mockEmail, 73 | password, 74 | username, 75 | roles: ['administrator'], 76 | }) 77 | const newClient = new WpApiClient('http://localhost:8080', { 78 | auth: { type: 'basic', username, password }, 79 | }) 80 | expect(await newClient.user().deleteMe(1)).toMatchSpecificSnapshot( 81 | fileName('deleteMe', 'user'), 82 | ) 83 | }) 84 | it('.find (all)', async () => { 85 | const response = await client.user().create({ 86 | email: String(i) + mockEmail, 87 | name: mockTitle.rendered, 88 | password: mockPassword, 89 | username: mockUsername + String(i), 90 | }) 91 | newUserId = response!.id 92 | expect(await client.user().find()).toMatchSpecificSnapshot( 93 | fileName('find_all', 'user'), 94 | ) 95 | }) 96 | it('.find (one)', async () => { 97 | const response = await client.user().create({ 98 | email: String(i) + mockEmail, 99 | name: mockTitle.rendered, 100 | password: mockPassword, 101 | username: mockUsername + String(i), 102 | }) 103 | newUserId = response!.id 104 | expect(await client.user().find(newUserId)).toMatchSpecificSnapshot( 105 | fileName('find_one', 'user'), 106 | ) 107 | }) 108 | it('.find (me)', async () => { 109 | expect(await client.user().findMe()).toMatchSpecificSnapshot( 110 | fileName('find_me', 'user'), 111 | ) 112 | }) 113 | it('.update', async () => { 114 | const response = await client.user().create({ 115 | name: mockTitle.rendered, 116 | email: String(i) + mockEmail, 117 | password: mockPassword, 118 | username: mockUsername + String(i), 119 | }) 120 | newUserId = response!.id 121 | expect( 122 | await client.user().update( 123 | { 124 | name: mockUpdatedTitle.rendered, 125 | password: mockPassword, 126 | }, 127 | newUserId, 128 | ), 129 | ).toMatchSpecificSnapshot(fileName('update', 'user')) 130 | }) 131 | }) 132 | }) 133 | -------------------------------------------------------------------------------- /__tests__/e2e/wait-for-db-import.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | CONTAINER="e2e-db" 4 | DB="wordpress" 5 | 6 | sleep 3 7 | while ! docker exec $CONTAINER /bin/sh -c "mysqladmin --protocol=tcp ping -ppassword >/dev/null 2>&1"; do 8 | echo "testing connection..." 9 | sleep 1 10 | done 11 | 12 | #docker cp __tests__/e2e/db.sql $CONTAINER:/ 13 | #docker exec $CONTAINER /bin/sh -c "mysql --protocol=tcp -uroot -ppassword $DB < /db.sql" -------------------------------------------------------------------------------- /__tests__/e2e/wp-plugin.php: -------------------------------------------------------------------------------- 1 | data; 31 | 32 | if (isset($_data['author_ip'])) { 33 | unset($_data['author_ip']); 34 | } 35 | if (isset($_data['date'])) { 36 | unset($_data['date']); 37 | unset($_data['date_gmt']); 38 | unset($_data['modified']); 39 | unset($_data['modified_gmt']); 40 | } 41 | if (isset($_data['registered_date'])) { 42 | unset($_data['registered_date']); 43 | } 44 | $data->data = $_data; 45 | 46 | return $data; 47 | } -------------------------------------------------------------------------------- /__tests__/factories/category.factory.ts: -------------------------------------------------------------------------------- 1 | import { FixtureFactory } from 'interface-forge' 2 | import path from 'path' 3 | import { WP_Taxonomy_Name } from 'wp-types' 4 | 5 | import { WPCategory } from '../../src/types' 6 | import { fakeNumber, fakeTaxonomy } from '../util' 7 | 8 | const fixtureDir = path.resolve(__dirname, '..', '..') 9 | 10 | export const WPCategoryFactory = new FixtureFactory( 11 | () => ({ 12 | ...fakeTaxonomy(), 13 | taxonomy: WP_Taxonomy_Name.category, 14 | parent: FixtureFactory.sample([0, 0, fakeNumber()]), 15 | }), 16 | undefined, 17 | fixtureDir, 18 | ) 19 | -------------------------------------------------------------------------------- /__tests__/factories/object-links.factory.ts: -------------------------------------------------------------------------------- 1 | import { FixtureFactory } from 'interface-forge' 2 | import path from 'path' 3 | import { WP_REST_API_Object_Links } from 'wp-types' 4 | 5 | import { fakeObjectLink } from '../util' 6 | 7 | const fixtureDir = path.resolve(__dirname, '..', '..') 8 | 9 | export const WPObjectLinksFactory = 10 | new FixtureFactory( 11 | () => ({ 12 | 'predecessor-version': [fakeObjectLink], 13 | 'version-history': [fakeObjectLink], 14 | 'wp:attachment': [fakeObjectLink], 15 | 'wp:featuredmedia': [fakeObjectLink], 16 | 'wp:term': [fakeObjectLink], 17 | 'about': [fakeObjectLink], 18 | 'collection': [fakeObjectLink], 19 | 'counter': [fakeObjectLink], 20 | 'curies': [fakeObjectLink], 21 | }), 22 | undefined, 23 | fixtureDir, 24 | ) 25 | -------------------------------------------------------------------------------- /__tests__/factories/page.factory.ts: -------------------------------------------------------------------------------- 1 | import { FixtureFactory } from 'interface-forge' 2 | import path from 'path' 3 | import { WP_Post_Type_Name } from 'wp-types' 4 | 5 | import { WPPage } from '../../src/types' 6 | import { fakeNumber } from '../util' 7 | import { WPPostFactory } from './post.factory' 8 | 9 | const fixtureDir = path.resolve(__dirname, '..', '..') 10 | 11 | export const WPPageFactory = new FixtureFactory( 12 | () => ({ 13 | ...WPPostFactory.buildSync(), 14 | type: WP_Post_Type_Name.page, 15 | menu_order: 0, 16 | parent: FixtureFactory.sample([0, 0, fakeNumber()]), 17 | }), 18 | undefined, 19 | fixtureDir, 20 | ) 21 | -------------------------------------------------------------------------------- /__tests__/factories/post.factory.ts: -------------------------------------------------------------------------------- 1 | import { FixtureFactory } from 'interface-forge' 2 | import path from 'path' 3 | import { WP_Post_Comment_Status_Name, WP_Post_Type_Name } from 'wp-types' 4 | 5 | import { POST_STATUS_MAP } from '../../src/constants' 6 | import { WPPost } from '../../src/types' 7 | import { 8 | contentRendered, 9 | fakeBase, 10 | fakeNumber, 11 | fakeUrl, 12 | randomWords, 13 | recentDate, 14 | } from '../util' 15 | 16 | const fixtureDir = path.resolve(__dirname, '..', '..') 17 | 18 | export const WPPostFactory = new FixtureFactory( 19 | () => ({ 20 | ...fakeBase(), 21 | author: fakeNumber(12), 22 | categories: [], 23 | comment_status: WP_Post_Comment_Status_Name.open, 24 | content: contentRendered, 25 | date_gmt: recentDate(), 26 | date: recentDate(), 27 | excerpt: contentRendered, 28 | featured_media: fakeNumber(123), 29 | format: 'standard', 30 | guid: fakeUrl(), 31 | menu_order: fakeNumber(20), 32 | modified_gmt: recentDate(), 33 | modified: recentDate(), 34 | ping_status: WP_Post_Comment_Status_Name.open, 35 | status: FixtureFactory.sample(POST_STATUS_MAP), 36 | sticky: false, 37 | tags: [], 38 | template: 'default.php', 39 | title: { rendered: randomWords() }, 40 | type: WP_Post_Type_Name.post, 41 | yoastHead: ``, 42 | }), 43 | undefined, 44 | fixtureDir, 45 | ) 46 | -------------------------------------------------------------------------------- /__tests__/factories/tag.factory.ts: -------------------------------------------------------------------------------- 1 | import { FixtureFactory } from 'interface-forge' 2 | import path from 'path' 3 | import { WP_Taxonomy_Name } from 'wp-types' 4 | 5 | import { WPTag } from '../../src/types' 6 | import { fakeTaxonomy } from '../util' 7 | 8 | const fixtureDir = path.resolve(__dirname, '..', '..') 9 | 10 | export const WPTagFactory = new FixtureFactory( 11 | () => ({ 12 | ...fakeTaxonomy(), 13 | taxonomy: WP_Taxonomy_Name.post_tag, 14 | }), 15 | undefined, 16 | fixtureDir, 17 | ) 18 | -------------------------------------------------------------------------------- /__tests__/util.ts: -------------------------------------------------------------------------------- 1 | import faker from 'faker' 2 | 3 | import { WPObjectLinksFactory } from './factories/object-links.factory' 4 | 5 | export const mockStatusText = 'Mock Server Error' 6 | 7 | export const mockResponse = (error: unknown) => { 8 | return { 9 | json: () => error, 10 | text: () => String(error), 11 | status: 666, 12 | statusText: mockStatusText, 13 | } as unknown as Response 14 | } 15 | 16 | export const defaultOptions = { 17 | body: undefined, 18 | headers: { 19 | 'Accept': 'application/json', 20 | 'Content-Type': 'application/json', 21 | }, 22 | method: 'get', 23 | } 24 | 25 | export const fakeUrl = () => faker.internet.url() 26 | export const fakeNumber = (max?: number) => faker.datatype.number(max) 27 | export const recentDate = () => faker.date.recent() 28 | export const randomWords = () => faker.random.words() 29 | export const fakeSentence = () => faker.lorem.sentence() 30 | export const contentRendered = { rendered: `

${faker.lorem.paragraph()}

` } 31 | export const fakeObjectLink = () => ({ 32 | href: fakeUrl(), 33 | id: fakeNumber(), 34 | }) 35 | export const fakeBase = () => ({ 36 | _links: WPObjectLinksFactory, 37 | acf: undefined, 38 | id: fakeNumber(), 39 | link: fakeUrl(), 40 | meta: [], 41 | slug: randomWords().replace(' ', '-').toLowerCase(), 42 | }) 43 | export const fakeTaxonomy = () => ({ 44 | ...fakeBase(), 45 | count: fakeNumber(12), 46 | description: fakeSentence(), 47 | name: randomWords(), 48 | }) 49 | -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- 1 | import { ForegroundColor } from 'chalk' 2 | // eslint-disable-next-line jest/no-jest-import 3 | import jest from 'jest' 4 | 5 | const coveragePathIgnorePatterns = [ 6 | '__tests__', 7 | '.yarn', 8 | '.factory.ts', 9 | '.spec.ts', 10 | ] 11 | 12 | function createProject( 13 | name: string, 14 | color: ForegroundColor, 15 | testMatch: string[], 16 | ): jest.Config { 17 | return { 18 | cacheDirectory: '.jest/cache', 19 | clearMocks: true, 20 | coveragePathIgnorePatterns, 21 | displayName: { 22 | color, 23 | name, 24 | }, 25 | preset: 'ts-jest', 26 | testMatch, 27 | } 28 | } 29 | 30 | const jestConfig: jest.Config = { 31 | collectCoverage: true, 32 | coverageProvider: 'v8', 33 | preset: 'ts-jest', 34 | projects: [ 35 | createProject('core', 'gray', ['**/__tests__/**/*.spec.[jt]s']), 36 | createProject('e2e', 'green', ['**/__tests__/**/*.e2e-spec.[jt]s']), 37 | ], 38 | testMatch: ['**/__tests__/**/*.(e2e-spec|spec).[jt]s'], 39 | verbose: true, 40 | } 41 | 42 | export default jestConfig 43 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wordpress-api-client", 3 | "description": "WordPress-API Client for JS/TS", 4 | "version": "0.4.9", 5 | "author": "dkress59", 6 | "bugs": "https://github.com/dkress59/wordpress-api-client/issues", 7 | "license": "MIT", 8 | "main": "./dist/index.js", 9 | "repository": "https://github.com/dkress59/wordpress-api-client", 10 | "scripts": { 11 | "build": "tsc -p tsconfig.build.json", 12 | "check:script": "eslint src --ext .ts --fix-dry-run --report-unused-disable-directives", 13 | "lint:script": "eslint src --ext .ts --fix", 14 | "test": "jest --selectProjects core", 15 | "test:e2e": "jest --selectProjects e2e --runInBand", 16 | "test:watch": "jest --selectProjects core --watchAll", 17 | "doctor": "yarn dlx @yarnpkg/doctor", 18 | "docker": "docker compose -f __tests__/e2e/docker-compose.yml up -d", 19 | "docker:build": "docker compose -f __tests__/e2e/docker-compose.yml build --no-cache --pull", 20 | "docker:down": "docker compose -f __tests__/e2e/docker-compose.yml down --volumes", 21 | "postinstall": "husky install", 22 | "prepack": "yarn pinst --disable", 23 | "postpack": "yarn pinst --enable" 24 | }, 25 | "types": "./dist/index.d.ts", 26 | "contributors": [ 27 | { 28 | "name": "Damian Kress", 29 | "email": "wordpress@damiankress.de" 30 | } 31 | ], 32 | "dependencies": { 33 | "@tool-belt/type-predicates": "1.2.2", 34 | "cross-fetch": "3.1.5", 35 | "wp-types": "3.61.0" 36 | }, 37 | "devDependencies": { 38 | "@tool-belt/eslint-config": "1.5.1", 39 | "@types/eslint": "8.21.0", 40 | "@types/faker": "5.5.9", 41 | "@types/jest": "28.1.8", 42 | "@types/jest-specific-snapshot": "0.5.6", 43 | "@types/node": "16.18.12", 44 | "@types/source-map-support": "0.5.6", 45 | "@typescript-eslint/eslint-plugin": "5.51.0", 46 | "@typescript-eslint/parser": "5.51.0", 47 | "chalk": "5.2.0", 48 | "eslint": "8.33.0", 49 | "eslint-config-prettier": "8.6.0", 50 | "eslint-import-resolver-typescript": "2.7.1", 51 | "eslint-plugin-eslint-comments": "3.2.0", 52 | "eslint-plugin-import": "2.27.5", 53 | "eslint-plugin-jest": "26.9.0", 54 | "eslint-plugin-prettier": "4.2.1", 55 | "eslint-plugin-simple-import-sort": "7.0.0", 56 | "eslint-plugin-sonarjs": "0.14.0", 57 | "eslint-plugin-unused-imports": "2.0.0", 58 | "faker": "5.5.3", 59 | "husky": "8.0.3", 60 | "interface-forge": "1.5.1", 61 | "jest": "28.1.3", 62 | "jest-specific-snapshot": "5.0.0", 63 | "pinst": "3.0.0", 64 | "prettier": "2.8.4", 65 | "source-map-support": "0.5.21", 66 | "ts-jest": "28.0.8", 67 | "ts-node": "10.9.1", 68 | "typescript": "4.9.5" 69 | }, 70 | "engines": { 71 | "node": "14.17.0 || >=16.0.0" 72 | }, 73 | "keywords": [ 74 | "typescript", 75 | "wordpress", 76 | "headless", 77 | "nodejs", 78 | "REST", 79 | "api client", 80 | "wpapi", 81 | "wp-api", 82 | "wp-json", 83 | "json", 84 | "js", 85 | "ts", 86 | "wp" 87 | ], 88 | "packageManager": "yarn@3.4.1" 89 | } 90 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | sonar.projectKey=dkress59_wordpress-api-client 2 | sonar.organization=dkress59 3 | 4 | # This is the name and version displayed in the SonarCloud UI. 5 | #sonar.projectName=wordpress-api-client 6 | #sonar.projectVersion=1.0 7 | 8 | # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. 9 | sonar.sources=src 10 | sonar.test.inclusions=__tests__/*.spec.* 11 | 12 | sonar.javascript.lcov.reportPaths=coverage/lcov.info 13 | 14 | # Encoding of the source code. Default is default system encoding 15 | sonar.sourceEncoding=UTF-8 -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- 1 | import { WP_Post_Status_Name, WP_Post_Type_Name } from 'wp-types' 2 | 3 | export const END_POINT = { 4 | BLOCK_DIRECTORY: 'wp/v2/block-directory/search', 5 | BLOCK_RENDERER: 'wp/v2/block-renderer', 6 | BLOCK_TYPES: 'wp/v2/block-types', 7 | CATEGORIES: 'wp/v2/categories', 8 | COMMENTS: 'wp/v2/comments', 9 | EDITOR_BLOCKS: 'wp/v2/blocks', 10 | MEDIA: 'wp/v2/media', 11 | PAGES: 'wp/v2/pages', 12 | PLUGINS: 'wp/v2/plugins', 13 | POSTS: 'wp/v2/posts', 14 | SEARCH: 'wp/v2/search', 15 | SETTINGS: 'wp/v2/settings', 16 | STATUSES: 'wp/v2/statuses', 17 | TAGS: 'wp/v2/tags', 18 | TAXONOMIES: 'wp/v2/taxonomies', 19 | THEMES: 'wp/v2/themes', 20 | TYPES: 'wp/v2/types', 21 | USER_APPLICATION_PASSWORDS: 'application-passwords', 22 | USERS_ME: 'wp/v2/users/me', 23 | USERS: 'wp/v2/users', 24 | } 25 | 26 | export const ERROR_MESSAGE = { 27 | DETAILED: '[WpApiClient Error] %error%', 28 | ERROR_RESPONSE: 29 | '[WpApiClient Error] There was an error when calling the end point %url%: %error% (%status%)', 30 | GENERIC: '[WpApiClient Error] Misconfiguration?', 31 | ID_REQUIRED: 32 | '[WpApiClient Error] At least one ID must be provided to .delete()', 33 | INVALID_BASEURL: '[WpApiClient Error] Invalid baseUrl: %url%', 34 | INVALID_FILENAME: 35 | '[WpApiClient Error] The fileName must include the file extension (e.g.: %fileName%.jpg).', 36 | MISSING_REQUIRED_PARAM: 37 | '[WpApiClient Error] Required param %PARAM% missing.', 38 | } 39 | 40 | export const END_POINT_PROTECTED = { 41 | GET: [ 42 | END_POINT.BLOCK_DIRECTORY, 43 | END_POINT.BLOCK_TYPES, 44 | END_POINT.EDITOR_BLOCKS, 45 | END_POINT.PLUGINS, 46 | END_POINT.SETTINGS, 47 | END_POINT.THEMES, 48 | END_POINT.USER_APPLICATION_PASSWORDS, 49 | END_POINT.USERS, 50 | END_POINT.USERS_ME, 51 | ], 52 | POST: Object.values(END_POINT), 53 | DELETE: Object.values(END_POINT), 54 | } 55 | 56 | export const TRASHABLE = [ 57 | END_POINT.EDITOR_BLOCKS, 58 | END_POINT.PAGES, 59 | END_POINT.POSTS, 60 | ] 61 | 62 | export const END_POINT_PUBLIC = { 63 | GET: Object.values(END_POINT).filter( 64 | endPoint => !END_POINT_PROTECTED.GET.includes(endPoint), 65 | ), 66 | POST: Object.values(END_POINT).filter( 67 | endPoint => !END_POINT_PROTECTED.POST.includes(endPoint), 68 | ), 69 | DELETE: Object.values(END_POINT).filter( 70 | endPoint => !END_POINT_PROTECTED.DELETE.includes(endPoint), 71 | ), 72 | } 73 | 74 | export const POST_STATUS_MAP = [ 75 | WP_Post_Status_Name.auto_draft, 76 | WP_Post_Status_Name.draft, 77 | WP_Post_Status_Name.future, 78 | WP_Post_Status_Name.inherit, 79 | WP_Post_Status_Name.pending, 80 | WP_Post_Status_Name.private, 81 | WP_Post_Status_Name.publish, 82 | WP_Post_Status_Name.trash, 83 | ] 84 | 85 | export const POST_TYPE_MAP = [ 86 | WP_Post_Type_Name.attachment, 87 | WP_Post_Type_Name.custom_css, 88 | WP_Post_Type_Name.customize_changeset, 89 | WP_Post_Type_Name.nav_menu_item, 90 | WP_Post_Type_Name.oembed_cache, 91 | WP_Post_Type_Name.page, 92 | WP_Post_Type_Name.post, 93 | WP_Post_Type_Name.revision, 94 | WP_Post_Type_Name.user_request, 95 | WP_Post_Type_Name.wp_block, 96 | ] 97 | -------------------------------------------------------------------------------- /src/fetch-client.ts: -------------------------------------------------------------------------------- 1 | import fetch from 'cross-fetch' 2 | 3 | import { END_POINT_PROTECTED, END_POINT_PUBLIC } from './constants' 4 | import { AUTH_TYPE } from './types' 5 | import { getErrorMessage, useAuth, validateBaseUrl } from './util' 6 | 7 | export class FetchClient { 8 | baseUrl: string 9 | headers: Record 10 | 11 | constructor( 12 | baseUrl: URL, 13 | public onError: (message: string) => Promise = ( 14 | message: string, 15 | ) => { 16 | // eslint-disable-next-line no-console 17 | console.error(message) 18 | return Promise.resolve() 19 | }, 20 | headers: Record = {}, 21 | public authHeader: Record = {}, 22 | public protectedRoutes = END_POINT_PROTECTED, 23 | public publicRoutes = END_POINT_PUBLIC, 24 | public authType: AUTH_TYPE | undefined = undefined, 25 | ) { 26 | this.baseUrl = validateBaseUrl(baseUrl.toString()) + '/' 27 | this.headers = { 28 | 'Accept': 'application/json', 29 | 'Content-Type': 'application/json', 30 | ...headers, 31 | } 32 | } 33 | 34 | /** will also throw if onError is defined */ 35 | private async fetch( 36 | url: string, 37 | method: 'get' | 'post' | 'delete' | 'options', 38 | headers?: HeadersInit, 39 | body?: BodyInit, 40 | ): Promise<{ data: T; headers: Headers }> { 41 | try { 42 | headers = { ...this.headers, ...headers } 43 | if ( 44 | useAuth( 45 | url, 46 | method, 47 | this.authType, 48 | this.protectedRoutes, 49 | this.publicRoutes, 50 | ) 51 | ) 52 | headers = { ...this.authHeader, ...headers } 53 | const response = await fetch(this.baseUrl + url, { 54 | body, 55 | headers, 56 | method, 57 | }) 58 | if (response.status >= 400) throw response 59 | return { 60 | data: await response.json(), 61 | headers: response.headers, 62 | } 63 | } catch (error) { 64 | const message = await getErrorMessage(error) 65 | await this.onError(message) 66 | throw new Error(message) 67 | } 68 | } 69 | 70 | async get(url: string, headers?: Record): Promise { 71 | return (await this.fetch(url, 'get', headers)).data 72 | } 73 | 74 | async getAll( 75 | url: string, 76 | headers?: Record, 77 | ): Promise { 78 | const response = await this.fetch(url, 'get', headers) 79 | const result = response.data ?? [] 80 | const loadMore = 81 | result.length && 82 | !url.includes('?page=') && 83 | !url.includes('&page=') && 84 | !url.includes('?offset=') && 85 | !url.includes('&offset=') 86 | if (loadMore) { 87 | const totalPages = Number(response.headers.get('X-WP-TotalPages')) 88 | if (totalPages > 1) { 89 | const pages = ( 90 | await Promise.all( 91 | Array(totalPages - 1) 92 | .fill(null) 93 | .map((_null, i) => { 94 | return this.fetch( 95 | `${url}&page=${String(i + 2)}`, 96 | 'get', 97 | headers, 98 | ) 99 | }), 100 | ) 101 | ).map(page => page.data ?? []) 102 | const entries: T[] = [] 103 | pages.forEach(page => entries.push(...page)) 104 | result.push(...entries) 105 | } 106 | } 107 | return result 108 | } 109 | 110 | async getTotal(url: string): Promise { 111 | const response = await this.fetch(url, 'options') 112 | return Number(response.headers.get('X-WP-TotalPages')) 113 | } 114 | 115 | async post( 116 | url: string, 117 | headers?: Record, 118 | body?: BodyInit, 119 | ): Promise { 120 | return (await this.fetch(url, 'post', headers, body)).data 121 | } 122 | 123 | async delete(url: string, headers?: Record): Promise { 124 | return (await this.fetch(url, 'delete', headers)).data 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { WpApiClient } from './wp-api-client' 2 | 3 | export * from './types' 4 | export default WpApiClient 5 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [ 4 | "./.yarn", 5 | "./node_modules", 6 | ], 7 | "include": [ 8 | "./src/*.json", 9 | "./src/*.ts", 10 | "./src/*.tsx" 11 | ], 12 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "./.yarn", 4 | "./node_modules", 5 | ], 6 | "include": [ 7 | "./__mocks__", 8 | "__tests__", 9 | "./jest.config.ts", 10 | "./src/*.json", 11 | "./src/*.ts", 12 | "./src/*.tsx", 13 | ], 14 | "compilerOptions": { 15 | "baseUrl": "./", 16 | "allowSyntheticDefaultImports": true, 17 | "declaration": true, 18 | "esModuleInterop": true, 19 | "forceConsistentCasingInFileNames": true, 20 | "lib": [ 21 | "esnext" 22 | ], 23 | "outDir": "dist", 24 | "module": "commonjs", 25 | "moduleResolution": "node", 26 | "resolveJsonModule": true, 27 | "skipLibCheck": true, 28 | "strict": true, 29 | "target": "esnext", 30 | "types": [ 31 | "jest", 32 | "node", 33 | ], 34 | }, 35 | } --------------------------------------------------------------------------------