Socket
Socket
Sign inDemoInstall

edge-parser

Package Overview
Dependencies
Maintainers
2
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 9.0.0-3 to 9.0.0

build/index.js.map

10

build/index.d.ts

@@ -1,8 +0,8 @@

export { E as EdgeBuffer, P as Parser, S as Stack } from './main-c9843dac.js';
import 'edge-lexer/types';
export { Stack } from './src/stack/index.js';
export { Parser } from './src/parser/main.js';
export { EdgeBuffer } from './src/edge_buffer/index.js';
/**
* Names of supported expressions
*/
declare const expressions: {
export declare const expressions: {
Identifier: "Identifier";

@@ -32,3 +32,1 @@ MemberExpression: "MemberExpression";

};
export { expressions };

1

build/index.js

@@ -801,1 +801,2 @@ var __defProp = Object.defineProperty;

};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,66 @@

import 'edge-lexer/types';
export { A as AcornLoc, C as ClaimTagFn, M as MustacheTransformer, O as OnLineFn, b as ParserOptions, a as ParserTagDefinitionContract, T as TagTransformer } from '../main-c9843dac.js';
import type { TagToken, LexerTagDefinitionContract, MustacheToken } from 'edge-lexer/types';
import { Parser } from './parser/main.js';
import { EdgeBuffer } from './edge_buffer/index.js';
/**
* The parser needs the `compile` method on every tag
*/
export interface ParserTagDefinitionContract extends LexerTagDefinitionContract {
compile(parser: Parser, buffer: EdgeBuffer, token: TagToken): void;
}
/**
* Loc node from Acorn
*/
export type AcornLoc = {
start: {
line: number;
column: number;
};
end: {
line: number;
column: number;
};
};
export type OnLineFn = (line: string) => string;
export type TagTransformer = (token: TagToken) => void;
export type MustacheTransformer = (token: MustacheToken) => void;
export type ClaimTagFn = (name: string) => LexerTagDefinitionContract | null;
/**
* Parser options
*/
export type ParserOptions = {
/**
* Is parsing in async mode
*/
async?: boolean;
/**
* Modify the line before it is being processed by the lexer
*/
onLine?: OnLineFn;
/**
* Modify the tag before it is being processed by the parser
*/
onTag?: TagTransformer;
/**
* Modify the mustache block before it is being processed by the parser
*/
onMustache?: MustacheTransformer;
/**
* Claim un-registered tags
*/
claimTag?: ClaimTagFn;
/**
* Nested or flat path to the escape method for escaping values.
*/
escapeCallPath: string | [string, string];
/**
* Name of the property to be used for accessing the values from
* the template. Leave it to an empty string, if properties
* are available directly (meaning without a subpath).
*/
statePropertyName: string;
/**
* An array of local variables to be accessible directly. Define these
* so that the parser doesn't access them from the state property.
*/
localVariables?: string[];
};
{
"name": "edge-parser",
"description": "Parser for edge template engine",
"version": "9.0.0-3",
"version": "9.0.0",
"engines": {

@@ -11,3 +11,7 @@ "node": ">=18.16.0"

"files": [
"build"
"build",
"!build/bin",
"!build/examples",
"!build/tests",
"!build/tests_helpers"
],

@@ -23,3 +27,4 @@ "exports": {

"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsup-node",
"precompile": "npm run lint && npm run clean",
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
"build": "npm run compile",

@@ -38,29 +43,29 @@ "prepublishOnly": "npm run build",

"@adonisjs/tsconfig": "^1.1.8",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@japa/assert": "2.0.0-1",
"@japa/runner": "3.0.0-6",
"@poppinss/utils": "6.5.0-3",
"@swc/core": "^1.3.70",
"@swc/core": "^1.3.96",
"@types/acorn": "^6.0.0",
"@types/astring": "^1.7.0",
"@types/node": "^20.4.4",
"@types/node": "^20.8.10",
"c8": "^8.0.0",
"dedent-js": "^1.0.1",
"del-cli": "^5.0.0",
"eslint": "^8.45.0",
"del-cli": "^5.1.0",
"eslint": "^8.53.0",
"github-label-sync": "^2.3.1",
"husky": "^8.0.3",
"np": "^8.0.4",
"prettier": "^3.0.0",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"tsup": "^7.1.0",
"typescript": "^5.1.6",
"youch": "^3.2.3"
"typescript": "^5.2.2",
"youch": "^3.3.3"
},
"dependencies": {
"acorn": "^8.10.0",
"acorn": "^8.11.2",
"astring": "^1.8.6",
"edge-error": "^4.0.0-0",
"edge-lexer": "^6.0.0-4",
"edge-error": "^4.0.0",
"edge-lexer": "^6.0.0",
"js-stringify": "^1.0.2"

@@ -94,3 +99,3 @@ },

"access": "public",
"tag": "next"
"tag": "latest"
},

@@ -102,3 +107,3 @@ "directories": {

"message": "chore(release): %s",
"tag": "next",
"tag": "latest",
"branch": "main",

@@ -124,5 +129,6 @@ "anyBranch": false

"format": "esm",
"dts": true,
"dts": false,
"sourcemap": true,
"target": "esnext"
}
}
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