@allthings/cloud-toolkit 5.2.0-beta.2 → 5.2.1-beta.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.
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var querystring = require('querystring');
6
4
  var zlib = require('zlib');
7
5
  var crypto = require('crypto');
@@ -687,4 +685,4 @@ const alagarr = (handler = noopHandler, options = DEFAULT_OPTIONS) => (event, co
687
685
 
688
686
  exports.ClientError = ClientError;
689
687
  exports.ServerError = ServerError;
690
- exports.default = alagarr;
688
+ exports.alagarr = alagarr;
@@ -660,4 +660,4 @@ const alagarr = (handler = noopHandler, options = DEFAULT_OPTIONS) => (event, co
660
660
  runHandler().then(resolve, reject);
661
661
  });
662
662
 
663
- export { ClientError, ServerError, alagarr as default };
663
+ export { ClientError, ServerError, alagarr };
@@ -192,4 +192,4 @@ const dynamodb = (userConfig) => {
192
192
  };
193
193
  };
194
194
 
195
- module.exports = dynamodb;
195
+ exports.dynamodb = dynamodb;
@@ -190,4 +190,4 @@ const dynamodb = (userConfig) => {
190
190
  };
191
191
  };
192
192
 
193
- export { dynamodb as default };
193
+ export { dynamodb };
@@ -37,4 +37,4 @@ const lambda = (userConfig) => {
37
37
  };
38
38
  };
39
39
 
40
- module.exports = lambda;
40
+ exports.lambda = lambda;
@@ -35,4 +35,4 @@ const lambda = (userConfig) => {
35
35
  };
36
36
  };
37
37
 
38
- export { lambda as default };
38
+ export { lambda };
package/dist/lib.cjs.js CHANGED
@@ -4,13 +4,13 @@ var querystring = require('querystring');
4
4
  var zlib = require('zlib');
5
5
  var crypto = require('crypto');
6
6
  var winston = require('winston');
7
+ var clientSsm = require('@aws-sdk/client-ssm');
8
+ var clientSesv2 = require('@aws-sdk/client-sesv2');
9
+ var nodemailer = require('nodemailer');
7
10
  var clientDynamodb = require('@aws-sdk/client-dynamodb');
8
11
  var libDynamodb = require('@aws-sdk/lib-dynamodb');
9
12
  var Bottleneck = require('bottleneck');
10
13
  var clientLambda = require('@aws-sdk/client-lambda');
11
- var clientSsm = require('@aws-sdk/client-ssm');
12
- var clientSesv2 = require('@aws-sdk/client-sesv2');
13
- var nodemailer = require('nodemailer');
14
14
  var clientSqs = require('@aws-sdk/client-sqs');
15
15
 
16
16
  function _interopNamespaceDefault(e) {
package/dist/lib.esm.mjs CHANGED
@@ -3,13 +3,13 @@ import * as zlib from 'zlib';
3
3
  import * as crypto from 'crypto';
4
4
  import { format, createLogger, transports } from 'winston';
5
5
  export { Logger } from 'winston';
6
+ import { SSMClient, GetParametersCommand, GetParameterCommand } from '@aws-sdk/client-ssm';
7
+ import { SESv2Client, SendEmailCommand } from '@aws-sdk/client-sesv2';
8
+ import { createTransport } from 'nodemailer';
6
9
  import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
7
10
  import { DynamoDBDocumentClient, UpdateCommand, ScanCommand, QueryCommand, PutCommand, GetCommand, DeleteCommand, BatchWriteCommand } from '@aws-sdk/lib-dynamodb';
8
11
  import Bottleneck from 'bottleneck';
9
12
  import { LambdaClient, InvokeCommand } from '@aws-sdk/client-lambda';
10
- import { SSMClient, GetParametersCommand, GetParameterCommand } from '@aws-sdk/client-ssm';
11
- import { SESv2Client, SendEmailCommand } from '@aws-sdk/client-sesv2';
12
- import { createTransport } from 'nodemailer';
13
13
  import { SQSClient, SendMessageCommand, SendMessageBatchCommand, GetQueueUrlCommand, ReceiveMessageCommand, DeleteMessageCommand } from '@aws-sdk/client-sqs';
14
14
 
15
15
  const defaultErrorHandler = (request, response, error) => {
@@ -32,4 +32,4 @@ const logger = (config) => {
32
32
  });
33
33
  };
34
34
 
35
- module.exports = logger;
35
+ exports.logger = logger;
@@ -30,4 +30,4 @@ const logger = (config) => {
30
30
  });
