Skip to content

Commit

Permalink
Add jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Mar 21, 2024
1 parent cbe0cd8 commit b8f8657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let config: Options
let rootDocument: Document | Element
let start: Date

export function finder(input: Element, options?: Partial<Options>) {
export function finder(input: Element, options?: Partial<Options>): string {
start = new Date()
if (input.nodeType !== Node.ELEMENT_NODE) {
throw new Error(`Can't generate CSS selector for non-element node type.`)
Expand Down
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@medv/finder",
"version": "3.2.0",
"exports": "./finder.ts"
}

0 comments on commit b8f8657

Please sign in to comment.