@guren/core 0.2.0-alpha.6 → 1.0.0-rc.9
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/bin.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -1
- package/dist/lambda.d.ts +1 -0
- package/dist/lambda.js +17 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.js +6 -0
- package/package.json +17 -4
package/dist/bin.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from '@guren/server';
|
|
2
|
-
export
|
|
2
|
+
export { AccessorDefinitions, AccessorFn, BelongsToManyRecord, BelongsToManyRelationResult, BelongsToRecord, BelongsToRelationResult, CastType, DrizzleAdapter, FindManyOptions, GlobalScopeRegistry, GroupCondition, HasManyRecord, HasManyRelationResult, HasManyThroughRecord, HasManyThroughRelationResult, HasOneRecord, HasOneRelationResult, HookCallback, HookName, InferModelInsert, InferModelRecord, Model, ModelHooks, ModelNotFoundException, ModelObserver, ModelObserverConstructor, MorphManyRecord, MorphManyRelationResult, MorphToRecord, MorphToRelationResult, MutatorDefinitions, MutatorFn, MySqlDatabase, MySqlDatabaseOptions, ORMAdapter, ORMAdapterAdvanced, OrderByClause, OrderByInput, OrderDefinition, OrderDirection, PaginateOptions, PaginatedResult, PaginationMeta, PlainObject, PostgresDatabase, PostgresDatabaseOptions, QueryBuilder, QueryBuilderOptions, ScopeFunction, SeederContext, SeederHandler, SimpleCondition, SoftDeletes, SoftDeletesStatic, SqliteDatabase, SqliteDatabaseOptions, TransactionHandle, TransactionModelScope, WhereClause, WhereCondition, WhereOperator, WithRelations, applyAccessors, applyMutators, buildDrizzleConditions, createMySqlDatabase, createPostgresDatabase, createSqliteDatabase, defineModel, defineSeeder, executeHook, executeObservers, loadSeeders, runSeeders, serializeRecord, serializeRecords } from '@guren/orm';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
export * from "@guren/server";
|
|
3
|
-
|
|
3
|
+
import {
|
|
4
|
+
Model,
|
|
5
|
+
defineModel,
|
|
6
|
+
ModelNotFoundException,
|
|
7
|
+
QueryBuilder,
|
|
8
|
+
SoftDeletes,
|
|
9
|
+
DrizzleAdapter,
|
|
10
|
+
buildDrizzleConditions,
|
|
11
|
+
createPostgresDatabase,
|
|
12
|
+
createMySqlDatabase,
|
|
13
|
+
createSqliteDatabase,
|
|
14
|
+
runSeeders,
|
|
15
|
+
defineSeeder,
|
|
16
|
+
loadSeeders,
|
|
17
|
+
executeHook,
|
|
18
|
+
applyAccessors,
|
|
19
|
+
applyMutators,
|
|
20
|
+
serializeRecord,
|
|
21
|
+
serializeRecords,
|
|
22
|
+
executeObservers,
|
|
23
|
+
GlobalScopeRegistry
|
|
24
|
+
} from "@guren/orm";
|
|
25
|
+
export {
|
|
26
|
+
DrizzleAdapter,
|
|
27
|
+
GlobalScopeRegistry,
|
|
28
|
+
Model,
|
|
29
|
+
ModelNotFoundException,
|
|
30
|
+
QueryBuilder,
|
|
31
|
+
SoftDeletes,
|
|
32
|
+
applyAccessors,
|
|
33
|
+
applyMutators,
|
|
34
|
+
buildDrizzleConditions,
|
|
35
|
+
createMySqlDatabase,
|
|
36
|
+
createPostgresDatabase,
|
|
37
|
+
createSqliteDatabase,
|
|
38
|
+
defineModel,
|
|
39
|
+
defineSeeder,
|
|
40
|
+
executeHook,
|
|
41
|
+
executeObservers,
|
|
42
|
+
loadSeeders,
|
|
43
|
+
runSeeders,
|
|
44
|
+
serializeRecord,
|
|
45
|
+
serializeRecords
|
|
46
|
+
};
|
package/dist/lambda.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { APIGatewayProxyResult, LambdaEvent, createConsoleHandler, createLambdaHandler, createScheduleHandler, createSqsHandler, getLambdaContext, isLambda } from '@guren/server/lambda';
|
package/dist/lambda.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/lambda.ts
|
|
2
|
+
import {
|
|
3
|
+
createLambdaHandler,
|
|
4
|
+
createSqsHandler,
|
|
5
|
+
createScheduleHandler,
|
|
6
|
+
createConsoleHandler,
|
|
7
|
+
isLambda,
|
|
8
|
+
getLambdaContext
|
|
9
|
+
} from "@guren/server/lambda";
|
|
10
|
+
export {
|
|
11
|
+
createConsoleHandler,
|
|
12
|
+
createLambdaHandler,
|
|
13
|
+
createScheduleHandler,
|
|
14
|
+
createSqsHandler,
|
|
15
|
+
getLambdaContext,
|
|
16
|
+
isLambda
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@guren/server/runtime';
|
package/dist/runtime.js
ADDED
package/dist/vite.d.ts
ADDED
package/dist/vite.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guren/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,6 +24,18 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"default": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./runtime": {
|
|
29
|
+
"types": "./dist/runtime.d.ts",
|
|
30
|
+
"default": "./dist/runtime.js"
|
|
31
|
+
},
|
|
32
|
+
"./vite": {
|
|
33
|
+
"types": "./dist/vite.d.ts",
|
|
34
|
+
"default": "./dist/vite.js"
|
|
35
|
+
},
|
|
36
|
+
"./lambda": {
|
|
37
|
+
"types": "./dist/lambda.d.ts",
|
|
38
|
+
"default": "./dist/lambda.js"
|
|
27
39
|
}
|
|
28
40
|
},
|
|
29
41
|
"bin": {
|
|
@@ -32,12 +44,13 @@
|
|
|
32
44
|
"scripts": {
|
|
33
45
|
"build": "tsup",
|
|
34
46
|
"dev": "bun --watch src/index.ts",
|
|
47
|
+
"test": "bun test",
|
|
35
48
|
"typecheck": "tsc --noEmit"
|
|
36
49
|
},
|
|
37
50
|
"dependencies": {
|
|
38
|
-
"@guren/cli": "^0.
|
|
39
|
-
"@guren/orm": "^0.
|
|
40
|
-
"@guren/server": "^0.
|
|
51
|
+
"@guren/cli": "^1.0.0-rc.9",
|
|
52
|
+
"@guren/orm": "^1.0.0-rc.9",
|
|
53
|
+
"@guren/server": "^1.0.0-rc.9"
|
|
41
54
|
},
|
|
42
55
|
"devDependencies": {
|
|
43
56
|
"@types/node": "^20.14.10",
|