31
31
  };
32
32
 
33
- export { logger as default };
33
+ export { logger };
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var clientSsm = require('@aws-sdk/client-ssm');
6
4
 
7
5
  const DEFAULT_AWS_CONFIGURATION = {
@@ -81,4 +79,4 @@ const parameterStore = (userConfig) => {
81
79
  };
82
80
 
83
81
  exports.DEFAULT_CLIENT_CONFIG = DEFAULT_CLIENT_CONFIG;
84
- exports.default = parameterStore;
82
+ exports.parameterStore = parameterStore;
@@ -76,4 +76,4 @@ const parameterStore = (userConfig) => {
76
76
  };
77
77
  };
78
78
 
79
- export { DEFAULT_CLIENT_CONFIG, parameterStore as default };
79
+ export { DEFAULT_CLIENT_CONFIG, parameterStore };
package/dist/ses.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var clientSesv2 = require('@aws-sdk/client-sesv2');
6
4
  var nodemailer = require('nodemailer');
7
5
 
@@ -59,4 +57,4 @@ const ses = (userConfig) => {
59
57
  };
60
58
 
61
59
  exports.DEFAULT_CLIENT_CONFIG = DEFAULT_CLIENT_CONFIG;
62
- exports.default = ses;
60
+ exports.ses = ses;
package/dist/ses.esm.mjs CHANGED
@@ -54,4 +54,4 @@ const ses = (userConfig) => {
54
54
  };
55
55
  };
56
56
 
57
- export { DEFAULT_CLIENT_CONFIG, ses as default };
57
+ export { DEFAULT_CLIENT_CONFIG, ses };
package/dist/sqs.cjs.js CHANGED
@@ -99,4 +99,4 @@ const sqs = (userConfig) => {
99
99
  };
100
100
  };
101
101
 
102
- module.exports = sqs;
102
+ exports.sqs = sqs;
package/dist/sqs.esm.mjs CHANGED
@@ -97,4 +97,4 @@ const sqs = (userConfig) => {
97
97
  };
98
98
  };
99
99
 
100
- export { sqs as default };
100
+ export { sqs };
@@ -1,6 +1,6 @@
1
1
  import ClientError from './errors/clientError';
2
2
  import ServerError from './errors/serverError';
3
3
  import { Alagarr, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceHeaders, IInterfaceQueryParameters, IInterfaceRequest, IInterfaceRequestV2, IInterfaceResponse } from './types';
4
+ export type { APIGatewayEvent, APIGatewayProxyEventV2, Context, } from 'aws-lambda';
4
5
  export { Alagarr, ClientError, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceHeaders, IInterfaceQueryParameters, IInterfaceRequest, IInterfaceRequestV2, IInterfaceResponse, ServerError, };
5
- declare const alagarr: (handler?: HandlerFunction, options?: IInterfaceAlagarrOptions) => Alagarr;
6
- export default alagarr;
6
+ export declare const alagarr: (handler?: HandlerFunction, options?: IInterfaceAlagarrOptions) => Alagarr;
@@ -35,5 +35,4 @@ export interface IDynamoDBInstance {
35
35
  scanTable: TScanTable;
36
36
  updateItem: TUpdateItem;
37
37
  }
38
- declare const dynamodb: (userConfig: IDynamoDBConfig) => IDynamoDBInstance;
39
- export default dynamodb;
38
+ export declare const dynamodb: (userConfig: IDynamoDBConfig) => IDynamoDBInstance;
@@ -1,5 +1,5 @@
1
- export { default as dynamodb, IDynamoDBConfig, IDynamoDBInstance, IUnprocessedItems, TBatchWriteItems, TDeleteItem, TGetItem, TPutItem, TQueryTable, TScanTable, TUpdateItem, } from './dynamodb';
2
- export { ILambda, ILambdaInstance, default as lambda, TInvokeLambda, } from './lambda';
3
- export { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, IParameterStoreInstance, default as parameterStore, TGetSecret, TGetSecrets, } from './parameterStore';
4
- export { DEFAULT_CLIENT_CONFIG as DEFAULT_SES_CLIENT_CONFIG, IEmailAttachment, IEmailOptions, ISES, ISESInstance, default as ses, TSendMail, } from './ses';
5
- export { ISQS, ISQSInstance, default as sqs, TDeleteQueueItem, TGetQueueItems, TGetQueueUrl, TSendMessage, } from './sqs';
1
+ export { dynamodb, IDynamoDBConfig, IDynamoDBInstance, IUnprocessedItems, TBatchWriteItems, TDeleteItem, TGetItem, TPutItem, TQueryTable, TScanTable, TUpdateItem, } from './dynamodb';
2
+ export { ILambda, ILambdaInstance, lambda, TInvokeLambda } from './lambda';
3
+ export { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, IParameterStoreInstance, parameterStore, TGetSecret, TGetSecrets, } from './parameterStore';
4
+ export { DEFAULT_CLIENT_CONFIG as DEFAULT_SES_CLIENT_CONFIG, IEmailAttachment, IEmailOptions, ISES, ISESInstance, ses, TSendMail, } from './ses';
5
+ export { ISQS, ISQSInstance, sqs, TDeleteQueueItem, TGetQueueItems, TGetQueueUrl, TSendMessage, } from './sqs';
@@ -9,5 +9,4 @@ export type TInvokeLambda = (invocationType: InvocationType, payload: object) =>
9
9
  export interface ILambdaInstance {
10
10
  invokeLambda: TInvokeLambda;
11
11
  }
