@architect/parser
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"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') { |
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
128775