app-devtools 0.10.0 → 0.12.0
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/dist/main.js +33 -3
- package/package.json +9 -9
package/dist/main.js
CHANGED
|
@@ -1740,6 +1740,35 @@ function filterNonNullableElements(array) {
|
|
|
1740
1740
|
return array.filter((item) => item !== null && item !== void 0);
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
|
+
function klona(val) {
|
|
1744
|
+
var k, out, tmp;
|
|
1745
|
+
|
|
1746
|
+
if (Array.isArray(val)) {
|
|
1747
|
+
out = Array(k=val.length);
|
|
1748
|
+
while (k--) out[k] = (tmp=val[k]) && typeof tmp === 'object' ? klona(tmp) : tmp;
|
|
1749
|
+
return out;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
if (Object.prototype.toString.call(val) === '[object Object]') {
|
|
1753
|
+
out = {}; // null
|
|
1754
|
+
for (k in val) {
|
|
1755
|
+
if (k === '__proto__') {
|
|
1756
|
+
Object.defineProperty(out, k, {
|
|
1757
|
+
value: klona(val[k]),
|
|
1758
|
+
configurable: true,
|
|
1759
|
+
enumerable: true,
|
|
1760
|
+
writable: true,
|
|
1761
|
+
});
|
|
1762
|
+
} else {
|
|
1763
|
+
out[k] = (tmp=val[k]) && typeof tmp === 'object' ? klona(tmp) : tmp;
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
return out;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
return val;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1743
1772
|
const [callsStore, setCallsStore] = createStore({
|
|
1744
1773
|
calls: {}
|
|
1745
1774
|
});
|
|
@@ -1820,10 +1849,10 @@ function addCall(request) {
|
|
|
1820
1849
|
duration,
|
|
1821
1850
|
pathParams,
|
|
1822
1851
|
isError,
|
|
1823
|
-
metadata,
|
|
1852
|
+
metadata: klona(metadata),
|
|
1853
|
+
response: klona(response),
|
|
1824
1854
|
path: request.path.replace(/^\//, ""),
|
|
1825
|
-
payload: request.payload,
|
|
1826
|
-
response,
|
|
1855
|
+
payload: klona(request.payload),
|
|
1827
1856
|
searchParams,
|
|
1828
1857
|
startTime,
|
|
1829
1858
|
type: request.type,
|
|
@@ -3411,6 +3440,7 @@ const backdropStyle = u`
|
|
|
3411
3440
|
${fillContainer};
|
|
3412
3441
|
position: fixed;
|
|
3413
3442
|
inset: 0;
|
|
3443
|
+
backdrop-filter: blur(5px);
|
|
3414
3444
|
`;
|
|
3415
3445
|
const App = () => {
|
|
3416
3446
|
return [(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"packageManager": "pnpm@6.29.1",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dayjs": "^1.11.7",
|
|
25
25
|
"dequal": "^2.0.3",
|
|
26
26
|
"diff": "^5.1.0",
|
|
27
|
-
"
|
|
27
|
+
"klona": "^2.0.6",
|
|
28
28
|
"nanoid": "^4.0.1",
|
|
29
29
|
"regexparam": "^2.0.1",
|
|
30
30
|
"solid-js": "^1.6.11",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"node": "16.14.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"vite": "^4.1.2",
|
|
40
|
-
"vite-plugin-solid": "^2.5.0",
|
|
41
|
-
"typescript": "4.9.5",
|
|
42
|
-
"oslu": "^0.9.0",
|
|
43
39
|
"@babel/core": "^7.20.12",
|
|
44
40
|
"@lucasols/eslint-plugin-extended-lint": "^0.1.1",
|
|
45
41
|
"@types/diff": "^5.0.2",
|
|
46
42
|
"@types/marked": "^4.0.8",
|
|
47
43
|
"@types/node": "^18.14.0",
|
|
48
|
-
"@vitest/ui": "^0.28.5",
|
|
49
44
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
50
45
|
"@typescript-eslint/parser": "^5.52.0",
|
|
46
|
+
"@vitest/ui": "^0.28.5",
|
|
51
47
|
"babel-plugin-solid-labels": "^0.14.2",
|
|
52
48
|
"eslint": "^8.34.0",
|
|
53
|
-
"
|
|
49
|
+
"happy-dom": "^8.7.1",
|
|
50
|
+
"oslu": "^0.9.0",
|
|
54
51
|
"tsm": "^2.3.0",
|
|
55
52
|
"tsup": "^6.6.3",
|
|
56
|
-
"
|
|
53
|
+
"typescript": "4.9.5",
|
|
54
|
+
"vite": "^4.1.2",
|
|
55
|
+
"vite-plugin-solid": "^2.5.0",
|
|
56
|
+
"vitest": "^0.28.5"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "vite",
|