Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/yaml

Package Overview
Dependencies
Maintainers
18
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/yaml - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

2

buildJsonPath.d.ts

@@ -1,2 +0,2 @@

import { YAMLNode } from 'yaml-ast-parser';
import { YAMLNode } from '@stoplight/yaml-ast-parser';
export declare function buildJsonPath(node: YAMLNode): import("@stoplight/types").Segment[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const yaml_ast_parser_1 = require("yaml-ast-parser");
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser");
const utils_1 = require("./utils");

@@ -5,0 +5,0 @@ function buildJsonPath(node) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const yaml_ast_parser_1 = require("yaml-ast-parser");
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser");
const buildJsonPath_1 = require("./buildJsonPath");

@@ -5,0 +5,0 @@ const utils_1 = require("./utils");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const yaml_ast_parser_1 = require("yaml-ast-parser");
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser");
const lineForPosition_1 = require("./lineForPosition");

@@ -5,0 +5,0 @@ const utils_1 = require("./utils");

{
"name": "@stoplight/yaml",
"version": "3.1.1",
"version": "3.2.0",
"description": "Useful functions when working with YAML.",

@@ -27,8 +27,7 @@ "keywords": [

"dependencies": {
"@stoplight/types": "^11.0.0",
"@types/js-yaml": "3.12.1",
"@stoplight/types": "^11.1.0",
"lodash": "^4.17.15",
"yaml-ast-parser": "~0.0.43"
"@stoplight/yaml-ast-parser": "0.0.43"
},
"typings": "index.d.ts"
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const yaml_ast_parser_1 = require("yaml-ast-parser");
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser");
const parseWithPointers_1 = require("./parseWithPointers");
exports.parse = (value) => parseWithPointers_1.walkAST(yaml_ast_parser_1.load(value));
//# sourceMappingURL=parse.js.map

@@ -1,4 +0,4 @@

import { YAMLNode } from 'yaml-ast-parser';
import { YAMLNode } from '@stoplight/yaml-ast-parser';
import { IParseOptions } from './types';
export declare const parseWithPointers: <T>(value: string, options?: IParseOptions | undefined) => import("@stoplight/types").IParserResult<T | undefined, YAMLNode, number[], IParseOptions>;
export declare const walkAST: (node: YAMLNode | null, options?: IParseOptions | undefined, duplicatedMappingKeys?: YAMLNode[] | undefined) => unknown;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("@stoplight/types");
const yaml_ast_parser_1 = require("yaml-ast-parser");
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser");
const buildJsonPath_1 = require("./buildJsonPath");

@@ -6,0 +6,0 @@ const lineForPosition_1 = require("./lineForPosition");

@@ -1,2 +0,2 @@

import { DumpOptions } from 'js-yaml';
import { DumpOptions } from '@stoplight/yaml-ast-parser';
export declare const safeStringify: (value: any, options?: DumpOptions | undefined) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const yaml_ast_parser_1 = require("yaml-ast-parser");
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser");
exports.safeStringify = (value, options) => {

@@ -5,0 +5,0 @@ if (!value || typeof value === 'string')

import { IParserResult } from '@stoplight/types';
import { LoadOptions, YAMLNode } from 'yaml-ast-parser';
import { LoadOptions, YAMLNode } from '@stoplight/yaml-ast-parser';
export interface IParseOptions extends LoadOptions {

@@ -4,0 +4,0 @@ json?: boolean;

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

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