@roku-sdk/common 0.0.0-stage → 2.19.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/LICENSE +21 -0
- package/README.md +25 -2
- package/eslint.config.mjs +3 -0
- package/package.json +48 -3
- package/src/build-variables.ts +5 -0
- package/src/index.ts +10 -0
- package/src/logger.ts +104 -0
- package/src/sd-helper.ts +100 -0
- package/src/string-interner.ts +43 -0
- package/src/transaction.ts +79 -0
- package/tsconfig.json +10 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Roku, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@roku-sdk/common`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Low-level building blocks shared by the other RSG SDK packages: the logger, the transaction manager that batches SceneGraph tree updates, string interning, and helpers for Roku structured data. Apps get it as a dependency of `@roku-sdk/rsg-ts` and seldom import it directly.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pnpm add @roku-sdk/common
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Apps take the logger from `@roku-sdk/rsg-ts`, which re-exports it from this package:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { logger } from "@roku-sdk/rsg-ts";
|
|
17
|
+
|
|
18
|
+
const log = logger.getLogger("home");
|
|
19
|
+
log.info(() => "home screen mounted");
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Documentation
|
|
23
|
+
|
|
24
|
+
- [App configuration](../../documentation/core-concepts/app-configuration.md) — setting log levels with `app.logger` in `roku-config.ts`
|
|
25
|
+
- [Exception handling](../../documentation/runtime-and-debugging/exception-handling.md) — reporting uncaught exceptions
|
|
26
|
+
- [Full SDK documentation](../../documentation/README.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roku-sdk/common",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "2.19.0",
|
|
4
|
+
"description": "Roku TypeScript Common Library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"npm": ">=8.5.0",
|
|
8
|
+
"node": ">=24.0.0"
|
|
9
|
+
},
|
|
10
|
+
"main": "src/index.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./src/index.ts",
|
|
13
|
+
"./sd-helper": "./src/sd-helper.ts",
|
|
14
|
+
"./string-interner": "./src/string-interner.ts",
|
|
15
|
+
"./transaction": "./src/transaction.ts"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src/",
|
|
19
|
+
"dist/",
|
|
20
|
+
"eslint.config.mjs",
|
|
21
|
+
"tsconfig.json",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@roku-sdk/interfaces": "2.19.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@jest/globals": "^30.4.1",
|
|
29
|
+
"@roku-sdk/dev-tools": "2.19.0"
|
|
30
|
+
},
|
|
31
|
+
"author": "Roku Inc",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://gitlab.com/rokudev/rsg-sdk.git",
|
|
36
|
+
"directory": "packages/common"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://gitlab.com/rokudev/rsg-sdk/-/tree/main/packages/common#readme",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://gitlab.com/rokudev/rsg-sdk/-/issues"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"test": "jest",
|
|
47
|
+
"coverage": "jest --coverage --runInBand --passWithNoTests --testTimeout=60000 --forceExit",
|
|
48
|
+
"clean": "rm -rf dist",
|
|
49
|
+
"lint": "eslint --no-error-on-unmatched-pattern \"src/**/*.{ts,tsx,mjs,cjs,js}\""
|
|
50
|
+
}
|
|
6
51
|
}
|
package/src/index.ts
ADDED
package/src/logger.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// Copyright (c) 2026 Roku, Inc.
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
import { Logger, LoggerAPI, LoggerRef } from "@roku-sdk/interfaces";
|
|
5
|
+
import { RuntimeInterfaces } from "@roku-sdk/interfaces";
|
|
6
|
+
|
|
7
|
+
import { getBuildVariable } from "./build-variables";
|
|
8
|
+
|
|
9
|
+
declare const __BASE_LOG_LEVEL__: string;
|
|
10
|
+
declare const __CURRENT_LOG_LEVEL__: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Logger interface with internal loggerRef property
|
|
14
|
+
*/
|
|
15
|
+
interface LoggerWithRef extends Logger {
|
|
16
|
+
__loggerRef: LoggerRef;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This module provides a logger implementation that routes logs to the
|
|
21
|
+
* runtime logger API. It supports different log levels and allows for
|
|
22
|
+
* filtering logs based on the source.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
// Both symbols are registered on `roku` before this module is evaluated, so it is
|
|
26
|
+
// safe to destructure them at module load.
|
|
27
|
+
const { getRuntimeSingletonSync, LogLevel } = roku;
|
|
28
|
+
|
|
29
|
+
const loggerAPI: LoggerAPI = getRuntimeSingletonSync<LoggerAPI>(RuntimeInterfaces.LoggerAPI) as LoggerAPI;
|
|
30
|
+
|
|
31
|
+
const baseLogLevelStr = getBuildVariable(__BASE_LOG_LEVEL__, "INFO");
|
|
32
|
+
const currentLogLevelStr = getBuildVariable(__CURRENT_LOG_LEVEL__, "ERROR");
|
|
33
|
+
|
|
34
|
+
const baseLevel: number = LogLevel[baseLogLevelStr.toUpperCase()] ?? LogLevel.INFO;
|
|
35
|
+
const currentLevel: number = LogLevel[currentLogLevelStr.toUpperCase()] ?? LogLevel.ERROR;
|
|
36
|
+
// TODO: Implement log level update handler
|
|
37
|
+
// loggerAPI.setCurrentLogLevelUpdateHandler((logLevel: LogLevel): void => {
|
|
38
|
+
// currentLevel = logLevel;
|
|
39
|
+
// });
|
|
40
|
+
|
|
41
|
+
const logSourceFilter: string | null = null;
|
|
42
|
+
// TODO: Implement log source filter update handler
|
|
43
|
+
// loggerAPI.setLogSourceFilterUpdateHandler((filter: string): void => {
|
|
44
|
+
// logSourceFilter = filter;
|
|
45
|
+
// });
|
|
46
|
+
|
|
47
|
+
function createLogger(source: string = ""): LoggerWithRef {
|
|
48
|
+
const loggerRef = loggerAPI.getLoggerRef(source);
|
|
49
|
+
const logHandlers: Array<(source: string, level: number, message: string) => void> = [];
|
|
50
|
+
function logByLevel(
|
|
51
|
+
loggerRef: LoggerRef,
|
|
52
|
+
level: number,
|
|
53
|
+
messageProvider: () => string,
|
|
54
|
+
logSourceSuffix?: string
|
|
55
|
+
): void {
|
|
56
|
+
// TODO: fix logSourceSuffix regex. Check the performance impact when using regex.
|
|
57
|
+
if (
|
|
58
|
+
baseLevel <= level &&
|
|
59
|
+
currentLevel <= level &&
|
|
60
|
+
(logSourceFilter === null || source.startsWith(logSourceFilter))
|
|
61
|
+
) {
|
|
62
|
+
const message = messageProvider();
|
|
63
|
+
loggerAPI.logDevConsole(loggerRef, level, message, logSourceSuffix);
|
|
64
|
+
for (const handler of logHandlers) {
|
|
65
|
+
handler(source, level, message);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const logger: LoggerWithRef = {
|
|
70
|
+
trace: (messageProvider: () => string, logSourceSuffix?: string): void => {
|
|
71
|
+
logByLevel(loggerRef, LogLevel.TRACE, messageProvider, logSourceSuffix);
|
|
72
|
+
},
|
|
73
|
+
debug: (messageProvider: () => string, logSourceSuffix?: string): void => {
|
|
74
|
+
logByLevel(loggerRef, LogLevel.DEBUG, messageProvider, logSourceSuffix);
|
|
75
|
+
},
|
|
76
|
+
info: (messageProvider: () => string, logSourceSuffix?: string): void => {
|
|
77
|
+
logByLevel(loggerRef, LogLevel.INFO, messageProvider, logSourceSuffix);
|
|
78
|
+
},
|
|
79
|
+
warn: (messageProvider: () => string, logSourceSuffix?: string): void => {
|
|
80
|
+
logByLevel(loggerRef, LogLevel.WARN, messageProvider, logSourceSuffix);
|
|
81
|
+
},
|
|
82
|
+
error: (messageProvider: () => string, logSourceSuffix?: string): void => {
|
|
83
|
+
logByLevel(loggerRef, LogLevel.ERROR, messageProvider, logSourceSuffix);
|
|
84
|
+
},
|
|
85
|
+
getLogger: (childSource: string): Logger => {
|
|
86
|
+
return createLogger(source ? `${source}.${childSource}` : childSource);
|
|
87
|
+
},
|
|
88
|
+
// Log handler registration methods
|
|
89
|
+
registerLogHandler: (handler: (source: string, level: number, message: string) => void): void => {
|
|
90
|
+
logHandlers.push(handler);
|
|
91
|
+
},
|
|
92
|
+
unregisterLogHandler: (handler: (source: string, level: number, message: string) => void): void => {
|
|
93
|
+
const index = logHandlers.indexOf(handler);
|
|
94
|
+
if (index !== -1) {
|
|
95
|
+
logHandlers.splice(index, 1);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
__loggerRef: loggerRef
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
logger.trace(() => `Creating logger for source: ${source}`);
|
|
102
|
+
return logger;
|
|
103
|
+
}
|
|
104
|
+
export const logger = createLogger();
|
package/src/sd-helper.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Copyright (c) 2026 Roku, Inc.
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
import { StructuredDataApi, TmArrayRef, TmObjectRef } from "@roku-sdk/interfaces";
|
|
5
|
+
|
|
6
|
+
import { logger } from "./logger";
|
|
7
|
+
|
|
8
|
+
const sdLogger = logger.getLogger("sd");
|
|
9
|
+
|
|
10
|
+
export const createSDHelper = (api: StructuredDataApi) => {
|
|
11
|
+
const createFullObject = (props: object, tracked = new WeakSet<object>()): TmObjectRef => {
|
|
12
|
+
// Check for circular references
|
|
13
|
+
if (tracked.has(props)) {
|
|
14
|
+
sdLogger.error(() => "Circular reference detected in object");
|
|
15
|
+
throw new Error("Circular reference detected in object");
|
|
16
|
+
}
|
|
17
|
+
tracked.add(props);
|
|
18
|
+
|
|
19
|
+
const objRef = api.createObject() as object;
|
|
20
|
+
Object.entries(props).forEach(([prop, value]) => {
|
|
21
|
+
switch (typeof value) {
|
|
22
|
+
case "number":
|
|
23
|
+
if (Number.isInteger(value)) {
|
|
24
|
+
api.insertInt(objRef, prop, value);
|
|
25
|
+
} else {
|
|
26
|
+
api.insertFloat(objRef, prop, value);
|
|
27
|
+
}
|
|
28
|
+
break;
|
|
29
|
+
case "boolean":
|
|
30
|
+
api.insertBool(objRef, prop, value);
|
|
31
|
+
break;
|
|
32
|
+
case "string":
|
|
33
|
+
api.insertString(objRef, prop, value);
|
|
34
|
+
break;
|
|
35
|
+
case "object":
|
|
36
|
+
if (value === null) {
|
|
37
|
+
api.insertNull(objRef, prop);
|
|
38
|
+
} else if (Array.isArray(value)) {
|
|
39
|
+
const arrayRef = createFullArray(value, tracked);
|
|
40
|
+
api.insertArray(objRef, prop, arrayRef);
|
|
41
|
+
} else {
|
|
42
|
+
const objectRef: TmObjectRef = createFullObject(value, tracked);
|
|
43
|
+
api.insertObject(objRef, prop, objectRef);
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return objRef;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const createFullArray = (array: unknown[], tracked = new WeakSet<object>()): TmArrayRef => {
|
|
52
|
+
sdLogger.trace(() => `Creating array with ${array.length} elements`);
|
|
53
|
+
if (tracked.has(array)) {
|
|
54
|
+
sdLogger.error(() => "Circular reference detected in array");
|
|
55
|
+
throw new Error("Circular reference detected in array");
|
|
56
|
+
}
|
|
57
|
+
tracked.add(array);
|
|
58
|
+
|
|
59
|
+
const arrayRef = api.createArray() as object;
|
|
60
|
+
array.forEach(value => {
|
|
61
|
+
switch (typeof value) {
|
|
62
|
+
case "boolean":
|
|
63
|
+
api.appendBool(arrayRef, value);
|
|
64
|
+
break;
|
|
65
|
+
case "number":
|
|
66
|
+
if (Number.isInteger(value)) {
|
|
67
|
+
api.appendInt(arrayRef, value);
|
|
68
|
+
} else {
|
|
69
|
+
api.appendFloat(arrayRef, value);
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "string":
|
|
73
|
+
api.appendString(arrayRef, value);
|
|
74
|
+
break;
|
|
75
|
+
case "object":
|
|
76
|
+
if (value === null) {
|
|
77
|
+
api.appendNull(arrayRef);
|
|
78
|
+
} else if (Array.isArray(value)) {
|
|
79
|
+
const nestedArrayRef = createFullArray(value, tracked);
|
|
80
|
+
api.appendArray(arrayRef, nestedArrayRef);
|
|
81
|
+
} else {
|
|
82
|
+
const objectRef: TmObjectRef = createFullObject(value, tracked);
|
|
83
|
+
api.appendObject(arrayRef, objectRef);
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
return arrayRef;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const commit = () => {
|
|
92
|
+
// No-op: circular reference tracking is scoped per-call via the tracked parameter.
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
createFullObject,
|
|
97
|
+
createFullArray,
|
|
98
|
+
commit
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright (c) 2026 Roku, Inc.
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
import { InternedStringRef, InternStringApi } from "@roku-sdk/interfaces";
|
|
5
|
+
|
|
6
|
+
let internStringApi: InternStringApi | undefined;
|
|
7
|
+
let reverseMap: Map<InternedStringRef, string> | undefined;
|
|
8
|
+
let forwardMap: Map<string, InternedStringRef> | undefined;
|
|
9
|
+
|
|
10
|
+
export function registerInternStringApi(i: InternStringApi) {
|
|
11
|
+
reverseMap = new Map<InternedStringRef, string>();
|
|
12
|
+
forwardMap = new Map<string, InternedStringRef>();
|
|
13
|
+
internStringApi = i;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function assertInternStringApi() {
|
|
17
|
+
if (!internStringApi) {
|
|
18
|
+
throw new Error("InternStringApi not registered");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const stringInterner = {
|
|
23
|
+
internString: (str: string) => {
|
|
24
|
+
// TODO: profile this map and move it to the native side if needed
|
|
25
|
+
assertInternStringApi();
|
|
26
|
+
let ref = forwardMap!.get(str);
|
|
27
|
+
if (ref) {
|
|
28
|
+
return ref;
|
|
29
|
+
}
|
|
30
|
+
ref = internStringApi!.internString(str);
|
|
31
|
+
forwardMap!.set(str, ref);
|
|
32
|
+
reverseMap!.set(ref, str);
|
|
33
|
+
return ref;
|
|
34
|
+
},
|
|
35
|
+
getStringByInternedRef: (ref: InternedStringRef): string => {
|
|
36
|
+
assertInternStringApi();
|
|
37
|
+
const str = reverseMap!.get(ref);
|
|
38
|
+
if (!str) {
|
|
39
|
+
throw new Error(`String for ref ${ref} not found`);
|
|
40
|
+
}
|
|
41
|
+
return str;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Copyright (c) 2026 Roku, Inc.
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
import { logger } from "@roku-sdk/common";
|
|
5
|
+
import { TransactionApi } from "@roku-sdk/interfaces";
|
|
6
|
+
|
|
7
|
+
type Transaction =
|
|
8
|
+
| {
|
|
9
|
+
inTransaction: boolean;
|
|
10
|
+
}
|
|
11
|
+
| undefined;
|
|
12
|
+
|
|
13
|
+
let transactionApi: TransactionApi | undefined;
|
|
14
|
+
let transaction: Transaction = undefined;
|
|
15
|
+
const precommitHooks: (() => void)[] = [];
|
|
16
|
+
const transactionStartHooks: (() => void)[] = [];
|
|
17
|
+
|
|
18
|
+
const txLogger = logger.getLogger("tx");
|
|
19
|
+
|
|
20
|
+
export function registerTransactionApi(incomingTransactionApi: TransactionApi) {
|
|
21
|
+
transactionApi = incomingTransactionApi;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function registerPreCommitHook(preCommitHook: () => void) {
|
|
25
|
+
precommitHooks.push(preCommitHook);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function registerTransactionStartHook(transactionStartHook: () => void) {
|
|
29
|
+
transactionStartHooks.push(transactionStartHook);
|
|
30
|
+
}
|
|
31
|
+
let txFlowId: number | undefined;
|
|
32
|
+
|
|
33
|
+
function getTransactionManager() {
|
|
34
|
+
const commit = () => {
|
|
35
|
+
if (!transaction || !transaction.inTransaction) {
|
|
36
|
+
txLogger.warn(() => "No transaction in progress to commit.");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
precommitHooks.forEach(hook => {
|
|
40
|
+
hook();
|
|
41
|
+
});
|
|
42
|
+
txLogger.debug(() => "Committing transaction");
|
|
43
|
+
const txFlowIdToEnd = txFlowId;
|
|
44
|
+
if (txFlowIdToEnd !== undefined) {
|
|
45
|
+
roku.perfetto?.flowEvent(txFlowIdToEnd, "transaction.commit");
|
|
46
|
+
}
|
|
47
|
+
transactionApi?.end(txFlowIdToEnd);
|
|
48
|
+
txFlowId = undefined;
|
|
49
|
+
transaction = undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const startTransaction = () => {
|
|
53
|
+
if (!transaction) {
|
|
54
|
+
txFlowId = Math.floor(Math.random() * 0x7fffffff);
|
|
55
|
+
roku.perfetto?.flowEvent(txFlowId, "transaction.start");
|
|
56
|
+
txLogger.debug(() => "Starting transaction");
|
|
57
|
+
transactionApi?.start();
|
|
58
|
+
transactionStartHooks.forEach(hook => {
|
|
59
|
+
hook();
|
|
60
|
+
});
|
|
61
|
+
transaction = { inTransaction: true };
|
|
62
|
+
Promise.resolve().then(commit);
|
|
63
|
+
}
|
|
64
|
+
return transaction;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
startTransaction,
|
|
69
|
+
inTransaction: () => {
|
|
70
|
+
return transaction?.inTransaction;
|
|
71
|
+
},
|
|
72
|
+
commitEarly: () => {
|
|
73
|
+
// only call from unit tests
|
|
74
|
+
commit();
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const transactionManager = getTransactionManager();
|
package/tsconfig.json
ADDED