@kubb/agent 4.29.0 → 4.31.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.
Files changed (61) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +509 -345
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +3 -1
  5. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  6. package/.output/server/index.mjs +3 -1
  7. package/.output/server/index.mjs.map +1 -1
  8. package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +6 -3
  9. package/.output/server/node_modules/@kubb/fabric-core/dist/{onProcessExit-CF200hsz.js → onProcessExit-B0rJqX4s.js} +7 -1
  10. package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +1 -1
  11. package/.output/server/node_modules/@kubb/fabric-core/package.json +1 -1
  12. package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +1 -1
  13. package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +1 -1
  14. package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-BkDkx1cs.js → reactPlugin-tE73eBS_.js} +5 -1
  15. package/.output/server/node_modules/@kubb/react-fabric/package.json +2 -2
  16. package/.output/server/node_modules/@logtail/core/dist/cjs/base.js +339 -0
  17. package/.output/server/node_modules/@logtail/core/dist/cjs/index.js +9 -0
  18. package/.output/server/node_modules/@logtail/core/package.json +45 -0
  19. package/.output/server/node_modules/@logtail/node/dist/cjs/context.js +93 -0
  20. package/.output/server/node_modules/@logtail/node/dist/cjs/index.js +6 -0
  21. package/.output/server/node_modules/@logtail/node/dist/cjs/node.js +106 -0
  22. package/.output/server/node_modules/@logtail/node/package.json +53 -0
  23. package/.output/server/node_modules/@logtail/tools/dist/cjs/batch.js +122 -0
  24. package/.output/server/node_modules/@logtail/tools/dist/cjs/burstProtection.js +50 -0
  25. package/.output/server/node_modules/@logtail/tools/dist/cjs/encode.js +12 -0
  26. package/.output/server/node_modules/@logtail/tools/dist/cjs/index.js +41 -0
  27. package/.output/server/node_modules/@logtail/tools/dist/cjs/queue.js +41 -0
  28. package/.output/server/node_modules/@logtail/tools/dist/cjs/throttle.js +67 -0
  29. package/.output/server/node_modules/@logtail/tools/package.json +39 -0
  30. package/.output/server/node_modules/@logtail/types/dist/cjs/types.js +21 -0
  31. package/.output/server/node_modules/@logtail/types/package.json +45 -0
  32. package/.output/server/node_modules/@msgpack/msgpack/dist/CachedKeyDecoder.js +63 -0
  33. package/.output/server/node_modules/@msgpack/msgpack/dist/DecodeError.js +18 -0
  34. package/.output/server/node_modules/@msgpack/msgpack/dist/Decoder.js +583 -0
  35. package/.output/server/node_modules/@msgpack/msgpack/dist/Encoder.js +408 -0
  36. package/.output/server/node_modules/@msgpack/msgpack/dist/ExtData.js +14 -0
  37. package/.output/server/node_modules/@msgpack/msgpack/dist/ExtensionCodec.js +72 -0
  38. package/.output/server/node_modules/@msgpack/msgpack/dist/decode.js +32 -0
  39. package/.output/server/node_modules/@msgpack/msgpack/dist/decodeAsync.js +44 -0
  40. package/.output/server/node_modules/@msgpack/msgpack/dist/encode.js +17 -0
  41. package/.output/server/node_modules/@msgpack/msgpack/dist/index.js +34 -0
  42. package/.output/server/node_modules/@msgpack/msgpack/dist/timestamp.js +104 -0
  43. package/.output/server/node_modules/@msgpack/msgpack/dist/utils/int.js +34 -0
  44. package/.output/server/node_modules/@msgpack/msgpack/dist/utils/prettyByte.js +8 -0
  45. package/.output/server/node_modules/@msgpack/msgpack/dist/utils/stream.js +40 -0
  46. package/.output/server/node_modules/@msgpack/msgpack/dist/utils/typedArrays.js +28 -0
  47. package/.output/server/node_modules/@msgpack/msgpack/dist/utils/utf8.js +167 -0
  48. package/.output/server/node_modules/@msgpack/msgpack/package.json +100 -0
  49. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  50. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  51. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  52. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  53. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  54. package/.output/server/node_modules/consola/package.json +136 -0
  55. package/.output/server/node_modules/serialize-error/index.js +154 -0
  56. package/.output/server/node_modules/serialize-error/package.json +41 -0
  57. package/.output/server/node_modules/stack-trace/lib/stack-trace.js +136 -0
  58. package/.output/server/node_modules/stack-trace/package.json +21 -0
  59. package/.output/server/package.json +11 -3
  60. package/README.md +3 -3
  61. package/package.json +23 -18
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timestampExtension = exports.decodeTimestampExtension = exports.decodeTimestampToTimeSpec = exports.encodeTimestampExtension = exports.encodeDateToTimeSpec = exports.encodeTimeSpecToTimestamp = exports.EXT_TIMESTAMP = void 0;
4
+ // https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type
5
+ const DecodeError_1 = require("./DecodeError");
6
+ const int_1 = require("./utils/int");
7
+ exports.EXT_TIMESTAMP = -1;
8
+ const TIMESTAMP32_MAX_SEC = 0x100000000 - 1; // 32-bit unsigned int
9
+ const TIMESTAMP64_MAX_SEC = 0x400000000 - 1; // 34-bit unsigned int
10
+ function encodeTimeSpecToTimestamp({ sec, nsec }) {
11
+ if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
12
+ // Here sec >= 0 && nsec >= 0
13
+ if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
14
+ // timestamp 32 = { sec32 (unsigned) }
15
+ const rv = new Uint8Array(4);
16
+ const view = new DataView(rv.buffer);
17
+ view.setUint32(0, sec);
18
+ return rv;
19
+ }
20
+ else {
21
+ // timestamp 64 = { nsec30 (unsigned), sec34 (unsigned) }
22
+ const secHigh = sec / 0x100000000;
23
+ const secLow = sec & 0xffffffff;
24
+ const rv = new Uint8Array(8);
25
+ const view = new DataView(rv.buffer);
26
+ // nsec30 | secHigh2
27
+ view.setUint32(0, (nsec << 2) | (secHigh & 0x3));
28
+ // secLow32
29
+ view.setUint32(4, secLow);
30
+ return rv;
31
+ }
32
+ }
33
+ else {
34
+ // timestamp 96 = { nsec32 (unsigned), sec64 (signed) }
35
+ const rv = new Uint8Array(12);
36
+ const view = new DataView(rv.buffer);
37
+ view.setUint32(0, nsec);
38
+ (0, int_1.setInt64)(view, 4, sec);
39
+ return rv;
40
+ }
41
+ }
42
+ exports.encodeTimeSpecToTimestamp = encodeTimeSpecToTimestamp;
43
+ function encodeDateToTimeSpec(date) {
44
+ const msec = date.getTime();
45
+ const sec = Math.floor(msec / 1e3);
46
+ const nsec = (msec - sec * 1e3) * 1e6;
47
+ // Normalizes { sec, nsec } to ensure nsec is unsigned.
48
+ const nsecInSec = Math.floor(nsec / 1e9);
49
+ return {
50
+ sec: sec + nsecInSec,
51
+ nsec: nsec - nsecInSec * 1e9,
52
+ };
53
+ }
54
+ exports.encodeDateToTimeSpec = encodeDateToTimeSpec;
55
+ function encodeTimestampExtension(object) {
56
+ if (object instanceof Date) {
57
+ const timeSpec = encodeDateToTimeSpec(object);
58
+ return encodeTimeSpecToTimestamp(timeSpec);
59
+ }
60
+ else {
61
+ return null;
62
+ }
63
+ }
64
+ exports.encodeTimestampExtension = encodeTimestampExtension;
65
+ function decodeTimestampToTimeSpec(data) {
66
+ const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
67
+ // data may be 32, 64, or 96 bits
68
+ switch (data.byteLength) {
69
+ case 4: {
70
+ // timestamp 32 = { sec32 }
71
+ const sec = view.getUint32(0);
72
+ const nsec = 0;
73
+ return { sec, nsec };
74
+ }
75
+ case 8: {
76
+ // timestamp 64 = { nsec30, sec34 }
77
+ const nsec30AndSecHigh2 = view.getUint32(0);
78
+ const secLow32 = view.getUint32(4);
79
+ const sec = (nsec30AndSecHigh2 & 0x3) * 0x100000000 + secLow32;
80
+ const nsec = nsec30AndSecHigh2 >>> 2;
81
+ return { sec, nsec };
82
+ }
83
+ case 12: {
84
+ // timestamp 96 = { nsec32 (unsigned), sec64 (signed) }
85
+ const sec = (0, int_1.getInt64)(view, 4);
86
+ const nsec = view.getUint32(0);
87
+ return { sec, nsec };
88
+ }
89
+ default:
90
+ throw new DecodeError_1.DecodeError(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${data.length}`);
91
+ }
92
+ }
93
+ exports.decodeTimestampToTimeSpec = decodeTimestampToTimeSpec;
94
+ function decodeTimestampExtension(data) {
95
+ const timeSpec = decodeTimestampToTimeSpec(data);
96
+ return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6);
97
+ }
98
+ exports.decodeTimestampExtension = decodeTimestampExtension;
99
+ exports.timestampExtension = {
100
+ type: exports.EXT_TIMESTAMP,
101
+ encode: encodeTimestampExtension,
102
+ decode: decodeTimestampExtension,
103
+ };
104
+ //# sourceMappingURL=timestamp.js.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // Integer Utility
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.getUint64 = exports.getInt64 = exports.setInt64 = exports.setUint64 = exports.UINT32_MAX = void 0;
5
+ exports.UINT32_MAX = 4294967295;
6
+ // DataView extension to handle int64 / uint64,
7
+ // where the actual range is 53-bits integer (a.k.a. safe integer)
8
+ function setUint64(view, offset, value) {
9
+ const high = value / 4294967296;
10
+ const low = value; // high bits are truncated by DataView
11
+ view.setUint32(offset, high);
12
+ view.setUint32(offset + 4, low);
13
+ }
14
+ exports.setUint64 = setUint64;
15
+ function setInt64(view, offset, value) {
16
+ const high = Math.floor(value / 4294967296);
17
+ const low = value; // high bits are truncated by DataView
18
+ view.setUint32(offset, high);
19
+ view.setUint32(offset + 4, low);
20
+ }
21
+ exports.setInt64 = setInt64;
22
+ function getInt64(view, offset) {
23
+ const high = view.getInt32(offset);
24
+ const low = view.getUint32(offset + 4);
25
+ return high * 4294967296 + low;
26
+ }
27
+ exports.getInt64 = getInt64;
28
+ function getUint64(view, offset) {
29
+ const high = view.getUint32(offset);
30
+ const low = view.getUint32(offset + 4);
31
+ return high * 4294967296 + low;
32
+ }
33
+ exports.getUint64 = getUint64;
34
+ //# sourceMappingURL=int.js.map
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prettyByte = void 0;
4
+ function prettyByte(byte) {
5
+ return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
6
+ }
7
+ exports.prettyByte = prettyByte;
8
+ //# sourceMappingURL=prettyByte.js.map
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // utility for whatwg streams
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ensureAsyncIterable = exports.asyncIterableFromStream = exports.isAsyncIterable = void 0;
5
+ function isAsyncIterable(object) {
6
+ return object[Symbol.asyncIterator] != null;
7
+ }
8
+ exports.isAsyncIterable = isAsyncIterable;
9
+ function assertNonNull(value) {
10
+ if (value == null) {
11
+ throw new Error("Assertion Failure: value must not be null nor undefined");
12
+ }
13
+ }
14
+ async function* asyncIterableFromStream(stream) {
15
+ const reader = stream.getReader();
16
+ try {
17
+ while (true) {
18
+ const { done, value } = await reader.read();
19
+ if (done) {
20
+ return;
21
+ }
22
+ assertNonNull(value);
23
+ yield value;
24
+ }
25
+ }
26
+ finally {
27
+ reader.releaseLock();
28
+ }
29
+ }
30
+ exports.asyncIterableFromStream = asyncIterableFromStream;
31
+ function ensureAsyncIterable(streamLike) {
32
+ if (isAsyncIterable(streamLike)) {
33
+ return streamLike;
34
+ }
35
+ else {
36
+ return asyncIterableFromStream(streamLike);
37
+ }
38
+ }
39
+ exports.ensureAsyncIterable = ensureAsyncIterable;
40
+ //# sourceMappingURL=stream.js.map
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDataView = exports.ensureUint8Array = void 0;
4
+ function ensureUint8Array(buffer) {
5
+ if (buffer instanceof Uint8Array) {
6
+ return buffer;
7
+ }
8
+ else if (ArrayBuffer.isView(buffer)) {
9
+ return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
10
+ }
11
+ else if (buffer instanceof ArrayBuffer) {
12
+ return new Uint8Array(buffer);
13
+ }
14
+ else {
15
+ // ArrayLike<number>
16
+ return Uint8Array.from(buffer);
17
+ }
18
+ }
19
+ exports.ensureUint8Array = ensureUint8Array;
20
+ function createDataView(buffer) {
21
+ if (buffer instanceof ArrayBuffer) {
22
+ return new DataView(buffer);
23
+ }
24
+ const bufferView = ensureUint8Array(buffer);
25
+ return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength);
26
+ }
27
+ exports.createDataView = createDataView;
28
+ //# sourceMappingURL=typedArrays.js.map
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ var _a, _b, _c;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.utf8DecodeTD = exports.TEXT_DECODER_THRESHOLD = exports.utf8DecodeJs = exports.utf8EncodeTE = exports.TEXT_ENCODER_THRESHOLD = exports.utf8EncodeJs = exports.utf8Count = void 0;
5
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
6
+ const int_1 = require("./int");
7
+ const TEXT_ENCODING_AVAILABLE = (typeof process === "undefined" || ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a["TEXT_ENCODING"]) !== "never") &&
8
+ typeof TextEncoder !== "undefined" &&
9
+ typeof TextDecoder !== "undefined";
10
+ function utf8Count(str) {
11
+ const strLength = str.length;
12
+ let byteLength = 0;
13
+ let pos = 0;
14
+ while (pos < strLength) {
15
+ let value = str.charCodeAt(pos++);
16
+ if ((value & 0xffffff80) === 0) {
17
+ // 1-byte
18
+ byteLength++;
19
+ continue;
20
+ }
21
+ else if ((value & 0xfffff800) === 0) {
22
+ // 2-bytes
23
+ byteLength += 2;
24
+ }
25
+ else {
26
+ // handle surrogate pair
27
+ if (value >= 0xd800 && value <= 0xdbff) {
28
+ // high surrogate
29
+ if (pos < strLength) {
30
+ const extra = str.charCodeAt(pos);
31
+ if ((extra & 0xfc00) === 0xdc00) {
32
+ ++pos;
33
+ value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;
34
+ }
35
+ }
36
+ }
37
+ if ((value & 0xffff0000) === 0) {
38
+ // 3-byte
39
+ byteLength += 3;
40
+ }
41
+ else {
42
+ // 4-byte
43
+ byteLength += 4;
44
+ }
45
+ }
46
+ }
47
+ return byteLength;
48
+ }
49
+ exports.utf8Count = utf8Count;
50
+ function utf8EncodeJs(str, output, outputOffset) {
51
+ const strLength = str.length;
52
+ let offset = outputOffset;
53
+ let pos = 0;
54
+ while (pos < strLength) {
55
+ let value = str.charCodeAt(pos++);
56
+ if ((value & 0xffffff80) === 0) {
57
+ // 1-byte
58
+ output[offset++] = value;
59
+ continue;
60
+ }
61
+ else if ((value & 0xfffff800) === 0) {
62
+ // 2-bytes
63
+ output[offset++] = ((value >> 6) & 0x1f) | 0xc0;
64
+ }
65
+ else {
66
+ // handle surrogate pair
67
+ if (value >= 0xd800 && value <= 0xdbff) {
68
+ // high surrogate
69
+ if (pos < strLength) {
70
+ const extra = str.charCodeAt(pos);
71
+ if ((extra & 0xfc00) === 0xdc00) {
72
+ ++pos;
73
+ value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;
74
+ }
75
+ }
76
+ }
77
+ if ((value & 0xffff0000) === 0) {
78
+ // 3-byte
79
+ output[offset++] = ((value >> 12) & 0x0f) | 0xe0;
80
+ output[offset++] = ((value >> 6) & 0x3f) | 0x80;
81
+ }
82
+ else {
83
+ // 4-byte
84
+ output[offset++] = ((value >> 18) & 0x07) | 0xf0;
85
+ output[offset++] = ((value >> 12) & 0x3f) | 0x80;
86
+ output[offset++] = ((value >> 6) & 0x3f) | 0x80;
87
+ }
88
+ }
89
+ output[offset++] = (value & 0x3f) | 0x80;
90
+ }
91
+ }
92
+ exports.utf8EncodeJs = utf8EncodeJs;
93
+ const sharedTextEncoder = TEXT_ENCODING_AVAILABLE ? new TextEncoder() : undefined;
94
+ exports.TEXT_ENCODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE
95
+ ? int_1.UINT32_MAX
96
+ : typeof process !== "undefined" && ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b["TEXT_ENCODING"]) !== "force"
97
+ ? 200
98
+ : 0;
99
+ function utf8EncodeTEencode(str, output, outputOffset) {
100
+ output.set(sharedTextEncoder.encode(str), outputOffset);
101
+ }
102
+ function utf8EncodeTEencodeInto(str, output, outputOffset) {
103
+ sharedTextEncoder.encodeInto(str, output.subarray(outputOffset));
104
+ }
105
+ exports.utf8EncodeTE = (sharedTextEncoder === null || sharedTextEncoder === void 0 ? void 0 : sharedTextEncoder.encodeInto) ? utf8EncodeTEencodeInto : utf8EncodeTEencode;
106
+ const CHUNK_SIZE = 4096;
107
+ function utf8DecodeJs(bytes, inputOffset, byteLength) {
108
+ let offset = inputOffset;
109
+ const end = offset + byteLength;
110
+ const units = [];
111
+ let result = "";
112
+ while (offset < end) {
113
+ const byte1 = bytes[offset++];
114
+ if ((byte1 & 0x80) === 0) {
115
+ // 1 byte
116
+ units.push(byte1);
117
+ }
118
+ else if ((byte1 & 0xe0) === 0xc0) {
119
+ // 2 bytes
120
+ const byte2 = bytes[offset++] & 0x3f;
121
+ units.push(((byte1 & 0x1f) << 6) | byte2);
122
+ }
123
+ else if ((byte1 & 0xf0) === 0xe0) {
124
+ // 3 bytes
125
+ const byte2 = bytes[offset++] & 0x3f;
126
+ const byte3 = bytes[offset++] & 0x3f;
127
+ units.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3);
128
+ }
129
+ else if ((byte1 & 0xf8) === 0xf0) {
130
+ // 4 bytes
131
+ const byte2 = bytes[offset++] & 0x3f;
132
+ const byte3 = bytes[offset++] & 0x3f;
133
+ const byte4 = bytes[offset++] & 0x3f;
134
+ let unit = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4;
135
+ if (unit > 0xffff) {
136
+ unit -= 0x10000;
137
+ units.push(((unit >>> 10) & 0x3ff) | 0xd800);
138
+ unit = 0xdc00 | (unit & 0x3ff);
139
+ }
140
+ units.push(unit);
141
+ }
142
+ else {
143
+ units.push(byte1);
144
+ }
145
+ if (units.length >= CHUNK_SIZE) {
146
+ result += String.fromCharCode(...units);
147
+ units.length = 0;
148
+ }
149
+ }
150
+ if (units.length > 0) {
151
+ result += String.fromCharCode(...units);
152
+ }
153
+ return result;
154
+ }
155
+ exports.utf8DecodeJs = utf8DecodeJs;
156
+ const sharedTextDecoder = TEXT_ENCODING_AVAILABLE ? new TextDecoder() : null;
157
+ exports.TEXT_DECODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE
158
+ ? int_1.UINT32_MAX
159
+ : typeof process !== "undefined" && ((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c["TEXT_DECODER"]) !== "force"
160
+ ? 200
161
+ : 0;
162
+ function utf8DecodeTD(bytes, inputOffset, byteLength) {
163
+ const stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength);
164
+ return sharedTextDecoder.decode(stringBytes);
165
+ }
166
+ exports.utf8DecodeTD = utf8DecodeTD;
167
+ //# sourceMappingURL=utf8.js.map
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@msgpack/msgpack",
3
+ "version": "2.8.0",
4
+ "description": "MessagePack for ECMA-262/JavaScript/TypeScript",
5
+ "author": "The MessagePack community",
6
+ "license": "ISC",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist.es5+esm/index.mjs",
9
+ "cdn": "./dist.es5+umd/msgpack.min.js",
10
+ "unpkg": "./dist.es5+umd/msgpack.min.js",
11
+ "types": "./dist/index.d.ts",
12
+ "sideEffects": false,
13
+ "scripts": {
14
+ "build": "npm publish --dry-run",
15
+ "prepare": "npm run clean && webpack --bail && tsc --build tsconfig.dist.json tsconfig.dist.es5+esm.json && ts-node tools/esmify.ts dist.es5+esm/*.js dist.es5+esm/*/*.js",
16
+ "prepublishOnly": "run-p 'test:dist:*' && npm run test:browser",
17
+ "clean": "rimraf build dist dist.*",
18
+ "test": "mocha 'test/**/*.test.ts'",
19
+ "test:purejs": "TEXT_ENCODING=never mocha 'test/**/*.test.ts'",
20
+ "test:te": "TEXT_ENCODING=force mocha 'test/**/*.test.ts'",
21
+ "test:dist:purejs": "TS_NODE_PROJECT=tsconfig.test-dist-es5-purejs.json npm run test:purejs -- --reporter=dot",
22
+ "test:cover": "npm run cover:clean && npm-run-all 'test:cover:*' && npm run cover:report",
23
+ "test:cover:purejs": "npx nyc --no-clean npm run test:purejs",
24
+ "test:cover:te": "npx nyc --no-clean npm run test:te",
25
+ "test:deno": "deno test test/deno_test.ts",
26
+ "test:fuzz": "npm exec --yes -- jsfuzz@git+https://gitlab.com/gitlab-org/security-products/analyzers/fuzzers/jsfuzz.git --fuzzTime 60 --no-versifier test/decode.jsfuzz.js corpus",
27
+ "cover:clean": "rimraf .nyc_output coverage/",
28
+ "cover:report": "npx nyc report --reporter=text-summary --reporter=html --reporter=json",
29
+ "test:browser": "karma start --single-run",
30
+ "test:browser:firefox": "karma start --single-run --browsers FirefoxHeadless",
31
+ "test:browser:chrome": "karma start --single-run --browsers ChromeHeadless",
32
+ "test:watch:browser": "karma start --browsers ChromeHeadless,FirefoxHeadless",
33
+ "test:watch:nodejs": "mocha -w 'test/**/*.test.ts'",
34
+ "lint": "eslint --ext .ts src test",
35
+ "lint:fix": "prettier --loglevel=warn --write 'src/**/*.ts' 'test/**/*.ts' && eslint --fix --ext .ts src test",
36
+ "lint:print-config": "eslint --print-config .eslintrc.js",
37
+ "update-dependencies": "npx rimraf node_modules/ package-lock.json ; npm install ; npm audit fix --force ; git restore package.json ; npm install"
38
+ },
39
+ "homepage": "https://msgpack.org/",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://github.com/msgpack/msgpack-javascript.git"
43
+ },
44
+ "bugs": {
45
+ "url": "https://github.com/msgpack/msgpack-javascript/issues"
46
+ },
47
+ "keywords": [
48
+ "msgpack",
49
+ "MessagePack",
50
+ "serialization",
51
+ "universal"
52
+ ],
53
+ "engines": {
54
+ "node": ">= 10"
55
+ },
56
+ "devDependencies": {
57
+ "@bitjourney/check-es-version-webpack-plugin": "latest",
58
+ "@types/lodash": "latest",
59
+ "@types/mocha": "latest",
60
+ "@types/node": "latest",
61
+ "@typescript-eslint/eslint-plugin": "latest",
62
+ "@typescript-eslint/parser": "latest",
63
+ "assert": "latest",
64
+ "blob-polyfill": "latest",
65
+ "buffer": "latest",
66
+ "core-js": "latest",
67
+ "eslint": "latest",
68
+ "eslint-config-prettier": "latest",
69
+ "eslint-plugin-import": "latest",
70
+ "eslint-plugin-tsdoc": "latest",
71
+ "ieee754": "latest",
72
+ "karma": "latest",
73
+ "karma-chrome-launcher": "latest",
74
+ "karma-cli": "latest",
75
+ "karma-firefox-launcher": "latest",
76
+ "karma-mocha": "latest",
77
+ "karma-sourcemap-loader": "latest",
78
+ "karma-webpack": "latest",
79
+ "lodash": "latest",
80
+ "mocha": "latest",
81
+ "msgpack-test-js": "latest",
82
+ "npm-run-all": "latest",
83
+ "prettier": "latest",
84
+ "rimraf": "latest",
85
+ "ts-loader": "latest",
86
+ "ts-node": "latest",
87
+ "tsconfig-paths": "latest",
88
+ "typescript": "latest",
89
+ "web-streams-polyfill": "latest",
90
+ "webpack": "latest",
91
+ "webpack-cli": "latest"
92
+ },
93
+ "files": [
94
+ "mod.ts",
95
+ "src/**/*.*",
96
+ "dist/**/*.*",
97
+ "dist.es5+umd/**/*.*",
98
+ "dist.es5+esm/**/*.*"
99
+ ]
100
+ }