@voiceflow/base-types 2.26.0 → 2.27.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/build/common/runtimeLogs/index.d.ts +1 -0
- package/build/common/runtimeLogs/index.js +1 -0
- package/build/common/runtimeLogs/runtime/index.d.ts +1 -0
- package/build/common/runtimeLogs/runtime/index.js +13 -0
- package/build/common/runtimeLogs/runtime/logBuffer.d.ts +19 -0
- package/build/common/runtimeLogs/runtime/logBuffer.js +2 -0
- package/build/esm/runtimeLogs/index.d.ts +1 -0
- package/build/esm/runtimeLogs/index.js +1 -0
- package/build/esm/runtimeLogs/runtime/index.d.ts +1 -0
- package/build/esm/runtimeLogs/runtime/index.js +1 -0
- package/build/esm/runtimeLogs/runtime/logBuffer.d.ts +19 -0
- package/build/esm/runtimeLogs/runtime/logBuffer.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './logBuffer';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./logBuffer"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Log } from '../logs';
|
|
2
|
+
/**
|
|
3
|
+
* It acts as a buffer in between the runtime which produces the logs and the service/datastore which consumes the logs.
|
|
4
|
+
* In practice, this will almost always be implemented as part of the runtime itself.
|
|
5
|
+
*/
|
|
6
|
+
export interface LogBuffer {
|
|
7
|
+
/** The number of {@link Log} in this {@link LogBuffer}'s buffer. */
|
|
8
|
+
readonly bufferSize: number;
|
|
9
|
+
/** Add {@link Log} to this {@link LogBuffer}'s buffer. */
|
|
10
|
+
push(...logs: Log[]): void;
|
|
11
|
+
/** Dispatch all {@link Log} from this {@link LogBuffer}'s buffer and then remove them. */
|
|
12
|
+
flush(): void;
|
|
13
|
+
/** Remove all {@link Log} from this {@link LogBuffer}'s buffer. */
|
|
14
|
+
clear(): void;
|
|
15
|
+
}
|
|
16
|
+
export interface AsyncLogBuffer extends LogBuffer {
|
|
17
|
+
flush(): void | Promise<void>;
|
|
18
|
+
clear(): void | Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './logBuffer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './logBuffer';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Log } from '../logs';
|
|
2
|
+
/**
|
|
3
|
+
* It acts as a buffer in between the runtime which produces the logs and the service/datastore which consumes the logs.
|
|
4
|
+
* In practice, this will almost always be implemented as part of the runtime itself.
|
|
5
|
+
*/
|
|
6
|
+
export interface LogBuffer {
|
|
7
|
+
/** The number of {@link Log} in this {@link LogBuffer}'s buffer. */
|
|
8
|
+
readonly bufferSize: number;
|
|
9
|
+
/** Add {@link Log} to this {@link LogBuffer}'s buffer. */
|
|
10
|
+
push(...logs: Log[]): void;
|
|
11
|
+
/** Dispatch all {@link Log} from this {@link LogBuffer}'s buffer and then remove them. */
|
|
12
|
+
flush(): void;
|
|
13
|
+
/** Remove all {@link Log} from this {@link LogBuffer}'s buffer. */
|
|
14
|
+
clear(): void;
|
|
15
|
+
}
|
|
16
|
+
export interface AsyncLogBuffer extends LogBuffer {
|
|
17
|
+
flush(): void | Promise<void>;
|
|
18
|
+
clear(): void | Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/base-types",
|
|
3
3
|
"description": "Voiceflow base project types",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.27.0",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"test:smoke": "exit 0",
|
|
44
44
|
"test:unit": "exit 0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "32f0757eae3d1cee6af9220f541feac9d8cd9e75"
|
|
47
47
|
}
|