cat-a-logs 1.1.6 → 1.1.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.
Potentially problematic release.
This version of cat-a-logs might be problematic. Click here for more details.
package/client/index.js
CHANGED
@@ -65,7 +65,7 @@ function catalog(trackedVariable_1, metricName_1, metricNamespace_1) {
|
|
65
65
|
throw new Error('EMF has a limit of 30 user defined dimension keys per log');
|
66
66
|
}
|
67
67
|
logger = new logger_1.Logger({ serviceName: 'serverlessAirline' });
|
68
|
-
ajv = new ajv_1.
|
68
|
+
ajv = new ajv_1.Ajv();
|
69
69
|
emfSchema = {
|
70
70
|
type: 'object',
|
71
71
|
title: 'Root Node',
|
@@ -234,6 +234,7 @@ function catalog(trackedVariable_1, metricName_1, metricNamespace_1) {
|
|
234
234
|
});
|
235
235
|
});
|
236
236
|
}
|
237
|
+
// export { cache, catalog };
|
237
238
|
/*Current Working logger invocation
|
238
239
|
logger.info("Your EMF compliant Structured Metrics Log",
|
239
240
|
Object.assign({
|
package/client/index.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Logger } from '@aws-lambda-powertools/logger';
|
2
|
-
import {
|
3
|
-
import Ajv from 'ajv';
|
2
|
+
import { Ajv } from 'ajv';
|
4
3
|
|
5
4
|
|
6
5
|
|
@@ -219,7 +218,7 @@ const validateEmf = ajv.compile(emfSchema);
|
|
219
218
|
console.log("AFTER:", cache);
|
220
219
|
}
|
221
220
|
}
|
222
|
-
|
221
|
+
// export { cache, catalog };
|
223
222
|
|
224
223
|
/*Current Working logger invocation
|
225
224
|
logger.info("Your EMF compliant Structured Metrics Log",
|
@@ -14,8 +14,7 @@
|
|
14
14
|
import { Logger } from '@aws-lambda-powertools/logger';
|
15
15
|
const logger = new Logger({ serviceName: 'serverlessAirline' });
|
16
16
|
import Ajv from 'ajv';
|
17
|
-
|
18
|
-
import {cache, catalog} from "cat-a-logs/index.js";
|
17
|
+
import catalog from "cat-a-logs/index.js";
|
19
18
|
|
20
19
|
export const lambdaHandler = async (event, context) => {
|
21
20
|
const response = {
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
12
12
|
|
13
13
|
/* Language and Environment */
|
14
|
-
"target": "
|
14
|
+
"target": "ES2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
15
15
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
16
16
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
17
17
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
@@ -25,9 +25,9 @@
|
|
25
25
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
26
26
|
|
27
27
|
/* Modules */
|
28
|
-
"module": "
|
28
|
+
"module": "NodeNext", /* Specify what module code is generated. */
|
29
29
|
"rootDir": "./", /* Specify the root folder within your source files. */
|
30
|
-
|
30
|
+
"moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
|
31
31
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
32
32
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
33
33
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
@@ -51,14 +51,14 @@
|
|
51
51
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
52
52
|
|
53
53
|
/* Emit */
|
54
|
-
|
54
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
55
55
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
56
56
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
57
57
|
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
58
58
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. -BMA: enabled for jest support */
|
59
59
|
"noEmit": true, /* Disable emitting files from a compilation. */
|
60
60
|
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
61
|
-
|
61
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
62
62
|
// "removeComments": true, /* Disable emitting comments. */
|
63
63
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
64
64
|
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|