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

@stoplight/prism-core

Package Overview
Dependencies
Maintainers
27
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 4.0.0-beta.2 to 4.0.0-beta.3

8

dist/factory.js

@@ -5,6 +5,6 @@ "use strict";

const A = require("fp-ts/lib/Array");
const compact_1 = require("lodash/compact");
const defaults_1 = require("lodash/defaults");
const lodash_1 = require("lodash");
const TE = require("fp-ts/lib/TaskEither");
const pipeable_1 = require("fp-ts/lib/pipeable");
const lodash_2 = require("lodash");
const NonEmptyArray_1 = require("fp-ts/lib/NonEmptyArray");

@@ -33,3 +33,3 @@ const types_1 = require("@stoplight/types");

const inputValidation = (resource, input, config) => {
const validations = compact_1.default([
const validations = lodash_1.compact([
config.checkSecurity ? components.validateSecurity({ resource, element: input }) : undefined,

@@ -52,3 +52,3 @@ config.validateRequest ? components.validateInput({ resource, element: input }) : undefined,

request: (input, resources, c) => {
const config = defaults_1.default(c, defaultConfig);
const config = lodash_2.defaults(c, defaultConfig);
return pipeable_1.pipe(TE.fromEither(components.route({ resources, input })), TE.fold(error => {

@@ -55,0 +55,0 @@ if (!config.errors && isProxyConfig(config)) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const pino = require("pino");
const defaultsDeep_1 = require("lodash/defaultsDeep");
const lodash_1 = require("lodash");
function createLogger(name, overrideOptions = {}, destination) {
const options = defaultsDeep_1.default(overrideOptions, {
const options = lodash_1.defaultsDeep(overrideOptions, {
name,

@@ -8,0 +8,0 @@ customLevels: {

{
"name": "@stoplight/prism-core",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"main": "dist/index.js",

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

},
"gitHead": "8cd51a4c2c267687243a8b6ac310238016c3224d"
"gitHead": "15db66ae05fa0a00fe6579a7b6e48ab694c1819d"
}
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