@whook/gcp-functions 10.0.2 → 10.0.3

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.
@@ -15,10 +15,10 @@ import type { LogService } from 'common-services';
15
15
  * @return {Promise<Object>}
16
16
  * A promise of an object containing the reshaped env vars.
17
17
  */
18
- declare const _default: import("knifecycle").ServiceInitializer<import("@whook/whook/dist/services/_autoload.js").AutoloadConfig & {
18
+ declare const _default: import("knifecycle").ServiceInitializer<Dependencies<any> & import("@whook/whook/dist/services/_autoload.js").AutoloadConfig & {
19
19
  PROJECT_SRC: string;
20
20
  CONFIGS?: import("@whook/whook").CONFIGSService | undefined;
21
- WRAPPERS?: import("@whook/whook").WhookWrapper<unknown, import("@whook/http-transaction").WhookHandler<import("knifecycle").Parameters<any>, import("@whook/http-transaction").WhookResponse<number, void | import("@whook/http-transaction").WhookHeaders, void | import("type-fest").JsonValue | import("stream").Readable>, import("@whook/http-transaction").WhookOperation<Record<string, unknown>>>>[] | undefined;
21
+ WRAPPERS?: import("@whook/whook").WhookWrapper<Dependencies<any>, import("@whook/http-transaction").WhookHandler<import("knifecycle").Parameters<any>, import("@whook/http-transaction").WhookResponse<number, void | import("@whook/http-transaction").WhookHeaders, void | import("type-fest").JsonValue | import("stream").Readable>, import("@whook/http-transaction").WhookOperation<Record<string, unknown>>>>[] | undefined;
22
22
  $injector: Injector<any>;
23
23
  importer: import("@whook/whook").ImporterService<{
24
24
  default: Initializer<any, Dependencies<any>>;
@@ -1,4 +1,4 @@
1
- declare const _default: import("knifecycle").ServiceInitializer<unknown, {
1
+ declare const _default: import("knifecycle").ServiceInitializer<import("knifecycle").Dependencies<any>, {
2
2
  (...data: any[]): void;
3
3
  (message?: any, ...optionalParams: any[]): void;
4
4
  }>;
@@ -1,3 +1,4 @@
1
+ import { describe, it } from '@jest/globals';
1
2
  import initLogService from './log.js';
2
3
  describe('initLogService', () => {
3
4
  it('should work', async () => {
@@ -1 +1 @@
1
- {"version":3,"file":"log.test.js","sourceRoot":"","sources":["../../src/services/log.test.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,UAAU,CAAC;AAEtC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC3B,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"log.test.js","sourceRoot":"","sources":["../../src/services/log.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,cAAc,MAAM,UAAU,CAAC;AAEtC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC3B,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -18,5 +18,5 @@ declare type HTTPWrapperDependencies = {
18
18
  log?: LogService;
19
19
  WRAPPERS: WhookWrapper<Dependencies, Service>[];
20
20
  };
21
- export default function wrapHandlerForAWSHTTPFunction<D, S extends WhookHandler>(initHandler: ServiceInitializer<D, S>): ServiceInitializer<D & HTTPWrapperDependencies, S>;
21
+ export default function wrapHandlerForAWSHTTPFunction<D extends Dependencies<any>, S extends WhookHandler>(initHandler: ServiceInitializer<D, S>): ServiceInitializer<D & HTTPWrapperDependencies, S>;
22
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whook/gcp-functions",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "description": "Build and deploy to GCP Cloud Functions with Whook.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,38 +49,37 @@
49
49
  },
50
50
  "homepage": "https://github.com/nfroidure/whook",
51
51
  "dependencies": {
52
- "@whook/cli": "^10.0.2",
53
- "@whook/cors": "^10.0.2",
54
- "@whook/http-router": "^10.0.2",
55
- "@whook/whook": "^10.0.2",
52
+ "@whook/cli": "^10.0.3",
53
+ "@whook/cors": "^10.0.3",
54
+ "@whook/http-router": "^10.0.3",
55
+ "@whook/whook": "^10.0.3",
56
56
  "ajv": "^8.11.0",
57
57
  "ajv-formats": "^2.1.1",
58
58
  "camelcase": "^7.0.0",
59
- "common-services": "^11.0.1",
59
+ "common-services": "^11.1.0",
60
60
  "cpr": "3.0.1",
61
- "knifecycle": "^14.0.0",
61
+ "knifecycle": "^14.1.0",
62
62
  "mkdirp": "^1.0.4",
63
- "openapi-types": "^12.0.0",
64
- "qs": "^6.10.3",
63
+ "openapi-types": "^12.0.2",
64
+ "qs": "^6.10.5",
65
65
  "strict-qs": "^7.0.0",
66
66
  "yerror": "^6.1.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@types/jest": "^28.1.1",
70
- "@typescript-eslint/eslint-plugin": "^5.27.0",
71
- "@typescript-eslint/parser": "^5.27.0",
72
- "esbuild": "^0.14.46",
69
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
70
+ "@typescript-eslint/parser": "^5.36.0",
71
+ "esbuild": "^0.15.6",
73
72
  "esbuild-jest": "^0.5.0",
74
- "eslint": "^8.17.0",
73
+ "eslint": "^8.23.0",
75
74
  "eslint-config-prettier": "^8.5.0",
76
- "eslint-plugin-prettier": "^4.0.0",
77
- "jest": "^28.1.0",
75
+ "eslint-plugin-prettier": "^4.2.1",
76
+ "jest": "^29.0.1",
78
77
  "jsdoc-to-markdown": "^7.1.1",
79
78
  "metapak": "^4.0.4",
80
- "metapak-nfroidure": "12.1.0",
81
- "prettier": "^2.6.2",
79
+ "metapak-nfroidure": "12.3.0",
80
+ "prettier": "^2.7.1",
82
81
  "rimraf": "^3.0.2",
83
- "typescript": "^4.7.3"
82
+ "typescript": "^4.8.2"
84
83
  },
85
84
  "contributors": [],
86
85
  "engines": {
@@ -169,5 +168,5 @@
169
168
  "prettier": "prettier --write 'src/**/*.ts'",
170
169
  "test": "npm run jest"
171
170
  },
172
- "gitHead": "9a91f940bb084998baa83917bf143ec198bdf143"
171
+ "gitHead": "4702310e46b0ce92fb7765833f7a78ffa58f369a"
173
172
  }
@@ -1,3 +1,4 @@
1
+ import { describe, it } from '@jest/globals';
1
2
  import initLogService from './log.js';
2
3
 
3
4
  describe('initLogService', () => {
@@ -65,7 +65,7 @@ const SEARCH_SEPARATOR = '?';
65
65
  const PATH_SEPARATOR = '/';
66
66
 
67
67
  export default function wrapHandlerForAWSHTTPFunction<
68
- D,
68
+ D extends Dependencies<any>,
69
69
  S extends WhookHandler,
70
70
  >(
71
71
  initHandler: ServiceInitializer<D, S>,