@architect/parser
Advanced tools
Comparing version 5.0.0 to 5.0.1
# Architect Parser changelog | ||
--- | ||
## [4.0.2] 2021-09-13 | ||
## [5.0.1] 2021-10-07 | ||
### Fixed | ||
- Trailing newlines are no longer aggregated into `maps` and `vectors` in the AST | ||
--- | ||
## [5.0.0] 2021-09-13 | ||
### Changed | ||
- Breaking change: `parse.parser` now returns an AST object | ||
- Moved JSON schemas to the [Arc syntaxes repo](https://github.com/architect/syntaxes) | ||
### Added | ||
@@ -15,2 +26,3 @@ | ||
### Fixed | ||
@@ -21,2 +33,4 @@ | ||
--- | ||
## [4.0.0 - 4.0.1] 2021-07-22 | ||
@@ -23,0 +37,0 @@ |
{ | ||
"name": "@architect/parser", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Architect Parser accepts plaintext, JSON, or YAML .arc manifests and returns a plain JavaScript Object", | ||
@@ -41,3 +41,3 @@ "main": "./src/index.js", | ||
"tape": "~5.3.0", | ||
"terser": "~5.8.0", | ||
"terser": "~5.9.0", | ||
"toml": "~3.0.0" | ||
@@ -44,0 +44,0 @@ }, |
@@ -31,8 +31,2 @@ const notEmpty = require('./_not-empty') | ||
let isEmpty = line.filter(notEmpty).length === 0 | ||
if (isMultiline === false && isEmpty === true) { | ||
for (let token of line) { | ||
values.push(token) | ||
} | ||
continue | ||
} | ||
@@ -39,0 +33,0 @@ // capture the map keys as vector types |
@@ -1,2 +0,1 @@ | ||
const notEmpty = require('./_not-empty') | ||
const getLines = require('./_get-lines') | ||
@@ -26,5 +25,4 @@ const toString = require('./_to-string') | ||
for (let line of rest) { | ||
let isEmpty = line.filter(notEmpty).length === 0 | ||
let isTwoSpaces = line[0].type === 'space' && line[1].type === 'space' | ||
if (isEmpty || isTwoSpaces) { | ||
if (isTwoSpaces) { | ||
for (let token of line) { | ||
@@ -31,0 +29,0 @@ values.push(token) |
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
188924
46
1167