openportal 0.1.1 → 0.1.3
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 +113 -0
- package/package.json +1 -1
- package/web/.next/static/{A7pW-dtFIbPCSkvE8uenX → Im7EdK1Q3oOmTznohTOr5}/_buildManifest.js +4 -9
- package/web/.next/static/chunks/{2e7bfb90c343ca96.js → 35cc9dbdc670c73c.js} +4 -4
- package/web/.next/static/chunks/4147ffc67a7b837c.css +1 -0
- package/web/.next/static/chunks/{21ab2574b84ad2d1.js → 52b90bc1740162c2.js} +2 -2
- package/web/.next/static/chunks/{9b265e2198b5525f.js → 8644d68bf325ff24.js} +3 -3
- package/web/.next/static/chunks/{03e1846335a31354.js → 9865709466b09f79.js} +3 -3
- package/web/.next/static/chunks/{c20ae04df8cc28be.js → 9ba9a5774c9421bd.js} +3 -3
- package/web/.next/static/chunks/{967a1e0002fe9ae6.js → b5caad256518cb33.js} +3 -3
- package/web/.next/static/chunks/{turbopack-27558c851386934e.js → turbopack-26af71e419c11487.js} +1 -1
- package/web/.next/static/chunks/{turbopack-f4c0881f9723f5a5.js → turbopack-4ad0df7330c00c8d.js} +1 -1
- package/web/.next/static/chunks/{turbopack-26688626142ac58f.js → turbopack-8e653f3ad3a8ed18.js} +1 -1
- package/web/.next/static/chunks/{turbopack-c40ec6674624f1d7.js → turbopack-d5098189d63fd7b8.js} +1 -1
- package/web/apps/web/.next/BUILD_ID +1 -1
- package/web/apps/web/.next/build-manifest.json +14 -24
- package/web/apps/web/.next/routes-manifest.json +0 -12
- package/web/apps/web/.next/server/chunks/[root-of-the-server]__f366ca98._.js +358 -0
- package/web/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__dfeaf8cf._.js → [root-of-the-server]__1a54ba1e._.js} +3 -3
- package/web/apps/web/.next/server/middleware-build-manifest.js +12 -22
- package/web/apps/web/.next/server/next-font-manifest.js +1 -1
- package/web/apps/web/.next/server/next-font-manifest.json +0 -4
- package/web/apps/web/.next/server/pages/404.html +1 -1
- package/web/apps/web/.next/server/pages/500.html +1 -1
- package/web/apps/web/.next/server/pages/_app/build-manifest.json +3 -3
- package/web/apps/web/.next/server/pages/_app/client-build-manifest.json +1 -1
- package/web/apps/web/.next/server/pages/api/[[...slugs]].js +1 -2
- package/web/apps/web/.next/server/pages/api/[[...slugs]].js.nft.json +1 -1
- package/web/apps/web/.next/server/pages/index/build-manifest.json +3 -3
- package/web/apps/web/.next/server/pages/index/client-build-manifest.json +1 -1
- package/web/apps/web/.next/server/pages/index.html +1 -1
- package/web/apps/web/.next/server/pages/index.js.nft.json +1 -1
- package/web/apps/web/.next/server/pages/session/[id]/build-manifest.json +4 -4
- package/web/apps/web/.next/server/pages/session/[id]/client-build-manifest.json +1 -1
- package/web/apps/web/.next/server/pages/session/[id].html +1 -1
- package/web/apps/web/.next/server/pages/session/[id].js.nft.json +1 -1
- package/web/apps/web/.next/server/pages/settings/build-manifest.json +3 -3
- package/web/apps/web/.next/server/pages/settings/client-build-manifest.json +1 -1
- package/web/apps/web/.next/server/pages/settings.html +1 -1
- package/web/apps/web/.next/server/pages/settings.js.nft.json +1 -1
- package/web/apps/web/.next/server/pages-manifest.json +0 -2
- package/web/apps/web/package.json +1 -9
- package/web/.next/static/chunks/04d4692d75696297.css +0 -1
- package/web/.next/static/chunks/553710f60e2f2b11.js +0 -1
- package/web/.next/static/chunks/58acbbb4090e3362.js +0 -3
- package/web/.next/static/chunks/6ce1e2f08f961db5.js +0 -2
- package/web/.next/static/chunks/d316d63225992c76.js +0 -10
- package/web/.next/static/chunks/e0c97552ba7a9e3d.js +0 -1
- package/web/.next/static/chunks/fc9c4f2dabfb4e0e.css +0 -1
- package/web/.next/static/chunks/turbopack-1837909a677d116b.js +0 -3
- package/web/apps/web/.next/server/chunks/[root-of-the-server]__0f75905d._.js +0 -3
- package/web/apps/web/.next/server/chunks/[root-of-the-server]__89e85365._.js +0 -358
- package/web/apps/web/.next/server/chunks/[root-of-the-server]__ae1361d0._.js +0 -3
- package/web/apps/web/.next/server/pages/api/terminal/ws/pages-manifest.json +0 -3
- package/web/apps/web/.next/server/pages/api/terminal/ws.js +0 -5
- package/web/apps/web/.next/server/pages/api/terminal/ws.js.map +0 -5
- package/web/apps/web/.next/server/pages/api/terminal/ws.js.nft.json +0 -1
- package/web/apps/web/.next/server/pages/terminal/build-manifest.json +0 -20
- package/web/apps/web/.next/server/pages/terminal/client-build-manifest.json +0 -5
- package/web/apps/web/.next/server/pages/terminal/next-font-manifest.json +0 -11
- package/web/apps/web/.next/server/pages/terminal/pages-manifest.json +0 -3
- package/web/apps/web/.next/server/pages/terminal/react-loadable-manifest.json +0 -1
- package/web/apps/web/.next/server/pages/terminal.html +0 -1
- package/web/apps/web/.next/server/pages/terminal.js.map +0 -5
- package/web/apps/web/.next/server/pages/terminal.js.nft.json +0 -1
- package/web/node_modules/.bun/@socket.io+component-emitter@3.1.2/node_modules/@socket.io/component-emitter/lib/cjs/index.js +0 -176
- package/web/node_modules/.bun/@socket.io+component-emitter@3.1.2/node_modules/@socket.io/component-emitter/lib/cjs/package.json +0 -4
- package/web/node_modules/.bun/@socket.io+component-emitter@3.1.2/node_modules/@socket.io/component-emitter/package.json +0 -28
- package/web/node_modules/.bun/accepts@1.3.8/node_modules/accepts/index.js +0 -238
- package/web/node_modules/.bun/accepts@1.3.8/node_modules/accepts/package.json +0 -47
- package/web/node_modules/.bun/base64id@2.0.0/node_modules/base64id/lib/base64id.js +0 -103
- package/web/node_modules/.bun/base64id@2.0.0/node_modules/base64id/package.json +0 -13
- package/web/node_modules/.bun/cookie@0.7.2/node_modules/cookie/index.js +0 -335
- package/web/node_modules/.bun/cookie@0.7.2/node_modules/cookie/package.json +0 -44
- package/web/node_modules/.bun/cookie@1.1.1/node_modules/cookie/package.json +0 -47
- package/web/node_modules/.bun/cors@2.8.5/node_modules/cors/lib/index.js +0 -238
- package/web/node_modules/.bun/cors@2.8.5/node_modules/cors/package.json +0 -41
- package/web/node_modules/.bun/debug@4.3.7/node_modules/debug/package.json +0 -60
- package/web/node_modules/.bun/debug@4.3.7/node_modules/debug/src/browser.js +0 -271
- package/web/node_modules/.bun/debug@4.3.7/node_modules/debug/src/common.js +0 -274
- package/web/node_modules/.bun/debug@4.3.7/node_modules/debug/src/index.js +0 -10
- package/web/node_modules/.bun/debug@4.3.7/node_modules/debug/src/node.js +0 -263
- package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/build/cjs/commons.js +0 -19
- package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/build/cjs/decodePacket.js +0 -59
- package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/build/cjs/encodePacket.js +0 -38
- package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/build/cjs/index.js +0 -164
- package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/build/cjs/package.json +0 -8
- package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/package.json +0 -46
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/engine.io.js +0 -54
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/parser-v3/index.js +0 -424
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/parser-v3/utf8.js +0 -187
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/server.js +0 -786
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/socket.js +0 -460
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transport.js +0 -117
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports/index.js +0 -23
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports/polling-jsonp.js +0 -41
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports/polling.js +0 -332
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports/websocket.js +0 -94
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports/webtransport.js +0 -63
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports-uws/index.js +0 -8
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports-uws/polling.js +0 -364
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/transports-uws/websocket.js +0 -73
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/build/userver.js +0 -279
- package/web/node_modules/.bun/engine.io@6.6.4/node_modules/engine.io/package.json +0 -70
- package/web/node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js +0 -8
- package/web/node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/package.json +0 -46
- package/web/node_modules/.bun/mime-db@1.52.0/node_modules/mime-db/db.json +0 -8519
- package/web/node_modules/.bun/mime-db@1.52.0/node_modules/mime-db/index.js +0 -12
- package/web/node_modules/.bun/mime-db@1.52.0/node_modules/mime-db/package.json +0 -60
- package/web/node_modules/.bun/mime-types@2.1.35/node_modules/mime-types/index.js +0 -188
- package/web/node_modules/.bun/mime-types@2.1.35/node_modules/mime-types/package.json +0 -44
- package/web/node_modules/.bun/ms@2.1.3/node_modules/ms/index.js +0 -162
- package/web/node_modules/.bun/ms@2.1.3/node_modules/ms/package.json +0 -38
- package/web/node_modules/.bun/negotiator@0.6.3/node_modules/negotiator/index.js +0 -82
- package/web/node_modules/.bun/negotiator@0.6.3/node_modules/negotiator/lib/charset.js +0 -169
- package/web/node_modules/.bun/negotiator@0.6.3/node_modules/negotiator/lib/encoding.js +0 -184
- package/web/node_modules/.bun/negotiator@0.6.3/node_modules/negotiator/lib/language.js +0 -179
- package/web/node_modules/.bun/negotiator@0.6.3/node_modules/negotiator/lib/mediaType.js +0 -294
- package/web/node_modules/.bun/negotiator@0.6.3/node_modules/negotiator/package.json +0 -42
- package/web/node_modules/.bun/object-assign@4.1.1/node_modules/object-assign/index.js +0 -90
- package/web/node_modules/.bun/object-assign@4.1.1/node_modules/object-assign/package.json +0 -42
- package/web/node_modules/.bun/socket.io-adapter@2.5.5/node_modules/socket.io-adapter/dist/cluster-adapter.js +0 -674
- package/web/node_modules/.bun/socket.io-adapter@2.5.5/node_modules/socket.io-adapter/dist/contrib/yeast.js +0 -55
- package/web/node_modules/.bun/socket.io-adapter@2.5.5/node_modules/socket.io-adapter/dist/in-memory-adapter.js +0 -394
- package/web/node_modules/.bun/socket.io-adapter@2.5.5/node_modules/socket.io-adapter/dist/index.js +0 -10
- package/web/node_modules/.bun/socket.io-adapter@2.5.5/node_modules/socket.io-adapter/package.json +0 -39
- package/web/node_modules/.bun/socket.io-parser@4.2.4/node_modules/socket.io-parser/build/cjs/binary.js +0 -88
- package/web/node_modules/.bun/socket.io-parser@4.2.4/node_modules/socket.io-parser/build/cjs/index.js +0 -321
- package/web/node_modules/.bun/socket.io-parser@4.2.4/node_modules/socket.io-parser/build/cjs/is-binary.js +0 -55
- package/web/node_modules/.bun/socket.io-parser@4.2.4/node_modules/socket.io-parser/build/cjs/package.json +0 -3
- package/web/node_modules/.bun/socket.io-parser@4.2.4/node_modules/socket.io-parser/package.json +0 -58
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/client-dist/socket.io.esm.min.js +0 -7
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/client-dist/socket.io.js +0 -4908
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/client-dist/socket.io.min.js +0 -7
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/client-dist/socket.io.msgpack.min.js +0 -7
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/broadcast-operator.js +0 -436
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/client.js +0 -268
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/index.js +0 -804
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/namespace.js +0 -581
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/parent-namespace.js +0 -88
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/socket-types.js +0 -11
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/socket.js +0 -977
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/typed-events.js +0 -81
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/dist/uws.js +0 -136
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/package.json +0 -85
- package/web/node_modules/.bun/socket.io@4.8.1/node_modules/socket.io/wrapper.mjs +0 -3
- package/web/node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js +0 -135
- package/web/node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/package.json +0 -53
- package/web/node_modules/.bun/vary@1.1.2/node_modules/vary/index.js +0 -149
- package/web/node_modules/.bun/vary@1.1.2/node_modules/vary/package.json +0 -43
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/index.js +0 -13
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/buffer-util.js +0 -131
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/constants.js +0 -12
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/event-target.js +0 -292
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/extension.js +0 -203
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/limiter.js +0 -55
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/permessage-deflate.js +0 -514
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/receiver.js +0 -704
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/sender.js +0 -497
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/stream.js +0 -159
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/subprotocol.js +0 -62
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/validation.js +0 -130
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/websocket-server.js +0 -540
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/lib/websocket.js +0 -1338
- package/web/node_modules/.bun/ws@8.17.1/node_modules/ws/package.json +0 -69
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/buffer-util.js +0 -131
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/constants.js +0 -18
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/event-target.js +0 -292
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/extension.js +0 -203
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/limiter.js +0 -55
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/receiver.js +0 -706
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/sender.js +0 -602
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/stream.js +0 -161
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/subprotocol.js +0 -62
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/validation.js +0 -152
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/websocket-server.js +0 -550
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/lib/websocket.js +0 -1388
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/package.json +0 -69
- package/web/node_modules/.bun/ws@8.18.3/node_modules/ws/wrapper.mjs +0 -8
- /package/web/.next/static/{A7pW-dtFIbPCSkvE8uenX → Im7EdK1Q3oOmTznohTOr5}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{A7pW-dtFIbPCSkvE8uenX → Im7EdK1Q3oOmTznohTOr5}/_ssgManifest.js +0 -0
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Module dependencies.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
const tty = require('tty');
|
|
6
|
-
const util = require('util');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* This is the Node.js implementation of `debug()`.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
exports.init = init;
|
|
13
|
-
exports.log = log;
|
|
14
|
-
exports.formatArgs = formatArgs;
|
|
15
|
-
exports.save = save;
|
|
16
|
-
exports.load = load;
|
|
17
|
-
exports.useColors = useColors;
|
|
18
|
-
exports.destroy = util.deprecate(
|
|
19
|
-
() => {},
|
|
20
|
-
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Colors.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
28
|
-
|
|
29
|
-
try {
|
|
30
|
-
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
31
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
32
|
-
const supportsColor = require('supports-color');
|
|
33
|
-
|
|
34
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
35
|
-
exports.colors = [
|
|
36
|
-
20,
|
|
37
|
-
21,
|
|
38
|
-
26,
|
|
39
|
-
27,
|
|
40
|
-
32,
|
|
41
|
-
33,
|
|
42
|
-
38,
|
|
43
|
-
39,
|
|
44
|
-
40,
|
|
45
|
-
41,
|
|
46
|
-
42,
|
|
47
|
-
43,
|
|
48
|
-
44,
|
|
49
|
-
45,
|
|
50
|
-
56,
|
|
51
|
-
57,
|
|
52
|
-
62,
|
|
53
|
-
63,
|
|
54
|
-
68,
|
|
55
|
-
69,
|
|
56
|
-
74,
|
|
57
|
-
75,
|
|
58
|
-
76,
|
|
59
|
-
77,
|
|
60
|
-
78,
|
|
61
|
-
79,
|
|
62
|
-
80,
|
|
63
|
-
81,
|
|
64
|
-
92,
|
|
65
|
-
93,
|
|
66
|
-
98,
|
|
67
|
-
99,
|
|
68
|
-
112,
|
|
69
|
-
113,
|
|
70
|
-
128,
|
|
71
|
-
129,
|
|
72
|
-
134,
|
|
73
|
-
135,
|
|
74
|
-
148,
|
|
75
|
-
149,
|
|
76
|
-
160,
|
|
77
|
-
161,
|
|
78
|
-
162,
|
|
79
|
-
163,
|
|
80
|
-
164,
|
|
81
|
-
165,
|
|
82
|
-
166,
|
|
83
|
-
167,
|
|
84
|
-
168,
|
|
85
|
-
169,
|
|
86
|
-
170,
|
|
87
|
-
171,
|
|
88
|
-
172,
|
|
89
|
-
173,
|
|
90
|
-
178,
|
|
91
|
-
179,
|
|
92
|
-
184,
|
|
93
|
-
185,
|
|
94
|
-
196,
|
|
95
|
-
197,
|
|
96
|
-
198,
|
|
97
|
-
199,
|
|
98
|
-
200,
|
|
99
|
-
201,
|
|
100
|
-
202,
|
|
101
|
-
203,
|
|
102
|
-
204,
|
|
103
|
-
205,
|
|
104
|
-
206,
|
|
105
|
-
207,
|
|
106
|
-
208,
|
|
107
|
-
209,
|
|
108
|
-
214,
|
|
109
|
-
215,
|
|
110
|
-
220,
|
|
111
|
-
221
|
|
112
|
-
];
|
|
113
|
-
}
|
|
114
|
-
} catch (error) {
|
|
115
|
-
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Build up the default `inspectOpts` object from the environment variables.
|
|
120
|
-
*
|
|
121
|
-
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
exports.inspectOpts = Object.keys(process.env).filter(key => {
|
|
125
|
-
return /^debug_/i.test(key);
|
|
126
|
-
}).reduce((obj, key) => {
|
|
127
|
-
// Camel-case
|
|
128
|
-
const prop = key
|
|
129
|
-
.substring(6)
|
|
130
|
-
.toLowerCase()
|
|
131
|
-
.replace(/_([a-z])/g, (_, k) => {
|
|
132
|
-
return k.toUpperCase();
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
// Coerce string value into JS value
|
|
136
|
-
let val = process.env[key];
|
|
137
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
138
|
-
val = true;
|
|
139
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
140
|
-
val = false;
|
|
141
|
-
} else if (val === 'null') {
|
|
142
|
-
val = null;
|
|
143
|
-
} else {
|
|
144
|
-
val = Number(val);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
obj[prop] = val;
|
|
148
|
-
return obj;
|
|
149
|
-
}, {});
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Is stdout a TTY? Colored output is enabled when `true`.
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
function useColors() {
|
|
156
|
-
return 'colors' in exports.inspectOpts ?
|
|
157
|
-
Boolean(exports.inspectOpts.colors) :
|
|
158
|
-
tty.isatty(process.stderr.fd);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Adds ANSI color escape codes if enabled.
|
|
163
|
-
*
|
|
164
|
-
* @api public
|
|
165
|
-
*/
|
|
166
|
-
|
|
167
|
-
function formatArgs(args) {
|
|
168
|
-
const {namespace: name, useColors} = this;
|
|
169
|
-
|
|
170
|
-
if (useColors) {
|
|
171
|
-
const c = this.color;
|
|
172
|
-
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
|
|
173
|
-
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
174
|
-
|
|
175
|
-
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
176
|
-
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
|
|
177
|
-
} else {
|
|
178
|
-
args[0] = getDate() + name + ' ' + args[0];
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
function getDate() {
|
|
183
|
-
if (exports.inspectOpts.hideDate) {
|
|
184
|
-
return '';
|
|
185
|
-
}
|
|
186
|
-
return new Date().toISOString() + ' ';
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
|
|
191
|
-
*/
|
|
192
|
-
|
|
193
|
-
function log(...args) {
|
|
194
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Save `namespaces`.
|
|
199
|
-
*
|
|
200
|
-
* @param {String} namespaces
|
|
201
|
-
* @api private
|
|
202
|
-
*/
|
|
203
|
-
function save(namespaces) {
|
|
204
|
-
if (namespaces) {
|
|
205
|
-
process.env.DEBUG = namespaces;
|
|
206
|
-
} else {
|
|
207
|
-
// If you set a process.env field to null or undefined, it gets cast to the
|
|
208
|
-
// string 'null' or 'undefined'. Just delete instead.
|
|
209
|
-
delete process.env.DEBUG;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Load `namespaces`.
|
|
215
|
-
*
|
|
216
|
-
* @return {String} returns the previously persisted debug modes
|
|
217
|
-
* @api private
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
function load() {
|
|
221
|
-
return process.env.DEBUG;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Init logic for `debug` instances.
|
|
226
|
-
*
|
|
227
|
-
* Create a new `inspectOpts` object in case `useColors` is set
|
|
228
|
-
* differently for a particular `debug` instance.
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
function init(debug) {
|
|
232
|
-
debug.inspectOpts = {};
|
|
233
|
-
|
|
234
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
235
|
-
for (let i = 0; i < keys.length; i++) {
|
|
236
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
module.exports = require('./common')(exports);
|
|
241
|
-
|
|
242
|
-
const {formatters} = module.exports;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Map %o to `util.inspect()`, all on a single line.
|
|
246
|
-
*/
|
|
247
|
-
|
|
248
|
-
formatters.o = function (v) {
|
|
249
|
-
this.inspectOpts.colors = this.useColors;
|
|
250
|
-
return util.inspect(v, this.inspectOpts)
|
|
251
|
-
.split('\n')
|
|
252
|
-
.map(str => str.trim())
|
|
253
|
-
.join(' ');
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
|
-
formatters.O = function (v) {
|
|
261
|
-
this.inspectOpts.colors = this.useColors;
|
|
262
|
-
return util.inspect(v, this.inspectOpts);
|
|
263
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ERROR_PACKET = exports.PACKET_TYPES_REVERSE = exports.PACKET_TYPES = void 0;
|
|
4
|
-
const PACKET_TYPES = Object.create(null); // no Map = no polyfill
|
|
5
|
-
exports.PACKET_TYPES = PACKET_TYPES;
|
|
6
|
-
PACKET_TYPES["open"] = "0";
|
|
7
|
-
PACKET_TYPES["close"] = "1";
|
|
8
|
-
PACKET_TYPES["ping"] = "2";
|
|
9
|
-
PACKET_TYPES["pong"] = "3";
|
|
10
|
-
PACKET_TYPES["message"] = "4";
|
|
11
|
-
PACKET_TYPES["upgrade"] = "5";
|
|
12
|
-
PACKET_TYPES["noop"] = "6";
|
|
13
|
-
const PACKET_TYPES_REVERSE = Object.create(null);
|
|
14
|
-
exports.PACKET_TYPES_REVERSE = PACKET_TYPES_REVERSE;
|
|
15
|
-
Object.keys(PACKET_TYPES).forEach((key) => {
|
|
16
|
-
PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;
|
|
17
|
-
});
|
|
18
|
-
const ERROR_PACKET = { type: "error", data: "parser error" };
|
|
19
|
-
exports.ERROR_PACKET = ERROR_PACKET;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decodePacket = void 0;
|
|
4
|
-
const commons_js_1 = require("./commons.js");
|
|
5
|
-
const decodePacket = (encodedPacket, binaryType) => {
|
|
6
|
-
if (typeof encodedPacket !== "string") {
|
|
7
|
-
return {
|
|
8
|
-
type: "message",
|
|
9
|
-
data: mapBinary(encodedPacket, binaryType),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const type = encodedPacket.charAt(0);
|
|
13
|
-
if (type === "b") {
|
|
14
|
-
const buffer = Buffer.from(encodedPacket.substring(1), "base64");
|
|
15
|
-
return {
|
|
16
|
-
type: "message",
|
|
17
|
-
data: mapBinary(buffer, binaryType),
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
if (!commons_js_1.PACKET_TYPES_REVERSE[type]) {
|
|
21
|
-
return commons_js_1.ERROR_PACKET;
|
|
22
|
-
}
|
|
23
|
-
return encodedPacket.length > 1
|
|
24
|
-
? {
|
|
25
|
-
type: commons_js_1.PACKET_TYPES_REVERSE[type],
|
|
26
|
-
data: encodedPacket.substring(1),
|
|
27
|
-
}
|
|
28
|
-
: {
|
|
29
|
-
type: commons_js_1.PACKET_TYPES_REVERSE[type],
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.decodePacket = decodePacket;
|
|
33
|
-
const mapBinary = (data, binaryType) => {
|
|
34
|
-
switch (binaryType) {
|
|
35
|
-
case "arraybuffer":
|
|
36
|
-
if (data instanceof ArrayBuffer) {
|
|
37
|
-
// from WebSocket & binaryType "arraybuffer"
|
|
38
|
-
return data;
|
|
39
|
-
}
|
|
40
|
-
else if (Buffer.isBuffer(data)) {
|
|
41
|
-
// from HTTP long-polling
|
|
42
|
-
return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
// from WebTransport (Uint8Array)
|
|
46
|
-
return data.buffer;
|
|
47
|
-
}
|
|
48
|
-
case "nodebuffer":
|
|
49
|
-
default:
|
|
50
|
-
if (Buffer.isBuffer(data)) {
|
|
51
|
-
// from HTTP long-polling or WebSocket & binaryType "nodebuffer" (default)
|
|
52
|
-
return data;
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
// from WebTransport (Uint8Array)
|
|
56
|
-
return Buffer.from(data);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.encodePacket = void 0;
|
|
4
|
-
exports.encodePacketToBinary = encodePacketToBinary;
|
|
5
|
-
const commons_js_1 = require("./commons.js");
|
|
6
|
-
const encodePacket = ({ type, data }, supportsBinary, callback) => {
|
|
7
|
-
if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {
|
|
8
|
-
return callback(supportsBinary ? data : "b" + toBuffer(data, true).toString("base64"));
|
|
9
|
-
}
|
|
10
|
-
// plain string
|
|
11
|
-
return callback(commons_js_1.PACKET_TYPES[type] + (data || ""));
|
|
12
|
-
};
|
|
13
|
-
exports.encodePacket = encodePacket;
|
|
14
|
-
const toBuffer = (data, forceBufferConversion) => {
|
|
15
|
-
if (Buffer.isBuffer(data) ||
|
|
16
|
-
(data instanceof Uint8Array && !forceBufferConversion)) {
|
|
17
|
-
return data;
|
|
18
|
-
}
|
|
19
|
-
else if (data instanceof ArrayBuffer) {
|
|
20
|
-
return Buffer.from(data);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
let TEXT_ENCODER;
|
|
27
|
-
function encodePacketToBinary(packet, callback) {
|
|
28
|
-
if (packet.data instanceof ArrayBuffer || ArrayBuffer.isView(packet.data)) {
|
|
29
|
-
return callback(toBuffer(packet.data, false));
|
|
30
|
-
}
|
|
31
|
-
(0, exports.encodePacket)(packet, true, (encoded) => {
|
|
32
|
-
if (!TEXT_ENCODER) {
|
|
33
|
-
// lazily created for compatibility with Node.js 10
|
|
34
|
-
TEXT_ENCODER = new TextEncoder();
|
|
35
|
-
}
|
|
36
|
-
callback(TEXT_ENCODER.encode(encoded));
|
|
37
|
-
});
|
|
38
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decodePayload = exports.decodePacket = exports.encodePayload = exports.encodePacket = exports.protocol = void 0;
|
|
4
|
-
exports.createPacketEncoderStream = createPacketEncoderStream;
|
|
5
|
-
exports.createPacketDecoderStream = createPacketDecoderStream;
|
|
6
|
-
const encodePacket_js_1 = require("./encodePacket.js");
|
|
7
|
-
Object.defineProperty(exports, "encodePacket", { enumerable: true, get: function () { return encodePacket_js_1.encodePacket; } });
|
|
8
|
-
const decodePacket_js_1 = require("./decodePacket.js");
|
|
9
|
-
Object.defineProperty(exports, "decodePacket", { enumerable: true, get: function () { return decodePacket_js_1.decodePacket; } });
|
|
10
|
-
const commons_js_1 = require("./commons.js");
|
|
11
|
-
const SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text
|
|
12
|
-
const encodePayload = (packets, callback) => {
|
|
13
|
-
// some packets may be added to the array while encoding, so the initial length must be saved
|
|
14
|
-
const length = packets.length;
|
|
15
|
-
const encodedPackets = new Array(length);
|
|
16
|
-
let count = 0;
|
|
17
|
-
packets.forEach((packet, i) => {
|
|
18
|
-
// force base64 encoding for binary packets
|
|
19
|
-
(0, encodePacket_js_1.encodePacket)(packet, false, (encodedPacket) => {
|
|
20
|
-
encodedPackets[i] = encodedPacket;
|
|
21
|
-
if (++count === length) {
|
|
22
|
-
callback(encodedPackets.join(SEPARATOR));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
exports.encodePayload = encodePayload;
|
|
28
|
-
const decodePayload = (encodedPayload, binaryType) => {
|
|
29
|
-
const encodedPackets = encodedPayload.split(SEPARATOR);
|
|
30
|
-
const packets = [];
|
|
31
|
-
for (let i = 0; i < encodedPackets.length; i++) {
|
|
32
|
-
const decodedPacket = (0, decodePacket_js_1.decodePacket)(encodedPackets[i], binaryType);
|
|
33
|
-
packets.push(decodedPacket);
|
|
34
|
-
if (decodedPacket.type === "error") {
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return packets;
|
|
39
|
-
};
|
|
40
|
-
exports.decodePayload = decodePayload;
|
|
41
|
-
function createPacketEncoderStream() {
|
|
42
|
-
return new TransformStream({
|
|
43
|
-
transform(packet, controller) {
|
|
44
|
-
(0, encodePacket_js_1.encodePacketToBinary)(packet, (encodedPacket) => {
|
|
45
|
-
const payloadLength = encodedPacket.length;
|
|
46
|
-
let header;
|
|
47
|
-
// inspired by the WebSocket format: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#decoding_payload_length
|
|
48
|
-
if (payloadLength < 126) {
|
|
49
|
-
header = new Uint8Array(1);
|
|
50
|
-
new DataView(header.buffer).setUint8(0, payloadLength);
|
|
51
|
-
}
|
|
52
|
-
else if (payloadLength < 65536) {
|
|
53
|
-
header = new Uint8Array(3);
|
|
54
|
-
const view = new DataView(header.buffer);
|
|
55
|
-
view.setUint8(0, 126);
|
|
56
|
-
view.setUint16(1, payloadLength);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
header = new Uint8Array(9);
|
|
60
|
-
const view = new DataView(header.buffer);
|
|
61
|
-
view.setUint8(0, 127);
|
|
62
|
-
view.setBigUint64(1, BigInt(payloadLength));
|
|
63
|
-
}
|
|
64
|
-
// first bit indicates whether the payload is plain text (0) or binary (1)
|
|
65
|
-
if (packet.data && typeof packet.data !== "string") {
|
|
66
|
-
header[0] |= 0x80;
|
|
67
|
-
}
|
|
68
|
-
controller.enqueue(header);
|
|
69
|
-
controller.enqueue(encodedPacket);
|
|
70
|
-
});
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
let TEXT_DECODER;
|
|
75
|
-
function totalLength(chunks) {
|
|
76
|
-
return chunks.reduce((acc, chunk) => acc + chunk.length, 0);
|
|
77
|
-
}
|
|
78
|
-
function concatChunks(chunks, size) {
|
|
79
|
-
if (chunks[0].length === size) {
|
|
80
|
-
return chunks.shift();
|
|
81
|
-
}
|
|
82
|
-
const buffer = new Uint8Array(size);
|
|
83
|
-
let j = 0;
|
|
84
|
-
for (let i = 0; i < size; i++) {
|
|
85
|
-
buffer[i] = chunks[0][j++];
|
|
86
|
-
if (j === chunks[0].length) {
|
|
87
|
-
chunks.shift();
|
|
88
|
-
j = 0;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (chunks.length && j < chunks[0].length) {
|
|
92
|
-
chunks[0] = chunks[0].slice(j);
|
|
93
|
-
}
|
|
94
|
-
return buffer;
|
|
95
|
-
}
|
|
96
|
-
function createPacketDecoderStream(maxPayload, binaryType) {
|
|
97
|
-
if (!TEXT_DECODER) {
|
|
98
|
-
TEXT_DECODER = new TextDecoder();
|
|
99
|
-
}
|
|
100
|
-
const chunks = [];
|
|
101
|
-
let state = 0 /* State.READ_HEADER */;
|
|
102
|
-
let expectedLength = -1;
|
|
103
|
-
let isBinary = false;
|
|
104
|
-
return new TransformStream({
|
|
105
|
-
transform(chunk, controller) {
|
|
106
|
-
chunks.push(chunk);
|
|
107
|
-
while (true) {
|
|
108
|
-
if (state === 0 /* State.READ_HEADER */) {
|
|
109
|
-
if (totalLength(chunks) < 1) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
const header = concatChunks(chunks, 1);
|
|
113
|
-
isBinary = (header[0] & 0x80) === 0x80;
|
|
114
|
-
expectedLength = header[0] & 0x7f;
|
|
115
|
-
if (expectedLength < 126) {
|
|
116
|
-
state = 3 /* State.READ_PAYLOAD */;
|
|
117
|
-
}
|
|
118
|
-
else if (expectedLength === 126) {
|
|
119
|
-
state = 1 /* State.READ_EXTENDED_LENGTH_16 */;
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
state = 2 /* State.READ_EXTENDED_LENGTH_64 */;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
else if (state === 1 /* State.READ_EXTENDED_LENGTH_16 */) {
|
|
126
|
-
if (totalLength(chunks) < 2) {
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
const headerArray = concatChunks(chunks, 2);
|
|
130
|
-
expectedLength = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length).getUint16(0);
|
|
131
|
-
state = 3 /* State.READ_PAYLOAD */;
|
|
132
|
-
}
|
|
133
|
-
else if (state === 2 /* State.READ_EXTENDED_LENGTH_64 */) {
|
|
134
|
-
if (totalLength(chunks) < 8) {
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
const headerArray = concatChunks(chunks, 8);
|
|
138
|
-
const view = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length);
|
|
139
|
-
const n = view.getUint32(0);
|
|
140
|
-
if (n > Math.pow(2, 53 - 32) - 1) {
|
|
141
|
-
// the maximum safe integer in JavaScript is 2^53 - 1
|
|
142
|
-
controller.enqueue(commons_js_1.ERROR_PACKET);
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
expectedLength = n * Math.pow(2, 32) + view.getUint32(4);
|
|
146
|
-
state = 3 /* State.READ_PAYLOAD */;
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
if (totalLength(chunks) < expectedLength) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
const data = concatChunks(chunks, expectedLength);
|
|
153
|
-
controller.enqueue((0, decodePacket_js_1.decodePacket)(isBinary ? data : TEXT_DECODER.decode(data), binaryType));
|
|
154
|
-
state = 0 /* State.READ_HEADER */;
|
|
155
|
-
}
|
|
156
|
-
if (expectedLength === 0 || expectedLength > maxPayload) {
|
|
157
|
-
controller.enqueue(commons_js_1.ERROR_PACKET);
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
exports.protocol = 4;
|
package/web/node_modules/.bun/engine.io-parser@5.2.3/node_modules/engine.io-parser/package.json
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "engine.io-parser",
|
|
3
|
-
"description": "Parser for the client for the realtime Engine",
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"version": "5.2.3",
|
|
6
|
-
"main": "./build/cjs/index.js",
|
|
7
|
-
"module": "./build/esm/index.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
"import": "./build/esm/index.js",
|
|
10
|
-
"require": "./build/cjs/index.js"
|
|
11
|
-
},
|
|
12
|
-
"types": "build/esm/index.d.ts",
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"prettier": "^3.3.2"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
|
|
18
|
-
"test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
|
|
19
|
-
"test:node": "nyc mocha -r ts-node/register test/index.ts",
|
|
20
|
-
"test:browser": "zuul test/index.ts --no-coverage",
|
|
21
|
-
"format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.ts'",
|
|
22
|
-
"format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.ts'",
|
|
23
|
-
"prepack": "npm run compile"
|
|
24
|
-
},
|
|
25
|
-
"homepage": "https://github.com/socketio/socket.io/tree/main/packages/engine.io-parser#readme",
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "https://github.com/socketio/socket.io.git"
|
|
29
|
-
},
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/socketio/socket.io/issues"
|
|
32
|
-
},
|
|
33
|
-
"files": [
|
|
34
|
-
"build/"
|
|
35
|
-
],
|
|
36
|
-
"browser": {
|
|
37
|
-
"./test/node": "./test/browser",
|
|
38
|
-
"./build/esm/encodePacket.js": "./build/esm/encodePacket.browser.js",
|
|
39
|
-
"./build/esm/decodePacket.js": "./build/esm/decodePacket.browser.js",
|
|
40
|
-
"./build/cjs/encodePacket.js": "./build/cjs/encodePacket.browser.js",
|
|
41
|
-
"./build/cjs/decodePacket.js": "./build/cjs/decodePacket.browser.js"
|
|
42
|
-
},
|
|
43
|
-
"engines": {
|
|
44
|
-
"node": ">=10.0.0"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.protocol = exports.Transport = exports.Socket = exports.uServer = exports.parser = exports.transports = exports.Server = void 0;
|
|
4
|
-
exports.listen = listen;
|
|
5
|
-
exports.attach = attach;
|
|
6
|
-
const http_1 = require("http");
|
|
7
|
-
const server_1 = require("./server");
|
|
8
|
-
Object.defineProperty(exports, "Server", { enumerable: true, get: function () { return server_1.Server; } });
|
|
9
|
-
const index_1 = require("./transports/index");
|
|
10
|
-
exports.transports = index_1.default;
|
|
11
|
-
const parser = require("engine.io-parser");
|
|
12
|
-
exports.parser = parser;
|
|
13
|
-
var userver_1 = require("./userver");
|
|
14
|
-
Object.defineProperty(exports, "uServer", { enumerable: true, get: function () { return userver_1.uServer; } });
|
|
15
|
-
var socket_1 = require("./socket");
|
|
16
|
-
Object.defineProperty(exports, "Socket", { enumerable: true, get: function () { return socket_1.Socket; } });
|
|
17
|
-
var transport_1 = require("./transport");
|
|
18
|
-
Object.defineProperty(exports, "Transport", { enumerable: true, get: function () { return transport_1.Transport; } });
|
|
19
|
-
exports.protocol = parser.protocol;
|
|
20
|
-
/**
|
|
21
|
-
* Creates an http.Server exclusively used for WS upgrades.
|
|
22
|
-
*
|
|
23
|
-
* @param {Number} port
|
|
24
|
-
* @param {Function} callback
|
|
25
|
-
* @param {Object} options
|
|
26
|
-
* @return {Server} websocket.io server
|
|
27
|
-
*/
|
|
28
|
-
function listen(port, options, fn) {
|
|
29
|
-
if ("function" === typeof options) {
|
|
30
|
-
fn = options;
|
|
31
|
-
options = {};
|
|
32
|
-
}
|
|
33
|
-
const server = (0, http_1.createServer)(function (req, res) {
|
|
34
|
-
res.writeHead(501);
|
|
35
|
-
res.end("Not Implemented");
|
|
36
|
-
});
|
|
37
|
-
// create engine server
|
|
38
|
-
const engine = attach(server, options);
|
|
39
|
-
engine.httpServer = server;
|
|
40
|
-
server.listen(port, fn);
|
|
41
|
-
return engine;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Captures upgrade requests for a http.Server.
|
|
45
|
-
*
|
|
46
|
-
* @param {http.Server} server
|
|
47
|
-
* @param {Object} options
|
|
48
|
-
* @return {Server} engine server
|
|
49
|
-
*/
|
|
50
|
-
function attach(server, options) {
|
|
51
|
-
const engine = new server_1.Server(options);
|
|
52
|
-
engine.attach(server, options);
|
|
53
|
-
return engine;
|
|
54
|
-
}
|