tirtc-devtools-cli 0.0.9 → 0.0.11
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 +17 -11
- package/USAGE.md +72 -33
- package/bin/tirtc-devtools-cli.js +1 -1
- package/dist/cli/src/bootstrap_flows.d.ts +46 -0
- package/dist/cli/src/bootstrap_flows.js +249 -0
- package/dist/{devtools/cli → cli}/src/config.d.ts +4 -15
- package/dist/{devtools/cli → cli}/src/config.js +7 -31
- package/dist/cli/src/default_paths.d.ts +3 -0
- package/dist/cli/src/default_paths.js +23 -0
- package/dist/{devtools/cli → cli}/src/embedded_paths.d.ts +1 -0
- package/dist/{devtools/cli → cli}/src/embedded_paths.js +18 -1
- package/dist/{devtools/cli → cli}/src/facade.d.ts +41 -235
- package/dist/{devtools/cli → cli}/src/facade.js +8 -27
- package/dist/cli/src/guide.js +47 -0
- package/dist/{devtools/cli → cli}/src/index.js +55 -141
- package/dist/{devtools/cli → cli}/src/session_manager.js +9 -11
- package/dist/{devtools/cli → cli}/src/token_command.js +69 -0
- package/dist/{devtools/cli → cli}/src/token_tool.d.ts +26 -0
- package/dist/{devtools/cli → cli}/src/token_tool.js +123 -22
- package/dist/{devtools/cli → cli}/src/transport.d.ts +1 -1
- package/package.json +6 -2
- package/script/ensure_ffmpeg.sh +1 -1
- package/vendor/app-server/bin/native/linux-x64/credential_napi.node +0 -0
- package/vendor/app-server/bin/native/macos-arm64/credential_napi.node +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/credential.h +34 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/error.h +13 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/foundation/build_info.h +27 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/http.h +57 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/logging.h +3 -1
- package/vendor/app-server/bin/runtime/linux-x64/lib/libcrypto.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_credential.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_foundation_http.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_foundation_logging.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libssl.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/manifest.txt +2 -32
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio.h +176 -133
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/av.h +223 -182
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/error.h +2 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_downlink.h +6 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/transport.h +58 -133
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/trp.h +47 -224
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libTGTRP.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libTiRTC.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_audio.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_credential.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_facade.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_foundation_http.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_foundation_logging.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_media.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_transport.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_video.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/manifest.txt +19 -15
- package/vendor/app-server/dist/host/HostCommandCoordinator.d.ts +19 -0
- package/vendor/app-server/dist/host/HostCommandCoordinator.js +196 -0
- package/vendor/app-server/dist/host/HostProtocol.d.ts +1 -11
- package/vendor/app-server/dist/host/HostProtocol.js +3 -37
- package/vendor/app-server/dist/host/HostServer.d.ts +1 -4
- package/vendor/app-server/dist/host/HostServer.js +16 -152
- package/vendor/app-server/dist/host/RuntimeAdapter.js +2 -2
- package/vendor/app-server/dist/host/native/RuntimeCredentialTokenIssuer.js +3 -3
- package/vendor/app-server/dist/host/native/RuntimeHostBridge.js +4 -4
- package/vendor/app-server/dist/host/runtime_backed_preflight.js +2 -2
- package/vendor/app-server/dist/host/tests/helpers/runtime_e2e_local_config.js +1 -1
- package/vendor/app-server/dist/protocol/contract.d.ts +5 -64
- package/vendor/app-server/dist/protocol/contract.js +3 -12
- package/dist/devtools/cli/src/guide.js +0 -50
- package/dist/dummy.d.ts +0 -0
- package/dist/dummy.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -48
- package/vendor/app-server/bin/native/macos-arm64/libcrypto.dylib +0 -0
- package/vendor/app-server/bin/native/macos-arm64/libssl.dylib +0 -0
- package/vendor/app-server/bin/native/macos-arm64/runtime_host_napi.node +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_codec.h +0 -23
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_frame.h +0 -36
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io.h +0 -56
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_android.h +0 -19
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_apple.h +0 -19
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_harmony.h +0 -19
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_windows.h +0 -19
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_processing.h +0 -56
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_sample_rate.h +0 -18
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/media_codec.h +0 -21
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/media_downlink.h +0 -89
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/media_uplink.h +0 -115
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/runtime.h +0 -236
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_codec.h +0 -57
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_frame.h +0 -55
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io.h +0 -46
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_android.h +0 -32
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_apple.h +0 -34
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_harmony.h +0 -32
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_windows.h +0 -26
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_processing.h +0 -34
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_audio.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_facade.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_media.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_video.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libwebrtc_apm.a +0 -0
- package/vendor/app-server/dist/host/RuntimeCredentialTokenIssuer.d.ts +0 -30
- package/vendor/app-server/dist/host/RuntimeCredentialTokenIssuer.js +0 -224
- /package/dist/{devtools/cli → cli}/src/dummy.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/dummy.js +0 -0
- /package/dist/{devtools/cli → cli}/src/ffmpeg_tool.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/ffmpeg_tool.js +0 -0
- /package/dist/{devtools/cli → cli}/src/guide.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/index.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/media_assets.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/media_assets.js +0 -0
- /package/dist/{devtools/cli → cli}/src/progress.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/progress.js +0 -0
- /package/dist/{devtools/cli → cli}/src/session_manager.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/token_command.d.ts +0 -0
- /package/dist/{devtools/cli → cli}/src/transport.js +0 -0
- /package/vendor/app-server/bin/{native/macos-arm64 → runtime/macos-arm64/lib}/libtgrtc.dylib +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export type AutoTokenIssueOptions = {
|
|
2
|
-
openapiEntry?: string;
|
|
3
|
-
accessId: string;
|
|
4
|
-
secretKey: string;
|
|
5
|
-
localId: string;
|
|
6
|
-
peerId: string;
|
|
7
|
-
userTtlSeconds?: number;
|
|
8
|
-
channelTtlSeconds?: number;
|
|
9
|
-
};
|
|
10
|
-
type RuntimeCredentialTokenIssuerOptions = {
|
|
11
|
-
repoRoot: string;
|
|
12
|
-
platform: string;
|
|
13
|
-
runtimeBundleRoot: string;
|
|
14
|
-
};
|
|
15
|
-
export declare class RuntimeCredentialTokenIssuer {
|
|
16
|
-
private readonly repoRoot;
|
|
17
|
-
private readonly platform;
|
|
18
|
-
private readonly runtimeBundleRoot;
|
|
19
|
-
private binding?;
|
|
20
|
-
constructor(options: RuntimeCredentialTokenIssuerOptions);
|
|
21
|
-
private resolveSourcePath;
|
|
22
|
-
private resolveBuildOutputPath;
|
|
23
|
-
private resolveRuntimeLibDir;
|
|
24
|
-
private resolveRuntimeIncludeDir;
|
|
25
|
-
private resolveNodeHeadersDir;
|
|
26
|
-
private ensureCredentialAddon;
|
|
27
|
-
private ensureBinding;
|
|
28
|
-
issueToken(options: AutoTokenIssueOptions): Promise<string>;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.RuntimeCredentialTokenIssuer = void 0;
|
|
37
|
-
const child_process_1 = require("child_process");
|
|
38
|
-
const fs = __importStar(require("fs"));
|
|
39
|
-
const path = __importStar(require("path"));
|
|
40
|
-
const util_1 = require("util");
|
|
41
|
-
const execFileAsync = (0, util_1.promisify)(child_process_1.execFile);
|
|
42
|
-
function pathExists(filePath) {
|
|
43
|
-
return fs.existsSync(filePath);
|
|
44
|
-
}
|
|
45
|
-
function ensureDir(dirPath) {
|
|
46
|
-
if (!pathExists(dirPath)) {
|
|
47
|
-
fs.mkdirSync(dirPath, { recursive: true });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function fileMtimeMs(filePath) {
|
|
51
|
-
if (!pathExists(filePath)) {
|
|
52
|
-
return 0;
|
|
53
|
-
}
|
|
54
|
-
return fs.statSync(filePath).mtimeMs;
|
|
55
|
-
}
|
|
56
|
-
function parseExecError(error) {
|
|
57
|
-
if (!error || typeof error !== 'object') {
|
|
58
|
-
return String(error);
|
|
59
|
-
}
|
|
60
|
-
const typed = error;
|
|
61
|
-
const stderr = typeof typed.stderr === 'string' ? typed.stderr.trim() : typed.stderr?.toString('utf8').trim();
|
|
62
|
-
const stdout = typeof typed.stdout === 'string' ? typed.stdout.trim() : typed.stdout?.toString('utf8').trim();
|
|
63
|
-
if (stderr && stderr.length > 0) {
|
|
64
|
-
return stderr;
|
|
65
|
-
}
|
|
66
|
-
if (stdout && stdout.length > 0) {
|
|
67
|
-
return stdout;
|
|
68
|
-
}
|
|
69
|
-
if (typed.message) {
|
|
70
|
-
return typed.message;
|
|
71
|
-
}
|
|
72
|
-
if (typed.code !== undefined) {
|
|
73
|
-
return 'process exited with code ' + String(typed.code);
|
|
74
|
-
}
|
|
75
|
-
return 'process failed';
|
|
76
|
-
}
|
|
77
|
-
class RuntimeCredentialTokenIssuer {
|
|
78
|
-
repoRoot;
|
|
79
|
-
platform;
|
|
80
|
-
runtimeBundleRoot;
|
|
81
|
-
binding;
|
|
82
|
-
constructor(options) {
|
|
83
|
-
this.repoRoot = options.repoRoot;
|
|
84
|
-
this.platform = options.platform;
|
|
85
|
-
this.runtimeBundleRoot = options.runtimeBundleRoot;
|
|
86
|
-
}
|
|
87
|
-
resolveSourcePath() {
|
|
88
|
-
const sourcePath = path.join(this.repoRoot, 'app-server/host/native/credential_napi.cc');
|
|
89
|
-
if (!pathExists(sourcePath)) {
|
|
90
|
-
throw new Error('credential source missing: ' + sourcePath);
|
|
91
|
-
}
|
|
92
|
-
return sourcePath;
|
|
93
|
-
}
|
|
94
|
-
resolveBuildOutputPath() {
|
|
95
|
-
return path.join(this.repoRoot, `.build/app-server/runtime-backed/credential_issue_token/${this.platform}/credential_napi.node`);
|
|
96
|
-
}
|
|
97
|
-
resolveRuntimeLibDir() {
|
|
98
|
-
const libDir = path.join(this.runtimeBundleRoot, 'lib');
|
|
99
|
-
if (!pathExists(libDir)) {
|
|
100
|
-
throw new Error('runtime-backed sdk libs are missing for platform ' + this.platform + ': ' + libDir);
|
|
101
|
-
}
|
|
102
|
-
return libDir;
|
|
103
|
-
}
|
|
104
|
-
resolveRuntimeIncludeDir() {
|
|
105
|
-
const includeDir = path.join(this.runtimeBundleRoot, 'include');
|
|
106
|
-
if (!pathExists(includeDir)) {
|
|
107
|
-
throw new Error('runtime-backed sdk headers are missing for platform ' + this.platform + ': ' + includeDir);
|
|
108
|
-
}
|
|
109
|
-
return includeDir;
|
|
110
|
-
}
|
|
111
|
-
resolveNodeHeadersDir() {
|
|
112
|
-
const configured = process.env.TIRTC_NODE_HEADERS_DIR;
|
|
113
|
-
const candidates = [
|
|
114
|
-
configured,
|
|
115
|
-
path.join(this.repoRoot, '.tmp/node-headers'),
|
|
116
|
-
path.join(this.repoRoot, '.tmp/node_headers'),
|
|
117
|
-
].filter((v) => typeof v === 'string' && v.trim().length > 0);
|
|
118
|
-
for (const candidate of candidates) {
|
|
119
|
-
const normalized = path.resolve(candidate);
|
|
120
|
-
if (pathExists(path.join(normalized, 'node_api.h'))) {
|
|
121
|
-
return normalized;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
throw new Error('node_api.h not found; set TIRTC_NODE_HEADERS_DIR to Node headers include dir');
|
|
125
|
-
}
|
|
126
|
-
async ensureCredentialAddon() {
|
|
127
|
-
const sourcePath = this.resolveSourcePath();
|
|
128
|
-
const outputPath = this.resolveBuildOutputPath();
|
|
129
|
-
ensureDir(path.dirname(outputPath));
|
|
130
|
-
const runtimeManifestPath = path.join(this.runtimeBundleRoot, 'manifest.txt');
|
|
131
|
-
const dependencyStampMs = Math.max(fileMtimeMs(sourcePath), fileMtimeMs(runtimeManifestPath));
|
|
132
|
-
const stale = fileMtimeMs(outputPath) < dependencyStampMs;
|
|
133
|
-
if (pathExists(outputPath) && !stale) {
|
|
134
|
-
return outputPath;
|
|
135
|
-
}
|
|
136
|
-
const runtimeLibDir = this.resolveRuntimeLibDir();
|
|
137
|
-
const runtimeIncludeDir = this.resolveRuntimeIncludeDir();
|
|
138
|
-
const nodeHeadersDir = this.resolveNodeHeadersDir();
|
|
139
|
-
const requiredRuntimeLibs = [
|
|
140
|
-
'libmatrix_runtime_credential.a',
|
|
141
|
-
'libmatrix_runtime_foundation_http.a',
|
|
142
|
-
'libmatrix_runtime_foundation_logging.a',
|
|
143
|
-
'libxlog.a',
|
|
144
|
-
'libssl.a',
|
|
145
|
-
'libcrypto.a',
|
|
146
|
-
].map((name) => path.join(runtimeLibDir, name));
|
|
147
|
-
for (const libPath of requiredRuntimeLibs) {
|
|
148
|
-
if (!pathExists(libPath)) {
|
|
149
|
-
throw new Error('credential dependency missing: ' + libPath);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
const args = [
|
|
153
|
-
'-O2',
|
|
154
|
-
'-std=c++17',
|
|
155
|
-
'-shared',
|
|
156
|
-
'-undefined',
|
|
157
|
-
'dynamic_lookup',
|
|
158
|
-
sourcePath,
|
|
159
|
-
'-o',
|
|
160
|
-
outputPath,
|
|
161
|
-
'-I',
|
|
162
|
-
runtimeIncludeDir,
|
|
163
|
-
'-I',
|
|
164
|
-
nodeHeadersDir,
|
|
165
|
-
...requiredRuntimeLibs,
|
|
166
|
-
'-lpthread',
|
|
167
|
-
'-lm',
|
|
168
|
-
];
|
|
169
|
-
if (this.platform === 'macos-arm64') {
|
|
170
|
-
args.push('-framework', 'Foundation', '-framework', 'CoreFoundation', '-lobjc', '-lz');
|
|
171
|
-
}
|
|
172
|
-
try {
|
|
173
|
-
await execFileAsync('c++', args, {
|
|
174
|
-
cwd: this.repoRoot,
|
|
175
|
-
env: process.env,
|
|
176
|
-
maxBuffer: 10 * 1024 * 1024,
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
catch (error) {
|
|
180
|
-
throw new Error('failed to build credential napi addon: ' + parseExecError(error));
|
|
181
|
-
}
|
|
182
|
-
if (!pathExists(outputPath)) {
|
|
183
|
-
throw new Error('credential napi addon was not produced: ' + outputPath);
|
|
184
|
-
}
|
|
185
|
-
return outputPath;
|
|
186
|
-
}
|
|
187
|
-
async ensureBinding() {
|
|
188
|
-
if (this.binding) {
|
|
189
|
-
return this.binding;
|
|
190
|
-
}
|
|
191
|
-
const addonPath = await this.ensureCredentialAddon();
|
|
192
|
-
const loaded = require(addonPath);
|
|
193
|
-
if (!loaded || typeof loaded.issueToken !== 'function') {
|
|
194
|
-
throw new Error('credential addon missing issueToken() export');
|
|
195
|
-
}
|
|
196
|
-
this.binding = loaded;
|
|
197
|
-
return loaded;
|
|
198
|
-
}
|
|
199
|
-
async issueToken(options) {
|
|
200
|
-
const binding = await this.ensureBinding();
|
|
201
|
-
let token;
|
|
202
|
-
try {
|
|
203
|
-
token = binding.issueToken({
|
|
204
|
-
openapiEntry: options.openapiEntry,
|
|
205
|
-
accessId: options.accessId,
|
|
206
|
-
secretKey: options.secretKey,
|
|
207
|
-
localId: options.localId,
|
|
208
|
-
peerId: options.peerId,
|
|
209
|
-
userTtlSeconds: options.userTtlSeconds,
|
|
210
|
-
channelTtlSeconds: options.channelTtlSeconds,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
catch (error) {
|
|
214
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
215
|
-
throw new Error('issue token failed: ' + message);
|
|
216
|
-
}
|
|
217
|
-
const normalized = token.trim();
|
|
218
|
-
if (normalized.length === 0) {
|
|
219
|
-
throw new Error('issue token failed: empty token');
|
|
220
|
-
}
|
|
221
|
-
return normalized;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
exports.RuntimeCredentialTokenIssuer = RuntimeCredentialTokenIssuer;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/vendor/app-server/bin/{native/macos-arm64 → runtime/macos-arm64/lib}/libtgrtc.dylib
RENAMED
|
File without changes
|