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

@architect/parser

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/parser - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

16

changelog.md
# 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 @@

4

package.json
{
"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)

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