express-ext 0.4.7 → 0.4.9
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/lib/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/metadata.ts +0 -10
package/lib/index.js
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -340,7 +340,7 @@ const map: StringMap = {
|
|
|
340
340
|
"'": "'",
|
|
341
341
|
"`": "`",
|
|
342
342
|
}
|
|
343
|
-
function escapeHTML(input: string): string {
|
|
343
|
+
export function escapeHTML(input: string): string {
|
|
344
344
|
return input.replace(/[&<>"'`]/g, function (char) {
|
|
345
345
|
return map[char]
|
|
346
346
|
})
|
package/src/metadata.ts
CHANGED
|
@@ -38,17 +38,7 @@ export interface Model {
|
|
|
38
38
|
export interface Attribute {
|
|
39
39
|
name?: string
|
|
40
40
|
type?: Type
|
|
41
|
-
format?: Format
|
|
42
|
-
required?: boolean
|
|
43
41
|
key?: boolean
|
|
44
|
-
length?: number
|
|
45
|
-
min?: number
|
|
46
|
-
max?: number
|
|
47
|
-
gt?: number
|
|
48
|
-
lt?: number
|
|
49
|
-
exp?: RegExp | string
|
|
50
|
-
code?: string
|
|
51
|
-
typeof?: Attributes
|
|
52
42
|
}
|
|
53
43
|
export interface Attributes {
|
|
54
44
|
[key: string]: Attribute
|