@danielhritcu/zenstack-orm 3.5.4

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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +34 -0
  3. package/dist/dialects/mysql.cjs +31 -0
  4. package/dist/dialects/mysql.cjs.map +1 -0
  5. package/dist/dialects/mysql.d.cts +1 -0
  6. package/dist/dialects/mysql.d.ts +1 -0
  7. package/dist/dialects/mysql.js +6 -0
  8. package/dist/dialects/mysql.js.map +1 -0
  9. package/dist/dialects/postgres.cjs +31 -0
  10. package/dist/dialects/postgres.cjs.map +1 -0
  11. package/dist/dialects/postgres.d.cts +1 -0
  12. package/dist/dialects/postgres.d.ts +1 -0
  13. package/dist/dialects/postgres.js +6 -0
  14. package/dist/dialects/postgres.js.map +1 -0
  15. package/dist/dialects/sql.js.cjs +108 -0
  16. package/dist/dialects/sql.js.cjs.map +1 -0
  17. package/dist/dialects/sql.js.d.cts +32 -0
  18. package/dist/dialects/sql.js.d.ts +32 -0
  19. package/dist/dialects/sql.js.js +83 -0
  20. package/dist/dialects/sql.js.js.map +1 -0
  21. package/dist/dialects/sqlite.cjs +31 -0
  22. package/dist/dialects/sqlite.cjs.map +1 -0
  23. package/dist/dialects/sqlite.d.cts +1 -0
  24. package/dist/dialects/sqlite.d.ts +1 -0
  25. package/dist/dialects/sqlite.js +6 -0
  26. package/dist/dialects/sqlite.js.map +1 -0
  27. package/dist/helpers.cjs +31 -0
  28. package/dist/helpers.cjs.map +1 -0
  29. package/dist/helpers.d.cts +1 -0
  30. package/dist/helpers.d.ts +1 -0
  31. package/dist/helpers.js +6 -0
  32. package/dist/helpers.js.map +1 -0
  33. package/dist/index.cjs +10630 -0
  34. package/dist/index.cjs.map +1 -0
  35. package/dist/index.d.cts +3377 -0
  36. package/dist/index.d.ts +3377 -0
  37. package/dist/index.js +10580 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/schema.cjs +25 -0
  40. package/dist/schema.cjs.map +1 -0
  41. package/dist/schema.d.cts +2 -0
  42. package/dist/schema.d.ts +2 -0
  43. package/dist/schema.js +3 -0
  44. package/dist/schema.js.map +1 -0
  45. package/package.json +156 -0
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/schema.ts
18
+ var schema_exports = {};
19
+ module.exports = __toCommonJS(schema_exports);
20
+ __reExport(schema_exports, require("@zenstackhq/schema"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("@zenstackhq/schema")
24
+ });
25
+ //# sourceMappingURL=schema.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema.ts"],"sourcesContent":["export * from '@zenstackhq/schema';\nexport type { OperandExpression } from 'kysely';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;2BAAc,+BAAd;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@zenstackhq/schema';
2
+ export { OperandExpression } from 'kysely';
@@ -0,0 +1,2 @@
1
+ export * from '@zenstackhq/schema';
2
+ export { OperandExpression } from 'kysely';
package/dist/schema.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/schema.ts
2
+ export * from "@zenstackhq/schema";
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema.ts"],"sourcesContent":["export * from '@zenstackhq/schema';\nexport type { OperandExpression } from 'kysely';\n"],"mappings":";AAAA,cAAc;","names":[]}
package/package.json ADDED
@@ -0,0 +1,156 @@
1
+ {
2
+ "name": "@danielhritcu/zenstack-orm",
3
+ "displayName": "ZenStack ORM",
4
+ "description": "ZenStack ORM",
5
+ "version": "3.5.4",
6
+ "type": "module",
7
+ "author": {
8
+ "name": "ZenStack Team",
9
+ "email": "contact@zenstack.dev"
10
+ },
11
+ "homepage": "https://zenstack.dev",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/zenstackhq/zenstack"
15
+ },
16
+ "license": "MIT",
17
+ "keywords": [],
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "import": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/index.d.cts",
32
+ "default": "./dist/index.cjs"
33
+ }
34
+ },
35
+ "./schema": {
36
+ "import": {
37
+ "types": "./dist/schema.d.ts",
38
+ "default": "./dist/schema.js"
39
+ },
40
+ "require": {
41
+ "types": "./dist/schema.d.cts",
42
+ "default": "./dist/schema.cjs"
43
+ }
44
+ },
45
+ "./dialects/sqlite": {
46
+ "import": {
47
+ "types": "./dist/dialects/sqlite.d.ts",
48
+ "default": "./dist/dialects/sqlite.js"
49
+ },
50
+ "require": {
51
+ "types": "./dist/dialects/sqlite.d.cts",
52
+ "default": "./dist/dialects/sqlite.cjs"
53
+ }
54
+ },
55
+ "./dialects/postgres": {
56
+ "import": {
57
+ "types": "./dist/dialects/postgres.d.ts",
58
+ "default": "./dist/dialects/postgres.js"
59
+ },
60
+ "require": {
61
+ "types": "./dist/dialects/postgres.d.cts",
62
+ "default": "./dist/dialects/postgres.cjs"
63
+ }
64
+ },
65
+ "./dialects/mysql": {
66
+ "import": {
67
+ "types": "./dist/dialects/mysql.d.ts",
68
+ "default": "./dist/dialects/mysql.js"
69
+ },
70
+ "require": {
71
+ "types": "./dist/dialects/mysql.d.cts",
72
+ "default": "./dist/dialects/mysql.cjs"
73
+ }
74
+ },
75
+ "./dialects/sql.js": {
76
+ "import": {
77
+ "types": "./dist/dialects/sql.js.d.ts",
78
+ "default": "./dist/dialects/sql.js.js"
79
+ },
80
+ "require": {
81
+ "types": "./dist/dialects/sql.js.d.cts",
82
+ "default": "./dist/dialects/sql.js.cjs"
83
+ }
84
+ },
85
+ "./helpers": {
86
+ "import": {
87
+ "types": "./dist/helpers.d.ts",
88
+ "default": "./dist/helpers.js"
89
+ },
90
+ "require": {
91
+ "types": "./dist/helpers.d.cts",
92
+ "default": "./dist/helpers.cjs"
93
+ }
94
+ },
95
+ "./package.json": {
96
+ "import": "./package.json",
97
+ "require": "./package.json"
98
+ }
99
+ },
100
+ "dependencies": {
101
+ "@paralleldrive/cuid2": "^2.2.2",
102
+ "cuid": "^3.0.0",
103
+ "decimal.js": "^10.4.3",
104
+ "json-stable-stringify": "^1.3.0",
105
+ "kysely": "~0.28.8",
106
+ "nanoid": "^5.0.9",
107
+ "postgres-array": "^3.0.4",
108
+ "toposort": "^2.0.2",
109
+ "ts-pattern": "^5.7.1",
110
+ "ulid": "^3.0.0",
111
+ "uuid": "^11.0.5",
112
+ "zod-validation-error": "^4.0.1",
113
+ "@zenstackhq/common-helpers": "^3.5.3",
114
+ "@zenstackhq/schema": "^3.5.3",
115
+ "@zenstackhq/zod": "^3.5.3"
116
+ },
117
+ "peerDependencies": {
118
+ "better-sqlite3": "^12.5.0",
119
+ "pg": "^8.13.1",
120
+ "mysql2": "^3.16.1",
121
+ "sql.js": "^1.13.0",
122
+ "zod": "^4.0.0"
123
+ },
124
+ "peerDependenciesMeta": {
125
+ "better-sqlite3": {
126
+ "optional": true
127
+ },
128
+ "pg": {
129
+ "optional": true
130
+ },
131
+ "mysql2": {
132
+ "optional": true
133
+ },
134
+ "sql.js": {
135
+ "optional": true
136
+ }
137
+ },
138
+ "devDependencies": {
139
+ "@types/better-sqlite3": "^7.6.13",
140
+ "@types/pg": "^8.0.0",
141
+ "@types/sql.js": "^1.4.9",
142
+ "@types/toposort": "^2.0.7",
143
+ "tsx": "^4.19.2",
144
+ "zod": "^4.1.0",
145
+ "@zenstackhq/eslint-config": "3.5.4",
146
+ "@zenstackhq/typescript-config": "3.5.4",
147
+ "@zenstackhq/vitest-config": "3.5.4"
148
+ },
149
+ "funding": "https://github.com/sponsors/zenstackhq",
150
+ "scripts": {
151
+ "build": "tsc --noEmit && tsup-node",
152
+ "watch": "tsup-node --watch",
153
+ "lint": "eslint src --ext ts",
154
+ "pack": "pnpm pack"
155
+ }
156
+ }