@wrcb/cb-common 1.0.95 → 1.0.97

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.
@@ -3,6 +3,6 @@ export interface ToggledBlockUserEvent {
3
3
  subject: Subjects.ToggledBlockUser;
4
4
  data: {
5
5
  userId: string;
6
- blocked: boolean;
6
+ isBlocked: boolean;
7
7
  };
8
8
  }
@@ -19,7 +19,6 @@ function signUpReturnCookie(id) {
19
19
  isVerified: true
20
20
  };
21
21
  // Create the JWT
22
- console.log('JWT_KEY no pacote @wrcb/cb-common:::::::::::', process.env.JWT_KEY);
23
22
  const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
24
23
  // Build session object {jwt: MY_JWT}
25
24
  const session = { jwt: token };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.95",
3
+ "version": "1.0.97",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -10,11 +10,19 @@
10
10
  "scripts": {
11
11
  "clean": "rimraf ./build",
12
12
  "build": "npm run clean && tsc",
13
- "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish"
13
+ "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
14
+ "lint": "eslint . --ext .ts --fix",
15
+ "format": "prettier --write ."
14
16
  },
15
17
  "author": "Willian Rios",
16
18
  "license": "ISC",
17
19
  "devDependencies": {
20
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
21
+ "@typescript-eslint/parser": "^8.29.1",
22
+ "eslint": "^9.24.0",
23
+ "eslint-config-prettier": "^10.1.2",
24
+ "eslint-plugin-prettier": "^5.2.6",
25
+ "prettier": "^3.5.3",
18
26
  "rimraf": "^5.0.7",
19
27
  "typescript": "^5.4.5"
20
28
  },