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.4.1 to 7.4.2

2

dist/src/Roarr.js

@@ -26,3 +26,3 @@ "use strict";

sequence: {
type: 'integer',
type: 'string',
},

@@ -29,0 +29,0 @@ time: {

@@ -33,2 +33,3 @@ "use strict";

const { Roarr, ROARR, } = await Promise.resolve().then(() => __importStar(require('../../../src/Roarr')));
sinon.restore();
const write = sinon.stub(ROARR, 'write');

@@ -48,3 +49,15 @@ // eslint-disable-next-line @typescript-eslint/no-empty-function

t.is(write.firstCall.args.length, 1);
t.regex(write.firstCall.args[0], /{"context":{"logLevel":30},"message":"foo","sequence":0,"time":\d+,"version":"\d\.\d\.\d"}/);
t.regex(write.firstCall.args[0], /{"context":{"logLevel":30},"message":"foo","sequence":"0","time":\d+,"version":"\d\.\d\.\d"}/);
});
test('produces sequence', (t) => {
const { Roarr, write, } = t.context;
const log = Roarr;
log.adopt(() => {
log.adopt(() => {
log.info('foo');
});
});
t.is(write.callCount, 1);
t.is(write.firstCall.args.length, 1);
t.regex(write.firstCall.args[0], /{"context":{"logLevel":30},"message":"foo","sequence":"1.0.0","time":\d+,"version":"\d\.\d\.\d"}/);
});

@@ -76,3 +76,3 @@ {

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