12
- declare const lambda: (userConfig: ILambda) => ILambdaInstance;
13
- export default lambda;
12
+ export declare const lambda: (userConfig: ILambda) => ILambdaInstance;
@@ -18,5 +18,5 @@ export interface IParameterStoreInstance {
18
18
  getSecret: TGetSecret;
19
19
  getSecrets: TGetSecrets;
20
20
  }
21
- declare const parameterStore: (userConfig: IParameterStore) => IParameterStoreInstance;
22
- export default parameterStore;
21
+ export declare const parameterStore: (userConfig: IParameterStore) => IParameterStoreInstance;
22
+ export {};
@@ -32,5 +32,4 @@ export type TSendMail = (options: IEmailOptions, responseCallback?: (response: o
32
32
  export interface ISESInstance {
33
33
  sendMail: TSendMail;
34
34
  }
35
- declare const ses: (userConfig: ISES) => ISESInstance;
36
- export default ses;
35
+ export declare const ses: (userConfig: ISES) => ISESInstance;
@@ -22,5 +22,4 @@ export interface ISQSInstance {
22
22
  sendBatchMessages: TSendBatchMessages;
23
23
  sendMessage: TSendMessage;
24
24
  }
25
- declare const sqs: (userConfig: ISQS) => ISQSInstance;
26
- export default sqs;
25
+ export declare const sqs: (userConfig: ISQS) => ISQSInstance;
@@ -1,7 +1,7 @@
1
- export { Alagarr, default as alagarr, ClientError, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceHeaders, IInterfaceQueryParameters, IInterfaceRequest, IInterfaceResponse, ServerError, } from './alagarr';
1
+ export { Alagarr, alagarr, ClientError, HandlerFunction, IInterfaceAlagarrOptions, IInterfaceHeaders, IInterfaceQueryParameters, IInterfaceRequest, IInterfaceResponse, ServerError, } from './alagarr';
2
2
  export { DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, DEFAULT_SES_CLIENT_CONFIG, dynamodb, IDynamoDBConfig, IDynamoDBInstance, IEmailAttachment, IEmailOptions, ILambda, ILambdaInstance, IParameterStore, IParameterStoreInstance, ISES, ISESInstance, ISQS, ISQSInstance, IUnprocessedItems, lambda, parameterStore, ses, sqs, TBatchWriteItems, TDeleteItem, TDeleteQueueItem, TGetItem, TGetQueueItems, TGetQueueUrl, TGetSecret, TGetSecrets, TInvokeLambda, TPutItem, TQueryTable, TScanTable, TSendMail, TSendMessage, TUpdateItem, } from './aws';
3
3
  export { atob, btoa } from './base64';
4
- export { default as logger } from './logger/logger';
4
+ export { logger } from './logger/logger';
5
5
  export { asyncReduce, deepFlatten, flatten, List, partial, splitEvery, times, until, } from './utils';
6
6
  export type { APIGatewayEvent, APIGatewayProxyEventV2, Context, } from 'aws-lambda';
7
7
  export { Logger } from 'winston';
@@ -6,5 +6,5 @@ interface ILoggerConfig {
6
6
  level?: string;
7
7
  service: string;
8
8
  }
9
- declare const logger: (config: ILoggerConfig) => Logger;
10
- export default logger;
9
+ export declare const logger: (config: ILoggerConfig) => Logger;
10
+ export type { Logger } from 'winston';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/cloud-toolkit",
3
- "version": "5.2.0-beta.2",
3
+ "version": "5.2.1-beta.1",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [