cry-db-exec 1.0.47 → 1.0.48
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/doc.js +10 -4
- package/dist/doc.js.map +1 -1
- package/dist/execDb.d.ts +2 -1
- package/dist/execDb.js +19 -21
- package/dist/execDb.js.map +1 -1
- package/dist/ops.d.ts +25 -5
- package/dist/ops.js +69 -43
- package/dist/ops.js.map +1 -1
- package/package.json +2 -4
package/dist/doc.js
CHANGED
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.doc = void 0;
|
|
4
4
|
const ops_1 = require("./ops");
|
|
5
|
-
exports.doc =
|
|
6
|
-
.map(op =>
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
exports.doc = ops_1.opsForDoc
|
|
6
|
+
.map(op => {
|
|
7
|
+
if ("section" in op) {
|
|
8
|
+
return `\n${op.section.toUpperCase()}`;
|
|
9
|
+
}
|
|
10
|
+
const flags = [op.needDb ? "needsDb" : "", op.disallowed ? "DISALLOWED" : ""].filter(Boolean).join(", ");
|
|
11
|
+
return ` ${op.operation}(${op.params.split(",").map(p => p.trim()).filter(p => !!p).join(", ")})${flags ? ` [${flags}]` : ""}`;
|
|
12
|
+
})
|
|
13
|
+
.join("\n")
|
|
14
|
+
.trim();
|
|
9
15
|
//# sourceMappingURL=doc.js.map
|
package/dist/doc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc.js","sourceRoot":"","sources":["../src/doc.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"doc.js","sourceRoot":"","sources":["../src/doc.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAEpB,QAAA,GAAG,GAAG,eAAS;KACvB,GAAG,CAAC,EAAE,CAAC,EAAE;IACN,IAAI,SAAS,IAAI,EAAE,EAAE;QACjB,OAAO,KAAK,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAA;KACzC;IACD,MAAM,KAAK,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACxG,OAAO,KAAK,EAAE,CAAC,SAAS,IAAI,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;AACnI,CAAC,CAAC;KACD,IAAI,CAAC,IAAI,CAAC;KACV,IAAI,EAAE,CAAA"}
|
package/dist/execDb.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { Mongo } from "cry-db";
|
|
1
2
|
type ExecDbRequest = {
|
|
2
3
|
operation: string;
|
|
3
4
|
db?: string;
|
|
4
5
|
} & Record<string, unknown>;
|
|
5
|
-
export declare function execDb(req: ExecDbRequest, mongo:
|
|
6
|
+
export declare function execDb(req: ExecDbRequest, mongo: Mongo, verbose?: boolean): Promise<any>;
|
|
6
7
|
export {};
|
package/dist/execDb.js
CHANGED
|
@@ -8,38 +8,36 @@ async function execDb(req, mongo, verbose) {
|
|
|
8
8
|
throw new Error("execDb: specify req as Object");
|
|
9
9
|
if (!mongo)
|
|
10
10
|
throw new Error("execDb: pass mongo instance");
|
|
11
|
-
|
|
11
|
+
const operation = req.operation;
|
|
12
12
|
if (!operation)
|
|
13
13
|
throw new Error("execDb: specify operation");
|
|
14
|
-
|
|
14
|
+
const cmdParams = ops_1.opsObj[operation];
|
|
15
15
|
if (!cmdParams)
|
|
16
|
-
throw new Error(`execDb: operation ${operation} not supported`);
|
|
17
|
-
if (
|
|
18
|
-
throw new Error(`execDb:
|
|
19
|
-
if (typeof (mongo[operation]) !== "function")
|
|
20
|
-
throw new Error(`execDb: passed-in mongo instance ${operation} is ${typeof mongo[operation]} instead of function`);
|
|
16
|
+
throw new Error(`execDb: operation '${operation}' not supported`);
|
|
17
|
+
if (cmdParams.disallowed)
|
|
18
|
+
throw new Error(`execDb: operation '${operation}' is disallowed for security reasons. Use the mongo instance directly if you need this operation.`);
|
|
21
19
|
if (cmdParams.needDb) {
|
|
22
|
-
if (!mongo.setDb)
|
|
23
|
-
throw new Error(`execDb: passed-in mongo instance does not provide setDb`);
|
|
24
|
-
if ((typeof mongo.setDb) !== "function")
|
|
25
|
-
throw new Error(`execDb: passed-in mongo instance setDb is not a function`);
|
|
26
20
|
if (!req.db)
|
|
27
|
-
throw new Error(
|
|
21
|
+
throw new Error(`execDb: operation '${operation}' requires 'db'`);
|
|
28
22
|
if (verbose)
|
|
29
23
|
console.log(`execDb: setting db to ${req.db}`);
|
|
30
24
|
mongo.setDb(req.db);
|
|
31
25
|
}
|
|
32
|
-
// build parameter list
|
|
33
|
-
|
|
34
|
-
for (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
// check required params and build parameter list
|
|
27
|
+
const params = [];
|
|
28
|
+
for (const p of cmdParams.params) {
|
|
29
|
+
const value = req[p];
|
|
30
|
+
if (value === undefined && cmdParams.requiredParams.includes(p)) {
|
|
31
|
+
throw new Error(`execDb: operation '${operation}' requires '${p}'`);
|
|
32
|
+
}
|
|
33
|
+
params.push(value);
|
|
34
|
+
}
|
|
35
|
+
const f = mongo[operation];
|
|
38
36
|
if (verbose)
|
|
39
|
-
console.log(`execDb: call ${operation} with
|
|
40
|
-
|
|
37
|
+
console.log(`execDb: call ${operation} with`, params);
|
|
38
|
+
const ret = await f.call(mongo, ...params);
|
|
41
39
|
if (verbose)
|
|
42
|
-
console.log(`execDb: result
|
|
40
|
+
console.log(`execDb: result =`, ret);
|
|
43
41
|
return ret;
|
|
44
42
|
}
|
|
45
43
|
exports.execDb = execDb;
|
package/dist/execDb.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execDb.js","sourceRoot":"","sources":["../src/execDb.ts"],"names":[],"mappings":";;;AAAA,WAAW;AACX,+BAA8B;
|
|
1
|
+
{"version":3,"file":"execDb.js","sourceRoot":"","sources":["../src/execDb.ts"],"names":[],"mappings":";;;AAAA,WAAW;AACX,+BAA8B;AAKvB,KAAK,UAAU,MAAM,CAAC,GAAkB,EAAE,KAAY,EAAE,OAAiB;IAC5E,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;IAC1D,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAE1D,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAA;IAC/B,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;IAE5D,MAAM,SAAS,GAAG,YAAM,CAAC,SAAS,CAAC,CAAA;IACnC,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,iBAAiB,CAAC,CAAA;IACjF,IAAI,SAAS,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,mGAAmG,CAAC,CAAA;IAE7K,IAAI,SAAS,CAAC,MAAM,EAAE;QAClB,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,iBAAiB,CAAC,CAAA;QAC9E,IAAI,OAAO;YAAE,OAAO,CAAC,GAAG,CAAC,yBAAyB,GAAG,CAAC,EAAE,EAAE,CAAC,CAAA;QAC3D,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;KACtB;IAED,iDAAiD;IACjD,MAAM,MAAM,GAAU,EAAE,CAAA;IACxB,KAAK,MAAM,CAAC,IAAI,SAAS,CAAC,MAAM,EAAE;QAC9B,MAAM,KAAK,GAAI,GAAW,CAAC,CAAC,CAAC,CAAA;QAC7B,IAAI,KAAK,KAAK,SAAS,IAAI,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;YAC7D,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,eAAe,CAAC,GAAG,CAAC,CAAA;SACtE;QACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KACrB;IAED,MAAM,CAAC,GAAI,KAAa,CAAC,SAAS,CAAC,CAAA;IACnC,IAAI,OAAO;QAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,SAAS,OAAO,EAAE,MAAM,CAAC,CAAA;IAElE,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,CAAA;IAC1C,IAAI,OAAO;QAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAA;IAEjD,OAAO,GAAG,CAAA;AACd,CAAC;AAlCD,wBAkCC"}
|
package/dist/ops.d.ts
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Mongo } from "cry-db";
|
|
2
|
+
type MongoMethods = {
|
|
3
|
+
[K in keyof Mongo]: Mongo[K] extends (...args: any[]) => any ? K : never;
|
|
4
|
+
}[keyof Mongo];
|
|
5
|
+
type ValidOperation = MongoMethods & string;
|
|
6
|
+
type OpDef = {
|
|
7
|
+
section: string;
|
|
8
|
+
} | {
|
|
9
|
+
operation: ValidOperation;
|
|
10
|
+
params: string;
|
|
11
|
+
needDb?: boolean;
|
|
12
|
+
disallowed?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type OpConfig = {
|
|
2
15
|
operation: string;
|
|
3
16
|
params: string[];
|
|
17
|
+
requiredParams: string[];
|
|
4
18
|
needDb: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
disallowed: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const opsArr: {
|
|
22
|
+
operation: ValidOperation;
|
|
8
23
|
params: string[];
|
|
24
|
+
requiredParams: string[];
|
|
9
25
|
needDb: boolean;
|
|
10
|
-
|
|
26
|
+
disallowed: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
export declare const opsForDoc: OpDef[];
|
|
29
|
+
export declare const opsObj: Record<string, OpConfig>;
|
|
30
|
+
export {};
|
package/dist/ops.js
CHANGED
|
@@ -1,56 +1,82 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.opsObj = exports.opsArr = void 0;
|
|
3
|
+
exports.opsObj = exports.opsForDoc = exports.opsArr = void 0;
|
|
4
4
|
const ops = [
|
|
5
|
-
{
|
|
6
|
-
{ operation: "
|
|
7
|
-
{ operation: "
|
|
5
|
+
{ section: "Connection & Status" },
|
|
6
|
+
{ operation: "ping", params: "" },
|
|
7
|
+
{ operation: "isConnected", params: "" },
|
|
8
|
+
{ operation: "isOnReplicaSet", params: "" },
|
|
9
|
+
{ operation: "close", params: "force?", disallowed: true },
|
|
10
|
+
{ section: "Database Info" },
|
|
11
|
+
{ operation: "getDatabases", params: "" },
|
|
12
|
+
{ operation: "getDatabaseInfos", params: "" },
|
|
13
|
+
{ operation: "getDb", params: "" },
|
|
14
|
+
{ operation: "getCollections", params: "", needDb: true },
|
|
15
|
+
{ section: "Read Operations" },
|
|
16
|
+
{ operation: "find", params: "collection, query?, opts?", needDb: true },
|
|
17
|
+
{ operation: "findOne", params: "collection, query, projection?, opts?", needDb: true },
|
|
18
|
+
{ operation: "findAll", params: "collection, query?, opts?", needDb: true },
|
|
19
|
+
{ operation: "findById", params: "collection, id, projection?, opts?", needDb: true },
|
|
20
|
+
{ operation: "findByIds", params: "collection, ids, projection?, opts?", needDb: true },
|
|
21
|
+
{ operation: "findNewer", params: "collection, timestamp, query?, opts?", needDb: true },
|
|
22
|
+
{ operation: "findNewerMany", params: "spec?", needDb: true },
|
|
23
|
+
{ operation: "count", params: "collection, query?, opts?", needDb: true },
|
|
8
24
|
{ operation: "distinct", params: "collection, field", needDb: true },
|
|
9
|
-
{ operation: "
|
|
10
|
-
{ operation: "
|
|
11
|
-
{ operation: "
|
|
12
|
-
{ operation: "
|
|
13
|
-
{
|
|
25
|
+
{ operation: "aggregate", params: "collection, pipeline, opts?", needDb: true },
|
|
26
|
+
{ operation: "collectFieldValues", params: "collection, field, inArray?, opts?", needDb: true },
|
|
27
|
+
{ operation: "isUnique", params: "collection, field, value, id?", needDb: true },
|
|
28
|
+
{ operation: "testHash", params: "collection, query, field, unhashedValue", needDb: true },
|
|
29
|
+
{ section: "Write Operations" },
|
|
30
|
+
{ operation: "insert", params: "collection, insert", needDb: true },
|
|
31
|
+
{ operation: "insertMany", params: "collection, insert", needDb: true },
|
|
32
|
+
{ operation: "save", params: "collection, update, id?, options?", needDb: true },
|
|
33
|
+
{ operation: "update", params: "collection, query, update", needDb: true },
|
|
34
|
+
{ operation: "updateOne", params: "collection, query, update, options?", needDb: true },
|
|
35
|
+
{ operation: "upsert", params: "collection, query, update, options?", needDb: true },
|
|
36
|
+
{ operation: "upsertBatch", params: "collection, batch", needDb: true },
|
|
37
|
+
{ section: "Delete Operations" },
|
|
14
38
|
{ operation: "delete", params: "collection, query", needDb: true },
|
|
15
39
|
{ operation: "deleteOne", params: "collection, query", needDb: true },
|
|
16
|
-
{ operation: "dropCollection", params: "collection", needDb: true },
|
|
17
|
-
{ operation: "dropCollections", params: "collections", needDb: true },
|
|
18
|
-
{ operation: "find", params: "collection, query, opts", needDb: true },
|
|
19
|
-
{ operation: "findAfter", params: "collection, csq, query, opts", needDb: true },
|
|
20
|
-
{ operation: "findAfterMany", params: "spec", needDb: true },
|
|
21
|
-
{ operation: "findAll", params: "collection, query, opts", needDb: true },
|
|
22
|
-
{ operation: "findById", params: "collection, id, project", needDb: true },
|
|
23
|
-
{ operation: "findNewer", params: "collection, timestamp, query, opts", needDb: true },
|
|
24
|
-
{ operation: "findNewerMany", params: "spec", needDb: true },
|
|
25
|
-
{ operation: "findNewerFromDate", params: "collection, date, query, opts", needDb: true },
|
|
26
|
-
{ operation: "findOne", params: "collection, query, project", needDb: true },
|
|
27
|
-
{ operation: "getDatabaseInfos", params: "", },
|
|
28
|
-
{ operation: "getDatabases", params: "", },
|
|
29
40
|
{ operation: "hardDelete", params: "collection, query", needDb: true },
|
|
30
41
|
{ operation: "hardDeleteOne", params: "collection, query", needDb: true },
|
|
31
|
-
{ operation: "
|
|
32
|
-
{ operation: "insertMany", params: "collection, insert", needDb: true },
|
|
33
|
-
{ operation: "isOnReplicaSet", params: "", },
|
|
34
|
-
{ operation: "isUnique", params: "collection, field, value, id", needDb: true },
|
|
35
|
-
{ operation: "newId", params: "", },
|
|
36
|
-
{ operation: "ping", params: "", },
|
|
37
|
-
{ operation: "resetCollectionSync", params: "collection", needDb: true },
|
|
38
|
-
{ operation: "save", params: "collection, update, id", needDb: true },
|
|
39
|
-
{ operation: "testHash", params: "collection, query, field, unhashedValue", needDb: true },
|
|
42
|
+
{ operation: "blockOne", params: "collection, query", needDb: true },
|
|
40
43
|
{ operation: "unblockOne", params: "collection, query", needDb: true },
|
|
41
|
-
{
|
|
42
|
-
{ operation: "
|
|
43
|
-
{ operation: "
|
|
44
|
-
{ operation: "
|
|
44
|
+
{ section: "Collection Management" },
|
|
45
|
+
{ operation: "createCollection", params: "collection", needDb: true, disallowed: true },
|
|
46
|
+
{ operation: "createCollections", params: "collections", needDb: true, disallowed: true },
|
|
47
|
+
{ operation: "dropCollection", params: "collection", needDb: true, disallowed: true },
|
|
48
|
+
{ operation: "dropCollections", params: "collections", needDb: true, disallowed: true },
|
|
49
|
+
{ section: "Index Management" },
|
|
50
|
+
{ operation: "indexes", params: "collection", needDb: true, disallowed: true },
|
|
51
|
+
{ operation: "createIndex", params: "collection, name, spec, opts?", needDb: true, disallowed: true },
|
|
52
|
+
{ operation: "dropIndex", params: "collection, name, opts?", needDb: true, disallowed: true },
|
|
53
|
+
{ section: "Sync & Timestamps" },
|
|
54
|
+
{ operation: "latestTimestamp", params: "collection", needDb: true },
|
|
55
|
+
{ operation: "latestTimestamps", params: "collections", needDb: true },
|
|
56
|
+
{ operation: "resetCollectionSync", params: "collection", needDb: true },
|
|
57
|
+
{ section: "Audit Log" },
|
|
58
|
+
{ operation: "dbLogGet", params: "collection, id", needDb: true },
|
|
59
|
+
{ operation: "dbLogPurge", params: "collection, id?", needDb: true },
|
|
60
|
+
{ section: "Utilities" },
|
|
61
|
+
{ operation: "newId", params: "" },
|
|
62
|
+
{ section: "Backup/Restore" },
|
|
63
|
+
{ operation: "backupDb", params: "onlyCollections?, excludeCollections?", needDb: true, disallowed: true },
|
|
64
|
+
{ operation: "restoreDb", params: "backupSet", needDb: true, disallowed: true },
|
|
45
65
|
];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
function isOperation(op) {
|
|
67
|
+
return "operation" in op;
|
|
68
|
+
}
|
|
69
|
+
exports.opsArr = ops.filter(isOperation).map(op => {
|
|
70
|
+
const paramList = op.params.split(",").map(p => p.trim()).filter(p => !!p);
|
|
71
|
+
return {
|
|
72
|
+
operation: op.operation,
|
|
73
|
+
params: paramList.map(p => p.replace(/\?$/, "")),
|
|
74
|
+
requiredParams: paramList.filter(p => !p.endsWith("?")).map(p => p.replace(/\?$/, "")),
|
|
75
|
+
needDb: !!op.needDb,
|
|
76
|
+
disallowed: !!op.disallowed
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
exports.opsForDoc = ops;
|
|
54
80
|
exports.opsObj = exports.opsArr.reduce((prev, curr) => {
|
|
55
81
|
prev[curr.operation] = curr;
|
|
56
82
|
return prev;
|
package/dist/ops.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops.js","sourceRoot":"","sources":["../src/ops.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ops.js","sourceRoot":"","sources":["../src/ops.ts"],"names":[],"mappings":";;;AAmBA,MAAM,GAAG,GAAY;IACjB,EAAE,OAAO,EAAE,qBAAqB,EAAE;IAClC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;IACjC,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE;IACxC,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3C,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IAE1D,EAAE,OAAO,EAAE,eAAe,EAAE;IAC5B,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE;IACzC,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,EAAE,EAAE,EAAE;IAC7C,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IAClC,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;IAEzD,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC9B,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,2BAA2B,EAAE,MAAM,EAAE,IAAI,EAAE;IACxE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,uCAAuC,EAAE,MAAM,EAAE,IAAI,EAAE;IACvF,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,2BAA2B,EAAE,MAAM,EAAE,IAAI,EAAE;IAC3E,EAAE,SAAS,EAAE,UA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jC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cry-db-exec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "execute db command passed-in as json",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,10 +20,8 @@
|
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"chai": "^6.2.1",
|
|
23
|
+
"cry-db": "^2.4.11",
|
|
23
24
|
"mocha": "^11.7.5",
|
|
24
25
|
"typescript": "^5.9.3"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"cry-db": "^2.3.1"
|
|
28
26
|
}
|
|
29
27
|
}
|