@spfn/core 0.1.0-alpha.44 → 0.1.0-alpha.45
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/{bind-zSx7Joxv.d.ts → bind-CSzshBtm.d.ts} +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/codegen/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/route/index.d.ts +5 -5
- package/dist/route/index.js.map +1 -1
- package/dist/server/index.js +24 -24
- package/dist/server/index.js.map +1 -1
- package/dist/{types-C0u_SdUv.d.ts → types-Bd8YsFSU.d.ts} +1 -1
- package/package.json +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../auto-loader-JZT4AGYX.js';
|
|
2
|
-
import { R as RouteContract, I as InferContract } from '../types-
|
|
2
|
+
import { R as RouteContract, I as InferContract } from '../types-Bd8YsFSU.js';
|
|
3
3
|
import 'hono';
|
|
4
4
|
import 'hono/utils/http-status';
|
|
5
5
|
import '@sinclair/typebox';
|
package/dist/codegen/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AppFactory, ServerConfig, createServer, startServer } from './server/index.js';
|
|
2
2
|
export { A as AutoRouteLoader, R as RouteInfo, a as RouteStats, l as loadRoutes } from './auto-loader-JZT4AGYX.js';
|
|
3
|
-
export { b as bind } from './bind-
|
|
4
|
-
export { d as HttpMethod, I as InferContract, c as RouteContext, R as RouteContract, a as RouteHandler, i as isHttpMethod } from './types-
|
|
3
|
+
export { b as bind } from './bind-CSzshBtm.js';
|
|
4
|
+
export { d as HttpMethod, I as InferContract, c as RouteContext, R as RouteContract, a as RouteHandler, i as isHttpMethod } from './types-Bd8YsFSU.js';
|
|
5
5
|
import { k as DatabaseError } from './repository-BJkP1qyi.js';
|
|
6
6
|
export { C as ConnectionError, m as DeadlockError, D as DrizzleConfigOptions, n as DuplicateEntryError, N as NotFoundError, Q as QueryError, R as Repository, c as TransactionContext, l as TransactionError, T as Transactional, h as TransactionalOptions, V as ValidationError, d as detectDialect, f as foreignKey, j as fromPostgresError, a as generateDrizzleConfigFile, g as getDrizzleConfig, b as getTransaction, i as id, o as optionalForeignKey, r as runWithTransaction, t as timestamps } from './repository-BJkP1qyi.js';
|
|
7
7
|
import { Redis, Cluster } from 'ioredis';
|
package/dist/index.js
CHANGED
|
@@ -928,6 +928,32 @@ var init_database_errors = __esm({
|
|
|
928
928
|
}
|
|
929
929
|
});
|
|
930
930
|
|
|
931
|
+
// src/errors/http-errors.ts
|
|
932
|
+
var init_http_errors = __esm({
|
|
933
|
+
"src/errors/http-errors.ts"() {
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
|
|
937
|
+
// src/errors/error-utils.ts
|
|
938
|
+
function isDatabaseError(error) {
|
|
939
|
+
return error instanceof DatabaseError;
|
|
940
|
+
}
|
|
941
|
+
var init_error_utils = __esm({
|
|
942
|
+
"src/errors/error-utils.ts"() {
|
|
943
|
+
init_database_errors();
|
|
944
|
+
init_http_errors();
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
|
|
948
|
+
// src/errors/index.ts
|
|
949
|
+
var init_errors = __esm({
|
|
950
|
+
"src/errors/index.ts"() {
|
|
951
|
+
init_database_errors();
|
|
952
|
+
init_http_errors();
|
|
953
|
+
init_error_utils();
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
|
|
931
957
|
// src/env/config.ts
|
|
932
958
|
var ENV_FILE_PRIORITY, TEST_ONLY_FILES;
|
|
933
959
|
var init_config2 = __esm({
|
|
@@ -1146,32 +1172,6 @@ var init_env = __esm({
|
|
|
1146
1172
|
}
|
|
1147
1173
|
});
|
|
1148
1174
|
|
|
1149
|
-
// src/errors/http-errors.ts
|
|
1150
|
-
var init_http_errors = __esm({
|
|
1151
|
-
"src/errors/http-errors.ts"() {
|
|
1152
|
-
}
|
|
1153
|
-
});
|
|
1154
|
-
|
|
1155
|
-
// src/errors/error-utils.ts
|
|
1156
|
-
function isDatabaseError(error) {
|
|
1157
|
-
return error instanceof DatabaseError;
|
|
1158
|
-
}
|
|
1159
|
-
var init_error_utils = __esm({
|
|
1160
|
-
"src/errors/error-utils.ts"() {
|
|
1161
|
-
init_database_errors();
|
|
1162
|
-
init_http_errors();
|
|
1163
|
-
}
|
|
1164
|
-
});
|
|
1165
|
-
|
|
1166
|
-
// src/errors/index.ts
|
|
1167
|
-
var init_errors = __esm({
|
|
1168
|
-
"src/errors/index.ts"() {
|
|
1169
|
-
init_database_errors();
|
|
1170
|
-
init_http_errors();
|
|
1171
|
-
init_error_utils();
|
|
1172
|
-
}
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
1175
|
// src/db/postgres-errors.ts
|
|
1176
1176
|
function parseUniqueViolation(message) {
|
|
1177
1177
|
const patterns = [
|
|
@@ -2587,7 +2587,7 @@ async function loadRoutes(app, options) {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
|
|
2589
2589
|
// src/route/bind.ts
|
|
2590
|
-
|
|
2590
|
+
init_errors();
|
|
2591
2591
|
function bind(contract, handler) {
|
|
2592
2592
|
return async (rawContext) => {
|
|
2593
2593
|
const params = rawContext.req.param();
|