@appium/schema 0.2.5 → 0.3.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.
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -19,11 +19,9 @@ export namespace AppiumConfigJsonSchema {
|
|
|
19
19
|
export { description_2 as description };
|
|
20
20
|
const properties_1: {
|
|
21
21
|
readonly address: {
|
|
22
|
-
readonly $comment: "I think hostname covers both DNS and IPv4...could be wrong";
|
|
23
22
|
readonly appiumCliAliases: readonly ["a"];
|
|
24
23
|
readonly default: "0.0.0.0";
|
|
25
|
-
readonly description: "
|
|
26
|
-
readonly format: "hostname";
|
|
24
|
+
readonly description: "IPv4/IPv6 address or a hostname to listen on";
|
|
27
25
|
readonly title: "address config";
|
|
28
26
|
readonly type: "string";
|
|
29
27
|
};
|
|
@@ -316,7 +314,7 @@ export namespace AppiumConfigJsonSchema {
|
|
|
316
314
|
};
|
|
317
315
|
};
|
|
318
316
|
}, {
|
|
319
|
-
readonly
|
|
317
|
+
readonly anyOf: readonly [{
|
|
320
318
|
readonly $ref: "#/$defs/logFilterText";
|
|
321
319
|
}, {
|
|
322
320
|
readonly $ref: "#/$defs/logFilterRegex";
|
|
@@ -22,13 +22,12 @@ exports.AppiumConfigJsonSchema = ({
|
|
|
22
22
|
description: 'Configuration when running Appium as a server',
|
|
23
23
|
properties: {
|
|
24
24
|
address: {
|
|
25
|
-
$comment: 'I think hostname covers both DNS and IPv4...could be wrong',
|
|
26
25
|
appiumCliAliases: ['a'],
|
|
27
26
|
default: '0.0.0.0',
|
|
28
|
-
description: '
|
|
29
|
-
format: 'hostname',
|
|
27
|
+
description: 'IPv4/IPv6 address or a hostname to listen on',
|
|
30
28
|
title: 'address config',
|
|
31
29
|
type: 'string',
|
|
30
|
+
// this should be anyOf [format: "hostname" or format: "ipv6"], but there seems to be a bug in json-schema-to-typescript preventing "ipv6" from converting to type "string"'
|
|
32
31
|
},
|
|
33
32
|
'allow-cors': {
|
|
34
33
|
description: 'Whether the Appium server should allow web browser connections from any host',
|
|
@@ -319,7 +318,7 @@ exports.AppiumConfigJsonSchema = ({
|
|
|
319
318
|
},
|
|
320
319
|
},
|
|
321
320
|
{
|
|
322
|
-
|
|
321
|
+
anyOf: [{ $ref: '#/$defs/logFilterText' }, { $ref: '#/$defs/logFilterRegex' }],
|
|
323
322
|
},
|
|
324
323
|
],
|
|
325
324
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appium-config-schema.js","sourceRoot":"","sources":["../../lib/appium-config-schema.js"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,sBAAsB,GAAwB,CAAC;IAC1D,OAAO,EAAE,wCAAwC;IACjD,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,yCAAyC;IACtD,UAAU,EAAE;QACV,OAAO,EAAE;YACP,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EACL,sGAAsG;YACxG,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;SACd;QACD,MAAM,EAAE;YACN,oBAAoB,EAAE,KAAK;YAC3B,WAAW,EAAE,+CAA+C;YAC5D,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,
|
|
1
|
+
{"version":3,"file":"appium-config-schema.js","sourceRoot":"","sources":["../../lib/appium-config-schema.js"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,sBAAsB,GAAwB,CAAC;IAC1D,OAAO,EAAE,wCAAwC;IACjD,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,yCAAyC;IACtD,UAAU,EAAE;QACV,OA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SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,QAAQ,EAAE;4BACR,WAAW,EAAE,qCAAqC;4BAClD,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,YAAY;yBACtB;wBACD,KAAK,EAAE;4BACL,WAAW,EACT,qIAAqI;4BACvI,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,0BAA0B;yBACpC;qBACF;iBACF;gBACD;oBACE,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,uBAAuB,EAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC;iBAC3E;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -21,13 +21,12 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
|
|
|
21
21
|
description: 'Configuration when running Appium as a server',
|
|
22
22
|
properties: {
|
|
23
23
|
address: {
|
|
24
|
-
$comment: 'I think hostname covers both DNS and IPv4...could be wrong',
|
|
25
24
|
appiumCliAliases: ['a'],
|
|
26
25
|
default: '0.0.0.0',
|
|
27
|
-
description: '
|
|
28
|
-
format: 'hostname',
|
|
26
|
+
description: 'IPv4/IPv6 address or a hostname to listen on',
|
|
29
27
|
title: 'address config',
|
|
30
28
|
type: 'string',
|
|
29
|
+
// this should be anyOf [format: "hostname" or format: "ipv6"], but there seems to be a bug in json-schema-to-typescript preventing "ipv6" from converting to type "string"'
|
|
31
30
|
},
|
|
32
31
|
'allow-cors': {
|
|
33
32
|
description:
|
|
@@ -338,7 +337,7 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
|
|
|
338
337
|
},
|
|
339
338
|
},
|
|
340
339
|
{
|
|
341
|
-
|
|
340
|
+
anyOf: [{$ref: '#/$defs/logFilterText'}, {$ref: '#/$defs/logFilterRegex'}],
|
|
342
341
|
},
|
|
343
342
|
],
|
|
344
343
|
},
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
"description": "Configuration when running Appium as a server",
|
|
15
15
|
"properties": {
|
|
16
16
|
"address": {
|
|
17
|
-
"$comment": "I think hostname covers both DNS and IPv4...could be wrong",
|
|
18
17
|
"appiumCliAliases": [
|
|
19
18
|
"a"
|
|
20
19
|
],
|
|
21
20
|
"default": "0.0.0.0",
|
|
22
|
-
"description": "
|
|
23
|
-
"format": "hostname",
|
|
21
|
+
"description": "IPv4/IPv6 address or a hostname to listen on",
|
|
24
22
|
"title": "address config",
|
|
25
23
|
"type": "string"
|
|
26
24
|
},
|
|
@@ -339,7 +337,7 @@
|
|
|
339
337
|
}
|
|
340
338
|
},
|
|
341
339
|
{
|
|
342
|
-
"
|
|
340
|
+
"anyOf": [
|
|
343
341
|
{
|
|
344
342
|
"$ref": "#/$defs/logFilterText"
|
|
345
343
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Appium Configuration Schema",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -34,10 +34,11 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "node ./scripts/generate-schema-json.js",
|
|
36
36
|
"clean": "git checkout -- ./lib/appium-config.schema.json || true",
|
|
37
|
-
"test:smoke": "node ./index.js"
|
|
37
|
+
"test:smoke": "node ./index.js",
|
|
38
|
+
"test": "exit 0"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@types/json-schema": "7.0.
|
|
41
|
+
"@types/json-schema": "7.0.12",
|
|
41
42
|
"json-schema": "0.4.0",
|
|
42
43
|
"source-map-support": "0.5.21"
|
|
43
44
|
},
|
|
@@ -51,5 +52,5 @@
|
|
|
51
52
|
"typedoc": {
|
|
52
53
|
"entryPoint": "./lib/index.js"
|
|
53
54
|
},
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d0ebbaa0c683eeba04d9d967af2d0fde76197950"
|
|
55
56
|
}
|