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

@zywave/zui-base

Package Overview
Dependencies
Maintainers
0
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zywave/zui-base - npm Package Compare versions

Comparing version

to
4.2.3-pre.1

2

dist/utils/update-custom-state.js
export function updateCustomState(elInternals, action, state) {
try {
// @ts-ignore
elInternals.states?.[action](state);
}
catch {
// @ts-ignore
elInternals.states?.[action](`--${state}`);

@@ -7,0 +9,0 @@ }

4

package.json
{
"name": "@zywave/zui-base",
"version": "4.2.3-pre.0",
"version": "4.2.3-pre.1",
"main": "dist/index.js",

@@ -22,3 +22,3 @@ "module": "dist/index.js",

},
"gitHead": "6c2709456288a0e36c929ae59e27aed2a7d28e13"
"gitHead": "590642415341cc72253f480d88aa96ba43cd7a5a"
}
export function updateCustomState(elInternals: ElementInternals, action: string, state: string) {
try {
// @ts-ignore
elInternals.states?.[action](state);
} catch {
// @ts-ignore
elInternals.states?.[action](`--${state}`);
}
}

@@ -82,6 +82,7 @@ // eslint-disable-next-line @typescript-eslint/triple-slash-reference

test('initializes as a ZuiBaseElement', () => {
test('initializes as a TestBaseElement, which is a subclass of ZuiBaseElement', () => {
const element = document.createElement('test-base') as TestBaseElement;
document.body.appendChild(element);
assert.instanceOf(element, ZuiBaseElement);
assert.instanceOf(element, TestBaseElement);
assert.isTrue(element instanceof ZuiBaseElement);
document.body.removeChild(element);

@@ -88,0 +89,0 @@ });

Sorry, the diff of this file is not supported yet