@appium/support 7.0.5 → 7.0.6

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 (114) hide show
  1. package/LICENSE +201 -0
  2. package/build/lib/console.d.ts +42 -88
  3. package/build/lib/console.d.ts.map +1 -1
  4. package/build/lib/console.js +20 -80
  5. package/build/lib/console.js.map +1 -1
  6. package/build/lib/doctor.d.ts +6 -18
  7. package/build/lib/doctor.d.ts.map +1 -1
  8. package/build/lib/doctor.js +0 -15
  9. package/build/lib/doctor.js.map +1 -1
  10. package/build/lib/env.d.ts +14 -20
  11. package/build/lib/env.d.ts.map +1 -1
  12. package/build/lib/env.js +13 -50
  13. package/build/lib/env.js.map +1 -1
  14. package/build/lib/fs.d.ts +109 -148
  15. package/build/lib/fs.d.ts.map +1 -1
  16. package/build/lib/fs.js +88 -188
  17. package/build/lib/fs.js.map +1 -1
  18. package/build/lib/image-util.d.ts +7 -6
  19. package/build/lib/image-util.d.ts.map +1 -1
  20. package/build/lib/image-util.js +9 -6
  21. package/build/lib/image-util.js.map +1 -1
  22. package/build/lib/index.d.ts +19 -17
  23. package/build/lib/index.d.ts.map +1 -1
  24. package/build/lib/logger.d.ts +1 -1
  25. package/build/lib/logger.d.ts.map +1 -1
  26. package/build/lib/logger.js +1 -1
  27. package/build/lib/logger.js.map +1 -1
  28. package/build/lib/logging.d.ts +7 -15
  29. package/build/lib/logging.d.ts.map +1 -1
  30. package/build/lib/logging.js +36 -62
  31. package/build/lib/logging.js.map +1 -1
  32. package/build/lib/mjpeg.d.ts +19 -56
  33. package/build/lib/mjpeg.d.ts.map +1 -1
  34. package/build/lib/mjpeg.js +53 -76
  35. package/build/lib/mjpeg.js.map +1 -1
  36. package/build/lib/mkdirp.d.ts +4 -1
  37. package/build/lib/mkdirp.d.ts.map +1 -1
  38. package/build/lib/mkdirp.js +1 -2
  39. package/build/lib/mkdirp.js.map +1 -1
  40. package/build/lib/net.d.ts +52 -90
  41. package/build/lib/net.d.ts.map +1 -1
  42. package/build/lib/net.js +104 -193
  43. package/build/lib/net.js.map +1 -1
  44. package/build/lib/node.d.ts +16 -17
  45. package/build/lib/node.d.ts.map +1 -1
  46. package/build/lib/node.js +106 -111
  47. package/build/lib/node.js.map +1 -1
  48. package/build/lib/npm.d.ts +65 -86
  49. package/build/lib/npm.d.ts.map +1 -1
  50. package/build/lib/npm.js +59 -117
  51. package/build/lib/npm.js.map +1 -1
  52. package/build/lib/plist.d.ts +36 -29
  53. package/build/lib/plist.d.ts.map +1 -1
  54. package/build/lib/plist.js +62 -59
  55. package/build/lib/plist.js.map +1 -1
  56. package/build/lib/process.d.ts +19 -2
  57. package/build/lib/process.d.ts.map +1 -1
  58. package/build/lib/process.js +24 -7
  59. package/build/lib/process.js.map +1 -1
  60. package/build/lib/system.d.ts +41 -6
  61. package/build/lib/system.d.ts.map +1 -1
  62. package/build/lib/system.js +46 -11
  63. package/build/lib/system.js.map +1 -1
  64. package/build/lib/tempdir.d.ts +26 -49
  65. package/build/lib/tempdir.d.ts.map +1 -1
  66. package/build/lib/tempdir.js +41 -73
  67. package/build/lib/tempdir.js.map +1 -1
  68. package/build/lib/timing.d.ts +28 -22
  69. package/build/lib/timing.d.ts.map +1 -1
  70. package/build/lib/timing.js +16 -17
  71. package/build/lib/timing.js.map +1 -1
  72. package/build/lib/util.d.ts +164 -181
  73. package/build/lib/util.d.ts.map +1 -1
  74. package/build/lib/util.js +193 -247
  75. package/build/lib/util.js.map +1 -1
  76. package/build/lib/zip.d.ts +81 -139
  77. package/build/lib/zip.d.ts.map +1 -1
  78. package/build/lib/zip.js +210 -258
  79. package/build/lib/zip.js.map +1 -1
  80. package/lib/console.ts +139 -0
  81. package/lib/{doctor.js → doctor.ts} +6 -20
  82. package/lib/{env.js → env.ts} +31 -59
  83. package/lib/fs.ts +453 -0
  84. package/lib/image-util.ts +40 -0
  85. package/lib/index.ts +1 -0
  86. package/lib/{logger.js → logger.ts} +1 -1
  87. package/lib/logging.ts +157 -0
  88. package/lib/mjpeg.ts +186 -0
  89. package/lib/{mkdirp.js → mkdirp.ts} +2 -2
  90. package/lib/net.ts +305 -0
  91. package/lib/{node.js → node.ts} +134 -133
  92. package/lib/npm.ts +291 -0
  93. package/lib/plist.ts +187 -0
  94. package/lib/process.ts +62 -0
  95. package/lib/system.ts +95 -0
  96. package/lib/tempdir.ts +115 -0
  97. package/lib/{timing.js → timing.ts} +28 -33
  98. package/lib/util.ts +561 -0
  99. package/lib/{zip.js → zip.ts} +341 -296
  100. package/package.json +20 -22
  101. package/tsconfig.json +3 -5
  102. package/index.js +0 -1
  103. package/lib/console.js +0 -173
  104. package/lib/fs.js +0 -496
  105. package/lib/image-util.js +0 -32
  106. package/lib/logging.js +0 -145
  107. package/lib/mjpeg.js +0 -207
  108. package/lib/net.js +0 -336
  109. package/lib/npm.js +0 -310
  110. package/lib/plist.js +0 -182
  111. package/lib/process.js +0 -46
  112. package/lib/system.js +0 -48
  113. package/lib/tempdir.js +0 -131
  114. package/lib/util.js +0 -584
