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

@sapphire/shapeshift

Package Overview
Dependencies
Maintainers
3
Versions
454
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapphire/shapeshift - npm Package Compare versions

Comparing version 4.0.1-next.3f771ac.0 to 4.0.1-next.b607d46.0

10

package.json
{
"name": "@sapphire/shapeshift",
"version": "4.0.1-next.3f771ac.0",
"version": "4.0.1-next.b607d46.0",
"description": "Blazing fast input validation and transformation ⚡",

@@ -53,4 +53,4 @@ "author": "@sapphire",

"@types/node": "^20.12.12",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@vitest/coverage-v8": "^1.6.0",

@@ -62,4 +62,4 @@ "cz-conventional-changelog": "^3.3.0",

"eslint-plugin-prettier": "^5.1.3",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.5",
"prettier": "^3.2.5",

@@ -66,0 +66,0 @@ "rimraf": "^5.0.7",

@@ -54,6 +54,6 @@ <div align="center">

- [BaseValidator: methods and properties](#basevalidator-methods-and-properties)
- [`.run(data: unknown): Result`: given a validation, you can call this method to check whether or not the](#rundata-unknown-result-given-a-validation-you-can-call-this-method-to-check-whether-or-not-the)
- [`.run(data: unknown): Result`: given a validation, you can call this method to check whether or not the](#rundata-unknown-resultt-error-given-a-validation-you-can-call-this-method-to-check-whether-or-not-the)
- [`.parse(data: unknown): T`: given a validations, you can call this method to check whether or not the input is valid.](#parsedata-unknown-t-given-a-validations-you-can-call-this-method-to-check-whether-or-not-the-input-is-valid)
- [`.transform((value: T) => R): NopValidator`: adds a constraint that modifies the input:](#transformvalue-t--r-nopvalidator-adds-a-constraint-that-modifies-the-input)
- [`.reshape((value: T) => Result | IConstraint): NopValidator`: adds a constraint able to both validate](#reshapevalue-t--result--iconstraint-nopvalidator-adds-a-constraint-able-to-both-validate)
- [`.transform((value: T) => R): NopValidator`: adds a constraint that modifies the input:](#transformrvalue-t--r-nopvalidatorr-adds-a-constraint-that-modifies-the-input)
- [`.reshape((value: T) => Result | IConstraint): NopValidator`: adds a constraint able to both validate](#reshapervalue-t--resultr-error--iconstraint-nopvalidatorr-adds-a-constraint-able-to-both-validate)
- [`.default(value: T | (() => T))`: transform `undefined` into the given value or the callback's returned value:](#defaultvalue-t----t-transform-undefined-into-the-given-value-or-the-callbacks-returned-value)

@@ -60,0 +60,0 @@ - [`.optional`: a convenience method that returns a union of the type with `s.undefined()`.](#optional-a-convenience-method-that-returns-a-union-of-the-type-with-sundefined)

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