Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@bearer/logger
Advanced tools
We recommend to create a logger file within you project
// my-logger.ts
import debug from '@bearer/logger'
export default () => debug('my-package-name')
then in your app
import debug from 'path/to/my-logger'
const logger = debug()
logger('message to debug')
logger({ object: 'something' })
// sub logger
const subLogger = logger.extend('sub-feature')
subLogger('blablabl')
You'll need to set DEBUG=*
to see all logs or DEBUG=bearer:my-package-name
to see logs produced by your application.
We assume you are writing a bearer integration.
views/src/my-component.tsx
import debug from '@bearer/logger'
const logger = debug('a-scope-you-provide')
class MyComponent {
componentDidLoad() {
logger('Loaded')
}
}
if you want to see logs you must enable it by setting the localStorage.debug
value from your console
Show all logs
localStorage.debug = '*'
Show bearer logs only
localStorage.debug = 'bearer:*'
Show your integration logs only
localStorage.debug = 'bearer:a-scope-you-provide:*'
FAQs
Bearer logger
The npm package @bearer/logger receives a total of 25 weekly downloads. As such, @bearer/logger popularity was classified as not popular.
We found that @bearer/logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.