inibase 1.7.1 → 1.7.2

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/cli.js CHANGED
File without changes
package/dist/index.js CHANGED
@@ -24,7 +24,11 @@ export const ERROR_CODES = [
24
24
  "INVALID_NAME",
25
25
  ];
26
26
  // hide ExperimentalWarning glob()
27
- process.removeAllListeners("warning");
27
+ // Guard against non-Node environments (e.g. accidental import in a browser bundle)
28
+ if (typeof process !== "undefined" &&
29
+ typeof process.removeAllListeners === "function") {
30
+ process.removeAllListeners("warning");
31
+ }
28
32
  export const globalConfig = {};
29
33
  /**
30
34
  * @param {string} database - Database name
package/package.json CHANGED
@@ -1,92 +1,93 @@
1
1
  {
2
- "name": "inibase",
3
- "version": "1.7.1",
4
- "type": "module",
5
- "author": {
6
- "name": "Karim Amahtil",
7
- "email": "karim.amahtil@gmail.com"
8
- },
9
- "repository": "inicontent/inibase",
10
- "main": "./dist/index.js",
11
- "exports": {
12
- ".": "./dist/index.js",
13
- "./file": "./dist/file.js",
14
- "./utils": "./dist/utils.js",
15
- "./utils.server": "./dist/utils.server.js"
16
- },
17
- "bugs": {
18
- "url": "https://github.com/inicontent/inibase/issues"
19
- },
20
- "description": "A file-based & memory-efficient, serverless, ACID compliant, relational database management system",
21
- "engines": {
22
- "node": ">=22"
23
- },
24
- "files": [
25
- "/dist"
26
- ],
27
- "funding": "https://github.com/sponsors/inicontent",
28
- "homepage": "https://github.com/inicontent/inibase#readme",
29
- "keywords": [
30
- "nosql",
31
- "rdms",
32
- "database",
33
- "db",
34
- "mongoose",
35
- "relational",
36
- "local",
37
- "file",
38
- "storage",
39
- "json",
40
- "sqlite",
41
- "sql",
42
- "supabase",
43
- "better-sqlite",
44
- "mongodb",
45
- "firebase",
46
- "postgresql",
47
- "pocketbase"
48
- ],
49
- "license": "MIT",
50
- "bin": {
51
- "inibase": "./dist/cli.js"
52
- },
53
- "types": "./dist",
54
- "typesVersions": {
55
- "*": {
56
- ".": [
57
- "./dist/index.d.ts"
58
- ],
59
- "file": [
60
- "./dist/file.d.ts"
61
- ],
62
- "utils": [
63
- "./dist/utils.d.ts"
64
- ],
65
- "utils.server": [
66
- "./dist/utils.server.d.ts"
67
- ]
68
- }
69
- },
70
- "devDependencies": {
71
- "@biomejs/biome": "2.3.10",
72
- "@types/bun": "^1.2.10",
73
- "@types/node": "^22.15.2",
74
- "lefthook": "^1.11.11",
75
- "tinybench": "^4.0.1",
76
- "tsx": "^4.19.3",
77
- "typescript": "^5.8.3"
78
- },
79
- "dependencies": {
80
- "dotenv": "^16.5.0",
81
- "inison": "^2.0.1",
82
- "re2": "^1.26.1"
83
- },
84
- "scripts": {
85
- "prepublish": "tsc",
86
- "prebuild": "biome check --write src",
87
- "build": "tsc",
88
- "benchmark": "./benchmark/run.js",
89
- "test": "tsx ./tests/inibase.test.ts",
90
- "test:utils": "tsx ./tests/utils.test.ts"
91
- }
92
- }
2
+ "name": "inibase",
3
+ "version": "1.7.2",
4
+ "type": "module",
5
+ "author": {
6
+ "name": "Karim Amahtil",
7
+ "email": "karim.amahtil@gmail.com"
8
+ },
9
+ "repository": "inicontent/inibase",
10
+ "main": "./dist/index.js",
11
+ "exports": {
12
+ ".": "./dist/index.js",
13
+ "./file": "./dist/file.js",
14
+ "./utils": "./dist/utils.js",
15
+ "./utils.server": "./dist/utils.server.js"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/inicontent/inibase/issues"
19
+ },
20
+ "description": "A file-based & memory-efficient, serverless, ACID compliant, relational database management system",
21
+ "engines": {
22
+ "node": ">=22"
23
+ },
24
+ "files": [
25
+ "/dist"
26
+ ],
27
+ "funding": "https://github.com/sponsors/inicontent",
28
+ "homepage": "https://github.com/inicontent/inibase#readme",
29
+ "keywords": [
30
+ "nosql",
31
+ "rdms",
32
+ "database",
33
+ "db",
34
+ "mongoose",
35
+ "relational",
36
+ "local",
37
+ "file",
38
+ "storage",
39
+ "json",
40
+ "sqlite",
41
+ "sql",
42
+ "supabase",
43
+ "better-sqlite",
44
+ "mongodb",
45
+ "firebase",
46
+ "postgresql",
47
+ "pocketbase"
48
+ ],
49
+ "license": "MIT",
50
+ "scripts": {
51
+ "prepublishOnly": "lefthook run pre-push -f",
52
+ "prepublish": "tsc",
53
+ "prebuild": "biome check --write src",
54
+ "build": "tsc",
55
+ "benchmark": "./benchmark/run.js",
56
+ "test": "tsx ./tests/inibase.test.ts",
57
+ "test:utils": "tsx ./tests/utils.test.ts"
58
+ },
59
+ "bin": {
60
+ "inibase": "./dist/cli.js"
61
+ },
62
+ "types": "./dist",
63
+ "typesVersions": {
64
+ "*": {
65
+ ".": [
66
+ "./dist/index.d.ts"
67
+ ],
68
+ "file": [
69
+ "./dist/file.d.ts"
70
+ ],
71
+ "utils": [
72
+ "./dist/utils.d.ts"
73
+ ],
74
+ "utils.server": [
75
+ "./dist/utils.server.d.ts"
76
+ ]
77
+ }
78
+ },
79
+ "devDependencies": {
80
+ "@biomejs/biome": "2.3.10",
81
+ "@types/bun": "^1.2.10",
82
+ "@types/node": "^22.15.2",
83
+ "lefthook": "^1.11.11",
84
+ "tinybench": "^4.0.1",
85
+ "tsx": "^4.19.3",
86
+ "typescript": "^5.8.3"
87
+ },
88
+ "dependencies": {
89
+ "dotenv": "^16.5.0",
90
+ "inison": "^2.0.1",
91
+ "re2": "^1.26.1"
92
+ }
93
+ }