File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2024 Anton Maklakov
3
+ Copyright (c) 2024-present, Anton Maklakov
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -16,11 +16,35 @@ const schema = {
16
16
type : "boolean" ,
17
17
} ,
18
18
} ,
19
+ additionalProperties : false ,
19
20
} ,
20
21
{ type : "boolean" } ,
21
22
] ,
22
23
} ,
24
+ allowedContentTypes : {
25
+ anyOf : [
26
+ {
27
+ type : "array" ,
28
+ items : {
29
+ type : "string" ,
30
+ } ,
31
+ } ,
32
+ {
33
+ enum : [ "*" ] ,
34
+ } ,
35
+ ] ,
36
+ } ,
37
+ sanitize : {
38
+ type : "boolean" ,
39
+ } ,
40
+ disallowedTags : {
41
+ type : "array" ,
42
+ items : {
43
+ enum : [ "script" , "style" , "iframe" ] ,
44
+ } ,
45
+ } ,
23
46
} ,
47
+ additionalProperties : false ,
24
48
} ;
25
49
26
50
module . exports = function ( source ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hmpl-loader" ,
3
- "version" : " 0.0.5 " ,
3
+ "version" : " 0.0.6 " ,
4
4
"description" : " Loader for files with hpml extension for webpack" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {},
30
30
"node" : " >=10.12.0"
31
31
},
32
32
"dependencies" : {
33
- "schema-utils" : " ^4.1.0"
33
+ "schema-utils" : " ^4.1.0" ,
34
+ "hmpl-js" : " >=1.0.4"
34
35
}
35
36
}
You can’t perform that action at this time.
0 commit comments