New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@validatem/core

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@validatem/core - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

11

package.json
{
"name": "@validatem/core",
"description": "The last validation library you'll ever need.",
"keywords": ["validation", "input", "verification", "data"],
"version": "0.3.0",
"keywords": [
"validation",
"input",
"verification",
"data"
],
"version": "0.3.1",
"main": "index.js",

@@ -21,6 +26,6 @@ "repository": "http://git.cryto.net/validatem/core.git",

"@validatem/validation-result": "^0.1.1",
"array.prototype.flat": "^1.2.3",
"assure-array": "^1.0.0",
"create-error": "^0.3.1",
"default-value": "^1.0.0",
"flatten": "^1.0.3",
"is-arguments": "^1.0.4"

@@ -27,0 +32,0 @@ },

"use strict";
const isArguments = require("is-arguments");
const flat = require("array.prototype.flat");
const flatten = require("flatten");

@@ -49,3 +49,3 @@ const ValidationError = require("@validatem/error");

let combinedErrors = results.map((result) => result.errors);
let flattenedErrors = flat(combinedErrors);
let flattenedErrors = flatten(combinedErrors); // TODO: Switch to `Array#flat` once Node 10.x goes EOL (April 2021)

@@ -52,0 +52,0 @@ let newValues = results.map((result) => result.newValue);

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