| # Contributing to JNode packages | ||
| Hello there! Welcome to the contributing guildlines! | ||
| I was a bit surprised to see you here, especially since we’re not as well-known right now, and our packages are quite straightforward, mainly designed for specific projects. | ||
| If you’re here, perhaps you’ve spotted some bugs, security issues, or have an idea for something new. We’re happy to welcome any contributions! | ||
| - **Bugs**: If you find any bugs, please let us know. | ||
| - **Security Problems**: If a bug affects the package’s security, please reach out to JustApple via [email](mailto:ja@justapple.tw) or Discord! | ||
| - **Docs and Tutorials**: This is the part I’m most excited about. The docs are mostly generated by Gemini, so they might not be perfectly clear. Feel free to update them while maintaining the Node.js official doc style. | ||
| For new features, please always create an issue and wait for our response. Also, please remember to keep the package simple and free from third-party dependencies. |
+1
-1
| { | ||
| "name": "@jnode/db", | ||
| "version": "1.0.0", | ||
| "version": "1.1.0", | ||
| "description": "Simple database package for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
+1
-0
@@ -268,2 +268,3 @@ # `@jnode/db` | ||
| - `DBLEAnyField(length, name, isKey, isRelative)` | ||
| - `DBLEDateField(name, isKey, isRelative)` | ||
@@ -270,0 +271,0 @@ *Note: The `maxLength` argument is required for String and Buffer types to enforce DBLE's fixed-length binary schema standard.* |
+23
-1
@@ -1012,2 +1012,22 @@ /* | ||
| // Date (8 Bytes in BigUInt64 ms) | ||
| class DBLEDateField extends DBLEField { | ||
| constructor(name, isKey, isRelative) { | ||
| super(8, 'Date', name, isKey, isRelative); | ||
| } | ||
| parse(buf, offset) { | ||
| return new Date(Number(buf.readBigInt64LE(offset))); | ||
| } | ||
| write(data, buf = Buffer.alloc(this.length), offset = 0) { | ||
| buf.writeBigInt64LE(BigInt(data.getTime()), offset); | ||
| return buf; | ||
| } | ||
| default() { | ||
| return new Date(); | ||
| } | ||
| } | ||
| // dble default types | ||
@@ -1027,3 +1047,4 @@ const defaultDBLETypes = { | ||
| Buffer: DBLEBufferField, buf: DBLEBufferField, | ||
| Any: DBLEAnyField, any: DBLEBufferField | ||
| Any: DBLEAnyField, any: DBLEBufferField, | ||
| Date: DBLEDateField, date: DBLEDateField | ||
| }; | ||
@@ -1040,3 +1061,4 @@ | ||
| DBLEAnyField, | ||
| DBLEDateField, | ||
| defaultDBLETypes | ||
| }; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
72182
2.24%8
14.29%1077
1.7%388
0.26%