@wtasnorg/node-lib 0.0.8 → 0.0.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/changelog.txt +12 -0
- package/dev_checklist.txt +9 -3
- package/docs/README.md +10 -0
- package/docs/docs.json +667 -171
- package/docs/functions/createFindDirectories.md +1 -1
- package/docs/functions/decode.md +49 -0
- package/docs/functions/encode.md +45 -0
- package/docs/functions/hello.md +35 -3
- package/docs/functions/parseUserAgent.md +1 -1
- package/docs/functions/pojo.md +1 -1
- package/docs/interfaces/FileSystemDependencies.md +3 -3
- package/docs/interfaces/FindDirectoriesOptions.md +5 -5
- package/docs/interfaces/UserAgentInfo.md +6 -6
- package/docs/type-aliases/Base64CharsetType.md +13 -0
- package/docs/variables/Base64Charset.md +17 -0
- package/gen-docs/001_base64_refine.txt +50 -0
- package/gen-sec/001_base64_security.txt +75 -0
- package/package.json +4 -3
- package/readme.txt +1 -0
- package/src/base64.d.ts +58 -0
- package/src/base64.js +138 -0
- package/src/base64.test.d.ts +2 -0
- package/src/base64.test.js +106 -0
- package/src/base64.test.ts +125 -0
- package/src/base64.ts +163 -0
- package/src/hello.d.ts +27 -2
- package/src/hello.js +29 -4
- package/src/hello.test.js +11 -0
- package/src/hello.test.ts +13 -0
- package/src/hello.ts +29 -4
- package/src/index.d.ts +4 -2
- package/src/index.js +2 -1
- package/src/index.ts +7 -1
package/changelog.txt
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.9] - 2026-01-19
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Base64 encoding/decoding in `src/base64.ts` with four charset variants:
|
|
7
|
+
- `standard`: RFC 4648 standard alphabet (A-Z, a-z, 0-9, +, /)
|
|
8
|
+
- `urlsafe`: URL and filename safe (A-Z, a-z, 0-9, -, _)
|
|
9
|
+
- `imap`: Modified Base64 for IMAP mailbox names (A-Z, a-z, 0-9, +, ,)
|
|
10
|
+
- `radix64`: Base64 variant used in OpenPGP (A-Z, a-z, 0-9, +, /)
|
|
11
|
+
- Exported `encode`, `decode`, `Base64Charset`, and `Base64CharsetType` from `index.ts`.
|
|
12
|
+
- Comprehensive unit tests in `src/base64.test.ts` with round-trip tests for all charsets.
|
|
13
|
+
|
|
3
14
|
## [0.0.8] - 2026-01-19
|
|
4
15
|
|
|
5
16
|
### Added
|
|
@@ -12,3 +23,4 @@
|
|
|
12
23
|
### Fixed
|
|
13
24
|
- Exported `parseUserAgent` function and `UserAgentInfo` type from `index.ts`.
|
|
14
25
|
- Fixed `detectEngine` logic: "Blink" was never returned because "AppleWebKit" check ran first. Reordered checks so Chrome-based browsers correctly return "Blink".
|
|
26
|
+
|
package/dev_checklist.txt
CHANGED
|
@@ -9,10 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
### Structure & Style
|
|
11
11
|
|
|
12
|
-
- [ ] Imports/Exports
|
|
12
|
+
- [ ] Imports/Exports
|
|
13
|
+
- [ ] Imports at the top, exports at the bottom.
|
|
14
|
+
- [ ] Export named functions, types, objects.
|
|
15
|
+
- [ ] Import named functions, types, objects.
|
|
13
16
|
- [ ] Visibility: All primary functions should be exported.
|
|
14
|
-
- [ ]
|
|
15
|
-
- [ ] Control Blocks:
|
|
17
|
+
- [ ] Immutability: Prefer `const` over `let` (`prefer-const`).
|
|
18
|
+
- [ ] Control Blocks:
|
|
19
|
+
- [ ] Always use braces `{}` for `if`, `for`, etc. (`curly`).
|
|
20
|
+
- [ ] Use only `for` loop. Do not use `while`, `do-while`.
|
|
21
|
+
- [ ] Use `switch` instead of if-else ladder for one variable.
|
|
16
22
|
- [ ] AI Agent Protocol: AI agents MUST honor the project's ESLint and EditorConfig settings for all modifications. Run `npm run lint` to verify compliance.
|
|
17
23
|
|
|
18
24
|
### Documentation & Examples
|
package/docs/README.md
CHANGED
|
@@ -10,9 +10,19 @@
|
|
|
10
10
|
- [FindDirectoriesOptions](interfaces/FindDirectoriesOptions.md)
|
|
11
11
|
- [UserAgentInfo](interfaces/UserAgentInfo.md)
|
|
12
12
|
|
|
13
|
+
## Type Aliases
|
|
14
|
+
|
|
15
|
+
- [Base64CharsetType](type-aliases/Base64CharsetType.md)
|
|
16
|
+
|
|
17
|
+
## Variables
|
|
18
|
+
|
|
19
|
+
- [Base64Charset](variables/Base64Charset.md)
|
|
20
|
+
|
|
13
21
|
## Functions
|
|
14
22
|
|
|
15
23
|
- [createFindDirectories](functions/createFindDirectories.md)
|
|
24
|
+
- [decode](functions/decode.md)
|
|
25
|
+
- [encode](functions/encode.md)
|
|
16
26
|
- [hello](functions/hello.md)
|
|
17
27
|
- [parseUserAgent](functions/parseUserAgent.md)
|
|
18
28
|
- [pojo](functions/pojo.md)
|