webmarker-js 0.0.5 → 0.0.6
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/main.js +5 -3
- package/dist/module.js +5 -3
- package/package.json +1 -1
- package/src/index.ts +5 -3
package/dist/main.js
CHANGED
@@ -1048,8 +1048,10 @@ var WebMarker = (() => {
|
|
1048
1048
|
function isMarked() {
|
1049
1049
|
return document.documentElement.hasAttribute("data-webmarkered");
|
1050
1050
|
}
|
1051
|
-
window
|
1052
|
-
|
1053
|
-
|
1051
|
+
if (typeof window !== "undefined") {
|
1052
|
+
window["mark"] = mark;
|
1053
|
+
window["unmark"] = unmark;
|
1054
|
+
window["isMarked"] = isMarked;
|
1055
|
+
}
|
1054
1056
|
return __toCommonJS(src_exports);
|
1055
1057
|
})();
|
package/dist/module.js
CHANGED
@@ -1024,9 +1024,11 @@ function unmark() {
|
|
1024
1024
|
function isMarked() {
|
1025
1025
|
return document.documentElement.hasAttribute("data-webmarkered");
|
1026
1026
|
}
|
1027
|
-
window
|
1028
|
-
window["
|
1029
|
-
window["
|
1027
|
+
if (typeof window !== "undefined") {
|
1028
|
+
window["mark"] = mark;
|
1029
|
+
window["unmark"] = unmark;
|
1030
|
+
window["isMarked"] = isMarked;
|
1031
|
+
}
|
1030
1032
|
export {
|
1031
1033
|
isMarked,
|
1032
1034
|
mark,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -226,9 +226,11 @@ function isMarked(): boolean {
|
|
226
226
|
return document.documentElement.hasAttribute("data-webmarkered");
|
227
227
|
}
|
228
228
|
|
229
|
-
window
|
230
|
-
window["
|
231
|
-
window["
|
229
|
+
if (typeof window !== "undefined") {
|
230
|
+
window["mark"] = mark;
|
231
|
+
window["unmark"] = unmark;
|
232
|
+
window["isMarked"] = isMarked;
|
233
|
+
}
|
232
234
|
|
233
235
|
export { mark, unmark, isMarked };
|
234
236
|
export type { MarkOptions, MarkedElement, Placement };
|