@euler-edu/nest 7.0.1-beta0 → 7.0.1-beta2

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.
@@ -0,0 +1,2 @@
1
+ export { serviceUptimeSchema } from './serviceUptime';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/hq-status/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serviceUptimeSchema = void 0;
4
+ var serviceUptime_1 = require("./serviceUptime");
5
+ Object.defineProperty(exports, "serviceUptimeSchema", { enumerable: true, get: function () { return serviceUptime_1.serviceUptimeSchema; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/connection/mongo/hq-status/index.ts"],"names":[],"mappings":";;;AAAA,iDAAsD;AAA7C,oHAAA,mBAAmB,OAAA"}
@@ -0,0 +1,39 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const serviceUptimeSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
3
+ service_name: string;
4
+ is_health: boolean;
5
+ health_check_interval: number;
6
+ created_at: NativeDate;
7
+ response_time?: number | null | undefined;
8
+ }, import("mongoose").Document<unknown, {}, {
9
+ service_name: string;
10
+ is_health: boolean;
11
+ health_check_interval: number;
12
+ created_at: NativeDate;
13
+ response_time?: number | null | undefined;
14
+ }, {
15
+ id: string;
16
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
17
+ service_name: string;
18
+ is_health: boolean;
19
+ health_check_interval: number;
20
+ created_at: NativeDate;
21
+ response_time?: number | null | undefined;
22
+ } & {
23
+ _id: import("mongoose").Types.ObjectId;
24
+ } & {
25
+ __v: number;
26
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
27
+ id: string;
28
+ }>, unknown, {
29
+ service_name: string;
30
+ is_health: boolean;
31
+ health_check_interval: number;
32
+ created_at: NativeDate;
33
+ response_time?: number | null | undefined;
34
+ } & {
35
+ _id: import("mongoose").Types.ObjectId;
36
+ } & {
37
+ __v: number;
38
+ }>;
39
+ //# sourceMappingURL=serviceUptime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceUptime.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/hq-status/serviceUptime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serviceUptimeSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.serviceUptimeSchema = new mongoose_1.Schema({
6
+ service_name: { type: String, required: true },
7
+ is_health: { type: Boolean, required: true },
8
+ health_check_interval: { type: Number, required: true },
9
+ response_time: { type: Number, required: false },
10
+ created_at: { type: Date, required: true },
11
+ });
12
+ //# sourceMappingURL=serviceUptime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceUptime.js","sourceRoot":"","sources":["../../../../src/connection/mongo/hq-status/serviceUptime.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAErB,QAAA,mBAAmB,GAAG,IAAI,iBAAM,CAAC;IAC5C,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC9C,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvD,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IAChD,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC3C,CAAC,CAAC"}
@@ -2,4 +2,6 @@ export declare class MongoOjMainModule {
2
2
  }
3
3
  export declare class MongoOjSQModule {
4
4
  }
5
+ export declare class MongoHqStatusModule {
6
+ }
5
7
  //# sourceMappingURL=mongo.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongo.module.d.ts","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.module.ts"],"names":[],"mappings":"AAIA,qBAIa,iBAAiB;CAAG;AAEjC,qBAIa,eAAe;CAAG"}
1
+ {"version":3,"file":"mongo.module.d.ts","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.module.ts"],"names":[],"mappings":"AAQA,qBAIa,iBAAiB;CAAG;AAEjC,qBAIa,eAAe;CAAG;AAE/B,qBAIa,mBAAmB;CAAG"}
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.MongoOjSQModule = exports.MongoOjMainModule = void 0;
9
+ exports.MongoHqStatusModule = exports.MongoOjSQModule = exports.MongoOjMainModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const mongo_service_1 = require("./mongo.service");
12
12
  let MongoOjMainModule = class MongoOjMainModule {
@@ -27,4 +27,13 @@ exports.MongoOjSQModule = MongoOjSQModule = __decorate([
27
27
  exports: [mongo_service_1.MongoOjSQService],
28
28
  })
29
29
  ], MongoOjSQModule);
