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

@open-wc/testing-helpers

Package Overview
Dependencies
Maintainers
3
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-wc/testing-helpers - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

src/types.d.ts

6

CHANGELOG.md
# Change Log
## 2.0.5
### Patch Changes
- 065b82a8: Add generics for oneEvent test helper function
## 2.0.4

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@open-wc/testing-helpers",
"version": "2.0.4",
"version": "2.0.5",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -121,5 +121,6 @@ let defineCECounter = 0;

*
* @param {EventTarget} eventTarget Target of the event, usually an Element
* @param {string} eventName Name of the event
* @returns {Promise<CustomEvent>} Promise to await until the event has been fired
* @param eventTarget Target of the event, usually an Element
* @param eventName Name of the event
* @returns Promise to await until the event has been fired
* @type {import("./types").OneEventFn}
*/

@@ -126,0 +127,0 @@ export function oneEvent(eventTarget, eventName) {

export { elementUpdated } from "./src/elementUpdated.js";
/** @deprecated please do import { html } from 'lit/static-html.js'; */
declare const deprecatedHtml: (strings: TemplateStringsArray, ...values: unknown[]) => import("lit-html").TemplateResult<1 | 2>;
declare const deprecatedHtml: (strings: TemplateStringsArray, ...values: unknown[]) => import("lit").TemplateResult<1 | 2>;
/** @deprecated please do import { unsafeStatic } from 'lit/static-html.js'; */

@@ -5,0 +5,0 @@ declare const deprecatedUnsafeStatic: (value: string) => {

export { elementUpdated } from "./src/elementUpdated.js";
import { html } from "lit-html/static";
import { unsafeStatic } from "lit-html/static";
import { html } from "lit/node_modules/lit-html/static";
import { unsafeStatic } from "lit/node_modules/lit-html/static";
export { html, unsafeStatic };

@@ -5,0 +5,0 @@ export { fixture, fixtureSync } from "./src/fixture.js";

@@ -78,7 +78,8 @@ /**

*
* @param {EventTarget} eventTarget Target of the event, usually an Element
* @param {string} eventName Name of the event
* @returns {Promise<CustomEvent>} Promise to await until the event has been fired
* @param eventTarget Target of the event, usually an Element
* @param eventName Name of the event
* @returns Promise to await until the event has been fired
* @type {import("./types").OneEventFn}
*/
export function oneEvent(eventTarget: EventTarget, eventName: string): Promise<CustomEvent>;
export function oneEvent(eventTarget: EventTarget, eventName: string): Promise<any>;
/**

@@ -85,0 +86,0 @@ * Waits until the given predicate returns a truthy value. Calls and awaits the predicate

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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