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

ngx-showdown

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-showdown - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

8

lib/base-converter-options.provider.d.ts
import { IConverterOptions } from './base-converter.class';
export declare class ConverterOptions {
backslashEscapesHTMLTags: boolean;
completeHTMLDocument: boolean;
customizedHeaderId: boolean;
backslashEscapesHTMLTags: boolean;
disableForced4SpacesIndentedSublists: boolean;
emoji: boolean;
encodeEmails: boolean;

@@ -15,2 +17,3 @@ excludeTrailingPunctuationFromURLs: boolean;

literalMidWordUnderscores: boolean;
metadata: boolean;
noHeaderId: boolean;

@@ -32,3 +35,4 @@ omitExtraWLInCodeBlocks: boolean;

tasklists: boolean;
trimEachLine?: boolean | 'tab' | 'space';
trimEachLine: boolean | 'tab' | 'space';
underline: boolean;
constructor(options?: IConverterOptions);

@@ -35,0 +39,0 @@ merge(options: IConverterOptions): void;

@@ -52,5 +52,7 @@ "use strict";

return _super.call(this, {
backslashEscapesHTMLTags: false,
completeHTMLDocument: false,
customizedHeaderId: false,
backslashEscapesHTMLTags: false,
disableForced4SpacesIndentedSublists: false,
emoji: false,
encodeEmails: true,

@@ -66,2 +68,3 @@ excludeTrailingPunctuationFromURLs: false,

literalMidWordUnderscores: false,
metadata: false,
noHeaderId: false,

@@ -83,3 +86,4 @@ omitExtraWLInCodeBlocks: false,

tasklists: false,
trimEachLine: false
trimEachLine: false,
underline: false
}) || this;

@@ -86,0 +90,0 @@ }

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

[{"__symbolic":"module","version":3,"metadata":{"ConverterOptions":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./base-converter.class","name":"IConverterOptions"}]}],"merge":[{"__symbolic":"method"}]}},"BaseConverterOptions":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ConverterOptions"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ConverterOptions":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./base-converter.class","name":"IConverterOptions"}]}],"merge":[{"__symbolic":"method"}]}},"BaseConverterOptions":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ConverterOptions"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"ConverterOptions":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./base-converter.class","name":"IConverterOptions","line":39,"character":26}]}],"merge":[{"__symbolic":"method"}]}},"BaseConverterOptions":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ConverterOptions"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":69,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]

@@ -7,3 +7,5 @@ /// <reference types="showdown" />

backslashEscapesHTMLTags?: boolean;
completeHTMLDocument?: boolean;
disableForced4SpacesIndentedSublists?: boolean;
emoji?: boolean;
encodeEmails?: boolean;

@@ -18,2 +20,3 @@ excludeTrailingPunctuationFromURLs?: boolean;

literalMidWordUnderscores?: boolean;
metadata?: boolean;
noHeaderId?: boolean;

@@ -36,2 +39,3 @@ omitExtraWLInCodeBlocks?: boolean;

trimEachLine?: boolean | 'tab' | 'space';
underline?: boolean;
}

