@har-analyzer/components 0.0.5 → 0.0.8
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/README.md +43 -17
- package/dist/chunks/content-type.js +31 -6594
- package/dist/chunks/har.js +43 -0
- package/dist/chunks/index.js +50 -13548
- package/dist/chunks/index2.js +2157 -2011
- package/dist/chunks/vertical-gap.js +5 -32
- package/dist/har-analyzer.d.ts +4 -4
- package/dist/har-analyzer.js +91 -5977
- package/dist/har-content-viewer.d.ts +14 -0
- package/dist/har-content-viewer.js +149 -0
- package/dist/har-entries-filters.d.ts +23 -0
- package/dist/har-entries-filters.js +7 -0
- package/dist/har-entries-viewer.d.ts +10 -11
- package/dist/har-entries-viewer.js +6 -4
- package/dist/har-entry-viewer.d.ts +7 -6
- package/dist/har-entry-viewer.js +1143 -3
- package/dist/har-file-uploader.d.ts +6 -3
- package/dist/har-file-uploader.js +73 -6
- package/dist/index.d.ts +39 -17
- package/dist/index.js +17 -8
- package/package.json +31 -26
- package/dist/assets/content-type.css +0 -1
- package/dist/assets/har-analyzer.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/assets/internal.css +0 -1
- package/dist/chunks/index3.js +0 -1149
- package/dist/chunks/index4.js +0 -82
- package/dist/chunks/internal.js +0 -996
package/dist/chunks/index4.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import o from "react";
|
|
2
|
-
import { c as s, g as c, i as u, w as d } from "./content-type.js";
|
|
3
|
-
import '../assets/index.css';const f = {
|
|
4
|
-
maxContentWidth: "--awsui-max-content-width-kcc2gu",
|
|
5
|
-
minContentWidth: "--awsui-min-content-width-kcc2gu",
|
|
6
|
-
drawerSize: "--awsui-drawer-size-kcc2gu",
|
|
7
|
-
footerHeight: "--awsui-footer-height-kcc2gu",
|
|
8
|
-
headerHeight: "--awsui-header-height-kcc2gu",
|
|
9
|
-
layoutWidth: "--awsui-layout-width-kcc2gu",
|
|
10
|
-
mainOffsetLeft: "--awsui-main-offset-left-kcc2gu",
|
|
11
|
-
mobileBarHeight: "--awsui-mobile-bar-height-kcc2gu",
|
|
12
|
-
notificationsHeight: "--awsui-notifications-height-kcc2gu",
|
|
13
|
-
overlapHeight: "--awsui-overlap-height-kcc2gu",
|
|
14
|
-
navigationWidth: "--awsui-navigation-width-kcc2gu",
|
|
15
|
-
splitPanelReportedHeaderSize: "--awsui-split-panel-reported-header-size-kcc2gu",
|
|
16
|
-
splitPanelReportedSize: "--awsui-split-panel-reported-size-kcc2gu",
|
|
17
|
-
splitPanelHeight: "--awsui-split-panel-height-kcc2gu",
|
|
18
|
-
splitPanelMinWidth: "--awsui-split-panel-min-width-kcc2gu",
|
|
19
|
-
splitPanelMaxWidth: "--awsui-split-panel-max-width-kcc2gu",
|
|
20
|
-
toolsWidth: "--awsui-tools-width-kcc2gu",
|
|
21
|
-
toolsAnimationStartingOpacity: "--awsui-tools-animation-starting-opacity-kcc2gu",
|
|
22
|
-
flashbarStackDepth: "--awsui-flashbar-stack-depth-kcc2gu",
|
|
23
|
-
flashbarStackIndex: "--awsui-flashbar-stack-index-kcc2gu",
|
|
24
|
-
dropdownDefaultMaxWidth: "--awsui-dropdown-default-max-width-kcc2gu"
|
|
25
|
-
}, l = {
|
|
26
|
-
root: "awsui_root_xttbq_1rjuy_145"
|
|
27
|
-
};
|
|
28
|
-
function w(e) {
|
|
29
|
-
return o.createElement("span", Object.assign({}, e, { className: s(l.root, e.className) }));
|
|
30
|
-
}
|
|
31
|
-
function m(...e) {
|
|
32
|
-
return e.filter(Boolean).join(" ") || void 0;
|
|
33
|
-
}
|
|
34
|
-
function k(e) {
|
|
35
|
-
if (typeof e != "string")
|
|
36
|
-
throw new Error("File contents are invalid. Expected contents to be a stringified JSON.");
|
|
37
|
-
try {
|
|
38
|
-
return JSON.parse(e);
|
|
39
|
-
} catch (t) {
|
|
40
|
-
const n = "Failed to JSON parse file content";
|
|
41
|
-
throw console.error(n, t), new Error(n);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function y(e) {
|
|
45
|
-
return e?.log.entries || [];
|
|
46
|
-
}
|
|
47
|
-
function S(e, t) {
|
|
48
|
-
return t.length ? e.filter((i) => {
|
|
49
|
-
const a = i.response.content.mimeType, r = c(a);
|
|
50
|
-
return t.includes(r);
|
|
51
|
-
}) : e;
|
|
52
|
-
}
|
|
53
|
-
function h(e) {
|
|
54
|
-
const t = e.response.status;
|
|
55
|
-
return t < 200 || t >= 400;
|
|
56
|
-
}
|
|
57
|
-
function b(e) {
|
|
58
|
-
return e.filter((t) => h(t));
|
|
59
|
-
}
|
|
60
|
-
function x(e, t) {
|
|
61
|
-
const n = /* @__PURE__ */ new Set();
|
|
62
|
-
return e.forEach((i) => {
|
|
63
|
-
(i[t].headers || []).forEach((r) => {
|
|
64
|
-
n.add(r.name);
|
|
65
|
-
});
|
|
66
|
-
}), Array.from(n);
|
|
67
|
-
}
|
|
68
|
-
function E(e, t, n, i, a) {
|
|
69
|
-
n !== void 0 && a === void 0 && u && d(e, `You provided \`${t}\` prop without an \`${i}\` handler. This will render a read-only component. If the component should be mutable, set an \`${i}\` handler.`);
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
w as S,
|
|
73
|
-
f as a,
|
|
74
|
-
y as b,
|
|
75
|
-
E as c,
|
|
76
|
-
x as d,
|
|
77
|
-
b as e,
|
|
78
|
-
S as f,
|
|
79
|
-
k as g,
|
|
80
|
-
h as i,
|
|
81
|
-
m as j
|
|
82
|
-
};
|