@agility/content-fetch 2.0.0-rc1 → 2.0.0-rc11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/.jsdoc.json +28 -28
  2. package/.yarn/cache/@babel-code-frame-npm-7.22.10-bc14e2ec1b-89a06534ad.zip +0 -0
  3. package/.yarn/cache/{@babel-core-npm-7.22.9-509b29c82e-7bf069aece.zip → @babel-core-npm-7.22.10-54c0aaa674-cc4efa0920.zip} +0 -0
  4. package/.yarn/cache/{@babel-generator-npm-7.22.9-d9fccf9328-7c9d2c58b8.zip → @babel-generator-npm-7.22.10-1a9a2f9e75-59a79730ab.zip} +0 -0
  5. package/.yarn/cache/{@babel-helper-compilation-targets-npm-7.22.9-b4473889ca-ea0006c6a9.zip → @babel-helper-compilation-targets-npm-7.22.10-20c2c02a4f-f6f1896816.zip} +0 -0
  6. package/.yarn/cache/{@babel-helpers-npm-7.22.6-8e54464b9e-5c1f33241f.zip → @babel-helpers-npm-7.22.10-83a2c2542a-3b1219e362.zip} +0 -0
  7. package/.yarn/cache/@babel-highlight-npm-7.22.10-cea13c397b-f714a1e1a7.zip +0 -0
  8. package/.yarn/cache/@babel-parser-npm-7.22.10-a7c9b29e4f-af51567b7d.zip +0 -0
  9. package/.yarn/cache/@babel-traverse-npm-7.22.10-9eaf5a4899-9f7b358563.zip +0 -0
  10. package/.yarn/cache/@dabh-diagnostics-npm-2.0.3-0f2cd64f24-4879600c55.zip +0 -0
  11. package/.yarn/cache/@esbuild-win32-x64-npm-0.19.2-faf4190546-8.zip +0 -0
  12. package/.yarn/cache/{@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-b5ceaaf9a1.zip → @jridgewell-resolve-uri-npm-3.1.1-aa2de3f210-f5b441fe79.zip} +0 -0
  13. package/.yarn/cache/{@jridgewell-trace-mapping-npm-0.3.18-cd96571385-0572669f85.zip → @jridgewell-trace-mapping-npm-0.3.19-9aa1a7e2fd-956a6f0f6f.zip} +0 -0
  14. package/.yarn/cache/@types-node-npm-18.17.5-e736eb2acc-b8c658a992.zip +0 -0
  15. package/.yarn/cache/{@types-node-npm-20.4.5-7555fad0d4-36a0304a8d.zip → @types-node-npm-20.5.0-ea170d5dd7-659bc5fc93.zip} +0 -0
  16. package/.yarn/cache/@types-triple-beam-npm-1.3.2-e1699700a8-dd7b4a563f.zip +0 -0
  17. package/.yarn/cache/agentkeepalive-npm-4.5.0-f237b580b2-13278cd5b1.zip +0 -0
  18. package/.yarn/cache/args-npm-5.0.3-ec59f35e6d-ac39e65609.zip +0 -0
  19. package/.yarn/cache/async-npm-3.2.4-aba13508f9-43d07459a4.zip +0 -0
  20. package/.yarn/cache/{cacache-npm-17.1.3-f75f768a29-385756781e.zip → cacache-npm-17.1.4-51ef53d0a8-b7751df756.zip} +0 -0
  21. package/.yarn/cache/camelcase-npm-5.0.0-c808398846-8bfe920e04.zip +0 -0
  22. package/.yarn/cache/caniuse-lite-npm-1.0.30001520-83db97126d-59991ad8f3.zip +0 -0
  23. package/.yarn/cache/color-npm-3.2.1-568cf1014f-f81220e8b7.zip +0 -0
  24. package/.yarn/cache/color-string-npm-1.9.1-dc020e56be-c13fe7cff7.zip +0 -0
  25. package/.yarn/cache/colorspace-npm-1.1.4-f01655548a-bb3934ef3c.zip +0 -0
  26. package/.yarn/cache/commander-npm-2.20.3-d8dcbaa39b-ab8c07884e.zip +0 -0
  27. package/.yarn/cache/detect-file-npm-1.0.0-a22ca7c5b6-1861e41461.zip +0 -0
  28. package/.yarn/cache/{electron-to-chromium-npm-1.4.481-eaa539b254-52b7e8d7ae.zip → electron-to-chromium-npm-1.4.491-7541a41cd5-8d96c720c8.zip} +0 -0
  29. package/.yarn/cache/enabled-npm-2.0.0-bf5d96c9d8-9d256d89f4.zip +0 -0
  30. package/.yarn/cache/esbuild-npm-0.19.2-84addf679d-f9ad8ad4f0.zip +0 -0
  31. package/.yarn/cache/expand-tilde-npm-2.0.2-a4020a62f5-2efe6ed407.zip +0 -0
  32. package/.yarn/cache/fecha-npm-4.2.3-75248da3fd-f94e2fb3ac.zip +0 -0
  33. package/.yarn/cache/find-node-modules-npm-2.1.3-431b2c5604-4b8a194ffd.zip +0 -0
  34. package/.yarn/cache/findup-sync-npm-4.0.0-3884c677a0-94131e1107.zip +0 -0
  35. package/.yarn/cache/fn.name-npm-1.1.0-b472333184-e357144f48.zip +0 -0
  36. package/.yarn/cache/{fs-minipass-npm-3.0.2-a27ef235f5-e9cc0e1f2d.zip → fs-minipass-npm-3.0.3-d148d6ac19-8722a41109.zip} +0 -0
  37. package/.yarn/cache/global-modules-npm-1.0.0-70c522e57a-10be68796c.zip +0 -0
  38. package/.yarn/cache/global-prefix-npm-1.0.2-a96996834b-061b43470f.zip +0 -0
  39. package/.yarn/cache/homedir-polyfill-npm-1.0.3-da1a29ce00-18dd4db870.zip +0 -0
  40. package/.yarn/cache/ini-npm-1.3.8-fb5040b4c0-dfd98b0ca3.zip +0 -0
  41. package/.yarn/cache/is-arrayish-npm-0.3.2-f856180f79-977e64f54d.zip +0 -0
  42. package/.yarn/cache/is-core-module-npm-2.13.0-e444c50225-053ab101fb.zip +0 -0
  43. package/.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip +0 -0
  44. package/.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.zip +0 -0
  45. package/.yarn/cache/is-windows-npm-1.0.2-898cd6f3d7-438b7e5265.zip +0 -0
  46. package/.yarn/cache/{jackspeak-npm-2.2.2-374ca454fe-7b1468dd91.zip → jackspeak-npm-2.2.3-bcc5afec11-8add557045.zip} +0 -0
  47. package/.yarn/cache/kuler-npm-2.0.0-19e74c9695-9e10b5a165.zip +0 -0
  48. package/.yarn/cache/leven-npm-2.1.0-19f0a16606-f7b4a01b15.zip +0 -0
  49. package/.yarn/cache/logform-npm-2.5.1-06017d630d-08fdf03be5.zip +0 -0
  50. package/.yarn/cache/lru-cache-npm-10.0.1-0e1abf4c13-06f8d0e1ce.zip +0 -0
  51. package/.yarn/cache/merge-npm-2.1.1-90e7307c49-9c36b0e25a.zip +0 -0
  52. package/.yarn/cache/minimist-npm-1.2.8-d7af7b1dce-75a6d645fb.zip +0 -0
  53. package/.yarn/cache/{minipass-fetch-npm-3.0.3-2c4966d142-af5ab2552a.zip → minipass-fetch-npm-3.0.4-200ac7c66d-af7aad15d5.zip} +0 -0
  54. package/.yarn/cache/minipass-npm-7.0.3-3b57909ee9-6f1614f5b5.zip +0 -0
  55. package/.yarn/cache/mri-npm-1.1.4-d22a399f26-e65b9aed3b.zip +0 -0
  56. package/.yarn/cache/npm-dts-npm-1.3.12-c921cfddec-3897533c49.zip +0 -0
  57. package/.yarn/cache/npm-path-npm-2.0.4-fda8ca6d1d-3dfe24d9bb.zip +0 -0
  58. package/.yarn/cache/npm-run-npm-5.0.1-ba4f9faa65-1c6e171bf0.zip +0 -0
  59. package/.yarn/cache/npm-which-npm-3.0.1-2951392327-fba4864161.zip +0 -0
  60. package/.yarn/cache/one-time-npm-1.0.0-aeaad5e524-fd008d7e99.zip +0 -0
  61. package/.yarn/cache/parse-passwd-npm-1.0.0-ace6effa1d-4e55e0231d.zip +0 -0
  62. package/.yarn/cache/protochain-npm-1.0.5-ca0a4ef353-81f417e4f5.zip +0 -0
  63. package/.yarn/cache/resolve-dir-npm-1.0.1-0a95903c18-ef736b8ed6.zip +0 -0
  64. package/.yarn/cache/{resolve-npm-1.22.2-9d9621a4ae-7e5df75796.zip → resolve-npm-1.22.4-faa4f32bdd-23f25174c2.zip} +0 -0
  65. package/.yarn/cache/{resolve-patch-f4c4056507-66cc788f13.zip → resolve-patch-efbbaf0edd-c45f2545fd.zip} +0 -0
  66. package/.yarn/cache/rimraf-npm-5.0.1-26fb251a1d-bafce85391.zip +0 -0
  67. package/.yarn/cache/safe-stable-stringify-npm-2.4.3-d895741b40-3aeb644497.zip +0 -0
  68. package/.yarn/cache/serializerr-npm-1.0.3-844e49be0c-20fdf7a7e3.zip +0 -0
  69. package/.yarn/cache/simple-swizzle-npm-0.2.2-8dee37fad1-a7f3f2ab5c.zip +0 -0
  70. package/.yarn/cache/{ssri-npm-10.0.4-f583dafaf3-fb14da9f8a.zip → ssri-npm-10.0.5-1a7557d04d-0a31b65f21.zip} +0 -0
  71. package/.yarn/cache/stack-trace-npm-0.0.10-9460b173e1-473036ad32.zip +0 -0
  72. package/.yarn/cache/text-hex-npm-1.0.0-22389e4d56-1138f68adc.zip +0 -0
  73. package/.yarn/cache/tmp-npm-0.2.1-a9c8d9c0ca-8b12146541.zip +0 -0
  74. package/.yarn/cache/triple-beam-npm-1.4.1-d21ba5346a-2e881a3e8e.zip +0 -0
  75. package/.yarn/cache/which-npm-1.3.1-f0ebb8bdd8-f2e185c624.zip +0 -0
  76. package/.yarn/cache/winston-npm-3.7.2-5336ad5eff-f1f1a860d2.zip +0 -0
  77. package/.yarn/cache/winston-transport-npm-4.5.0-e10bfb2169-a56e5678a8.zip +0 -0
  78. package/.yarn/install-state.gz +0 -0
  79. package/LICENSE +21 -21
  80. package/README.md +108 -108
  81. package/build.js +26 -0
  82. package/dist/api-client.d.ts +1 -1
  83. package/dist/browser.js +2061 -0
  84. package/dist/index.d.ts +8 -11
  85. package/dist/node.js +13065 -0
  86. package/dist/types/ContentZone.d.ts +1 -0
  87. package/dist/types/Page.d.ts +1 -1
  88. package/jest.config.js +5 -5
  89. package/package.json +57 -50
  90. package/tsconfig.json +14 -14
  91. package/.nyc_output/713b1ec2-05ec-4b67-8061-b6cad0a45ad5.json +0 -1
  92. package/.yarn/cache/@babel-code-frame-npm-7.22.5-b36f88d6f9-cfe804f518.zip +0 -0
  93. package/.yarn/cache/@babel-highlight-npm-7.22.5-3182ccc1fe-f61ae6de6e.zip +0 -0
  94. package/.yarn/cache/@babel-parser-npm-7.22.7-7fbdf28552-02209ddbd4.zip +0 -0
  95. package/.yarn/cache/@babel-traverse-npm-7.22.8-98fbaaf7d8-a381369bc3.zip +0 -0
  96. package/.yarn/cache/@babel-types-npm-7.22.5-d1e4264bef-c13a9c1dc7.zip +0 -0
  97. package/.yarn/cache/@isaacs-string-locale-compare-npm-1.1.0-3911094464-7287da5d11.zip +0 -0
  98. package/.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-61100637b6.zip +0 -0
  99. package/.yarn/cache/@npmcli-arborist-npm-6.3.0-9d3adbe1f6-4f59d5408c.zip +0 -0
  100. package/.yarn/cache/@npmcli-config-npm-6.2.1-4191bac29e-8c8d47f900.zip +0 -0
  101. package/.yarn/cache/@npmcli-disparity-colors-npm-3.0.0-9fe9301a52-49320c6927.zip +0 -0
  102. package/.yarn/cache/@npmcli-git-npm-4.1.0-f7322fced9-37efb92659.zip +0 -0
  103. package/.yarn/cache/@npmcli-installed-package-contents-npm-2.0.2-99564e3824-60789d5ed2.zip +0 -0
  104. package/.yarn/cache/@npmcli-map-workspaces-npm-3.0.4-b07359726d-99607dbc50.zip +0 -0
  105. package/.yarn/cache/@npmcli-metavuln-calculator-npm-5.0.1-b28e316793-cd08ad9cc4.zip +0 -0
  106. package/.yarn/cache/@npmcli-name-from-folder-npm-2.0.0-18e2dba870-fb3ef891aa.zip +0 -0
  107. package/.yarn/cache/@npmcli-node-gyp-npm-3.0.0-b160a0116c-fe3802b813.zip +0 -0
  108. package/.yarn/cache/@npmcli-package-json-npm-4.0.1-8fba8ea1a2-699b80a72f.zip +0 -0
  109. package/.yarn/cache/@npmcli-promise-spawn-npm-6.0.2-c9941b207c-aa725780c1.zip +0 -0
  110. package/.yarn/cache/@npmcli-query-npm-3.0.0-53c05bcb30-90fca7edd5.zip +0 -0
  111. package/.yarn/cache/@npmcli-run-script-npm-6.0.2-6a98dec431-7a671d7dbe.zip +0 -0
  112. package/.yarn/cache/@sigstore-bundle-npm-1.0.0-6224fc68db-9902b9fcd2.zip +0 -0
  113. package/.yarn/cache/@sigstore-protobuf-specs-npm-0.2.0-93c8e6c759-6b7c5d3612.zip +0 -0
  114. package/.yarn/cache/@sigstore-tuf-npm-1.0.3-9a2b6b14aa-0a32594b73.zip +0 -0
  115. package/.yarn/cache/@tufjs-canonical-json-npm-1.0.0-66d27d850f-9ff3bcd129.zip +0 -0
  116. package/.yarn/cache/@tufjs-models-npm-1.0.4-a1dddaf561-b489baa854.zip +0 -0
  117. package/.yarn/cache/@types-node-npm-18.11.9-d21dd6ec05-cc0aae109e.zip +0 -0
  118. package/.yarn/cache/abbrev-npm-2.0.0-0eb38a17e5-0e994ad2aa.zip +0 -0
  119. package/.yarn/cache/abort-controller-npm-3.0.0-2f3a9a2bcb-170bdba9b4.zip +0 -0
  120. package/.yarn/cache/agentkeepalive-npm-4.3.0-ac3d8e6807-982453aa44.zip +0 -0
  121. package/.yarn/cache/archy-npm-1.0.0-7db8bfdc3b-504ae7af65.zip +0 -0
  122. package/.yarn/cache/are-we-there-yet-npm-4.0.1-734c8e8dce-16871ee259.zip +0 -0
  123. package/.yarn/cache/axios-cache-adapter-npm-2.7.3-26c357b785-ff44bee6a2.zip +0 -0
  124. package/.yarn/cache/base64-js-npm-1.5.1-b2f7275641-669632eb37.zip +0 -0
  125. package/.yarn/cache/bin-links-npm-4.0.2-592819adbc-6f83e73100.zip +0 -0
  126. package/.yarn/cache/binary-extensions-npm-2.2.0-180c33fec7-ccd267956c.zip +0 -0
  127. package/.yarn/cache/buffer-npm-6.0.3-cd90dfedfe-5ad23293d9.zip +0 -0
  128. package/.yarn/cache/builtins-npm-5.0.1-6d4820dd76-66d204657f.zip +0 -0
  129. package/.yarn/cache/cache-control-esm-npm-1.0.0-ee383a8c40-4f8c8399f2.zip +0 -0
  130. package/.yarn/cache/caniuse-lite-npm-1.0.30001518-2e4e82df98-1b63272f6e.zip +0 -0
  131. package/.yarn/cache/chalk-npm-5.3.0-d181999efb-623922e077.zip +0 -0
  132. package/.yarn/cache/charenc-npm-0.0.2-aca0c2f207-81dcadbe57.zip +0 -0
  133. package/.yarn/cache/cidr-regex-npm-3.1.1-a5f3c156e7-ef9306d086.zip +0 -0
  134. package/.yarn/cache/cli-columns-npm-4.0.0-7c43bbe435-fa1a3a7f4e.zip +0 -0
  135. package/.yarn/cache/cli-table3-npm-0.6.3-1dca7f9152-09897f6846.zip +0 -0
  136. package/.yarn/cache/clone-npm-1.0.4-a610fcbcf9-d06418b733.zip +0 -0
  137. package/.yarn/cache/cmd-shim-npm-6.0.1-87ebf774a0-359006b3a5.zip +0 -0
  138. package/.yarn/cache/columnify-npm-1.6.0-aa925d932b-0d59002361.zip +0 -0
  139. package/.yarn/cache/common-ancestor-path-npm-1.0.1-27534e68da-1d2e418606.zip +0 -0
  140. package/.yarn/cache/crypt-npm-0.0.2-033627d94f-baf4c7bbe0.zip +0 -0
  141. package/.yarn/cache/cssesc-npm-3.0.0-15ec56f86f-f8c4ababff.zip +0 -0
  142. package/.yarn/cache/defaults-npm-1.0.4-f3fbaf2528-3a88b7a587.zip +0 -0
  143. package/.yarn/cache/depd-npm-2.0.0-b6c51a4b43-abbe19c768.zip +0 -0
  144. package/.yarn/cache/diff-npm-5.1.0-d24d222280-c7bf0df7c9.zip +0 -0
  145. package/.yarn/cache/event-target-shim-npm-5.0.1-cb48709025-1ffe3bb22a.zip +0 -0
  146. package/.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip +0 -0
  147. package/.yarn/cache/fastest-levenshtein-npm-1.0.16-192d328856-a78d44285c.zip +0 -0
  148. package/.yarn/cache/fsevents-patch-2882183fbf-8.zip +0 -0
  149. package/.yarn/cache/gauge-npm-5.0.1-69ab73de36-09b1eb8d8c.zip +0 -0
  150. package/.yarn/cache/hosted-git-info-npm-6.1.1-d57807f6a5-fcd3ca2eaa.zip +0 -0
  151. package/.yarn/cache/ieee754-npm-1.2.1-fb63b3caeb-5144c0c981.zip +0 -0
  152. package/.yarn/cache/ignore-walk-npm-6.0.3-ebca6b06c4-d8ba534beb.zip +0 -0
  153. package/.yarn/cache/ini-npm-4.1.1-01c2cbda7b-0e59095540.zip +0 -0
  154. package/.yarn/cache/init-package-json-npm-5.0.0-0656c8f580-ad601c717d.zip +0 -0
  155. package/.yarn/cache/install-npm-0.13.0-53f6b8981f-645bad1253.zip +0 -0
  156. package/.yarn/cache/ip-regex-npm-4.3.0-4ac12c6be9-7ff904b891.zip +0 -0
  157. package/.yarn/cache/is-buffer-npm-1.1.6-08199d9ccc-4a186d995d.zip +0 -0
  158. package/.yarn/cache/is-cidr-npm-4.0.2-74bbb734d3-ee6e670e65.zip +0 -0
  159. package/.yarn/cache/is-core-module-npm-2.12.1-ce74e89160-f04ea30533.zip +0 -0
  160. package/.yarn/cache/json-parse-even-better-errors-npm-3.0.0-3675833c0a-f1970b5220.zip +0 -0
  161. package/.yarn/cache/json-stringify-nice-npm-1.1.4-0b0ddb188b-6ddf781148.zip +0 -0
  162. package/.yarn/cache/jsonparse-npm-1.3.1-b6fde74828-6514a7be46.zip +0 -0
  163. package/.yarn/cache/just-diff-apply-npm-5.5.0-04951e29f4-ed6bbd5978.zip +0 -0
  164. package/.yarn/cache/just-diff-npm-6.0.2-f73771d84e-1a0c7524f6.zip +0 -0
  165. package/.yarn/cache/libnpmaccess-npm-7.0.2-57b91bfda5-73d49f3939.zip +0 -0
  166. package/.yarn/cache/libnpmdiff-npm-5.0.19-26809d318b-47835abc81.zip +0 -0
  167. package/.yarn/cache/libnpmexec-npm-6.0.3-9bfdfc5775-c9c92dc29a.zip +0 -0
  168. package/.yarn/cache/libnpmfund-npm-4.0.19-742ff1c9b5-77905879f7.zip +0 -0
  169. package/.yarn/cache/libnpmhook-npm-9.0.3-1ed2368ed2-535ecefa22.zip +0 -0
  170. package/.yarn/cache/libnpmorg-npm-5.0.4-8ff49f84d5-4e170ba145.zip +0 -0
  171. package/.yarn/cache/libnpmpack-npm-5.0.19-fad75068a8-d164d61383.zip +0 -0
  172. package/.yarn/cache/libnpmpublish-npm-7.5.0-e0dfdc81a9-feb99876be.zip +0 -0
  173. package/.yarn/cache/libnpmsearch-npm-6.0.2-664c687722-7a62e5cb1c.zip +0 -0
  174. package/.yarn/cache/libnpmteam-npm-5.0.3-1e0a2afab9-a39ccdb4a6.zip +0 -0
  175. package/.yarn/cache/libnpmversion-npm-4.0.2-257501dd35-4666db4671.zip +0 -0
  176. package/.yarn/cache/lru-cache-npm-10.0.0-256d74bb20-18f101675f.zip +0 -0
  177. package/.yarn/cache/md5-npm-2.3.0-86c49d3915-a63cacf401.zip +0 -0
  178. package/.yarn/cache/minipass-json-stream-npm-1.0.1-96490706d6-791b696a27.zip +0 -0
  179. package/.yarn/cache/minipass-npm-7.0.2-baa42a5a34-46776de732.zip +0 -0
  180. package/.yarn/cache/mute-stream-npm-1.0.0-b6e846d471-36fc968b0e.zip +0 -0
  181. package/.yarn/cache/nopt-npm-7.2.0-dd734b678d-a9c0f57fb8.zip +0 -0
  182. package/.yarn/cache/normalize-package-data-npm-5.0.0-6327e2af68-a459f05eaf.zip +0 -0
  183. package/.yarn/cache/npm-audit-report-npm-5.0.0-b0af56272d-a18f16f514.zip +0 -0
  184. package/.yarn/cache/npm-bundled-npm-3.0.0-0b3c5ee4f3-110859c2d6.zip +0 -0
  185. package/.yarn/cache/npm-install-checks-npm-6.1.1-e05db36ccf-8fb3ed05cf.zip +0 -0
  186. package/.yarn/cache/npm-normalize-package-bin-npm-3.0.1-6c120b50f7-de416d720a.zip +0 -0
  187. package/.yarn/cache/npm-npm-9.8.1-c06ac946c2-d3f12cd0c0.zip +0 -0
  188. package/.yarn/cache/npm-package-arg-npm-10.1.0-e9f0aaa69d-8fe4b6a742.zip +0 -0
  189. package/.yarn/cache/npm-packlist-npm-7.0.4-1c0b919056-5ffa1f8f0b.zip +0 -0
  190. package/.yarn/cache/npm-pick-manifest-npm-8.0.2-ec194cb513-c9f71b5735.zip +0 -0
  191. package/.yarn/cache/npm-profile-npm-7.0.1-73c58f96b1-c78d2e6394.zip +0 -0
  192. package/.yarn/cache/npm-registry-fetch-npm-14.0.5-6b3e6c0dd0-c636496429.zip +0 -0
  193. package/.yarn/cache/npm-user-validate-npm-2.0.0-2fa10ebf8a-52c0c64cb2.zip +0 -0
  194. package/.yarn/cache/npmlog-npm-7.0.1-a0f355f530-caabeb1f55.zip +0 -0
  195. package/.yarn/cache/pacote-npm-15.2.0-b9ed3321e9-c731572be2.zip +0 -0
  196. package/.yarn/cache/parse-conflict-json-npm-3.0.1-9455a1ad04-d8d2656bc0.zip +0 -0
  197. package/.yarn/cache/postcss-selector-parser-npm-6.0.13-f732d92326-f89163338a.zip +0 -0
  198. package/.yarn/cache/proc-log-npm-3.0.0-a8c21c2f0f-02b64e1b39.zip +0 -0
  199. package/.yarn/cache/process-npm-0.11.10-aeb3b641ae-bfcce49814.zip +0 -0
  200. package/.yarn/cache/promise-all-reject-late-npm-1.0.1-19ba0dce9c-d7d61ac412.zip +0 -0
  201. package/.yarn/cache/promise-call-limit-npm-1.0.2-2a84fbc485-d0664dd295.zip +0 -0
  202. package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
  203. package/.yarn/cache/promzard-npm-1.0.0-a0d17e2d53-c069488271.zip +0 -0
  204. package/.yarn/cache/qrcode-terminal-npm-0.12.0-f81f8a6a67-51638d11d0.zip +0 -0
  205. package/.yarn/cache/read-cmd-shim-npm-4.0.0-2339b15fb0-2fb5a8a389.zip +0 -0
  206. package/.yarn/cache/read-npm-2.1.0-0e0cb8a375-e745999138.zip +0 -0
  207. package/.yarn/cache/read-package-json-fast-npm-3.0.2-1232471a07-8d406869f0.zip +0 -0
  208. package/.yarn/cache/read-package-json-npm-6.0.4-bf5c705b94-ce40c46712.zip +0 -0
  209. package/.yarn/cache/readable-stream-npm-4.4.2-ac0d67d9ca-6f4063763d.zip +0 -0
  210. package/.yarn/cache/sigstore-npm-1.8.0-c7dd60d00a-9886278224.zip +0 -0
  211. package/.yarn/cache/spdx-correct-npm-3.2.0-ffae008484-e9ae98d22f.zip +0 -0
  212. package/.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip +0 -0
  213. package/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip +0 -0
  214. package/.yarn/cache/spdx-license-ids-npm-3.0.13-928dd45e3f-3469d85c65.zip +0 -0
  215. package/.yarn/cache/supports-color-npm-9.4.0-a415f39758-cb8ff8daea.zip +0 -0
  216. package/.yarn/cache/text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip +0 -0
  217. package/.yarn/cache/tiny-relative-date-npm-1.3.0-4737b1ee94-82a1fa2f3b.zip +0 -0
  218. package/.yarn/cache/treeverse-npm-3.0.0-6c6d119afd-73168d9887.zip +0 -0
  219. package/.yarn/cache/tuf-js-npm-1.1.7-045f70823d-089fc0dabe.zip +0 -0
  220. package/.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip +0 -0
  221. package/.yarn/cache/validate-npm-package-name-npm-5.0.0-fc061c1b84-5342a99498.zip +0 -0
  222. package/.yarn/cache/walk-up-path-npm-3.0.1-67ab100d5d-9ffca02fe3.zip +0 -0
  223. package/.yarn/cache/wcwidth-npm-1.0.1-05fa596453-814e9d1ddc.zip +0 -0
  224. package/.yarn/cache/which-npm-3.0.1-b2b0f09ace-adf720fe9d.zip +0 -0
  225. package/.yarn/cache/write-file-atomic-npm-5.0.1-52283db6ee-8dbb0e2512.zip +0 -0
  226. package/coverage/base.css +0 -223
  227. package/coverage/block-navigation.js +0 -79
  228. package/coverage/index.html +0 -123
  229. package/coverage/prettify.css +0 -1
  230. package/coverage/prettify.js +0 -2
  231. package/coverage/sort-arrow-sprite.png +0 -0
  232. package/coverage/sorter.js +0 -170
  233. package/coverage/src/api-client.js.html +0 -549
  234. package/coverage/src/content-fetch.js.html +0 -336
  235. package/coverage/src/index.html +0 -123
  236. package/coverage/src/methods/getContentItem.js.html +0 -285
  237. package/coverage/src/methods/getContentList.js.html +0 -486
  238. package/coverage/src/methods/getGallery.js.html +0 -243
  239. package/coverage/src/methods/getPage.js.html +0 -273
  240. package/coverage/src/methods/getSitemapFlat.js.html +0 -240
  241. package/coverage/src/methods/getSitemapNested.js.html +0 -231
  242. package/coverage/src/methods/getSyncContent.js.html +0 -258
  243. package/coverage/src/methods/getSyncPages.js.html +0 -258
  244. package/coverage/src/methods/getUrlRedirections.js.html +0 -339
  245. package/coverage/src/methods/index.html +0 -201
  246. package/coverage/src/methods/syncContentItems.js.html +0 -186
  247. package/coverage/src/methods/syncPageItems.js.html +0 -186
  248. package/coverage/src/types/FilterLogicOperator.js.html +0 -129
  249. package/coverage/src/types/FilterOperator.js.html +0 -156
  250. package/coverage/src/types/SortDirection.js.html +0 -129
  251. package/coverage/src/types/index.html +0 -123
  252. package/coverage/src/utils.js.html +0 -330
  253. package/dist/agility-content-fetch.browser.js +0 -420
  254. package/dist/agility-content-fetch.node.js +0 -10978
  255. package/dist/api-client.js +0 -316
  256. package/dist/index.js +0 -7
  257. package/dist/methods/getContentItem.js +0 -49
  258. package/dist/methods/getContentList.js +0 -94
  259. package/dist/methods/getGallery.js +0 -39
  260. package/dist/methods/getPage.js +0 -47
  261. package/dist/methods/getSitemapFlat.js +0 -26
  262. package/dist/methods/getSitemapNested.js +0 -23
  263. package/dist/methods/getSyncContent.js +0 -26
  264. package/dist/methods/getSyncPages.js +0 -26
  265. package/dist/methods/getUrlRedirections.js +0 -50
  266. package/dist/types/Client.js +0 -2
  267. package/dist/types/Config.js +0 -2
  268. package/dist/types/ContentItem.js +0 -2
  269. package/dist/types/ContentList.js +0 -9
  270. package/dist/types/ContentZone.js +0 -2
  271. package/dist/types/EnvConfig.js +0 -2
  272. package/dist/types/Filter.js +0 -10
  273. package/dist/types/FilterLogicOperator.js +0 -13
  274. package/dist/types/FilterOperator.js +0 -30
  275. package/dist/types/Gallery.js +0 -12
  276. package/dist/types/MediaItem.js +0 -13
  277. package/dist/types/MediaItemMetaData.js +0 -12
  278. package/dist/types/Page.js +0 -20
  279. package/dist/types/SEO.js +0 -11
  280. package/dist/types/SitemapFlat.js +0 -10
  281. package/dist/types/SitemapFlatItem.js +0 -17
  282. package/dist/types/SitemapNested.js +0 -7
  283. package/dist/types/SitemapNestedItem.js +0 -2
  284. package/dist/types/SitemapVisibility.js +0 -9
  285. package/dist/types/SortDirection.js +0 -13
  286. package/dist/types/SyncContent.js +0 -9
  287. package/dist/types/SyncPages.js +0 -9
  288. package/dist/types/SystemProperties.js +0 -11
  289. package/dist/types/UrlRedirection.js +0 -11
  290. package/dist/types/UrlRedirectionResponse.js +0 -9
  291. package/dist/types/index.js +0 -10
  292. package/dist/utils.js +0 -81
  293. package/test/apiClients.config.ts +0 -50
  294. package/test/getApi.tests.ts +0 -153
  295. package/test/getContentItem.tests.ts +0 -103
  296. package/test/getContentList.tests.ts +0 -251
  297. package/test/getGallery.tests.ts +0 -22
  298. package/test/getPage.tests.ts +0 -39
  299. package/test/getSitemapFlat.tests.ts +0 -30
  300. package/test/getSitemapNested.tests.ts +0 -30
  301. package/test/getSyncContentItems.tests.ts +0 -25
  302. package/test/getSyncPageItems.tests.ts +0 -27
  303. package/test/getUrlRedirections.tests.ts +0 -40
