New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clippie

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clippie - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

dist/index.d.ts.map

9

dist/index.d.ts

@@ -1,8 +0,9 @@

type Content = string | Blob | (string | Blob)[];
type ClippieContent = string | Blob | (string | Blob)[];
type Success = boolean;
type Opts = {
type ClippieOpts = {
/** Whether to reject on unexpected errors. */
reject: boolean;
reject?: boolean;
};
export declare function clippie(content: Content, { reject }?: Opts): Promise<Success>;
export declare function clippie(content: ClippieContent, { reject }?: ClippieOpts): Promise<Success>;
export {};
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

async function clippie(content, { reject = false } = { reject: false }) {
async function clippie(content, { reject = false } = {}) {
try {

@@ -25,4 +25,3 @@ if (Array.isArray(content)) {

} catch (err) {
if (reject)
throw err;
if (reject) throw err;
return false;

@@ -32,4 +31,3 @@ }

function fallback(content) {
if (!document.execCommand)
return false;
if (!document.execCommand) return false;
const el = document.createElement("textarea");

@@ -36,0 +34,0 @@ el.value = String(content);

{
"name": "clippie",
"version": "4.1.1",
"version": "4.1.2",
"description": "Teeny-tiny browser clipboard copy",

@@ -17,17 +17,16 @@ "author": "silverwind",

"devDependencies": {
"@types/node": "20.12.8",
"@types/node": "20.14.7",
"eslint": "8.57.0",
"eslint-config-silverwind": "84.0.0",
"eslint-config-silverwind-typescript": "3.2.3",
"jsdom": "24.0.0",
"eslint-config-silverwind": "88.1.0",
"eslint-config-silverwind-typescript": "4.0.2",
"jsdom": "24.1.0",
"typescript": "5.4.5",
"typescript-config-silverwind": "3.0.4",
"updates": "16.0.1",
"versions": "12.0.1",
"vite": "5.2.11",
"vite-plugin-dts": "3.9.0",
"vite-string-plugin": "1.3.0",
"vitest": "1.5.3",
"vitest-config-silverwind": "9.0.2"
"typescript-config-silverwind": "5.1.1",
"updates": "16.2.0",
"versions": "12.1.2",
"vite": "5.3.1",
"vite-config-silverwind": "2.2.2",
"vitest": "1.6.0",
"vitest-config-silverwind": "9.0.6"
}
}
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