@stoplight/prism-core
Advanced tools
Comparing version 4.0.0-beta.1 to 4.0.0-beta.2
@@ -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" | ||
} |
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
18337