@stoplight/spectral-parsers
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,5 +0,5 @@ | ||
import { YamlParserResult } from '@stoplight/yaml'; | ||
import { IParser } from './types'; | ||
export { YamlParserResult }; | ||
import type { YamlParserResult as _YamlParserResult } from '@stoplight/yaml'; | ||
import type { IParser } from './types'; | ||
export declare type YamlParserResult<T> = Omit<_YamlParserResult<T>, 'comments'>; | ||
export declare const parseYaml: (input: string) => YamlParserResult<unknown>; | ||
export declare const Yaml: IParser<YamlParserResult<unknown>>; |
@@ -5,2 +5,5 @@ "use strict"; | ||
const yaml_1 = require("@stoplight/yaml"); | ||
function getLocationForJsonPath(result, path) { | ||
return (0, yaml_1.getLocationForJsonPath)(result, path); | ||
} | ||
const parseYaml = (input) => (0, yaml_1.parseWithPointers)(input, { | ||
@@ -10,2 +13,3 @@ ignoreDuplicateKeys: false, | ||
preserveKeyOrder: true, | ||
attachComments: false, | ||
}); | ||
@@ -15,5 +19,5 @@ exports.parseYaml = parseYaml; | ||
parse: exports.parseYaml, | ||
getLocationForJsonPath: yaml_1.getLocationForJsonPath, | ||
getLocationForJsonPath, | ||
trapAccess: yaml_1.trapAccess, | ||
}; | ||
//# sourceMappingURL=yaml.js.map |
{ | ||
"name": "@stoplight/spectral-parsers", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/stoplightio/spectral", | ||
@@ -22,6 +22,6 @@ "bugs": "https://github.com/stoplightio/spectral/issues", | ||
"@stoplight/json": "~3.21.0", | ||
"@stoplight/types": "^13.6.0", | ||
"@stoplight/yaml": "~4.2.3", | ||
"@stoplight/types": "^14.1.1", | ||
"@stoplight/yaml": "~4.3.0", | ||
"tslib": "^2.3.1" | ||
} | ||
} |
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
15074
60
+ Added@stoplight/types@14.1.1(transitive)
+ Added@stoplight/yaml@4.3.0(transitive)
+ Added@stoplight/yaml-ast-parser@0.0.50(transitive)
- Removed@stoplight/yaml@4.2.3(transitive)
- Removed@stoplight/yaml-ast-parser@0.0.48(transitive)
Updated@stoplight/types@^14.1.1
Updated@stoplight/yaml@~4.3.0