easywork-common-lib 1.0.213 → 1.0.214

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/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -1,13 +1,13 @@
1
- {
2
- "autoBarrel.language.defaultLanguage": "TypeScript",
3
- "autoBarrel.files.disableRecursiveBarrelling": false,
4
- "autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
5
- "autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
6
- "autoBarrel.files.keepExtensionOnExport": false,
7
- "autoBarrel.files.detectExportsInFiles": false,
8
- "autoBarrel.files.exportDefaultFilename": "filename",
9
- "autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
10
- "autoBarrel.formatting.useSingleQuotes": true,
11
- "autoBarrel.formatting.endOfLine": "lf",
12
- "autoBarrel.formatting.insertFinalNewline": true,
1
+ {
2
+ "autoBarrel.language.defaultLanguage": "TypeScript",
3
+ "autoBarrel.files.disableRecursiveBarrelling": false,
4
+ "autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
5
+ "autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
6
+ "autoBarrel.files.keepExtensionOnExport": false,
7
+ "autoBarrel.files.detectExportsInFiles": false,
8
+ "autoBarrel.files.exportDefaultFilename": "filename",
9
+ "autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
10
+ "autoBarrel.formatting.useSingleQuotes": true,
11
+ "autoBarrel.formatting.endOfLine": "lf",
12
+ "autoBarrel.formatting.insertFinalNewline": true,
13
13
  }
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BaseEntityWithUser = exports.BaseEntitySimple = exports.BaseEntity = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
13
14
  const user_entity_1 = require("../../entities/user.entity");
14
15
  const typeorm_1 = require("typeorm");
15
16
  let BaseEntity = class BaseEntity extends typeorm_1.BaseEntity {
@@ -110,6 +111,7 @@ __decorate([
110
111
  __metadata("design:type", Date)
111
112
  ], BaseEntityWithUser.prototype, "deletedAt", void 0);
112
113
  __decorate([
114
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
113
115
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
114
116
  onDelete: "SET NULL",
115
117
  onUpdate: "CASCADE",
@@ -119,6 +121,7 @@ __decorate([
119
121
  __metadata("design:type", user_entity_1.User)
120
122
  ], BaseEntityWithUser.prototype, "createdBy", void 0);
121
123
  __decorate([
124
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
122
125
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
123
126
  onDelete: "SET NULL",
124
127
  onUpdate: "CASCADE",
@@ -1 +1 @@
1
- {"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../src/common/database/base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAAkD;AAClD,qCAUiB;AAGV,IAAe,UAAU,GAAzB,MAAe,UAAW,SAAQ,oBAAU;IAEjD,EAAE,CAAU;IAGZ,QAAQ,CAAW;IAGnB,SAAS,CAAW;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAlBqB,gCAAU;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACP;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;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AAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;qDAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;sDAAC;6BAnCE,kBAAkB;IADvC,IAAA,gBAAM,GAAE;GACa,kBAAkB,CAoCvC"}
@@ -0,0 +1,7 @@
1
+ import { BaseEntityWithUser } from "../../common";
2
+ import { Contact } from "./contact.entity";
3
+ export declare class ContactComment extends BaseEntityWithUser {
4
+ comment: string;
5
+ pinned: boolean;
6
+ contact: Contact;
7
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ContactComment = void 0;
13
+ const common_1 = require("../../common");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ const contact_entity_1 = require("./contact.entity");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ let ContactComment = class ContactComment extends common_1.BaseEntityWithUser {
19
+ comment;
20
+ pinned;
21
+ contact;
22
+ };
23
+ exports.ContactComment = ContactComment;
24
+ __decorate([
25
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
26
+ (0, class_validator_1.MinLength)(1),
27
+ (0, typeorm_1.Column)({ type: "text" }),
28
+ __metadata("design:type", String)
29
+ ], ContactComment.prototype, "comment", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
32
+ (0, typeorm_1.Column)({ default: false }),
33
+ __metadata("design:type", Boolean)
34
+ ], ContactComment.prototype, "pinned", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with the comment' }),
37
+ (0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, {
38
+ onDelete: "CASCADE",
39
+ onUpdate: "CASCADE",
40
+ }),
41
+ __metadata("design:type", contact_entity_1.Contact)
42
+ ], ContactComment.prototype, "contact", void 0);
43
+ exports.ContactComment = ContactComment = __decorate([
44
+ (0, typeorm_1.Entity)()
45
+ ], ContactComment);
46
+ //# sourceMappingURL=contact-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,qDAA4C;AAC5C,qCAAoD;AACpD,qDAA2C;AAC3C,6CAA8C;AAGvC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,2BAAkB;IAIlD,OAAO,CAAS;IAIhB,MAAM,CAAU;IAOhB,OAAO,CAAU;CACpB,CAAA;AAhBY,wCAAc;AAIvB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACX;AAOhB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAO,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACxF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACO,wBAAO;+CAAC;yBAfR,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAgB1B"}
@@ -0,0 +1,7 @@
1
+ import { BaseEntityWithUser } from "../../common";
2
+ import { Lead } from "./lead.entity";
3
+ export declare class LeadComment extends BaseEntityWithUser {
4
+ comment: string;
5
+ pinned: boolean;
6
+ lead: Lead;
7
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LeadComment = void 0;
13
+ const common_1 = require("../../common");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ const lead_entity_1 = require("./lead.entity");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ let LeadComment = class LeadComment extends common_1.BaseEntityWithUser {
19
+ comment;
20
+ pinned;
21
+ lead;
22
+ };
23
+ exports.LeadComment = LeadComment;
24
+ __decorate([
25
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
26
+ (0, class_validator_1.MinLength)(1),
27
+ (0, typeorm_1.Column)({ type: "text" }),
28
+ __metadata("design:type", String)
29
+ ], LeadComment.prototype, "comment", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
32
+ (0, typeorm_1.Column)({ default: false }),
33
+ __metadata("design:type", Boolean)
34
+ ], LeadComment.prototype, "pinned", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ type: () => lead_entity_1.Lead, description: 'Lead associated with the comment' }),
37
+ (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, {
38
+ onDelete: "CASCADE",
39
+ onUpdate: "CASCADE",
40
+ }),
41
+ __metadata("design:type", lead_entity_1.Lead)
42
+ ], LeadComment.prototype, "lead", void 0);
43
+ exports.LeadComment = LeadComment = __decorate([
44
+ (0, typeorm_1.Entity)()
45
+ ], LeadComment);
46
+ //# sourceMappingURL=lead-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lead-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,qDAA4C;AAC5C,qCAAoD;AACpD,+CAAqC;AACrC,6CAA8C;AAGvC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAkB;IAI/C,OAAO,CAAS;IAIhB,MAAM,CAAU;IAOhB,IAAI,CAAO;CACd,CAAA;AAhBY,kCAAW;AAIpB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACX;AAOhB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAfF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAgBvB"}
@@ -0,0 +1,7 @@
1
+ import { BaseEntityWithUser } from "../../common";
2
+ import { Poliza } from "./poliza.entity";
3
+ export declare class PolizaComment extends BaseEntityWithUser {
4
+ comment: string;
5
+ pinned: boolean;
6
+ poliza: Poliza;
7
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PolizaComment = void 0;
13
+ const common_1 = require("../../common");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ const poliza_entity_1 = require("./poliza.entity");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ let PolizaComment = class PolizaComment extends common_1.BaseEntityWithUser {
19
+ comment;
20
+ pinned;
21
+ poliza;
22
+ };
23
+ exports.PolizaComment = PolizaComment;
24
+ __decorate([
25
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
26
+ (0, class_validator_1.MinLength)(1),
27
+ (0, typeorm_1.Column)({ type: "text" }),
28
+ __metadata("design:type", String)
29
+ ], PolizaComment.prototype, "comment", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
32
+ (0, typeorm_1.Column)({ default: false }),
33
+ __metadata("design:type", Boolean)
34
+ ], PolizaComment.prototype, "pinned", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Poliza associated with the comment' }),
37
+ (0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
38
+ onDelete: "CASCADE",
39
+ onUpdate: "CASCADE",
40
+ }),
41
+ __metadata("design:type", poliza_entity_1.Poliza)
42
+ ], PolizaComment.prototype, "poliza", void 0);
43
+ exports.PolizaComment = PolizaComment = __decorate([
44
+ (0, typeorm_1.Entity)()
45
+ ], PolizaComment);
46
+ //# sourceMappingURL=poliza-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poliza-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,qDAA4C;AAC5C,qCAAoD;AACpD,mDAAyC;AACzC,6CAA8C;AAGvC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAkB;IAIjD,OAAO,CAAS;IAIhB,MAAM,CAAU;IAOhB,MAAM,CAAS;CAClB,CAAA;AAhBY,sCAAa;AAItB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACX;AAOhB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;IACtF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACM,sBAAM;6CAAC;wBAfN,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAgBzB"}
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "easywork-common-lib",
3
- "version": "1.0.213",
4
- "description": "Librería común de Easywork",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "build": "tsc",
8
- "bump": "./scripts/bump.sh"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
13
- },
14
- "keywords": [
15
- "nodejs"
16
- ],
17
- "author": "Rosmer Campos",
18
- "license": "MIT",
19
- "bugs": {
20
- "url": "https://github.com/criptopreto/easywork-common-lib/issues"
21
- },
22
- "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
23
- "dependencies": {
24
- "@nestjs/common": "^10.3.8",
25
- "@nestjs/swagger": "^7.4.0",
26
- "@nestjs/typeorm": "^10.0.2",
27
- "class-transformer": "^0.5.1",
28
- "class-validator": "^0.14.1",
29
- "rxjs": "^7.8.1",
30
- "typeorm": "^0.3.20"
31
- },
32
- "devDependencies": {
33
- "@rubiin/tsconfig": "^1.1.2",
34
- "@types/node": "^20.12.12",
35
- "ts-loader": "^9.5.1",
36
- "typescript": "^5.4.5"
37
- }
38
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.214",
4
+ "description": "Librería común de Easywork",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "bump": "./scripts/bump.sh"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
13
+ },
14
+ "keywords": [
15
+ "nodejs"
16
+ ],
17
+ "author": "Rosmer Campos",
18
+ "license": "MIT",
19
+ "bugs": {
20
+ "url": "https://github.com/criptopreto/easywork-common-lib/issues"
21
+ },
22
+ "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
23
+ "dependencies": {
24
+ "@nestjs/common": "^10.3.8",
25
+ "@nestjs/swagger": "^7.4.0",
26
+ "@nestjs/typeorm": "^10.0.2",
27
+ "class-transformer": "^0.5.1",
28
+ "class-validator": "^0.14.1",
29
+ "rxjs": "^7.8.1",
30
+ "typeorm": "^0.3.20"
31
+ },
32
+ "devDependencies": {
33
+ "@rubiin/tsconfig": "^1.1.2",
34
+ "@types/node": "^20.12.12",
35
+ "ts-loader": "^9.5.1",
36
+ "typescript": "^5.4.5"
37
+ }
38
+ }
package/scripts/bump.sh CHANGED
@@ -1,6 +1,6 @@
1
- git add .
2
- git commit -m "bump version"
3
- npm version patch
4
- yarn build
5
- npm publish
1
+ git add .
2
+ git commit -m "bump version"
3
+ npm version patch
4
+ yarn build
5
+ npm publish
6
6
  git push
