@causa/runtime-google 0.35.3 → 0.36.0
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,7 +3,9 @@ import { Logger } from '@causa/runtime/nestjs';
|
|
|
3
3
|
import { ConfigService } from '@nestjs/config';
|
|
4
4
|
import { Auth } from 'firebase-admin/auth';
|
|
5
5
|
import { Strategy } from 'passport-http-bearer';
|
|
6
|
-
declare const IdentityPlatformStrategy_base: new (...args:
|
|
6
|
+
declare const IdentityPlatformStrategy_base: new (...args: [options: import("passport-http-bearer").IStrategyOptions] | []) => Strategy<import("passport-http-bearer").VerifyFunctions> & {
|
|
7
|
+
validate(...args: any[]): unknown;
|
|
8
|
+
};
|
|
7
9
|
/**
|
|
8
10
|
* A Passport strategy that verifies a bearer token using Google Identity Platform.
|
|
9
11
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VersionedEntity } from '@causa/runtime';
|
|
2
2
|
import { type MakeTestAppFactoryOptions } from '@causa/runtime/nestjs/testing';
|
|
3
3
|
import { Database, Spanner } from '@google-cloud/spanner';
|
|
4
|
-
import type { INestApplication, Type } from '@nestjs/common';
|
|
4
|
+
import type { INestApplication, NestApplicationOptions, Type } from '@nestjs/common';
|
|
5
5
|
import { CollectionReference } from 'firebase-admin/firestore';
|
|
6
6
|
import { Test } from 'supertest';
|
|
7
7
|
import TestAgent from 'supertest/lib/agent.js';
|
|
@@ -177,6 +177,10 @@ export declare class GoogleAppFixture {
|
|
|
177
177
|
* Options for the {@link makeTestAppFactory} function.
|
|
178
178
|
*/
|
|
179
179
|
appFactoryOptions?: MakeTestAppFactoryOptions;
|
|
180
|
+
/**
|
|
181
|
+
* Options passed to the NestJS application factory.
|
|
182
|
+
*/
|
|
183
|
+
nestApplicationOptions?: NestApplicationOptions;
|
|
180
184
|
/**
|
|
181
185
|
* Whether the `AppCheckGuard` should be disabled.
|
|
182
186
|
* Defaults to `true`.
|
|
@@ -180,6 +180,7 @@ export class GoogleAppFixture {
|
|
|
180
180
|
? [appFactoryOptions.overrides]
|
|
181
181
|
: (appFactoryOptions.overrides ?? []);
|
|
182
182
|
const app = await createApp(appModule, {
|
|
183
|
+
nestApplicationOptions: options.nestApplicationOptions,
|
|
183
184
|
appFactory: makeTestAppFactory({
|
|
184
185
|
...appFactoryOptions,
|
|
185
186
|
overrides: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@causa/runtime-google",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "An extension to the Causa runtime SDK (`@causa/runtime`), providing Google-specific features.",
|
|
5
5
|
"repository": "github:causa-io/runtime-typescript-google",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,49 +29,49 @@
|
|
|
29
29
|
"test:cov": "npm run test -- --coverage"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@causa/runtime": ">= 0.
|
|
32
|
+
"@causa/runtime": ">= 0.27.0 < 1.0.0",
|
|
33
33
|
"@google-cloud/precise-date": "^4.0.0",
|
|
34
|
-
"@google-cloud/pubsub": "^4.
|
|
35
|
-
"@google-cloud/spanner": "^7.
|
|
36
|
-
"@google-cloud/tasks": "^5.5.
|
|
37
|
-
"@grpc/grpc-js": "^1.12.
|
|
38
|
-
"@nestjs/common": "^
|
|
39
|
-
"@nestjs/config": "^
|
|
40
|
-
"@nestjs/core": "^
|
|
41
|
-
"@nestjs/passport": "^
|
|
42
|
-
"@nestjs/terminus": "^
|
|
34
|
+
"@google-cloud/pubsub": "^4.10.0",
|
|
35
|
+
"@google-cloud/spanner": "^7.18.1",
|
|
36
|
+
"@google-cloud/tasks": "^5.5.2",
|
|
37
|
+
"@grpc/grpc-js": "^1.12.6",
|
|
38
|
+
"@nestjs/common": "^11.0.9",
|
|
39
|
+
"@nestjs/config": "^4.0.0",
|
|
40
|
+
"@nestjs/core": "^11.0.9",
|
|
41
|
+
"@nestjs/passport": "^11.0.5",
|
|
42
|
+
"@nestjs/terminus": "^11.0.0",
|
|
43
43
|
"class-transformer": "^0.5.1",
|
|
44
44
|
"class-validator": "^0.14.1",
|
|
45
|
-
"express": "^4.21.
|
|
46
|
-
"firebase-admin": "^13.0
|
|
45
|
+
"express": "^4.21.2",
|
|
46
|
+
"firebase-admin": "^13.1.0",
|
|
47
47
|
"jsonwebtoken": "^9.0.2",
|
|
48
48
|
"passport-http-bearer": "^1.0.1",
|
|
49
|
-
"pino": "^9.
|
|
49
|
+
"pino": "^9.6.0",
|
|
50
50
|
"reflect-metadata": "^0.2.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@nestjs/testing": "^
|
|
54
|
-
"@swc/core": "^1.10.
|
|
53
|
+
"@nestjs/testing": "^11.0.9",
|
|
54
|
+
"@swc/core": "^1.10.16",
|
|
55
55
|
"@swc/jest": "^0.2.37",
|
|
56
56
|
"@tsconfig/node22": "^22.0.0",
|
|
57
57
|
"@types/jest": "^29.5.14",
|
|
58
|
-
"@types/jsonwebtoken": "^9.0.
|
|
59
|
-
"@types/node": "^22.
|
|
58
|
+
"@types/jsonwebtoken": "^9.0.8",
|
|
59
|
+
"@types/node": "^22.13.4",
|
|
60
60
|
"@types/passport-http-bearer": "^1.0.41",
|
|
61
61
|
"@types/supertest": "^6.0.2",
|
|
62
62
|
"@types/uuid": "^10.0.0",
|
|
63
63
|
"dotenv": "^16.4.7",
|
|
64
|
-
"eslint": "^9.
|
|
65
|
-
"eslint-config-prettier": "^
|
|
66
|
-
"eslint-plugin-prettier": "^5.2.
|
|
64
|
+
"eslint": "^9.20.1",
|
|
65
|
+
"eslint-config-prettier": "^10.0.1",
|
|
66
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
67
67
|
"jest": "^29.7.0",
|
|
68
68
|
"jest-extended": "^4.0.2",
|
|
69
69
|
"rimraf": "^6.0.1",
|
|
70
70
|
"supertest": "^7.0.0",
|
|
71
71
|
"ts-jest": "^29.2.5",
|
|
72
72
|
"ts-node": "^10.9.2",
|
|
73
|
-
"typescript": "^5.7.
|
|
74
|
-
"typescript-eslint": "^8.
|
|
75
|
-
"uuid": "^11.0.
|
|
73
|
+
"typescript": "^5.7.3",
|
|
74
|
+
"typescript-eslint": "^8.24.0",
|
|
75
|
+
"uuid": "^11.0.5"
|
|
76
76
|
}
|
|
77
77
|
}
|