@@ -38,0 +42,0 @@ export interface IConverterOptions extends IConverterOptionsChangeable {

@@ -36,3 +36,5 @@ "use strict";

/** pre super.makeHtml (situation that not possible to achieve it with subParsers or extensions) */
BaseConverter.prototype._preMakeHtml = function (text) {
/** pre super.makeHtml (situation that not possible to achieve it with subParsers or extensions) */
BaseConverter.prototype._preMakeHtml = /** pre super.makeHtml (situation that not possible to achieve it with subParsers or extensions) */
function (text) {
var trimEachLine = this.getOptions().trimEachLine;

@@ -39,0 +41,0 @@ text = utils_1.default.trimEachLine(text, trimEachLine);

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

[{"__symbolic":"module","version":3,"metadata":{"IConverterOptionsChangeable":{"__symbolic":"interface"},"IConverterOptions":{"__symbolic":"interface"},"BaseConverter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"showdown","name":"Converter"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"setOptions":[{"__symbolic":"method"}],"_preMakeHtml":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"IConverterOptionsChangeable":{"__symbolic":"interface"},"IConverterOptions":{"__symbolic":"interface"},"BaseConverter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"showdown","name":"Converter"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"setOptions":[{"__symbolic":"method"}],"_preMakeHtml":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"IConverterOptionsChangeable":{"__symbolic":"interface"},"IConverterOptions":{"__symbolic":"interface"},"BaseConverter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"showdown","name":"Converter","line":44,"character":35},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"setOptions":[{"__symbolic":"method"}],"_preMakeHtml":[{"__symbolic":"method"}]}}}}]

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./base-converter.class","export":["BaseConverter","IConverterOptions","IConverterOptionsChangeable"]},{"from":"./base-converter-options.provider","export":["ConverterOptions","BaseConverterOptions"]},{"from":"./showdown-converter.provider","export":["ShowdownConverter"]},{"from":"./showdown.directive","export":["ShowdownDirective"]},{"from":"./src.directive","export":["SrcDirective"]},{"from":"./showdown.pipe","export":["ShowdownPipe"]},{"from":"./showdown.module","export":["ShowdownModule"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./base-converter.class","export":["BaseConverter","IConverterOptions","IConverterOptionsChangeable"]},{"from":"./base-converter-options.provider","export":["ConverterOptions","BaseConverterOptions"]},{"from":"./showdown-converter.provider","export":["ShowdownConverter"]},{"from":"./showdown.directive","export":["ShowdownDirective"]},{"from":"./src.directive","export":["SrcDirective"]},{"from":"./showdown.pipe","export":["ShowdownPipe"]},{"from":"./showdown.module","export":["ShowdownModule"]}]}]
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./base-converter.class","export":["BaseConverter","IConverterOptions","IConverterOptionsChangeable"]},{"from":"./base-converter-options.provider","export":["ConverterOptions","BaseConverterOptions"]},{"from":"./showdown-converter.provider","export":["ShowdownConverter"]},{"from":"./showdown.directive","export":["ShowdownDirective"]},{"from":"./src.directive","export":["SrcDirective"]},{"from":"./showdown.pipe","export":["ShowdownPipe"]},{"from":"./showdown.module","export":["ShowdownModule"]}]}]

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

[{"__symbolic":"module","version":3,"metadata":{"ShowdownConverter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"ShowdownConverter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"ShowdownConverter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter","line":16,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":17,"character":17}}]],"parameters":[{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions","line":17,"character":38}]}]}}}}]

@@ -62,31 +62,35 @@ import { ElementRef, OnInit } from '@angular/core';

static readonly STATUSES: typeof SHOWDOWN_DIRECTIVE_STATUSES;
customizedHeaderId?: boolean;
backslashEscapesHTMLTags?: boolean;
disableForced4SpacesIndentedSublists?: boolean;
encodeEmails?: boolean;
excludeTrailingPunctuationFromURLs?: boolean;
ghCodeBlocks?: boolean;
backslashEscapesHTMLTags: boolean;
completeHTMLDocument: boolean;
customizedHeaderId: boolean;
disableForced4SpacesIndentedSublists: boolean;
emoji: boolean;
encodeEmails: boolean;
excludeTrailingPunctuationFromURLs: boolean;
ghCodeBlocks: boolean;
ghCompatibleHeaderId?: boolean;
ghMentions?: boolean;
ghMentionsLink?: string;
headerLevelStart?: number;
literalMidWordAsterisks?: boolean;
literalMidWordUnderscores?: boolean;
noHeaderId?: boolean;
omitExtraWLInCodeBlocks?: boolean;
openLinksInNewWindow?: boolean;
parseImgDimensions?: boolean;
prefixHeaderId?: string | boolean;
rawHeaderId?: boolean;
rawPrefixHeaderId?: boolean;
requireSpaceBeforeHeadingText?: boolean;
simpleLineBreaks?: boolean;
simplifiedAutoLink?: boolean;
smartIndentationFix?: boolean;
smoothLivePreview?: boolean;
strikethrough?: boolean;
tables?: boolean;
tablesHeaderId?: boolean;
tasklists?: boolean;
trimEachLine?: boolean | 'tab' | 'space';
ghMentions: boolean;
ghMentionsLink: string;
headerLevelStart: number;
literalMidWordAsterisks: boolean;
literalMidWordUnderscores: boolean;
metadata: boolean;
noHeaderId: boolean;
omitExtraWLInCodeBlocks: boolean;
openLinksInNewWindow: boolean;
parseImgDimensions: boolean;
prefixHeaderId: string | boolean;
rawHeaderId: boolean;
rawPrefixHeaderId: boolean;
requireSpaceBeforeHeadingText: boolean;
simpleLineBreaks: boolean;
simplifiedAutoLink: boolean;
smartIndentationFix: boolean;
smoothLivePreview: boolean;
strikethrough: boolean;
tables: boolean;
tablesHeaderId: boolean;
tasklists: boolean;
trimEachLine: boolean | 'tab' | 'space';
underline: boolean;
private _value;

