Skip to content

Commit b06f1b4

Browse files
committed
version 0.0.6
1 parent be80797 commit b06f1b4

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Anton Maklakov
3+
Copyright (c) 2024-present, Anton Maklakov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,35 @@ const schema = {
1616
type: "boolean",
1717
},
1818
},
19+
additionalProperties: false,
1920
},
2021
{ type: "boolean" },
2122
],
2223
},
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+
},
2346
},
47+
additionalProperties: false,
2448
};
2549

2650
module.exports = function (source) {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hmpl-loader",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Loader for files with hpml extension for webpack",
55
"main": "index.js",
66
"scripts": {},
@@ -30,6 +30,7 @@
3030
"node": ">=10.12.0"
3131
},
3232
"dependencies": {
33-
"schema-utils": "^4.1.0"
33+
"schema-utils": "^4.1.0",
34+
"hmpl-js": ">=1.0.4"
3435
}
3536
}

0 commit comments

Comments
 (0)