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

@lcap/nasl-translator

Package Overview
Dependencies
Maintainers
0
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lcap/nasl-translator - npm Package Compare versions

Comparing version 3.11.0-rc.2 to 3.11.1-beta.1

1

out/utils.d.ts

@@ -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, '&lt;').replace(/>/g, '&gt;'); // .replace(/&/g, '&amp;')
}
exports.escapeHTML = escapeHTML;
function createDescriptionComment(state, node, properties) {

@@ -119,0 +123,0 @@ const content = properties.map((prop) => node[prop]).filter((value) => !!value).join(' ');

6

package.json
{
"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

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