@kubb/agent 4.29.1 → 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.
- package/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +505 -339
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +3 -1
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +3 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +6 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/{onProcessExit-CF200hsz.js → onProcessExit-B0rJqX4s.js} +7 -1
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +1 -1
- package/.output/server/node_modules/@kubb/fabric-core/package.json +1 -1
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +1 -1
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +1 -1
- package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-BkDkx1cs.js → reactPlugin-tE73eBS_.js} +5 -1
- package/.output/server/node_modules/@kubb/react-fabric/package.json +2 -2
- package/.output/server/node_modules/@logtail/core/dist/cjs/base.js +339 -0
- package/.output/server/node_modules/@logtail/core/dist/cjs/index.js +9 -0
- package/.output/server/node_modules/@logtail/core/package.json +45 -0
- package/.output/server/node_modules/@logtail/node/dist/cjs/context.js +93 -0
- package/.output/server/node_modules/@logtail/node/dist/cjs/index.js +6 -0
- package/.output/server/node_modules/@logtail/node/dist/cjs/node.js +106 -0
- package/.output/server/node_modules/@logtail/node/package.json +53 -0
- package/.output/server/node_modules/@logtail/tools/dist/cjs/batch.js +122 -0
- package/.output/server/node_modules/@logtail/tools/dist/cjs/burstProtection.js +50 -0
- package/.output/server/node_modules/@logtail/tools/dist/cjs/encode.js +12 -0
- package/.output/server/node_modules/@logtail/tools/dist/cjs/index.js +41 -0
- package/.output/server/node_modules/@logtail/tools/dist/cjs/queue.js +41 -0
- package/.output/server/node_modules/@logtail/tools/dist/cjs/throttle.js +67 -0
- package/.output/server/node_modules/@logtail/tools/package.json +39 -0
- package/.output/server/node_modules/@logtail/types/dist/cjs/types.js +21 -0
- package/.output/server/node_modules/@logtail/types/package.json +45 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/CachedKeyDecoder.js +63 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/DecodeError.js +18 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/Decoder.js +583 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/Encoder.js +408 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/ExtData.js +14 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/ExtensionCodec.js +72 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/decode.js +32 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/decodeAsync.js +44 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/encode.js +17 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/index.js +34 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/timestamp.js +104 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/utils/int.js +34 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/utils/prettyByte.js +8 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/utils/stream.js +40 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/utils/typedArrays.js +28 -0
- package/.output/server/node_modules/@msgpack/msgpack/dist/utils/utf8.js +167 -0
- package/.output/server/node_modules/@msgpack/msgpack/package.json +100 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/serialize-error/index.js +154 -0
- package/.output/server/node_modules/serialize-error/package.json +41 -0
- package/.output/server/node_modules/stack-trace/lib/stack-trace.js +136 -0
- package/.output/server/node_modules/stack-trace/package.json +21 -0
- package/.output/server/package.json +11 -3
- package/README.md +3 -3
- package/package.json +23 -18
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@logtail/types",
|
|
3
|
+
"version": "0.5.6",
|
|
4
|
+
"description": "Better Stack Typescript types (formerly Logtail)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Better Stack",
|
|
7
|
+
"Logtail",
|
|
8
|
+
"logging",
|
|
9
|
+
"logger",
|
|
10
|
+
"typescript",
|
|
11
|
+
"types"
|
|
12
|
+
],
|
|
13
|
+
"author": "Better Stack <hello@betterstack.com>",
|
|
14
|
+
"homepage": "https://github.com/logtail/logtail-js/tree/master/packages/types#readme",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"main": "dist/cjs/types.js",
|
|
17
|
+
"module": "dist/es6/types.js",
|
|
18
|
+
"types": "dist/es6/types.d.ts",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"files": [
|
|
21
|
+
"src",
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/logtail/logtail-js.git"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build:cjs": "tsc",
|
|
33
|
+
"build:es6": "tsc -p tsconfig.es6.json",
|
|
34
|
+
"build": "run-p build:*",
|
|
35
|
+
"prepublishOnly": "npm run build",
|
|
36
|
+
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/logtail/logtail-js/issues"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"npm-run-all": "^4.1.5"
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "6901c2b90af7cf9dda3e7c8be7c145d4d83e72a8"
|
|
45
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CachedKeyDecoder = void 0;
|
|
4
|
+
const utf8_1 = require("./utils/utf8");
|
|
5
|
+
const DEFAULT_MAX_KEY_LENGTH = 16;
|
|
6
|
+
const DEFAULT_MAX_LENGTH_PER_KEY = 16;
|
|
7
|
+
class CachedKeyDecoder {
|
|
8
|
+
constructor(maxKeyLength = DEFAULT_MAX_KEY_LENGTH, maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY) {
|
|
9
|
+
this.maxKeyLength = maxKeyLength;
|
|
10
|
+
this.maxLengthPerKey = maxLengthPerKey;
|
|
11
|
+
this.hit = 0;
|
|
12
|
+
this.miss = 0;
|
|
13
|
+
// avoid `new Array(N)`, which makes a sparse array,
|
|
14
|
+
// because a sparse array is typically slower than a non-sparse array.
|
|
15
|
+
this.caches = [];
|
|
16
|
+
for (let i = 0; i < this.maxKeyLength; i++) {
|
|
17
|
+
this.caches.push([]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
canBeCached(byteLength) {
|
|
21
|
+
return byteLength > 0 && byteLength <= this.maxKeyLength;
|
|
22
|
+
}
|
|
23
|
+
find(bytes, inputOffset, byteLength) {
|
|
24
|
+
const records = this.caches[byteLength - 1];
|
|
25
|
+
FIND_CHUNK: for (const record of records) {
|
|
26
|
+
const recordBytes = record.bytes;
|
|
27
|
+
for (let j = 0; j < byteLength; j++) {
|
|
28
|
+
if (recordBytes[j] !== bytes[inputOffset + j]) {
|
|
29
|
+
continue FIND_CHUNK;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return record.str;
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
store(bytes, value) {
|
|
37
|
+
const records = this.caches[bytes.length - 1];
|
|
38
|
+
const record = { bytes, str: value };
|
|
39
|
+
if (records.length >= this.maxLengthPerKey) {
|
|
40
|
+
// `records` are full!
|
|
41
|
+
// Set `record` to an arbitrary position.
|
|
42
|
+
records[(Math.random() * records.length) | 0] = record;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
records.push(record);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
decode(bytes, inputOffset, byteLength) {
|
|
49
|
+
const cachedValue = this.find(bytes, inputOffset, byteLength);
|
|
50
|
+
if (cachedValue != null) {
|
|
51
|
+
this.hit++;
|
|
52
|
+
return cachedValue;
|
|
53
|
+
}
|
|
54
|
+
this.miss++;
|
|
55
|
+
const str = (0, utf8_1.utf8DecodeJs)(bytes, inputOffset, byteLength);
|
|
56
|
+
// Ensure to copy a slice of bytes because the byte may be NodeJS Buffer and Buffer#slice() returns a reference to its internal ArrayBuffer.
|
|
57
|
+
const slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength);
|
|
58
|
+
this.store(slicedCopyOfBytes, str);
|
|
59
|
+
return str;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.CachedKeyDecoder = CachedKeyDecoder;
|
|
63
|
+
//# sourceMappingURL=CachedKeyDecoder.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DecodeError = void 0;
|
|
4
|
+
class DecodeError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
// fix the prototype chain in a cross-platform way
|
|
8
|
+
const proto = Object.create(DecodeError.prototype);
|
|
9
|
+
Object.setPrototypeOf(this, proto);
|
|
10
|
+
Object.defineProperty(this, "name", {
|
|
11
|
+
configurable: true,
|
|
12
|
+
enumerable: false,
|
|
13
|
+
value: DecodeError.name,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.DecodeError = DecodeError;
|
|
18
|
+
//# sourceMappingURL=DecodeError.js.map
|