Socket
Socket
Sign inDemoInstall

xe-clipboard

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.5.0

4

dist/xe-clipboard.common.js

@@ -26,7 +26,7 @@ 'use strict';

function copyText() {
function copyText(showDefault) {
$elem.focus();
$elem.select();
$elem.setSelectionRange(0, $elem.value.length);
return doc.execCommand.apply(doc, ['copy'].concat(arguments));
return doc.execCommand('copy', showDefault);
}

@@ -33,0 +33,0 @@ /**

@@ -39,7 +39,7 @@ (function (global, factory) {

function copyText() {
function copyText(showDefault) {
$elem.focus();
$elem.select();
$elem.setSelectionRange(0, $elem.value.length);
return doc.execCommand.apply(doc, ['copy'].concat(arguments));
return doc.execCommand('copy', showDefault);
}

@@ -46,0 +46,0 @@ /**

@@ -1,1 +0,1 @@

!function(e,t){if("function"==typeof define&&define.amd)define("xe-clipboard",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.XEClipboard=n.exports.default}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=window.document,o=n.createElement("textarea");function i(){return o.focus(),o.select(),o.setSelectionRange(0,o.value.length),n.execCommand.apply(n,["copy"].concat(arguments))}function t(e){var t=!1;try{!function(e){var t=o.style;o.id="$XECopy",t.width="48px",t.height="24px",t.position="fixed",t.zIndex="0",t.left="-500px",t.top="-500px",o.value=null==e?"":""+e,o.parentNode||n.body.appendChild(o)}(e),(t=i())||(t=i(!0))}catch(e){}return t}var d=t.copy=t;e.default=d});
!function(e,t){if("function"==typeof define&&define.amd)define("xe-clipboard",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.XEClipboard=n.exports.default}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=window.document,o=n.createElement("textarea");function i(e){return o.focus(),o.select(),o.setSelectionRange(0,o.value.length),n.execCommand("copy",e)}function t(e){var t=!1;try{!function(e){var t=o.style;o.id="$XECopy",t.width="48px",t.height="24px",t.position="fixed",t.zIndex="0",t.left="-500px",t.top="-500px",o.value=null==e?"":""+e,o.parentNode||n.body.appendChild(o)}(e),(t=i())||(t=i(!0))}catch(e){}return t}var d=t.copy=t;e.default=d});

@@ -21,7 +21,7 @@ 'use strict'

function copyText () {
function copyText (showDefault) {
$elem.focus()
$elem.select()
$elem.setSelectionRange(0, $elem.value.length)
return doc.execCommand.apply(doc, ['copy'].concat(arguments))
return doc.execCommand('copy', showDefault)
}

@@ -28,0 +28,0 @@

{
"name": "xe-clipboard",
"version": "1.4.0",
"version": "1.5.0",
"description": "Copy the contents to the clipboard, support commonly used H5 browser IE, Chrome, Firefox, Opera, Safari, IOS, Android.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc