Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.3.4 to 0.3.5

2

package.json
{
"name": "@epistemology-factory/crocks-web",
"version": "0.3.4",
"version": "0.3.5",
"description": "Functions to help write web applications with crocks",

@@ -5,0 +5,0 @@ "scripts": {

@@ -5,2 +5,3 @@ "use strict";

IS_DEFINED: "is-defined",
IS_INT_STRING: "is-int-string",
IS_ISO_DATE: "is-iso-date",

@@ -14,2 +15,3 @@ IS_JSON: "is-json",

[CONSTRAINTS.IS_DEFINED]: "should not be null or undefined",
[CONSTRAINTS.IS_INT_STRING]: "should be an integer string",
[CONSTRAINTS.IS_ISO_DATE]: "should be an ISO date",

@@ -16,0 +18,0 @@ [CONSTRAINTS.IS_JSON]: "must be valid JSON",

@@ -30,5 +30,15 @@ "use strict";

// isIntString :: [ String ] -> a -> Result ValidationFailure a
const isIntString = makeValidator(
matchesRegex(/^\d+$/),
validationFailure(
CONSTRAINTS.IS_INT_STRING,
DEFAULT_MESSAGES[CONSTRAINTS.IS_INT_STRING]
)
)
module.exports = {
isIntString,
isISODate,
isString
}

@@ -38,3 +38,3 @@ "use strict";

// parseBody :: (a -> Result Object) -> Object -> Result Object
// parseBody :: ([ String ] -> a -> Result Object) -> Object -> Result Object
const parseBody = curry((parse) =>

@@ -41,0 +41,0 @@ pipeK(

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