scrapfly-sdk 0.5.1 → 0.6.4

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 (526) hide show
  1. package/README.md +35 -14
  2. package/esm/_dnt.shims.d.ts +6 -0
  3. package/esm/_dnt.shims.d.ts.map +1 -0
  4. package/esm/_dnt.shims.js +61 -0
  5. package/esm/client.d.ts +70 -0
  6. package/esm/client.d.ts.map +1 -0
  7. package/esm/client.js +364 -0
  8. package/esm/deps/jsr.io/@std/path/1.0.1/_common/assert_path.d.ts +2 -0
  9. package/esm/deps/jsr.io/@std/path/1.0.1/_common/assert_path.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/path/1.0.1/_common/assert_path.js +7 -0
  11. package/esm/deps/jsr.io/@std/path/1.0.1/_common/basename.d.ts +4 -0
  12. package/esm/deps/jsr.io/@std/path/1.0.1/_common/basename.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/path/1.0.1/_common/basename.js +40 -0
  14. package/esm/deps/jsr.io/@std/path/1.0.1/_common/common.d.ts +2 -0
  15. package/esm/deps/jsr.io/@std/path/1.0.1/_common/common.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/path/1.0.1/_common/common.js +23 -0
  17. package/esm/deps/jsr.io/@std/path/1.0.1/_common/constants.d.ts +40 -0
  18. package/esm/deps/jsr.io/@std/path/1.0.1/_common/constants.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/path/1.0.1/_common/constants.js +46 -0
  20. package/esm/deps/jsr.io/@std/path/1.0.1/_common/dirname.d.ts +2 -0
  21. package/esm/deps/jsr.io/@std/path/1.0.1/_common/dirname.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/path/1.0.1/_common/dirname.js +8 -0
  23. package/esm/deps/jsr.io/@std/path/1.0.1/_common/format.d.ts +4 -0
  24. package/esm/deps/jsr.io/@std/path/1.0.1/_common/format.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/path/1.0.1/_common/format.js +19 -0
  26. package/esm/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts +3 -0
  27. package/esm/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.js +9 -0
  29. package/esm/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.d.ts +35 -0
  30. package/esm/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.js +234 -0
  32. package/esm/deps/jsr.io/@std/path/1.0.1/_common/normalize.d.ts +2 -0
  33. package/esm/deps/jsr.io/@std/path/1.0.1/_common/normalize.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/path/1.0.1/_common/normalize.js +8 -0
  35. package/esm/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.d.ts +2 -0
  36. package/esm/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.js +77 -0
  38. package/esm/deps/jsr.io/@std/path/1.0.1/_common/relative.d.ts +2 -0
  39. package/esm/deps/jsr.io/@std/path/1.0.1/_common/relative.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/path/1.0.1/_common/relative.js +9 -0
  41. package/esm/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.d.ts +2 -0
  42. package/esm/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.js +19 -0
  44. package/esm/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.d.ts +2 -0
  45. package/esm/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.js +15 -0
  47. package/esm/deps/jsr.io/@std/path/1.0.1/_os.d.ts +2 -0
  48. package/esm/deps/jsr.io/@std/path/1.0.1/_os.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/path/1.0.1/_os.js +17 -0
  50. package/esm/deps/jsr.io/@std/path/1.0.1/basename.d.ts +25 -0
  51. package/esm/deps/jsr.io/@std/path/1.0.1/basename.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/path/1.0.1/basename.js +33 -0
  53. package/esm/deps/jsr.io/@std/path/1.0.1/common.d.ts +28 -0
  54. package/esm/deps/jsr.io/@std/path/1.0.1/common.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/path/1.0.1/common.js +33 -0
  56. package/esm/deps/jsr.io/@std/path/1.0.1/constants.d.ts +15 -0
  57. package/esm/deps/jsr.io/@std/path/1.0.1/constants.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/path/1.0.1/constants.js +17 -0
  59. package/esm/deps/jsr.io/@std/path/1.0.1/dirname.d.ts +20 -0
  60. package/esm/deps/jsr.io/@std/path/1.0.1/dirname.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/path/1.0.1/dirname.js +26 -0
  62. package/esm/deps/jsr.io/@std/path/1.0.1/extname.d.ts +20 -0
  63. package/esm/deps/jsr.io/@std/path/1.0.1/extname.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/path/1.0.1/extname.js +26 -0
  65. package/esm/deps/jsr.io/@std/path/1.0.1/format.d.ts +22 -0
  66. package/esm/deps/jsr.io/@std/path/1.0.1/format.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/path/1.0.1/format.js +27 -0
  68. package/esm/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts +23 -0
  69. package/esm/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@std/path/1.0.1/from_file_url.js +28 -0
  71. package/esm/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.d.ts +77 -0
  72. package/esm/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.js +83 -0
  74. package/esm/deps/jsr.io/@std/path/1.0.1/is_absolute.d.ts +22 -0
  75. package/esm/deps/jsr.io/@std/path/1.0.1/is_absolute.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/path/1.0.1/is_absolute.js +28 -0
  77. package/esm/deps/jsr.io/@std/path/1.0.1/is_glob.d.ts +17 -0
  78. package/esm/deps/jsr.io/@std/path/1.0.1/is_glob.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/path/1.0.1/is_glob.js +42 -0
  80. package/esm/deps/jsr.io/@std/path/1.0.1/join.d.ts +20 -0
  81. package/esm/deps/jsr.io/@std/path/1.0.1/join.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/path/1.0.1/join.js +26 -0
  83. package/esm/deps/jsr.io/@std/path/1.0.1/join_globs.d.ts +28 -0
  84. package/esm/deps/jsr.io/@std/path/1.0.1/join_globs.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/path/1.0.1/join_globs.js +34 -0
  86. package/esm/deps/jsr.io/@std/path/1.0.1/mod.d.ts +51 -0
  87. package/esm/deps/jsr.io/@std/path/1.0.1/mod.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/path/1.0.1/mod.js +54 -0
  89. package/esm/deps/jsr.io/@std/path/1.0.1/normalize.d.ts +24 -0
  90. package/esm/deps/jsr.io/@std/path/1.0.1/normalize.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@std/path/1.0.1/normalize.js +30 -0
  92. package/esm/deps/jsr.io/@std/path/1.0.1/normalize_glob.d.ts +29 -0
  93. package/esm/deps/jsr.io/@std/path/1.0.1/normalize_glob.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@std/path/1.0.1/normalize_glob.js +35 -0
  95. package/esm/deps/jsr.io/@std/path/1.0.1/parse.d.ts +35 -0
  96. package/esm/deps/jsr.io/@std/path/1.0.1/parse.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@std/path/1.0.1/parse.js +39 -0
  98. package/esm/deps/jsr.io/@std/path/1.0.1/posix/_util.d.ts +2 -0
  99. package/esm/deps/jsr.io/@std/path/1.0.1/posix/_util.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/path/1.0.1/posix/_util.js +8 -0
  101. package/esm/deps/jsr.io/@std/path/1.0.1/posix/basename.d.ts +20 -0
  102. package/esm/deps/jsr.io/@std/path/1.0.1/posix/basename.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@std/path/1.0.1/posix/basename.js +29 -0
  104. package/esm/deps/jsr.io/@std/path/1.0.1/posix/constants.d.ts +13 -0
  105. package/esm/deps/jsr.io/@std/path/1.0.1/posix/constants.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@std/path/1.0.1/posix/constants.js +14 -0
  107. package/esm/deps/jsr.io/@std/path/1.0.1/posix/dirname.d.ts +17 -0
  108. package/esm/deps/jsr.io/@std/path/1.0.1/posix/dirname.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@std/path/1.0.1/posix/dirname.js +47 -0
  110. package/esm/deps/jsr.io/@std/path/1.0.1/posix/extname.d.ts +18 -0
  111. package/esm/deps/jsr.io/@std/path/1.0.1/posix/extname.d.ts.map +1 -0
  112. package/esm/deps/jsr.io/@std/path/1.0.1/posix/extname.js +70 -0
  113. package/esm/deps/jsr.io/@std/path/1.0.1/posix/format.d.ts +24 -0
  114. package/esm/deps/jsr.io/@std/path/1.0.1/posix/format.d.ts.map +1 -0
  115. package/esm/deps/jsr.io/@std/path/1.0.1/posix/format.js +28 -0
  116. package/esm/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts +17 -0
  117. package/esm/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.js +21 -0
  119. package/esm/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.d.ts +72 -0
  120. package/esm/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.js +82 -0
  122. package/esm/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.d.ts +17 -0
  123. package/esm/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.js +23 -0
  125. package/esm/deps/jsr.io/@std/path/1.0.1/posix/join.d.ts +17 -0
  126. package/esm/deps/jsr.io/@std/path/1.0.1/posix/join.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@std/path/1.0.1/posix/join.js +26 -0
  128. package/esm/deps/jsr.io/@std/path/1.0.1/posix/join_globs.d.ts +20 -0
  129. package/esm/deps/jsr.io/@std/path/1.0.1/posix/join_globs.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@std/path/1.0.1/posix/join_globs.js +39 -0
  131. package/esm/deps/jsr.io/@std/path/1.0.1/posix/normalize.d.ts +19 -0
  132. package/esm/deps/jsr.io/@std/path/1.0.1/posix/normalize.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@std/path/1.0.1/posix/normalize.js +36 -0
  134. package/esm/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.d.ts +20 -0
  135. package/esm/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.js +31 -0
  137. package/esm/deps/jsr.io/@std/path/1.0.1/posix/parse.d.ts +25 -0
  138. package/esm/deps/jsr.io/@std/path/1.0.1/posix/parse.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@std/path/1.0.1/posix/parse.js +115 -0
  140. package/esm/deps/jsr.io/@std/path/1.0.1/posix/relative.d.ts +20 -0
  141. package/esm/deps/jsr.io/@std/path/1.0.1/posix/relative.d.ts.map +1 -0
  142. package/esm/deps/jsr.io/@std/path/1.0.1/posix/relative.js +106 -0
  143. package/esm/deps/jsr.io/@std/path/1.0.1/posix/resolve.d.ts +17 -0
  144. package/esm/deps/jsr.io/@std/path/1.0.1/posix/resolve.d.ts.map +1 -0
  145. package/esm/deps/jsr.io/@std/path/1.0.1/posix/resolve.js +59 -0
  146. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts +18 -0
  147. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts.map +1 -0
  148. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.js +27 -0
  149. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.d.ts +16 -0
  150. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.d.ts.map +1 -0
  151. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.js +20 -0
  152. package/esm/deps/jsr.io/@std/path/1.0.1/relative.d.ts +24 -0
  153. package/esm/deps/jsr.io/@std/path/1.0.1/relative.d.ts.map +1 -0
  154. package/esm/deps/jsr.io/@std/path/1.0.1/relative.js +30 -0
  155. package/esm/deps/jsr.io/@std/path/1.0.1/resolve.d.ts +22 -0
  156. package/esm/deps/jsr.io/@std/path/1.0.1/resolve.d.ts.map +1 -0
  157. package/esm/deps/jsr.io/@std/path/1.0.1/resolve.js +30 -0
  158. package/esm/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts +23 -0
  159. package/esm/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts.map +1 -0
  160. package/esm/deps/jsr.io/@std/path/1.0.1/to_file_url.js +28 -0
  161. package/esm/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.d.ts +21 -0
  162. package/esm/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.js +29 -0
  164. package/esm/deps/jsr.io/@std/path/1.0.1/types.d.ts +38 -0
  165. package/esm/deps/jsr.io/@std/path/1.0.1/types.d.ts.map +1 -0
  166. package/esm/deps/jsr.io/@std/path/1.0.1/types.js +3 -0
  167. package/esm/deps/jsr.io/@std/path/1.0.1/windows/_util.d.ts +4 -0
  168. package/esm/deps/jsr.io/@std/path/1.0.1/windows/_util.d.ts.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/1.0.1/windows/_util.js +15 -0
  170. package/esm/deps/jsr.io/@std/path/1.0.1/windows/basename.d.ts +20 -0
  171. package/esm/deps/jsr.io/@std/path/1.0.1/windows/basename.d.ts.map +1 -0
  172. package/esm/deps/jsr.io/@std/path/1.0.1/windows/basename.js +41 -0
  173. package/esm/deps/jsr.io/@std/path/1.0.1/windows/constants.d.ts +13 -0
  174. package/esm/deps/jsr.io/@std/path/1.0.1/windows/constants.d.ts.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/1.0.1/windows/constants.js +14 -0
  176. package/esm/deps/jsr.io/@std/path/1.0.1/windows/dirname.d.ts +17 -0
  177. package/esm/deps/jsr.io/@std/path/1.0.1/windows/dirname.d.ts.map +1 -0
  178. package/esm/deps/jsr.io/@std/path/1.0.1/windows/dirname.js +109 -0
  179. package/esm/deps/jsr.io/@std/path/1.0.1/windows/extname.d.ts +17 -0
  180. package/esm/deps/jsr.io/@std/path/1.0.1/windows/extname.d.ts.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/1.0.1/windows/extname.js +78 -0
  182. package/esm/deps/jsr.io/@std/path/1.0.1/windows/format.d.ts +24 -0
  183. package/esm/deps/jsr.io/@std/path/1.0.1/windows/format.d.ts.map +1 -0
  184. package/esm/deps/jsr.io/@std/path/1.0.1/windows/format.js +28 -0
  185. package/esm/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts +19 -0
  186. package/esm/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.js +30 -0
  188. package/esm/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.d.ts +71 -0
  189. package/esm/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.d.ts.map +1 -0
  190. package/esm/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.js +82 -0
  191. package/esm/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.d.ts +17 -0
  192. package/esm/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.d.ts.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.js +38 -0
  194. package/esm/deps/jsr.io/@std/path/1.0.1/windows/join.d.ts +17 -0
  195. package/esm/deps/jsr.io/@std/path/1.0.1/windows/join.d.ts.map +1 -0
  196. package/esm/deps/jsr.io/@std/path/1.0.1/windows/join.js +71 -0
  197. package/esm/deps/jsr.io/@std/path/1.0.1/windows/join_globs.d.ts +21 -0
  198. package/esm/deps/jsr.io/@std/path/1.0.1/windows/join_globs.d.ts.map +1 -0
  199. package/esm/deps/jsr.io/@std/path/1.0.1/windows/join_globs.js +40 -0
  200. package/esm/deps/jsr.io/@std/path/1.0.1/windows/normalize.d.ts +19 -0
  201. package/esm/deps/jsr.io/@std/path/1.0.1/windows/normalize.d.ts.map +1 -0
  202. package/esm/deps/jsr.io/@std/path/1.0.1/windows/normalize.js +131 -0
  203. package/esm/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.d.ts +20 -0
  204. package/esm/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.d.ts.map +1 -0
  205. package/esm/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.js +31 -0
  206. package/esm/deps/jsr.io/@std/path/1.0.1/windows/parse.d.ts +25 -0
  207. package/esm/deps/jsr.io/@std/path/1.0.1/windows/parse.d.ts.map +1 -0
  208. package/esm/deps/jsr.io/@std/path/1.0.1/windows/parse.js +176 -0
  209. package/esm/deps/jsr.io/@std/path/1.0.1/windows/relative.d.ts +23 -0
  210. package/esm/deps/jsr.io/@std/path/1.0.1/windows/relative.d.ts.map +1 -0
  211. package/esm/deps/jsr.io/@std/path/1.0.1/windows/relative.js +131 -0
  212. package/esm/deps/jsr.io/@std/path/1.0.1/windows/resolve.d.ts +17 -0
  213. package/esm/deps/jsr.io/@std/path/1.0.1/windows/resolve.d.ts.map +1 -0
  214. package/esm/deps/jsr.io/@std/path/1.0.1/windows/resolve.js +154 -0
  215. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts +18 -0
  216. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts.map +1 -0
  217. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.js +34 -0
  218. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.d.ts +17 -0
  219. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.d.ts.map +1 -0
  220. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.js +49 -0
  221. package/esm/deps.d.ts +4 -0
  222. package/esm/deps.d.ts.map +1 -0
  223. package/esm/deps.js +3 -0
  224. package/{build/src → esm}/errors.d.ts +9 -0
  225. package/esm/errors.d.ts.map +1 -0
  226. package/{build/src → esm}/errors.js +19 -3
  227. package/esm/extractionconfig.d.ts +47 -0
  228. package/esm/extractionconfig.d.ts.map +1 -0
  229. package/esm/extractionconfig.js +156 -0
  230. package/{build/src → esm}/logger.d.ts +1 -0
  231. package/esm/logger.d.ts.map +1 -0
  232. package/{build/src → esm}/logger.js +12 -3
  233. package/esm/main.d.ts +9 -0
  234. package/esm/main.d.ts.map +1 -0
  235. package/esm/main.js +7 -0
  236. package/esm/package.json +3 -0
  237. package/esm/polyfill.d.ts +6 -0
  238. package/esm/polyfill.d.ts.map +1 -0
  239. package/esm/polyfill.js +20 -0
  240. package/{build/src → esm}/result.d.ts +30 -4
  241. package/esm/result.d.ts.map +1 -0
  242. package/esm/result.js +118 -0
  243. package/esm/scrapeconfig.d.ts +120 -0
  244. package/esm/scrapeconfig.d.ts.map +1 -0
  245. package/esm/scrapeconfig.js +505 -0
  246. package/esm/screenshotconfig.d.ts +69 -0
  247. package/esm/screenshotconfig.d.ts.map +1 -0
  248. package/esm/screenshotconfig.js +220 -0
  249. package/{build/src → esm}/types.d.ts +1 -0
  250. package/esm/types.d.ts.map +1 -0
  251. package/esm/types.js +1 -0
  252. package/esm/utils.d.ts +10 -0
  253. package/esm/utils.d.ts.map +1 -0
  254. package/esm/utils.js +40 -0
  255. package/package.json +36 -61
  256. package/script/_dnt.shims.d.ts +6 -0
  257. package/script/_dnt.shims.d.ts.map +1 -0
  258. package/script/_dnt.shims.js +65 -0
  259. package/script/client.d.ts +70 -0
  260. package/script/client.d.ts.map +1 -0
  261. package/script/client.js +391 -0
  262. package/script/deps/jsr.io/@std/path/1.0.1/_common/assert_path.d.ts +2 -0
  263. package/script/deps/jsr.io/@std/path/1.0.1/_common/assert_path.d.ts.map +1 -0
  264. package/script/deps/jsr.io/@std/path/1.0.1/_common/assert_path.js +11 -0
  265. package/script/deps/jsr.io/@std/path/1.0.1/_common/basename.d.ts +4 -0
  266. package/script/deps/jsr.io/@std/path/1.0.1/_common/basename.d.ts.map +1 -0
  267. package/script/deps/jsr.io/@std/path/1.0.1/_common/basename.js +46 -0
  268. package/script/deps/jsr.io/@std/path/1.0.1/_common/common.d.ts +2 -0
  269. package/script/deps/jsr.io/@std/path/1.0.1/_common/common.d.ts.map +1 -0
  270. package/script/deps/jsr.io/@std/path/1.0.1/_common/common.js +27 -0
  271. package/script/deps/jsr.io/@std/path/1.0.1/_common/constants.d.ts +40 -0
  272. package/script/deps/jsr.io/@std/path/1.0.1/_common/constants.d.ts.map +1 -0
  273. package/script/deps/jsr.io/@std/path/1.0.1/_common/constants.js +49 -0
  274. package/script/deps/jsr.io/@std/path/1.0.1/_common/dirname.d.ts +2 -0
  275. package/script/deps/jsr.io/@std/path/1.0.1/_common/dirname.d.ts.map +1 -0
  276. package/script/deps/jsr.io/@std/path/1.0.1/_common/dirname.js +12 -0
  277. package/script/deps/jsr.io/@std/path/1.0.1/_common/format.d.ts +4 -0
  278. package/script/deps/jsr.io/@std/path/1.0.1/_common/format.d.ts.map +1 -0
  279. package/script/deps/jsr.io/@std/path/1.0.1/_common/format.js +24 -0
  280. package/script/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts +3 -0
  281. package/script/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts.map +1 -0
  282. package/script/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.js +13 -0
  283. package/script/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.d.ts +35 -0
  284. package/script/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.d.ts.map +1 -0
  285. package/script/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.js +238 -0
  286. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize.d.ts +2 -0
  287. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize.d.ts.map +1 -0
  288. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize.js +12 -0
  289. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.d.ts +2 -0
  290. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.d.ts.map +1 -0
  291. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.js +81 -0
  292. package/script/deps/jsr.io/@std/path/1.0.1/_common/relative.d.ts +2 -0
  293. package/script/deps/jsr.io/@std/path/1.0.1/_common/relative.d.ts.map +1 -0
  294. package/script/deps/jsr.io/@std/path/1.0.1/_common/relative.js +13 -0
  295. package/script/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.d.ts +2 -0
  296. package/script/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.d.ts.map +1 -0
  297. package/script/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.js +23 -0
  298. package/script/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.d.ts +2 -0
  299. package/script/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.d.ts.map +1 -0
  300. package/script/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.js +19 -0
  301. package/script/deps/jsr.io/@std/path/1.0.1/_os.d.ts +2 -0
  302. package/script/deps/jsr.io/@std/path/1.0.1/_os.d.ts.map +1 -0
  303. package/script/deps/jsr.io/@std/path/1.0.1/_os.js +43 -0
  304. package/script/deps/jsr.io/@std/path/1.0.1/basename.d.ts +25 -0
  305. package/script/deps/jsr.io/@std/path/1.0.1/basename.d.ts.map +1 -0
  306. package/script/deps/jsr.io/@std/path/1.0.1/basename.js +37 -0
  307. package/script/deps/jsr.io/@std/path/1.0.1/common.d.ts +28 -0
  308. package/script/deps/jsr.io/@std/path/1.0.1/common.d.ts.map +1 -0
  309. package/script/deps/jsr.io/@std/path/1.0.1/common.js +37 -0
  310. package/script/deps/jsr.io/@std/path/1.0.1/constants.d.ts +15 -0
  311. package/script/deps/jsr.io/@std/path/1.0.1/constants.d.ts.map +1 -0
  312. package/script/deps/jsr.io/@std/path/1.0.1/constants.js +20 -0
  313. package/script/deps/jsr.io/@std/path/1.0.1/dirname.d.ts +20 -0
  314. package/script/deps/jsr.io/@std/path/1.0.1/dirname.d.ts.map +1 -0
  315. package/script/deps/jsr.io/@std/path/1.0.1/dirname.js +30 -0
  316. package/script/deps/jsr.io/@std/path/1.0.1/extname.d.ts +20 -0
  317. package/script/deps/jsr.io/@std/path/1.0.1/extname.d.ts.map +1 -0
  318. package/script/deps/jsr.io/@std/path/1.0.1/extname.js +30 -0
  319. package/script/deps/jsr.io/@std/path/1.0.1/format.d.ts +22 -0
  320. package/script/deps/jsr.io/@std/path/1.0.1/format.d.ts.map +1 -0
  321. package/script/deps/jsr.io/@std/path/1.0.1/format.js +31 -0
  322. package/script/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts +23 -0
  323. package/script/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts.map +1 -0
  324. package/script/deps/jsr.io/@std/path/1.0.1/from_file_url.js +32 -0
  325. package/script/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.d.ts +77 -0
  326. package/script/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.d.ts.map +1 -0
  327. package/script/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.js +87 -0
  328. package/script/deps/jsr.io/@std/path/1.0.1/is_absolute.d.ts +22 -0
  329. package/script/deps/jsr.io/@std/path/1.0.1/is_absolute.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@std/path/1.0.1/is_absolute.js +32 -0
  331. package/script/deps/jsr.io/@std/path/1.0.1/is_glob.d.ts +17 -0
  332. package/script/deps/jsr.io/@std/path/1.0.1/is_glob.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@std/path/1.0.1/is_glob.js +46 -0
  334. package/script/deps/jsr.io/@std/path/1.0.1/join.d.ts +20 -0
  335. package/script/deps/jsr.io/@std/path/1.0.1/join.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@std/path/1.0.1/join.js +30 -0
  337. package/script/deps/jsr.io/@std/path/1.0.1/join_globs.d.ts +28 -0
  338. package/script/deps/jsr.io/@std/path/1.0.1/join_globs.d.ts.map +1 -0
  339. package/script/deps/jsr.io/@std/path/1.0.1/join_globs.js +38 -0
  340. package/script/deps/jsr.io/@std/path/1.0.1/mod.d.ts +51 -0
  341. package/script/deps/jsr.io/@std/path/1.0.1/mod.d.ts.map +1 -0
  342. package/script/deps/jsr.io/@std/path/1.0.1/mod.js +70 -0
  343. package/script/deps/jsr.io/@std/path/1.0.1/normalize.d.ts +24 -0
  344. package/script/deps/jsr.io/@std/path/1.0.1/normalize.d.ts.map +1 -0
  345. package/script/deps/jsr.io/@std/path/1.0.1/normalize.js +34 -0
  346. package/script/deps/jsr.io/@std/path/1.0.1/normalize_glob.d.ts +29 -0
  347. package/script/deps/jsr.io/@std/path/1.0.1/normalize_glob.d.ts.map +1 -0
  348. package/script/deps/jsr.io/@std/path/1.0.1/normalize_glob.js +39 -0
  349. package/script/deps/jsr.io/@std/path/1.0.1/parse.d.ts +35 -0
  350. package/script/deps/jsr.io/@std/path/1.0.1/parse.d.ts.map +1 -0
  351. package/script/deps/jsr.io/@std/path/1.0.1/parse.js +43 -0
  352. package/script/deps/jsr.io/@std/path/1.0.1/posix/_util.d.ts +2 -0
  353. package/script/deps/jsr.io/@std/path/1.0.1/posix/_util.d.ts.map +1 -0
  354. package/script/deps/jsr.io/@std/path/1.0.1/posix/_util.js +12 -0
  355. package/script/deps/jsr.io/@std/path/1.0.1/posix/basename.d.ts +20 -0
  356. package/script/deps/jsr.io/@std/path/1.0.1/posix/basename.d.ts.map +1 -0
  357. package/script/deps/jsr.io/@std/path/1.0.1/posix/basename.js +33 -0
  358. package/script/deps/jsr.io/@std/path/1.0.1/posix/constants.d.ts +13 -0
  359. package/script/deps/jsr.io/@std/path/1.0.1/posix/constants.d.ts.map +1 -0
  360. package/script/deps/jsr.io/@std/path/1.0.1/posix/constants.js +17 -0
  361. package/script/deps/jsr.io/@std/path/1.0.1/posix/dirname.d.ts +17 -0
  362. package/script/deps/jsr.io/@std/path/1.0.1/posix/dirname.d.ts.map +1 -0
  363. package/script/deps/jsr.io/@std/path/1.0.1/posix/dirname.js +51 -0
  364. package/script/deps/jsr.io/@std/path/1.0.1/posix/extname.d.ts +18 -0
  365. package/script/deps/jsr.io/@std/path/1.0.1/posix/extname.d.ts.map +1 -0
  366. package/script/deps/jsr.io/@std/path/1.0.1/posix/extname.js +74 -0
  367. package/script/deps/jsr.io/@std/path/1.0.1/posix/format.d.ts +24 -0
  368. package/script/deps/jsr.io/@std/path/1.0.1/posix/format.d.ts.map +1 -0
  369. package/script/deps/jsr.io/@std/path/1.0.1/posix/format.js +32 -0
  370. package/script/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts +17 -0
  371. package/script/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts.map +1 -0
  372. package/script/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.js +25 -0
  373. package/script/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.d.ts +72 -0
  374. package/script/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.d.ts.map +1 -0
  375. package/script/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.js +86 -0
  376. package/script/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.d.ts +17 -0
  377. package/script/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.d.ts.map +1 -0
  378. package/script/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.js +27 -0
  379. package/script/deps/jsr.io/@std/path/1.0.1/posix/join.d.ts +17 -0
  380. package/script/deps/jsr.io/@std/path/1.0.1/posix/join.d.ts.map +1 -0
  381. package/script/deps/jsr.io/@std/path/1.0.1/posix/join.js +30 -0
  382. package/script/deps/jsr.io/@std/path/1.0.1/posix/join_globs.d.ts +20 -0
  383. package/script/deps/jsr.io/@std/path/1.0.1/posix/join_globs.d.ts.map +1 -0
  384. package/script/deps/jsr.io/@std/path/1.0.1/posix/join_globs.js +43 -0
  385. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize.d.ts +19 -0
  386. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize.d.ts.map +1 -0
  387. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize.js +40 -0
  388. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.d.ts +20 -0
  389. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.d.ts.map +1 -0
  390. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.js +35 -0
  391. package/script/deps/jsr.io/@std/path/1.0.1/posix/parse.d.ts +25 -0
  392. package/script/deps/jsr.io/@std/path/1.0.1/posix/parse.d.ts.map +1 -0
  393. package/script/deps/jsr.io/@std/path/1.0.1/posix/parse.js +119 -0
  394. package/script/deps/jsr.io/@std/path/1.0.1/posix/relative.d.ts +20 -0
  395. package/script/deps/jsr.io/@std/path/1.0.1/posix/relative.d.ts.map +1 -0
  396. package/script/deps/jsr.io/@std/path/1.0.1/posix/relative.js +110 -0
  397. package/script/deps/jsr.io/@std/path/1.0.1/posix/resolve.d.ts +17 -0
  398. package/script/deps/jsr.io/@std/path/1.0.1/posix/resolve.d.ts.map +1 -0
  399. package/script/deps/jsr.io/@std/path/1.0.1/posix/resolve.js +86 -0
  400. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts +18 -0
  401. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts.map +1 -0
  402. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.js +31 -0
  403. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.d.ts +16 -0
  404. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.d.ts.map +1 -0
  405. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.js +24 -0
  406. package/script/deps/jsr.io/@std/path/1.0.1/relative.d.ts +24 -0
  407. package/script/deps/jsr.io/@std/path/1.0.1/relative.d.ts.map +1 -0
  408. package/script/deps/jsr.io/@std/path/1.0.1/relative.js +34 -0
  409. package/script/deps/jsr.io/@std/path/1.0.1/resolve.d.ts +22 -0
  410. package/script/deps/jsr.io/@std/path/1.0.1/resolve.d.ts.map +1 -0
  411. package/script/deps/jsr.io/@std/path/1.0.1/resolve.js +34 -0
  412. package/script/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts +23 -0
  413. package/script/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts.map +1 -0
  414. package/script/deps/jsr.io/@std/path/1.0.1/to_file_url.js +32 -0
  415. package/script/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.d.ts +21 -0
  416. package/script/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.d.ts.map +1 -0
  417. package/script/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.js +33 -0
  418. package/script/deps/jsr.io/@std/path/1.0.1/types.d.ts +38 -0
  419. package/script/deps/jsr.io/@std/path/1.0.1/types.d.ts.map +1 -0
  420. package/script/deps/jsr.io/@std/path/1.0.1/types.js +4 -0
  421. package/script/deps/jsr.io/@std/path/1.0.1/windows/_util.d.ts +4 -0
  422. package/script/deps/jsr.io/@std/path/1.0.1/windows/_util.d.ts.map +1 -0
  423. package/script/deps/jsr.io/@std/path/1.0.1/windows/_util.js +21 -0
  424. package/script/deps/jsr.io/@std/path/1.0.1/windows/basename.d.ts +20 -0
  425. package/script/deps/jsr.io/@std/path/1.0.1/windows/basename.d.ts.map +1 -0
  426. package/script/deps/jsr.io/@std/path/1.0.1/windows/basename.js +45 -0
  427. package/script/deps/jsr.io/@std/path/1.0.1/windows/constants.d.ts +13 -0
  428. package/script/deps/jsr.io/@std/path/1.0.1/windows/constants.d.ts.map +1 -0
  429. package/script/deps/jsr.io/@std/path/1.0.1/windows/constants.js +17 -0
  430. package/script/deps/jsr.io/@std/path/1.0.1/windows/dirname.d.ts +17 -0
  431. package/script/deps/jsr.io/@std/path/1.0.1/windows/dirname.d.ts.map +1 -0
  432. package/script/deps/jsr.io/@std/path/1.0.1/windows/dirname.js +113 -0
  433. package/script/deps/jsr.io/@std/path/1.0.1/windows/extname.d.ts +17 -0
  434. package/script/deps/jsr.io/@std/path/1.0.1/windows/extname.d.ts.map +1 -0
  435. package/script/deps/jsr.io/@std/path/1.0.1/windows/extname.js +82 -0
  436. package/script/deps/jsr.io/@std/path/1.0.1/windows/format.d.ts +24 -0
  437. package/script/deps/jsr.io/@std/path/1.0.1/windows/format.d.ts.map +1 -0
  438. package/script/deps/jsr.io/@std/path/1.0.1/windows/format.js +32 -0
  439. package/script/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts +19 -0
  440. package/script/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts.map +1 -0
  441. package/script/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.js +34 -0
  442. package/script/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.d.ts +71 -0
  443. package/script/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.d.ts.map +1 -0
  444. package/script/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.js +86 -0
  445. package/script/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.d.ts +17 -0
  446. package/script/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.d.ts.map +1 -0
  447. package/script/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.js +42 -0
  448. package/script/deps/jsr.io/@std/path/1.0.1/windows/join.d.ts +17 -0
  449. package/script/deps/jsr.io/@std/path/1.0.1/windows/join.d.ts.map +1 -0
  450. package/script/deps/jsr.io/@std/path/1.0.1/windows/join.js +75 -0
  451. package/script/deps/jsr.io/@std/path/1.0.1/windows/join_globs.d.ts +21 -0
  452. package/script/deps/jsr.io/@std/path/1.0.1/windows/join_globs.d.ts.map +1 -0
  453. package/script/deps/jsr.io/@std/path/1.0.1/windows/join_globs.js +44 -0
  454. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize.d.ts +19 -0
  455. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize.d.ts.map +1 -0
  456. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize.js +135 -0
  457. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.d.ts +20 -0
  458. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.d.ts.map +1 -0
  459. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.js +35 -0
  460. package/script/deps/jsr.io/@std/path/1.0.1/windows/parse.d.ts +25 -0
  461. package/script/deps/jsr.io/@std/path/1.0.1/windows/parse.d.ts.map +1 -0
  462. package/script/deps/jsr.io/@std/path/1.0.1/windows/parse.js +180 -0
  463. package/script/deps/jsr.io/@std/path/1.0.1/windows/relative.d.ts +23 -0
  464. package/script/deps/jsr.io/@std/path/1.0.1/windows/relative.d.ts.map +1 -0
  465. package/script/deps/jsr.io/@std/path/1.0.1/windows/relative.js +135 -0
  466. package/script/deps/jsr.io/@std/path/1.0.1/windows/resolve.d.ts +17 -0
  467. package/script/deps/jsr.io/@std/path/1.0.1/windows/resolve.d.ts.map +1 -0
  468. package/script/deps/jsr.io/@std/path/1.0.1/windows/resolve.js +181 -0
  469. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts +18 -0
  470. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts.map +1 -0
  471. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.js +38 -0
  472. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.d.ts +17 -0
  473. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.d.ts.map +1 -0
  474. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.js +53 -0
  475. package/script/deps.d.ts +4 -0
  476. package/script/deps.d.ts.map +1 -0
  477. package/script/deps.js +30 -0
  478. package/script/errors.d.ts +53 -0
  479. package/script/errors.d.ts.map +1 -0
  480. package/script/errors.js +102 -0
  481. package/script/extractionconfig.d.ts +47 -0
  482. package/script/extractionconfig.d.ts.map +1 -0
  483. package/script/extractionconfig.js +183 -0
  484. package/script/logger.d.ts +19 -0
  485. package/script/logger.d.ts.map +1 -0
  486. package/script/logger.js +58 -0
  487. package/script/main.d.ts +9 -0
  488. package/script/main.d.ts.map +1 -0
  489. package/script/main.js +46 -0
  490. package/script/package.json +3 -0
  491. package/script/polyfill.d.ts +6 -0
  492. package/script/polyfill.d.ts.map +1 -0
  493. package/script/polyfill.js +48 -0
  494. package/script/result.d.ts +297 -0
  495. package/script/result.d.ts.map +1 -0
  496. package/script/result.js +147 -0
  497. package/script/scrapeconfig.d.ts +120 -0
  498. package/script/scrapeconfig.d.ts.map +1 -0
  499. package/script/scrapeconfig.js +509 -0
  500. package/script/screenshotconfig.d.ts +69 -0
  501. package/script/screenshotconfig.d.ts.map +1 -0
  502. package/script/screenshotconfig.js +224 -0
  503. package/script/types.d.ts +3 -0
  504. package/script/types.d.ts.map +1 -0
  505. package/script/types.js +2 -0
  506. package/script/utils.d.ts +10 -0
  507. package/script/utils.d.ts.map +1 -0
  508. package/script/utils.js +45 -0
  509. package/build/src/client.d.ts +0 -45
  510. package/build/src/client.js +0 -199
  511. package/build/src/client.js.map +0 -1
  512. package/build/src/errors.js.map +0 -1
  513. package/build/src/logger.js.map +0 -1
  514. package/build/src/main.d.ts +0 -5
  515. package/build/src/main.js +0 -6
  516. package/build/src/main.js.map +0 -1
  517. package/build/src/result.js +0 -30
  518. package/build/src/result.js.map +0 -1
  519. package/build/src/scrapeconfig.d.ts +0 -85
  520. package/build/src/scrapeconfig.js +0 -257
  521. package/build/src/scrapeconfig.js.map +0 -1
  522. package/build/src/types.js +0 -2
  523. package/build/src/types.js.map +0 -1
  524. package/build/src/utils.d.ts +0 -1
  525. package/build/src/utils.js +0 -7
  526. package/build/src/utils.js.map +0 -1
