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

bs-awesomize

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-awesomize - npm Package Compare versions

Comparing version 1.4.7 to 1.4.8

2

bsconfig.json
{
"name": "bs-awesomize",
"version": "1.4.7",
"version": "1.4.8",
"package-specs": {

@@ -5,0 +5,0 @@ "module": "commonjs",

{
"name": "bs-awesomize",
"version": "1.4.7",
"version": "1.4.8",
"description": "A ReasonML implementation of the Awesomize validation and data scrubbing library.",

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

@@ -116,2 +116,25 @@ // Generated by BUCKLESCRIPT VERSION 3.0.0, PLEASE EDIT WITH CARE

function isBigInt(param, param$1) {
return stringTest((function (str) {
var isZero = function (s) {
return (/^\-\d+|0+$/).test(s);
};
var isBigIntLike = function (s) {
return (/^\d{1,20}$/).test(s);
};
if (str.length > 20) {
return /* Some */["maximum"];
} else if (isZero(str)) {
return /* Some */["minimum"];
} else {
var match = isBigIntLike(str);
if (match) {
return /* None */0;
} else {
return /* Some */["not_big_int"];
}
}
}), param, param$1);
}
function isEqualNumber(x) {

@@ -156,2 +179,41 @@ return (function (param, param$1) {

function maxStringLength(length) {
return (function (param, param$1) {
return stringTest((function (str) {
var match = str.length <= length;
if (match) {
return /* None */0;
} else {
return /* Some */["max_length"];
}
}), param, param$1);
});
}
function maxNumber(max) {
return (function (param, param$1) {
return numberTest((function (n) {
var match = n <= max;
if (match) {
return /* None */0;
} else {
return /* Some */["maximum"];
}
}), param, param$1);
});
}
function minNumber(min) {
return (function (param, param$1) {
return numberTest((function (n) {
var match = n >= min;
if (match) {
return /* None */0;
} else {
return /* Some */["minimum"];
}
}), param, param$1);
});
}
function externRaw(fn, msg, maybe, sanitized) {

@@ -328,2 +390,3 @@ return reply(msg, Promise.resolve(Curry._2(fn, maybe, sanitized)));

exports.externDependentString = externDependentString;
exports.isBigInt = isBigInt;
exports.externNumber = externNumber;

@@ -337,2 +400,5 @@ exports.externRaw = externRaw;

exports.minStringLength = minStringLength;
exports.maxStringLength = maxStringLength;
exports.maxNumber = maxNumber;
exports.minNumber = minNumber;
exports.notEqualNumber = notEqualNumber;

@@ -339,0 +405,0 @@ exports.notEqualString = notEqualString;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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