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

@stoplight/spectral-parsers

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/spectral-parsers - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

dist/yaml.d.ts

@@ -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

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