@@ -0,0 +1,23 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Converts a path string to a file URL.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { toFileUrl } from "@std/path/to-file-url";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * if (Deno.build.os === "windows") {
11
+ * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo"));
12
+ * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo"));
13
+ * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo"));
14
+ * } else {
15
+ * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo"));
16
+ * }
17
+ * ```
18
+ *
19
+ * @param path Path to convert to file URL.
20
+ * @returns The file URL equivalent to the path.
21
+ */
22
+ export declare function toFileUrl(path: string): URL;
23
+ //# sourceMappingURL=to_file_url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.1/to_file_url.ts"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAE3C"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.toFileUrl = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ const to_file_url_js_1 = require("./posix/to_file_url.js");
8
+ const to_file_url_js_2 = require("./windows/to_file_url.js");
9
+ /**
10
+ * Converts a path string to a file URL.
11
+ *
12
+ * @example Usage
13
+ * ```ts
14
+ * import { toFileUrl } from "@std/path/to-file-url";
15
+ * import { assertEquals } from "@std/assert";
16
+ *
17
+ * if (Deno.build.os === "windows") {
18
+ * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo"));
19
+ * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo"));
20
+ * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo"));
21
+ * } else {
22
+ * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo"));
23
+ * }
24
+ * ```
25
+ *
26
+ * @param path Path to convert to file URL.
27
+ * @returns The file URL equivalent to the path.
28
+ */
29
+ function toFileUrl(path) {
30
+ return _os_js_1.isWindows ? (0, to_file_url_js_2.toFileUrl)(path) : (0, to_file_url_js_1.toFileUrl)(path);
31
+ }
32
+ exports.toFileUrl = toFileUrl;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Resolves path to a namespace path. This is a no-op on
3
+ * non-windows systems.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { toNamespacedPath } from "@std/path/to-namespaced-path";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * if (Deno.build.os === "windows") {
11
+ * assertEquals(toNamespacedPath("C:\\foo\\bar"), "\\\\?\\C:\\foo\\bar");
12
+ * } else {
13
+ * assertEquals(toNamespacedPath("/foo/bar"), "/foo/bar");
14
+ * }
15
+ * ```
16
+ *
17
+ * @param path Path to resolve to namespace.
18
+ * @returns The resolved namespace path.
19
+ */
20
+ export declare function toNamespacedPath(path: string): string;
21
+ //# sourceMappingURL=to_namespaced_path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to_namespaced_path.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIrD"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.toNamespacedPath = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ const to_namespaced_path_js_1 = require("./posix/to_namespaced_path.js");
8
+ const to_namespaced_path_js_2 = require("./windows/to_namespaced_path.js");
9
+ /**
10
+ * Resolves path to a namespace path. This is a no-op on
11
+ * non-windows systems.
12
+ *
13
+ * @example Usage
14
+ * ```ts
15
+ * import { toNamespacedPath } from "@std/path/to-namespaced-path";
16
+ * import { assertEquals } from "@std/assert";
17
+ *
18
+ * if (Deno.build.os === "windows") {
19
+ * assertEquals(toNamespacedPath("C:\\foo\\bar"), "\\\\?\\C:\\foo\\bar");
20
+ * } else {
21
+ * assertEquals(toNamespacedPath("/foo/bar"), "/foo/bar");
22
+ * }
23
+ * ```
24
+ *
25
+ * @param path Path to resolve to namespace.
26
+ * @returns The resolved namespace path.
27
+ */
28
+ function toNamespacedPath(path) {
29
+ return _os_js_1.isWindows
30
+ ? (0, to_namespaced_path_js_2.toNamespacedPath)(path)
31
+ : (0, to_namespaced_path_js_1.toNamespacedPath)(path);
32
+ }
33
+ exports.toNamespacedPath = toNamespacedPath;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * A parsed path object generated by path.parse() or consumed by path.format().
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { parse } from "@std/path";
7
+ *
8
+ * const parsedPathObj = parse("c:\\path\\dir\\index.html");
9
+ * parsedPathObj.root; // "c:\\"
10
+ * parsedPathObj.dir; // "c:\\path\\dir"
11
+ * parsedPathObj.base; // "index.html"
12
+ * parsedPathObj.ext; // ".html"
13
+ * parsedPathObj.name; // "index"
14
+ * ```
15
+ */
16
+ export interface ParsedPath {
17
+ /**
18
+ * The root of the path such as '/' or 'c:\'
19
+ */
20
+ root: string;
21
+ /**
22
+ * The full directory path of the parent such as '/home/user/dir' or 'c:\path\dir'
23
+ */
24
+ dir: string;
25
+ /**
26
+ * The file name including extension (if any) such as 'index.html'
27
+ */
28
+ base: string;
29
+ /**
30
+ * The file extension (if any) such as '.html'
31
+ */
32
+ ext: string;
33
+ /**
34
+ * The file name without extension (if any) such as 'index'
35
+ */
36
+ name: string;
37
+ }
38
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.1/types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare function isPosixPathSeparator(code: number): boolean;
2
+ export declare function isPathSeparator(code: number): boolean;
3
+ export declare function isWindowsDeviceRoot(code: number): boolean;
4
+ //# sourceMappingURL=_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/_util.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKzD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // Copyright the Browserify authors. MIT License.
4
+ // Ported from https://github.com/browserify/path-browserify/
5
+ // This module is browser compatible.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.isWindowsDeviceRoot = exports.isPathSeparator = exports.isPosixPathSeparator = void 0;
8
+ const constants_js_1 = require("../_common/constants.js");
9
+ function isPosixPathSeparator(code) {
10
+ return code === constants_js_1.CHAR_FORWARD_SLASH;
11
+ }
12
+ exports.isPosixPathSeparator = isPosixPathSeparator;
13
+ function isPathSeparator(code) {
14
+ return code === constants_js_1.CHAR_FORWARD_SLASH || code === constants_js_1.CHAR_BACKWARD_SLASH;
15
+ }
16
+ exports.isPathSeparator = isPathSeparator;
17
+ function isWindowsDeviceRoot(code) {
18
+ return ((code >= constants_js_1.CHAR_LOWERCASE_A && code <= constants_js_1.CHAR_LOWERCASE_Z) ||
19
+ (code >= constants_js_1.CHAR_UPPERCASE_A && code <= constants_js_1.CHAR_UPPERCASE_Z));
20
+ }
21
+ exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Return the last portion of a `path`.
3
+ * Trailing directory separators are ignored, and optional suffix is removed.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { basename } from "@std/path/windows/basename";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * assertEquals(basename("C:\\user\\Documents\\"), "Documents");
11
+ * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
12
+ * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
13
+ * ```
14
+ *
15
+ * @param path The path to extract the name from.
16
+ * @param suffix The suffix to remove from extracted name.
17
+ * @returns The extracted name.
18
+ */
19
+ export declare function basename(path: string, suffix?: string): string;
20
+ //# sourceMappingURL=basename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/basename.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAK,GAAG,MAAM,CAiB1D"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.basename = void 0;
6
+ const basename_js_1 = require("../_common/basename.js");
7
+ const constants_js_1 = require("../_common/constants.js");
8
+ const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
9
+ const _util_js_1 = require("./_util.js");
10
+ /**
11
+ * Return the last portion of a `path`.
12
+ * Trailing directory separators are ignored, and optional suffix is removed.
13
+ *
14
+ * @example Usage
15
+ * ```ts
16
+ * import { basename } from "@std/path/windows/basename";
17
+ * import { assertEquals } from "@std/assert";
18
+ *
19
+ * assertEquals(basename("C:\\user\\Documents\\"), "Documents");
20
+ * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
21
+ * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
22
+ * ```
23
+ *
24
+ * @param path The path to extract the name from.
25
+ * @param suffix The suffix to remove from extracted name.
26
+ * @returns The extracted name.
27
+ */
28
+ function basename(path, suffix = "") {
29
+ (0, basename_js_1.assertArgs)(path, suffix);
30
+ // Check for a drive letter prefix so as not to mistake the following
31
+ // path separator as an extra separator at the end of the path that can be
32
+ // disregarded
33
+ let start = 0;
34
+ if (path.length >= 2) {
35
+ const drive = path.charCodeAt(0);
36
+ if ((0, _util_js_1.isWindowsDeviceRoot)(drive)) {
37
+ if (path.charCodeAt(1) === constants_js_1.CHAR_COLON)
38
+ start = 2;
39
+ }
40
+ }
41
+ const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPathSeparator, start);
42
+ const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPathSeparator);
43
+ return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
44
+ }
45
+ exports.basename = basename;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The character used to separate entries in the PATH environment variable.
3
+ */
4
+ export declare const DELIMITER: ";";
5
+ /**
6
+ * The character used to separate components of a file path.
7
+ */
8
+ export declare const SEPARATOR: "\\";
9
+ /**
10
+ * A regular expression that matches one or more path separators.
11
+ */
12
+ export declare const SEPARATOR_PATTERN: RegExp;
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,MAAgB,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAW,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SEPARATOR_PATTERN = exports.SEPARATOR = exports.DELIMITER = void 0;
6
+ /**
7
+ * The character used to separate entries in the PATH environment variable.
8
+ */
9
+ exports.DELIMITER = ";";
10
+ /**
11
+ * The character used to separate components of a file path.
12
+ */
13
+ exports.SEPARATOR = "\\";
14
+ /**
15
+ * A regular expression that matches one or more path separators.
16
+ */
17
+ exports.SEPARATOR_PATTERN = /[\\/]+/;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Return the directory path of a `path`.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { dirname } from "@std/path/windows/dirname";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * const dir = dirname("C:\\foo\\bar\\baz.ext");
10
+ * assertEquals(dir, "C:\\foo\\bar");
11
+ * ```
12
+ *
13
+ * @param path The path to get the directory from.
14
+ * @returns The directory path.
15
+ */
16
+ export declare function dirname(path: string): string;
17
+ //# sourceMappingURL=dirname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/dirname.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsF5C"}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.dirname = void 0;
6
+ const dirname_js_1 = require("../_common/dirname.js");
7
+ const constants_js_1 = require("../_common/constants.js");
8
+ const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
9
+ const _util_js_1 = require("./_util.js");
10
+ /**
11
+ * Return the directory path of a `path`.
12
+ *
13
+ * @example Usage
14
+ * ```ts
15
+ * import { dirname } from "@std/path/windows/dirname";
16
+ * import { assertEquals } from "@std/assert";
17
+ *
18
+ * const dir = dirname("C:\\foo\\bar\\baz.ext");
19
+ * assertEquals(dir, "C:\\foo\\bar");
20
+ * ```
21
+ *
22
+ * @param path The path to get the directory from.
23
+ * @returns The directory path.
24
+ */
25
+ function dirname(path) {
26
+ (0, dirname_js_1.assertArg)(path);
27
+ const len = path.length;
28
+ let rootEnd = -1;
29
+ let end = -1;
30
+ let matchedSlash = true;
31
+ let offset = 0;
32
+ const code = path.charCodeAt(0);
33
+ // Try to match a root
34
+ if (len > 1) {
35
+ if ((0, _util_js_1.isPathSeparator)(code)) {
36
+ // Possible UNC root
37
+ rootEnd = offset = 1;
38
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(1))) {
39
+ // Matched double path separator at beginning
40
+ let j = 2;
41
+ let last = j;
42
+ // Match 1 or more non-path separators
43
+ for (; j < len; ++j) {
44
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
45
+ break;
46
+ }
47
+ if (j < len && j !== last) {
48
+ // Matched!
49
+ last = j;
50
+ // Match 1 or more path separators
51
+ for (; j < len; ++j) {
52
+ if (!(0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
53
+ break;
54
+ }
55
+ if (j < len && j !== last) {
56
+ // Matched!
57
+ last = j;
58
+ // Match 1 or more non-path separators
59
+ for (; j < len; ++j) {
60
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
61
+ break;
62
+ }
63
+ if (j === len) {
64
+ // We matched a UNC root only
65
+ return path;
66
+ }
67
+ if (j !== last) {
68
+ // We matched a UNC root with leftovers
69
+ // Offset by 1 to include the separator after the UNC root to
70
+ // treat it as a "normal root" on top of a (UNC) root
71
+ rootEnd = offset = j + 1;
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
78
+ // Possible device root
79
+ if (path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
80
+ rootEnd = offset = 2;
81
+ if (len > 2) {
82
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2)))
83
+ rootEnd = offset = 3;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ else if ((0, _util_js_1.isPathSeparator)(code)) {
89
+ // `path` contains just a path separator, exit early to avoid
90
+ // unnecessary work
91
+ return path;
92
+ }
93
+ for (let i = len - 1; i >= offset; --i) {
94
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(i))) {
95
+ if (!matchedSlash) {
96
+ end = i;
97
+ break;
98
+ }
99
+ }
100
+ else {
101
+ // We saw the first non-path separator
102
+ matchedSlash = false;
103
+ }
104
+ }
105
+ if (end === -1) {
106
+ if (rootEnd === -1)
107
+ return ".";
108
+ else
109
+ end = rootEnd;
110
+ }
111
+ return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
112
+ }
113
+ exports.dirname = dirname;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Return the extension of the `path` with leading period.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { extname } from "@std/path/windows/extname";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * const ext = extname("file.ts");
10
+ * assertEquals(ext, ".ts");
11
+ * ```
12
+ *
13
+ * @param path The path to get the extension from.
14
+ * @returns The extension of the `path`.
15
+ */
16
+ export declare function extname(path: string): string;
17
+ //# sourceMappingURL=extname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/extname.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA+D5C"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.extname = void 0;
6
+ const constants_js_1 = require("../_common/constants.js");
7
+ const assert_path_js_1 = require("../_common/assert_path.js");
8
+ const _util_js_1 = require("./_util.js");
9
+ /**
10
+ * Return the extension of the `path` with leading period.
11
+ *
12
+ * @example Usage
13
+ * ```ts
14
+ * import { extname } from "@std/path/windows/extname";
15
+ * import { assertEquals } from "@std/assert";
16
+ *
17
+ * const ext = extname("file.ts");
18
+ * assertEquals(ext, ".ts");
19
+ * ```
20
+ *
21
+ * @param path The path to get the extension from.
22
+ * @returns The extension of the `path`.
23
+ */
24
+ function extname(path) {
25
+ (0, assert_path_js_1.assertPath)(path);
26
+ let start = 0;
27
+ let startDot = -1;
28
+ let startPart = 0;
29
+ let end = -1;
30
+ let matchedSlash = true;
31
+ // Track the state of characters (if any) we see before our first dot and
32
+ // after any path separator we find
33
+ let preDotState = 0;
34
+ // Check for a drive letter prefix so as not to mistake the following
35
+ // path separator as an extra separator at the end of the path that can be
36
+ // disregarded
37
+ if (path.length >= 2 &&
38
+ path.charCodeAt(1) === constants_js_1.CHAR_COLON &&
39
+ (0, _util_js_1.isWindowsDeviceRoot)(path.charCodeAt(0))) {
40
+ start = startPart = 2;
41
+ }
42
+ for (let i = path.length - 1; i >= start; --i) {
43
+ const code = path.charCodeAt(i);
44
+ if ((0, _util_js_1.isPathSeparator)(code)) {
45
+ // If we reached a path separator that was not part of a set of path
46
+ // separators at the end of the string, stop now
47
+ if (!matchedSlash) {
48
+ startPart = i + 1;
49
+ break;
50
+ }
51
+ continue;
52
+ }
53
+ if (end === -1) {
54
+ // We saw the first non-path separator, mark this as the end of our
55
+ // extension
56
+ matchedSlash = false;
57
+ end = i + 1;
58
+ }
59
+ if (code === constants_js_1.CHAR_DOT) {
60
+ // If this is our first dot, mark it as the start of our extension
61
+ if (startDot === -1)
62
+ startDot = i;
63
+ else if (preDotState !== 1)
64
+ preDotState = 1;
65
+ }
66
+ else if (startDot !== -1) {
67
+ // We saw a non-dot and non-path separator before our dot, so we should
68
+ // have a good chance at having a non-empty extension
69
+ preDotState = -1;
70
+ }
71
+ }
72
+ if (startDot === -1 ||
73
+ end === -1 ||
74
+ // We saw a non-dot character immediately before the dot
75
+ preDotState === 0 ||
76
+ // The (right-most) trimmed path component is exactly '..'
77
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
78
+ return "";
79
+ }
80
+ return path.slice(startDot, end);
81
+ }
82
+ exports.extname = extname;
@@ -0,0 +1,24 @@
1
+ import type { ParsedPath } from "../types.js";
2
+ /**
3
+ * Generate a path from `ParsedPath` object.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { format } from "@std/path/windows/format";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * const path = format({
11
+ * root: "C:\\",
12
+ * dir: "C:\\path\\dir",
13
+ * base: "file.txt",
14
+ * ext: ".txt",
15
+ * name: "file"
16
+ * });
17
+ * assertEquals(path, "C:\\path\\dir\\file.txt");
18
+ * ```
19
+ *
20
+ * @param pathObject The path object to format.
21
+ * @returns The formatted path.
22
+ */
23
+ export declare function format(pathObject: Partial<ParsedPath>): string;
24
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/format.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAG9D"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.format = void 0;
6
+ const format_js_1 = require("../_common/format.js");
7
+ /**
8
+ * Generate a path from `ParsedPath` object.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { format } from "@std/path/windows/format";
13
+ * import { assertEquals } from "@std/assert";
14
+ *
15
+ * const path = format({
16
+ * root: "C:\\",
17
+ * dir: "C:\\path\\dir",
18
+ * base: "file.txt",
19
+ * ext: ".txt",
20
+ * name: "file"
21
+ * });
22
+ * assertEquals(path, "C:\\path\\dir\\file.txt");
23
+ * ```
24
+ *
25
+ * @param pathObject The path object to format.
26
+ * @returns The formatted path.
27
+ */
28
+ function format(pathObject) {
29
+ (0, format_js_1.assertArg)(pathObject);
30
+ return (0, format_js_1._format)("\\", pathObject);
31
+ }
32
+ exports.format = format;
@@ -0,0 +1,19 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Converts a file URL to a path string.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
11
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
12
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
13
+ * ```
14
+ *
15
+ * @param url The file URL to convert.
16
+ * @returns The path string.
17
+ */
18
+ export declare function fromFileUrl(url: URL | string): string;
19
+ //# sourceMappingURL=from_file_url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.ts"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAYrD"}