Обновить лицензии, исторический HEADER и ссылки CORE/CONTENT

This commit is contained in:
AidarKC
2026-12-05 23:45:02 +03:00
parent 37a04dde4d
commit 6968d11693
28 changed files with 313 additions and 126 deletions
@@ -10,7 +10,7 @@ const auth = read('../js/services/auth-service.js');
const makeBytesFunction = auth.split('function makeHeaderBodyBytes(')[1]?.split('\nfunction makeUserParamBodyBytes(')[0];
assert.ok(makeBytesFunction);
const context = {
HEADER_DEFAULT_LICENSE: auth.match(/export const HEADER_DEFAULT_LICENSE = '([^']+)'/)[1],
HEADER_DEFAULT_LICENSE: JSON.parse(auth.match(/export const HEADER_DEFAULT_LICENSE = ("[^"]+");/)[1]),
utf8Bytes: value => new TextEncoder().encode(value),
int8Byte: value => Uint8Array.of(value),
concatBytes: (...parts) => Uint8Array.from(parts.flatMap(part => Array.from(part))),