@appium/support 4.0.3 → 4.1.0

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.
@@ -1,40 +1,98 @@
1
- export { npm } from "./npm";
2
- declare namespace _default {
3
- export { tempDir };
4
- export { system };
5
- export { util };
6
- export { fs };
7
- export { cancellableDelay };
8
- export { plist };
9
- export { mkdirp };
10
- export { logger };
11
- export { process };
12
- export { zip };
13
- export { imageUtil };
14
- export { net };
15
- export { mjpeg };
16
- export { node };
17
- export { timing };
18
- export { env };
19
- export { console };
20
- }
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
4
+ /// <reference types="node" />
5
+ /// <reference types="node" />
6
+ /// <reference types="klaw" />
7
+ import * as tempDir from './tempdir';
8
+ import * as system from './system';
9
+ import * as util from './util';
10
+ import { fs } from './fs';
11
+ import * as net from './net';
12
+ import * as plist from './plist';
13
+ import { mkdirp } from './mkdirp';
14
+ import * as logger from './logging';
15
+ import * as process from './process';
16
+ import * as zip from './zip';
17
+ import * as imageUtil from './image-util';
18
+ import * as mjpeg from './mjpeg';
19
+ import * as node from './node';
20
+ import * as timing from './timing';
21
+ import * as env from './env';
22
+ import * as console from './console';
23
+ export { npm } from './npm';
24
+ declare const cancellableDelay: typeof util.cancellableDelay;
25
+ export { tempDir, system, util, fs, cancellableDelay, plist, mkdirp, logger, process, zip, imageUtil, net, mjpeg, node, timing, env, console, };
26
+ declare const _default: {
27
+ tempDir: typeof tempDir;
28
+ system: typeof system;
29
+ util: typeof util;
30
+ fs: {
31
+ hasAccess(path: import("fs").PathLike): Promise<boolean>;
32
+ isExecutable(path: import("fs").PathLike): Promise<boolean>;
33
+ exists(path: import("fs").PathLike): Promise<boolean>;
34
+ rimraf(filepath: import("fs").PathLike): Promise<void>;
35
+ rimrafSync(filepath: import("fs").PathLike): void;
36
+ mkdir(filepath: string | Buffer | URL, opts?: import("fs").MakeDirectoryOptions | undefined): Promise<string | undefined>;
37
+ copyFile(source: string, destination: string, opts?: import("ncp").Options | undefined): Promise<void>;
38
+ md5(filePath: import("fs").PathLike): Promise<string>;
39
+ mv: (from: string, to: string, opts?: import("mv").Options | undefined) => import("bluebird")<void>;
40
+ which: typeof import("which");
41
+ glob: (pattern: string, opts?: import("glob").IOptions | undefined) => import("bluebird")<string[]>;
42
+ sanitizeName: typeof import("sanitize-filename");
43
+ hash(filePath: import("fs").PathLike, algorithm?: string | undefined): Promise<string>;
44
+ walk(dir: string, opts?: import("klaw").Options | undefined): import("klaw").Walker;
45
+ mkdirp(dir: import("fs").PathLike): Promise<string | undefined>;
46
+ walkDir(dir: string, recursive: boolean, callback: import("./fs").WalkDirCallback): Promise<string | null>;
47
+ readPackageJsonFrom(dir: string, opts?: import("read-pkg").Options | undefined): import("read-pkg").NormalizedPackageJson;
48
+ findRoot(dir: string): string;
49
+ access: typeof import("fs/promises").access;
50
+ appendFile: typeof import("fs/promises").appendFile;
51
+ chmod: typeof import("fs/promises").chmod;
52
+ close: (arg1: number) => import("bluebird")<any>;
53
+ constants: typeof import("fs").constants;
54
+ createWriteStream: typeof import("fs").createWriteStream;
55
+ createReadStream: typeof import("fs").createReadStream;
56
+ lstat: typeof import("fs/promises").lstat;
57
+ open: (path: import("fs").PathLike, flags: import("fs").OpenMode, mode?: import("fs").Mode | undefined) => Promise<number>;
58
+ openFile: typeof import("fs/promises").open;
59
+ readdir: typeof import("fs/promises").readdir;
60
+ read: import("./fs").ReadFn<NodeJS.ArrayBufferView>;
61
+ readFile: typeof import("fs/promises").readFile;
62
+ readlink: typeof import("fs/promises").readlink;
63
+ realpath: typeof import("fs/promises").realpath;
64
+ rename: typeof import("fs/promises").rename;
65
+ stat: typeof import("fs/promises").stat;
66
+ symlink: typeof import("fs/promises").symlink;
67
+ unlink: typeof import("fs/promises").unlink;
68
+ write: (arg1: number, arg2: string) => import("bluebird")<number>;
69
+ writeFile: typeof import("fs/promises").writeFile;
70
+ F_OK: number;
71
+ R_OK: number;
72
+ W_OK: number;
73
+ X_OK: number;
74
+ };
75
+ cancellableDelay: typeof util.cancellableDelay;
76
+ plist: typeof plist;
77
+ mkdirp: (dir: import("fs").PathLike) => Promise<string | undefined>;
78
+ logger: typeof logger;
79
+ process: typeof process;
80
+ zip: typeof zip;
81
+ imageUtil: typeof imageUtil;
82
+ net: typeof net;
83
+ mjpeg: typeof mjpeg;
84
+ node: typeof node;
85
+ timing: typeof timing;
86
+ env: typeof env;
87
+ console: typeof console;
88
+ };
21
89
  export default _default;
