New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logflake

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logflake - npm Package Compare versions

Comparing version 1.1.3 to 1.2.3

6

dist/index.js

@@ -107,3 +107,7 @@ "use strict";

if (_level === void 0) { _level = level; }
return log.apply(void 0, __spreadArray([_level], argc));
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
return log.apply(void 0, __spreadArray([_level], __spreadArray(__spreadArray([], argc), args)));
}

@@ -110,0 +114,0 @@ };

2

package.json
{
"name": "logflake",
"version": "1.1.3",
"version": "1.2.3",
"description": "Better console messages for NodeJS",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -481,6 +481,6 @@ # LogFlake

```
fire(level?: string): chain
fire(level?: string, args?: any): chain
```
When using references, you can use `fire` to trigger the referenced log. When using `fire`, you also gets a new log function. The `level` parameter on this function overrides the original log level. For example:
When using references, you can use `fire` to trigger the referenced log. When using `fire`, you also gets a new log function. The `level` parameter on this function overrides the original log level, and the `args` increments the original parameters. For example:

@@ -513,2 +513,28 @@ ```js

Or increment te original parameters:
```js
const reportFileError = log('quiet', 'There was an error on the file %s');
// output: There was an error on the file index.js
reportFileError.fire('error', 'index.js');
```
```js
const logProcessedObject = log('quiet', 'Object processed: ');
// output: Object processed: { fizz: 1, buzz: 2 }
logProcessedObject.fire('info', { fizz: 1, buzz: 2});
// output: Object processed: { fizz: 1, buzz: 2 } { fizzbuzz: 3 }
logProcessedObject.fire('info', { fizz: 1, buzz: 2}, { fizzbuzz: 3 });
```
When calling with a level different than "quiet", the first log will be triggered
```js
const info = log('info', 'Something happened'); // will log "Something happened"
logIt.fire(); // will log "Something happened" again (produces a new log function)
```
# Events

@@ -515,0 +541,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc