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

sveld

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveld - npm Package Compare versions

Comparing version 0.20.2 to 0.20.3

8

lib/writer/writer-ts-definitions.js

@@ -133,6 +133,4 @@ "use strict";

}
const mapEvent = (name) => {
if (["cut", "copy", "paste"].includes(name)) {
return "DocumentAndElementEventHandlersEventMap";
}
const mapEvent = () => {
// lib.dom.d.ts should map event types by name.
return "WindowEventMap";

@@ -154,3 +152,3 @@ };

}
return `${description}${clampKey(event.name)}: ${event.type === "dispatched" ? createDispatchedEvent(event.detail) : `${mapEvent(event.name)}["${event.name}"]`};\n`;
return `${description}${clampKey(event.name)}: ${event.type === "dispatched" ? createDispatchedEvent(event.detail) : `${mapEvent()}["${event.name}"]`};\n`;
})

@@ -157,0 +155,0 @@ .join("");

{
"name": "sveld",
"version": "0.20.2",
"version": "0.20.3",
"license": "Apache-2.0",

@@ -10,2 +10,3 @@ "description": "Generate TypeScript definitions for your Svelte components.",

"test": "bun test",
"test:fixtures-types": "bun --bun tsc --project tsconfig.fixtures.json",
"test:e2e": "bun tests/test-e2e.ts",

@@ -28,3 +29,3 @@ "format": "bun --bun prettier --write \".\" --cache",

"devDependencies": {
"@types/bun": "^1.1.9",
"@types/bun": "^1.1.12",
"@types/jest": "^29.5.13",

@@ -31,0 +32,0 @@ "@types/prettier": "^2.7.3",

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