@technomoron/api-server-base 1.0.41 → 1.0.42

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.
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ApiError = exports.ApiModule = exports.ApiServer = void 0;
7
- var api_server_base_js_1 = require("./api-server-base.js");
7
+ var api_server_base_js_1 = require("./api-server-base.cjs");
8
8
  Object.defineProperty(exports, "ApiServer", { enumerable: true, get: function () { return __importDefault(api_server_base_js_1).default; } });
9
- var api_server_base_js_2 = require("./api-server-base.js");
9
+ var api_server_base_js_2 = require("./api-server-base.cjs");
10
10
  Object.defineProperty(exports, "ApiModule", { enumerable: true, get: function () { return api_server_base_js_2.ApiModule; } });
11
11
  Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return api_server_base_js_2.ApiError; } });
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@technomoron/api-server-base",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "Api Server Skeleton / Base Class",
5
5
  "type": "module",
6
- "main": "./dist/cjs/index.js",
6
+ "main": "./dist/cjs/index.cjs",
7
7
  "module": "./dist/esm/index.js",
8
8
  "types": "./dist/esm/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/esm/index.d.ts",
12
12
  "import": "./dist/esm/index.js",
13
- "require": "./dist/cjs/index.js"
13
+ "require": "./dist/cjs/index.cjs"
14
14
  }
15
15
  },
16
16
  "repository": {
@@ -26,12 +26,12 @@
26
26
  "homepage": "https://github.com/technomoron/api-server-base#readme",
27
27
  "scripts": {
28
28
  "scrub": "rm -rf ./node_modules/ pnpm-lock.yaml ./dist/",
29
- "build:cjs": "tsc --project tsconfig/tsconfig.cjs.json",
29
+ "build:cjs": "tsc --project tsconfig/tsconfig.cjs.json && node scripts/prepare-cjs.cjs",
30
30
  "build:esm": "tsc --project tsconfig/tsconfig.esm.json",
31
- "build": "tsc --project tsconfig/tsconfig.cjs.json && tsc --project tsconfig/tsconfig.esm.json",
31
+ "build": "npm run build:cjs && npm run build:esm",
32
32
  "test": "vitest run",
33
33
  "test:watch": "vitest --watch",
34
- "prepublishOnly": "tsc --project tsconfig/tsconfig.cjs.json && tsc --project tsconfig/tsconfig.esm.json",
34
+ "prepublishOnly": "npm run build:cjs && npm run build:esm",
35
35
  "lint": "eslint --ext .js,.ts,.vue ./",
36
36
  "lintfix": "eslint --fix --ext .js,.ts,.vue ./",
37
37
  "format": "eslint --fix --ext .js,.ts,.vue ./ && prettier --write \"**/*.{js,jsx,ts,tsx,vue,json,css,scss,md}\"",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@types/cookie-parser": "^1.4.9",
43
43
  "@types/cors": "^2.8.19",
44
- "@types/express": "^4 || ^5",
44
+ "@types/express": "^4.17.21",
45
45
  "@types/jsonwebtoken": "^9.0.9",
46
46
  "@types/multer": "^1.4.13",
47
47
  "cookie-parser": "^1.4.7",