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

@monokle/validation

Package Overview
Dependencies
Maintainers
5
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monokle/validation - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

lib/references/utils/refMatcher.d.ts

6

lib/references/process.js

@@ -11,3 +11,3 @@ import groupBy from "lodash/groupBy.js";

import { getResourceRefNodes } from "./utils/getResourceNodes.js";
import { refMapperMatchesKind } from "./utils/helpers.js";
import { refMapperMatchesKind } from "./utils/refMatcher.js";
import { processKustomizations } from "./utils/kustomizeRefs.js";

@@ -34,3 +34,5 @@ /**

// extract all unique file paths from resources if not specified
const filePaths = files ? new Set(files) : new Set(resources.map((obj) => obj.filePath));
const filePaths = files
? new Set(files)
: new Set(resources.map((obj) => obj.filePath));
processKustomizations(resources, filePaths, parser);

@@ -37,0 +39,0 @@ return resources;

import { getOutgoingRefMappers, OUTGOING_MAPPERS } from "../mappers/index.js";
import { refMapperMatchesKind } from "./helpers.js";
import { refMapperMatchesKind } from "./refMatcher.js";
const refMapperCache = new Map();

@@ -4,0 +4,0 @@ const incomingRefMappersCache = new Map();

import { KNOWN_RESOURCE_KINDS } from "../../utils/knownResourceKinds.js";
import { getOutgoingRefMappers } from "../mappers/index.js";
import { refMapperMatchesKind } from "./helpers.js";
import { refMapperMatchesKind } from "./refMatcher.js";
const targetResourceKindCache = new Map();

@@ -5,0 +5,0 @@ /**

import { ResourceRefType, ResourceRef, RefPosition, RefNode, Resource, ResourceRefsProcessingConfig } from "../../common/types.js";
import { RefMapper } from "../mappers/index.js";
import { LineCounter } from "yaml";
export declare function refMapperMatchesKind(refMapper: RefMapper, kind: string): boolean;
export declare function isIncomingRef(refType: ResourceRefType): boolean;

@@ -6,0 +5,0 @@ export declare function isOutgoingRef(refType: ResourceRefType): boolean;

@@ -5,8 +5,2 @@ import { ResourceRefType, } from "../../common/types.js";

import path from "../../utils/path.js";
export function refMapperMatchesKind(refMapper, kind) {
if (kind && refMapper.target.kind.startsWith("$")) {
return kind.match(refMapper.target.kind.substring(1)) !== null;
}
return refMapper.target.kind === kind;
}
export function isIncomingRef(refType) {

@@ -13,0 +7,0 @@ return refType === ResourceRefType.Incoming;

import { paramCase, sentenceCase } from "change-case";
import { keyBy } from "lodash";
import keyBy from "lodash/keyBy.js";
import { isNode } from "yaml";

@@ -4,0 +4,0 @@ import { AbstractPlugin } from "../../common/AbstractPlugin.js";

@@ -10,3 +10,3 @@ import { loadPolicy } from "@open-policy-agent/opa-wasm";

import { OPEN_POLICY_AGENT_RULES } from "./rules.js";
import { isKustomizationResource } from "../../references/utils/kustomizeRefs";
import { isKustomizationResource } from "../../references/utils/kustomizeRefs.js";
const Settings = z.object({

@@ -13,0 +13,0 @@ wasmSrc: z

{
"name": "@monokle/validation",
"version": "0.10.1",
"version": "0.10.2",
"description": "Kubernetes resource validation",

@@ -9,2 +9,3 @@ "author": "Kubeshop",

"sideEffects": false,
"main": "lib/index.js",
"source": "src/index.ts",

@@ -17,3 +18,4 @@ "module": "lib/index.js",

"types": "./lib/index.d.ts",
"module": "./lib/index.js"
"module": "./lib/index.js",
"default": "./lib/index.js"
},

@@ -20,0 +22,0 @@ "./custom": {

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