@epistemology-factory/crocks-web
Advanced tools
Comparing version 0.1.0 to 0.1.1
"use strict"; | ||
const { format } = require("util"); | ||
const { Transform } = require("stream"); | ||
@@ -14,4 +15,2 @@ | ||
const printf = require("printf"); | ||
const LOG_LEVELS = { | ||
@@ -53,2 +52,5 @@ NONE: 0, | ||
// write :: WritableStream -> a -> Boolean | ||
const write = curry((stream, data) => stream.write(data)) | ||
/* | ||
@@ -67,3 +69,3 @@ * `log` takes a writeable stream, the target log level, the level for the message, a | ||
constant(gteq(target, level)), | ||
tap(partial(printf, dest, `[${LOG_LEVEL_STRINGS[level]}]: ${message}`)), | ||
tap(compose(write(dest), partial(format, `[${LOG_LEVEL_STRINGS[level]}]: ${message}`))), | ||
identity | ||
@@ -70,0 +72,0 @@ )(data) |
{ | ||
"name": "@epistemology-factory/crocks-web", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Functions to help write web applications with crocks", | ||
@@ -28,5 +28,4 @@ "scripts": { | ||
"dependencies": { | ||
"@epistemology-factory/crocks-ext": "0.0.14", | ||
"printf": "^0.6.1" | ||
"@epistemology-factory/crocks-ext": "0.0.14" | ||
} | ||
} |
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
5616
2
115
- Removedprintf@^0.6.1
- Removedprintf@0.6.1(transitive)