@lcap/nasl-translator
Advanced tools
Comparing version 3.11.0-rc.2 to 3.11.1-beta.1
@@ -25,4 +25,5 @@ import type { Translator, NASLObject } from '@lcap/nasl-types'; | ||
export declare function textualNamespace(name: string): string; | ||
export declare function escapeHTML(str: string, enabled?: boolean): string; | ||
export declare function createDescriptionComment<T extends NASLObject.BaseNode>(state: Translator.TranslatorState, node: T, properties: Array<keyof T>): string; | ||
export declare function createSlotPositionMark<T extends NASLObject.BaseNode>(state: Translator.TranslatorState, node: T, slotPosition: string): string; | ||
//# sourceMappingURL=utils.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createSlotPositionMark = exports.createDescriptionComment = exports.textualNamespace = exports.createIdentifierCode = exports.createDecoratorCode = exports.isSameRange = exports.shiftState = exports.shiftPosition = exports.createCompilerState = exports.padRemainLeft = exports.indent = exports.lsp2tspNumber = void 0; | ||
exports.createSlotPositionMark = exports.createDescriptionComment = exports.escapeHTML = exports.textualNamespace = exports.createIdentifierCode = exports.createDecoratorCode = exports.isSameRange = exports.shiftState = exports.shiftPosition = exports.createCompilerState = exports.padRemainLeft = exports.indent = exports.lsp2tspNumber = void 0; | ||
function lsp2tspNumber(num) { | ||
@@ -117,2 +117,6 @@ return num + 1; | ||
exports.textualNamespace = textualNamespace; | ||
function escapeHTML(str, enabled = true) { | ||
return !enabled ? str : str.replace(/</g, '<').replace(/>/g, '>'); // .replace(/&/g, '&') | ||
} | ||
exports.escapeHTML = escapeHTML; | ||
function createDescriptionComment(state, node, properties) { | ||
@@ -119,0 +123,0 @@ const content = properties.map((prop) => node[prop]).filter((value) => !!value).join(' '); |
{ | ||
"name": "@lcap/nasl-translator", | ||
"description": "NetEase Application Specific Language", | ||
"version": "3.11.0-rc.2", | ||
"version": "3.11.1-beta.1", | ||
"author": "Forrest <rainforest92@126.com>", | ||
@@ -19,4 +19,4 @@ "main": "./out", | ||
"@lcap/nasl-tsconfig": "1.0.1", | ||
"@lcap/nasl-utils": "3.11.0-rc.2", | ||
"@lcap/nasl-types": "3.11.0-rc.2" | ||
"@lcap/nasl-types": "3.11.1-beta.1", | ||
"@lcap/nasl-utils": "3.11.1-beta.1" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27994
371
+ Added@lcap/nasl-types@3.11.1-beta.1(transitive)
+ Added@lcap/nasl-utils@3.11.1-beta.1(transitive)
- Removed@lcap/nasl-types@3.11.0-rc.2(transitive)
- Removed@lcap/nasl-utils@3.11.0-rc.2(transitive)