@tsed/platform-serverless-http 7.70.2 → 7.71.1

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/jest.config.js CHANGED
@@ -1,10 +1,12 @@
1
1
  // For a detailed explanation regarding each configuration property, visit:
2
2
  // https://jestjs.io/docs/en/configuration.html
3
+ const config = require("@tsed/jest-config");
3
4
 
4
5
  module.exports = {
5
- ...require("@tsed/jest-config"),
6
+ ...config,
6
7
  roots: ["<rootDir>/src", "<rootDir>/test"],
7
8
  moduleNameMapper: {
9
+ ...config.moduleNameMapper,
8
10
  "@tsed/platform-serverless-http": "<rootDir>/src/index.ts"
9
11
  },
10
12
  coverageThreshold: {
package/lib/cjs/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- /**
3
- * @file Automatically generated by barrelsby.
4
- */
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  const tslib_1 = require("tslib");
7
- tslib_1.__exportStar(require("./builder/PlatformServerlessHttp"), exports);
8
- tslib_1.__exportStar(require("./decorators/serverlessContext"), exports);
9
- tslib_1.__exportStar(require("./decorators/serverlessEvent"), exports);
4
+ /**
5
+ * @file Automatically generated by @tsed/barrels.
6
+ */
7
+ tslib_1.__exportStar(require("./builder/PlatformServerlessHttp.js"), exports);
8
+ tslib_1.__exportStar(require("./decorators/serverlessContext.js"), exports);
9
+ tslib_1.__exportStar(require("./decorators/serverlessEvent.js"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,2EAAiD;AACjD,yEAA+C;AAC/C,uEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,8EAAoD;AACpD,4EAAkD;AAClD,0EAAgD"}
package/lib/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @file Automatically generated by barrelsby.
2
+ * @file Automatically generated by @tsed/barrels.
3
3
  */
4
4
  export * from "./builder/PlatformServerlessHttp.js";
5
5
  export * from "./decorators/serverlessContext.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @file Automatically generated by barrelsby.
2
+ * @file Automatically generated by @tsed/barrels.
3
3
  */
4
- export * from "./builder/PlatformServerlessHttp";
5
- export * from "./decorators/serverlessContext";
6
- export * from "./decorators/serverlessEvent";
4
+ export * from "./builder/PlatformServerlessHttp.js";
5
+ export * from "./decorators/serverlessContext.js";
6
+ export * from "./decorators/serverlessEvent.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-serverless-http",
3
- "version": "7.70.2",
3
+ "version": "7.71.1",
4
4
  "description": "Module to support Serverless HTTP function with Ts.ED",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "scripts": {
16
16
  "build": "yarn barrels && yarn build:ts",
17
- "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
17
+ "barrels": "barrels",
18
18
  "test": "jest && jest-coverage-thresholds-bumper",
19
19
  "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
20
20
  },
@@ -54,25 +54,25 @@
54
54
  "tslib": "2.6.1"
55
55
  },
56
56
  "devDependencies": {
57
- "@tsed/common": "7.70.2",
58
- "@tsed/core": "7.70.2",
59
- "@tsed/di": "7.70.2",
60
- "@tsed/platform-serverless-testing": "7.70.2",
61
- "@tsed/typescript": "7.70.2",
57
+ "@tsed/barrels": "7.71.1",
58
+ "@tsed/common": "7.71.1",
59
+ "@tsed/core": "7.71.1",
60
+ "@tsed/di": "7.71.1",
61
+ "@tsed/platform-serverless-testing": "7.71.1",
62
+ "@tsed/typescript": "7.71.1",
62
63
  "@types/aws-lambda": "^8.10.136",
63
- "barrelsby": "^2.8.1",
64
64
  "eslint": "^8.57.0",
65
65
  "jest": "^29.7.0",
66
66
  "serverless-http": "^3.2.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@tsed/common": "7.70.2",
70
- "@tsed/core": "7.70.2",
71
- "@tsed/di": "7.70.2",
72
- "@tsed/json-mapper": "7.70.2",
69
+ "@tsed/common": "7.71.1",
70
+ "@tsed/core": "7.71.1",
71
+ "@tsed/di": "7.71.1",
72
+ "@tsed/json-mapper": "7.71.1",
73
73
  "@tsed/logger": ">=6.7.5",
74
- "@tsed/openspec": "7.70.2",
75
- "@tsed/schema": "7.70.2",
74
+ "@tsed/openspec": "7.71.1",
75
+ "@tsed/schema": "7.71.1",
76
76
  "serverless-http": ">=2.0.0"
77
77
  },
78
78
  "peerDependenciesMeta": {
package/readme.md CHANGED
@@ -57,8 +57,8 @@ In the `src/lambda` create a new Lambda class:
57
57
  import {Controller, Inject} from "@tsed/di";
58
58
  import {Get, Returns, Summary} from "@tsed/schema";
59
59
  import {QueryParams} from "@tsed/platform-params";
60
- import {TimeslotsService} from "../services/TimeslotsService";
61
- import {TimeslotModel} from "../models/TimeslotModel";
60
+ import {TimeslotsService} from "../services/TimeslotsService.js";
61
+ import {TimeslotModel} from "../models/TimeslotModel.js";
62
62
 
63
63
  @Controller("/timeslots")
64
64
  export class TimeslotsController {
@@ -88,7 +88,7 @@ import cookieParser from "cookie-parser";
88
88
  import methodOverride from "method-override";
89
89
  import "@tsed/ajv";
90
90
  import "@tsed/swagger";
91
- import {TimeslotsController} from "./controllers/TimeslotsController";
91
+ import {TimeslotsController} from "./controllers/TimeslotsController.js";
92
92
 
93
93
  @Configuration({
94
94
  acceptMimes: ["application/json"],
@@ -117,7 +117,7 @@ Create new `handler.ts` to expose your lambda:
117
117
  ```typescript
118
118
  import {PlatformServerless} from "@tsed/platform-serverless-http";
119
119
  import {PlatformExpress} from "@tsed/platform-express";
120
- import {Server} from "./Server";
120
+ import {Server} from "./Server.js";
121
121
 
122
122
  const platform = PlatformServerless.bootstrap(Server, {
123
123
  adapter: PlatformExpress
@@ -130,7 +130,7 @@ Create also `index.ts` to expose run Ts.ED on you local machine:
130
130
 
131
131
  ```typescript
132
132
  import {PlatformExpress} from "@tsed/platform-express";
133
- import {Server} from "./Server";
133
+ import {Server} from "./Server.js";
134
134
 
135
135
  async function bootstrap() {
136
136
  const platform = await PlatformExpress.bootstrap(Server, {
@@ -245,7 +245,7 @@ Here an example to test a Lambda controller:
245
245
  import {PlatformServerless} from "@tsed/platform-serverless-http";
246
246
  import {PlatformServerlessTest} from "@tsed/platform-serverless-testing";
247
247
  import {PlatformExpress} from "@tsed/platform-express";
248
- import {Server} from "./Server";
248
+ import {Server} from "./Server.js";
249
249
 
250
250
  @Controller("/timeslots")
251
251
  class TimeslotsController {