forked from swc-project/swc
-
Notifications
You must be signed in to change notification settings - Fork 4
/
output.js
54 lines (54 loc) · 2.72 KB
/
output.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
405
],
{
4186: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
default: function() {
return Home;
}
});
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5893), react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7294), _styles_Home_module_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7160), _styles_Home_module_css__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(_styles_Home_module_css__WEBPACK_IMPORTED_MODULE_4__), _gmod_binary_parser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9996), binary_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9567), Buffer = __webpack_require__(1876).Buffer;
function Home() {
return (0, react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{
const ipHeader1 = new _gmod_binary_parser__WEBPACK_IMPORTED_MODULE_2__._().uint8("compressionMethod", {
formatter: (b)=>{
const method = [
"raw"
][b];
return method || console.log("in @gmod/binary-parser"), method;
}
}), ipHeader2 = new binary_parser__WEBPACK_IMPORTED_MODULE_3__._().uint8("compressionMethod", {
formatter: (b)=>{
const method = [
"raw"
][b];
return method || console.log("in binary-parser"), method;
}
});
console.log({
ipHeader1,
ipHeader2
});
const buf = Buffer.from("450002c5939900002c06ef98adc24f6c850186d1", "hex");
console.log(ipHeader2.parse(buf)), console.log(ipHeader1.parse(buf));
}, []), (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
className: _styles_Home_module_css__WEBPACK_IMPORTED_MODULE_4___default().container,
children: "hello"
});
}
}
},
function(__webpack_require__) {
__webpack_require__.O(0, [
390,
774,
888,
179
], function() {
return __webpack_require__(__webpack_require__.s = 8312);
}), _N_E = __webpack_require__.O();
}
]);