Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit e3640d2

Browse files
authored
Merge pull request #123 from square/dependabot/npm_and_yarn/eslint-config-standard-tw-14.1.0
Update eslint-config-standard requirement from ^12.0.0 to ^14.1.0
2 parents e3bd800 + 603f934 commit e3640d2

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

dist/jose.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jose.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jose.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/jose-jws-sign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class Signer {
190190
}
191191

192192
for (var kid in that.keyPromises) {
193-
if (that.keyPromises.hasOwnProperty(kid)) {
193+
if (Object.prototype.hasOwnProperty.call(that.keyPromises, kid)) {
194194
kids.push(kid);
195195
}
196196
}

lib/jose-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const importRsaPublicKey = (rsaKey, alg) => {
124124
} else {
125125
var rk = {};
126126
for (var name in rsaKey) {
127-
if (rsaKey.hasOwnProperty(name)) {
127+
if (Object.prototype.hasOwnProperty.call(rsaKey, name)) {
128128
rk[name] = rsaKey[name];
129129
}
130130
}
@@ -165,7 +165,7 @@ export const importRsaPrivateKey = (rsaKey, alg) => {
165165
} else {
166166
var rk = {};
167167
for (var name in rsaKey) {
168-
if (rsaKey.hasOwnProperty(name)) {
168+
if (Object.prototype.hasOwnProperty.call(rsaKey, name)) {
169169
rk[name] = rsaKey[name];
170170
}
171171
}
@@ -417,7 +417,7 @@ export const isCryptoKey = (rsaKey) => {
417417

418418
// In the presence of minifiers, relying on class names can be problematic,
419419
// so let's also allow objects that have an 'algorithm' property.
420-
if (rsaKey.hasOwnProperty('algorithm')) {
420+
if (Object.prototype.hasOwnProperty.call(rsaKey, 'algorithm')) {
421421
return true;
422422
}
423423

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"babel-plugin-syntax-dynamic-import": "^6.18.0",
3333
"coveralls": "^3.0.5",
3434
"eslint": "^6.0.1",
35-
"eslint-config-standard": "^12.0.0",
35+
"eslint-config-standard": "^14.1.0",
3636
"eslint-plugin-import": "^2.18.0",
3737
"eslint-plugin-jest": "^23.1.1",
3838
"eslint-plugin-node": "^11.0.0",

0 commit comments

Comments
 (0)