ng-clipboard
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var o,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol?"symbol":typeof o};"object"===("undefined"==typeof module?"undefined":n(module))&&module.exports?(o=require("angular"),module.exports="ng-clipboard"):o=window.angular,o.module("ng-clipboard",[]),o.module("ng-clipboard").directive("ngCopy",["createFake",function(o){return{restrict:"A",scope:{ngCopy:"=",onSuccess:"&",onError:"&"},link:function(n,e){var t=function(){n.onSuccess()},r=function(){n.onError()};e.on("click",function(){o(n.ngCopy,"copy",t,r)})}}}]),o.module("ng-clipboard").directive("ngCut",["createFake",function(o){return{restrict:"A",scope:{ngCut:"=",onSuccess:"&",onError:"&"},link:function(n,e){var t=function(){n.ngCut="",n.onSuccess()},r=function(){n.onError()};e.on("click",function(){o(n.ngCut,"copy",t,r)})}}}]),o.module("ng-clipboard").factory("createFake",function(){return function(o,n,e,t){var r=document.createElement("textarea");r.setAttribute("style","position: absolute;overflow: hidden;width: 0;height: 0;top: 0;left: 0;"),r.innerText=o,document.body.appendChild(r),r.select();try{document.execCommand(n),r.remove()}catch(c){t(c)}e()}})}(); | ||
!function(){"use strict";var o,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};"object"===("undefined"==typeof module?"undefined":n(module))&&module.exports?(o=require("angular"),module.exports="ng-clipboard"):o=window.angular,o.module("ng-clipboard",[]),o.module("ng-clipboard").directive("ngCopy",["createFake",function(o){return{restrict:"A",scope:{ngCopy:"=",onSuccess:"&",onError:"&"},link:function(n,e){var t=function(){n.onSuccess()},r=function(){n.onError()};e.on("click",function(){o(n.ngCopy,"copy",t,r)})}}}]),o.module("ng-clipboard").directive("ngCut",["createFake",function(o){return{restrict:"A",scope:{ngCut:"=",onSuccess:"&",onError:"&"},link:function(n,e){var t=function(){n.ngCut="",n.onSuccess()},r=function(){n.onError()};e.on("click",function(){o(n.ngCut,"copy",t,r)})}}}]),o.module("ng-clipboard").factory("createFake",function(){return function(o,n,e,t){var r=document.createElement("textarea");r.setAttribute("style","position: absolute;overflow: hidden;width: 0;height: 0;top: 0;left: 0;"),r.value=o,document.body.appendChild(r),r.select();try{document.execCommand(n),r.remove()}catch(c){t(c)}e()}})}(); |
{ | ||
"name": "ng-clipboard", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "AngularJS directive to copy or cut text to clipboard without using flash.", | ||
@@ -9,2 +9,5 @@ "repository": { | ||
}, | ||
"scripts": { | ||
"prepublish": "gulp js" | ||
}, | ||
"keywords": [ | ||
@@ -25,2 +28,3 @@ "angular", | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.24.1", | ||
"gulp": "^3.9.1", | ||
@@ -27,0 +31,0 @@ "gulp-babel": "^6.1.2", |
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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
ngx-clipboard |
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
86759
12
0
8