itivrutaha 3.0.0 → 3.1.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/bun.lockb CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { defaultConfig } from './config.js';
2
- export { itivrutaha } from './itivrutaha.js';
2
+ export { itivrutaha, ExtractScopes } from './itivrutaha.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Entryfile for itivrutaha logging module.
2
+ * Entry file for itivrutaha logging module.
3
3
  * Created On 29 October 2023
4
4
  */
5
5
  export { defaultConfig } from './config.js';
@@ -1,2 +1,3 @@
1
1
  import { type Config, type UnifiedData } from './config.js';
2
2
  export declare function itivrutaha<Scope extends string, LogTypeName extends string>(config: Config<Scope, LogTypeName>): { [Type in LogTypeName]: (msgOrData: string | UnifiedData<Scope> | Error, data?: any, scope?: Scope) => void; };
3
+ export type ExtractScopes<T> = T extends ReturnType<typeof itivrutaha<infer S extends string, any>> ? S : never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itivrutaha",
3
3
  "description": "( इतिवृत्तः ) — An 👌 easy-to-use, 🛠️ configurable, Bun-first ⚡ console logger.",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -17,25 +17,25 @@
17
17
  "url": "https://github.com/vsnthdev/itivrutaha.git"
18
18
  },
19
19
  "scripts": {
20
- "dev": "tsc --watch",
20
+ "dev": "bun run --bun tsc --watch",
21
21
  "clean": "rimraf dist",
22
22
  "lint": "eslint --fix .",
23
- "prepare": "husky install",
24
- "build": "rimraf dist && tsc"
23
+ "prepare": "husky",
24
+ "build": "rimraf dist && bun run --bun tsc"
25
25
  },
26
26
  "dependencies": {
27
- "chalk": "^5.3.0",
27
+ "chalk": "^5.4.1",
28
28
  "cli-highlight": "^2.1.11",
29
29
  "date-format": "^4.0.14"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^20.10.6",
32
+ "@types/node": "^22.10.3",
33
33
  "@typescript-eslint/eslint-plugin": "latest",
34
34
  "@typescript-eslint/parser": "latest",
35
35
  "eslint": "latest",
36
36
  "eslint-plugin-perfectionist": "^2.5.0",
37
- "husky": "^8.0.3",
38
- "rimraf": "^5.0.5",
39
- "typescript": "^5.3.3"
37
+ "husky": "^9.1.7",
38
+ "rimraf": "^6.0.1",
39
+ "typescript": "^5.7.2"
40
40
  }
41
41
  }