@jayfong/x-server 2.2.7 → 2.2.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.
|
@@ -39,7 +39,7 @@ function makeBaseModel<TModelName extends ModelName>(name: TModelName) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// @index('../.prisma/client/index.d.ts', /(?<=const ModelName:).+?(?=\})/s, /(\S+?):/g, (m, _) => `export const ${
|
|
42
|
+
// @index('../.prisma/client/index.d.ts', /(?<=const ModelName:).+?(?=\})/s, /(\S+?):/g, (m, _) => `export const ${m[1]}BaseModel = makeBaseModel('${_.camel(m[1])}')`)
|
|
43
43
|
// @endindex
|
|
44
44
|
|
|
45
45
|
export * from '@prisma/client'
|
package/lib/_cjs/services/log.js
CHANGED
|
@@ -18,7 +18,7 @@ class LogService {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
message = message.replace(/[\r\n]+/g, ' ');
|
|
21
|
-
console
|
|
21
|
+
console.log(`[${(0, _date.formatDate)(new Date(), 'yyyy-mm-dd hh:ii:ss')}] ${level.toUpperCase()} - ${message}`);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
error(message, ...[data]) {
|
|
@@ -39,7 +39,7 @@ function makeBaseModel<TModelName extends ModelName>(name: TModelName) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// @index('../.prisma/client/index.d.ts', /(?<=const ModelName:).+?(?=\})/s, /(\S+?):/g, (m, _) => `export const ${
|
|
42
|
+
// @index('../.prisma/client/index.d.ts', /(?<=const ModelName:).+?(?=\})/s, /(\S+?):/g, (m, _) => `export const ${m[1]}BaseModel = makeBaseModel('${_.camel(m[1])}')`)
|
|
43
43
|
// @endindex
|
|
44
44
|
|
|
45
45
|
export * from '@prisma/client'
|
package/lib/services/log.js
CHANGED
|
@@ -12,7 +12,7 @@ export class LogService {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
message = message.replace(/[\r\n]+/g, ' ');
|
|
15
|
-
console
|
|
15
|
+
console.log(`[${formatDate(new Date(), 'yyyy-mm-dd hh:ii:ss')}] ${level.toUpperCase()} - ${message}`);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
error(message, ...[data]) {
|