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

ngx-highlightjs

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-highlightjs - npm Package Compare versions

Comparing version 12.0.0 to 13.0.0

8

lib/highlight-auto.d.ts

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

import { EventEmitter, WritableSignal, InputSignal } from '@angular/core';
import { InputSignal, WritableSignal, OutputEmitterRef } from '@angular/core';
import type { AutoHighlightResult } from 'highlight.js';

@@ -8,7 +8,7 @@ import { HighlightBase } from './highlight-base';

highlightResult: WritableSignal<AutoHighlightResult>;
languages: string[];
highlighted: EventEmitter<AutoHighlightResult>;
readonly languages: InputSignal<string[]>;
highlighted: OutputEmitterRef<AutoHighlightResult>;
protected highlightElement(code: string): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightAuto, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightAuto, "[highlightAuto]", never, { "code": { "alias": "highlightAuto"; "required": false; "isSignal": true; }; "languages": { "alias": "languages"; "required": false; }; }, { "highlighted": "highlighted"; }, never, never, true, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightAuto, "[highlightAuto]", never, { "code": { "alias": "highlightAuto"; "required": false; "isSignal": true; }; "languages": { "alias": "languages"; "required": false; "isSignal": true; }; }, { "highlighted": "highlighted"; }, never, never, true, never>;
}

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

import { InputSignal, WritableSignal, EventEmitter } from '@angular/core';
import { InputSignal, WritableSignal, OutputEmitterRef } from '@angular/core';
import type { AutoHighlightResult, HighlightResult } from 'highlight.js';

@@ -9,6 +9,5 @@ import { HighlightJS } from './highlight.service';

private _sanitizer;
private _platform;
abstract code: InputSignal<string>;
abstract highlightResult: WritableSignal<HighlightResult | AutoHighlightResult>;
abstract highlighted: EventEmitter<HighlightResult | AutoHighlightResult>;
abstract highlighted: OutputEmitterRef<HighlightResult | AutoHighlightResult>;
constructor();

@@ -19,3 +18,3 @@ protected abstract highlightElement(code: string): Promise<void>;

static ɵfac: i0.ɵɵFactoryDeclaration<HighlightBase, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightBase, never, never, {}, {}, never, never, false, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightBase, never, never, {}, {}, never, never, true, never>;
}

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

import { EventEmitter, InputSignal, WritableSignal } from '@angular/core';
import { InputSignal, WritableSignal, OutputEmitterRef, InputSignalWithTransform } from '@angular/core';
import type { HighlightResult } from 'highlight.js';

@@ -8,9 +8,8 @@ import { HighlightBase } from './highlight-base';

