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

abolish

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abolish - npm Package Compare versions

Comparing version 4.7.4 to 4.8.0

browser.min.js

22

package.json
{
"name": "abolish",
"version": "4.7.4",
"version": "4.8.0",
"description": "A javascript object validator.",

@@ -11,18 +11,26 @@ "main": "index.js",

"private": false,
"browser": {
"lodash": "lodash-es"
},
"scripts": {
"build": "npx tsc",
"build": "npx tsc && npm run bundle",
"bundle": "node bundle.js",
"prepublishOnly": "npm run build",
"watch": "npx tsc --watch",
"play": "npx ts-node-dev --respawn tests/play.ts"
"play": "npx ts-node-dev --respawn tests/play.ts",
"test-browser": "npx vite"
},
"dependencies": {
"@types/lodash": "^4.14.177",
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/lodash": "^4.14.178",
"@types/node": "^16.11.9",
"joi": "^17.4.2",
"prettier": "^2.4.1",
"esbuild": "^0.14.23",
"joi": "^17.6.0",
"lodash-es": "^4.17.21",
"prettier": "^2.5.1",
"ts-node-dev": "^1.1.8",
"typescript": "^4.5.2"
"typescript": "^4.5.5",
"vite": "^2.8.4"
},

@@ -29,0 +37,0 @@ "keywords": [

@@ -521,3 +521,3 @@ "use strict";

const [e, v] = this.validate({ variable }, { variable: rules });
return [e, v === null || v === void 0 ? void 0 : v.variable];
return [e, v?.variable];
}

@@ -539,3 +539,3 @@ /**

const [e, v] = await this.validateAsync({ variable }, { variable: rules });
return [e, v === null || v === void 0 ? void 0 : v.variable];
return [e, v?.variable];
}

@@ -542,0 +542,0 @@ /**

@@ -11,3 +11,3 @@ "use strict";

const isDate = !isNaN(date.getTime());
if (isDate && (o === null || o === void 0 ? void 0 : o.cast))
if (isDate && o?.cast)
modifier.setThis(date);

@@ -14,0 +14,0 @@ return isDate;

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