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

svelte-copy-to-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-copy-to-clipboard - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

36

dist/index.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global['Facebook Login'] = factory());
(global = global || self, global.CopyToClipboard = factory());
}(this, (function () { 'use strict';

@@ -43,3 +43,6 @@

const lets = definition[2](fn(dirty));
if (typeof $$scope.dirty === 'object') {
if ($$scope.dirty === undefined) {
return lets;
}
if (typeof lets === 'object') {
const merged = [];

@@ -56,2 +59,5 @@ const len = Math.max($$scope.dirty.length, lets.length);

}
function detach(node) {
node.parentNode.removeChild(node);
}
function children(element) {

@@ -105,12 +111,17 @@ return Array.from(element.childNodes);

}
let flushing = false;
const seen_callbacks = new Set();
function flush() {
if (flushing)
return;
flushing = true;
do {
// first, call beforeUpdate functions
// and update components
while (dirty_components.length) {
const component = dirty_components.shift();
for (let i = 0; i < dirty_components.length; i += 1) {
const component = dirty_components[i];
set_current_component(component);
update(component.$$);
}
dirty_components.length = 0;
while (binding_callbacks.length)

@@ -135,2 +146,3 @@ binding_callbacks.pop()();

update_scheduled = false;
flushing = false;
seen_callbacks.clear();

@@ -251,4 +263,6 @@ }

if (options.hydrate) {
const nodes = children(options.target);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
$$.fragment && $$.fragment.l(children(options.target));
$$.fragment && $$.fragment.l(nodes);
nodes.forEach(detach);
}

@@ -285,3 +299,3 @@ else {

/* src/index.svelte generated by Svelte v3.18.1 */
/* src/CopyToClipboard.svelte generated by Svelte v3.21.0 */
const get_default_slot_changes = dirty => ({});

@@ -307,4 +321,6 @@ const get_default_slot_context = ctx => ({ copy: /*copy*/ ctx[0] });

p(ctx, [dirty]) {
if (default_slot && default_slot.p && dirty & /*$$scope*/ 8) {
default_slot.p(get_slot_context(default_slot_template, ctx, /*$$scope*/ ctx[3], get_default_slot_context), get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, get_default_slot_changes));
if (default_slot) {
if (default_slot.p && dirty & /*$$scope*/ 8) {
default_slot.p(get_slot_context(default_slot_template, ctx, /*$$scope*/ ctx[3], get_default_slot_context), get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, get_default_slot_changes));
}
}

@@ -345,3 +361,3 @@ },

class Src extends SvelteComponent {
class CopyToClipboard extends SvelteComponent {
constructor(options) {

@@ -353,4 +369,4 @@ super();

return Src;
return CopyToClipboard;
})));
{
"name": "svelte-copy-to-clipboard",
"version": "0.2.0",
"version": "0.2.2",
"description": "Copy to clipboard component for Svelte",
"author": "Henrique Araujo <henrique.004@hotmail.com> (https://henriquecaraujo.github.io/cv",
"license": "MIT",
"svelte": "src/CopyToClipboard.svelte",
"module": "dist/index.mjs",
"main": "dist/index.js",
"files": [
"src/CopyToClipboard",
"dist",

@@ -16,15 +18,27 @@ "README.md"

"dev": "rollup -c -w",
"start": "sirv public"
"start": "sirv public",
"test": "jest src",
"e2e": "yarn dev -- --silent & cypress run"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-node-resolve": "^7.0.0",
"rollup": "^1.20.0",
"rollup-plugin-livereload": "^1.0.0",
"rollup-plugin-svelte": "^5.0.3",
"rollup-plugin-terser": "^5.1.2",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"cypress": "^4.4.1",
"install": "^0.13.0",
"rollup": "^2.7.2",
"rollup-plugin-livereload": "^1.2.0",
"rollup-plugin-svelte": "^5.2.1",
"rollup-plugin-terser": "^5.3.0",
"sirv-cli": "^0.4.4",
"svelte": "^3.0.0",
"svelte-copy-to-clipboard": "^0.1.1"
"svelte": "^3.21.0"
},
"jest": {
"transform": {
"^.+\\.svelte$": "svelte-jester"
},
"moduleFileExtensions": [
"js",
"svelte"
]
},
"bugs": {

@@ -31,0 +45,0 @@ "url": "https://github.com/henriquecaraujo/svelte-copy-to-clipboard/issues"

@@ -1,4 +0,6 @@

# Svelte Copy to Clipboard
![Svelte Copy to Clipboard](./docs/header.png)
A flexible copy to clipboard component for Svelte
[![npm version](https://badge.fury.io/js/svelte-copy-to-clipboard.svg)](https://badge.fury.io/js/svelte-copy-to-clipboard)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.com/henriquecaraujo/svelte-copy-to-clipboard.svg?branch=master)](https://travis-ci.com/henriquecaraujo/svelte-copy-to-clipboard)

@@ -13,2 +15,4 @@ ## Installation

[LIVE DEMO](https://svelte-copy-to-clipboard.netlify.com/)
Local demo:

@@ -18,4 +22,4 @@

git clone https://github.com/henriquecaraujo/svelte-copy-to-clipboard.git
cd svelte-copy-to-clipboard/example
yarn && yarn start
cd svelte-copy-to-clipboard
yarn && yarn dev
```

@@ -68,2 +72,2 @@

Svelte Infinite Scroll is open source software [licensed as MIT](https://github.com/henriquecaraujo/svelte-copy-to-clipboard/blob/master/LICENSE).
Svelte Copy to Clipboard is open source software [licensed as MIT](https://github.com/henriquecaraujo/svelte-copy-to-clipboard/blob/master/LICENSE).

Sorry, the diff of this file is not supported yet

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