@heliosgraphics/utils
Advanced tools
Comparing version 5.3.11 to 5.3.12
@@ -20,3 +20,3 @@ import { describe, it, expect, vi } from "vitest" | ||
copyValue(TEXT_STRING) | ||
expect(spyCreateElement).toHaveBeenCalledWith("input") | ||
expect(spyCreateElement).toHaveBeenCalledWith("textarea") | ||
expect(spyAppendChild).toHaveBeenCalled() | ||
@@ -23,0 +23,0 @@ expect(document.execCommand).toHaveBeenCalledWith("copy", false) |
@@ -1,4 +0,3 @@ | ||
// copy the given value to the clipboard | ||
export const copyValue = (text: string): void => { | ||
const input: HTMLInputElement = document.createElement("input") | ||
const input: HTMLTextAreaElement = document.createElement("textarea") | ||
@@ -5,0 +4,0 @@ document.body.appendChild(input) |
{ | ||
"name": "@heliosgraphics/utils", | ||
"version": "5.3.11", | ||
"version": "5.3.12", | ||
"type": "module", | ||
@@ -14,3 +14,3 @@ "author": "03b8 <03b8@helios.graphics>", | ||
"dependencies": { | ||
"xss": "1.0.15" | ||
"xss": "^1.0.15" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
19560
423
Updatedxss@^1.0.15