@pikku/lambda 0.6.3 → 0.6.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  ## 0.6.1
2
2
 
3
+ ## 0.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - de4a36b: refactor: renaming serverless templates to aws-lambda
8
+
9
+ ## 0.6.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 269a532: fix: fixing some typing issues
14
+ - Updated dependencies [7859b28]
15
+ - Updated dependencies [269a532]
16
+ - @pikku/core@0.6.11
17
+
3
18
  ## 0.6.3
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: null;
2
- export default _default;
1
+ export * from './http/index.js';
2
+ export * from './websocket/index.js';
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export default null;
1
+ export * from './http/index.js';
2
+ export * from './websocket/index.js';
2
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA"}
@@ -9,5 +9,5 @@ export declare const getServerlessDependencies: (logger: Logger, channelStore: C
9
9
  channelId: string;
10
10
  callbackAPI: ApiGatewayManagementApiClient;
11
11
  channelHandlerFactory: import("@pikku/core/channel").PikkuChannelHandlerFactory;
12
- channelStore: ChannelStore<unknown, unknown, unknown, import("@pikku/core/channel").Channel<unknown, unknown, unknown>>;
12
+ channelStore: ChannelStore<unknown, unknown, import("@pikku/core/dist/index.js").CoreUserSession, import("@pikku/core/channel").Channel<unknown, unknown, import("@pikku/core/dist/index.js").CoreUserSession>>;
13
13
  };
@@ -1,7 +1,7 @@
1
- import { CoreSingletonServices, CoreServices, CoreUserSession, CreateSessionServices, MakeRequired } from '@pikku/core';
1
+ import { CoreSingletonServices, CoreServices, CoreUserSession, CreateSessionServices } from '@pikku/core';
2
2
  import { ChannelStore } from '@pikku/core/channel';
3
3
  export type WebsocketParams<SingletonServices extends CoreSingletonServices, Services extends CoreServices<SingletonServices>, UserSession extends CoreUserSession> = {
4
4
  channelStore: ChannelStore;
5
- singletonServices: MakeRequired<SingletonServices, 'eventHub'>;
5
+ singletonServices: SingletonServices;
6
6
  createSessionServices?: CreateSessionServices<SingletonServices, Services, UserSession>;
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/lambda",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "license": "MIT",
5
5
  "author": "yasser.fadl@gmail.com",
6
6
  "module": "dist/index.js",
@@ -8,10 +8,10 @@
8
8
  "type": "module",
9
9
  "scripts": {
10
10
  "tsc": "tsc",
11
+ "ncu": "npx npm-check-updates",
11
12
  "build:esm": "tsc -b",
12
13
  "build": "yarn build:esm",
13
14
  "release": "npm run build && npm test",
14
- "ncu": "ncu",
15
15
  "test": "bash run-tests.sh",
16
16
  "test:watch": "bash run-tests.sh --watch",
17
17
  "test:coverage": "bash run-tests.sh --coverage"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@aws-sdk/client-apigatewaymanagementapi": "^3.713.0",
26
- "@pikku/core": "^0.6.7",
26
+ "@pikku/core": "^0.6.11",
27
27
  "@types/aws-lambda": "^8.10.146"
28
28
  },
29
29
  "devDependencies": {
package/src/index.ts CHANGED
@@ -1 +1,2 @@
1
- export default null
1
+ export * from './http/index.js'
2
+ export * from './websocket/index.js'
@@ -3,7 +3,6 @@ import {
3
3
  CoreServices,
4
4
  CoreUserSession,
5
5
  CreateSessionServices,
6
- MakeRequired,
7
6
  } from '@pikku/core'
8
7
  import { ChannelStore } from '@pikku/core/channel'
9
8
 
@@ -13,7 +12,7 @@ export type WebsocketParams<
13
12
  UserSession extends CoreUserSession,
14
13
  > = {
15
14
  channelStore: ChannelStore
16
- singletonServices: MakeRequired<SingletonServices, 'eventHub'>
15
+ singletonServices: SingletonServices
17
16
  createSessionServices?: CreateSessionServices<
18
17
  SingletonServices,
19
18
  Services,