github-codeowners-parser
Advanced tools
| declare module 'github-codeowners-parser' { | ||
| function AddLineToContent(input: string, newLine: string): string; | ||
| class AddLineVisitor { | ||
| constructor(input: string, newLine: string); | ||
| visitFile(ctx: any): string; | ||
| } | ||
| } |
@@ -6,3 +6,3 @@ import { CharStreams, CommonTokenStream } from "antlr4ts"; | ||
| export const addLineToContent = (input: string, newLine: string): string => { | ||
| export const AddLineToContent = (input: string, newLine: string): string => { | ||
| const chars = CharStreams.fromString(input); | ||
@@ -9,0 +9,0 @@ const lexer = new CODEOWNERSLexer(chars); |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.addLineToContent = void 0; | ||
| exports.AddLineToContent = void 0; | ||
| const antlr4ts_1 = require("antlr4ts"); | ||
@@ -8,3 +8,3 @@ const AddLineVisitor_1 = require("./AddLineVisitor"); | ||
| const CODEOWNERSParser_1 = require("./parser/CODEOWNERSParser"); | ||
| const addLineToContent = (input, newLine) => { | ||
| const AddLineToContent = (input, newLine) => { | ||
| const chars = antlr4ts_1.CharStreams.fromString(input); | ||
@@ -18,2 +18,2 @@ const lexer = new CODEOWNERSLexer_1.CODEOWNERSLexer(chars); | ||
| }; | ||
| exports.addLineToContent = addLineToContent; | ||
| exports.AddLineToContent = AddLineToContent; |
+2
-1
| { | ||
| "name": "github-codeowners-parser", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "Antlr4 generated CODEOWNERS parser", | ||
@@ -11,2 +11,3 @@ "main": "dist/index.js", | ||
| }, | ||
| "types": "github-codeowners-parser.d.ts", | ||
| "repository": { | ||
@@ -13,0 +14,0 @@ "type": "git", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
104195
0.27%20
5.26%2607
0.27%