Socket
Socket
Sign inDemoInstall

edge-parser

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-parser - npm Package Compare versions

Comparing version 8.0.4 to 8.0.5

18

package.json
{
"name": "edge-parser",
"version": "8.0.4",
"version": "8.0.5",
"description": "Parser for edge template engine",

@@ -35,6 +35,6 @@ "main": "build/index.js",

"dependencies": {
"acorn": "^8.1.1",
"acorn": "^8.2.4",
"astring": "^1.7.4",
"edge-error": "^2.0.2",
"edge-lexer": "^4.0.3",
"edge-error": "^2.0.3",
"edge-lexer": "^4.0.4",
"js-stringify": "^1.0.2"

@@ -47,3 +47,3 @@ },

"@types/astring": "^1.3.0",
"@types/node": "^14.14.41",
"@types/node": "^15.0.1",
"commitizen": "^4.2.3",

@@ -54,4 +54,4 @@ "cz-conventional-changelog": "^3.3.0",

"doctoc": "^2.0.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-adonis": "^1.3.0",

@@ -63,6 +63,6 @@ "eslint-plugin-prettier": "^3.4.0",

"mrm": "^3.0.1",
"np": "^7.4.0",
"np": "^7.5.0",
"prettier": "^2.2.1",
"typescript": "^4.3.0-beta",
"youch": "^2.2.1"
"youch": "^2.2.2"
},

@@ -69,0 +69,0 @@ "config": {

@@ -1,7 +0,6 @@

<div align="center"><img src="https://res.cloudinary.com/adonis-js/image/upload/q_100/v1600679850/edge-banner_wao6ex.png" width="600px"></div>
<div align="center"><img src="https://res.cloudinary.com/adonis-js/image/upload/v1620150474/edge-banner_tzmnox.jpg" width="600px"></div>
# Edge Parser
> Parser to convert edge templates to invokable functions
> Parser to convert edge template to invokable functions
[![circleci-image]][circleci-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url]

@@ -388,2 +387,31 @@

#### NewExpression
```js
{{ new User() }}
```
#### ReturnStatement
In the following example `return` keyword is a return statement
```js
users.map((user) => {
return user.username
})
```
#### ThisExpression
Support for the this keyword
```js
{{ this.state }}
```
#### SpreadElement
Support for the spread element
```js
{{ [...users] }}
```
[circleci-image]: https://img.shields.io/circleci/project/github/edge-js/parser/master.svg?style=for-the-badge&logo=circleci

@@ -390,0 +418,0 @@ [circleci-url]: https://circleci.com/gh/edge-js/parser 'circleci'

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