@tgsnake/bytesio 2.0.0 → 2.0.1-browser.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.
@@ -5,14 +5,11 @@
5
5
  * THIS FILE IS PART OF TGSNAKE
6
6
  *
7
7
  * tgsnake is a free software : you can redistribute it and/or modify
8
- * it under the terms of the GPL v3 License as published.
8
+ * it under the terms of the MIT License as published.
9
9
  */
10
10
  /**
11
- * This file is responsible for providing the necessary dependencies for the tgsnake library.
11
+ * This file is responsible for providing the necessary dependencies for the tgsnake library in browser environments.
12
12
  * It imports and exports various modules and libraries that are used throughout the codebase,
13
- * ensuring compatibility across different platforms such as Node.js, Deno, Bun, and browsers.
14
- * By centralizing these imports and exports, we can maintain a clean and organized codebase
15
- * while also making it easier to manage dependencies and ensure that the library works seamlessly
16
- * in various environments.
13
+ * ensuring compatibility in the browser. By centralizing these imports and exports, we can maintain a clean and organized codebase while also making it easier to manage dependencies and ensure that the library works seamlessly.
17
14
  */
18
- export { Buffer } from 'node:buffer';
15
+ export { Buffer } from 'buffer';
package/dist/src/deps.js CHANGED
@@ -5,14 +5,11 @@
5
5
  * THIS FILE IS PART OF TGSNAKE
6
6
  *
7
7
  * tgsnake is a free software : you can redistribute it and/or modify
8
- * it under the terms of the GPL v3 License as published.
8
+ * it under the terms of the MIT License as published.
9
9
  */
10
10
  /**
11
- * This file is responsible for providing the necessary dependencies for the tgsnake library.
11
+ * This file is responsible for providing the necessary dependencies for the tgsnake library in browser environments.
12
12
  * It imports and exports various modules and libraries that are used throughout the codebase,
13
- * ensuring compatibility across different platforms such as Node.js, Deno, Bun, and browsers.
14
- * By centralizing these imports and exports, we can maintain a clean and organized codebase
15
- * while also making it easier to manage dependencies and ensure that the library works seamlessly
16
- * in various environments.
13
+ * ensuring compatibility in the browser. By centralizing these imports and exports, we can maintain a clean and organized codebase while also making it easier to manage dependencies and ensure that the library works seamlessly.
17
14
  */