30
+ let MongoHqStatusModule = class MongoHqStatusModule {
31
+ };
32
+ exports.MongoHqStatusModule = MongoHqStatusModule;
33
+ exports.MongoHqStatusModule = MongoHqStatusModule = __decorate([
34
+ (0, common_1.Module)({
35
+ providers: [mongo_service_1.MongoHqStatusService],
36
+ exports: [mongo_service_1.MongoHqStatusService],
37
+ })
38
+ ], MongoHqStatusModule);
30
39
  //# sourceMappingURL=mongo.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongo.module.js","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,mDAAuE;AAMhE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAJ7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,kCAAkB,CAAC;QAC/B,OAAO,EAAE,CAAC,kCAAkB,CAAC;KAC9B,CAAC;GACW,iBAAiB,CAAG;AAM1B,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAJ3B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAgB,CAAC;QAC7B,OAAO,EAAE,CAAC,gCAAgB,CAAC;KAC5B,CAAC;GACW,eAAe,CAAG"}
1
+ {"version":3,"file":"mongo.module.js","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,mDAIyB;AAMlB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAJ7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,kCAAkB,CAAC;QAC/B,OAAO,EAAE,CAAC,kCAAkB,CAAC;KAC9B,CAAC;GACW,iBAAiB,CAAG;AAM1B,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAJ3B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAgB,CAAC;QAC7B,OAAO,EAAE,CAAC,gCAAgB,CAAC;KAC5B,CAAC;GACW,eAAe,CAAG;AAMxB,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAJ/B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,oCAAoB,CAAC;QACjC,OAAO,EAAE,CAAC,oCAAoB,CAAC;KAChC,CAAC;GACW,mBAAmB,CAAG"}
@@ -18,4 +18,10 @@ export declare class MongoOjSQService {
18
18
  scoringServerModel: mongoose.Model<any>;
19
19
  constructor();
20
20
  }
21
+ export declare class MongoHqStatusService {
22
+ private readonly logger;
23
+ private connection;
24
+ serviceUptimeModel: mongoose.Model<any>;
25
+ constructor();
26
+ }
21
27
  //# sourceMappingURL=mongo.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongo.service.d.ts","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.service.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,qBACa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuC;IAC9D,OAAO,CAAC,UAAU,CAAsB;IAGjC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,iBAAiB,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACvC,kBAAkB,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;CAyBvC;AAED,qBACa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAC5D,OAAO,CAAC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
@@ -11,12 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
- var MongoOjMainService_1, MongoOjSQService_1;
14
+ var MongoOjMainService_1, MongoOjSQService_1, MongoHqStatusService_1;
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MongoOjSQService = exports.MongoOjMainService = void 0;
16
+ exports.MongoHqStatusService = exports.MongoOjSQService = exports.MongoOjMainService = void 0;
17
17
  const common_1 = require("@nestjs/common");
18
18
  const mongoose_1 = __importDefault(require("mongoose"));
19
19
  const constants_1 = __importDefault(require("@euler-edu/utils/constants"));
20
+ const hq_status_1 = require("./hq-status");
20
21
  const oj_main_1 = require("./oj-main");
21
22
  const oj_sq_1 = require("./oj-sq");
