Socket
Socket
Sign inDemoInstall

@epistemology-factory/crocks-web

Package Overview
Dependencies
7
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.8 to 0.3.9

validation/validators/boolean.js

2

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

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

@@ -14,2 +14,11 @@ "use strict";

const isBoolStringFailure = (path, value) => {
return aValidationFailure(
path,
CONSTRAINTS.IS_BOOL_STRING,
DEFAULT_MESSAGES[CONSTRAINTS.IS_BOOL_STRING],
value
);
}
const isDefinedFailure = (path) => {

@@ -62,2 +71,3 @@ return aValidationFailure(

aValidationFailure,
isBoolStringFailure,
isDefinedFailure,

@@ -64,0 +74,0 @@ isIntStringFailure,

"use strict";
const CONSTRAINTS = {
IS_BOOL_STRING: "is-bool-string",
IS_DEFINED: "is-defined",

@@ -14,2 +15,3 @@ IS_INT_STRING: "is-int-string",

const DEFAULT_MESSAGES = {
[CONSTRAINTS.IS_BOOL_STRING]: "should be a boolean string",
[CONSTRAINTS.IS_DEFINED]: "should not be null or undefined",

@@ -16,0 +18,0 @@ [CONSTRAINTS.IS_INT_STRING]: "should be an integer string",

"use strict";
module.exports = {
...require("./boolean"),
...require("./common"),

@@ -5,0 +6,0 @@ ...require("./constraints"),

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc