@graffy/testing 0.16.14 → 0.16.15-alpha.2
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.
- package/index.cjs +1 -0
- package/index.mjs +1 -0
- package/package.json +2 -2
- package/types/mockBackend.d.ts +13 -1
package/index.cjs
CHANGED
|
@@ -26,6 +26,7 @@ function pretty(query) {
|
|
|
26
26
|
/\[(\s*)([\s\S]*?)\},*/g,
|
|
27
27
|
(_, space, inner) => `[${space}${inner.replace(/\n\s+/g, " ")}},`
|
|
28
28
|
).replace(
|
|
29
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: <explanation>
|
|
29
30
|
/[^\u0020-\u007e,\u000a]/g,
|
|
30
31
|
(char) => `\\u${char.charCodeAt(0).toString(16).padStart(4)}`
|
|
31
32
|
);
|
package/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ function pretty(query) {
|
|
|
24
24
|
/\[(\s*)([\s\S]*?)\},*/g,
|
|
25
25
|
(_, space, inner) => `[${space}${inner.replace(/\n\s+/g, " ")}},`
|
|
26
26
|
).replace(
|
|
27
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: <explanation>
|
|
27
28
|
/[^\u0020-\u007e,\u000a]/g,
|
|
28
29
|
(char) => `\\u${char.charCodeAt(0).toString(16).padStart(4)}`
|
|
29
30
|
);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/testing",
|
|
3
3
|
"description": "Testing and debugging utilities for Graffy.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.16.
|
|
5
|
+
"version": "0.16.15-alpha.2",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@graffy/common": "0.16.
|
|
19
|
+
"@graffy/common": "0.16.15-alpha.2"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/types/mockBackend.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
export default function mockBackend(options?: {}): {
|
|
2
2
|
state: any[];
|
|
3
3
|
read: (query: any) => any;
|
|
4
|
-
watch: () =>
|
|
4
|
+
watch: () => {
|
|
5
|
+
debugId: any;
|
|
6
|
+
next: () => any;
|
|
7
|
+
return(value: any): Promise<{
|
|
8
|
+
value: any;
|
|
9
|
+
done: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
throw(error: any): Promise<{
|
|
12
|
+
value: any;
|
|
13
|
+
done: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
[Symbol.asyncIterator](): any;
|
|
16
|
+
};
|
|
5
17
|
write: (change: any) => any;
|
|
6
18
|
};
|