@bedrock-rbx/ocale 0.1.0-beta.1 → 0.1.0-beta.10
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/dist/badges.d.mts +86 -3
- package/dist/badges.d.mts.map +1 -1
- package/dist/badges.mjs +113 -6
- package/dist/badges.mjs.map +1 -1
- package/dist/data.generated-Cb6g6asv.d.mts +485 -0
- package/dist/data.generated-Cb6g6asv.d.mts.map +1 -0
- package/dist/developer-products.d.mts +14 -5
- package/dist/developer-products.d.mts.map +1 -1
- package/dist/developer-products.mjs +5 -5
- package/dist/developer-products.mjs.map +1 -1
- package/dist/game-passes.d.mts +83 -2
- package/dist/game-passes.d.mts.map +1 -1
- package/dist/game-passes.mjs +111 -5
- package/dist/game-passes.mjs.map +1 -1
- package/dist/index.d.mts +75 -64
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/locales.d.mts +2 -0
- package/dist/locales.mjs +512 -0
- package/dist/locales.mjs.map +1 -0
- package/dist/luau-execution.d.mts +149 -0
- package/dist/luau-execution.d.mts.map +1 -0
- package/dist/luau-execution.mjs +164 -0
- package/dist/luau-execution.mjs.map +1 -0
- package/dist/permission-error-DOVtNq3A.mjs +46 -0
- package/dist/permission-error-DOVtNq3A.mjs.map +1 -0
- package/dist/places.d.mts +87 -8
- package/dist/places.d.mts.map +1 -1
- package/dist/places.mjs +58 -69
- package/dist/places.mjs.map +1 -1
- package/dist/poll-timeout-Dg_QFEqi.mjs +79 -0
- package/dist/poll-timeout-Dg_QFEqi.mjs.map +1 -0
- package/dist/polling-BMrYajok.d.mts +253 -0
- package/dist/polling-BMrYajok.d.mts.map +1 -0
- package/dist/polling-helpers-QGjvYq3c.mjs +650 -0
- package/dist/polling-helpers-QGjvYq3c.mjs.map +1 -0
- package/dist/{price-information-CmpscMc4.mjs → price-information-DIrvwCmd.mjs} +2 -2
- package/dist/{price-information-CmpscMc4.mjs.map → price-information-DIrvwCmd.mjs.map} +1 -1
- package/dist/rate-limit-BYuizHoD.d.mts +92 -0
- package/dist/rate-limit-BYuizHoD.d.mts.map +1 -0
- package/dist/{rate-limit-BBU_4xnZ.mjs → rate-limit-D1q2Js-z.mjs} +12 -46
- package/dist/rate-limit-D1q2Js-z.mjs.map +1 -0
- package/dist/{resource-client-CaS_j3yg.mjs → resource-client-D6Efj9fU.mjs} +95 -15
- package/dist/resource-client-D6Efj9fU.mjs.map +1 -0
- package/dist/signatures-B5Fojgn0.mjs +59 -0
- package/dist/signatures-B5Fojgn0.mjs.map +1 -0
- package/dist/storage.d.mts +662 -0
- package/dist/storage.d.mts.map +1 -0
- package/dist/storage.mjs +858 -0
- package/dist/storage.mjs.map +1 -0
- package/dist/testing.d.mts +727 -0
- package/dist/testing.d.mts.map +1 -0
- package/dist/testing.mjs +457 -0
- package/dist/testing.mjs.map +1 -0
- package/dist/{to-blob-1BtHsDGK.mjs → to-blob-B27VhoRp.mjs} +1 -1
- package/dist/{to-blob-1BtHsDGK.mjs.map → to-blob-B27VhoRp.mjs.map} +1 -1
- package/dist/{types-YCTsM8Qd.d.mts → types-CwtZT1ek.d.mts} +1 -1
- package/dist/{types-YCTsM8Qd.d.mts.map → types-CwtZT1ek.d.mts.map} +1 -1
- package/dist/universes.d.mts +38 -18
- package/dist/universes.d.mts.map +1 -1
- package/dist/universes.mjs +5 -5
- package/dist/universes.mjs.map +1 -1
- package/dist/{validation-CTZzJhmd.mjs → validation-DkL5KQqz.mjs} +2 -2
- package/dist/validation-DkL5KQqz.mjs.map +1 -0
- package/dist/wire-CeL6W_V7.d.mts +35 -0
- package/dist/wire-CeL6W_V7.d.mts.map +1 -0
- package/package.json +8 -3
- package/dist/rate-limit-BBU_4xnZ.mjs.map +0 -1
- package/dist/resource-client-CaS_j3yg.mjs.map +0 -1
- package/dist/validation-CTZzJhmd.mjs.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//#region src/domains/universes/places/signatures.ts
|
|
2
|
+
/**
|
|
3
|
+
* Magic-byte prefix every Roblox binary place file (`.rbxl`) starts with.
|
|
4
|
+
* The first 8 bytes spell out `<roblox!` in ASCII; the remaining 6 bytes
|
|
5
|
+
* (`\x89\xff\r\n\x1a\n`) are the binary-format marker that distinguishes a
|
|
6
|
+
* binary place file from the XML form (`.rbxlx`), whose ASCII-only header
|
|
7
|
+
* begins with `<roblox `.
|
|
8
|
+
*/
|
|
9
|
+
const RBXL_SIGNATURE = new Uint8Array([
|
|
10
|
+
60,
|
|
11
|
+
114,
|
|
12
|
+
111,
|
|
13
|
+
98,
|
|
14
|
+
108,
|
|
15
|
+
111,
|
|
16
|
+
120,
|
|
17
|
+
33,
|
|
18
|
+
137,
|
|
19
|
+
255,
|
|
20
|
+
13,
|
|
21
|
+
10,
|
|
22
|
+
26,
|
|
23
|
+
10
|
|
24
|
+
]);
|
|
25
|
+
/**
|
|
26
|
+
* Magic-byte prefix every Roblox XML place file (`.rbxlx`) starts with.
|
|
27
|
+
* Equivalent to the ASCII string `<roblox ` (note the trailing space): a
|
|
28
|
+
* well-formed rbxlx file opens with `<roblox` followed by attributes, while
|
|
29
|
+
* an rbxl file uses `<roblox!` (exclamation mark) as the eighth byte. The
|
|
30
|
+
* trailing space is what proves the file is the XML variant rather than
|
|
31
|
+
* the binary one.
|
|
32
|
+
*/
|
|
33
|
+
const RBXLX_SIGNATURE = new Uint8Array([
|
|
34
|
+
60,
|
|
35
|
+
114,
|
|
36
|
+
111,
|
|
37
|
+
98,
|
|
38
|
+
108,
|
|
39
|
+
111,
|
|
40
|
+
120,
|
|
41
|
+
32
|
|
42
|
+
]);
|
|
43
|
+
/**
|
|
44
|
+
* Reports whether `body` begins with `signature`. A pure byte-prefix check
|
|
45
|
+
* with no allocation; used by the place builder to disambiguate `.rbxl` and
|
|
46
|
+
* `.rbxlx` payloads against their declared `format`.
|
|
47
|
+
*
|
|
48
|
+
* @param body - The caller-supplied place file bytes.
|
|
49
|
+
* @param signature - One of the frozen signature constants from this module.
|
|
50
|
+
* @returns `true` if every byte of `signature` matches `body[0..signature.length]`.
|
|
51
|
+
*/
|
|
52
|
+
function matchesSignature(body, signature) {
|
|
53
|
+
for (const [index, expected] of signature.entries()) if (body[index] !== expected) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { RBXL_SIGNATURE as n, matchesSignature as r, RBXLX_SIGNATURE as t };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=signatures-B5Fojgn0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatures-B5Fojgn0.mjs","names":[],"sources":["../src/domains/universes/places/signatures.ts"],"sourcesContent":["/**\n * Magic-byte prefix every Roblox binary place file (`.rbxl`) starts with.\n * The first 8 bytes spell out `<roblox!` in ASCII; the remaining 6 bytes\n * (`\\x89\\xff\\r\\n\\x1a\\n`) are the binary-format marker that distinguishes a\n * binary place file from the XML form (`.rbxlx`), whose ASCII-only header\n * begins with `<roblox `.\n */\nexport const RBXL_SIGNATURE: Readonly<Uint8Array<ArrayBuffer>> = new Uint8Array([\n\t0x3c, 0x72, 0x6f, 0x62, 0x6c, 0x6f, 0x78, 0x21, 0x89, 0xff, 0x0d, 0x0a, 0x1a, 0x0a,\n]);\n\n/**\n * Magic-byte prefix every Roblox XML place file (`.rbxlx`) starts with.\n * Equivalent to the ASCII string `<roblox ` (note the trailing space): a\n * well-formed rbxlx file opens with `<roblox` followed by attributes, while\n * an rbxl file uses `<roblox!` (exclamation mark) as the eighth byte. The\n * trailing space is what proves the file is the XML variant rather than\n * the binary one.\n */\nexport const RBXLX_SIGNATURE: Readonly<Uint8Array<ArrayBuffer>> = new Uint8Array([\n\t0x3c, 0x72, 0x6f, 0x62, 0x6c, 0x6f, 0x78, 0x20,\n]);\n\n/**\n * Reports whether `body` begins with `signature`. A pure byte-prefix check\n * with no allocation; used by the place builder to disambiguate `.rbxl` and\n * `.rbxlx` payloads against their declared `format`.\n *\n * @param body - The caller-supplied place file bytes.\n * @param signature - One of the frozen signature constants from this module.\n * @returns `true` if every byte of `signature` matches `body[0..signature.length]`.\n */\nexport function matchesSignature(\n\tbody: Uint8Array,\n\tsignature: Readonly<Uint8Array<ArrayBuffer>>,\n): boolean {\n\tfor (const [index, expected] of signature.entries()) {\n\t\tif (body[index] !== expected) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n"],"mappings":";;;;;;;;AAOA,MAAa,iBAAoD,IAAI,WAAW;CAC/E;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAC9E,CAAC;;;;;;;;;AAUF,MAAa,kBAAqD,IAAI,WAAW;CAChF;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAAM;CAC1C,CAAC;;;;;;;;;;AAWF,SAAgB,iBACf,MACA,WACU;AACV,MAAK,MAAM,CAAC,OAAO,aAAa,UAAU,SAAS,CAClD,KAAI,KAAK,WAAW,SACnB,QAAO;AAIT,QAAO"}
|