@stoplight/yaml
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54956
3
+ Added@stoplight/yaml-ast-parser@0.0.43(transitive)
- Removed@types/js-yaml@3.12.1
- Removedyaml-ast-parser@~0.0.43
- Removed@types/js-yaml@3.12.1(transitive)
- Removedyaml-ast-parser@0.0.43(transitive)
Updated@stoplight/types@^11.1.0