From b2f7018c348f33722706029476aa3ae2740c5bb9 Mon Sep 17 00:00:00 2001 From: Guilherme Nascimento Date: Tue, 24 Sep 2019 21:50:17 -0300 Subject: [PATCH] Version 0.4.7 Published in npm packages --- package.json | 22 ++++++++++++++++++++++ simple-copy.js | 2 +- simple-copy.min.js | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..08e5928 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "simple-copy.js", + "version": "0.4.7", + "description": "Copy DOM, textarea or fields values to clipboard, no Flash, only 1.81kB minified (0.98kB gzipped)", + "main": "simple-copy.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/brcontainer/simple-copy.js" + }, + "keywords": [ + "clipboard", "copy", "paste", "selection", "dom", "simple", "browser" + ], + "author": "Guilherme Nascimento (brcontainer@yahoo.com.br)", + "license": "MIT", + "bugs": { + "url": "https://github.com/brcontainer/simple-copy.js/issues" + }, + "homepage": "https://github.com/brcontainer/simple-copy.js#readme" +} diff --git a/simple-copy.js b/simple-copy.js index 1681deb..0de10ae 100644 --- a/simple-copy.js +++ b/simple-copy.js @@ -1,5 +1,5 @@ /* - * simple-copy.js 0.4.5 + * simple-copy.js 0.4.7 * * Copyright (c) 2019 Guilherme Nascimento (brcontainer@yahoo.com.br) * diff --git a/simple-copy.min.js b/simple-copy.min.js index 806d139..73ff594 100644 --- a/simple-copy.min.js +++ b/simple-copy.min.js @@ -1,3 +1,3 @@ -/* simple-copy.js 0.4.5 | Copyright (c) 2019 Guilherme Nascimento (brcontainer@yahoo.com.br) | Released under the MIT license */ +/* simple-copy.js 0.4.7 | Copyright (c) 2019 Guilherme Nascimento (brcontainer@yahoo.com.br) | Released under the MIT license */ !function(e,m,l){"use strict";var y=e.getSelection(),r="data-simplecopy-",v="script,noscript,object,link,img";function i(e,t,n,o,r){if("string"==typeof e)try{e=m.querySelector(e)}catch(e){}if(e&&1===e.nodeType){var l="object"==typeof e.form;if(n&&!l)return function(e){var t=m.implementation.createHTMLDocument("");t.body.innerHTML=e.innerHTML;for(var n=t.querySelectorAll(v),o=n.length-1;0<=o;o--){var r=n[o];r&&r.parentNode&&r.parentNode.removeChild(r)}b(t.body.textContent),t=null}(e);var i=m.createRange(),c=e.isContentEditable,a=!t&&!l;if(y.removeAllRanges(),a&&(e.contentEditable=!o||"inherit"),l&&!o){if(t)return g(e);if("SELECT"===e.nodeName&&r){for(var d,s=0,u=[],f=e.options,p=f.length;s