mhz-helpers 1.2.24 → 1.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,5 @@
1
- interface NodeWithProps {
2
- type: number;
3
- props: {
4
- type: number;
5
- name: string;
6
- }[];
7
- }
1
+ import { RootNode, TemplateChildNode } from '@vue/compiler-core';
8
2
  export declare function dataTest(value: string): string;
9
- export declare function removeDataTest(node: NodeWithProps): void;
3
+ export declare function removeDataTest(node: RootNode | TemplateChildNode): void;
10
4
  export declare function wait(time?: number): Promise<void>;
11
5
  export declare function withSetup<T>(composable: () => Promise<T>): Promise<void>;
12
- export {};
package/dist/index.js CHANGED
@@ -4861,7 +4861,9 @@ function Ma(t) {
4861
4861
  return `[data-test="${t}"]`;
4862
4862
  }
4863
4863
  function ka(t) {
4864
- t.type === 1 && (t.props = t.props.filter((e) => e.type === 6 ? e.name !== "data-test" : !0));
4864
+ t.type === 1 && "props" in t && (t.props = t.props.filter(
4865
+ (e) => e.type === 6 ? e.name !== "data-test" : !0
4866
+ ));
4865
4867
  }
4866
4868
  async function La(t) {
4867
4869
  await new Promise((e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-helpers",
3
3
  "description": "Mhz helpers and composables",
4
- "version": "1.2.24",
4
+ "version": "1.2.25",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",