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

@stoplight/prism-core

Package Overview
Dependencies
Maintainers
19
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/prism-core - npm Package Compare versions

Comparing version 3.2.0-beta.9 to 3.2.0-beta.10

3

dist/logger.d.ts
import * as pino from 'pino';
import { levels } from 'pino';
declare function createLogger(name: string, overrideOptions?: pino.LoggerOptions, destination?: pino.DestinationStream): pino.Logger;
export { levels as logLevels, createLogger };
export { createLogger };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const pino = require("pino");
const pino_1 = require("pino");
exports.logLevels = pino_1.levels;
pino_1.levels.labels[10] = 'note';
pino_1.levels.values.note = 10;
pino_1.levels.labels[11] = 'success';
pino_1.levels.values.success = 11;
pino_1.levels.labels[12] = 'start';
pino_1.levels.values.start = 12;
const lodash_1 = require("lodash");
function createLogger(name, overrideOptions = {}, destination) {
const options = {
...overrideOptions,
const options = lodash_1.defaultsDeep(overrideOptions, {
name,
customLevels: {
note: 10,
success: 11,
start: 12,
success: 12,
},
level: 'note',
level: 'start',
base: {},
timestamp: false,
};
});
if (destination)

@@ -26,0 +16,0 @@ return pino(options, destination);

{
"name": "@stoplight/prism-core",
"version": "3.2.0-beta.9",
"version": "3.2.0-beta.10",
"main": "dist/index.js",

@@ -26,3 +26,3 @@ "types": "dist/index.d.ts",

},
"gitHead": "3388d504cc463cafcf8e2fabf22368b0bac2b315"
"gitHead": "9b8d0188f65fbc42ca43276d2faf5d6cb4519b86"
}
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