@jiangdyjp2/common 1.0.6 → 1.0.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AAErD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AAErD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
package/build/index.js CHANGED
@@ -1,4 +1,3 @@
1
- // import './types/express.js';
2
1
  export * from './errors/bad-request-error.js';
3
2
  export * from './errors/custom-error.js';
4
3
  export * from './errors/database-connection-error.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AAErD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAA;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AAErD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiangdyjp2/common",
3
- "version": "1.0.6",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -8,26 +8,28 @@
8
8
  "build/**/*"
9
9
  ],
10
10
  "scripts": {
11
- "clean": "del ./build/*",
12
- "build": "npm run clean && tsc",
13
- "pub": "git add . && git commit -m \"Updates\" && npm version patch && npm run build && npm publish"
11
+ "clean": "rimraf build",
12
+ "build": "tsc",
13
+ "prepublishOnly": "npm run clean && npm run build",
14
+ "pub": "git add . && git commit -m \"release\" && npm version patch && npm publish"
14
15
  },
15
16
  "keywords": [],
16
17
  "author": "",
17
18
  "license": "ISC",
18
19
  "type": "module",
19
20
  "devDependencies": {
21
+ "@types/jsonwebtoken": "^9.0.10",
20
22
  "del-cli": "^7.0.0",
23
+ "rimraf": "^6.1.2",
21
24
  "typescript": "^5.9.3"
22
25
  },
23
26
  "peerDependencies": {
24
- "express": "^5.2.0",
25
- "@types/express": "^5.0.0",
27
+ "@types/cookie-session": "^2.0.0",
28
+ "@types/express": "^4.17.21 || ^5.0.0",
26
29
  "cookie-session": "^2.1.0",
27
- "@types/cookie-session": "^2.0.0"
30
+ "express": "^4.19.2 || ^5.2.0"
28
31
  },
29
32
  "dependencies": {
30
- "@types/jsonwebtoken": "^9.0.10",
31
33
  "express-validator": "^7.3.1",
32
34
  "jsonwebtoken": "^9.0.3"
33
35
  }
package/readme.txt CHANGED
@@ -101,4 +101,14 @@ npm install -D vitest
101
101
  (12) rm -rf node_modules package-lock.json
102
102
  npm install
103
103
 
104
+ (13)
105
+ ✅ Final checklist for @jiangdyjp2/common
106
+
107
+ ✔ No @types/* in dependencies
108
+ ✔ Express + cookie-session in peerDependencies
109
+ ✔ Only runtime JS libs in dependencies
110
+ ✔ Express augmentation in .d.ts
111
+ ✔ No runtime import of type files
112
+
113
+ (14) Libraries ( say @jiangdyjp2/common ) should never ship @types/* in dependencies
104
114