@cedarjs/graphql-server 0.10.3-next.0 → 0.10.3-next.7

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,10 +3,10 @@ import type { Decoder } from '@cedarjs/api';
3
3
  import type { GetCurrentUser } from '../types.js';
4
4
  interface Args {
5
5
  authDecoder?: Decoder | Decoder[];
6
- handlerFn: (event: APIGatewayEvent, context: LambdaContext, ...others: any) => any;
6
+ handlerFn: (event: APIGatewayEvent, context?: LambdaContext, ...others: any) => any;
7
7
  getCurrentUser?: GetCurrentUser;
8
8
  }
9
- export type UseRequireAuth = (args: Args) => (event: APIGatewayEvent, context: LambdaContext, ...rest: any) => Promise<ReturnType<Args['handlerFn']>>;
9
+ export type UseRequireAuth = (args: Args) => (event: APIGatewayEvent, context?: LambdaContext, ...rest: any) => Promise<ReturnType<Args['handlerFn']>>;
10
10
  export declare const useRequireAuth: UseRequireAuth;
11
11
  export {};
12
12
  //# sourceMappingURL=useRequireAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRequireAuth.d.ts","sourceRoot":"","sources":["../../../src/functions/useRequireAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAE3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAM3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,UAAU,IAAI;IACZ,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAA;IACjC,SAAS,EAAE,CACT,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,aAAa,EACtB,GAAG,MAAM,EAAE,GAAG,KACX,GAAG,CAAA;IACR,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAGD,MAAM,MAAM,cAAc,GAAG,CAC3B,IAAI,EAAE,IAAI,KACP,CACH,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,aAAa,EACtB,GAAG,IAAI,EAAE,GAAG,KACT,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;AAE3C,eAAO,MAAM,cAAc,EAAE,cAmD5B,CAAA"}
1
+ {"version":3,"file":"useRequireAuth.d.ts","sourceRoot":"","sources":["../../../src/functions/useRequireAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAE3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAM3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,UAAU,IAAI;IACZ,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAA;IACjC,SAAS,EAAE,CACT,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,aAAa,EACvB,GAAG,MAAM,EAAE,GAAG,KACX,GAAG,CAAA;IACR,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAGD,MAAM,MAAM,cAAc,GAAG,CAC3B,IAAI,EAAE,IAAI,KACP,CACH,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,aAAa,EACvB,GAAG,IAAI,EAAE,GAAG,KACT,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;AAE3C,eAAO,MAAM,cAAc,EAAE,cAmD5B,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type { Logger } from '@cedarjs/api/logger';
2
2
  import type { ArmorConfig } from '../types.js';
3
- export declare const useArmor: (logger: Logger, config?: ArmorConfig) => import("@envelop/types").Plugin<{}>;
3
+ export declare const useArmor: (logger: Logger, config?: ArmorConfig) => import("@envelop/core").Plugin<{}>;
4
4
  //# sourceMappingURL=useArmor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useArmor.d.ts","sourceRoot":"","sources":["../../../src/plugins/useArmor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAO9C,eAAO,MAAM,QAAQ,WAAY,MAAM,WAAW,WAAW,wCAsC5D,CAAA"}
1
+ {"version":3,"file":"useArmor.d.ts","sourceRoot":"","sources":["../../../src/plugins/useArmor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAO9C,eAAO,MAAM,QAAQ,WAAY,MAAM,WAAW,WAAW,uCAsC5D,CAAA"}
@@ -3,10 +3,10 @@ import type { Decoder } from '@cedarjs/api';
3
3
  import type { GetCurrentUser } from '../types.js';
4
4
  interface Args {
5
5
  authDecoder?: Decoder | Decoder[];
6
- handlerFn: (event: APIGatewayEvent, context: LambdaContext, ...others: any) => any;
6
+ handlerFn: (event: APIGatewayEvent, context?: LambdaContext, ...others: any) => any;
7
7
  getCurrentUser?: GetCurrentUser;
8
8
  }
9
- export type UseRequireAuth = (args: Args) => (event: APIGatewayEvent, context: LambdaContext, ...rest: any) => Promise<ReturnType<Args['handlerFn']>>;
9
+ export type UseRequireAuth = (args: Args) => (event: APIGatewayEvent, context?: LambdaContext, ...rest: any) => Promise<ReturnType<Args['handlerFn']>>;
10
10
  export declare const useRequireAuth: UseRequireAuth;
11
11
  export {};
12
12
  //# sourceMappingURL=useRequireAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRequireAuth.d.ts","sourceRoot":"","sources":["../../src/functions/useRequireAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAE3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;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,CAAC,CAAC,CAAC,CAAA;AAE3C,eAAO,MAAM,cAAc,EAAE,cAmD5B,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type { Logger } from '@cedarjs/api/logger';
2
2
  import type { ArmorConfig } from '../types.js';
3
- export declare const useArmor: (logger: Logger, config?: ArmorConfig) => import("@envelop/types/plugin", { with: { "resolution-mode": "require" } }).Plugin<{}>;
3
+ export declare const useArmor: (logger: Logger, config?: ArmorConfig) => import("@envelop/core", { with: { "resolution-mode": "require" } }).Plugin<{}>;
4
4
  //# sourceMappingURL=useArmor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useArmor.d.ts","sourceRoot":"","sources":["../../src/plugins/useArmor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAO9C,eAAO,MAAM,QAAQ,WAAY,MAAM,WAAW,WAAW,2FAsC5D,CAAA"}
1
+ {"version":3,"file":"useArmor.d.ts","sourceRoot":"","sources":["../../src/plugins/useArmor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAO9C,eAAO,MAAM,QAAQ,WAAY,MAAM,WAAW,WAAW,mFAsC5D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/graphql-server",
3
- "version": "0.10.3-next.0+61b15aa20",
3
+ "version": "0.10.3-next.7+ce540091b",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@babel/runtime-corejs3": "7.27.6",
41
- "@cedarjs/api": "0.10.3-next.0+61b15aa20",
42
- "@cedarjs/context": "0.10.3-next.0+61b15aa20",
41
+ "@cedarjs/api": "0.10.3-next.7+ce540091b",
42
+ "@cedarjs/context": "0.10.3-next.7+ce540091b",
43
43
  "@envelop/core": "5.0.2",
44
44
  "@envelop/depth-limit": "4.0.0",
45
45
  "@envelop/disable-introspection": "6.0.0",
@@ -62,10 +62,10 @@
62
62
  "devDependencies": {
63
63
  "@babel/cli": "7.27.2",
64
64
  "@babel/core": "^7.26.10",
65
- "@cedarjs/framework-tools": "0.10.3-next.1",
66
- "@cedarjs/project-config": "0.10.3-next.0+61b15aa20",
67
- "@cedarjs/realtime": "0.10.3-next.0+61b15aa20",
68
- "@envelop/types": "5.0.0",
65
+ "@cedarjs/framework-tools": "0.10.3-next.7",
66
+ "@cedarjs/project-config": "0.10.3-next.7+ce540091b",
67
+ "@cedarjs/realtime": "0.10.3-next.7+ce540091b",
68
+ "@envelop/types": "5.2.1",
69
69
  "@types/aws-lambda": "8.10.152",
70
70
  "@types/jsonwebtoken": "9.0.10",
71
71
  "@types/lodash": "4.17.20",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "61b15aa2060d0c15594e3b9a57c0df137d526e3f"
85
+ "gitHead": "ce540091bba64265709e05532b344a7283e416c4"
86
86
  }