22
23
  let MongoOjMainService = MongoOjMainService_1 = class MongoOjMainService {
@@ -54,4 +55,18 @@ exports.MongoOjSQService = MongoOjSQService = MongoOjSQService_1 = __decorate([
54
55
  (0, common_1.Injectable)(),
55
56
  __metadata("design:paramtypes", [])
56
57
  ], MongoOjSQService);
58
+ let MongoHqStatusService = MongoHqStatusService_1 = class MongoHqStatusService {
59
+ constructor() {
60
+ this.logger = new common_1.Logger(MongoHqStatusService_1.name);
61
+ this.connection = mongoose_1.default.createConnection(constants_1.default.url.mongo.hqStatusUrl);
62
+ this.connection.on('connected', () => this.logger.log('Mongo-status-DB is connected'));
63
+ this.connection.on('disconnected', () => this.logger.log('Mongo-status-DB is dis-connected'));
64
+ this.serviceUptimeModel = this.connection.model('server_uptimes', hq_status_1.serviceUptimeSchema);
65
+ }
66
+ };
67
+ exports.MongoHqStatusService = MongoHqStatusService;
68
+ exports.MongoHqStatusService = MongoHqStatusService = MongoHqStatusService_1 = __decorate([
69
+ (0, common_1.Injectable)(),
70
+ __metadata("design:paramtypes", [])
71
+ ], MongoHqStatusService);
57
72
  //# sourceMappingURL=mongo.service.js.map
@@ -1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,CACnC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAChD,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,CACtC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CACpD,CAAC;QAEF,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAC7C,gBAAgB,EAChB,+BAAmB,CACpB,CAAC;IACJ,CAAC;CACF,CAAA;AAvBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;;GACA,oBAAoB,CAuBhC"}
@@ -1,16 +1,16 @@
1
1
  import { Schema } from 'mongoose';
2
2
  export declare const recordSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
3
- login_id: string;
4
3
  type: "trophy" | "problem-pioneer" | "contest-winner";
5
4
  created_at: NativeDate;
5
+ login_id: string;
6
6
  trophy_type?: string | null | undefined;
7
7
  problem_id?: string | null | undefined;
8
8
  contest_id?: import("mongoose").Types.ObjectId | null | undefined;
9
9
  past_contest_id?: string | null | undefined;
10
10
  }, import("mongoose").Document<unknown, {}, {
11
- login_id: string;
12
11
  type: "trophy" | "problem-pioneer" | "contest-winner";
13
12
  created_at: NativeDate;
13
+ login_id: string;
14
14
  trophy_type?: string | null | undefined;
15
15
  problem_id?: string | null | undefined;
16
16
  contest_id?: import("mongoose").Types.ObjectId | null | undefined;
@@ -18,9 +18,9 @@ export declare const recordSchema: Schema<any, import("mongoose").Model<any, any
18
18
  }, {
19
19
  id: string;
20
20
  }, import("mongoose").DefaultSchemaOptions> & Omit<{
21
- login_id: string;
22
21
  type: "trophy" | "problem-pioneer" | "contest-winner";
23
22
  created_at: NativeDate;
23
+ login_id: string;
24
24
  trophy_type?: string | null | undefined;
25
25
  problem_id?: string | null | undefined;
26
26
  contest_id?: import("mongoose").Types.ObjectId | null | undefined;
@@ -32,9 +32,9 @@ export declare const recordSchema: Schema<any, import("mongoose").Model<any, any
32
32
  }, "id"> & import("mongoose").HydratedDocumentOverrides<{
33
33
  id: string;
34
34
  }>, unknown, {
35
- login_id: string;
36
35
  type: "trophy" | "problem-pioneer" | "contest-winner";
37
36
  created_at: NativeDate;
37
+ login_id: string;
38
38
  trophy_type?: string | null | undefined;
39
39
  problem_id?: string | null | undefined;
40
40
  contest_id?: import("mongoose").Types.ObjectId | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { Schema } from 'mongoose';
2
2
  export declare const sourceconsoleSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
3
- login_id: string;
4
3
  created_at: NativeDate;
4
+ login_id: string;
5
5
  source: string;
6
6
  compile: string;
7
7
  problem_id: string;
@@ -13,8 +13,8 @@ export declare const sourceconsoleSchema: Schema<any, import("mongoose").Model<a
13
13
  output?: string | null | undefined;
14
14
  socket_id?: string | null | undefined;
15
15
  }, import("mongoose").Document<unknown, {}, {
16
- login_id: string;
17
16
  created_at: NativeDate;
17
+ login_id: string;
18
18
  source: string;
19
19
  compile: string;
20
20
  problem_id: string;
@@ -28,8 +28,8 @@ export declare const sourceconsoleSchema: Schema<any, import("mongoose").Model<a
28
28
  }, {
29
29
  id: string;
30
30
  }, import("mongoose").DefaultSchemaOptions> & Omit<{
31
- login_id: string;
32
31
  created_at: NativeDate;
32
+ login_id: string;
33
33
  source: string;
34
34
  compile: string;
35
35
  problem_id: string;
@@ -47,8 +47,8 @@ export declare const sourceconsoleSchema: Schema<any, import("mongoose").Model<a
47
47
  }, "id"> & import("mongoose").HydratedDocumentOverrides<{
48
48
  id: string;
49
49
  }>, unknown, {
50
- login_id: string;
51
50
  created_at: NativeDate;
51
+ login_id: string;
52
52
  source: string;
53
53
  compile: string;
54
54
  problem_id: string;
@@ -1,8 +1,8 @@
1
1
  import { Schema } from 'mongoose';
2
2
  export declare const sourcesubmitSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
3
3
  id: number;
4
- login_id: string;
5
4
  created_at: NativeDate;
5
+ login_id: string;
6
6
  source: string;
7
7
  compile: string;
8
8
  updated_at: NativeDate;
@@ -42,8 +42,8 @@ export declare const sourcesubmitSchema: Schema<any, import("mongoose").Model<an
42
42
  derived_source_length?: number | null | undefined;
43
43
  }, import("mongoose").Document<unknown, {}, {
44
44
  id: number;
45
- login_id: string;
46
45
  created_at: NativeDate;
46
+ login_id: string;
47
47
  source: string;
48
48
  compile: string;
49
49
  updated_at: NativeDate;
@@ -83,8 +83,8 @@ export declare const sourcesubmitSchema: Schema<any, import("mongoose").Model<an
83
83
  derived_source_length?: number | null | undefined;
84
84
  }, {}, import("mongoose").DefaultSchemaOptions> & {
85
85
  id: number;
86
- login_id: string;
87
86
  created_at: NativeDate;
87
+ login_id: string;
88
88
  source: string;
89
89
  compile: string;
90
90
  updated_at: NativeDate;
@@ -128,8 +128,8 @@ export declare const sourcesubmitSchema: Schema<any, import("mongoose").Model<an
128
128
  __v: number;
129
129
  }, unknown, {
130
130
  id: number;
131
- login_id: string;
132
131
  created_at: NativeDate;
132
+ login_id: string;
133
133
  source: string;
134
134
  compile: string;
135
135
  updated_at: NativeDate;
@@ -1,11 +1,11 @@
1
1
  import { Schema } from 'mongoose';
2
2
  export declare const userSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
3
- login_id: string;
4
3
  name: string;
4
+ created_at: NativeDate;
5
+ login_id: string;
5
6
  login_pw: string;
6
7
  salt: string;
7
8
  access_at: NativeDate;
8
- created_at: NativeDate;
9
9
  feeling: string;
10
10
  auth_email: boolean;
11
11
  auth_naver: string;
@@ -29,12 +29,12 @@ export declare const userSchema: Schema<any, import("mongoose").Model<any, any,
29
29
  editor_config?: any;
30
30
  env_config?: any;
31
31
  }, import("mongoose").Document<unknown, {}, {
32
- login_id: string;
33
32
  name: string;
33
+ created_at: NativeDate;
34
+ login_id: string;
34
35
  login_pw: string;
35
36
  salt: string;
36
37
  access_at: NativeDate;
37
- created_at: NativeDate;
38
38
  feeling: string;
39
39
  auth_email: boolean;
40
40
  auth_naver: string;
@@ -60,12 +60,12 @@ export declare const userSchema: Schema<any, import("mongoose").Model<any, any,
60
60
  }, {
61
61
  id: string;
62
62
  }, import("mongoose").DefaultSchemaOptions> & Omit<{
63
- login_id: string;
64
63
  name: string;
64
+ created_at: NativeDate;
65
+ login_id: string;
65
66
  login_pw: string;
66
67
  salt: string;
67
68
  access_at: NativeDate;
68
- created_at: NativeDate;
69
69
  feeling: string;
70
70
  auth_email: boolean;
71
71
  auth_naver: string;
@@ -95,12 +95,12 @@ export declare const userSchema: Schema<any, import("mongoose").Model<any, any,
95
95
  }, "id"> & import("mongoose").HydratedDocumentOverrides<{
96
96
  id: string;
97
97
  }>, unknown, {
98
- login_id: string;
99
98
  name: string;
99
+ created_at: NativeDate;
100
+ login_id: string;
100
101
  login_pw: string;
101
102
  salt: string;
102
103
  access_at: NativeDate;
103
- created_at: NativeDate;
104
104
  feeling: string;
105
105
  auth_email: boolean;
106
106
  auth_naver: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@euler-edu/nest",
3
- "version": "7.0.1-beta0",
3
+ "version": "7.0.1-beta2",
4
4
  "description": "Euler-edu Shared NestJS Modules/Utils",
5
5
  "license": "ISC",
6
6
  "author": "Geon Kim",
@@ -46,9 +46,9 @@
46
46
  "request-ip": "^2.2.0",
47
47
  "sharp": "^0.34.5",
48
48
  "sqs-consumer": "^15.0.4",
49
- "@euler-edu/constant": "7.0.1-beta0",
50
- "@euler-edu/schema": "7.0.1-beta0",
51
- "@euler-edu/utils": "7.0.1-beta0"
49
+ "@euler-edu/constant": "7.0.1-beta2",
50
+ "@euler-edu/schema": "7.0.1-beta2",
51
+ "@euler-edu/utils": "7.0.1-beta2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/express": "^5.0.6",
@@ -57,7 +57,6 @@
57
57
  "@types/request-ip": "^0.0.41"
58
58
  },
59
59
  "scripts": {
60
- "preinstall": "npx only-allow pnpm",
61
60
  "clean": "rimraf lib",
62
61
  "build": "tsc && tsc-alias",
63
62
  "format": "prettier --write src"