@appium/support 6.0.0 → 6.0.2
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.
- package/build/lib/env.d.ts +1 -1
- package/build/lib/env.d.ts.map +1 -1
- package/build/lib/env.js +36 -3
- package/build/lib/env.js.map +1 -1
- package/build/lib/fs.d.ts.map +1 -1
- package/build/lib/fs.js +24 -19
- package/build/lib/fs.js.map +1 -1
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/mjpeg.js +2 -2
- package/build/lib/mjpeg.js.map +1 -1
- package/build/lib/net.js +11 -11
- package/build/lib/net.js.map +1 -1
- package/build/lib/node.js +2 -2
- package/build/lib/node.js.map +1 -1
- package/build/lib/npm.js +4 -4
- package/build/lib/npm.js.map +1 -1
- package/build/lib/plist.js +5 -5
- package/build/lib/plist.js.map +1 -1
- package/build/lib/tempdir.js +3 -4
- package/build/lib/tempdir.js.map +1 -1
- package/build/lib/util.d.ts.map +1 -1
- package/build/lib/util.js +50 -16
- package/build/lib/util.js.map +1 -1
- package/build/lib/zip.d.ts.map +1 -1
- package/build/lib/zip.js +25 -24
- package/build/lib/zip.js.map +1 -1
- package/lib/env.js +1 -1
- package/lib/fs.js +20 -16
- package/lib/mjpeg.js +2 -2
- package/lib/net.js +2 -2
- package/lib/node.js +2 -2
- package/lib/npm.js +2 -2
- package/lib/plist.js +2 -2
- package/lib/tempdir.js +2 -2
- package/lib/util.js +5 -4
- package/lib/zip.js +4 -3
- package/package.json +6 -6
package/lib/util.js
CHANGED
|
@@ -2,8 +2,8 @@ import B from 'bluebird';
|
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import os from 'os';
|
|
4
4
|
import path from 'path';
|
|
5
|
-
import fs from './fs';
|
|
6
|
-
import semver from 'semver';
|
|
5
|
+
import { fs } from './fs';
|
|
6
|
+
import * as semver from 'semver';
|
|
7
7
|
import {
|
|
8
8
|
// https://www.npmjs.com/package/shell-quote
|
|
9
9
|
quote as shellQuote,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
v4 as uuidV4,
|
|
20
20
|
v5 as uuidV5,
|
|
21
21
|
} from 'uuid';
|
|
22
|
-
import _lockfile from 'lockfile';
|
|
22
|
+
import * as _lockfile from 'lockfile';
|
|
23
23
|
|
|
24
24
|
const W3C_WEB_ELEMENT_IDENTIFIER = 'element-6066-11e4-a52e-4f735466cecf';
|
|
25
25
|
const KiB = 1024;
|
|
@@ -113,6 +113,7 @@ function cancellableDelay(ms) {
|
|
|
113
113
|
// a promise, since `resolve`/`reject` are never called
|
|
114
114
|
delay.cancel = function () {
|
|
115
115
|
clearTimeout(timer);
|
|
116
|
+
// eslint-disable-next-line import/no-named-as-default-member
|
|
116
117
|
reject(new B.CancellationError());
|
|
117
118
|
};
|
|
118
119
|
return delay;
|
|
@@ -131,7 +132,7 @@ function multiResolve(roots, ...args) {
|
|
|
131
132
|
function safeJsonParse(obj) {
|
|
132
133
|
try {
|
|
133
134
|
return JSON.parse(obj);
|
|
134
|
-
} catch
|
|
135
|
+
} catch {
|
|
135
136
|
// ignore: this is not json parsable
|
|
136
137
|
return obj;
|
|
137
138
|
}
|
package/lib/zip.js
CHANGED
|
@@ -5,11 +5,11 @@ import archiver from 'archiver';
|
|
|
5
5
|
import {createWriteStream} from 'fs';
|
|
6
6
|
import path from 'path';
|
|
7
7
|
import stream from 'stream';
|
|
8
|
-
import fs from './fs';
|
|
8
|
+
import {fs} from './fs';
|
|
9
9
|
import {isWindows} from './system';
|
|
10
10
|
import {Base64Encode} from 'base64-stream';
|
|
11
11
|
import {toReadableSizeString, GiB} from './util';
|
|
12
|
-
import Timer from './timing';
|
|
12
|
+
import {Timer} from './timing';
|
|
13
13
|
import log from './logger';
|
|
14
14
|
import getStream from 'get-stream';
|
|
15
15
|
import {exec} from 'teen_process';
|
|
@@ -17,6 +17,7 @@ import {exec} from 'teen_process';
|
|
|
17
17
|
/**
|
|
18
18
|
* @type {(path: string, options?: yauzl.Options) => Promise<yauzl.ZipFile>}
|
|
19
19
|
*/
|
|
20
|
+
// eslint-disable-next-line import/no-named-as-default-member
|
|
20
21
|
const openZip = B.promisify(yauzl.open);
|
|
21
22
|
/**
|
|
22
23
|
* @type {(source: NodeJS.ReadableStream, destination: NodeJS.WritableStream) => Promise<NodeJS.WritableStream>}
|
|
@@ -229,7 +230,7 @@ async function extractWithSystemUnzip(zipFilePath, destDir) {
|
|
|
229
230
|
let executablePath;
|
|
230
231
|
try {
|
|
231
232
|
executablePath = await getExecutablePath(isWindowsHost ? 'powershell.exe' : 'unzip');
|
|
232
|
-
} catch
|
|
233
|
+
} catch {
|
|
233
234
|
throw new Error('Could not find system unzip');
|
|
234
235
|
}
|
|
235
236
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/support",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Support libs used across appium packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@appium/logger": "^1.6.1",
|
|
45
45
|
"@appium/tsconfig": "^0.3.3",
|
|
46
|
-
"@appium/types": "^0.
|
|
46
|
+
"@appium/types": "^0.23.0",
|
|
47
47
|
"@colors/colors": "1.6.0",
|
|
48
48
|
"@types/archiver": "6.0.3",
|
|
49
49
|
"@types/base64-stream": "1.0.5",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"shell-quote": "1.8.2",
|
|
89
89
|
"source-map-support": "0.5.21",
|
|
90
90
|
"supports-color": "8.1.1",
|
|
91
|
-
"teen_process": "2.2.
|
|
92
|
-
"type-fest": "4.
|
|
93
|
-
"uuid": "11.0.
|
|
91
|
+
"teen_process": "2.2.3",
|
|
92
|
+
"type-fest": "4.31.0",
|
|
93
|
+
"uuid": "11.0.4",
|
|
94
94
|
"which": "4.0.0",
|
|
95
95
|
"yauzl": "3.2.0"
|
|
96
96
|
},
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "3467f32c8e3618db05b6b210544cfdc6a57bb73c"
|
|
108
108
|
}
|