appium-espresso-driver 2.9.0 → 2.9.1

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.
@@ -53,9 +53,9 @@ import io.appium.espressoserver.lib.handlers.exceptions.InvalidElementStateExcep
53
53
  import io.appium.espressoserver.lib.model.toJsonMatcher
54
54
  import io.appium.espressoserver.lib.viewmatcher.withView
55
55
  import io.appium.espressoserver.lib.viewmatcher.withXPath
56
- import org.hamcrest.CoreMatchers.allOf
57
- import org.hamcrest.CoreMatchers.equalTo
58
- import org.hamcrest.CoreMatchers.`is`
56
+ import org.hamcrest.Matchers.allOf
57
+ import org.hamcrest.Matchers.equalTo
58
+ import org.hamcrest.Matchers.`is`
59
59
  import org.hamcrest.Matchers.endsWith
60
60
  import org.hamcrest.Matchers.hasEntry
61
61
  import org.hamcrest.Matchers.instanceOf
@@ -109,4 +109,13 @@ class HamcrestMatcherTest {
109
109
  {"args": "Hello World!"}
110
110
  """.trimIndent(), HamcrestMatcher::class.java)
111
111
  }
112
- }
112
+
113
+ @Test
114
+ fun `should parse Hamcrest matcher that have regex as an arg` () {
115
+ val matcher = g.fromJson("""
116
+ {"name": "matchesRegex", "args": "[A-Za-z ]*"}
117
+ """.trimIndent(), HamcrestMatcher::class.java)
118
+ assertTrue(matcher.invoke().matches("Hello World"))
119
+ assertFalse(matcher.invoke().matches("Hello World!"))
120
+ }
121
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-espresso-driver",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-espresso-driver",
9
- "version": "2.9.0",
9
+ "version": "2.9.1",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@babel/runtime": "^7.4.3",
@@ -93,6 +93,17 @@
93
93
  "npm": ">=8"
94
94
  }
95
95
  },
96
+ "node_modules/@appium/base-driver/node_modules/@babel/runtime": {
97
+ "version": "7.18.9",
98
+ "extraneous": true,
99
+ "license": "MIT",
100
+ "dependencies": {
101
+ "regenerator-runtime": "^0.13.4"
102
+ },
103
+ "engines": {
104
+ "node": ">=6.9.0"
105
+ }
106
+ },
96
107
  "node_modules/@appium/base-plugin": {
97
108
  "version": "1.10.2",
98
109
  "extraneous": true,
@@ -123,6 +134,17 @@
123
134
  "npm": ">=8"
124
135
  }
125
136
  },
137
+ "node_modules/@appium/docutils/node_modules/@babel/runtime": {
138
+ "version": "7.18.9",
139
+ "extraneous": true,
140
+ "license": "MIT",
141
+ "dependencies": {
142
+ "regenerator-runtime": "^0.13.4"
143
+ },
144
+ "engines": {
145
+ "node": ">=6.9.0"
146
+ }
147
+ },
126
148
  "node_modules/@appium/docutils/node_modules/teen_process": {
127
149
  "version": "1.16.0",
128
150
  "engines": [
@@ -220,6 +242,16 @@
220
242
  "npm": ">=8"
221
243
  }
222
244
  },
245
+ "node_modules/@appium/support/node_modules/@babel/runtime": {
246
+ "version": "7.18.9",
247
+ "license": "MIT",
248
+ "dependencies": {
249
+ "regenerator-runtime": "^0.13.4"
250
+ },
251
+ "engines": {
252
+ "node": ">=6.9.0"
253
+ }
254
+ },
223
255
  "node_modules/@appium/support/node_modules/brace-expansion": {
224
256
  "version": "2.0.1",
225
257
  "license": "MIT",
@@ -321,6 +353,17 @@
321
353
  "appium": "^2.0.0-beta.35"
322
354
  }
323
355
  },
356
+ "node_modules/@appium/test-support/node_modules/@babel/runtime": {
357
+ "version": "7.18.9",
358
+ "extraneous": true,
359
+ "license": "MIT",
360
+ "dependencies": {
361
+ "regenerator-runtime": "^0.13.4"
362
+ },
363
+ "engines": {
364
+ "node": ">=6.9.0"
365
+ }
366
+ },
324
367
  "node_modules/@appium/test-support/node_modules/teen_process": {
325
368
  "version": "1.16.0",
326
369
  "engines": [
@@ -382,7 +425,7 @@
382
425
  }
383
426
  },
384
427
  "node_modules/@babel/parser": {
385
- "version": "7.18.13",
428
+ "version": "7.19.0",
386
429
  "extraneous": true,
387
430
  "license": "MIT",
388
431
  "bin": {
@@ -393,7 +436,7 @@
393
436
  }
394
437
  },
395
438
  "node_modules/@babel/runtime": {
396
- "version": "7.18.9",
439
+ "version": "7.19.0",
397
440
  "license": "MIT",
398
441
  "dependencies": {
399
442
  "regenerator-runtime": "^0.13.4"
@@ -1039,10 +1082,6 @@
1039
1082
  "@types/node": "*"
1040
1083
  }
1041
1084
  },
1042
- "node_modules/@types/json-buffer": {
1043
- "version": "3.0.0",
1044
- "license": "MIT"
1045
- },
1046
1085
  "node_modules/@types/json-schema": {
1047
1086
  "version": "7.0.11",
1048
1087
  "license": "MIT"
@@ -1112,7 +1151,7 @@
1112
1151
  }
1113
1152
  },
1114
1153
  "node_modules/@types/node": {
1115
- "version": "18.7.14",
1154
+ "version": "18.7.15",
1116
1155
  "license": "MIT"
1117
1156
  },
1118
1157
  "node_modules/@types/normalize-package-data": {
@@ -1352,7 +1391,7 @@
1352
1391
  }
1353
1392
  },
1354
1393
  "node_modules/appium-android-driver": {
1355
- "version": "5.2.12",
1394
+ "version": "5.3.0",
1356
1395
  "license": "Apache-2.0",
1357
1396
  "dependencies": {
1358
1397
  "@babel/runtime": "^7.0.0",
@@ -1967,17 +2006,6 @@
1967
2006
  "version": "5.0.1",
1968
2007
  "license": "MIT"
1969
2008
  },
1970
- "node_modules/compress-brotli": {
1971
- "version": "1.3.8",
1972
- "license": "MIT",
1973
- "dependencies": {
1974
- "@types/json-buffer": "~3.0.0",
1975
- "json-buffer": "~3.0.1"
1976
- },
1977
- "engines": {
1978
- "node": ">= 12"
1979
- }
1980
- },
1981
2009
  "node_modules/compress-commons": {
1982
2010
  "version": "4.1.1",
1983
2011
  "license": "MIT",
@@ -2269,7 +2297,7 @@
2269
2297
  }
2270
2298
  },
2271
2299
  "node_modules/es-abstract": {
2272
- "version": "1.20.1",
2300
+ "version": "1.20.2",
2273
2301
  "extraneous": true,
2274
2302
  "license": "MIT",
2275
2303
  "dependencies": {
@@ -2277,7 +2305,7 @@
2277
2305
  "es-to-primitive": "^1.2.1",
2278
2306
  "function-bind": "^1.1.1",
2279
2307
  "function.prototype.name": "^1.1.5",
2280
- "get-intrinsic": "^1.1.1",
2308
+ "get-intrinsic": "^1.1.2",
2281
2309
  "get-symbol-description": "^1.0.0",
2282
2310
  "has": "^1.0.3",
2283
2311
  "has-property-descriptors": "^1.0.0",
@@ -2289,9 +2317,9 @@
2289
2317
  "is-shared-array-buffer": "^1.0.2",
2290
2318
  "is-string": "^1.0.7",
2291
2319
  "is-weakref": "^1.0.2",
2292
- "object-inspect": "^1.12.0",
2320
+ "object-inspect": "^1.12.2",
2293
2321
  "object-keys": "^1.1.1",
2294
- "object.assign": "^4.1.2",
2322
+ "object.assign": "^4.1.4",
2295
2323
  "regexp.prototype.flags": "^1.4.3",
2296
2324
  "string.prototype.trimend": "^1.0.5",
2297
2325
  "string.prototype.trimstart": "^1.0.5",
@@ -3307,10 +3335,9 @@
3307
3335
  "license": "MIT"
3308
3336
  },
3309
3337
  "node_modules/keyv": {
3310
- "version": "4.4.1",
3338
+ "version": "4.5.0",
3311
3339
  "license": "MIT",
3312
3340
  "dependencies": {
3313
- "compress-brotli": "^1.3.8",
3314
3341
  "json-buffer": "3.0.1"
3315
3342
  }
3316
3343
  },
@@ -4993,6 +5020,16 @@
4993
5020
  "npm": ">=6"
4994
5021
  }
4995
5022
  },
5023
+ "node_modules/teen_process/node_modules/@babel/runtime": {
5024
+ "version": "7.18.9",
5025
+ "license": "MIT",
5026
+ "dependencies": {
5027
+ "regenerator-runtime": "^0.13.4"
5028
+ },
5029
+ "engines": {
5030
+ "node": ">=6.9.0"
5031
+ }
5032
+ },
4996
5033
  "node_modules/text-hex": {
4997
5034
  "version": "1.0.0",
4998
5035
  "extraneous": true,
@@ -5509,6 +5546,15 @@
5509
5546
  "source-map-support": "0.5.21",
5510
5547
  "type-fest": "2.18.0",
5511
5548
  "validate.js": "0.13.1"
5549
+ },
5550
+ "dependencies": {
5551
+ "@babel/runtime": {
5552
+ "version": "7.18.9",
5553
+ "extraneous": true,
5554
+ "requires": {
5555
+ "regenerator-runtime": "^0.13.4"
5556
+ }
5557
+ }
5512
5558
  }
5513
5559
  },
5514
5560
  "@appium/base-plugin": {
@@ -5531,6 +5577,13 @@
5531
5577
  "teen_process": "1.16.0"
5532
5578
  },
5533
5579
  "dependencies": {
5580
+ "@babel/runtime": {
5581
+ "version": "7.18.9",
5582
+ "extraneous": true,
5583
+ "requires": {
5584
+ "regenerator-runtime": "^0.13.4"
5585
+ }
5586
+ },
5534
5587
  "teen_process": {
5535
5588
  "version": "1.16.0",
5536
5589
  "extraneous": true,
@@ -5616,6 +5669,12 @@
5616
5669
  "yauzl": "2.10.0"
5617
5670
  },
5618
5671
  "dependencies": {
5672
+ "@babel/runtime": {
5673
+ "version": "7.18.9",
5674
+ "requires": {
5675
+ "regenerator-runtime": "^0.13.4"
5676
+ }
5677
+ },
5619
5678
  "brace-expansion": {
5620
5679
  "version": "2.0.1",
5621
5680
  "requires": {
@@ -5680,6 +5739,13 @@
5680
5739
  "teen_process": "1.16.0"
5681
5740
  },
5682
5741
  "dependencies": {
5742
+ "@babel/runtime": {
5743
+ "version": "7.18.9",
5744
+ "extraneous": true,
5745
+ "requires": {
5746
+ "regenerator-runtime": "^0.13.4"
5747
+ }
5748
+ },
5683
5749
  "teen_process": {
5684
5750
  "version": "1.16.0",
5685
5751
  "extraneous": true,
@@ -5722,11 +5788,11 @@
5722
5788
  }
5723
5789
  },
5724
5790
  "@babel/parser": {
5725
- "version": "7.18.13",
5791
+ "version": "7.19.0",
5726
5792
  "extraneous": true
5727
5793
  },
5728
5794
  "@babel/runtime": {
5729
- "version": "7.18.9",
5795
+ "version": "7.19.0",
5730
5796
  "requires": {
5731
5797
  "regenerator-runtime": "^0.13.4"
5732
5798
  }
@@ -6172,9 +6238,6 @@
6172
6238
  "@types/node": "*"
6173
6239
  }
6174
6240
  },
6175
- "@types/json-buffer": {
6176
- "version": "3.0.0"
6177
- },
6178
6241
  "@types/json-schema": {
6179
6242
  "version": "7.0.11"
6180
6243
  },
@@ -6232,7 +6295,7 @@
6232
6295
  }
6233
6296
  },
6234
6297
  "@types/node": {
6235
- "version": "18.7.14"
6298
+ "version": "18.7.15"
6236
6299
  },
6237
6300
  "@types/normalize-package-data": {
6238
6301
  "version": "2.4.1"
@@ -6402,7 +6465,7 @@
6402
6465
  }
6403
6466
  },
6404
6467
  "appium-android-driver": {
6405
- "version": "5.2.12",
6468
+ "version": "5.3.0",
6406
6469
  "requires": {
6407
6470
  "@babel/runtime": "^7.0.0",
6408
6471
  "appium-adb": "^9.10.9",
@@ -6814,13 +6877,6 @@
6814
6877
  "compare-versions": {
6815
6878
  "version": "5.0.1"
6816
6879
  },
6817
- "compress-brotli": {
6818
- "version": "1.3.8",
6819
- "requires": {
6820
- "@types/json-buffer": "~3.0.0",
6821
- "json-buffer": "~3.0.1"
6822
- }
6823
- },
6824
6880
  "compress-commons": {
6825
6881
  "version": "4.1.1",
6826
6882
  "requires": {
@@ -6990,14 +7046,14 @@
6990
7046
  }
6991
7047
  },
6992
7048
  "es-abstract": {
6993
- "version": "1.20.1",
7049
+ "version": "1.20.2",
6994
7050
  "extraneous": true,
6995
7051
  "requires": {
6996
7052
  "call-bind": "^1.0.2",
6997
7053
  "es-to-primitive": "^1.2.1",
6998
7054
  "function-bind": "^1.1.1",
6999
7055
  "function.prototype.name": "^1.1.5",
7000
- "get-intrinsic": "^1.1.1",
7056
+ "get-intrinsic": "^1.1.2",
7001
7057
  "get-symbol-description": "^1.0.0",
7002
7058
  "has": "^1.0.3",
7003
7059
  "has-property-descriptors": "^1.0.0",
@@ -7009,9 +7065,9 @@
7009
7065
  "is-shared-array-buffer": "^1.0.2",
7010
7066
  "is-string": "^1.0.7",
7011
7067
  "is-weakref": "^1.0.2",
7012
- "object-inspect": "^1.12.0",
7068
+ "object-inspect": "^1.12.2",
7013
7069
  "object-keys": "^1.1.1",
7014
- "object.assign": "^4.1.2",
7070
+ "object.assign": "^4.1.4",
7015
7071
  "regexp.prototype.flags": "^1.4.3",
7016
7072
  "string.prototype.trimend": "^1.0.5",
7017
7073
  "string.prototype.trimstart": "^1.0.5",
@@ -7649,9 +7705,8 @@
7649
7705
  "dev": true
7650
7706
  },
7651
7707
  "keyv": {
7652
- "version": "4.4.1",
7708
+ "version": "4.5.0",
7653
7709
  "requires": {
7654
- "compress-brotli": "^1.3.8",
7655
7710
  "json-buffer": "3.0.1"
7656
7711
  }
7657
7712
  },
@@ -8770,6 +8825,14 @@
8770
8825
  "shell-quote": "1.7.3",
8771
8826
  "source-map-support": "0.5.21",
8772
8827
  "which": "2.0.2"
8828
+ },
8829
+ "dependencies": {
8830
+ "@babel/runtime": {
8831
+ "version": "7.18.9",
8832
+ "requires": {
8833
+ "regenerator-runtime": "^0.13.4"
8834
+ }
8835
+ }
8773
8836
  }
8774
8837
  },
8775
8838
  "text-hex": {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "2.9.0",
10
+ "version": "2.9.1",
11
11
  "author": "Appium Contributors",
12
12
  "license": "Apache-2.0",
13
13
  "repository": {
@@ -77,6 +77,7 @@
77
77
  "build:server": "cd espresso-server && ./gradlew clean assembleAndroidTest || cd ..",
78
78
  "dev": "npm run build -- --watch",
79
79
  "lint": "eslint .",
80
+ "lint:server": "cd espresso-server && ./gradlew lint || cd ..",
80
81
  "lint:fix": "npm run lint -- --fix",
81
82
  "precommit-msg": "echo 'Pre-commit checks...' && exit 0",
82
83
  "precommit-lint": "lint-staged",