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

escaya

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escaya - npm Package Compare versions

Comparing version 0.0.54 to 0.0.55

1

dist/common.d.ts

@@ -133,3 +133,2 @@ import { Token } from './ast/token';

};
lastChar: number;
}

@@ -136,0 +135,0 @@ export declare function isValidDirective(state: ParserState): boolean;

2

dist/lexer/template.d.ts

@@ -6,4 +6,4 @@ import { ParserState, Context } from '../common';

export declare function scanTemplateSpan(state: ParserState, context: Context): Token;
export declare function parseTemplateEscape(state: ParserState, context: Context, source: string, cp: number): string | number;
export declare function parseTemplateEscape(state: ParserState, context: Context, source: string, isTagged: boolean, cp: number): string | number;
export declare function scanTemplateTail(state: ParserState, context: Context): any;
//# sourceMappingURL=template.d.ts.map
{
"name": "escaya",
"version": "0.0.54",
"version": "0.0.55",
"description": "A blazing fast 100% spec compliant, self-hosted incremental javascript parser written in Typescript",

@@ -5,0 +5,0 @@ "main": "dist/escaya.umd.min.js",

@@ -62,6 +62,3 @@ <h1 align="center">Escaya</h1>

Comments can be extracted with either `extractCommentsScript` or `extractCommentsModule` and let you extract leading and trailing
comments from a given position. It takes the source code you are parsing as it's first argument. The second argument is the position
within the source code you want to extract the comments from, and the last argument is if you want to extract leading or
trailing comments.
`Escaya` lets you extract leading and trailing comments from a given position with either `extractCommentsScript` or `extractCommentsModule`. It takes the source code as it's first argument, the position within the source code where you want to extract the comments from as it's second argument. The last argument let's you decide if you want to extract leading or trailing comments - `collectCommentsScript(source, start, boolean);`

@@ -71,5 +68,5 @@ Here is an example on how to get all trailing comments belonging to `bar`

```ts
import { collectCommentsScript } from './escaya';
import { extractCommentsScript } from './escaya';
collectCommentsScript('/* MultieLine */ bar /* trailing */', 20, true);
extractCommentsScript('/* MultieLine */ bar /* trailing */', 20, true);

@@ -76,0 +73,0 @@ ```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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