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

ng-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-clipboard - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

yarn.lock

2

dist/ng-clipboard.js

@@ -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",

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