@@ -93,0 +97,0 @@ private _type;

@@ -18,3 +18,3 @@ "use strict";

var optionsProperties = [
'customizedHeaderId', 'backslashEscapesHTMLTags', 'disableForced4SpacesIndentedSublists', 'encodeEmails', 'excludeTrailingPunctuationFromURLs', 'ghCodeBlocks', 'ghCompatibleHeaderId', 'ghMentions', 'ghMentionsLink', 'headerLevelStart', 'literalMidWordAsterisks', 'literalMidWordUnderscores', 'noHeaderId', 'omitExtraWLInCodeBlocks', 'openLinksInNewWindow', 'parseImgDimensions', 'prefixHeaderId', 'rawHeaderId', 'rawPrefixHeaderId', 'requireSpaceBeforeHeadingText', 'simpleLineBreaks', 'simplifiedAutoLink', 'smartIndentationFix', 'smoothLivePreview', 'strikethrough', 'tables', 'tablesHeaderId', 'tasklists', 'trimEachLine'
'backslashEscapesHTMLTags', 'completeHTMLDocument', 'customizedHeaderId', 'disableForced4SpacesIndentedSublists', 'emoji', 'encodeEmails', 'excludeTrailingPunctuationFromURLs', 'ghCodeBlocks', 'ghCompatibleHeaderId', 'ghMentions', 'ghMentionsLink', 'headerLevelStart', 'literalMidWordAsterisks', 'literalMidWordUnderscores', 'metadata', 'noHeaderId', 'omitExtraWLInCodeBlocks', 'openLinksInNewWindow', 'parseImgDimensions', 'prefixHeaderId', 'rawHeaderId', 'rawPrefixHeaderId', 'requireSpaceBeforeHeadingText', 'simpleLineBreaks', 'simplifiedAutoLink', 'smartIndentationFix', 'smoothLivePreview', 'strikethrough', 'tables', 'tablesHeaderId', 'tasklists', 'trimEachLine', 'underline'
];

@@ -89,2 +89,3 @@ var SHOWDOWN_DIRECTIVE_TYPES;

