@larvit/log 1.6.0 → 1.6.2

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @larvit/log
2
2
 
3
- Zero dependency, structured logging with a simple interface.
3
+ Structured logging with a simple interface and support for OTLP.
4
4
 
5
5
  ## Installation
6
6
 
@@ -46,7 +46,7 @@ function myRequsetHandler(req, res) {
46
46
  // ... Here be loads of request handler logic ...
47
47
 
48
48
  // Explicitly tell that this inner log is now ended.
49
- // This is used to set timings etc.
49
+ // Without this spans and traces does not get sent.
50
50
  reqLog.end();
51
51
  }
52
52
 
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@larvit/log",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "packageManager": "yarn@4.6.0",
7
7
  "scripts": {
8
+ "build-and-publish": "npm run build && npm publish",
8
9
  "build": "rm -f index.js index.d.ts index.js.map && tsc && uglifyjs index.js -o index.js",
9
10
  "lint-fix": "eslint --fix index.ts test.ts",
10
11
  "lint": "eslint index.ts test.ts",
11
- "publish": "npm run build && npm publish",
12
12
  "test-unit": "node --loader ts-node/esm test.ts | tap-spec",
13
13
  "test": "yarn test-unit && yarn lint"
14
14
  },