Comparing version 2.1.0 to 3.0.0
{ | ||
"name": "bhala", | ||
"description": "A pretty (!), powerful and customizable logging library for Node.js.", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"sideEffects": false, | ||
"main": "./dist/index.js", | ||
"exports": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"engine": { | ||
"node": ">=14" | ||
}, | ||
"scripts": { | ||
"build": "rm -Rf ./dist && rollup -c", | ||
"build:watch": "rollup -cw", | ||
"build": "rm -Rf ./dist && tsc", | ||
"build:watch": "tsc-watch", | ||
"dev": "yarn build && concurrently \"yarn build:watch\" \"yarn dev:simulate\"", | ||
@@ -17,27 +25,37 @@ "dev:simulate": "nodemon --delay 2.5 --watch ./dist --watch ./examples/demo.js ./examples/demo.js", | ||
"dependencies": { | ||
"chalk": "^4.1.2", | ||
"node-emoji": "^1.11.0" | ||
"chalk": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ivangabriele/commitlint-config": "1.0.2", | ||
"@ivangabriele/eslint-config-typescript-base": "2.1.4", | ||
"@ivangabriele/prettier-config": "2.0.2", | ||
"@ivangabriele/semantic-release-config-base": "1.2.0", | ||
"@rollup/plugin-node-resolve": "13.1.2", | ||
"@rollup/plugin-typescript": "8.3.0", | ||
"@types/node": "16.11.17", | ||
"@types/node-emoji": "1.8.1", | ||
"@types/prettier": "2.4.2", | ||
"@types/shelljs": "0.8.10", | ||
"concurrently": "6.5.1", | ||
"@commitlint/cli": "16.1.0", | ||
"@commitlint/config-conventional": "16.0.0", | ||
"@ivangabriele/commitlint-config": "1.0.5", | ||
"@ivangabriele/eslint-config-typescript-base": "3.0.1", | ||
"@ivangabriele/prettier-config": "3.0.2", | ||
"@ivangabriele/semantic-release-config-base": "2.0.2", | ||
"@types/node": "16.11.24", | ||
"@typescript-eslint/eslint-plugin": "5.10.0", | ||
"@typescript-eslint/parser": "5.10.0", | ||
"concurrently": "7.0.0", | ||
"eslint": "7.32.0", | ||
"eslint-config-airbnb": "19.0.4", | ||
"eslint-config-airbnb-typescript": "15.0.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-import": "2.25.4", | ||
"eslint-plugin-jest": "25.7.0", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"eslint-plugin-sort-destructure-keys": "1.4.0", | ||
"eslint-plugin-sort-keys-fix": "1.1.2", | ||
"eslint-plugin-typescript-sort-keys": "2.1.0", | ||
"husky": "7.0.4", | ||
"jest": "27.4.5", | ||
"jest": "27.5.1", | ||
"nodemon": "2.0.15", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.62.0", | ||
"rollup-plugin-node-polyfills": "0.2.1", | ||
"shelljs": "0.8.4", | ||
"typescript": "4.5.4", | ||
"wait-on": "6.0.0" | ||
"prettier": "2.5.1", | ||
"tsc-watch": "4.6.0", | ||
"typescript": "4.4.4", | ||
"wait-on": "6.0.1" | ||
}, | ||
"prettier": "@ivangabriele/prettier-config", | ||
"release": { | ||
"extends": "@ivangabriele/semantic-release-config-base" | ||
}, | ||
"author": { | ||
@@ -51,8 +69,2 @@ "name": "Ivan Gabriele", | ||
}, | ||
"engine": { | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
"/dist" | ||
], | ||
"homepage": "https://github.com/ivangabriele/bhala#readme", | ||
@@ -71,15 +83,9 @@ "keywords": [ | ||
], | ||
"main": "./dist/index.js", | ||
"prettier": "@ivangabriele/prettier-config", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"release": { | ||
"extends": "@ivangabriele/semantic-release-config-base" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ivangabriele/bhala.git" | ||
}, | ||
"types": "./dist/index.d.ts" | ||
} | ||
} |
@@ -43,3 +43,2 @@ <p align="center"> | ||
- [Contants](#contants) | ||
- [`EMO`](#emo) | ||
- [Methods](#methods) | ||
@@ -53,3 +52,2 @@ - [`debug()`](#debug) | ||
- [`warn()`](#warn) | ||
- [Name](#name) | ||
@@ -70,13 +68,7 @@ ## Install | ||
A not-so-serious proposed practice is to use the `ß` character to reference **bhala** library. | ||
- Linux: DuckDuckGo it! | ||
- macOS: <kbd>Option</kbd> + <kbd>s</kbd> | ||
- Windows: <kbd>Alt</kbd> + <kbd>2</kbd><kbd>2</kbd><kbd>5</kbd> | ||
```js | ||
import ß from 'bhala'; | ||
import { B } from 'bhala'; | ||
ß.log('Here is a wonderful log.'); | ||
ß.event('Here is a wonderful event.'); | ||
B.log('Here is a wonderful log.'); | ||
B.event('Here is a wonderful event.'); | ||
``` | ||
@@ -88,6 +80,2 @@ | ||
#### `EMO` | ||
List of emoji keys that should named like you do in Markdown, i.e.: `computer` for `:computer:`. | ||
### Methods | ||
@@ -98,3 +86,3 @@ | ||
```ts | ||
ß.debug(...messages: string[]) | ||
B.debug(...messages: string[]) | ||
``` | ||
@@ -105,3 +93,3 @@ | ||
```ts | ||
ß.error(...messages: string[]) | ||
B.error(...messages: string[]) | ||
``` | ||
@@ -112,3 +100,3 @@ | ||
```ts | ||
ß.event(...messages: string[]) | ||
B.event(...messages: string[]) | ||
``` | ||
@@ -119,3 +107,3 @@ | ||
```ts | ||
ß.info(...messages: string[]) | ||
B.info(...messages: string[]) | ||
``` | ||
@@ -126,3 +114,3 @@ | ||
```ts | ||
ß.log(...messages: string[]) | ||
B.log(...messages: string[]) | ||
``` | ||
@@ -133,3 +121,3 @@ | ||
```ts | ||
ß.success(...messages: string[]) | ||
B.success(...messages: string[]) | ||
``` | ||
@@ -140,12 +128,3 @@ | ||
```ts | ||
ß.warn(...messages: string[]) | ||
B.warn(...messages: string[]) | ||
``` | ||
## Name | ||
You may wonder why "bhala"? It means "write" in Zulu, which you can learn [how to conjugate][link-bhala] (ngibhala, | ||
ubhala, etc) if you also love learning new languages 😉. | ||
--- | ||
[link-bhala]: https://en.wikipedia.org/wiki/Zulu_grammar#Verbs |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
182865
1
24
0
Yes
27
139
120
1
+ Addedchalk@5.4.1(transitive)
- Removednode-emoji@^1.11.0
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removednode-emoji@1.11.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedchalk@^5.0.0