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

@architect/parser

Package Overview
Dependencies
Maintainers
4
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 2.1.6 to 2.2.0-RC.0

arc-config-schema.json

13

changelog.md

@@ -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 @@

4

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