@noy-db/core 0.1.0 → 0.1.1

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/index.js CHANGED
@@ -1,21 +1,3 @@
1
- // src/env-check.ts
2
- function checkEnvironment() {
3
- if (typeof process !== "undefined" && process.versions?.node) {
4
- const major = parseInt(process.versions.node.split(".")[0], 10);
5
- if (major < 18) {
6
- throw new Error(
7
- `@noy-db/core requires Node.js 18 or later (found ${process.versions.node}). Node.js 18+ is required for the Web Crypto API (crypto.subtle).`
8
- );
9
- }
10
- }
11
- if (typeof globalThis.crypto?.subtle === "undefined") {
12
- throw new Error(
13
- "@noy-db/core requires the Web Crypto API (crypto.subtle). Ensure you are running Node.js 18+ or a modern browser (Chrome 63+, Firefox 57+, Safari 13+)."
14
- );
15
- }
16
- }
17
- checkEnvironment();
18
-
19
1
  // src/types.ts
20
2
  var NOYDB_FORMAT_VERSION = 1;
21
3
  var NOYDB_KEYRING_VERSION = 1;