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

@architect/parser

Package Overview
Dependencies
Maintainers
7
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 1.1.0 to 1.1.1

8

_get-sections.js

@@ -11,4 +11,8 @@ module.exports = function getSections(text) {

// splits text into array of arrays
var sections = text.split('@').filter(Boolean).map(c=> c.split(/\r?\n/).filter(Boolean).map(s=>s.trimRight()))
let newline = /\r\n?|\n/
let trims = v=> v.trimRight()
let empty = v => typeof v === 'string'? v.length > 0 : true
let contents = c=> c.split(newline).filter(Boolean).map(trims).filter(empty)
let sections = text.split('@').filter(Boolean).map(contents)
// validates sections

@@ -15,0 +19,0 @@ sections.forEach(section=> {

@@ -0,0 +0,0 @@ module.exports = function visit(section) {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ # Contributing

@@ -0,0 +0,0 @@ var removeComments = require('./_remove-comments')

{
"name": "@architect/parser",
"version": "1.1.0",
"version": "1.1.1",
"description": "function that accepts .arc text and returns a plain JavaScript Object",

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

@@ -0,0 +0,0 @@ # <kbd>:cloud_with_lightning: @architect/parser</kbd>

Sorry, the diff of this file is not supported yet

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