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

sls-yaml

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sls-yaml - npm Package Compare versions

Comparing version 1.0.25 to 1.0.26

dist/helm-template/index.d.ts

129

dist/index.d.ts

@@ -1,128 +0,1 @@

declare module launcher
{
export * from "./sls-yaml";
type CompileOptions = {
doc: any;
globalObj: any;
parentPath: string;
basePath: string;
context?: any;
};
export function compile({ doc, globalObj, parentPath, basePath, context }: CompileOptions): any;
export {};
export {};
/// <reference types="node" />
import { Path, ParentObject } from "./types";
export function readYamlSync(pathOrData: Path | Buffer, parent?: ParentObject | null, context?: any): any;
export default readYamlSync;
export {};
/// <reference types="node" />
import { ParentObject, Path } from "~/types";
export function readHelmTemplateSync(pathOrData: Path | Buffer, parent?: ParentObject): string;
export {};
type FunctionMap = {
[key: string]: (args: string[], parameters: FunctionParameters) => any;
};
export const UnknonwReference: (name: string) => string;
type FunctionParameters = {
basePath: string;
parentName?: string;
parentPath?: string;
globalObj?: any;
selfObj?: any;
parentObj?: any;
};
export const functions: FunctionMap;
export enum NodeKind {
KEY = 0,
VALUE = 1,
VALUE_FRAGMENT = 2,
NAME = 3,
ARG = 4,
GROUP = 5,
PAIR = 6,
ARRAY = 7,
OBJECT = 8,
TEMPLATE = 9,
FUNCTION = 10,
VARIABLE = 11
}
export class Scope {
start: number;
end: number;
constructor(start: number, end?: number);
}
export class Node {
kind: NodeKind;
value: any;
parent: Node | null;
nextSibling: Node | null;
firstChild: Node | null;
lastChild: Node | null;
scope?: Scope;
constructor(kind: NodeKind, scope?: Scope);
setScopeEnd(end: number): void;
}
export enum TokenKind {
TEMPLATE_OPEN = 0,
LEFT_BRACE = 1,
RIGHT_BRACE = 2,
LEFT_BRACKET = 3,
RIGHT_BRACKET = 4,
LEFT_PARENTHESIS = 5,
RIGHT_PARENTHESIS = 6,
DOLLAR = 7,
COLON = 8,
DOT = 9,
COMMA = 10,
DEFAULT_VALUE = 11
}
export const tokens: any;
export const tokenValues: string[];
/**
* Parse template tokens and create node tree
* @param {string} value
*/
export function parseToken(value: any, parent?: Node | null): Node;
type EmitNodeArg = {
node: Node | null;
basePath?: string;
parentObj?: any;
parentName?: string | null;
parentPath?: string | null;
globalObj?: any;
selfObj?: any;
thisObj?: any;
context?: any;
};
/**
* Print compiled template
* @param options
*/
export function emitNode({ node, basePath, parentPath, parentName, globalObj, selfObj, parentObj, thisObj, context }: EmitNodeArg): any;
type ParseArg = {
content: any;
parent?: any;
};
export function parse({ content, parent }: ParseArg): any;
export {};
export {};
import { Node } from ".";
export function printNodes(node: Node | null, indent?: string): string;
export type ParentObject = {
global: any;
parentPath: string;
};
export type Path = string;
}
export * from "./sls-yaml";
{
"name": "sls-yaml",
"version": "1.0.25",
"version": "1.0.26",
"description": "Serverless framework yaml extension parser",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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