Skip to content

Commit

Permalink
Move to TroJS
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed May 21, 2024
1 parent 6502889 commit 196f4c5
Show file tree
Hide file tree
Showing 9 changed files with 486 additions and 473 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contributing

HckrNews Logger is Free and Open Source Software. Issues and pull requests are more than welcome!
TroJS Logger is Free and Open Source Software. Issues and pull requests are more than welcome!
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Hckr.News
Copyright (c) 2024 TroJS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Generic logger with intergrations for e.g. Sentry

```javascript
import makeLogger from '@hckrnews/logger';
import makeLogger from '@trojs/logger';

const logger = makeLogger({
level: 'info',
Expand Down
922 changes: 468 additions & 454 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@hckrnews/logger",
"description": "Winston logger for Hckrnews",
"version": "0.3.4",
"name": "@trojs/logger",
"description": "Winston logger for TroJS",
"version": "0.4.0",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
"url": "https://trojs.org/"
},
"license": "MIT",
"scripts": {
"lint": "eslint src/*.js --config .eslintrc",
"lint:report": "eslint src/*.js --config .eslintrc -f json -o report.json",
"lint:fix": "eslint src/*.js --config .eslintrc --fix",
"test": "c8 node --test src/",
"lint:fix": "eslint src/ --config .eslintrc --fix",
"test": "c8 node --test",
"cpd": "node_modules/jscpd/bin/jscpd src",
"vulnerabilities": "npm audit --omit=dev"
},
Expand All @@ -31,7 +31,7 @@
],
"main": "src/logger.js",
"devDependencies": {
"@hckrnews/error": "^2.0.0",
"@trojs/error": "^3.0.0",
"@hckrnews/eslint-config": "^3.0.0",
"c8": "^9.0.0",
"eslint": "^8.23.0",
Expand All @@ -41,8 +41,7 @@
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-sonarjs": "^0.24.0",
"jscpd": "^3.2.1",
"sinon": "^17.0.0"
"jscpd": "^3.2.1"
},
"repository": {
"type": "git",
Expand All @@ -58,9 +57,9 @@
"error"
],
"dependencies": {
"@hckrnews/enum": "^3.0.0",
"@hckrnews/mutator": "^0.3.2",
"@hckrnews/objects": "^7.0.0",
"@trojs/enum": "^3.0.0",
"@trojs/mutator": "^0.4.0",
"@trojs/objects": "^8.0.0",
"@sentry/integrations": "^7.36.0",
"@sentry/node": "^7.36.0",
"@sentry/tracing": "^7.36.0",
Expand Down
2 changes: 1 addition & 1 deletion src/models/enums/level.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Enum } from '@hckrnews/enum'
import { Enum } from '@trojs/enum'

/**
* @typedef LevelType
Expand Down
2 changes: 1 addition & 1 deletion src/models/logger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Obj } from '@hckrnews/objects'
import { Obj } from '@trojs/objects'
import loggerSchema from './schemas/logger.js'
import LoggerMutator from './mutators/logger.js'

Expand Down
2 changes: 1 addition & 1 deletion src/models/mutators/logger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DefaultMutator from '@hckrnews/mutator'
import DefaultMutator from '@trojs/mutator'
import LevelEnum from '../enums/level.js'

/**
Expand Down

0 comments on commit 196f4c5

Please sign in to comment.