Skip to content

Commit

Permalink
🐛 fix no-deprecated-api error messages (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored and mysticatea committed Jan 3, 2019
1 parent 153ab03 commit 62ba642
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
10 changes: 8 additions & 2 deletions lib/rules/no-deprecated-api.js
Expand Up @@ -90,7 +90,10 @@ const modules = {
[READ]: { since: "10.0.0", replacedBy: null },
},
createCipher: {
[READ]: { since: "10.0.0", replacedBy: "'tls.createCipheriv()'" },
[READ]: {
since: "10.0.0",
replacedBy: "'crypto.createCipheriv()'",
},
},
createCredentials: {
[READ]: {
Expand All @@ -99,7 +102,10 @@ const modules = {
},
},
createDecipher: {
[READ]: { since: "10.0.0", replacedBy: "'tls.createDecipheriv()'" },
[READ]: {
since: "10.0.0",
replacedBy: "'crypto.createDecipheriv()'",
},
},
fips: {
[READ]: {
Expand Down
5 changes: 3 additions & 2 deletions tests/fixtures/no-missing/a.config.js
@@ -1,2 +1,3 @@
"use strict";
console.log("hello!");
"use strict"

console.log("hello!")
5 changes: 3 additions & 2 deletions tests/fixtures/no-missing/a.js
@@ -1,2 +1,3 @@
"use strict";
console.log("hello!");
"use strict"

console.log("hello!")
5 changes: 3 additions & 2 deletions tests/fixtures/no-missing/bar/main.js
@@ -1,2 +1,3 @@
"use strict";
console.log("hello!");
"use strict"

console.log("hello!")
5 changes: 3 additions & 2 deletions tests/fixtures/no-missing/foo/main.js
@@ -1,2 +1,3 @@
"use strict";
console.log("hello!");
"use strict"

console.log("hello!")
5 changes: 3 additions & 2 deletions tests/fixtures/no-missing/index.js
@@ -1,2 +1,3 @@
"use strict";
console.log("hello!");
"use strict"

console.log("hello!")

0 comments on commit 62ba642

Please sign in to comment.