package/test.bat CHANGED
@@ -1,16 +1,16 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
-
4
- rem Define the root directory
5
- set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
6
-
7
- rem Iterate through all directories and subdirectories
8
- for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
9
- rem Check if the directory name contains node_modules
10
- echo %%d | findstr /i /c:"\node_modules" >nul
11
- echo %%d | findstr /i /c:"\.git" >nul
12
- if errorlevel 1 (
13
- rem If not, list the directory contents
14
- dir "%%d"
15
- )
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ rem Define the root directory
5
+ set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
6
+
7
+ rem Iterate through all directories and subdirectories
8
+ for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
9
+ rem Check if the directory name contains node_modules
10
+ echo %%d | findstr /i /c:"\node_modules" >nul
11
+ echo %%d | findstr /i /c:"\.git" >nul
12
+ if errorlevel 1 (
13
+ rem If not, list the directory contents
14
+ dir "%%d"
15
+ )
16
16
  )
@@ -1,4 +1,4 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
4
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
4
+ }
package/tsconfig.json CHANGED
@@ -1,26 +1,26 @@
1
- {
2
- "extends": "@rubiin/tsconfig",
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "declaration": true,
6
- "removeComments": true,
7
- "emitDecoratorMetadata": true,
8
- "experimentalDecorators": true,
9
- "allowSyntheticDefaultImports": true,
10
- "target": "ES2022",
11
- "sourceMap": true,
12
- "outDir": "./dist",
13
- "rootDir": "./src",
14
- "baseUrl": "./src",
15
- "incremental": true,
16
- "strict": true,
17
- "skipLibCheck": true,
18
- "strictNullChecks": false,
19
- "noImplicitAny": false,
20
- "strictBindCallApply": false,
21
- "forceConsistentCasingInFileNames": true,
22
- "noFallthroughCasesInSwitch": false
23
- },
24
- "include": ["test/**/*", "src/**/*", "eslint.config.js"],
25
- "typeRoots": ["./src/common/@types/typings"]
26
- }
1
+ {
2
+ "extends": "@rubiin/tsconfig",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "declaration": true,
6
+ "removeComments": true,
7
+ "emitDecoratorMetadata": true,
8
+ "experimentalDecorators": true,
9
+ "allowSyntheticDefaultImports": true,
10
+ "target": "ES2022",
11
+ "sourceMap": true,
12
+ "outDir": "./dist",
13
+ "rootDir": "./src",
14
+ "baseUrl": "./src",
15
+ "incremental": true,
16
+ "strict": true,
17
+ "skipLibCheck": true,
18
+ "strictNullChecks": false,
19
+ "noImplicitAny": false,
20
+ "strictBindCallApply": false,
21
+ "forceConsistentCasingInFileNames": true,
22
+ "noFallthroughCasesInSwitch": false
23
+ },
24
+ "include": ["test/**/*", "src/**/*", "eslint.config.js"],
25
+ "typeRoots": ["./src/common/@types/typings"]
26
+ }