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

ngx-highlight-js

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-highlight-js - npm Package Compare versions

Comparing version 16.0.0 to 16.1.0

11

package.json
{
"name": "ngx-highlight-js",
"version": "16.0.0",
"version": "16.1.0",
"description": "Angular for syntax highlighting with highlight.js",

@@ -23,2 +23,6 @@ "keywords": [

"homepage": "https://cipchk.github.io/ngx-highlight-js/",
"dependencies": {
"highlight.js": "^11.0.0",
"tslib": "^2.3.0"
},
"module": "fesm2022/ngx-highlight-js.mjs",

@@ -37,6 +41,3 @@ "typings": "index.d.ts",

},
"sideEffects": false,
"dependencies": {
"tslib": "^2.3.0"
}
"sideEffects": false
}

@@ -106,3 +106,3 @@ # ngx-highlight-js

| `[mode]` | - `default` Will render each `<pre><code>`<br>- `simple` Render all content according to `lang` language | `default, simple` | `simple` | ✅ |
| `[options]` | Equar [configure(options)](http://highlightjs.readthedocs.io/en/latest/api.html#configure-options) | `any` | - | ✅ |
| `[options]` | Equar [configure(options)](https://highlightjs.readthedocs.io/en/latest/api.html#configure) | `any` | - | ✅ |
| `[lang]` | Uses language detection by default but you can specify the language | `string` | `html` | ✅ |

@@ -109,0 +109,0 @@ | `[code]` | Specify content | `string` | `html` | - |

import { InjectionToken } from '@angular/core';
import type { HLJSOptions } from 'highlight.js';
export interface HighlightJsConfig {

@@ -14,6 +15,6 @@ /**

/**
* Equar [configure(options)](http://highlightjs.readthedocs.io/en/latest/api.html#configure-options)
* Equar [configure(options)](https://highlightjs.readthedocs.io/en/latest/api.html#configure)
*/
options?: any;
options?: Partial<HLJSOptions>;
}
export declare const HIGHLIGHTJS_CONFIG: InjectionToken<HighlightJsConfig>;
import { ElementRef, OnDestroy, AfterViewInit, NgZone } from '@angular/core';
import { NgModel } from '@angular/forms';
import { HighlightJsConfig } from './highlight-js.config';
import type { HLJSOptions } from 'highlight.js';
import * as i0 from "@angular/core";

@@ -10,10 +11,10 @@ export declare class HighlightJsDirective implements AfterViewInit, OnDestroy {

private ngZone;
options: any;
options?: Partial<HLJSOptions>;
lang: string;
code: string;
code?: string;
mode: 'default' | 'simple';
protected codeEl?: HTMLElement;
protected parentEl: HTMLElement;
protected parentEl?: HTMLElement;
private modelValue$?;
private observer;
private observer?;
constructor(el: ElementRef<HTMLElement>, ngModel: NgModel, doc: any, cog: HighlightJsConfig, ngZone: NgZone);

@@ -20,0 +21,0 @@ private escapeHTML;

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