// override the setOption method (define in the super constructor)
// override the setOption method (define in the super constructor)
_this.setOption = function (optionKey, value) {

@@ -97,4 +98,4 @@ _this.getOptions()[optionKey] = value;

Object.defineProperty(ShowdownDirective.prototype, "value", {
/** Value of the component (the input md text pre converter). */
get: function () {
get: /** Value of the component (the input md text pre converter). */
function () {
return this._value;

@@ -110,3 +111,4 @@ },

/** Type of the input source [binding, content, src]. */
get: function () {
get: /** Type of the input source [binding, content, src]. */
function () {
return ShowdownDirective.TYPES[this._type].toLowerCase();

@@ -119,3 +121,4 @@ },

/** Status of the component life cycle. */
get: function () {
get: /** Status of the component life cycle. */
function () {
return ShowdownDirective.STATUSES[this._status].toLowerCase();

@@ -127,4 +130,4 @@ },

Object.defineProperty(ShowdownDirective.prototype, "showdown", {
/** Alias to value */
get: function () {
get: /** Alias to value */
function () {
return this.value;

@@ -180,3 +183,5 @@ },

/** Converter the component (md value) to html */
ShowdownDirective.prototype.toHTML = function () {
/** Converter the component (md value) to html */
ShowdownDirective.prototype.toHTML = /** Converter the component (md value) to html */
function () {
var value = this._value;

@@ -199,5 +204,5 @@ return this.makeHtml(value);

ShowdownDirective.propDecorators = {
'value': [{ type: core_1.Input },],
'showdown': [{ type: core_1.Input },],
'options': [{ type: core_1.Input },],
"value": [{ type: core_1.Input },],
"showdown": [{ type: core_1.Input },],
"options": [{ type: core_1.Input },],
};

@@ -204,0 +209,0 @@ return ShowdownDirective;

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

[{"__symbolic":"module","version":3,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["customizedHeaderId","backslashEscapesHTMLTags","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","rawHeaderId","rawPrefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}},{"__symbolic":"module","version":1,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["customizedHeaderId","backslashEscapesHTMLTags","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","rawHeaderId","rawPrefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}}]
[{"__symbolic":"module","version":4,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter","line":69,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":65,"character":1},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["backslashEscapesHTMLTags","completeHTMLDocument","customizedHeaderId","disableForced4SpacesIndentedSublists","emoji","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","metadata","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","rawHeaderId","rawPrefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine","underline"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":114,"character":5}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":134,"character":5}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":143,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":152,"character":50}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":152,"character":37},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions","line":152,"character":71}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}}]

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

[{"__symbolic":"module","version":3,"metadata":{"ShowdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective"},{"__symbolic":"reference","module":"./showdown.pipe","name":"ShowdownPipe"},{"__symbolic":"reference","module":"./src.directive","name":"SrcDirective"}],"providers":[{"__symbolic":"reference","module":"./showdown-converter.provider","name":"ShowdownConverter"},{"provide":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"},"useClass":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"BaseConverterOptions"}}],"exports":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective"},{"__symbolic":"reference","module":"./showdown.pipe","name":"ShowdownPipe"},{"__symbolic":"reference","module":"./src.directive","name":"SrcDirective"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"ShowdownModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"ShowdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective"},{"__symbolic":"reference","module":"./showdown.pipe","name":"ShowdownPipe"},{"__symbolic":"reference","module":"./src.directive","name":"SrcDirective"}],"providers":[{"__symbolic":"reference","module":"./showdown-converter.provider","name":"ShowdownConverter"},{"provide":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"},"useClass":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"BaseConverterOptions"}}],"exports":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective"},{"__symbolic":"reference","module":"./showdown.pipe","name":"ShowdownPipe"},{"__symbolic":"reference","module":"./src.directive","name":"SrcDirective"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"ShowdownModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}}}}]
[{"__symbolic":"module","version":4,"metadata":{"ShowdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":34,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective","line":10,"character":4},{"__symbolic":"reference","module":"./showdown.pipe","name":"ShowdownPipe","line":11,"character":4},{"__symbolic":"reference","module":"./src.directive","name":"SrcDirective","line":12,"character":4}],"providers":[{"__symbolic":"reference","module":"./showdown-converter.provider","name":"ShowdownConverter","line":37,"character":8},{"provide":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions","line":38,"character":18},"useClass":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"BaseConverterOptions","line":38,"character":46}}],"exports":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective","line":10,"character":4},{"__symbolic":"reference","module":"./showdown.pipe","name":"ShowdownPipe","line":11,"character":4},{"__symbolic":"reference","module":"./src.directive","name":"SrcDirective","line":12,"character":4}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"ShowdownModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions","line":47,"character":26},"useValue":{"__symbolic":"reference","name":"config"}}]}}}}}}]

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

[{"__symbolic":"module","version":3,"metadata":{"ShowdownPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe"},"arguments":[{"name":"showdown","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"transform":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ShowdownPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe"},"arguments":[{"name":"showdown","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"transform":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"ShowdownPipe":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter","line":32,"character":34},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":28,"character":1},"arguments":[{"name":"showdown","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":34,"character":17}}]],"parameters":[{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions","line":34,"character":37}]}],"transform":[{"__symbolic":"method"}]}}}}]

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

import { Http } from '@angular/http';
import { HttpClient } from '@angular/common/http';
import { ShowdownDirective } from './showdown.directive';

@@ -29,4 +29,4 @@ /**

src: string;
constructor(_showdownDirective: ShowdownDirective, _http: Http);
constructor(_showdownDirective: ShowdownDirective, _http: HttpClient);
load(): void;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var http_1 = require("@angular/http");
var http_1 = require("@angular/common/http");
var showdown_directive_1 = require("./showdown.directive");

@@ -32,4 +32,4 @@ /**

Object.defineProperty(SrcDirective.prototype, "src", {
/** Source of md file */
get: function () {
get: /** Source of md file */
function () {
return this._src;

@@ -47,5 +47,4 @@ },

var src = this.src;
this._http.get(src).subscribe(function (res) {
var value = res.text();
_this._showdownDirective.setValue(value, showdown_directive_1.ShowdownDirective.TYPES.SRC);
this._http.get(src, { responseType: 'text' }).subscribe(function (response) {
_this._showdownDirective.setValue(response, showdown_directive_1.ShowdownDirective.TYPES.SRC);
});

@@ -61,6 +60,6 @@ };

{ type: showdown_directive_1.ShowdownDirective, },
{ type: http_1.Http, },
{ type: http_1.HttpClient, },
]; };
SrcDirective.propDecorators = {
'src': [{ type: core_1.Input },],
"src": [{ type: core_1.Input },],
};