22
- import * as tempDir from "./tempdir";
23
- import * as system from "./system";
24
- import * as util from "./util";
25
- import { fs } from "./fs";
26
- export const cancellableDelay: typeof util.cancellableDelay;
27
- import * as plist from "./plist";
28
- import { mkdirp } from "./mkdirp";
29
- import * as logger from "./logging";
30
- import * as process from "./process";
31
- import * as zip from "./zip";
32
- import * as imageUtil from "./image-util";
33
- import * as net from "./net";
34
- import * as mjpeg from "./mjpeg";
35
- import * as node from "./node";
36
- import * as timing from "./timing";
37
- import * as env from "./env";
38
- import * as console from "./console";
39
- export { tempDir, system, util, fs, plist, mkdirp, logger, process, zip, imageUtil, net, mjpeg, node, timing, env, console };
90
+ export type { ConsoleOpts } from './console';
91
+ export type { ReadFn, WalkDirCallback } from './fs';
92
+ export type { NetOptions, DownloadOptions, AuthCredentials, NotHttpUploadOptions, HttpUploadOptions, } from './net';
93
+ export type { InstallPackageOpts, ExecOpts, NpmInstallReceipt } from './npm';
94
+ export type { Affixes, OpenedAffixes } from './tempdir';
95
+ export type { PluralizeOptions, EncodingOptions, LockFileOptions, NonEmptyString } from './util';
96
+ export type { ExtractAllOptions, ZipEntry, ZipOptions, ZipCompressionOptions, ZipSourceOptions, } from './zip';
97
+ export type { SecureValuePreprocessingRule } from './log-internal';
40
98
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot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b,OAAO;IACP,MAAM;IACN,IAAI;IACJ,EAAE,EAAF,OAAE;IACF,gBAAgB;IAChB,KAAK;IACL,MAAM,EAAN,eAAM;IACN,MAAM;IACN,OAAO;IACP,GAAG;IACH,SAAS;IACT,GAAG;IACH,KAAK;IACL,IAAI;IACJ,MAAM;IACN,GAAG;IACH,OAAO;CACR,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBR,6CAA+B;AAsB7B,oBAAI;AArBN,6BAAwB;AAsBtB,mFAtBM,OAAE,OAsBN;AArBJ,2CAA6B;AA6B3B,kBAAG;AA5BL,+CAAiC;AAsB/B,sBAAK;AArBP,qCAAgC;AAsB9B,uFAtBM,eAAM,OAsBN;AArBR,kDAAoC;AAsBlC,wBAAM;AArBR,mDAAqC;AAsBnC,0BAAO;AArBT,2CAA6B;AAsB3B,kBAAG;AArBL,wDAA0C;AAsBxC,8BAAS;AArBX,+CAAiC;AAuB/B,sBAAK;AAtBP,6CAA+B;AAuB7B,oBAAI;AAtBN,iDAAmC;AAuBjC,wBAAM;AAtBR,2CAA6B;AAuB3B,kBAAG;AAtBL,mDAAqC;AAuBnC,0BAAO;AArBT,6BAA0B;AAAlB,0FAAA,GAAG,OAAA;AAEX,MAAM,EAAC,gBAAgB,EAAC,GAAG,IAAI,CAAC;AAO9B,4CAAgB;AAclB,kBAAe;IACb,OAAO;IACP,MAAM;IACN,IAAI;IACJ,EAAE,EAAF,OAAE;IACF,gBAAgB;IAChB,KAAK;IACL,MAAM,EAAN,eAAM;IACN,MAAM;IACN,OAAO;IACP,GAAG;IACH,SAAS;IACT,GAAG;IACH,KAAK;IACL,IAAI;IACJ,MAAM;IACN,GAAG;IACH,OAAO;CACR,CAAC"}
@@ -57,3 +57,24 @@ export default {
57
57
  env,
58
58
  console,
59
59
  };
60
+
61
+ export type {ConsoleOpts} from './console';
62
+ export type {ReadFn, WalkDirCallback} from './fs';
63
+ export type {
64
+ NetOptions,
65
+ DownloadOptions,
66
+ AuthCredentials,
67
+ NotHttpUploadOptions,
68
+ HttpUploadOptions,
69
+ } from './net';
70
+ export type {InstallPackageOpts, ExecOpts, NpmInstallReceipt} from './npm';
71
+ export type {Affixes, OpenedAffixes} from './tempdir';
72
+ export type {PluralizeOptions, EncodingOptions, LockFileOptions, NonEmptyString} from './util';
73
+ export type {
74
+ ExtractAllOptions,
75
+ ZipEntry,
76
+ ZipOptions,
77
+ ZipCompressionOptions,
78
+ ZipSourceOptions,
79
+ } from './zip';
80
+ export type {SecureValuePreprocessingRule} from './log-internal';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appium/support",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "Support libs used across appium packages",
5
5
  "keywords": [
6
6
  "automation",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@appium/tsconfig": "^0.3.0",
45
- "@appium/types": "^0.12.0",
45
+ "@appium/types": "^0.13.0",
46
46
  "@colors/colors": "1.5.0",
47
47
  "@types/archiver": "5.3.2",
48
48
  "@types/base64-stream": "1.0.2",
@@ -106,7 +106,7 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "af066eb5c3542338eec821b81d6aa4bcf2d81188",
109
+ "gitHead": "ed20e007548e10f89a5212b2868ed7ec47f51c2a",
110
110
  "typedoc": {
111
111
  "entryPoint": "./lib/index.js"
112
112
  }