Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

roarr

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roarr - npm Package Compare versions

Comparing version 7.8.2 to 7.9.0

dist/test/helpers/createIntegrationTest.d.ts

10

dist/src/factories/createLogger.js

@@ -65,6 +65,12 @@ "use strict";

else {
let fallbackMessage = b;
if (typeof b !== 'string') {
throw new TypeError('Message must be a string. Received ' + typeof b + '.');
if (b === undefined) {
fallbackMessage = '';
}
else {
throw new TypeError('Message must be a string. Received ' + typeof b + '.');
}
}
message = (0, fast_printf_1.printf)(b, c, d, e, f, g, h, i, j);
message = (0, fast_printf_1.printf)(fallbackMessage, c, d, e, f, g, h, i, j);
}

@@ -71,0 +77,0 @@ onMessage({

@@ -63,2 +63,25 @@ "use strict";

});
(0, ava_1.default)('logs an empty message when first parameter is an object and the second parameter is undefined', (t) => {
const log = createLoggerWithHistory();
// @ts-expect-error Invalid invocation
log({});
t.deepEqual(log.messages, [
{
context: {},
message: '',
sequence: '0',
time,
version,
},
]);
});
(0, ava_1.default)('throws in case of invalid invocation', (t) => {
const log = createLoggerWithHistory();
t.throws(() => {
// @ts-expect-error Invalid invocation
log({}, {});
}, {
message: 'Message must be a string. Received object.',
});
});
(0, ava_1.default)('formats message using sprintf', (t) => {

@@ -65,0 +88,0 @@ const log = createLoggerWithHistory();

2

package.json

@@ -75,3 +75,3 @@ {

"typings": "./dist/src/Roarr.d.ts",
"version": "7.8.2"
"version": "7.9.0"
}
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