@cloudnux/aws-cloud-provider 0.5.0 → 0.6.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.
@@ -1007,9 +1007,9 @@ var ansiStyles = assembleStyles();
1007
1007
  var ansi_styles_default = ansiStyles;
1008
1008
 
1009
1009
  // ../../../node_modules/chalk/source/vendor/supports-color/index.js
1010
- import process2 from "node:process";
1011
- import os from "node:os";
1012
- import tty from "node:tty";
1010
+ import process2 from "process";
1011
+ import os from "os";
1012
+ import tty from "tty";
1013
1013
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
1014
1014
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1015
1015
  const position = argv.indexOf(prefix + flag);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudnux/aws-cloud-provider",
3
3
  "description": "CloudNux AWS cloud provider implementation",
4
- "version": "0.5.0",
4
+ "version": "0.6.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -46,11 +46,11 @@
46
46
  "clean": "rm -rf dist"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/client-location": "^3.670.0",
49
+ "@aws-sdk/client-geo-places": "^3.940.0",
50
50
  "@aws-sdk/client-s3": "^3.552.0",
51
51
  "@aws-sdk/client-sns": "^3.817.0",
52
52
  "@aws-sdk/client-sqs": "^3.817.0",
53
- "@cloudnux/core-cloud-provider": "0.2.0",
53
+ "@cloudnux/core-cloud-provider": "0.3.0",
54
54
  "aws-lambda": "^1.0.7"
55
55
  },
56
56
  "devDependencies": {
@@ -1,25 +0,0 @@
1
- import { APIGatewayProxyEventV2, SNSEvent, SQSEvent, ScheduledEvent, S3Event, SNSEventRecord, SQSRecord, S3EventRecord, Context } from 'aws-lambda';
2
- import { HttpMethod, MessageFilter } from '@cloudnux/core-cloud-provider';
3
-
4
- type EventType = APIGatewayProxyEventV2 | SNSEvent | SQSEvent | ScheduledEvent | S3Event;
5
- type EventHndlerType = APIGatewayProxyEventV2 | SNSEventRecord | SQSRecord | ScheduledEvent | S3EventRecord | any;
6
- type HandlerFunction = (event: EventHndlerType, context: Context) => Promise<any>;
7
- interface RouteDefinition {
8
- type: 'http' | 'schedule' | 'event';
9
- handler: HandlerFunction;
10
- method?: HttpMethod;
11
- routeKey?: string;
12
- pattern?: string;
13
- name?: string;
14
- source?: string;
15
- sourceType?: string;
16
- filter?: MessageFilter;
17
- }
18
- declare function createRouter(): {
19
- http(method: HttpMethod, route: string, handler: HandlerFunction): void;
20
- schedule(name: string, pattern: string, handler: HandlerFunction): void;
21
- event(source: string, sourceType: string, handler: HandlerFunction, filter?: MessageFilter): void;
22
- run(event: EventType, context: Context): Promise<any>;
23
- };
24
-
25
- export { type EventHndlerType, type EventType, type HandlerFunction, type RouteDefinition, createRouter };