From c8ebc73af3ea5b58525c32da5b5e1e28eff440fc Mon Sep 17 00:00:00 2001 From: Valentin Degenne Date: Thu, 16 Mar 2023 13:03:48 +0100 Subject: [PATCH 1/2] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 954d5f9..e517f9b 100755 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ "use strict"; -var deselectCurrent = require("toggle-selection"); +import deselectCurrent from 'toggle-selection'; var clipboardToIE11Formatting = { "text/plain": "Text", @@ -112,4 +112,4 @@ function copy(text, options) { return success; } -module.exports = copy; +export default copy; From 77f59bf79f6e8030907c3e2dc1f5a6bc5d675024 Mon Sep 17 00:00:00 2001 From: Valentin Degenne Date: Thu, 16 Mar 2023 13:04:25 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 25fe889..9c76e24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "copy-to-clipboard", - "version": "3.3.3", + "version": "4.3.3", + "type": "module", "description": "Copy stuff into clipboard using JS with fallbacks", "main": "index.js", "types": "index.d.ts",