Socket
Socket
Sign inDemoInstall

validation.ts

Package Overview
Dependencies
2
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

4

package.json
{
"name": "validation.ts",
"version": "0.0.3",
"version": "0.0.4",
"description": "Validation for TypeScript",

@@ -9,3 +9,3 @@ "main": "lib/validation.js",

"dependencies": {
"space-lift": "0.3.0"
"space-lift": "0.3.1"
},

@@ -12,0 +12,0 @@

@@ -25,3 +25,15 @@ # validation.ts

In case of errors, The `Result` contains an Array of `{ message: string, context: string }` where `message` is a debug error message for developers and `context` is the path where the error occured (e.g `root / data / 0 / name`)
`errorDebugString` will give you a complete debug string of all errors, e.g.
```
At [root / c] Error validating the key. "c" is not a key of {
"a": true,
"b": true
}
At [root / c] Error validating the value. Type error: expected number but got string
```
## primitives

@@ -28,0 +40,0 @@

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