scrapfly-sdk 0.6.2 → 0.6.5

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 (118) hide show
  1. package/README.md +4 -2
  2. package/esm/client.d.ts +17 -14
  3. package/esm/client.d.ts.map +1 -1
  4. package/esm/client.js +63 -24
  5. package/esm/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts +0 -1
  6. package/esm/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts.map +1 -1
  7. package/esm/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts +0 -1
  8. package/esm/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts.map +1 -1
  9. package/esm/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts +0 -1
  10. package/esm/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts.map +1 -1
  11. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts +0 -1
  12. package/esm/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts +0 -1
  14. package/esm/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts.map +1 -1
  15. package/esm/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts +0 -1
  16. package/esm/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts.map +1 -1
  17. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts +0 -1
  18. package/esm/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts.map +1 -1
  19. package/esm/polyfill.d.ts +5 -0
  20. package/esm/polyfill.d.ts.map +1 -0
  21. package/esm/polyfill.js +20 -0
  22. package/esm/result.d.ts +0 -1
  23. package/esm/result.d.ts.map +1 -1
  24. package/esm/result.js +9 -5
  25. package/esm/utils.d.ts +9 -2
  26. package/esm/utils.d.ts.map +1 -1
  27. package/esm/utils.js +20 -2
  28. package/package.json +1 -1
  29. package/script/client.d.ts +17 -14
  30. package/script/client.d.ts.map +1 -1
  31. package/script/client.js +63 -24
  32. package/script/deps/jsr.io/@std/path/1.0.1/_common/assert_path.js +1 -2
  33. package/script/deps/jsr.io/@std/path/1.0.1/_common/basename.js +3 -4
  34. package/script/deps/jsr.io/@std/path/1.0.1/_common/common.js +1 -2
  35. package/script/deps/jsr.io/@std/path/1.0.1/_common/dirname.js +1 -2
  36. package/script/deps/jsr.io/@std/path/1.0.1/_common/format.js +2 -3
  37. package/script/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts +0 -1
  38. package/script/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.d.ts.map +1 -1
  39. package/script/deps/jsr.io/@std/path/1.0.1/_common/from_file_url.js +1 -2
  40. package/script/deps/jsr.io/@std/path/1.0.1/_common/glob_to_reg_exp.js +1 -2
  41. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize.js +1 -2
  42. package/script/deps/jsr.io/@std/path/1.0.1/_common/normalize_string.js +1 -2
  43. package/script/deps/jsr.io/@std/path/1.0.1/_common/relative.js +1 -2
  44. package/script/deps/jsr.io/@std/path/1.0.1/_common/strip_trailing_separators.js +1 -2
  45. package/script/deps/jsr.io/@std/path/1.0.1/_common/to_file_url.js +1 -2
  46. package/script/deps/jsr.io/@std/path/1.0.1/basename.js +1 -2
  47. package/script/deps/jsr.io/@std/path/1.0.1/common.js +1 -2
  48. package/script/deps/jsr.io/@std/path/1.0.1/dirname.js +1 -2
  49. package/script/deps/jsr.io/@std/path/1.0.1/extname.js +1 -2
  50. package/script/deps/jsr.io/@std/path/1.0.1/format.js +1 -2
  51. package/script/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts +0 -1
  52. package/script/deps/jsr.io/@std/path/1.0.1/from_file_url.d.ts.map +1 -1
  53. package/script/deps/jsr.io/@std/path/1.0.1/from_file_url.js +1 -2
  54. package/script/deps/jsr.io/@std/path/1.0.1/glob_to_regexp.js +1 -2
  55. package/script/deps/jsr.io/@std/path/1.0.1/is_absolute.js +1 -2
  56. package/script/deps/jsr.io/@std/path/1.0.1/is_glob.js +1 -2
  57. package/script/deps/jsr.io/@std/path/1.0.1/join.js +1 -2
  58. package/script/deps/jsr.io/@std/path/1.0.1/join_globs.js +1 -2
  59. package/script/deps/jsr.io/@std/path/1.0.1/normalize.js +1 -2
  60. package/script/deps/jsr.io/@std/path/1.0.1/normalize_glob.js +1 -2
  61. package/script/deps/jsr.io/@std/path/1.0.1/parse.js +1 -2
  62. package/script/deps/jsr.io/@std/path/1.0.1/posix/_util.js +1 -2
  63. package/script/deps/jsr.io/@std/path/1.0.1/posix/basename.js +1 -2
  64. package/script/deps/jsr.io/@std/path/1.0.1/posix/dirname.js +1 -2
  65. package/script/deps/jsr.io/@std/path/1.0.1/posix/extname.js +1 -2
  66. package/script/deps/jsr.io/@std/path/1.0.1/posix/format.js +1 -2
  67. package/script/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts +0 -1
  68. package/script/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.d.ts.map +1 -1
  69. package/script/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.js +1 -2
  70. package/script/deps/jsr.io/@std/path/1.0.1/posix/glob_to_regexp.js +1 -2
  71. package/script/deps/jsr.io/@std/path/1.0.1/posix/is_absolute.js +1 -2
  72. package/script/deps/jsr.io/@std/path/1.0.1/posix/join.js +1 -2
  73. package/script/deps/jsr.io/@std/path/1.0.1/posix/join_globs.js +1 -2
  74. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize.js +1 -2
  75. package/script/deps/jsr.io/@std/path/1.0.1/posix/normalize_glob.js +1 -2
  76. package/script/deps/jsr.io/@std/path/1.0.1/posix/parse.js +1 -2
  77. package/script/deps/jsr.io/@std/path/1.0.1/posix/relative.js +1 -2
  78. package/script/deps/jsr.io/@std/path/1.0.1/posix/resolve.js +1 -2
  79. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts +0 -1
  80. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.d.ts.map +1 -1
  81. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.js +1 -2
  82. package/script/deps/jsr.io/@std/path/1.0.1/posix/to_namespaced_path.js +1 -2
  83. package/script/deps/jsr.io/@std/path/1.0.1/relative.js +1 -2
  84. package/script/deps/jsr.io/@std/path/1.0.1/resolve.js +1 -2
  85. package/script/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts +0 -1
  86. package/script/deps/jsr.io/@std/path/1.0.1/to_file_url.d.ts.map +1 -1
  87. package/script/deps/jsr.io/@std/path/1.0.1/to_file_url.js +1 -2
  88. package/script/deps/jsr.io/@std/path/1.0.1/to_namespaced_path.js +1 -2
  89. package/script/deps/jsr.io/@std/path/1.0.1/windows/_util.js +3 -4
  90. package/script/deps/jsr.io/@std/path/1.0.1/windows/basename.js +1 -2
  91. package/script/deps/jsr.io/@std/path/1.0.1/windows/dirname.js +1 -2
  92. package/script/deps/jsr.io/@std/path/1.0.1/windows/extname.js +1 -2
  93. package/script/deps/jsr.io/@std/path/1.0.1/windows/format.js +1 -2
  94. package/script/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts +0 -1
  95. package/script/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.d.ts.map +1 -1
  96. package/script/deps/jsr.io/@std/path/1.0.1/windows/from_file_url.js +1 -2
  97. package/script/deps/jsr.io/@std/path/1.0.1/windows/glob_to_regexp.js +1 -2
  98. package/script/deps/jsr.io/@std/path/1.0.1/windows/is_absolute.js +1 -2
  99. package/script/deps/jsr.io/@std/path/1.0.1/windows/join.js +1 -2
  100. package/script/deps/jsr.io/@std/path/1.0.1/windows/join_globs.js +1 -2
  101. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize.js +1 -2
  102. package/script/deps/jsr.io/@std/path/1.0.1/windows/normalize_glob.js +1 -2
  103. package/script/deps/jsr.io/@std/path/1.0.1/windows/parse.js +1 -2
  104. package/script/deps/jsr.io/@std/path/1.0.1/windows/relative.js +1 -2
  105. package/script/deps/jsr.io/@std/path/1.0.1/windows/resolve.js +1 -2
  106. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts +0 -1
  107. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.d.ts.map +1 -1
  108. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.js +1 -2
  109. package/script/deps/jsr.io/@std/path/1.0.1/windows/to_namespaced_path.js +1 -2
  110. package/script/polyfill.d.ts +5 -0
  111. package/script/polyfill.d.ts.map +1 -0
  112. package/script/polyfill.js +48 -0
  113. package/script/result.d.ts +0 -1
  114. package/script/result.d.ts.map +1 -1
  115. package/script/result.js +9 -5
  116. package/script/utils.d.ts +9 -2
  117. package/script/utils.d.ts.map +1 -1
  118. package/script/utils.js +23 -5
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.extname = void 0;
5
+ exports.extname = extname;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const assert_path_js_1 = require("../_common/assert_path.js");
8
8
  const _util_js_1 = require("./_util.js");
