@architect/parser
Advanced tools
Comparing version 2.1.6 to 2.2.0-RC.0
@@ -5,2 +5,15 @@ # Architect Parser changelog | ||
## [2.2.0] 2020-08-11 | ||
### Added | ||
- Added support for reading and validating Architect function config files (`config.arc`, `.arc-config`, `arc-config.[json|yaml|yml|toml]`) with `readArcConfig()` | ||
### Fixed | ||
- Fixed missing support for the following `@aws` settings: `layer` (alternatively `layers`), `memory`, `policy` (alternatively `policies`), and `timeout` | ||
--- | ||
## [2.1.6] 2020-08-04 | ||
@@ -7,0 +20,0 @@ |
{ | ||
"name": "@architect/parser", | ||
"version": "2.1.6", | ||
"version": "2.2.0-RC.0", | ||
"description": "Architect Parser accepts plaintext, JSON, or YAML .arc manifests and returns a plain JavaScript Object", | ||
@@ -34,3 +34,3 @@ "main": "./src/index.js", | ||
"rollup": "^2.13.1", | ||
"rollup-plugin-terser": "^6.1.0", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"tap-spec": "^5.0.0", | ||
@@ -37,0 +37,0 @@ "tape": "~5.0.1" |
let Ajv = require('./ajv-6.10.2') | ||
let schema = require('../../schema.json') | ||
let arcSchema = require('../../arc-schema.json') | ||
let arcConfigSchema = require('../../arc-config-schema.json') | ||
@@ -8,4 +9,5 @@ /** | ||
*/ | ||
module.exports = function validate(arc) { | ||
module.exports = function validate({arc, type='arc'}) { | ||
let defn = new Ajv({allErrors: true}) | ||
let schema = type === 'arc' ? arcSchema : arcConfigSchema | ||
let valid = defn.validate(schema, arc) | ||
@@ -12,0 +14,0 @@ |
@@ -7,3 +7,4 @@ let lexer = require('./lexer') | ||
let stringify = require('./compat/stringify') | ||
let read = require('./read') | ||
let readArc = require('./read/arc') | ||
let readArcConfig = require('./read/arc-config') | ||
@@ -18,2 +19,3 @@ /** | ||
// Parser methods | ||
parse.lexer = lexer | ||
@@ -25,5 +27,8 @@ parse.parser = parser | ||
parse.stringify = stringify | ||
parse.readArc = read | ||
parse.read = read // Deprecated | ||
// Read methods | ||
parse.readArc = readArc | ||
parse.read = readArc // Deprecated | ||
parse.readArcConfig = readArcConfig | ||
module.exports = parse |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
485831
39
12018
3
8