Socket
Socket
Sign inDemoInstall

@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 6.0.0 to 6.0.1

2

package.json
{
"name": "@architect/parser",
"version": "6.0.0",
"version": "6.0.1",
"description": "Architect Parser accepts plaintext, JSON, or YAML .arc manifests and returns a plain JavaScript Object",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -26,3 +26,3 @@ const isScalar = require('../parser/_is-scalar')

if (node.value) {
arc += node.value
arc += node.raw ? node.raw : node.value
}

@@ -32,3 +32,3 @@ if (node.values) {

for (let key of node.values) {
arc += key.value
arc += key.raw ? key.raw : key.value
}

@@ -35,0 +35,0 @@ }

@@ -28,3 +28,3 @@ const isScalar = require('../parser/_is-scalar')

if (token.type === 'array') {
arc[pragma.name].push(token.values.filter(isScalar).map(t => t.value))
arc[pragma.name].push(token.values.filter(isScalar).map(t => t.raw ? t.raw : t.value))
}

@@ -35,3 +35,3 @@

let vector = {}
vector[token.name] = token.values.filter(isScalar).map(t => t.value)
vector[token.name] = token.values.filter(isScalar).map(t => t.raw ? t.raw : t.value)
arc[pragma.name].push(vector)

@@ -38,0 +38,0 @@ }

@@ -23,3 +23,3 @@ const isScalar = require('../parser/_is-scalar')

if (token.type === 'array') {
arc += '- [ ' + token.values.filter(isScalar).map(t => t.value).join(', ') + ' ]\n'
arc += '- [ ' + token.values.filter(isScalar).map(t => t.raw ? t.raw : t.value).join(', ') + ' ]\n'
}

@@ -26,0 +26,0 @@ if (token.type === 'vector') {

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