18
- export { Buffer } from 'node:buffer';
15
+ export { Buffer } from 'buffer';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * tgsnake - Telegram MTProto library for javascript or typescript.
3
+ * Copyright (C) 2026 tgsnake <https://github.com/tgsnake>
4
+ *
5
+ * THIS FILE IS PART OF TGSNAKE
6
+ *
7
+ * tgsnake is a free software : you can redistribute it and/or modify
8
+ * it under the terms of the GPL v3 License as published.
9
+ */
10
+ /**
11
+ * This file is responsible for providing the necessary dependencies for the tgsnake library.
12
+ * It imports and exports various modules and libraries that are used throughout the codebase,
13
+ * ensuring compatibility across different platforms such as Node.js, Deno, Bun, and browsers.
14
+ * By centralizing these imports and exports, we can maintain a clean and organized codebase
15
+ * while also making it easier to manage dependencies and ensure that the library works seamlessly
16
+ * in various environments.
17
+ */
18
+ export { Buffer } from 'node:buffer';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * tgsnake - Telegram MTProto library for javascript or typescript.
3
+ * Copyright (C) 2026 tgsnake <https://github.com/tgsnake>
4
+ *
5
+ * THIS FILE IS PART OF TGSNAKE
6
+ *
7
+ * tgsnake is a free software : you can redistribute it and/or modify
8
+ * it under the terms of the GPL v3 License as published.
9
+ */
10
+ /**
11
+ * This file is responsible for providing the necessary dependencies for the tgsnake library.
12
+ * It imports and exports various modules and libraries that are used throughout the codebase,
13
+ * ensuring compatibility across different platforms such as Node.js, Deno, Bun, and browsers.
14
+ * By centralizing these imports and exports, we can maintain a clean and organized codebase
15
+ * while also making it easier to manage dependencies and ensure that the library works seamlessly
16
+ * in various environments.
17
+ */
18
+ export { Buffer } from 'node:buffer';
package/package.json CHANGED
@@ -1,45 +1,48 @@
1
- {
2
- "name": "@tgsnake/bytesio",
3
- "packageManager": "yarn@4.9.2",
4
- "version": "2.0.0",
5
- "description": "A simple BytesIO implementation for Typescript",
6
- "main": "dist/mod.js",
7
- "types": "dist/mod.d.ts",
8
- "type": "module",
9
- "scripts": {
10
- "build": "tsc",
11
- "build:jsr": "node ./generator/jsr_version/index.js",
12
- "clean": "rm -rf dist",
13
- "prepare": "yarn build",
14
- "prettier": "NODE_OPTIONS=--max_old_space_size=4096 prettier -w .",
15
- "docs": "typedoc --out docs src/BytesIO.ts --excludePrivate --excludeProtected --excludeInternal --theme default --readme none"
16
- },
17
- "homepage": "https://tgsnake.js.org",
18
- "keywords": [
19
- "tgsnake",
20
- "BytesIO",
21
- "Buffer"
22
- ],
23
- "bugs": "https://github.com/tgsnake/bytesio/issues",
24
- "repository": "https://github.com/tgsnake/bytesio",
25
- "author": "butthx",
26
- "files": [
27
- "dist/**/**"
28
- ],
29
- "license": "MIT",
30
- "devDependencies": {
31
- "@types/bun": "^1.3.14",
32
- "@types/node": "^25.9.1",
33
- "prettier": "^3.8.3",
34
- "typedoc": "^0.28.19",
35
- "typescript": "^6.0.3"
36
- },
37
- "engineStrict": true,
38
- "engines": {
39
- "node": ">=22.0.0",
40
- "npm": ">=6.0.0",
41
- "yarn": ">=1.0.0",
42
- "deno": ">=1.0.0",
43
- "bun": ">=1.0.0"
44
- }
45
- }
1
+ {
2
+ "name": "@tgsnake/bytesio",
3
+ "packageManager": "yarn@4.9.2",
4
+ "version": "2.0.1-browser.0",
5
+ "description": "A simple BytesIO implementation for Typescript",
6
+ "main": "dist/mod.js",
7
+ "types": "dist/mod.d.ts",
8
+ "type": "module",
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "build:jsr": "node ./generator/jsr_version/index.js",
12
+ "clean": "rm -rf dist",
13
+ "prepare": "yarn build",
14
+ "prettier": "NODE_OPTIONS=--max_old_space_size=4096 prettier -w .",
15
+ "docs": "typedoc --out docs src/BytesIO.ts --excludePrivate --excludeProtected --excludeInternal --theme default --readme none"
16
+ },
17
+ "homepage": "https://tgsnake.js.org",
18
+ "keywords": [
19
+ "tgsnake",
20
+ "BytesIO",
21
+ "Buffer"
22
+ ],
23
+ "bugs": "https://github.com/tgsnake/bytesio/issues",
24
+ "repository": "https://github.com/tgsnake/bytesio",
25
+ "author": "butthx",
26
+ "files": [
27
+ "dist/**/**"
28
+ ],
29
+ "license": "MIT",
30
+ "devDependencies": {
31
+ "@types/bun": "^1.3.14",
32
+ "@types/node": "^25.9.1",
33
+ "prettier": "^3.8.3",
34
+ "typedoc": "^0.28.19",
35
+ "typescript": "^6.0.3"
36
+ },
37
+ "engineStrict": true,
38
+ "engines": {
39
+ "node": ">=22.0.0",
40
+ "npm": ">=6.0.0",
41
+ "yarn": ">=1.0.0",
42
+ "deno": ">=1.0.0",
43
+ "bun": ">=1.0.0"
44
+ },
45
+ "dependencies": {
46
+ "buffer": "^6.0.3"
47
+ }
48
+ }
@@ -1,15 +0,0 @@
1
- /**
2
- * tgsnake - Telegram MTProto library for javascript or typescript.
3
- * Copyright (C) 2026 tgsnake <https://github.com/tgsnake>
4
- *
5
- * THIS FILE IS PART OF TGSNAKE
6
- *
7
- * tgsnake is a free software : you can redistribute it and/or modify
8
- * it under the terms of the MIT License as published.
9
- */
10
- /**
11
- * This file is responsible for providing the necessary dependencies for the tgsnake library in browser environments.
12
- * It imports and exports various modules and libraries that are used throughout the codebase,
13
- * ensuring compatibility in the browser. By centralizing these imports and exports, we can maintain a clean and organized codebase while also making it easier to manage dependencies and ensure that the library works seamlessly.
14
- */
15
- export { Buffer } from 'buffer';
@@ -1,15 +0,0 @@
1
- /**
2
- * tgsnake - Telegram MTProto library for javascript or typescript.
3
- * Copyright (C) 2026 tgsnake <https://github.com/tgsnake>
4
- *
5
- * THIS FILE IS PART OF TGSNAKE
6
- *
7
- * tgsnake is a free software : you can redistribute it and/or modify
8
- * it under the terms of the MIT License as published.
9
- */
10
- /**
11
- * This file is responsible for providing the necessary dependencies for the tgsnake library in browser environments.
12
- * It imports and exports various modules and libraries that are used throughout the codebase,
13
- * ensuring compatibility in the browser. By centralizing these imports and exports, we can maintain a clean and organized codebase while also making it easier to manage dependencies and ensure that the library works seamlessly.
14
- */
15
- export { Buffer } from 'buffer';