svelte-copy
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "svelte-copy", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"repository": { | ||
@@ -14,12 +14,12 @@ "type": "git", | ||
"devDependencies": { | ||
"@sveltejs/adapter-vercel": "1.0.0-next.77", | ||
"@sveltejs/kit": "1.0.0-next.510", | ||
"@sveltejs/package": "^1.0.0-next.5", | ||
"ghostsui": "^1.5.0", | ||
"svelte": "^3.50.1", | ||
"svelte-preprocess": "^4.10.7", | ||
"svelte2tsx": "^0.5.19", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.8.4", | ||
"vite": "^3.1.5" | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "1.15.5", | ||
"@sveltejs/package": "^2.0.2", | ||
"ghostsui": "^1.6.0", | ||
"svelte": "^3.58.0", | ||
"svelte-preprocess": "^5.0.3", | ||
"svelte2tsx": "^0.6.11", | ||
"tslib": "^2.5.0", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.2.1" | ||
}, | ||
@@ -29,4 +29,16 @@ "type": "module", | ||
"./package.json": "./package.json", | ||
".": "./index.js" | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"svelte": "./dist/index.js", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"package": "svelte-kit sync && svelte-package" | ||
} | ||
} |
@@ -66,2 +66,16 @@ # Svelte Copy | ||
# Copy Text | ||
We also include a helper called `copyText` if you want to use the logic of this package without the action. Make sure you only call this in the browser! | ||
```html | ||
<script> | ||
import { copyText } from 'svelte-copy'l | ||
</script> | ||
<button on:click={() => copyText('Hello World!')}> | ||
Copy something | ||
</button> | ||
``` | ||
# Support | ||
@@ -68,0 +82,0 @@ |
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
5976
84
7
75