@@ -67,0 +66,0 @@ return SrcDirective;

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

[{"__symbolic":"module","version":3,"metadata":{"SrcDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown[src],[showdown][src]"}]}],"members":{"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective"},{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"load":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SrcDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown[src],[showdown][src]"}]}],"members":{"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective"},{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"load":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"SrcDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":24,"character":1},"arguments":[{"selector":"showdown[src],[showdown][src]"}]}],"members":{"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./showdown.directive","name":"ShowdownDirective","line":42,"character":44},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":42,"character":78}]}],"load":[{"__symbolic":"method"}]}}}}]

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

[{"__symbolic":"module","version":3,"metadata":{"Utils":{"__symbolic":"class","statics":{"isEmpty":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"val"},"right":{"__symbolic":"error","message":"Expression form not supported","line":3,"character":23}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"val"},"right":null}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"val"},"member":"trim"}},"right":""}}},"isObject":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":7,"character":15},"right":"object"}},"isFunction":{"__symbolic":"function","parameters":["fn"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":15},"right":"function"}}}}}},{"__symbolic":"module","version":1,"metadata":{"Utils":{"__symbolic":"class","statics":{"isEmpty":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"val"},"right":{"__symbolic":"error","message":"Expression form not supported","line":3,"character":23}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"val"},"right":null}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"val"},"member":"trim"}},"right":""}}},"isObject":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":7,"character":15},"right":"object"}},"isFunction":{"__symbolic":"function","parameters":["fn"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":15},"right":"function"}}}}}}]
[{"__symbolic":"module","version":4,"metadata":{"Utils":{"__symbolic":"class","statics":{"isEmpty":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"val"},"right":{"__symbolic":"error","message":"Expression form not supported","line":3,"character":23}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"val"},"right":null}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"val"},"member":"trim"}},"right":""}}},"isObject":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":7,"character":15},"right":"object"}},"isFunction":{"__symbolic":"function","parameters":["fn"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":15},"right":"function"}}}}}}]
{
"name": "ngx-showdown",
"description": "Angular X Showdown Module.",
"version": "3.1.0",
"version": "4.0.0",
"license": "MIT",

@@ -37,6 +37,5 @@ "author": {

"build:gh-pages": "npm run build:demo -- --output-public-path /ngx-showdown/",
"ci:before": "npm prune",
"ci:script": "run-s ready",
"ci:after": "run-s coverage:report semantic-release ci:deploy",
"ci:deploy": "run-s build:gh-pages && git config --global user.email 'gh-pages@localhost' && git config --global user.name 'gh-pages' && gh-pages -d demo/build -r https://$GH_TOKEN@github.com/yisraelx/ngx-showdown.git -x",
"ci:deploy": "run-s build:gh-pages && git config --global user.email 'gh-pages@localhost' && git config --global user.name 'gh-pages' && gh-pages -d demo/build -r https://$GH_TOKEN@github.com/yisraelx/ngx-showdown.git -m \"chore: update\" -x",
"coverage:check": "istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80",

@@ -54,2 +53,3 @@ "coverage:report": "codecov -f coverage/*.json",

"precommit": "run-s ready",
"prepublish": "run-s build:lib build:bundles",
"ready": "run-s clean lint test coverage:check",

@@ -60,3 +60,3 @@ "start": "run-s demo",

"watch:test": "npm test -- --auto-watch --no-single-run",
"semantic-release": "semantic-release pre && run-s build:lib build:bundles && npm publish && semantic-release post"
"semantic-release": "semantic-release"
},

@@ -80,39 +80,39 @@ "repository": {

"dependencies": {
"@types/showdown": "^1.7.1"
"@types/showdown": "^1.7.2"
},
"peerDependencies": {
"@angular/core": "^4.3.6",
"@angular/http": "^4.3.6",
"showdown": "^1.7.3"
"@angular/common": "^5.2.2",
"@angular/core": "^5.2.2",
"showdown": "^1.8.6"
},
"devDependencies": {
"@angular/animations": "^4.3.6",
"@angular/cdk": "^2.0.0-beta.10",
"@angular/common": "^4.3.6",
"@angular/compiler": "^4.3.6",
"@angular/compiler-cli": "^4.3.6",
"@angular/core": "^4.3.6",
"@angular/forms": "^4.3.6",
"@angular/http": "^4.3.6",
"@angular/material": "^2.0.0-beta.10",
"@angular/platform-browser": "^4.3.6",
"@angular/platform-browser-dynamic": "^4.3.6",
"@angular/router": "^4.3.6",
"@types/core-js": "^0.9.43",
"@types/jasmine": "^2.5.54",
"@types/node": "^8.0.26",
"@types/webpack": "^3.0.10",
"@angular/animations": "^5.2.2",
"@angular/cdk": "^5.1.1",
"@angular/common": "^5.2.2",
"@angular/compiler": "^5.2.2",
"@angular/compiler-cli": "^5.2.2",
"@angular/core": "^5.2.2",
"@angular/forms": "^5.2.2",
"@angular/http": "^5.2.2",
"@angular/material": "^5.1.1",
"@angular/platform-browser": "^5.2.2",
"@angular/platform-browser-dynamic": "^5.2.2",
"@angular/router": "^5.2.2",
"@types/core-js": "^0.9.46",
"@types/jasmine": "^2.8.6",
"@types/node": "^9.4.0",
"@types/webpack": "^3.8.4",
"angular2-template-loader": "^0.6.2",
"clean-webpack-plugin": "^0.1.16",
"codecov": "^2.3.0",
"codelyzer": "^3.1.2",
"clean-webpack-plugin": "^0.1.18",
"codecov": "^3.0.0",
"codelyzer": "^4.1.0",
"commitizen": "^2.9.6",
"core-js": "^2.5.1",
"css-loader": "^0.28.7",
"cz-conventional-changelog": "^2.0.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
"gh-pages": "^1.0.0",
"core-js": "^2.5.3",
"css-loader": "^0.28.9",
"cz-conventional-changelog": "^2.1.0",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.6",
"gh-pages": "^1.1.0",
"hammerjs": "^2.0.8",
"html-loader": "^0.5.1",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^2.30.1",

@@ -122,27 +122,28 @@ "husky": "^0.14.3",

"istanbul-instrumenter-loader": "^3.0.0",
"jasmine-core": "^2.8.0",
"karma": "^1.7.1",
"jasmine-core": "^2.9.1",
"karma": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.1.0",
"karma-jasmine": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.4",
"karma-remap-coverage": "^0.1.4",
"karma-remap-coverage": "^0.1.5",
"karma-source-map-support": "^1.2.0",
"karma-webpack": "^2.0.4",
"npm-run-all": "^4.1.1",
"karma-webpack": "^2.0.9",
"npm-run-all": "^4.1.2",
"null-loader": "^0.1.1",
"raw-loader": "^0.5.1",
"rimraf": "^2.6.1",
"rxjs": "^5.4.3",
"semantic-release": "^7.0.2",
"showdown": "^1.7.3",
"style-loader": "^0.18.2",
"ts-loader": "^2.3.4",
"ts-node": "^3.3.0",
"tslint": "^5.7.0",
"typescript": "^2.5.2",
"rimraf": "^2.6.2",
"rxjs": "^5.5.6",
"semantic-release": "^12.4.1",
"showdown": "^1.8.6",
"style-loader": "^0.20.1",
"ts-loader": "^3.4.0",
"ts-node": "^4.1.0",
"tslint": "^5.9.1",
"typescript": "^2.7.1",
"validate-commit-msg": "^2.14.0",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.7.1",
"zone.js": "^0.8.17"
"webpack": "^3.10.0",
"webpack-dev-server": "^2.11.1",
"yarn": "^1.3.2",
"zone.js": "^0.8.20"
}
}
}

@@ -16,3 +16,3 @@ # Angular X Showdown Module based on [Showdown library](https://github.com/showdownjs/showdown).

# and install peer dependencies
$ npm install --save @angular/core @angular/http showdown
$ npm install --save @angular/core @angular/common showdown
```

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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

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