@@ -1,35 +1,32 @@
1
- /**
2
- * Resolves `true` if an `appium` dependency can be found somewhere in the given `cwd`.
3
- *
4
- * @param {string} cwd
5
- * @returns {Promise<boolean>}
6
- */
7
- export function hasAppiumDependency(cwd: string): Promise<boolean>;
1
+ import _ from 'lodash';
2
+ import { type NormalizedPackageJson } from 'read-pkg';
3
+ import * as semver from 'semver';
8
4
  /**
9
5
  * Path to the default `APPIUM_HOME` dir (`~/.appium`).
10
- * @type {string}
11
6
  */
12
- export const DEFAULT_APPIUM_HOME: string;
7
+ export declare const DEFAULT_APPIUM_HOME: string;
13
8
  /**
14
9
  * Basename of extension manifest file.
15
- * @type {string}
16
10
  */
17
- export const MANIFEST_BASENAME: string;
11
+ export declare const MANIFEST_BASENAME = "extensions.yaml";
18
12
  /**
19
13
  * Relative path to extension manifest file from `APPIUM_HOME`.
20
- * @type {string}
21
14
  */
22
- export const MANIFEST_RELATIVE_PATH: string;
15
+ export declare const MANIFEST_RELATIVE_PATH: string;
16
+ /**
17
+ * Resolves `true` if an `appium` dependency can be found somewhere in the given `cwd`.
18
+ */
19
+ export declare function hasAppiumDependency(cwd: string): Promise<boolean>;
23
20
  /**
24
21
  * Given `cwd`, use `npm` to find the closest package _or workspace root_, and return the path if the root depends upon `appium`.
25
22
  *
26
23
  * Looks at `dependencies` and `devDependencies` for `appium`.
27
24
  */
28
- export const findAppiumDependencyPackage: ((cwd?: string, acceptableVersionRange?: string | semver.Range) => Promise<string | undefined>) & _.MemoizedFunction;
25
+ export declare const findAppiumDependencyPackage: ((cwd?: string, acceptableVersionRange?: string | semver.Range) => Promise<string | undefined>) & _.MemoizedFunction;
29
26
  /**
30
27
  * Read a `package.json` in dir `cwd`. If none found, return `undefined`.
31
28
  */
32
- export const readPackageInDir: ((cwd: string) => Promise<import("read-pkg").NormalizedPackageJson | undefined>) & _.MemoizedFunction;
29
+ export declare const readPackageInDir: ((cwd: string) => Promise<NormalizedPackageJson>) & _.MemoizedFunction;
33
30
  /**
34
31
  * Determines location of Appium's "home" dir
35
32
  *
@@ -38,15 +35,12 @@ export const readPackageInDir: ((cwd: string) => Promise<import("read-pkg").Norm
38
35
  *
39
36
  * All returned paths will be absolute.
40
37
  */
41
- export const resolveAppiumHome: ((cwd?: string) => Promise<string>) & _.MemoizedFunction;
38
+ export declare const resolveAppiumHome: ((cwd?: string) => Promise<string>) & _.MemoizedFunction;
42
39
  /**
43
40
  * Figure out manifest path based on `appiumHome`.
44
41
  *
45
42
  * The assumption is that, if `appiumHome` has been provided, it was resolved via {@link resolveAppiumHome `resolveAppiumHome()`}! If unsure,
46
43
  * don't pass a parameter and let `resolveAppiumHome()` handle it.
47
44
  */