highlightResult: WritableSignal<HighlightResult>;
language: string;
ignoreIllegals: boolean;
highlighted: EventEmitter<HighlightResult>;
readonly language: InputSignal<string>;
readonly ignoreIllegals: InputSignalWithTransform<boolean, unknown>;
highlighted: OutputEmitterRef<HighlightResult>;
highlightElement(code: string): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<Highlight, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Highlight, "[highlight]", never, { "code": { "alias": "highlight"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": true; }; "ignoreIllegals": { "alias": "ignoreIllegals"; "required": false; }; }, { "highlighted": "highlighted"; }, never, never, true, never>;
static ngAcceptInputType_ignoreIllegals: unknown;
static ɵdir: i0.ɵɵDirectiveDeclaration<Highlight, "[highlight]", never, { "code": { "alias": "highlight"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": true; "isSignal": true; }; "ignoreIllegals": { "alias": "ignoreIllegals"; "required": false; "isSignal": true; }; }, { "highlighted": "highlighted"; }, never, never, true, never>;
}

@@ -13,6 +13,6 @@ import { InjectionToken, Provider } from '@angular/core';

lineNumbersOptions?: LineNumbersOptions;
languages?: Record<string, () => Promise<any>>;
coreLibraryLoader?: () => Promise<any>;
fullLibraryLoader?: () => Promise<any>;
lineNumbersLoader?: () => Promise<any>;
languages?: Record<string, () => Promise<unknown>>;
coreLibraryLoader?: () => Promise<unknown>;
fullLibraryLoader?: () => Promise<unknown>;
lineNumbersLoader?: () => Promise<unknown>;
themePath?: string;

@@ -19,0 +19,0 @@ }

@@ -0,4 +1,4 @@

import { InputSignalWithTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class HighlightLineNumbers {
private readonly _platform;
private readonly options;

@@ -9,4 +9,4 @@ private readonly _hljs;

private _lineNumbersObs;
startFrom: number;
singleLine: boolean;
readonly startFrom: InputSignalWithTransform<number, unknown>;
readonly singleLine: InputSignalWithTransform<boolean, unknown>;
constructor();

@@ -16,5 +16,3 @@ private addLineNumbers;

static ɵfac: i0.ɵɵFactoryDeclaration<HighlightLineNumbers, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightLineNumbers, "[highlight][lineNumbers], [highlightAuto][lineNumbers]", never, { "startFrom": { "alias": "startFrom"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_startFrom: unknown;
static ngAcceptInputType_singleLine: unknown;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightLineNumbers, "[highlight][lineNumbers], [highlightAuto][lineNumbers]", never, { "startFrom": { "alias": "startFrom"; "required": false; "isSignal": true; }; "singleLine": { "alias": "singleLine"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}
{
"name": "ngx-highlightjs",
"version": "12.0.0",
"version": "13.0.0",
"description": "Instant code highlighting, auto-detect language, super easy to use.",
"homepage": "http://github.com/murhafsousli/ngx-highlightjs",
"homepage": "https://ngx-highlight.netlify.app",
"author": {

@@ -12,3 +12,3 @@ "name": "Murhaf Sousli",

"type": "git",
"url": "git://github.com/murhafsousli/ngx-highlightjs.git"
"url": "https://github.com/MurhafSousli/ngx-highlightjs"
},

@@ -27,9 +27,10 @@ "bugs": {

],
"license": "MIT",
"peerDependencies": {
"@angular/common": ">=17.0.0",
"@angular/core": ">=17.0.0"
"@angular/common": ">=19.0.0",
"@angular/core": ">=19.0.0",
"@angular/cdk": ">=19.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
"highlight.js": "^11.9.0",
"highlight.js": "^11.11.1",
"tslib": "^2.3.0"

@@ -46,4 +47,2 @@ },

"types": "./index.d.ts",
"esm2022": "./esm2022/ngx-highlightjs.mjs",
"esm": "./esm2022/ngx-highlightjs.mjs",
"default": "./fesm2022/ngx-highlightjs.mjs"

@@ -53,4 +52,2 @@ },

"types": "./line-numbers/index.d.ts",
"esm2022": "./esm2022/line-numbers/ngx-highlightjs-line-numbers.mjs",
"esm": "./esm2022/line-numbers/ngx-highlightjs-line-numbers.mjs",
"default": "./fesm2022/ngx-highlightjs-line-numbers.mjs"

@@ -60,4 +57,2 @@ },

"types": "./plus/index.d.ts",
"esm2022": "./esm2022/plus/ngx-highlightjs-plus.mjs",
"esm": "./esm2022/plus/ngx-highlightjs-plus.mjs",
"default": "./fesm2022/ngx-highlightjs-plus.mjs"

@@ -64,0 +59,0 @@ }

@@ -6,3 +6,3 @@ <p align="center">

[![Demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://ngx-highlight.netlify.com/)
[![Demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://ngx-highlight.netlify.app/)
[![Stackblitz](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-highlightjs)

@@ -22,3 +22,3 @@ [![npm](https://img.shields.io/npm/v/ngx-highlightjs.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-highlightjs)

- [Live Demo](https://ngx-highlight.netlify.com/) | [Stackblitz](https://stackblitz.com/edit/ngx-highlightjs)
- [Live Demo](https://ngx-highlight.netlify.app/) | [Stackblitz](https://stackblitz.com/edit/ngx-highlightjs)
- [Installation](#installation)

@@ -167,3 +167,2 @@ - [Usage](#usage)

@Component({
standalone: true,
selector: 'app-root',

@@ -199,3 +198,2 @@ template: `

@Component({
standalone: true,
selector: 'app-root',

@@ -231,3 +229,2 @@ template: `

@Component({
standalone: true,
selector: 'app-root',

@@ -312,3 +309,2 @@ template: `

@Component({
standalone: true,
selector: 'app-root',

@@ -338,3 +334,2 @@ template: `

@Component({
standalone: true,
selector: 'app-root',

@@ -364,3 +359,2 @@ template: `

@Component({
standalone: true,
selector: 'app-root',

@@ -367,0 +361,0 @@ template: `

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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