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

@stoplight/yaml

Package Overview
Dependencies
Maintainers
7
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 1.0.1 to 1.1.0

7

package.json
{
"name": "@stoplight/yaml",
"version": "1.0.1",
"version": "1.1.0",
"description": "Useful functions when working with YAML.",

@@ -15,4 +15,3 @@ "keywords": [

"files": [
"**/*",
"!__tests__"
"**/*"
],

@@ -29,3 +28,3 @@ "author": "Stoplight <support@stoplight.io>",

"dependencies": {
"@stoplight/types": "2.0.0",
"@stoplight/types": "3.x.x",
"lodash": "4.x.x",

@@ -32,0 +31,0 @@ "yaml-ast-parser": "0.0.43"

@@ -21,2 +21,4 @@ # @stoplight/yaml

- **[parseWithPointers](https://stoplightio.github.io/yaml/globals.html#parsewithpointers)**: Parses YAML into JSON and also returns a source map that includes a JSON path pointer for every property in the result (with line information).
```ts

@@ -27,2 +29,3 @@ // basic example of parseWithPointers

const result = parseWithPointers("foo: bar");
console.log(result.data); // => the {foo: "bar"} JS object

@@ -32,4 +35,2 @@ console.log(result.pointers); // => the source map with a single "#/foo" pointer that has position info for the foo property

- **parseWithPointers**: Like `JSON.parse(val)` but also returns a source map that includes a JSON path pointer for every property in the result (with line information).
### Contributing

@@ -45,2 +46,2 @@

8. Push: `git push`.
9. Open PR targeting the `develop` branch.
9. Open PR targeting the `next` branch.
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