Skip to content

Commit

Permalink
Merge pull request #83 from markayers/markayers/EnsureUglyStyleString…
Browse files Browse the repository at this point in the history
…ReturnType

return str as template literal to handle line numbers
  • Loading branch information
terehov authored Jan 20, 2021
2 parents 1cd0dbc + e6cce61 commit ac00d86
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 3 deletions.
84 changes: 84 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# OS X temporary files
.DS_Store

# Rush temporary files
common/temp/
**/.rush/temp/

# IDE
.idea

# don't check in build files
/temp/

# Don't commit tsdoc meta
/src/tsdoc-metadata.json

# Ignore source on NPM
/src/

# Ignore banchmarks
/benchmarks/

# Ignore Tests
/tests/

# Ignore Docs
/docs/

# Ignore Examples
/examples/

# Ignore Git hooks
/git-hooks/
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tslog",
"version": "3.0.3",
"version": "3.0.5",
"description": "📝 Expressive TypeScript Logger for Node.js: Pretty errors, stack traces, code frames, and JSON output to attachable transports.",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/LoggerHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class LoggerHelper {
resultStr
);
}, str)
: str;
: `${str}`;
}

private static _stylizeWithColor<T>(
Expand Down

0 comments on commit ac00d86

Please sign in to comment.