striptags
Advanced tools
Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4
@@ -50,7 +50,7 @@ 'use strict'; | ||
if (this.isNameBufferAnAllowedTag()) { | ||
transition(new InTagState(0 /* Allowed */, this.options)); | ||
transition(new InTagState(0 /* TagMode.Allowed */, this.options)); | ||
return TAG_START + (this.isClosingTag ? "/" : "") + this.nameBuffer + character; | ||
} | ||
else { | ||
transition(new InTagState(1 /* Disallowed */, this.options)); | ||
transition(new InTagState(1 /* TagMode.Disallowed */, this.options)); | ||
return this.options.tagReplacementText; | ||
@@ -104,3 +104,3 @@ } | ||
} | ||
if (this.mode == 1 /* Disallowed */) { | ||
if (this.mode == 1 /* TagMode.Disallowed */) { | ||
return ""; | ||
@@ -126,3 +126,3 @@ } | ||
} | ||
if (this.mode == 1 /* Disallowed */) { | ||
if (this.mode == 1 /* TagMode.Disallowed */) { | ||
return ""; | ||
@@ -185,3 +185,3 @@ } | ||
exports.StateMachine = StateMachine; | ||
exports.default = striptags; | ||
exports["default"] = striptags; | ||
exports.striptags = striptags; |
@@ -12,3 +12,3 @@ { | ||
"bugs": "https://github.com/ericnorris/striptags/issues", | ||
"version": "4.0.0-alpha.3", | ||
"version": "4.0.0-alpha.4", | ||
"keywords": [ | ||
@@ -22,4 +22,9 @@ "striptags", | ||
"main": "dist/cjs/striptags.js", | ||
"module": "dist/es6/striptags.js", | ||
"types": "dist/es6/striptags.d.ts", | ||
"type": "module", | ||
"exports": { | ||
"import": "./dist/es6/striptags.js", | ||
"require": "./dist/cjs/striptags.cjs", | ||
"types": "./dist/es6/striptags.d.ts" | ||
}, | ||
"files": [ | ||
@@ -26,0 +31,0 @@ "dist/" |
25583
8
597
Yes