@uoa/lambda-tracing 2.2.0 → 2.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/ReleaseSteps.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Steps to release package to npm
2
2
  1. `npm login`
3
3
  2. `npm version <new version>`
4
- 3. Push to git to sync new tags
5
- 4. `npm publish --access=public --otp=<2FA code>`
4
+ 3. Update changelog.md & commit the changes
5
+ 4. Push to git to sync new tags
6
+ 5. `npm publish --access=public --otp=<2FA code>`
6
7
 
7
8
  # Testing locally before release
8
9
  1. `npm pack`
package/changelog.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.1
4
+ - Fix formatting in readme
5
+
3
6
  ## 2.2.0
4
7
  - Added audit level to logger
8
+ - The logger debug, info, warn, and error functions now require a string input
5
9
 
6
10
  ## 2.1.2
7
11
  - Updated XML response parsing to include attribute tags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoa/lambda-tracing",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Library for logging & distributed tracing in UoA Lambda projects",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -126,8 +126,7 @@ logger.audit({application: "applicationName", action: "read", resourceId: "12345
126
126
  ```
127
127
  Will produce the following log message:
128
128
  ```text
129
- 2024-04-12T00:58:05.321Z [-] AUDIT src.controller.person-controller - [[[TraceId,SpanId,Info]]] application:applicationName accessedBy:upi1234 action:read owner:upi5678
130
- resourceType:personalDetails resourceId:123456789 Additional useful info
129
+ 2024-04-12T00:58:05.321Z [-] AUDIT src.controller.person-controller - [[[TraceId,SpanId,Info]]] application:applicationName accessedBy:upi1234 action:read owner:upi5678 resourceType:personalDetails resourceId:123456789 Additional useful info
131
130
  ```
132
131
 
133
132
  ### Distributed Tracing