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

eslint-plugin-zod-to-openapi

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-zod-to-openapi - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

4

lib-commonjs/util/traverse.js

@@ -59,2 +59,6 @@ "use strict";

const getBaseIdentifier = (identifier) => {
if (identifier.name === 'register' &&
identifier.parent?.type === 'MemberExpression') {
return;
}
if (identifier.name === 'optional' &&

@@ -61,0 +65,0 @@ identifier.parent?.type === 'MemberExpression') {

@@ -40,2 +40,5 @@ "use strict";

const baseIdentifier = (0, traverse_1.getBaseIdentifier)(identifier);
if (!baseIdentifier) {
return;
}
// 1. Grab the TypeScript program from parser services

@@ -42,0 +45,0 @@ const parserServices = utils_1.ESLintUtils.getParserServices(context);

2

lib-types/util/traverse.d.ts
import { TSESTree } from '@typescript-eslint/utils';
export declare const findOpenApiCallExpression: (node: TSESTree.VariableDeclarator | TSESTree.Property) => TSESTree.CallExpression | undefined;
export declare const getIdentifier: <T extends TSESTree.Node>(node: T) => TSESTree.Identifier | undefined;
export declare const getBaseIdentifier: (identifier: TSESTree.Identifier) => TSESTree.Node;
export declare const getBaseIdentifier: (identifier: TSESTree.Identifier) => TSESTree.Node | undefined;
{
"name": "eslint-plugin-zod-to-openapi",
"version": "0.0.13",
"version": "0.0.14",
"private": false,

@@ -5,0 +5,0 @@ "description": "Eslint rules for zod-to-openapi",

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