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.1 to 4.0.0-beta.2

8

dist/factory.js

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

const A = require("fp-ts/lib/Array");
const lodash_1 = require("lodash");
const compact_1 = require("lodash/compact");
const defaults_1 = require("lodash/defaults");
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 = lodash_1.compact([
const validations = compact_1.default([
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 = lodash_2.defaults(c, defaultConfig);
const config = defaults_1.default(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 lodash_1 = require("lodash");
const defaultsDeep_1 = require("lodash/defaultsDeep");
function createLogger(name, overrideOptions = {}, destination) {
const options = lodash_1.defaultsDeep(overrideOptions, {
const options = defaultsDeep_1.default(overrideOptions, {
name,

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

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

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

},
"gitHead": "90d60b2ceb406241d89ce6537017b326037bfaaa"
"gitHead": "8cd51a4c2c267687243a8b6ac310238016c3224d"
}
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