File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,12 @@ const parserOptions = {
17
17
}
18
18
19
19
exports . parse = function parse ( content , options ) {
20
- // them defaults yo
21
20
options = Object . assign ( { } , options , parserOptions )
22
21
22
+ if ( ! options . filePath ) {
23
+ throw new Error ( "no file path provided!" )
24
+ }
25
+
23
26
const keyHash = crypto . createHash ( 'sha256' )
24
27
keyHash . update ( content )
25
28
hashObject ( options , keyHash )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " memo-parser" ,
3
3
"version" : " 0.1.0" ,
4
- "engines" : { "node" : " >=4" },
4
+ "engines" : {
5
+ "node" : " >=4"
6
+ },
5
7
"description" : " Memoizing wrapper for any ESLint-compatible parser module." ,
6
8
"main" : " index.js" ,
7
9
"scripts" : {
21
23
"bugs" : {
22
24
"url" : " https://github.com/benmosher/eslint-plugin-import/issues"
23
25
},
24
- "homepage" : " https://github.com/benmosher/eslint-plugin-import#readme"
26
+ "homepage" : " https://github.com/benmosher/eslint-plugin-import#readme" ,
27
+ "peerDependencies" : {
28
+ "eslint" : " >=3.5.0"
29
+ }
25
30
}
You can’t perform that action at this time.
0 commit comments