Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngclipboard

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngclipboard - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

3

bower.json
{
"name": "ngclipboard",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/sachinchoolur/ngclipboard",
"license": "MIT",
"authors": [

@@ -6,0 +7,0 @@ "Sachin N <sachi77n@gmail.com>"

{
"name": "ngclipboard",
"version": "1.1.1",
"version": "1.1.2",
"description": "Angularjs directive for clipboard.js",

@@ -32,6 +32,9 @@ "keywords": [

"dependencies": {
"clipboard": "~1.5.5",
"clipboard": "~1.5.5"
},
"peerDependencies": {
"angular": ">=1.2.0"
},
"devDependencies": {
"angular": ">=1.2.0",
"grunt": "^0.4.5",

@@ -38,0 +41,0 @@ "grunt-contrib-clean": "^0.6.0",

@@ -149,9 +149,9 @@ ![license](https://img.shields.io/npm/l/ngclipboard.svg)

|:---:|:---:|:---:|:---:|:---:|
| 42+ ✔ | 41+ ✔ | 9+ ✔ | 29+ ✔ | Nope ✘ |
| 42+ ✔ | 41+ ✔ | 9+ ✔ | 29+ ✔ | 10+ ✔ |
Although copy/cut operations with [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand) aren't supported on Safari yet (including mobile), it gracefully degrades because [Selection](https://developer.mozilla.org/en-US/docs/Web/API/Selection) is supported.
When an occurence occurs where the [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand) copy/cut operations are not supported, it gracefully degrades because [Selection](https://developer.mozilla.org/en-US/docs/Web/API/Selection) is widely supported.
That means you can show a tooltip saying `Copied!` when `success` event is called and `Press Ctrl+C to copy` when `error` event is called because the text is already selected.
For a live demonstration, open this [site](https://sachinchoolur.github.io/ngclipboard/) on Safari.
For a live demonstration, open this [site](https://sachinchoolur.github.io/ngclipboard/) with a non-supporting browser.

@@ -158,0 +158,0 @@ ## License

@@ -45,2 +45,2 @@ (function() {

});
}());
})();
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc