Compare commits

..

7 commits

Author SHA1 Message Date
mambuco
1c396feba2 Update CHANGELOGS.md 2023-09-03 22:19:45 +02:00
mambuco
a7c0bee5cf Fixed a problem cause by KillerBoss 2023-09-03 22:18:09 +02:00
5b2ebd3e90 Update src/index.ts 2023-09-03 16:49:34 +02:00
18d07c3b64 removed npmrc 2023-09-03 16:30:14 +02:00
aade8a4107 Fix Repository Settings? 2023-09-03 16:13:59 +02:00
Gabriele Giambrone
d56eb00801 Update package.json 2023-09-03 00:27:47 +02:00
Gabriele Giambrone
d39c56761b Added Mambuco to authors 2023-09-03 00:27:16 +02:00
5 changed files with 8 additions and 32 deletions

View file

@ -1,26 +0,0 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
Publish-NPM:
runs-on: node1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@thundernetworkrad'
- name: Install Dependencies
run: npm i
- name: Build
run: npm run build
- name: Publish package on NPM 📦
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
REGISTRY1: 'registry.npmjs.org'
REGISTRY2: 'registry=https://registry.npmjs.org/'

2
.npmrc
View file

@ -1,2 +0,0 @@
//${REGISTRY1}/:_authToken=${NODE_AUTH_TOKEN}
${REGISTRY2}

View file

@ -2,6 +2,10 @@
Here are the changelogs since the first package version. Here are the changelogs since the first package version.
## 2023.09.03
- Cleaned up some files
## 2023.09.02 ## 2023.09.02
- Migrated to CHANGELOGS.md - Migrated to CHANGELOGS.md

View file

@ -1,6 +1,6 @@
{ {
"name": "node-cout", "name": "node-cout",
"version": "2023.09.02", "version": "2023.09.03",
"description": "Standard output module for JavaScript / TypeScript", "description": "Standard output module for JavaScript / TypeScript",
"main": "build/index.js", "main": "build/index.js",
"types": "build/index.d.ts", "types": "build/index.d.ts",
@ -26,7 +26,7 @@
"await", "await",
"log" "log"
], ],
"author": "Thunder Network RaD | Killer Boss Original", "author": "Thunder Network RaD | Killer Boss Original, Mambuco",
"license": "Mozilla Public License 2.0", "license": "Mozilla Public License 2.0",
"bugs": { "bugs": {
"url": "https://source.thundernetwork.org/ThunderNetworkRaD/node-cout/issues" "url": "https://source.thundernetwork.org/ThunderNetworkRaD/node-cout/issues"

View file

@ -71,12 +71,12 @@ export default class cout {
} }
if (this.save) { if (this.save) {
string.split("\n").forEach((line) => { string.split("\n").forEach((line) => {
log(`${this.emoji && emoji}[${time} ${type}] | ${line}`); log(`${this.emoji ? emoji : ''}[${time} ${type}] | ${line}`);
}) })
} }
stringc.split("\n").forEach((line) => { stringc.split("\n").forEach((line) => {
console.log(`${this.emoji && emojic}[${timec} ${typec}] | ${line}`); console.log(`${this.emoji ? emojic : ''}[${timec} ${typec}] | ${line}`);
}) })
} }