package/.jsdoc.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "source": {
3
- "include": ["src", "README.md", "package.json"],
4
- "includePattern": ".js$",
5
- "excludePattern": "(node_modules/|docs)"
6
- },
7
- "plugins": [
8
- "plugins/markdown"
9
- ],
10
- "recurse": 10,
11
- "templates": {
12
- "cleverLinks": false,
13
- "monospaceLinks": true,
14
- "useLongnameInNav": true,
15
- "showInheritedInNav": true
16
- },
17
- "tags": {
18
- "allowUnknownTags": true,
19
- "dictionaries": ["jsdoc"]
20
- },
21
- "source-type": "module",
22
- "opts": {
23
- "destination": "./docs/",
24
- "encoding": "utf8",
25
- "private": false,
26
- "recurse": true,
27
- "template": "./node_modules/agility-jsdoc-template"
28
- }
1
+ {
2
+ "source": {
3
+ "include": ["src", "README.md", "package.json"],
4
+ "includePattern": ".js$",
5
+ "excludePattern": "(node_modules/|docs)"
6
+ },
7
+ "plugins": [
8
+ "plugins/markdown"
9
+ ],
10
+ "recurse": 10,
11
+ "templates": {
12
+ "cleverLinks": false,
13
+ "monospaceLinks": true,
14
+ "useLongnameInNav": true,
15
+ "showInheritedInNav": true
16
+ },
17
+ "tags": {
18
+ "allowUnknownTags": true,
19
+ "dictionaries": ["jsdoc"]
20
+ },
21
+ "source-type": "module",
22
+ "opts": {
23
+ "destination": "./docs/",
24
+ "encoding": "utf8",
25
+ "private": false,
26
+ "recurse": true,
27
+ "template": "./node_modules/agility-jsdoc-template"
28
+ }
29
29
  }
