@linalgo/annotate-core
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "@linalgo/annotate-core", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "A library for html document annotations following W3C standards.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -25,3 +25,3 @@ export interface XPathSelection { | ||
export function isXPathSelection(obj: any): obj is XPathSelection { | ||
if (obj.startContainer && obj.endContainer && obj.startOffset && obj.endOffset) { | ||
if ('startContainer' in obj && 'endContainer' in obj && 'startOffset' in obj && 'endOffset' in obj) { | ||
return true; | ||
@@ -33,3 +33,3 @@ } | ||
export function isTextPositionSelection(obj: any): obj is TextPositionSelection { | ||
if (obj.start && obj.end) { | ||
if ('start' in obj && 'end' in obj) { | ||
return true; | ||
@@ -41,3 +41,3 @@ } | ||
export function isTectQuoteSelection(obj: any): obj is TextQuoteSelection { | ||
if (obj.exact && obj.prefix && obj.suffix) { | ||
if ('exact' in obj && 'prefix' in obj && 'suffix' in obj) { | ||
return true; | ||
@@ -44,0 +44,0 @@ } |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2401256
36
0