@epistemology-factory/crocks-web
Advanced tools
Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "@epistemology-factory/crocks-web", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Functions to help write web applications with crocks", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -25,3 +25,3 @@ "use strict"; | ||
// validators :: Foldable f => f -> [ String ] -> a -> Result ValidationFailure a | ||
// validators :: Foldable f => f ([ String ] -> a -> Result ValidationFailure a) | ||
const validators = (...validators) => | ||
@@ -28,0 +28,0 @@ pipe( |
"use strict"; | ||
const Assign = require("crocks/Assign"); | ||
const compose = require("crocks/helpers/compose"); | ||
@@ -17,3 +15,3 @@ const flip = require("crocks/combinators/flip"); | ||
// getLogger :: (Integer -> Integer -> String -> a -> a) -> Object -> Result Object Assign | ||
// getLogger :: (Integer -> Integer -> String -> a -> a) -> Object -> Result Object | ||
const getLogger = (logger) => | ||
@@ -23,3 +21,3 @@ pipe( | ||
flip(getProp(() => invalidEnvVar("LOG_LEVEL")), LOG_LEVELS), | ||
map(compose(Assign, objOf("logger"), logger)) | ||
map(compose(objOf("logger"), logger)) | ||
) | ||
@@ -26,0 +24,0 @@ |
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
32585
915