drizzle-kit 0.23.1 → 0.23.2-5be2712
Sign up to get free protection for your applications and to get access to all the features.
- package/{readme.md → README.md} +1 -1
- package/{payload.d.mts → api.d.mts} +518 -518
- package/{payload.d.ts → api.d.ts} +518 -518
- package/{payload.js → api.js} +24530 -25190
- package/{payload.mjs → api.mjs} +24528 -25189
- package/bin.cjs +12252 -12775
- package/index.d.mts +14 -20
- package/index.d.ts +14 -20
- package/package.json +139 -115
- package/utils.js +20 -18
- package/utils.mjs +20 -26
package/index.d.mts
CHANGED
@@ -23,7 +23,6 @@ type Verify<T, U extends T> = U;
|
|
23
23
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
24
24
|
* adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
|
25
25
|
*
|
26
|
-
*
|
27
26
|
* **Config** usage:
|
28
27
|
*
|
29
28
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
@@ -108,16 +107,14 @@ type Verify<T, U extends T> = U;
|
|
108
107
|
* `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
|
109
108
|
* either to execute all statements needed to sync your schema with the database or not.
|
110
109
|
*
|
111
|
-
*
|
112
110
|
* See https://orm.drizzle.team/kit-docs/config-reference#strict
|
113
|
-
*
|
114
111
|
*/
|
115
112
|
type Config = {
|
116
113
|
dialect: Dialect;
|
117
114
|
out?: string;
|
118
115
|
breakpoints?: boolean;
|
119
116
|
tablesFilter?: string | string[];
|
120
|
-
extensionsFilters?:
|
117
|
+
extensionsFilters?: 'postgis'[];
|
121
118
|
schemaFilter?: string | string[];
|
122
119
|
schema?: string | string[];
|
123
120
|
verbose?: boolean;
|
@@ -128,42 +125,42 @@ type Config = {
|
|
128
125
|
prefix?: Prefix;
|
129
126
|
};
|
130
127
|
introspect?: {
|
131
|
-
casing:
|
128
|
+
casing: 'camel' | 'preserve';
|
132
129
|
};
|
133
130
|
} & ({
|
134
|
-
dialect: Verify<Dialect,
|
135
|
-
driver: Verify<Driver,
|
131
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
132
|
+
driver: Verify<Driver, 'turso'>;
|
136
133
|
dbCredentials: {
|
137
134
|
url: string;
|
138
135
|
authToken?: string;
|
139
136
|
};
|
140
137
|
} | {
|
141
|
-
dialect:
|
138
|
+
dialect: 'sqlite';
|
142
139
|
dbCredentials: {
|
143
140
|
url: string;
|
144
141
|
};
|
145
142
|
} | {
|
146
|
-
dialect: Verify<Dialect,
|
143
|
+
dialect: Verify<Dialect, 'postgresql'>;
|
147
144
|
dbCredentials: ({
|
148
145
|
host: string;
|
149
146
|
port?: number;
|
150
147
|
user?: string;
|
151
148
|
password?: string;
|
152
149
|
database: string;
|
153
|
-
ssl?: boolean |
|
150
|
+
ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
|
154
151
|
} & {}) | {
|
155
152
|
url: string;
|
156
153
|
};
|
157
154
|
} | {
|
158
|
-
dialect: Verify<Dialect,
|
159
|
-
driver: Verify<Driver,
|
155
|
+
dialect: Verify<Dialect, 'postgresql'>;
|
156
|
+
driver: Verify<Driver, 'aws-data-api'>;
|
160
157
|
dbCredentials: {
|
161
158
|
database: string;
|
162
159
|
secretArn: string;
|
163
160
|
resourceArn: string;
|
164
161
|
};
|
165
162
|
} | {
|
166
|
-
dialect: Verify<Dialect,
|
163
|
+
dialect: Verify<Dialect, 'mysql'>;
|
167
164
|
dbCredentials: {
|
168
165
|
host: string;
|
169
166
|
port?: number;
|
@@ -175,22 +172,21 @@ type Config = {
|
|
175
172
|
url: string;
|
176
173
|
};
|
177
174
|
} | {
|
178
|
-
dialect: Verify<Dialect,
|
179
|
-
driver: Verify<Driver,
|
175
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
176
|
+
driver: Verify<Driver, 'd1-http'>;
|
180
177
|
dbCredentials: {
|
181
178
|
accountId: string;
|
182
179
|
databaseId: string;
|
183
180
|
token: string;
|
184
181
|
};
|
185
182
|
} | {
|
186
|
-
dialect: Verify<Dialect,
|
187
|
-
driver: Verify<Driver,
|
183
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
184
|
+
driver: Verify<Driver, 'expo'>;
|
188
185
|
} | {});
|
189
186
|
/**
|
190
187
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
191
188
|
* adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
|
192
189
|
*
|
193
|
-
*
|
194
190
|
* **Config** usage:
|
195
191
|
*
|
196
192
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
@@ -275,9 +271,7 @@ type Config = {
|
|
275
271
|
* `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
|
276
272
|
* either to execute all statements needed to sync your schema with the database or not.
|
277
273
|
*
|
278
|
-
*
|
279
274
|
* See https://orm.drizzle.team/kit-docs/config-reference#strict
|
280
|
-
*
|
281
275
|
*/
|
282
276
|
declare function defineConfig(config: Config): Config;
|
283
277
|
|
package/index.d.ts
CHANGED
@@ -23,7 +23,6 @@ type Verify<T, U extends T> = U;
|
|
23
23
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
24
24
|
* adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
|
25
25
|
*
|
26
|
-
*
|
27
26
|
* **Config** usage:
|
28
27
|
*
|
29
28
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
@@ -108,16 +107,14 @@ type Verify<T, U extends T> = U;
|
|
108
107
|
* `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
|
109
108
|
* either to execute all statements needed to sync your schema with the database or not.
|
110
109
|
*
|
111
|
-
*
|
112
110
|
* See https://orm.drizzle.team/kit-docs/config-reference#strict
|
113
|
-
*
|
114
111
|
*/
|
115
112
|
type Config = {
|
116
113
|
dialect: Dialect;
|
117
114
|
out?: string;
|
118
115
|
breakpoints?: boolean;
|
119
116
|
tablesFilter?: string | string[];
|
120
|
-
extensionsFilters?:
|
117
|
+
extensionsFilters?: 'postgis'[];
|
121
118
|
schemaFilter?: string | string[];
|
122
119
|
schema?: string | string[];
|
123
120
|
verbose?: boolean;
|
@@ -128,42 +125,42 @@ type Config = {
|
|
128
125
|
prefix?: Prefix;
|
129
126
|
};
|
130
127
|
introspect?: {
|
131
|
-
casing:
|
128
|
+
casing: 'camel' | 'preserve';
|
132
129
|
};
|
133
130
|
} & ({
|
134
|
-
dialect: Verify<Dialect,
|
135
|
-
driver: Verify<Driver,
|
131
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
132
|
+
driver: Verify<Driver, 'turso'>;
|
136
133
|
dbCredentials: {
|
137
134
|
url: string;
|
138
135
|
authToken?: string;
|
139
136
|
};
|
140
137
|
} | {
|
141
|
-
dialect:
|
138
|
+
dialect: 'sqlite';
|
142
139
|
dbCredentials: {
|
143
140
|
url: string;
|
144
141
|
};
|
145
142
|
} | {
|
146
|
-
dialect: Verify<Dialect,
|
143
|
+
dialect: Verify<Dialect, 'postgresql'>;
|
147
144
|
dbCredentials: ({
|
148
145
|
host: string;
|
149
146
|
port?: number;
|
150
147
|
user?: string;
|
151
148
|
password?: string;
|
152
149
|
database: string;
|
153
|
-
ssl?: boolean |
|
150
|
+
ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
|
154
151
|
} & {}) | {
|
155
152
|
url: string;
|
156
153
|
};
|
157
154
|
} | {
|
158
|
-
dialect: Verify<Dialect,
|
159
|
-
driver: Verify<Driver,
|
155
|
+
dialect: Verify<Dialect, 'postgresql'>;
|
156
|
+
driver: Verify<Driver, 'aws-data-api'>;
|
160
157
|
dbCredentials: {
|
161
158
|
database: string;
|
162
159
|
secretArn: string;
|
163
160
|
resourceArn: string;
|
164
161
|
};
|
165
162
|
} | {
|
166
|
-
dialect: Verify<Dialect,
|
163
|
+
dialect: Verify<Dialect, 'mysql'>;
|
167
164
|
dbCredentials: {
|
168
165
|
host: string;
|
169
166
|
port?: number;
|
@@ -175,22 +172,21 @@ type Config = {
|
|
175
172
|
url: string;
|
176
173
|
};
|
177
174
|
} | {
|
178
|
-
dialect: Verify<Dialect,
|
179
|
-
driver: Verify<Driver,
|
175
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
176
|
+
driver: Verify<Driver, 'd1-http'>;
|
180
177
|
dbCredentials: {
|
181
178
|
accountId: string;
|
182
179
|
databaseId: string;
|
183
180
|
token: string;
|
184
181
|
};
|
185
182
|
} | {
|
186
|
-
dialect: Verify<Dialect,
|
187
|
-
driver: Verify<Driver,
|
183
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
184
|
+
driver: Verify<Driver, 'expo'>;
|
188
185
|
} | {});
|
189
186
|
/**
|
190
187
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
191
188
|
* adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
|
192
189
|
*
|
193
|
-
*
|
194
190
|
* **Config** usage:
|
195
191
|
*
|
196
192
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
@@ -275,9 +271,7 @@ type Config = {
|
|
275
271
|
* `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
|
276
272
|
* either to execute all statements needed to sync your schema with the database or not.
|
277
273
|
*
|
278
|
-
*
|
279
274
|
* See https://orm.drizzle.team/kit-docs/config-reference#strict
|
280
|
-
*
|
281
275
|
*/
|
282
276
|
declare function defineConfig(config: Config): Config;
|
283
277
|
|
package/package.json
CHANGED
@@ -1,117 +1,141 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
2
|
+
"name": "drizzle-kit",
|
3
|
+
"version": "0.23.2-5be2712",
|
4
|
+
"homepage": "https://orm.drizzle.team",
|
5
|
+
"keywords": [
|
6
|
+
"drizzle",
|
7
|
+
"orm",
|
8
|
+
"pg",
|
9
|
+
"mysql",
|
10
|
+
"postgresql",
|
11
|
+
"postgres",
|
12
|
+
"sqlite",
|
13
|
+
"database",
|
14
|
+
"sql",
|
15
|
+
"typescript",
|
16
|
+
"ts",
|
17
|
+
"drizzle-kit",
|
18
|
+
"migrations",
|
19
|
+
"schema"
|
20
|
+
],
|
21
|
+
"sideEffects": false,
|
22
|
+
"publishConfig": {
|
23
|
+
"provenance": true
|
24
|
+
},
|
25
|
+
"repository": {
|
26
|
+
"type": "git",
|
27
|
+
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
|
28
|
+
},
|
29
|
+
"author": "Drizzle Team",
|
30
|
+
"license": "MIT",
|
31
|
+
"bin": {
|
32
|
+
"drizzle-kit": "./bin.cjs"
|
33
|
+
},
|
34
|
+
"scripts": {
|
35
|
+
"api": "tsx ./dev/api.ts",
|
36
|
+
"migrate:old": "drizzle-kit generate:mysql",
|
37
|
+
"cli": "tsx ./src/cli/index.ts",
|
38
|
+
"test": "TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest",
|
39
|
+
"build": "rm -rf ./dist && tsx build.ts && cp package.json dist/ && attw --pack dist",
|
40
|
+
"build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
|
41
|
+
"pack": "cp package.json README.md dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
|
42
|
+
"tsc": "tsc -p tsconfig.build.json",
|
43
|
+
"publish": "npm publish package.tgz"
|
44
|
+
},
|
45
|
+
"dependencies": {
|
46
|
+
"@drizzle-team/brocli": "^0.8.2",
|
47
|
+
"@esbuild-kit/esm-loader": "^2.5.5",
|
48
|
+
"esbuild": "^0.19.7",
|
49
|
+
"esbuild-register": "^3.5.0"
|
50
|
+
},
|
51
|
+
"devDependencies": {
|
52
|
+
"@arethetypeswrong/cli": "^0.15.3",
|
53
|
+
"@aws-sdk/client-rds-data": "^3.556.0",
|
54
|
+
"@cloudflare/workers-types": "^4.20230518.0",
|
55
|
+
"@electric-sql/pglite": "^0.1.5",
|
56
|
+
"@hono/node-server": "^1.9.0",
|
57
|
+
"@hono/zod-validator": "^0.2.1",
|
58
|
+
"@libsql/client": "^0.4.2",
|
59
|
+
"@neondatabase/serverless": "^0.9.1",
|
60
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
61
|
+
"@planetscale/database": "^1.16.0",
|
62
|
+
"@types/better-sqlite3": "^7.6.4",
|
63
|
+
"@types/dockerode": "^3.3.28",
|
64
|
+
"@types/glob": "^8.1.0",
|
65
|
+
"@types/json-diff": "^1.0.3",
|
66
|
+
"@types/minimatch": "^5.1.2",
|
67
|
+
"@types/node": "^18.11.15",
|
68
|
+
"@types/pg": "^8.10.7",
|
69
|
+
"@types/pluralize": "^0.0.33",
|
70
|
+
"@types/semver": "^7.5.5",
|
71
|
+
"@types/uuid": "^9.0.8",
|
72
|
+
"@types/ws": "^8.5.10",
|
73
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
74
|
+
"@typescript-eslint/parser": "^7.2.0",
|
75
|
+
"@vercel/postgres": "^0.8.0",
|
76
|
+
"ava": "^5.1.0",
|
77
|
+
"better-sqlite3": "^9.4.3",
|
78
|
+
"camelcase": "^7.0.1",
|
79
|
+
"chalk": "^5.2.0",
|
80
|
+
"commander": "^12.1.0",
|
81
|
+
"dockerode": "^3.3.4",
|
82
|
+
"dotenv": "^16.0.3",
|
83
|
+
"drizzle-kit": "0.21.2",
|
84
|
+
"drizzle-orm": "0.32.1",
|
85
|
+
"env-paths": "^3.0.0",
|
86
|
+
"esbuild-node-externals": "^1.9.0",
|
87
|
+
"eslint": "^8.57.0",
|
88
|
+
"eslint-config-prettier": "^9.1.0",
|
89
|
+
"eslint-plugin-prettier": "^5.1.3",
|
90
|
+
"get-port": "^6.1.2",
|
91
|
+
"glob": "^8.1.0",
|
92
|
+
"hanji": "^0.0.5",
|
93
|
+
"hono": "^4.1.5",
|
94
|
+
"json-diff": "1.0.6",
|
95
|
+
"minimatch": "^7.4.3",
|
96
|
+
"mysql2": "2.3.3",
|
97
|
+
"node-fetch": "^3.3.2",
|
98
|
+
"pg": "^8.11.5",
|
99
|
+
"pluralize": "^8.0.0",
|
100
|
+
"postgres": "^3.4.4",
|
101
|
+
"prettier": "^2.8.1",
|
102
|
+
"semver": "^7.5.4",
|
103
|
+
"superjson": "^2.2.1",
|
104
|
+
"tsup": "^8.0.2",
|
105
|
+
"tsx": "^3.12.1",
|
106
|
+
"typescript": "^5.4.3",
|
107
|
+
"uuid": "^9.0.1",
|
108
|
+
"vite-tsconfig-paths": "^4.3.2",
|
109
|
+
"vitest": "^1.4.0",
|
110
|
+
"wrangler": "^3.22.1",
|
111
|
+
"ws": "^8.16.0",
|
112
|
+
"zod": "^3.20.2",
|
113
|
+
"zx": "^7.2.2"
|
114
|
+
},
|
115
|
+
"exports": {
|
116
|
+
".": {
|
117
|
+
"import": {
|
118
|
+
"types": "./index.d.mts",
|
119
|
+
"default": "./index.mjs"
|
120
|
+
},
|
121
|
+
"require": {
|
122
|
+
"types": "./index.d.ts",
|
123
|
+
"default": "./index.js"
|
124
|
+
},
|
125
|
+
"types": "./index.d.mts",
|
126
|
+
"default": "./index.mjs"
|
127
|
+
},
|
128
|
+
"./api": {
|
129
|
+
"import": {
|
130
|
+
"types": "./api.d.mts",
|
131
|
+
"default": "./api.mjs"
|
132
|
+
},
|
133
|
+
"require": {
|
134
|
+
"types": "./api.d.ts",
|
135
|
+
"default": "./api.js"
|
136
|
+
},
|
137
|
+
"types": "./api.d.mts",
|
138
|
+
"default": "./api.mjs"
|
139
|
+
}
|
140
|
+
}
|
117
141
|
}
|
package/utils.js
CHANGED
@@ -31,9 +31,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
31
31
|
));
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
33
33
|
|
34
|
-
// node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/readline.js
|
34
|
+
// ../node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/readline.js
|
35
35
|
var require_readline = __commonJS({
|
36
|
-
"node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/readline.js"(exports2) {
|
36
|
+
"../node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/readline.js"(exports2) {
|
37
37
|
"use strict";
|
38
38
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
39
39
|
exports2.prepareReadLine = void 0;
|
@@ -56,9 +56,9 @@ var require_readline = __commonJS({
|
|
56
56
|
}
|
57
57
|
});
|
58
58
|
|
59
|
-
// node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
59
|
+
// ../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
60
60
|
var require_src = __commonJS({
|
61
|
-
"node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module2) {
|
61
|
+
"../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module2) {
|
62
62
|
"use strict";
|
63
63
|
var ESC = "\x1B";
|
64
64
|
var CSI = `${ESC}[`;
|
@@ -117,9 +117,9 @@ var require_src = __commonJS({
|
|
117
117
|
}
|
118
118
|
});
|
119
119
|
|
120
|
-
// node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/utils.js
|
120
|
+
// ../node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/utils.js
|
121
121
|
var require_utils = __commonJS({
|
122
|
-
"node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/utils.js"(exports2) {
|
122
|
+
"../node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/utils.js"(exports2) {
|
123
123
|
"use strict";
|
124
124
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
125
125
|
exports2.clear = void 0;
|
@@ -147,9 +147,9 @@ var require_utils = __commonJS({
|
|
147
147
|
}
|
148
148
|
});
|
149
149
|
|
150
|
-
// node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js
|
150
|
+
// ../node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js
|
151
151
|
var require_lodash = __commonJS({
|
152
|
-
"node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js"(exports2, module2) {
|
152
|
+
"../node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js"(exports2, module2) {
|
153
153
|
var FUNC_ERROR_TEXT = "Expected a function";
|
154
154
|
var NAN = 0 / 0;
|
155
155
|
var symbolTag = "[object Symbol]";
|
@@ -295,9 +295,9 @@ var require_lodash = __commonJS({
|
|
295
295
|
}
|
296
296
|
});
|
297
297
|
|
298
|
-
// node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/index.js
|
298
|
+
// ../node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/index.js
|
299
299
|
var require_hanji = __commonJS({
|
300
|
-
"node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/index.js"(exports2) {
|
300
|
+
"../node_modules/.pnpm/hanji@0.0.5/node_modules/hanji/index.js"(exports2) {
|
301
301
|
"use strict";
|
302
302
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
303
303
|
function adopt(value) {
|
@@ -579,9 +579,8 @@ __export(utils_exports, {
|
|
579
579
|
validateWithReport: () => validateWithReport
|
580
580
|
});
|
581
581
|
module.exports = __toCommonJS(utils_exports);
|
582
|
-
var import_fs = require("fs");
|
583
582
|
|
584
|
-
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
583
|
+
// ../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
585
584
|
var ANSI_BACKGROUND_OFFSET = 10;
|
586
585
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
587
586
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
@@ -767,7 +766,7 @@ function assembleStyles() {
|
|
767
766
|
var ansiStyles = assembleStyles();
|
768
767
|
var ansi_styles_default = ansiStyles;
|
769
768
|
|
770
|
-
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
769
|
+
// ../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
771
770
|
var import_node_process = __toESM(require("node:process"), 1);
|
772
771
|
var import_node_os = __toESM(require("node:os"), 1);
|
773
772
|
var import_node_tty = __toESM(require("node:tty"), 1);
|
@@ -893,7 +892,7 @@ var supportsColor = {
|
|
893
892
|
};
|
894
893
|
var supports_color_default = supportsColor;
|
895
894
|
|
896
|
-
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
895
|
+
// ../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
897
896
|
function stringReplaceAll(string, substring, replacer) {
|
898
897
|
let index4 = string.indexOf(substring);
|
899
898
|
if (index4 === -1) {
|
@@ -923,7 +922,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index4) {
|
|
923
922
|
return returnValue;
|
924
923
|
}
|
925
924
|
|
926
|
-
// node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
925
|
+
// ../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
927
926
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
928
927
|
var GENERATOR = Symbol("GENERATOR");
|
929
928
|
var STYLER = Symbol("STYLER");
|
@@ -1070,6 +1069,11 @@ var chalk = createChalk();
|
|
1070
1069
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
1071
1070
|
var source_default = chalk;
|
1072
1071
|
|
1072
|
+
// src/utils.ts
|
1073
|
+
var import_fs = require("fs");
|
1074
|
+
var import_path = require("path");
|
1075
|
+
var import_url = require("url");
|
1076
|
+
|
1073
1077
|
// src/cli/views.ts
|
1074
1078
|
var import_hanji = __toESM(require_hanji());
|
1075
1079
|
var info = (msg, greyMsg = "") => {
|
@@ -1083,7 +1087,7 @@ function assertUnreachable(x) {
|
|
1083
1087
|
throw new Error("Didn't expect to get here");
|
1084
1088
|
}
|
1085
1089
|
|
1086
|
-
// node_modules/.pnpm/zod@3.23.
|
1090
|
+
// ../node_modules/.pnpm/zod@3.23.7/node_modules/zod/lib/index.mjs
|
1087
1091
|
var util;
|
1088
1092
|
(function(util2) {
|
1089
1093
|
util2.assertEqual = (val) => val;
|
@@ -5543,8 +5547,6 @@ var sqliteSchemaV5 = schemaV52;
|
|
5543
5547
|
var backwardCompatibleSqliteSchema = unionType([sqliteSchemaV5, schema2]);
|
5544
5548
|
|
5545
5549
|
// src/utils.ts
|
5546
|
-
var import_path = require("path");
|
5547
|
-
var import_url = require("url");
|
5548
5550
|
var copy = (it) => {
|
5549
5551
|
return JSON.parse(JSON.stringify(it));
|
5550
5552
|
};
|