@stoplight/yaml
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"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. |
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
22947
44
+ Added@stoplight/types@3.1.0(transitive)
- Removed@stoplight/types@2.0.0(transitive)
Updated@stoplight/types@3.x.x