Skip to content

Commit 06c008d

Browse files
committed
Regenerate lock file and fix linting errors
1 parent bbd5947 commit 06c008d

File tree

5 files changed

+172
-88
lines changed

5 files changed

+172
-88
lines changed

javascript/node/selenium-webdriver/bidi/continueResponseParameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
const { BytesValue, Header } = require('./networkTypes')
18+
const { Header } = require('./networkTypes')
1919

2020
class ContinueResponseParameters {
2121
#map = new Map()

javascript/node/selenium-webdriver/bidi/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class Network {
181181
params: Object.fromEntries(params.asMap()),
182182
}
183183

184-
let response = await this.bidi.send(command)
184+
await this.bidi.send(command)
185185
}
186186

187187
async continueResponse(params) {

javascript/node/selenium-webdriver/bidi/partitionDescriptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
Type = {
18+
const Type = {
1919
CONTEXT: 'context',
2020
STORAGE_KEY: 'storageKey',
2121
}

javascript/node/selenium-webdriver/bidi/storage.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ class Storage {
7373
)
7474
})
7575

76-
if (response.result.hasOwnProperty('partitionKey')) {
76+
if (Object.prototype.hasOwnProperty.call(response.result, 'partitionKey')) {
7777
if (
78-
response.result.partitionKey.hasOwnProperty('userContext') &&
79-
response.result.partitionKey.hasOwnProperty('sourceOrigin')
78+
Object.prototype.hasOwnProperty.call(response.result.partitionKey, 'userContext') &&
79+
Object.prototype.hasOwnProperty.call(response.result.partitionKey, 'sourceOrigin')
8080
) {
8181
let partitionKey = new PartitionKey(
8282
response.result.partitionKey.userContext,
@@ -111,10 +111,10 @@ class Storage {
111111

112112
let response = await this.bidi.send(command)
113113

114-
if (response.result.hasOwnProperty('partitionKey')) {
114+
if (Object.prototype.hasOwnProperty.call(response.result, 'partitionKey')) {
115115
if (
116-
response.result.partitionKey.hasOwnProperty('userContext') &&
117-
response.result.partitionKey.hasOwnProperty('sourceOrigin')
116+
Object.prototype.hasOwnProperty.call(response.result.partitionKey, 'userContext') &&
117+
Object.prototype.hasOwnProperty.call(response.result.partitionKey, 'sourceOrigin')
118118
) {
119119
let partitionKey = new PartitionKey(
120120
response.result.partitionKey.userContext,
@@ -147,10 +147,10 @@ class Storage {
147147

148148
let response = await this.bidi.send(command)
149149

150-
if (response.result.hasOwnProperty('partitionKey')) {
150+
if (Object.prototype.hasOwnProperty.call(response.result, 'partitionKey')) {
151151
if (
152-
response.result.partitionKey.hasOwnProperty('userContext') &&
153-
response.result.partitionKey.hasOwnProperty('sourceOrigin')
152+
Object.prototype.hasOwnProperty.call(response.result.partitionKey, 'userContext') &&
153+
Object.prototype.hasOwnProperty.call(response.result.partitionKey, 'sourceOrigin')
154154
) {
155155
let partitionKey = new PartitionKey(
156156
response.result.partitionKey.userContext,

0 commit comments

Comments
 (0)