@xylabs/log 2.10.18 → 2.11.0

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/package.json CHANGED
@@ -43,10 +43,6 @@
43
43
  },
44
44
  "main": "dist/index.js",
45
45
  "module": "dist/index.mjs",
46
- "scripts": {
47
- "package-compile": "tsup && publint",
48
- "package-recompile": "tsup && publint"
49
- },
50
46
  "homepage": "https://xylabs.com",
51
47
  "keywords": [
52
48
  "xylabs",
@@ -58,11 +54,9 @@
58
54
  "rollbar": "^2.26.2"
59
55
  },
60
56
  "devDependencies": {
61
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
62
- "@xylabs/tsconfig": "^2.19.12",
63
- "publint": "^0.2.2",
64
- "rollbar": "^2.26.2",
65
- "tsup": "^7.2.0"
57
+ "@xylabs/ts-scripts-yarn3": "^3.0.0-rc.15",
58
+ "@xylabs/tsconfig": "^3.0.0-rc.15",
59
+ "rollbar": "^2.26.2"
66
60
  },
67
61
  "publishConfig": {
68
62
  "access": "public"
@@ -72,6 +66,6 @@
72
66
  "url": "https://github.com/xylabs/sdk-js.git"
73
67
  },
74
68
  "sideEffects": false,
75
- "version": "2.10.18",
69
+ "version": "2.11.0",
76
70
  "packageManager": "yarn@3.3.1"
77
71
  }
package/src/Log.ts CHANGED
@@ -40,14 +40,14 @@ export class Log {
40
40
  }
41
41
 
42
42
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
43
- public debug(...params: any[]) {
43
+ debug(...params: any[]) {
44
44
  if (this.devMode) {
45
45
  console.debug(params)
46
46
  }
47
47
  }
48
48
 
49
49
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
- public error(...params: any[]) {
50
+ error(...params: any[]) {
51
51
  console.error(params)
52
52
  if (!this.devMode) {
53
53
  this.rollbar?.error(params)
@@ -55,21 +55,21 @@ export class Log {
55
55
  }
56
56
 
57
57
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
- public info(...params: any[]) {
58
+ info(...params: any[]) {
59
59
  if (this.devMode) {
60
60
  console.info(params)
61
61
  }
62
62
  }
63
63
 
64
64
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
65
- public log(...params: any[]) {
65
+ log(...params: any[]) {
66
66
  if (this.devMode) {
67
67
  console.log(params)
68
68
  }
69
69
  }
70
70
 
71
71
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
72
- public warn(...params: any[]) {
72
+ warn(...params: any[]) {
73
73
  console.warn(params)
74
74
  if (!this.devMode) {
75
75
  this.rollbar?.warn(params)
package/tsup.config.ts DELETED
@@ -1,16 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- // eslint-disable-next-line import/no-default-export
4
- export default defineConfig({
5
- bundle: true,
6
- cjsInterop: true,
7
- clean: false,
8
- dts: {
9
- entry: ['src/index.ts'],
10
- },
11
- entry: ['src/index.ts'],
12
- format: ['cjs', 'esm'],
13
- sourcemap: true,
14
- splitting: false,
15
- tsconfig: 'tsconfig.build.json',
16
- })