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

sveld

Package Overview
Dependencies
Maintainers
1
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.17.0 to 0.17.1

4

CHANGELOG.md

@@ -13,2 +13,6 @@ # Changelog

## [0.17.1](https://github.com/carbon-design-system/sveld/releases/tag/v0.17.1) - 2022-06-02
- use correct type for forwarded cut/copy/paste events
## [0.17.0](https://github.com/carbon-design-system/sveld/releases/tag/v0.17.0) - 2022-05-21

@@ -15,0 +19,0 @@

@@ -181,2 +181,8 @@ "use strict";

}
var mapEvent = function (name) {
if (["cut", "copy", "paste"].includes(name)) {
return "DocumentAndElementEventHandlersEventMap";
}
return "WindowEventMap";
};
function genEventDef(def) {

@@ -191,3 +197,3 @@ var createDispatchedEvent = function (detail) {

.map(function (event) {
return "".concat(clampKey(event.name), ": ").concat(event.type === "dispatched" ? createDispatchedEvent(event.detail) : "WindowEventMap[\"".concat(event.name, "\"]"), ";");
return "".concat(clampKey(event.name), ": ").concat(event.type === "dispatched" ? createDispatchedEvent(event.detail) : "".concat(mapEvent(event.name), "[\"").concat(event.name, "\"]"), ";");
})

@@ -194,0 +200,0 @@ .join("\n");

2

package.json
{
"name": "sveld",
"version": "0.17.0",
"version": "0.17.1",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "description": "Generate TypeScript definitions for your Svelte components.",

@@ -42,3 +42,3 @@ # sveld

/// <reference types="svelte" />
import { SvelteComponentTyped } from "svelte";
import type { SvelteComponentTyped } from "svelte";

@@ -45,0 +45,0 @@ export interface ButtonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {

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