@@ -71,4 +71,3 @@ function extname(path) {
71
71
  }
72
72
  return path.slice(startDot, end);
73
73
  }
74
- exports.extname = extname;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.format = void 0;
5
+ exports.format = format;
6
6
  const format_js_1 = require("../_common/format.js");
7
7
  /**
8
8
  * Generate a path from `ParsedPath` object.
@@ -29,4 +29,3 @@ function format(pathObject) {
29
29
  (0, format_js_1.assertArg)(pathObject);
30
30
  return (0, format_js_1._format)("/", pathObject);
31
31
  }
32
- exports.format = format;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Converts a file URL to a path string.
4
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.ts"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/posix/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.fromFileUrl = void 0;
5
+ exports.fromFileUrl = fromFileUrl;
6
6
  const from_file_url_js_1 = require("../_common/from_file_url.js");
7
7
  /**
8
8
  * Converts a file URL to a path string.
@@ -22,4 +22,3 @@ function fromFileUrl(url) {
22
22
  url = (0, from_file_url_js_1.assertArg)(url);
23
23
  return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
24
24
  }
25
- exports.fromFileUrl = fromFileUrl;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.globToRegExp = void 0;
5
+ exports.globToRegExp = globToRegExp;
6
6
  const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
7
7
  const constants = {
8
8
  sep: "/+",
@@ -83,4 +83,3 @@ const constants = {
83
83
  function globToRegExp(glob, options = {}) {
84
84
  return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
85
85
  }
86
- exports.globToRegExp = globToRegExp;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isAbsolute = void 0;
5
+ exports.isAbsolute = isAbsolute;
6
6
  const assert_path_js_1 = require("../_common/assert_path.js");
7
7
  const _util_js_1 = require("./_util.js");
8
8
  /**
@@ -24,4 +24,3 @@ function isAbsolute(path) {
24
24
  (0, assert_path_js_1.assertPath)(path);
25
25
  return path.length > 0 && (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
26
26
  }
27
- exports.isAbsolute = isAbsolute;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.join = void 0;
5
+ exports.join = join;
6
6
  const assert_path_js_1 = require("../_common/assert_path.js");
7
7
  const normalize_js_1 = require("./normalize.js");
8
8
  /**
@@ -27,4 +27,3 @@ function join(...paths) {
27
27
  const joined = paths.filter((path) => path.length > 0).join("/");
28
28
  return joined === "" ? "." : (0, normalize_js_1.normalize)(joined);
29
29
  }
30
- exports.join = join;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.joinGlobs = void 0;
5
+ exports.joinGlobs = joinGlobs;
6
6
  const join_js_1 = require("./join.js");
7
7
  const constants_js_1 = require("./constants.js");
8
8
  const normalize_glob_js_1 = require("./normalize_glob.js");
@@ -40,4 +40,3 @@ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
40
40
  return ".";
41
41
  return (0, normalize_glob_js_1.normalizeGlob)(joined, { extended, globstar });
42
42
  }
43
- exports.joinGlobs = joinGlobs;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalize = void 0;
5
+ exports.normalize = normalize;
6
6
  const normalize_js_1 = require("../_common/normalize.js");
7
7
  const normalize_string_js_1 = require("../_common/normalize_string.js");
8
8
  const _util_js_1 = require("./_util.js");
@@ -37,4 +37,3 @@ function normalize(path) {
37
37
  return `/${path}`;
38
38
  return path;
39
39
  }
40
- exports.normalize = normalize;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalizeGlob = void 0;
5
+ exports.normalizeGlob = normalizeGlob;
6
6
  const normalize_js_1 = require("./normalize.js");
7
7
  const constants_js_1 = require("./constants.js");
8
8
  /**
@@ -32,4 +32,3 @@ function normalizeGlob(glob, { globstar = false } = {}) {
32
32
  const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
33
33
  return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
34
34
  }
35
- exports.normalizeGlob = normalizeGlob;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.parse = void 0;
5
+ exports.parse = parse;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
8
8
  const assert_path_js_1 = require("../_common/assert_path.js");
@@ -116,4 +116,3 @@ function parse(path) {
116
116
  ret.dir = "/";
117
117
  return ret;
118
118
  }
119
- exports.parse = parse;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.relative = void 0;
5
+ exports.relative = relative;
6
6
  const _util_js_1 = require("./_util.js");
7
7
  const resolve_js_1 = require("./resolve.js");
8
8
  const relative_js_1 = require("../_common/relative.js");
@@ -107,4 +107,3 @@ function relative(from, to) {
107
107
  return to.slice(toStart);
108
108
  }
109
109
  }
110
- exports.relative = relative;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.resolve = void 0;
26
+ exports.resolve = resolve;
27
27
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
28
28
  // This module is browser compatible.
29
29
  const dntShim = __importStar(require("../../../../../../_dnt.shims.js"));
@@ -83,4 +83,3 @@ function resolve(...pathSegments) {
83
83
  else
84
84
  return ".";
85
85
  }
86
- exports.resolve = resolve;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Converts a path string to a file URL.
4
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.ts"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAU3C"}
1
+ {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/posix/to_file_url.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAU3C"}
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.toFileUrl = void 0;
5
+ exports.toFileUrl = toFileUrl;
6
6
  const to_file_url_js_1 = require("../_common/to_file_url.js");
7
7
  const is_absolute_js_1 = require("./is_absolute.js");
8
8
  /**
@@ -28,4 +28,3 @@ function toFileUrl(path) {
28
28
  url.pathname = (0, to_file_url_js_1.encodeWhitespace)(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
29
29
  return url;
30
30
  }
31
- exports.toFileUrl = toFileUrl;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.toNamespacedPath = void 0;
5
+ exports.toNamespacedPath = toNamespacedPath;
6
6
  /**
7
7
  * Converts a path to a namespaced path. This function returns the path as is on posix.
8
8
  *
@@ -21,4 +21,3 @@ function toNamespacedPath(path) {
21
21
  // Non-op on posix systems
22
22
  return path;
23
23
  }
24
- exports.toNamespacedPath = toNamespacedPath;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.relative = void 0;
5
+ exports.relative = relative;
6
6
  const _os_js_1 = require("./_os.js");
7
7
  const relative_js_1 = require("./posix/relative.js");
8
8
  const relative_js_2 = require("./windows/relative.js");
@@ -31,4 +31,3 @@ const relative_js_2 = require("./windows/relative.js");
31
31
  function relative(from, to) {
32
32
  return _os_js_1.isWindows ? (0, relative_js_2.relative)(from, to) : (0, relative_js_1.relative)(from, to);
33
33
  }
34
- exports.relative = relative;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.resolve = void 0;
5
+ exports.resolve = resolve;
6
6
  const _os_js_1 = require("./_os.js");
7
7
  const resolve_js_1 = require("./posix/resolve.js");
8
8
  const resolve_js_2 = require("./windows/resolve.js");
@@ -31,4 +31,3 @@ function resolve(...pathSegments) {
31
31
  ? (0, resolve_js_2.resolve)(...pathSegments)
32
32
  : (0, resolve_js_1.resolve)(...pathSegments);
33
33
  }
34
- exports.resolve = resolve;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Converts a path string to a file URL.
4
3
  *
@@ -1 +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"}
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"}
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.toFileUrl = void 0;
5
+ exports.toFileUrl = toFileUrl;
6
6
  const _os_js_1 = require("./_os.js");
7
7
  const to_file_url_js_1 = require("./posix/to_file_url.js");
8
8
  const to_file_url_js_2 = require("./windows/to_file_url.js");
@@ -29,4 +29,3 @@ const to_file_url_js_2 = require("./windows/to_file_url.js");
29
29
  function toFileUrl(path) {
30
30
  return _os_js_1.isWindows ? (0, to_file_url_js_2.toFileUrl)(path) : (0, to_file_url_js_1.toFileUrl)(path);
31
31
  }
32
- exports.toFileUrl = toFileUrl;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.toNamespacedPath = void 0;
5
+ exports.toNamespacedPath = toNamespacedPath;
6
6
  const _os_js_1 = require("./_os.js");
7
7
  const to_namespaced_path_js_1 = require("./posix/to_namespaced_path.js");
8
8
  const to_namespaced_path_js_2 = require("./windows/to_namespaced_path.js");
@@ -30,4 +30,3 @@ function toNamespacedPath(path) {
30
30
  ? (0, to_namespaced_path_js_2.toNamespacedPath)(path)
31
31
  : (0, to_namespaced_path_js_1.toNamespacedPath)(path);
32
32
  }
33
- exports.toNamespacedPath = toNamespacedPath;
@@ -4,18 +4,17 @@
4
4
  // Ported from https://github.com/browserify/path-browserify/
5
5
  // This module is browser compatible.
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.isWindowsDeviceRoot = exports.isPathSeparator = exports.isPosixPathSeparator = void 0;
7
+ exports.isPosixPathSeparator = isPosixPathSeparator;
8
+ exports.isPathSeparator = isPathSeparator;
9
+ exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
8
10
  const constants_js_1 = require("../_common/constants.js");
9
11
  function isPosixPathSeparator(code) {
10
12
  return code === constants_js_1.CHAR_FORWARD_SLASH;
11
13
  }
12
- exports.isPosixPathSeparator = isPosixPathSeparator;
13
14
  function isPathSeparator(code) {
14
15
  return code === constants_js_1.CHAR_FORWARD_SLASH || code === constants_js_1.CHAR_BACKWARD_SLASH;
15
16
  }
16
- exports.isPathSeparator = isPathSeparator;
17
17
  function isWindowsDeviceRoot(code) {
18
18
  return ((code >= constants_js_1.CHAR_LOWERCASE_A && code <= constants_js_1.CHAR_LOWERCASE_Z) ||
19
19
  (code >= constants_js_1.CHAR_UPPERCASE_A && code <= constants_js_1.CHAR_UPPERCASE_Z));
20
20
  }
21
- exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.basename = void 0;
5
+ exports.basename = basename;
6
6
  const basename_js_1 = require("../_common/basename.js");
7
7
  const constants_js_1 = require("../_common/constants.js");
8
8
  const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
@@ -42,4 +42,3 @@ function basename(path, suffix = "") {
42
42
  const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPathSeparator);
43
43
  return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
44
44
  }
45
- exports.basename = basename;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.dirname = void 0;
5
+ exports.dirname = dirname;
6
6
  const dirname_js_1 = require("../_common/dirname.js");
7
7
  const constants_js_1 = require("../_common/constants.js");
8
8
  const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
@@ -110,4 +110,3 @@ function dirname(path) {
110
110
  }
111
111
  return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
112
112
  }
113
- exports.dirname = dirname;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.extname = void 0;
5
+ exports.extname = extname;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const assert_path_js_1 = require("../_common/assert_path.js");
8
8
  const _util_js_1 = require("./_util.js");
@@ -79,4 +79,3 @@ function extname(path) {
79
79
  }
80
80
  return path.slice(startDot, end);
81
81
  }
82
- exports.extname = extname;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.format = void 0;
5
+ exports.format = format;
6
6
  const format_js_1 = require("../_common/format.js");
7
7
  /**
8
8
  * Generate a path from `ParsedPath` object.
@@ -29,4 +29,3 @@ function format(pathObject) {
29
29
  (0, format_js_1.assertArg)(pathObject);
30
30
  return (0, format_js_1._format)("\\", pathObject);
31
31
  }
32
- exports.format = format;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Converts a file URL to a path string.
4
3
  *
@@ -1 +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"}
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"}
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.fromFileUrl = void 0;
5
+ exports.fromFileUrl = fromFileUrl;
6
6
  const from_file_url_js_1 = require("../_common/from_file_url.js");
7
7
  /**
8
8
  * Converts a file URL to a path string.
@@ -31,4 +31,3 @@ function fromFileUrl(url) {
31
31
  }
32
32
  return path;
33
33
  }
34
- exports.fromFileUrl = fromFileUrl;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.globToRegExp = void 0;
5
+ exports.globToRegExp = globToRegExp;
6
6
  const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
7
7
  const constants = {
8
8
  sep: "(?:\\\\|/)+",
@@ -83,4 +83,3 @@ const constants = {
83
83
  function globToRegExp(glob, options = {}) {
84
84
  return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
85
85
  }
86
- exports.globToRegExp = globToRegExp;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isAbsolute = void 0;
5
+ exports.isAbsolute = isAbsolute;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const assert_path_js_1 = require("../_common/assert_path.js");
8
8
  const _util_js_1 = require("./_util.js");
@@ -39,4 +39,3 @@ function isAbsolute(path) {
39
39
  }
40
40
  return false;
41
41
  }
42
- exports.isAbsolute = isAbsolute;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.join = void 0;
5
+ exports.join = join;
6
6
  const assert_path_js_1 = require("../_common/assert_path.js");
7
7
  const _util_js_1 = require("./_util.js");
8
8
  const normalize_js_1 = require("./normalize.js");
@@ -72,4 +72,3 @@ function join(...paths) {
72
72
  }
73
73
  return (0, normalize_js_1.normalize)(joined);
74
74
  }
75
- exports.join = join;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.joinGlobs = void 0;
5
+ exports.joinGlobs = joinGlobs;
6
6
  const join_js_1 = require("./join.js");
7
7
  const constants_js_1 = require("./constants.js");
8
8
  const normalize_glob_js_1 = require("./normalize_glob.js");
@@ -41,4 +41,3 @@ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
41
41
  return ".";
42
42
  return (0, normalize_glob_js_1.normalizeGlob)(joined, { extended, globstar });
43
43
  }
44
- exports.joinGlobs = joinGlobs;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalize = void 0;
5
+ exports.normalize = normalize;
6
6
  const normalize_js_1 = require("../_common/normalize.js");
7
7
  const constants_js_1 = require("../_common/constants.js");
8
8
  const normalize_string_js_1 = require("../_common/normalize_string.js");
@@ -132,4 +132,3 @@ function normalize(path) {
132
132
  }
133
133
  return device + tail;
134
134
  }
135
- exports.normalize = normalize;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalizeGlob = void 0;
5
+ exports.normalizeGlob = normalizeGlob;
6
6
  const normalize_js_1 = require("./normalize.js");
7
7
  const constants_js_1 = require("./constants.js");
8
8
  /**
@@ -32,4 +32,3 @@ function normalizeGlob(glob, { globstar = false } = {}) {
32
32
  const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
33
33
  return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
34
34
  }
35
- exports.normalizeGlob = normalizeGlob;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.parse = void 0;
5
+ exports.parse = parse;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const assert_path_js_1 = require("../_common/assert_path.js");
8
8
  const _util_js_1 = require("./_util.js");
@@ -177,4 +177,3 @@ function parse(path) {
177
177
  ret.dir = ret.root;
178
178
  return ret;
179
179
  }
180
- exports.parse = parse;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.relative = void 0;
5
+ exports.relative = relative;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const resolve_js_1 = require("./resolve.js");
8
8
  const relative_js_1 = require("../_common/relative.js");
@@ -132,4 +132,3 @@ function relative(from, to) {
132
132
  return toOrig.slice(toStart, toEnd);
133
133
  }
134
134
  }
135
- exports.relative = relative;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.resolve = void 0;
26
+ exports.resolve = resolve;
27
27
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
28
28
  // This module is browser compatible.
29
29
  const dntShim = __importStar(require("../../../../../../_dnt.shims.js"));
@@ -178,4 +178,3 @@ function resolve(...pathSegments) {
178
178
  resolvedTail = (0, normalize_string_js_1.normalizeString)(resolvedTail, !resolvedAbsolute, "\\", _util_js_1.isPathSeparator);
179
179
  return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
180
180
  }
181
- exports.resolve = resolve;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Converts a path string to a file URL.
4
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.ts"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAgB3C"}
1
+ {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.1/windows/to_file_url.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAgB3C"}
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.toFileUrl = void 0;
5
+ exports.toFileUrl = toFileUrl;
6
6
  const to_file_url_js_1 = require("../_common/to_file_url.js");
7
7
  const is_absolute_js_1 = require("./is_absolute.js");
8
8
  /**
@@ -35,4 +35,3 @@ function toFileUrl(path) {
35
35
  }
36
36
  return url;
37
37
  }
38
- exports.toFileUrl = toFileUrl;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.toNamespacedPath = void 0;
5
+ exports.toNamespacedPath = toNamespacedPath;
6
6
  const constants_js_1 = require("../_common/constants.js");
7
7
  const _util_js_1 = require("./_util.js");
8
8
  const resolve_js_1 = require("./resolve.js");
@@ -50,4 +50,3 @@ function toNamespacedPath(path) {
50
50
  }
51
51
  return path;
52
52
  }
53
- exports.toNamespacedPath = toNamespacedPath;
@@ -0,0 +1,5 @@
1
+ import * as dntShim from "./_dnt.shims.js";
2
+ export declare const isDeno: boolean;
3
+ export declare function mkdir(path: string | URL, options: dntShim.Deno.MkdirOptions): Promise<void>;
4
+ export declare function writeFile(path: string | URL, data: Uint8Array, options?: dntShim.Deno.WriteFileOptions): Promise<void>;
5
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../src/polyfill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,eAAO,MAAM,MAAM,SAAsC,CAAC;AAE1D,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAOjG;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,gBAAqB,GAC1C,OAAO,CAAC,IAAI,CAAC,CAOf"}