Skip to content

Commit 62ba642

Browse files
LitoMoremysticatea
authored andcommittedJan 3, 2019
🐛 fix no-deprecated-api error messages (#147)
1 parent 153ab03 commit 62ba642

File tree

6 files changed

+23
-12
lines changed

6 files changed

+23
-12
lines changed
 

‎lib/rules/no-deprecated-api.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ const modules = {
9090
[READ]: { since: "10.0.0", replacedBy: null },
9191
},
9292
createCipher: {
93-
[READ]: { since: "10.0.0", replacedBy: "'tls.createCipheriv()'" },
93+
[READ]: {
94+
since: "10.0.0",
95+
replacedBy: "'crypto.createCipheriv()'",
96+
},
9497
},
9598
createCredentials: {
9699
[READ]: {
@@ -99,7 +102,10 @@ const modules = {
99102
},
100103
},
101104
createDecipher: {
102-
[READ]: { since: "10.0.0", replacedBy: "'tls.createDecipheriv()'" },
105+
[READ]: {
106+
since: "10.0.0",
107+
replacedBy: "'crypto.createDecipheriv()'",
108+
},
103109
},
104110
fips: {
105111
[READ]: {

‎tests/fixtures/no-missing/a.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
"use strict";
2-
console.log("hello!");
1+
"use strict"
2+
3+
console.log("hello!")

‎tests/fixtures/no-missing/a.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
"use strict";
2-
console.log("hello!");
1+
"use strict"
2+
3+
console.log("hello!")

‎tests/fixtures/no-missing/bar/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
"use strict";
2-
console.log("hello!");
1+
"use strict"
2+
3+
console.log("hello!")

‎tests/fixtures/no-missing/foo/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
"use strict";
2-
console.log("hello!");
1+
"use strict"
2+
3+
console.log("hello!")

‎tests/fixtures/no-missing/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
"use strict";
2-
console.log("hello!");
1+
"use strict"
2+
3+
console.log("hello!")

0 commit comments

Comments
 (0)
Please sign in to comment.