sst-http 0.2.0 → 0.2.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/dist/infra.d.cts CHANGED
@@ -2,15 +2,7 @@ import { H as HttpMethod, R as RoutesManifest } from './types-D69iuoxv.cjs';
2
2
  export { b as RoutesManifestAuth, a as RoutesManifestRoute } from './types-D69iuoxv.cjs';
3
3
  import 'aws-lambda';
4
4
 
5
- type SstApiGateway = {
6
- route?: (routeKey: string, handlerOrConfig: unknown, args?: Record<string, unknown>) => unknown;
7
- addRoutes?: (routes: Record<string, Record<string, unknown>>) => unknown;
8
- addRoute?: (routeKey: string, config: Record<string, unknown>) => unknown;
9
- addAuthorizers?: (authorizers: Record<string, unknown>) => unknown;
10
- authorizer?: (name: string, payload: unknown) => unknown;
11
- authorizers?: Record<string, unknown>;
12
- url?: string;
13
- };
5
+ type SstApiGateway = any;
14
6
  type SstAwsNamespace = {
15
7
  ApiGatewayV2: new (name: string, args?: unknown, opts?: unknown) => SstApiGateway;
16
8
  ApiGateway: new (name: string, args?: unknown, opts?: unknown) => SstApiGateway;
@@ -48,12 +40,12 @@ type AdapterArgs = AwsSource & {
48
40
  apiArgs?: unknown;
49
41
  };
50
42
  declare function httpApiAdapter(args?: AdapterArgs): {
51
- api: SstApiGateway;
43
+ api: any;
52
44
  registerRoute: RegisterRoute;
53
45
  ensureJwtAuthorizer: EnsureJwtAuthorizer;
54
46
  };
55
47
  declare function restApiAdapter(args?: AdapterArgs): {
56
- api: SstApiGateway;
48
+ api: any;
57
49
  registerRoute: RegisterRoute;
58
50
  ensureJwtAuthorizer: EnsureJwtAuthorizer;
59
51
  };
package/dist/infra.d.ts CHANGED
@@ -2,15 +2,7 @@ import { H as HttpMethod, R as RoutesManifest } from './types-D69iuoxv.js';
2
2
  export { b as RoutesManifestAuth, a as RoutesManifestRoute } from './types-D69iuoxv.js';
3
3
  import 'aws-lambda';
4
4
 
5
- type SstApiGateway = {
6
- route?: (routeKey: string, handlerOrConfig: unknown, args?: Record<string, unknown>) => unknown;
7
- addRoutes?: (routes: Record<string, Record<string, unknown>>) => unknown;
8
- addRoute?: (routeKey: string, config: Record<string, unknown>) => unknown;
9
- addAuthorizers?: (authorizers: Record<string, unknown>) => unknown;
10
- authorizer?: (name: string, payload: unknown) => unknown;
11
- authorizers?: Record<string, unknown>;
12
- url?: string;
13
- };
5
+ type SstApiGateway = any;
14
6
  type SstAwsNamespace = {
15
7
  ApiGatewayV2: new (name: string, args?: unknown, opts?: unknown) => SstApiGateway;
16
8
  ApiGateway: new (name: string, args?: unknown, opts?: unknown) => SstApiGateway;
@@ -48,12 +40,12 @@ type AdapterArgs = AwsSource & {
48
40
  apiArgs?: unknown;
49
41
  };
50
42
  declare function httpApiAdapter(args?: AdapterArgs): {
51
- api: SstApiGateway;
43
+ api: any;
52
44
  registerRoute: RegisterRoute;
53
45
  ensureJwtAuthorizer: EnsureJwtAuthorizer;
54
46
  };
55
47
  declare function restApiAdapter(args?: AdapterArgs): {
56
- api: SstApiGateway;
48
+ api: any;
57
49
  registerRoute: RegisterRoute;
58
50
  ensureJwtAuthorizer: EnsureJwtAuthorizer;
59
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst-http",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Decorator-based routing for SST v3 with a single Lambda and Firebase JWT authorizer.",
5
5
  "license": "MIT",
6
6
  "author": "",