noxium 1.0.2 → 1.0.3
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/cjs/{createClient.cjs → createClient.js} +5 -6
- package/dist/cjs/drivers/{mongo.cjs → mongo.js} +17 -19
- package/dist/cjs/drivers/{sqlite.cjs → sqlite.js} +6 -9
- package/dist/cjs/{error.cjs → error.js} +0 -4
- package/dist/cjs/{noxium.cjs → noxium.js} +6 -8
- package/dist/cjs/schema.js +2 -0
- package/dist/esm/{createClient.js → createClient.mjs} +3 -4
- package/dist/esm/drivers/{mongo.js → mongo.mjs} +17 -19
- package/dist/esm/drivers/{sqlite.js → sqlite.mjs} +6 -9
- package/dist/esm/{error.js → error.mjs} +0 -4
- package/dist/esm/{noxium.js → noxium.mjs} +6 -8
- package/dist/esm/schema.mjs +1 -0
- package/dist/{esm → types}/createClient.d.ts +2 -2
- package/dist/{esm → types}/drivers/mongo.d.ts +2 -2
- package/dist/{esm → types}/drivers/sqlite.d.ts +1 -1
- package/dist/{esm → types}/noxium.d.ts +1 -1
- package/package.json +29 -13
- package/dist/cjs/createClient.cjs.map +0 -1
- package/dist/cjs/drivers/mongo.cjs.map +0 -1
- package/dist/cjs/drivers/sqlite.cjs.map +0 -1
- package/dist/cjs/error.cjs.map +0 -1
- package/dist/cjs/noxium.cjs.map +0 -1
- package/dist/cjs/schema.cjs +0 -3
- package/dist/cjs/schema.cjs.map +0 -1
- package/dist/esm/createClient.js.map +0 -1
- package/dist/esm/drivers/mongo.js.map +0 -1
- package/dist/esm/drivers/sqlite.js.map +0 -1
- package/dist/esm/error.js.map +0 -1
- package/dist/esm/noxium.js.map +0 -1
- package/dist/esm/schema.js +0 -2
- package/dist/esm/schema.js.map +0 -1
- /package/dist/{esm → types}/error.d.ts +0 -0
- /package/dist/{esm → types}/schema.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var Database = require('better-sqlite3');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var error = require('./error.
|
|
4
|
+
var mongo = require('./drivers/mongo.js');
|
|
5
|
+
var sqlite = require('./drivers/sqlite.js');
|
|
6
|
+
var error = require('./error.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validasi config dan kembalikan driver ORM sesuai type database
|
|
@@ -17,7 +17,7 @@ var error = require('./error.cjs');
|
|
|
17
17
|
}
|
|
18
18
|
if (!schema) throw new error.InvalidConfigError("SQLite membutuhkan schema.");
|
|
19
19
|
const db = new Database(dbConfig.sqlite.path);
|
|
20
|
-
return new
|
|
20
|
+
return new sqlite.NoxiumSqlite(db, schema);
|
|
21
21
|
}
|
|
22
22
|
case "mongo":
|
|
23
23
|
{
|
|
@@ -26,7 +26,7 @@ var error = require('./error.cjs');
|
|
|
26
26
|
throw new error.InvalidConfigError("Konfigurasi MongoDB tidak valid: field `uri` wajib diisi.");
|
|
27
27
|
}
|
|
28
28
|
if (!schema) throw new error.InvalidConfigError("Mongo membutuhkan schema.");
|
|
29
|
-
return new
|
|
29
|
+
return new mongo.NoxiumMongo(schema, dbConfig);
|
|
30
30
|
}
|
|
31
31
|
case "postgres":
|
|
32
32
|
{
|
|
@@ -52,4 +52,3 @@ var error = require('./error.cjs');
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
exports.createClient = createClient;
|
|
55
|
-
//# sourceMappingURL=createClient.cjs.map
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var mongoose = require('mongoose');
|
|
4
|
-
var error = require('../error.
|
|
4
|
+
var error = require('../error.js');
|
|
5
5
|
|
|
6
6
|
class NoxiumMongo {
|
|
7
|
-
model;
|
|
8
|
-
constructor(schema, config){
|
|
9
|
-
mongoose.connect(config.mongo.uri, {
|
|
10
|
-
dbName: config.mongo.dbName ?? "test"
|
|
11
|
-
});
|
|
12
|
-
// generate definisi schema mongoose
|
|
13
|
-
const mongooseSchemaDef = {};
|
|
14
|
-
for (const col of schema.columns){
|
|
15
|
-
const def = {};
|
|
16
|
-
def.type = col.type === "int" ? Number : String;
|
|
17
|
-
if (col.required) def.required = true;
|
|
18
|
-
if (col.unique) def.unique = true;
|
|
19
|
-
mongooseSchemaDef[col.name] = def;
|
|
20
|
-
}
|
|
21
|
-
const mongooseSchema = new mongoose.Schema(mongooseSchemaDef);
|
|
22
|
-
this.model = mongoose.model(schema.name, mongooseSchema);
|
|
23
|
-
}
|
|
24
7
|
async insert(data) {
|
|
25
8
|
try {
|
|
26
9
|
const doc = new this.model(data);
|
|
@@ -57,7 +40,22 @@ class NoxiumMongo {
|
|
|
57
40
|
[column]: value
|
|
58
41
|
}).exec();
|
|
59
42
|
}
|
|
43
|
+
constructor(schema, config){
|
|
44
|
+
mongoose.connect(config.mongo.uri, {
|
|
45
|
+
dbName: config.mongo.dbName ?? "test"
|
|
46
|
+
});
|
|
47
|
+
// generate definisi schema mongoose
|
|
48
|
+
const mongooseSchemaDef = {};
|
|
49
|
+
for (const col of schema.columns){
|
|
50
|
+
const def = {};
|
|
51
|
+
def.type = col.type === "int" ? Number : String;
|
|
52
|
+
if (col.required) def.required = true;
|
|
53
|
+
if (col.unique) def.unique = true;
|
|
54
|
+
mongooseSchemaDef[col.name] = def;
|
|
55
|
+
}
|
|
56
|
+
const mongooseSchema = new mongoose.Schema(mongooseSchemaDef);
|
|
57
|
+
this.model = mongoose.model(schema.name, mongooseSchema);
|
|
58
|
+
}
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
exports.NoxiumMongo = NoxiumMongo;
|
|
63
|
-
//# sourceMappingURL=mongo.cjs.map
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var error = require('../error.
|
|
3
|
+
var error = require('../error.js');
|
|
4
4
|
|
|
5
5
|
class NoxiumSqlite {
|
|
6
|
-
db;
|
|
7
|
-
schema;
|
|
8
|
-
constructor(db, schema){
|
|
9
|
-
this.db = db;
|
|
10
|
-
this.schema = schema;
|
|
11
|
-
this.createTable(); // ✅ otomatis buat table saat instance dibuat
|
|
12
|
-
}
|
|
13
6
|
createTable() {
|
|
14
7
|
const cols = this.schema.columns.map((c)=>{
|
|
15
8
|
let def = `${c.name} ${c.type.toUpperCase()}`;
|
|
@@ -71,7 +64,11 @@ class NoxiumSqlite {
|
|
|
71
64
|
const stmt = this.db.prepare(`SELECT * FROM ${this.schema.name} WHERE ${column} = ?`);
|
|
72
65
|
return stmt.all(value);
|
|
73
66
|
}
|
|
67
|
+
constructor(db, schema){
|
|
68
|
+
this.db = db;
|
|
69
|
+
this.schema = schema;
|
|
70
|
+
this.createTable(); // ✅ otomatis buat table saat instance dibuat
|
|
71
|
+
}
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
exports.NoxiumSqlite = NoxiumSqlite;
|
|
77
|
-
//# sourceMappingURL=sqlite.cjs.map
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
// errors.ts
|
|
4
4
|
class DuplicateError extends Error {
|
|
5
|
-
column;
|
|
6
|
-
value;
|
|
7
5
|
constructor(column, value){
|
|
8
6
|
super(`Duplicate unique value: ${column} = ${value}`);
|
|
9
7
|
this.name = "DuplicateError";
|
|
@@ -12,7 +10,6 @@ class DuplicateError extends Error {
|
|
|
12
10
|
}
|
|
13
11
|
}
|
|
14
12
|
class ValidationError extends Error {
|
|
15
|
-
column;
|
|
16
13
|
constructor(column){
|
|
17
14
|
super(`Missing required field: ${column}`);
|
|
18
15
|
this.name = "ValidationError";
|
|
@@ -47,4 +44,3 @@ exports.DuplicateError = DuplicateError;
|
|
|
47
44
|
exports.InvalidConfigError = InvalidConfigError;
|
|
48
45
|
exports.RequiredConfigError = RequiredConfigError;
|
|
49
46
|
exports.ValidationError = ValidationError;
|
|
50
|
-
//# sourceMappingURL=error.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var path = require('path');
|
|
4
3
|
var fs = require('fs');
|
|
5
|
-
var
|
|
6
|
-
var createClient = require('./createClient.
|
|
4
|
+
var path = require('path');
|
|
5
|
+
var createClient = require('./createClient.js');
|
|
6
|
+
var error = require('./error.js');
|
|
7
7
|
|
|
8
8
|
const configPath = path.resolve(process.cwd(), "noxium.config.ts");
|
|
9
9
|
if (!fs.existsSync(configPath)) {
|
|
@@ -12,10 +12,6 @@ if (!fs.existsSync(configPath)) {
|
|
|
12
12
|
const rawConfig = require(configPath).default;
|
|
13
13
|
const config = typeof rawConfig === "function" ? rawConfig() : rawConfig;
|
|
14
14
|
class Noxium {
|
|
15
|
-
orm;
|
|
16
|
-
constructor(schema){
|
|
17
|
-
this.orm = createClient.createClient(config, schema);
|
|
18
|
-
}
|
|
19
15
|
async insert(data) {
|
|
20
16
|
return await this.orm.insert(data);
|
|
21
17
|
}
|
|
@@ -35,7 +31,9 @@ class Noxium {
|
|
|
35
31
|
const value = data[column];
|
|
36
32
|
return await this.orm.findMany(column, value);
|
|
37
33
|
}
|
|
34
|
+
constructor(schema){
|
|
35
|
+
this.orm = createClient.createClient(config, schema);
|
|
36
|
+
}
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
exports.Noxium = Noxium;
|
|
41
|
-
//# sourceMappingURL=noxium.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Database from 'better-sqlite3';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { InvalidConfigError } from './error.
|
|
2
|
+
import { NoxiumMongo } from './drivers/mongo.mjs';
|
|
3
|
+
import { NoxiumSqlite } from './drivers/sqlite.mjs';
|
|
4
|
+
import { InvalidConfigError } from './error.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Validasi config dan kembalikan driver ORM sesuai type database
|
|
@@ -50,4 +50,3 @@ import { InvalidConfigError } from './error.js';
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export { createClient };
|
|
53
|
-
//# sourceMappingURL=createClient.js.map
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import mongoose, { Schema } from 'mongoose';
|
|
2
|
-
import { DuplicateError, ValidationError } from '../error.
|
|
2
|
+
import { DuplicateError, ValidationError } from '../error.mjs';
|
|
3
3
|
|
|
4
4
|
class NoxiumMongo {
|
|
5
|
-
model;
|
|
6
|
-
constructor(schema, config){
|
|
7
|
-
mongoose.connect(config.mongo.uri, {
|
|
8
|
-
dbName: config.mongo.dbName ?? "test"
|
|
9
|
-
});
|
|
10
|
-
// generate definisi schema mongoose
|
|
11
|
-
const mongooseSchemaDef = {};
|
|
12
|
-
for (const col of schema.columns){
|
|
13
|
-
const def = {};
|
|
14
|
-
def.type = col.type === "int" ? Number : String;
|
|
15
|
-
if (col.required) def.required = true;
|
|
16
|
-
if (col.unique) def.unique = true;
|
|
17
|
-
mongooseSchemaDef[col.name] = def;
|
|
18
|
-
}
|
|
19
|
-
const mongooseSchema = new Schema(mongooseSchemaDef);
|
|
20
|
-
this.model = mongoose.model(schema.name, mongooseSchema);
|
|
21
|
-
}
|
|
22
5
|
async insert(data) {
|
|
23
6
|
try {
|
|
24
7
|
const doc = new this.model(data);
|
|
@@ -55,7 +38,22 @@ class NoxiumMongo {
|
|
|
55
38
|
[column]: value
|
|
56
39
|
}).exec();
|
|
57
40
|
}
|
|
41
|
+
constructor(schema, config){
|
|
42
|
+
mongoose.connect(config.mongo.uri, {
|
|
43
|
+
dbName: config.mongo.dbName ?? "test"
|
|
44
|
+
});
|
|
45
|
+
// generate definisi schema mongoose
|
|
46
|
+
const mongooseSchemaDef = {};
|
|
47
|
+
for (const col of schema.columns){
|
|
48
|
+
const def = {};
|
|
49
|
+
def.type = col.type === "int" ? Number : String;
|
|
50
|
+
if (col.required) def.required = true;
|
|
51
|
+
if (col.unique) def.unique = true;
|
|
52
|
+
mongooseSchemaDef[col.name] = def;
|
|
53
|
+
}
|
|
54
|
+
const mongooseSchema = new Schema(mongooseSchemaDef);
|
|
55
|
+
this.model = mongoose.model(schema.name, mongooseSchema);
|
|
56
|
+
}
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
export { NoxiumMongo };
|
|
61
|
-
//# sourceMappingURL=mongo.js.map
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { ValidationError, DuplicateError } from '../error.
|
|
1
|
+
import { ValidationError, DuplicateError } from '../error.mjs';
|
|
2
2
|
|
|
3
3
|
class NoxiumSqlite {
|
|
4
|
-
db;
|
|
5
|
-
schema;
|
|
6
|
-
constructor(db, schema){
|
|
7
|
-
this.db = db;
|
|
8
|
-
this.schema = schema;
|
|
9
|
-
this.createTable(); // ✅ otomatis buat table saat instance dibuat
|
|
10
|
-
}
|
|
11
4
|
createTable() {
|
|
12
5
|
const cols = this.schema.columns.map((c)=>{
|
|
13
6
|
let def = `${c.name} ${c.type.toUpperCase()}`;
|
|
@@ -69,7 +62,11 @@ class NoxiumSqlite {
|
|
|
69
62
|
const stmt = this.db.prepare(`SELECT * FROM ${this.schema.name} WHERE ${column} = ?`);
|
|
70
63
|
return stmt.all(value);
|
|
71
64
|
}
|
|
65
|
+
constructor(db, schema){
|
|
66
|
+
this.db = db;
|
|
67
|
+
this.schema = schema;
|
|
68
|
+
this.createTable(); // ✅ otomatis buat table saat instance dibuat
|
|
69
|
+
}
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
export { NoxiumSqlite };
|
|
75
|
-
//# sourceMappingURL=sqlite.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// errors.ts
|
|
2
2
|
class DuplicateError extends Error {
|
|
3
|
-
column;
|
|
4
|
-
value;
|
|
5
3
|
constructor(column, value){
|
|
6
4
|
super(`Duplicate unique value: ${column} = ${value}`);
|
|
7
5
|
this.name = "DuplicateError";
|
|
@@ -10,7 +8,6 @@ class DuplicateError extends Error {
|
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
10
|
class ValidationError extends Error {
|
|
13
|
-
column;
|
|
14
11
|
constructor(column){
|
|
15
12
|
super(`Missing required field: ${column}`);
|
|
16
13
|
this.name = "ValidationError";
|
|
@@ -42,4 +39,3 @@ class InvalidConfigError extends Error {
|
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
export { DuplicateError, InvalidConfigError, RequiredConfigError, ValidationError };
|
|
45
|
-
//# sourceMappingURL=error.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
1
|
import { existsSync } from 'fs';
|
|
3
|
-
import
|
|
4
|
-
import { createClient } from './createClient.
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { createClient } from './createClient.mjs';
|
|
4
|
+
import { RequiredConfigError } from './error.mjs';
|
|
5
5
|
|
|
6
6
|
const configPath = path.resolve(process.cwd(), "noxium.config.ts");
|
|
7
7
|
if (!existsSync(configPath)) {
|
|
@@ -10,10 +10,6 @@ if (!existsSync(configPath)) {
|
|
|
10
10
|
const rawConfig = require(configPath).default;
|
|
11
11
|
const config = typeof rawConfig === "function" ? rawConfig() : rawConfig;
|
|
12
12
|
class Noxium {
|
|
13
|
-
orm;
|
|
14
|
-
constructor(schema){
|
|
15
|
-
this.orm = createClient(config, schema);
|
|
16
|
-
}
|
|
17
13
|
async insert(data) {
|
|
18
14
|
return await this.orm.insert(data);
|
|
19
15
|
}
|
|
@@ -33,7 +29,9 @@ class Noxium {
|
|
|
33
29
|
const value = data[column];
|
|
34
30
|
return await this.orm.findMany(column, value);
|
|
35
31
|
}
|
|
32
|
+
constructor(schema){
|
|
33
|
+
this.orm = createClient(config, schema);
|
|
34
|
+
}
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export { Noxium };
|
|
39
|
-
//# sourceMappingURL=noxium.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { NoxiumConfig } from "./config.js";
|
|
2
|
+
import type { NoxiumClient, SchemaToType, TableSchema } from "./schema.js";
|
|
3
3
|
/**
|
|
4
4
|
* Validasi config dan kembalikan driver ORM sesuai type database
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { MongoConfig } from "../config.js";
|
|
2
|
+
import type { SchemaToType, TableSchema } from "../schema.js";
|
|
3
3
|
export declare class NoxiumMongo<Schema extends TableSchema> {
|
|
4
4
|
private model;
|
|
5
5
|
constructor(schema: Schema, config: MongoConfig);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NoxiumClient, SchemaToType, TableSchema } from "../schema";
|
|
1
|
+
import type { NoxiumClient, SchemaToType, TableSchema } from "../schema.js";
|
|
2
2
|
export declare class NoxiumSqlite<Schema extends TableSchema> implements NoxiumClient<SchemaToType<Schema>> {
|
|
3
3
|
private db;
|
|
4
4
|
private schema;
|
package/package.json
CHANGED
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noxium",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Unified ORM for SQLite and MongoDB with TypeScript",
|
|
5
5
|
"main": "./dist/cjs/noxium.cjs",
|
|
6
|
-
"module": "./dist/esm/noxium.
|
|
7
|
-
"types": "./dist/
|
|
6
|
+
"module": "./dist/esm/noxium.mjs",
|
|
7
|
+
"types": "./dist/types/noxium.d.ts",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"require": "./dist/cjs/noxium.cjs",
|
|
12
|
-
"import": "./dist/esm/noxium.
|
|
12
|
+
"import": "./dist/esm/noxium.mjs",
|
|
13
|
+
"types": "./dist/types/noxium.d.ts"
|
|
13
14
|
},
|
|
14
15
|
"./drivers/mongo": {
|
|
15
16
|
"require": "./dist/cjs/drivers/mongo.cjs",
|
|
16
|
-
"import": "./dist/esm/drivers/mongo.
|
|
17
|
+
"import": "./dist/esm/drivers/mongo.mjs",
|
|
18
|
+
"types": "./dist/types/drivers/mongo.d.ts"
|
|
17
19
|
},
|
|
18
20
|
"./drivers/sqlite": {
|
|
19
21
|
"require": "./dist/cjs/drivers/sqlite.cjs",
|
|
20
|
-
"import": "./dist/esm/drivers/sqlite.
|
|
22
|
+
"import": "./dist/esm/drivers/sqlite.mjs",
|
|
23
|
+
"types": "./dist/types/drivers/sqlite.d.ts"
|
|
21
24
|
},
|
|
22
25
|
"./config": {
|
|
23
26
|
"require": "./dist/cjs/config.cjs",
|
|
24
|
-
"import": "./dist/esm/config.
|
|
27
|
+
"import": "./dist/esm/config.mjs",
|
|
28
|
+
"types": "./dist/types/config.d.ts"
|
|
25
29
|
},
|
|
26
30
|
"./error": {
|
|
27
31
|
"require": "./dist/cjs/error.cjs",
|
|
28
|
-
"import": "./dist/esm/error.
|
|
32
|
+
"import": "./dist/esm/error.mjs",
|
|
33
|
+
"types": "./dist/types/error.d.ts"
|
|
29
34
|
},
|
|
30
35
|
"./schema": {
|
|
31
36
|
"require": "./dist/cjs/schema.cjs",
|
|
32
|
-
"import": "./dist/esm/schema.
|
|
37
|
+
"import": "./dist/esm/schema.mjs",
|
|
38
|
+
"types": "./dist/types/schema.d.ts"
|
|
33
39
|
}
|
|
34
40
|
},
|
|
35
41
|
"scripts": {
|
|
36
|
-
"build
|
|
37
|
-
"build:cjs": "rollup -c rollup.config.mjs",
|
|
38
|
-
"build": "bun run build:esm && bun run build:cjs"
|
|
42
|
+
"build": "tsc && rollup -c rollup.config.mjs"
|
|
39
43
|
},
|
|
40
44
|
"repository": {
|
|
41
45
|
"type": "git",
|
|
@@ -55,15 +59,27 @@
|
|
|
55
59
|
"license": "MIT",
|
|
56
60
|
"devDependencies": {
|
|
57
61
|
"@types/better-sqlite3": "^9.6.0",
|
|
58
|
-
"@types/bun": "^1.4.0"
|
|
62
|
+
"@types/bun": "^1.4.0",
|
|
63
|
+
"@typescript/typescript6": "^6.0.2"
|
|
59
64
|
},
|
|
60
65
|
"peerDependencies": {
|
|
61
66
|
"typescript": "^7.0.2"
|
|
62
67
|
},
|
|
63
68
|
"dependencies": {
|
|
69
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
70
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
71
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
72
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
73
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
74
|
+
"@rollup/plugin-swc": "^0.4.1",
|
|
75
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
76
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
64
77
|
"better-sqlite3": "^13.0.3",
|
|
78
|
+
"glob": "^13.0.6",
|
|
65
79
|
"mongoose": "^9.9.4",
|
|
66
80
|
"rollup": "^4.63.1",
|
|
81
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
82
|
+
"rollup-plugin-dts": "^6.5.1",
|
|
67
83
|
"rollup-plugin-swc3": "^0.12.1"
|
|
68
84
|
}
|
|
69
85
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createClient.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongo.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/error.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/noxium.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noxium.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/schema.cjs
DELETED
package/dist/cjs/schema.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createClient.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/error.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/noxium.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noxium.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/schema.js
DELETED
package/dist/esm/schema.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|