Skip to content

Commit

Permalink
feat: Update @secjs/logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Nov 4, 2021
1 parent 4e8daaf commit 92f2871
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import chalk from 'chalk'
import figlet from 'figlet'

import { Command } from 'commander'
import { Logger } from '@secjs/logger'
import { dirname, resolve } from 'path'
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jlenon7/templating",
"version": "1.0.8",
"version": "1.0.9",
"description": "",
"license": "MIT",
"author": "João Lenon",
Expand Down Expand Up @@ -144,7 +144,7 @@
"index.d.ts"
],
"dependencies": {
"@secjs/logger": "1.1.7",
"@secjs/logger": "1.2.1",
"@secjs/contracts": "1.1.6",
"@secjs/exceptions": "1.0.3",
"@secjs/utils": "1.3.8",
Expand Down
8 changes: 6 additions & 2 deletions src/Templating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export class Templating {

if (value.includes('{{ ')) return

this.logger.warn(`📝 Formatting ${k} to ${value}`, 'EnvFormatter')
this.logger.warn(`📝 Formatting ${k} to ${value}`, {
context: 'EnvFormatter',
})

template = template.replace(this.matcher(k), value)
})
Expand Down Expand Up @@ -63,7 +65,9 @@ export class Templating {
Object.keys(fields).forEach(k => {
const value = fields[k]

this.logger.warn(`📝 Formatting ${k} to ${value}`, 'FieldFormatter')
this.logger.warn(`📝 Formatting ${k} to ${value}`, {
context: 'FieldFormatter',
})

template = template.replace(this.matcher(k), value)
})
Expand Down

0 comments on commit 92f2871

Please sign in to comment.