Socket
Socket
Sign inDemoInstall

@epistemology-factory/crocks-web

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epistemology-factory/crocks-web - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

logging/logger.js
"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"
}
}
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