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.5.0 to 1.6.0

4

dist/xe-clipboard.common.js

@@ -30,3 +30,3 @@ 'use strict';

$elem.setSelectionRange(0, $elem.value.length);
return doc.execCommand('copy', showDefault);
return doc.execCommand('copy', !!showDefault);
}

@@ -48,3 +48,3 @@ /**

if (!result) {
result = copyText(true);
result = copyText(1);
}

@@ -51,0 +51,0 @@ } catch (e) {}

@@ -43,3 +43,3 @@ (function (global, factory) {

$elem.setSelectionRange(0, $elem.value.length);
return doc.execCommand('copy', showDefault);
return doc.execCommand('copy', !!showDefault);
}

@@ -61,3 +61,3 @@ /**

if (!result) {
result = copyText(true);
result = copyText(1);
}

@@ -64,0 +64,0 @@ } catch (e) {}

@@ -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(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});
!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(1))}catch(e){}return t}var d=t.copy=t;e.default=d});

@@ -25,3 +25,3 @@ 'use strict'

$elem.setSelectionRange(0, $elem.value.length)
return doc.execCommand('copy', showDefault)
return doc.execCommand('copy', !!showDefault)
}

@@ -40,3 +40,3 @@

if (!result) {
result = copyText(true)
result = copyText(1)
}

@@ -43,0 +43,0 @@ } catch (e) {}

{
"name": "xe-clipboard",
"version": "1.5.0",
"version": "1.6.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