48
- export const resolveManifestPath: ((appiumHome?: string) => Promise<string>) & _.MemoizedFunction;
49
- export type NormalizedPackageJson = import("read-pkg").NormalizedPackageJson;
50
- import * as semver from 'semver';
51
- import _ from 'lodash';
45
+ export declare const resolveManifestPath: ((appiumHome?: string) => Promise<string>) & _.MemoizedFunction;
52
46
  //# sourceMappingURL=env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../lib/env.js"],"names":[],"mappings":"AA8BA;;;;;GAKG;AACH,yCAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAI5B;AA/BD;;;GAGG;AACH,kCAFU,MAAM,CAEsD;AAEtE;;;GAGG;AACH,gCAFU,MAAM,CAEmC;AAEnD;;;GAGG;AACH,qCAFU,MAAM,CAOd;AAYF;;;;GAIG;AACH,kDAEa,MAAM,2BACN,MAAM,GAAC,MAAM,CAAC,KAAK,KAGjB,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,uBAmCtC;AAEF;;GAEG;AACH,sCAGa,MAAM,KACJ,OAAO,CAAC,OAAO,UAAU,EAAE,qBAAqB,GAAC,SAAS,CAAC,uBAKxE;AAEF;;;;;;;GAOG;AACH,wCAEa,MAAM,KACJ,OAAO,CAAC,MAAM,CAAC,uBAa5B;AAEF;;;;;GAKG;AACH,iDAEa,MAAM,KACJ,OAAO,CAAC,MAAM,CAAC,uBAO5B;oCAGW,OAAO,UAAU,EAAE,qBAAqB;wBA9I7B,QAAQ;cAJlB,QAAQ"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../lib/env.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAc,KAAK,qBAAqB,EAAC,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2C,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAKlC,CAAC;AAEF;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEvE;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,UAE/B,MAAM,2BACa,MAAM,GAAG,MAAM,CAAC,KAAK,KAC5C,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,sBA+B/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SACW,MAAM,KAAG,OAAO,CAAC,qBAAqB,CAAC,sBAG9E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,UACW,MAAM,KAAmB,OAAO,CAAC,MAAM,CAAC,sBAWhF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,iBAEf,MAAM,KAClB,OAAO,CAAC,MAAM,CAAC,sBAKnB,CAAC"}
package/build/lib/env.js CHANGED
@@ -38,7 +38,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.resolveManifestPath = exports.resolveAppiumHome = exports.readPackageInDir = exports.findAppiumDependencyPackage = exports.MANIFEST_RELATIVE_PATH = exports.MANIFEST_BASENAME = exports.DEFAULT_APPIUM_HOME = void 0;
40
40
  exports.hasAppiumDependency = hasAppiumDependency;
41
- // @ts-check
42
41
  const lodash_1 = __importDefault(require("lodash"));
43
42
  const node_os_1 = require("node:os");
44
43
  const node_path_1 = __importDefault(require("node:path"));
@@ -46,24 +45,18 @@ const read_pkg_1 = require("read-pkg");
46
45
  const semver = __importStar(require("semver"));
47
46
  /**
48
47
  * Path to the default `APPIUM_HOME` dir (`~/.appium`).
49
- * @type {string}
50
48
  */
51
49
  exports.DEFAULT_APPIUM_HOME = node_path_1.default.resolve((0, node_os_1.homedir)(), '.appium');
52
50
  /**
53
51
  * Basename of extension manifest file.
54
- * @type {string}
55
52
  */
56
53
  exports.MANIFEST_BASENAME = 'extensions.yaml';
57
54
  /**
58
55
  * Relative path to extension manifest file from `APPIUM_HOME`.
59
- * @type {string}
60
56
  */
61
57
  exports.MANIFEST_RELATIVE_PATH = node_path_1.default.join('node_modules', '.cache', 'appium', exports.MANIFEST_BASENAME);
62
58
  /**
63
59
  * Resolves `true` if an `appium` dependency can be found somewhere in the given `cwd`.
64
- *
65
- * @param {string} cwd
66
- * @returns {Promise<boolean>}
67
60
  */
68
61
  async function hasAppiumDependency(cwd) {
69
62
  return Boolean(await (0, exports.findAppiumDependencyPackage)(cwd));
@@ -73,30 +66,20 @@ async function hasAppiumDependency(cwd) {
73
66
  *
74
67
  * Looks at `dependencies` and `devDependencies` for `appium`.
75
68
  */
76
- exports.findAppiumDependencyPackage = lodash_1.default.memoize(
77
- /**
78
- * @param {string} [cwd]
79
- * @param {string|semver.Range} [acceptableVersionRange='>=2.0.0-beta'] The expected
80
- * semver-compatible range for the Appium dependency. Packages that have 'appium' dependency
81
- * not satisfying this range will be skipped.
82
- * @returns {Promise<string|undefined>}
83
- */
84
- async function findAppiumDependencyPackage(cwd = process.cwd(), acceptableVersionRange = '>=2.0.0-beta') {
85
- /**
86
- * Tries to read `package.json` in `root` and resolves the identity if it depends on `appium`;
87
- * otherwise resolves `undefined`.
88
- * @param {string} root
89
- * @returns {Promise<string|undefined>}
90
- */
69
+ exports.findAppiumDependencyPackage = lodash_1.default.memoize(async function findAppiumDependencyPackage(cwd = process.cwd(), acceptableVersionRange = '>=2.0.0-beta') {
91
70
  const readPkg = async (root) => {
92
71
  try {
93
72
  const pkg = await (0, exports.readPackageInDir)(root);
94
73
  const version = semver.minVersion(String(pkg?.dependencies?.appium ??
95
74
  pkg?.devDependencies?.appium ??
96
75
  pkg?.peerDependencies?.appium));
97
- return version && semver.satisfies(version, acceptableVersionRange) ? root : undefined;
76
+ return version && semver.satisfies(version, acceptableVersionRange)
77
+ ? root
78
+ : undefined;
79
+ }
80
+ catch {
81
+ return undefined;
98
82
  }
99
- catch { }
100
83
  };
101
84
  let currentDir = node_path_1.default.resolve(cwd);
102
85
  let isAtFsRoot = false;
@@ -108,17 +91,12 @@ async function findAppiumDependencyPackage(cwd = process.cwd(), acceptableVersio
108
91
  currentDir = node_path_1.default.dirname(currentDir);
109
92
  isAtFsRoot = currentDir.length <= node_path_1.default.dirname(currentDir).length;
110
93
  }
94
+ return undefined;
111
95
  });
112
96
  /**
113
97
  * Read a `package.json` in dir `cwd`. If none found, return `undefined`.
114
98
  */
115
- exports.readPackageInDir = lodash_1.default.memoize(
116
- /**
117
- *
118
- * @param {string} cwd - Directory ostensibly having a `package.json`
119
- * @returns {Promise<import('read-pkg').NormalizedPackageJson|undefined>}
120
- */
121
- async function _readPackageInDir(cwd) {
99
+ exports.readPackageInDir = lodash_1.default.memoize(async function _readPackageInDir(cwd) {
122
100
  return await (0, read_pkg_1.readPackage)({ cwd, normalize: true });
123
101
  });
124
102
  /**
@@ -129,19 +107,14 @@ async function _readPackageInDir(cwd) {
129
107
  *
130
108
  * All returned paths will be absolute.
131
109
  */
132
- exports.resolveAppiumHome = lodash_1.default.memoize(
133
- /**
134
- * @param {string} [cwd] - Current working directory. _Must_ be absolute, if specified.
135
- * @returns {Promise<string>}
136
- */
137
- async function _resolveAppiumHome(cwd = process.cwd()) {
110
+ exports.resolveAppiumHome = lodash_1.default.memoize(async function _resolveAppiumHome(cwd = process.cwd()) {
138
111
  if (!node_path_1.default.isAbsolute(cwd)) {
139
112
  throw new TypeError('`cwd` parameter must be an absolute path');
140
113
  }
141
114
  if (process.env.APPIUM_HOME) {
142
115
  return node_path_1.default.resolve(cwd, process.env.APPIUM_HOME);
143
116
  }
144
- return await (0, exports.findAppiumDependencyPackage)(cwd) ?? exports.DEFAULT_APPIUM_HOME;
117
+ return (await (0, exports.findAppiumDependencyPackage)(cwd)) ?? exports.DEFAULT_APPIUM_HOME;
145
118
  });
146
119
  /**
147
120
  * Figure out manifest path based on `appiumHome`.
@@ -149,17 +122,7 @@ async function _resolveAppiumHome(cwd = process.cwd()) {
149
122
  * The assumption is that, if `appiumHome` has been provided, it was resolved via {@link resolveAppiumHome `resolveAppiumHome()`}! If unsure,
150
123
  * don't pass a parameter and let `resolveAppiumHome()` handle it.
151
124
  */
152
- exports.resolveManifestPath = lodash_1.default.memoize(
153
- /**
154
- * @param {string} [appiumHome] - Appium home directory
155
- * @returns {Promise<string>}
156
- */
157
- async function _resolveManifestPath(appiumHome) {
158
- // can you "await" in a default parameter? is that a good idea?
159
- appiumHome = appiumHome ?? (await (0, exports.resolveAppiumHome)());
160
- return node_path_1.default.join(appiumHome, exports.MANIFEST_RELATIVE_PATH);
125
+ exports.resolveManifestPath = lodash_1.default.memoize(async function _resolveManifestPath(appiumHome) {
126
+ return node_path_1.default.join(appiumHome ?? await (0, exports.resolveAppiumHome)(), exports.MANIFEST_RELATIVE_PATH);
161
127
  });
162
- /**
163
- * @typedef {import('read-pkg').NormalizedPackageJson} NormalizedPackageJson
164
- */
165
128
  //# sourceMappingURL=env.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../lib/env.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,kDAEC;AAtCD,YAAY;AACZ,oDAAuB;AACvB,qCAAgC;AAChC,0DAA6B;AAC7B,uCAAqC;AACrC,+CAAiC;AAEjC;;;GAGG;AACU,QAAA,mBAAmB,GAAG,mBAAI,CAAC,OAAO,CAAC,IAAA,iBAAO,GAAE,EAAE,SAAS,CAAC,CAAC;AAEtE;;;GAGG;AACU,QAAA,iBAAiB,GAAG,iBAAiB,CAAC;AAEnD;;;GAGG;AACU,QAAA,sBAAsB,GAAG,mBAAI,CAAC,IAAI,CAC7C,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,yBAAiB,CAClB,CAAC;AAEF;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CAAC,GAAG;IAC3C,OAAO,OAAO,CAAC,MAAM,IAAA,mCAA2B,EAAC,GAAG,CAAC,CAAC,CAAC;AACzD,CAAC;AAED;;;;GAIG;AACU,QAAA,2BAA2B,GAAG,gBAAC,CAAC,OAAO;AAClD;;;;;;GAMG;AACH,KAAK,UAAU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s;
1
+ import B from 'bluebird';
2
+ import { close, constants, createReadStream, createWriteStream, promises as fsPromises, read, open, type PathLike, type MakeDirectoryOptions, type ReadAsyncOptions } from 'node:fs';
3
+ import type { GlobOptions } from 'glob';
4
+ import klaw from 'klaw';
5
+ import type { Walker } from 'klaw';
6
+ import ncp from 'ncp';
7
+ import { type NormalizeOptions, type NormalizedPackageJson } from 'read-pkg';
8
+ import sanitize from 'sanitize-filename';
9
+ import which from 'which';
10
+ /** Options for {@linkcode fs.mv} */
11
+ export interface MvOptions {
12
+ /** Whether to automatically create the destination folder structure */
13
+ mkdirp?: boolean;
14
+ /** Set to false to throw if the destination file already exists */
15
+ clobber?: boolean;
16
+ /** @deprecated Legacy, not used */
17
+ limit?: number;
18
+ }
2
19
  /**
3
- * The callback function which will be called during the directory walking
20
+ * Callback used during directory walking in {@linkcode fs.walkDir}.
21
+ * Return true to stop walking.
4
22
  */
5
- export type WalkDirCallback = (itemPath: string, isDirectory: boolean) => boolean | void;
6
- export type glob = typeof import("glob");
7
- export type PathLike = import("fs").PathLike;
8
- export type mv = {
9
- /**
10
- * Whether to automatically create the destination folder structure
11
- */
12
- mkdirp?: boolean | undefined;
13
- /**
14
- * Set it to false if you want an exception to be thrown
15
- * if the destination file already exists
16
- */
17
- clobber?: boolean | undefined;
18
- /**
19
- * Legacy deprecated property, not used anymore
20
- */
21
- limit?: number | undefined;
22
- };
23
- export type ReadFn<TBuffer extends NodeJS.ArrayBufferView> = (fd: number, buffer: TBuffer | import("node:fs").ReadAsyncOptions<TBuffer>, offset?: number | undefined, length?: number | undefined, position?: number | null | undefined) => B<{
23
+ export type WalkDirCallback = (itemPath: string, isDirectory: boolean) => boolean | void | Promise<boolean | void>;
24
+ /**
25
+ * Promisified fs.read signature.
26
+ * @template TBuffer - Buffer type (e.g. NodeJS.ArrayBufferView)
27
+ * @deprecated use `typeof read.__promisify__` instead
28
+ */
29
+ export type ReadFn<TBuffer extends NodeJS.ArrayBufferView = NodeJS.ArrayBufferView> = (fd: number, buffer: TBuffer | ReadAsyncOptions<TBuffer>, offset?: number, length?: number, position?: number | null) => B<{
24
30
  bytesRead: number;
25
31
  buffer: TBuffer;
26
32
  }>;
27
- export namespace fs {
33
+ export declare const fs: {
28
34
  /**
29
- * Resolves `true` if `path` is _readable_, which differs from Node.js' default behavior of "can we see it?"
30
- *
35
+ * Resolves `true` if `path` is _readable_.
31
36
  * On Windows, ACLs are not supported, so this becomes a simple check for existence.
32
- *
33
37
  * This function will never reject.
34
- * @param {PathLike} path
35
- * @returns {Promise<boolean>}
36
38
  */
37
- export function hasAccess(path: PathLike): Promise<boolean>;
39
+ hasAccess(filePath: PathLike): Promise<boolean>;
38
40
  /**
39
41
  * Resolves `true` if `path` is executable; `false` otherwise.
40
- *
41
- * On Windows, this function delegates to {@linkcode fs.hasAccess}.
42
- *
42
+ * On Windows, delegates to {@linkcode fs.hasAccess}.
43
43
  * This function will never reject.
44
- * @param {PathLike} path
45
- * @returns {Promise<boolean>}
46
44
  */
47
- export function isExecutable(path: PathLike): Promise<boolean>;
45
+ isExecutable(filePath: PathLike): Promise<boolean>;
46
+ /** Alias for {@linkcode fs.hasAccess} */
47
+ exists(filePath: PathLike): Promise<boolean>;
48
48
  /**
49
- * Alias for {@linkcode fs.hasAccess}
50
- * @param {PathLike} path
51
- */
52
- export function exists(path: PathLike): Promise<boolean>;
53
- /**
54
- * Remove a directory and all its contents, recursively
55
- * @param {PathLike} filepath
56
- * @returns Promise<void>
49
+ * Remove a directory and all its contents, recursively.
57
50
  * @see https://nodejs.org/api/fs.html#fspromisesrmpath-options
58
51
  */
59
- export function rimraf(filepath: PathLike): Promise<void>;
52
+ rimraf(filepath: PathLike): Promise<void>;
60
53
  /**
61
- * Remove a directory and all its contents, recursively in sync
62
- * @param {PathLike} filepath
63
- * @returns undefined
54
+ * Remove a directory and all its contents, recursively (sync).
64
55
  * @see https://nodejs.org/api/fs.html#fsrmsyncpath-options
65
56
  */
66
- export function rimrafSync(filepath: PathLike): void;
57
+ rimrafSync(filepath: PathLike): void;
67
58
  /**
68
- * Like Node.js' `fsPromises.mkdir()`, but will _not_ reject if the directory already exists.
69
- *
70
- * @param {string|Buffer|URL} filepath
71
- * @param {import('fs').MakeDirectoryOptions} [opts]
72
- * @returns {Promise<string|undefined>}
59
+ * Like Node.js `fsPromises.mkdir()`, but will not reject if the directory already exists.
73
60
  * @see https://nodejs.org/api/fs.html#fspromisesmkdirpath-options
74
61
  */
75
- export function mkdir(filepath: string | Buffer | URL, opts?: import("fs").MakeDirectoryOptions): Promise<string | undefined>;
62
+ mkdir(filepath: string | Buffer | URL, opts?: MakeDirectoryOptions): Promise<string | undefined>;
76
63
  /**
77
- * Copies files _and entire directories_
78
- * @param {string} source - Source to copy
79
- * @param {string} destination - Destination to copy to
80
- * @param {ncp.Options} [opts] - Additional arguments to pass to `ncp`
64
+ * Copies files and entire directories.
81
65
  * @see https://npm.im/ncp
82
- * @returns {Promise<void>}
83
- */
84
- export function copyFile(source: string, destination: string, opts?: ncp.Options): Promise<void>;
85
- /**
86
- * Create an MD5 hash of a file.
87
- * @param {PathLike} filePath
88
- * @returns {Promise<string>}
89
66
  */
90
- export function md5(filePath: PathLike): Promise<string>;
67
+ copyFile(source: string, destination: string, opts?: ncp.Options): Promise<void>;
68
+ /** Create an MD5 hash of a file. */
69
+ md5(filePath: PathLike): Promise<string>;
91
70
  /**
92
- * Move a file or a folder
93
- *
94
- * @param {string} from Source file/folder
95
- * @param {string} to Destination file/folder
96
- * @param {mv} [opts] Move options
97
- * @returns {Promise<void>}
71
+ * Move a file or a folder.
98
72
  */
99
- export function mv(from: string, to: string, opts?: mv): Promise<void>;
100
- export { which };
101
- export let glob: (pattern: string, opts?: import("glob").GlobOptions) => B<string[]>;
102
- export { sanitize as sanitizeName };
73
+ mv(from: string, to: string, opts?: MvOptions): Promise<void>;
74
+ /** Find path to an executable in system `PATH`. @see https://github.com/npm/node-which */
75
+ which: typeof which;
103
76
  /**
104
- * Create a hex digest of some file at `filePath`
105
- * @param {PathLike} filePath
106
- * @param {string} [algorithm]
107
- * @returns {Promise<string>}
77
+ * Given a glob pattern, resolve with list of files matching that pattern.
78
+ * @see https://github.com/isaacs/node-glob
108
79
  */
109
- export function hash(filePath: PathLike, algorithm?: string): Promise<string>;
80
+ glob(pattern: string, options?: GlobOptions): Promise<string[]>;
81
+ /** Sanitize a filename. @see https://github.com/parshap/node-sanitize-filename */
82
+ sanitizeName: typeof sanitize;
83
+ /** Create a hex digest of some file at `filePath`. */
84
+ hash(filePath: PathLike, algorithm?: string): Promise<string>;
110
85
  /**
111
- * Returns an `Walker` instance, which is a readable stream (and thusly an async iterator).
112
- *
113
- * @param {string} dir - Dir to start walking at
114
- * @param {import('klaw').Options} [opts]
115
- * @returns {import('klaw').Walker}
86
+ * Returns a Walker instance (readable stream / async iterator).
116
87
  * @see https://www.npmjs.com/package/klaw
117
88
  */
118
- export function walk(dir: string, opts?: import("klaw").Options): import("klaw").Walker;
89
+ walk(dir: string, opts?: klaw.Options): Walker;
90
+ /** Recursively create a directory. */
91
+ mkdirp(dir: PathLike): Promise<string | undefined>;
119
92
  /**
120
- * Recursively create a directory.
121
- * @param {PathLike} dir
122
- * @returns {Promise<string|undefined>}
93
+ * Walks a directory; callback is invoked with path joined with dir.
94
+ * @param dir - Directory path to start walking
95
+ * @param recursive - If true, walk subdirectories
96
+ * @param callback - Called for each path; return true to stop
97
+ * @returns The found path or null if not found
123
98
  */
124
- export function mkdirp(dir: PathLike): Promise<string | undefined>;
99
+ walkDir(dir: string, recursive: boolean, callback: WalkDirCallback): Promise<string | null>;
125
100
  /**
126
- * Walks a directory given according to the parameters given. The callback will be invoked with a path joined with the dir parameter
127
- * @param {string} dir Directory path where we will start walking
128
- * @param {boolean} recursive Set it to true if you want to continue walking sub directories
129
- * @param {WalkDirCallback} callback The callback to be called when a new path is found
130
- * @throws {Error} If the `dir` parameter contains a path to an invalid folder
131
- * @returns {Promise<string?>} returns the found path or null if the item was not found
101
+ * Reads the closest `package.json` from absolute path `dir`.
102
+ * @throws If there were problems finding or reading `package.json`
132
103
  */
133
- export function walkDir(dir: string, recursive: boolean, callback: WalkDirCallback): Promise<string | null>;
134
- /**
135
- * Reads the closest `package.json` file from absolute path `dir`.
136
- * @param {string} dir - Directory to search from
137
- * @param {import('read-pkg').Options} [opts] - Additional options for `read-pkg`
138
- * @throws {Error} If there were problems finding or reading a `package.json` file
139
- * @returns {import('read-pkg').NormalizedPackageJson} A parsed `package.json`
140
- */
141
- export function readPackageJsonFrom(dir: string, opts?: import("read-pkg").Options): import("read-pkg").NormalizedPackageJson;
104
+ readPackageJsonFrom(dir: string, opts?: NormalizeOptions & {
105
+ cwd?: string;
106
+ }): NormalizedPackageJson;
142
107
  /**
143
108
  * Finds the project root directory from `dir`.
144
- * @param {string} dir - Directory to search from
145
- * @throws {TypeError} If `dir` is not a nonempty string or relative path
146
- * @throws {Error} If there were problems finding the project root
147
- * @returns {string} The closeset parent dir containing `package.json`
148
- */
149
- export function findRoot(dir: string): string;
150
- export let access: typeof fsPromises.access;
151
- export let appendFile: typeof fsPromises.appendFile;
152
- export let chmod: typeof fsPromises.chmod;
153
- export let close: (arg1: number) => B<any>;
154
- export { constants };
155
- export { createWriteStream };
156
- export { createReadStream };
157
- export let lstat: typeof fsPromises.lstat;
158
- export let open: (path: PathLike, flags: import("fs").OpenMode, mode?: import("fs").Mode) => Promise<number>;
159
- export let openFile: typeof fsPromises.open;
160
- export let readdir: typeof fsPromises.readdir;
161
- export function read(fd: number, buffer: NodeJS.ArrayBufferView<ArrayBufferLike> | import("fs").ReadAsyncOptions<NodeJS.ArrayBufferView<ArrayBufferLike>>, offset: number | undefined, length: number | undefined, position: number | null | undefined): B<{
162
- bytesRead: number;
163
- buffer: NodeJS.ArrayBufferView<ArrayBufferLike>;
164
- }>;
165
- export let readFile: typeof fsPromises.readFile;
166
- export let readlink: typeof fsPromises.readlink;
167
- export let realpath: typeof fsPromises.realpath;
168
- export let rename: typeof fsPromises.rename;
169
- export let stat: typeof fsPromises.stat;
170
- export let symlink: typeof fsPromises.symlink;
171
- export let unlink: typeof fsPromises.unlink;
172
- export let write: (arg1: number, arg2: string) => B<number>;
173
- export let writeFile: typeof fsPromises.writeFile;
174
- export let F_OK: number;
175
- export let R_OK: number;
176
- export let W_OK: number;
177
- export let X_OK: number;
178
- }
179
- import B from 'bluebird';
180
- import ncp from 'ncp';
181
- import which from 'which';
182
- import sanitize from 'sanitize-filename';
183
- import { promises as fsPromises } from 'node:fs';
184
- import { constants } from 'node:fs';
185
- import { createWriteStream } from 'node:fs';
186
- import { createReadStream } from 'node:fs';
109
+ * @throws TypeError If `dir` is not a non-empty absolute path
110
+ * @throws Error If project root could not be found
111
+ */
112
+ findRoot(dir: string): string;
113
+ access: typeof fsPromises.access;
114
+ appendFile: typeof fsPromises.appendFile;
115
+ chmod: typeof fsPromises.chmod;
116
+ close: typeof close.__promisify__;
117
+ constants: typeof constants;
118
+ createWriteStream: typeof createWriteStream;
119
+ createReadStream: typeof createReadStream;
120
+ lstat: typeof fsPromises.lstat;
121
+ /**
122
+ * Promisified fs.open. Resolves with a file descriptor (not FileHandle).
123
+ * Use fs.openFile for a FileHandle.
124
+ */
125
+ open: typeof open.__promisify__;
126
+ openFile: typeof fsPromises.open;
127
+ readdir: typeof fsPromises.readdir;
128
+ read: typeof read.__promisify__;
129
+ readFile: typeof fsPromises.readFile;
130
+ readlink: typeof fsPromises.readlink;
131
+ realpath: typeof fsPromises.realpath;
132
+ rename: typeof fsPromises.rename;
133
+ stat: typeof fsPromises.stat;
134
+ symlink: typeof fsPromises.symlink;
135
+ unlink: typeof fsPromises.unlink;
136
+ write: (arg1: number, arg2: string) => B<number>;
137
+ writeFile: typeof fsPromises.writeFile;
138
+ /** @deprecated Use `constants.F_OK` instead. */
139
+ F_OK: number;
140
+ /** @deprecated Use `constants.R_OK` instead. */
141
+ R_OK: number;
142
+ /** @deprecated Use `constants.W_OK` instead. */
143
+ W_OK: number;
144
+ /** @deprecated Use `constants.X_OK` instead. */
145
+ X_OK: number;
146
+ };
147
+ export default fs;
187
148
  //# sourceMappingURL=fs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../lib/fs.js"],"names":[],"mappings":";;;;yCAodW,MAAM,eACN,OAAO,KACN,OAAO,GAAC,IAAI;;uBAKX,OAAO,IAAI,EAAE,QAAQ;;;;;;;;;;;;;;;;mBAYI,OAAO,SAA/B,MAAM,CAAC,eAAgB,SAE1B,MAAM,UACN,OAAO,GAAC,OAAO,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,qGAIjD,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAC,CAAC;;IA1clD;;;;;;;;OAQG;IACH,gCAHW,QAAQ,GACN,OAAO,CAAC,OAAO,CAAC,CAS5B;IAED;;;;;;;;OAQG;IACH,mCAHW,QAAQ,GACN,OAAO,CAAC,OAAO,CAAC,CAY5B;IAED;;;OAGG;IACH,6BAFW,QAAQ,oBAIlB;IAED;;;;;OAKG;IACH,iCAJW,QAAQ,iBAMlB;IAED;;;;;OAKG;IACH,qCAJW,QAAQ,QAMlB;IAED;;;;;;;OAOG;IACH,gCALW,MAAM,GAAC,MAAM,GAAC,GAAG,SACjB,OAAO,IAAI,EAAE,oBAAoB,GAC/B,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CAWrC;IACD;;;;;;;OAOG;IACH,iCANW,MAAM,eACN,MAAM,SACN,GAAG,CAAC,OAAO,GAET,OAAO,CAAC,IAAI,CAAC,CAOzB;IAED;;;;OAIG;IACH,8BAHW,QAAQ,GACN,OAAO,CAAC,MAAM,CAAC,CAI3B;IAED;;;;;;;OAOG;IACH,yBALW,MAAM,MACN,MAAM,SACN,EAAE,GACA,OAAO,CAAC,IAAI,CAAC,CAmEzB;;qBAYgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,MAAM,EAAE,WAA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