@stoplight/prism-core
Advanced tools
Comparing version 4.0.0-beta.2 to 4.0.0-beta.3
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18295