ngclipboard
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"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() { | ||
}); | ||
}()); | ||
})(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18971
198
12
- Removedangular@>=1.2.0