@native-systems/utility 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +12 -5
- package/dist/index.esm.js +2 -2
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -794,19 +794,26 @@ declare module "@native-systems/utility" {
|
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
declare module "@native-systems/utility" {
|
|
797
|
-
export type CompilerPlugin<T> = (handlebars: typeof Handlebars,
|
|
797
|
+
export type CompilerPlugin<T = void> = (handlebars: typeof Handlebars, ...args: [
|
|
798
|
+
T
|
|
799
|
+
] extends [
|
|
800
|
+
void
|
|
801
|
+
] ? [
|
|
802
|
+
] : [
|
|
803
|
+
data: T
|
|
804
|
+
]) => void;
|
|
798
805
|
}
|
|
799
806
|
|
|
800
807
|
declare module "@native-systems/utility" {
|
|
801
|
-
export const eqPlugin: CompilerPlugin
|
|
808
|
+
export const eqPlugin: CompilerPlugin;
|
|
802
809
|
}
|
|
803
810
|
|
|
804
811
|
declare module "@native-systems/utility" {
|
|
805
|
-
export const markdownPlugin: CompilerPlugin
|
|
812
|
+
export const markdownPlugin: CompilerPlugin;
|
|
806
813
|
}
|
|
807
814
|
|
|
808
815
|
declare module "@native-systems/utility" {
|
|
809
|
-
export const stringPlugin: CompilerPlugin
|
|
816
|
+
export const stringPlugin: CompilerPlugin;
|
|
810
817
|
}
|
|
811
818
|
|
|
812
819
|
declare module "@native-systems/utility" {
|
|
@@ -862,7 +869,7 @@ declare module "@native-systems/utility" {
|
|
|
862
869
|
}
|
|
863
870
|
|
|
864
871
|
declare module "@native-systems/utility" {
|
|
865
|
-
export const urlPlugin: CompilerPlugin
|
|
872
|
+
export const urlPlugin: CompilerPlugin;
|
|
866
873
|
}
|
|
867
874
|
|
|
868
875
|
declare module "@native-systems/utility" {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Handlebars from 'handlebars';
|
|
2
|
-
import sanitizeHtml
|
|
2
|
+
import sanitizeHtml from 'sanitize-html';
|
|
3
3
|
import MarkdownIt from 'markdown-it';
|
|
4
4
|
|
|
5
5
|
var PostgresError = /*#__PURE__*/ (function (PostgresError) {
|
|
@@ -1159,7 +1159,7 @@ var markdownPlugin = function (handlebars) {
|
|
|
1159
1159
|
a: ['href', 'title', 'target'],
|
|
1160
1160
|
},
|
|
1161
1161
|
transformTags: {
|
|
1162
|
-
a: simpleTransform('a', {
|
|
1162
|
+
a: sanitizeHtml.simpleTransform('a', {
|
|
1163
1163
|
target: '_blank',
|
|
1164
1164
|
rel: 'noopener',
|
|
1165
1165
|
}),
|
package/package.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"homepage": "https://github.com/aacn/utility#readme",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "ssh://git@github.com
|
|
8
|
+
"url": "git+ssh://git@github.com/aacn/utility.git"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"version": "2.0.
|
|
13
|
+
"version": "2.0.2",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"private": false,
|
|
16
16
|
"engines": {
|
|
@@ -62,8 +62,7 @@
|
|
|
62
62
|
"main"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
"dependencies": {
|
|
66
|
-
},
|
|
65
|
+
"dependencies": {},
|
|
67
66
|
"devDependencies": {
|
|
68
67
|
"@rollup/plugin-commonjs": "^22.0.2",
|
|
69
68
|
"@rollup/plugin-json": "^4.1.0",
|