New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@jnode/db

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jnode/db - npm Package Compare versions

Comparing version
1.0.0
to
1.1.0
+13
CONTRIBUTING.md
# 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",

@@ -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.*

@@ -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
};