Binary file
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Agility
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Agility
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.
package/README.md CHANGED
@@ -1,108 +1,108 @@
1
- [![Build Status](https://agility.visualstudio.com/Agility%20CMS/_apis/build/status/Fetch%20API/Agility%20Content%20Fetch%20JS%20SDK?branchName=master)](https://agility.visualstudio.com/Agility%20CMS/_build/latest?definitionId=59&branchName=master)
2
- [![Netlify Status](https://api.netlify.com/api/v1/badges/c45f5d6e-923b-4019-820e-826e6185017d/deploy-status)](https://app.netlify.com/sites/agilitydocs/deploys)
3
-
4
- # Agility Content Fetch JS SDK
5
- This is the official JavaScript library for accessing live and preview content from your [Agility CMS](https://agilitycms.com) instance.
6
-
7
- You can use this in both node and browser based JS apps.
8
-
9
- Don't have an Agility CMS instance? Sign up for [Free Trial](https://agilitycms.com/free) today!
10
-
11
- ## Features
12
- - Queries the high-availability, CDN backed Agility Fetch REST API
13
- - Get a sitemap for a given channel
14
- - Get a page, including its content zones, modules, and their content
15
- - Get a content item
16
- - Query a content list using a filter syntax
17
- - Get the details of a media gallery
18
- - Keep track of syncing content to your app
19
- - Optional in-memory caching
20
-
21
- ## Getting Started
22
- In order to use this sdk, you'll need to install the script and you'll also need to authenticate your requests.
23
-
24
- ### Prerequisites
25
- You must have access to an Agility instance to retrieve the *guid* and generate your *apiKey*. Or, you must have these values provided to you.
26
-
27
- ### Installation
28
- Install it using **npm** (recommended):
29
- ```
30
- npm install @agility/content-fetch
31
- ```
32
-
33
- If necessary, you can also reference a standalone package that can be used in a browser using a traditional **script** tag. In this case, the sdk can be accessed using a global variable by name of `agility`:
34
- ```html
35
- <!-- Use a specific version (i.e. 0.4.2) -->
36
- <script type="text/javascript" src="https://unpkg.com/@agility/content-fetch@0.4.2/dist/agility-content-fetch.browser.js"></script>
37
-
38
- <!-- Or, Use the latest version -->
39
- <script type="text/javascript" src="https://unpkg.com/@agility/content-fetch@latest/dist/agility-content-fetch.browser.js"></script>
40
- ```
41
- ### Making a Request
42
- ```javascript
43
- import agility from '@agility/content-fetch'
44
-
45
- //initialize the api client
46
- const api = agility.getApi({
47
- guid: 'ade6cf3c',
48
- apiKey: 'defaultlive.201ffdd0841cacad5bb647e76547e918b0c9ecdb8b5ddb3cf92e9a79b03623cb'
49
- });
50
-
51
- //make the request: get a content item with the ID '22'
52
- api.getContentItem({
53
- contentID: 22,
54
- locale: 'en-us'
55
- })
56
- .then(function(contentItem) {
57
- //on success
58
- console.log(contentItem);
59
- })
60
- .catch(function(error) {
61
- //on error
62
- console.log(error);
63
- });
64
- ```
65
-
66
- ## Documentation
67
- Full documentation for this SDK can be found in our [Agility Fetch JS SDK Reference Doc](https://agilitydocs.netlify.com/agility-content-fetch-js-sdk/).
68
-
69
- For docs & help around Agility CMS, please see [Agility CMS Documentation](https://help.agilitycms.com/hc/en-us)
70
-
71
- ## Tutorials
72
- [About the Content Fetch API](https://help.agilitycms.com/hc/en-us/articles/360031985112-About-the-Content-Fetch-API)
73
-
74
- [Authenticating your Content Fetch API Calls](https://help.agilitycms.com/hc/en-us/articles/360032225191-Authenticating-your-Content-Fetch-API-Calls)
75
-
76
- [Retrieving your API Key(s), Guid, and API URL](https://help.agilitycms.com/hc/en-us/articles/360031919212-Retrieving-your-API-Key-s-Guid-and-API-URL-)
77
-
78
- [Making your First Call with the Content Fetch API](https://help.agilitycms.com/hc/en-us/articles/360031918152-Making-your-First-API-Call-with-the-Content-Fetch-API)
79
-
80
- [Calilng the Content Fetch API using the Javascript SDK](https://help.agilitycms.com/hc/en-us/articles/360031945912-Calling-the-Content-Fetch-API-using-the-JavaScript-SDK)
81
-
82
- [Page Management in a Headless CMS](https://help.agilitycms.com/hc/en-us/articles/360032554331-Page-Management-in-a-Headless-CMS)
83
-
84
- [Using Agility CMS with Create React App](https://help.agilitycms.com/hc/en-us/articles/360031121692-Using-Agility-CMS-with-Create-React-App-CRA-)
85
-
86
- [Creating a Module for the Agility CMS Create React App](https://help.agilitycms.com/hc/en-us/articles/360031590791-Creating-a-Module-for-the-Agility-CMS-Create-React-App)
87
-
88
- [Creating a Page Template for the Agility CMS Create React App](https://help.agilitycms.com/hc/en-us/articles/360032611011-Creating-a-Page-Template-for-the-Agility-CMS-Create-React-App)
89
-
90
- [Deploying your Agility CMS Create React App](https://help.agilitycms.com/hc/en-us/articles/360032203552-Deploying-your-Agility-CMS-Create-React-App)
91
-
92
- [Content Webhooks](https://help.agilitycms.com/hc/en-us/articles/360035934911)
93
-
94
- ## Contributing
95
- If you would like to contribute to this SDK, you can fork the repository and submit a pull request. We'd love to include your updates.
96
-
97
- ### Running the Tests
98
- An essential part of contributing to this SDK is adding and running unit tests to ensure the stability of the project.
99
- ```
100
- > npm run test
101
- ```
102
-
103
-
104
-
105
-
106
-
107
-
108
-
1
+ [![Build Status](https://agility.visualstudio.com/Agility%20CMS/_apis/build/status/Fetch%20API/Agility%20Content%20Fetch%20JS%20SDK?branchName=master)](https://agility.visualstudio.com/Agility%20CMS/_build/latest?definitionId=59&branchName=master)
2
+ [![Netlify Status](https://api.netlify.com/api/v1/badges/c45f5d6e-923b-4019-820e-826e6185017d/deploy-status)](https://app.netlify.com/sites/agilitydocs/deploys)
3
+
4
+ # Agility Content Fetch JS SDK
5
+ This is the official JavaScript library for accessing live and preview content from your [Agility CMS](https://agilitycms.com) instance.
6
+
7
+ You can use this in both node and browser based JS apps.
8
+
9
+ Don't have an Agility CMS instance? Sign up for [Free Trial](https://agilitycms.com/free) today!
10
+
11
+ ## Features
12
+ - Queries the high-availability, CDN backed Agility Fetch REST API
13
+ - Get a sitemap for a given channel
14
+ - Get a page, including its content zones, modules, and their content
15
+ - Get a content item
16
+ - Query a content list using a filter syntax
17
+ - Get the details of a media gallery
18
+ - Keep track of syncing content to your app
19
+ - Optional in-memory caching
20
+
21
+ ## Getting Started
22
+ In order to use this sdk, you'll need to install the script and you'll also need to authenticate your requests.
23
+
24
+ ### Prerequisites
25
+ You must have access to an Agility instance to retrieve the *guid* and generate your *apiKey*. Or, you must have these values provided to you.
26
+
27
+ ### Installation
28
+ Install it using **npm** (recommended):
29
+ ```
30
+ npm install @agility/content-fetch
31
+ ```
32
+
33
+ If necessary, you can also reference a standalone package that can be used in a browser using a traditional **script** tag. In this case, the sdk can be accessed using a global variable by name of `agility`:
34
+ ```html
35
+ <!-- Use a specific version (i.e. 0.4.2) -->
36
+ <script type="text/javascript" src="https://unpkg.com/@agility/content-fetch@0.4.2/dist/agility-content-fetch.browser.js"></script>
37
+
38
+ <!-- Or, Use the latest version -->
39
+ <script type="text/javascript" src="https://unpkg.com/@agility/content-fetch@latest/dist/agility-content-fetch.browser.js"></script>
40
+ ```
41
+ ### Making a Request
42
+ ```javascript
43
+ import agility from '@agility/content-fetch'
44
+
45
+ //initialize the api client
46
+ const api = agility.getApi({
47
+ guid: 'ade6cf3c',
48
+ apiKey: 'defaultlive.201ffdd0841cacad5bb647e76547e918b0c9ecdb8b5ddb3cf92e9a79b03623cb'
49
+ });
50
+
51
+ //make the request: get a content item with the ID '22'
52
+ api.getContentItem({
53
+ contentID: 22,
54
+ locale: 'en-us'
55
+ })
56
+ .then(function(contentItem) {
57
+ //on success
58
+ console.log(contentItem);
59
+ })
60
+ .catch(function(error) {
61
+ //on error
62
+ console.log(error);
63
+ });
64
+ ```
65
+
66
+ ## Documentation
67
+ Full documentation for this SDK can be found in our [Agility Fetch JS SDK Reference Doc](https://agilitydocs.netlify.com/agility-content-fetch-js-sdk/).
68
+
69
+ For docs & help around Agility CMS, please see [Agility CMS Documentation](https://help.agilitycms.com/hc/en-us)
70
+
71
+ ## Tutorials
72
+ [About the Content Fetch API](https://help.agilitycms.com/hc/en-us/articles/360031985112-About-the-Content-Fetch-API)
73
+
74
+ [Authenticating your Content Fetch API Calls](https://help.agilitycms.com/hc/en-us/articles/360032225191-Authenticating-your-Content-Fetch-API-Calls)
75
+
76
+ [Retrieving your API Key(s), Guid, and API URL](https://help.agilitycms.com/hc/en-us/articles/360031919212-Retrieving-your-API-Key-s-Guid-and-API-URL-)
77
+
78
+ [Making your First Call with the Content Fetch API](https://help.agilitycms.com/hc/en-us/articles/360031918152-Making-your-First-API-Call-with-the-Content-Fetch-API)
79
+
80
+ [Calilng the Content Fetch API using the Javascript SDK](https://help.agilitycms.com/hc/en-us/articles/360031945912-Calling-the-Content-Fetch-API-using-the-JavaScript-SDK)
81
+
82
+ [Page Management in a Headless CMS](https://help.agilitycms.com/hc/en-us/articles/360032554331-Page-Management-in-a-Headless-CMS)
83
+
84
+ [Using Agility CMS with Create React App](https://help.agilitycms.com/hc/en-us/articles/360031121692-Using-Agility-CMS-with-Create-React-App-CRA-)
85
+
86
+ [Creating a Module for the Agility CMS Create React App](https://help.agilitycms.com/hc/en-us/articles/360031590791-Creating-a-Module-for-the-Agility-CMS-Create-React-App)
87
+
88
+ [Creating a Page Template for the Agility CMS Create React App](https://help.agilitycms.com/hc/en-us/articles/360032611011-Creating-a-Page-Template-for-the-Agility-CMS-Create-React-App)
89
+
90
+ [Deploying your Agility CMS Create React App](https://help.agilitycms.com/hc/en-us/articles/360032203552-Deploying-your-Agility-CMS-Create-React-App)
91
+
92
+ [Content Webhooks](https://help.agilitycms.com/hc/en-us/articles/360035934911)
93
+
94
+ ## Contributing
95
+ If you would like to contribute to this SDK, you can fork the repository and submit a pull request. We'd love to include your updates.
96
+
97
+ ### Running the Tests
98
+ An essential part of contributing to this SDK is adding and running unit tests to ensure the stability of the project.
99
+ ```
100
+ > npm run test
101
+ ```
102
+
103
+
104
+
105
+
106
+
107
+
108
+
package/build.js ADDED
@@ -0,0 +1,26 @@
1
+ const esbuild = require('esbuild');
2
+ const { execSync } = require('child_process');
3
+ const path = require('path');
4
+
5
+ console.log("Building...", path.resolve(__dirname, "src/index.ts"))
6
+ console.log("Building...", path.resolve(__dirname, "dist/browser.js"))
7
+
8
+ execSync('tsc --emitDeclarationOnly');
9
+
10
+ // Build for browser
11
+ esbuild.build({
12
+ entryPoints: ['./src/index.ts'],
13
+ bundle: true,
14
+ outfile: './dist/browser.js',
15
+ //target: ['chrome58', 'firefox57', 'safari11', 'edge16'],
16
+ platform: 'browser',
17
+ }).catch(() => process.exit(1));
18
+
19
+ // Build for Node.js
20
+ esbuild.build({
21
+ entryPoints: ['./src/index.ts'],
22
+ bundle: true,
23
+ outfile: './dist/node.js',
24
+ // target: ['node18'], // Adjust this to match your Node.js version
25
+ platform: 'node',
26
+ }).catch(() => process.exit(1));
@@ -42,5 +42,5 @@ declare class ApiClient {
42
42
  url: string;
43
43
  }): Promise<any>;
44
44
  }
45
- declare function getApi(config: Config): ApiClient;
45
+ export declare function getApi(config: Config): ApiClient;
46
46
  export default getApi;