odm-client 0.0.17 → 0.0.19
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/cloudbase.cjs +1 -1
- package/dist/cloudbase.js +2 -1
- package/dist/generate.cjs +86 -85
- package/dist/generate.js +5669 -5663
- package/dist/mongodb.cjs +2 -2
- package/dist/mongodb.js +4 -3
- package/package.json +3 -2
- /package/dist/deps/{_commonjsHelpers-KaVRbhAgd4-n6ibh2onf.js → _commonjsHelpers-KaVRbhAgd4-8hjct1eo6.js} +0 -0
- /package/dist/deps/{_commonjsHelpers-KaVRbhAgd4-k7xu9f3be.js → _commonjsHelpers-KaVRbhAgd4-jbp28kuqy.js} +0 -0
- /package/dist/deps/{acorn-DYjaOAP8Gz-qiwhnpenq.js → acorn-DYjaOAP8Gz-ht6qkj8nv.js} +0 -0
- /package/dist/deps/{acorn-DYjaOAP8Gz-0l3eiitjk.js → acorn-DYjaOAP8Gz-kydug70xm.js} +0 -0
- /package/dist/deps/{angular-1bp1uAROl4-7l21w46cs.js → angular-1bp1uAROl4-wp75lfjp4.js} +0 -0
- /package/dist/deps/{angular-1bp1uAROl4-xi8mak4yk.js → angular-1bp1uAROl4-xlbt3h4v6.js} +0 -0
- /package/dist/deps/{babel-_P9jsDBVVy-v4ypuim9t.js → babel-_P9jsDBVVy-3dnpma8tk.js} +0 -0
- /package/dist/deps/{babel-_P9jsDBVVy-i7snanhj4.js → babel-_P9jsDBVVy-nbm2rddgv.js} +0 -0
- /package/dist/deps/{estree-Q-oFBmJEml-4vkbucmdi.js → estree-Q-oFBmJEml-kyqz4q0ht.js} +0 -0
- /package/dist/deps/{estree-Q-oFBmJEml-906aaz9hr.js → estree-Q-oFBmJEml-n06xk30kb.js} +0 -0
- /package/dist/deps/{flow-j77MFvzLrn-ego53bkq8.js → flow-j77MFvzLrn-9c8mugzn0.js} +0 -0
- /package/dist/deps/{flow-j77MFvzLrn-z9uvt0xam.js → flow-j77MFvzLrn-uy1of227b.js} +0 -0
- /package/dist/deps/{glimmer-ewQPb5nTUl-zq6jsxdvg.js → glimmer-ewQPb5nTUl-25u4biopi.js} +0 -0
- /package/dist/deps/{glimmer-ewQPb5nTUl-yf2zjnmny.js → glimmer-ewQPb5nTUl-h3aghxqtb.js} +0 -0
- /package/dist/deps/{graphql-8EXR1_taGG-c8wbixo5f.js → graphql-8EXR1_taGG-4a8yd9cgh.js} +0 -0
- /package/dist/deps/{graphql-8EXR1_taGG-fgbb1yizz.js → graphql-8EXR1_taGG-ru73dtjln.js} +0 -0
- /package/dist/deps/{html-dGbiW_CFWL-4zlivfsh2.js → html-dGbiW_CFWL-8r8dr9eis.js} +0 -0
- /package/dist/deps/{html-dGbiW_CFWL-kir66ndee.js → html-dGbiW_CFWL-xzp6sjgp0.js} +0 -0
- /package/dist/deps/{markdown-vAYIRClyWZ-orec5aiwm.js → markdown-vAYIRClyWZ-ct8ljsccx.js} +0 -0
- /package/dist/deps/{markdown-vAYIRClyWZ-iwh0lu9pv.js → markdown-vAYIRClyWZ-eruxsvdv5.js} +0 -0
- /package/dist/deps/{meriyah-d5_qqf88x--jarb5mxpb.js → meriyah-d5_qqf88x--a10ucex7m.js} +0 -0
- /package/dist/deps/{meriyah-d5_qqf88x--s2lz6m6tn.js → meriyah-d5_qqf88x--qi5rgs1j8.js} +0 -0
- /package/dist/deps/{postcss-Vz5bDQ3hJO-bt2jfhksq.js → postcss-Vz5bDQ3hJO-hq6bwzrxx.js} +0 -0
- /package/dist/deps/{postcss-Vz5bDQ3hJO-7w3qaz1hk.js → postcss-Vz5bDQ3hJO-owmm1lan3.js} +0 -0
- /package/dist/deps/{query-builder-h6B2D2BCoQ-fdhmp9vaj.js → query-builder-h6B2D2BCoQ-723eilloj.js} +0 -0
- /package/dist/deps/{query-builder-h6B2D2BCoQ-92aesjjj2.js → query-builder-h6B2D2BCoQ-gfp9xmwcr.js} +0 -0
- /package/dist/deps/{typescript-2hCq12HCbJ-8xhrv2djr.js → typescript-2hCq12HCbJ-k4iro9t37.js} +0 -0
- /package/dist/deps/{typescript-2hCq12HCbJ-ssg42eo1c.js → typescript-2hCq12HCbJ-xj6aorkzp.js} +0 -0
- /package/dist/deps/{yaml-I5o0CrcX7J-dp5rovmi5.js → yaml-I5o0CrcX7J-5zejigl14.js} +0 -0
- /package/dist/deps/{yaml-I5o0CrcX7J-6cj7ocyif.js → yaml-I5o0CrcX7J-iy9j2hs0x.js} +0 -0
package/dist/mongodb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $l = Object.defineProperty;
|
|
2
2
|
var e2 = (e, t, r) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var se = (e, t, r) => e2(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { Q as ir, i as t2, a as r2, b as Ru } from "./deps/query-builder-h6B2D2BCoQ-
|
|
4
|
+
import { Q as ir, i as t2, a as r2, b as Ru } from "./deps/query-builder-h6B2D2BCoQ-723eilloj.js";
|
|
5
5
|
import gn from "timers";
|
|
6
6
|
import Fc from "crypto";
|
|
7
7
|
import D1 from "fs";
|
|
@@ -13,7 +13,7 @@ import o2 from "util";
|
|
|
13
13
|
import Rc from "timers/promises";
|
|
14
14
|
import T1 from "dns";
|
|
15
15
|
import Nc from "os";
|
|
16
|
-
import { g as pr, c as jt } from "./deps/_commonjsHelpers-KaVRbhAgd4-
|
|
16
|
+
import { g as pr, c as jt } from "./deps/_commonjsHelpers-KaVRbhAgd4-8hjct1eo6.js";
|
|
17
17
|
import s2 from "url";
|
|
18
18
|
import Ic from "zlib";
|
|
19
19
|
import B1 from "net";
|
|
@@ -71064,7 +71064,7 @@ class $4 {
|
|
|
71064
71064
|
}
|
|
71065
71065
|
// 将所有操作符之外的数据转换为$set
|
|
71066
71066
|
transformUpdateData(t) {
|
|
71067
|
-
const r = ["$set", "$inc", "$mul", "$
|
|
71067
|
+
const r = ["$set", "$inc", "$mul", "$unset", "$push", "$pop", "$pull", "$pullAll", "$addToSet"];
|
|
71068
71068
|
return Object.entries(t ?? []).reduce(
|
|
71069
71069
|
(n, [i, o]) => (i === "$set" || (r.includes(i) ? n[i] = o : n.$set[i] = o), n),
|
|
71070
71070
|
{ $set: { ...(t == null ? void 0 : t.$set) ?? {} } }
|
|
@@ -71122,6 +71122,7 @@ function Hl(e, t, r, n) {
|
|
|
71122
71122
|
updateMany: (c) => i.update(u, c),
|
|
71123
71123
|
updateAndReturn: (c) => i.updateAndReturn(u, c),
|
|
71124
71124
|
delete: (c) => i.delete(u, c),
|
|
71125
|
+
deleteMany: (c) => i.delete(u, c),
|
|
71125
71126
|
count: (c) => i.count(u, c),
|
|
71126
71127
|
aggregate: (c) => i.aggregate(u, c)
|
|
71127
71128
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odm-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"build": "vite build --ssr",
|
|
33
33
|
"publish-module": "npm run build && npm publish --registry=https://registry.npmjs.com",
|
|
34
34
|
"npm:adduser": "npm adduser --registry=https://registry.npmjs.com",
|
|
35
|
-
"init:mongodb": "vite-node generated/odm/mongodb-init.ts"
|
|
35
|
+
"init:mongodb": "vite-node generated/odm/mongodb-init.ts",
|
|
36
|
+
"only-publish": "npm publish --registry=https://registry.npmjs.com"
|
|
36
37
|
},
|
|
37
38
|
"publishConfig": {
|
|
38
39
|
"access": "public",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/deps/{query-builder-h6B2D2BCoQ-fdhmp9vaj.js → query-builder-h6B2D2BCoQ-723eilloj.js}
RENAMED
|
File without changes
|
/package/dist/deps/{query-builder-h6B2D2BCoQ-92aesjjj2.js → query-builder-h6B2D2BCoQ-gfp9xmwcr.js}
RENAMED
|
File without changes
|
/package/dist/deps/{typescript-2hCq12HCbJ-8xhrv2djr.js → typescript-2hCq12HCbJ-k4iro9t37.js}
RENAMED
|
File without changes
|
/package/dist/deps/{typescript-2hCq12HCbJ-ssg42eo1c.js → typescript-2hCq12HCbJ-xj6aorkzp.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|