loglevel-datadog 1.0.0 → 1.0.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.
@@ -2,9 +2,9 @@ import { datadogLogs, } from '@datadog/browser-logs';
2
2
  const STATUS_TYPE = {
3
3
  0: 'debug',
4
4
  1: 'debug',
5
- 2: 'error',
6
- 3: 'info',
7
- 4: 'warn',
5
+ 2: 'info',
6
+ 3: 'warn',
7
+ 4: 'error',
8
8
  5: 'debug',
9
9
  };
10
10
  export function loglevelDatadog(logger, datadogConfiguration, statusTypesMap = STATUS_TYPE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loglevel-datadog",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "loglevel plugin to send logs from the browser to Datadog via the datadog browser logs SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,9 @@
12
12
  "test": "echo \"Error: no test specified\" && exit 1",
13
13
  "prepublish": "npm run build",
14
14
  "prepare": "husky install",
15
- "semantic-release": "semantic-release"
15
+ "semantic-release": "semantic-release",
16
+ "lint": "eslint --ext .ts src",
17
+ "lint:fix": "npm run lint -- --fix"
16
18
  },
17
19
  "repository": {
18
20
  "type": "git",
@@ -44,16 +46,17 @@
44
46
  "devDependencies": {
45
47
  "@tsconfig/recommended": "^1.0.1",
46
48
  "@types/node": "^16.7.13",
47
- "@typescript-eslint/eslint-plugin": "^4.33.0",
48
- "@typescript-eslint/parser": "^4.33.0",
49
- "eslint": "^7.32.0",
49
+ "@typescript-eslint/eslint-plugin": "^5.5.0",
50
+ "@typescript-eslint/parser": "^5.5.0",
51
+ "eslint": "^8.3.0",
50
52
  "eslint-config-prettier": "^8.3.0",
51
53
  "eslint-plugin-import": "^2.25.3",
54
+ "eslint-plugin-prettier": "^4.0.0",
52
55
  "husky": "^7.0.4",
53
56
  "lint-staged": "^11.2.6",
54
- "prettier": "2.4.0",
55
- "typescript": "^4.4.2",
56
- "semantic-release": "^18.0.1"
57
+ "prettier": "^2.5.0",
58
+ "semantic-release": "^18.0.1",
59
+ "typescript": "^4.4.2"
57
60
  },
58
61
  "lint-staged": {
59
62
  "*.js": "eslint --cache --fix",