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
460
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 2.0.1-next.d5f16f6.0 to 2.0.1-next.d914896.0

9

dist/index.global.js

@@ -1601,6 +1601,7 @@ var SapphireShapeshift = (() => {

const typeOfValue = typeof value;
if (typeOfValue === "number" && !this.hasNumericElements) {
return Result.err(new ValidationError("s.nativeEnum(T)", "Expected the value to be a string", value));
}
if (typeOfValue !== "string" && typeOfValue !== "number") {
if (typeOfValue === "number") {
if (!this.hasNumericElements) {
return Result.err(new ValidationError("s.nativeEnum(T)", "Expected the value to be a string", value));
}
} else if (typeOfValue !== "string") {
return Result.err(new ValidationError("s.nativeEnum(T)", "Expected the value to be a string or number", value));

@@ -1607,0 +1608,0 @@ }

@@ -1594,6 +1594,7 @@ "use strict";

const typeOfValue = typeof value;
if (typeOfValue === "number" && !this.hasNumericElements) {
return Result.err(new ValidationError("s.nativeEnum(T)", "Expected the value to be a string", value));
}
if (typeOfValue !== "string" && typeOfValue !== "number") {
if (typeOfValue === "number") {
if (!this.hasNumericElements) {
return Result.err(new ValidationError("s.nativeEnum(T)", "Expected the value to be a string", value));
}
} else if (typeOfValue !== "string") {
return Result.err(new ValidationError("s.nativeEnum(T)", "Expected the value to be a string or number", value));

@@ -1600,0 +1601,0 @@ }

{
"name": "@sapphire/shapeshift",
"version": "2.0.1-next.d5f16f6.0",
"version": "2.0.1-next.d914896.0",
"description": "Blazing fast input validation and transformation ⚡",

@@ -34,15 +34,15 @@ "author": "@sapphire",

"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@favware/npm-deprecate": "^1.0.4",
"@favware/rollup-type-bundler": "^1.0.7",
"@sapphire/eslint-config": "^4.3.0",
"@sapphire/prettier-config": "^1.4.0",
"@sapphire/ts-config": "^3.3.2",
"@sapphire/eslint-config": "^4.3.2",
"@sapphire/prettier-config": "^1.4.1",
"@sapphire/ts-config": "^3.3.3",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.11.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",

@@ -53,11 +53,11 @@ "eslint-plugin-prettier": "^4.0.0",

"jest-circus": "^27.5.1",
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"lint-staged": "^12.3.7",
"prettier": "^2.6.1",
"pretty-quick": "^3.1.3",
"standard-version": "^9.3.2",
"ts-jest": "^27.1.3",
"ts-jest": "^27.1.4",
"tsup": "^5.12.1",
"typedoc": "^0.22.13",
"typedoc-plugin-mdn-links": "^1.0.5",
"typescript": "^4.6.2"
"typescript": "^4.6.3"
},

@@ -64,0 +64,0 @@ "repository": {

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