ngx-highlight-js
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
root["ngx-highlight-js.umd"] = factory(root["@angular/core"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -79,2 +79,8 @@ /******/ // The module cache | ||
/* 0 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_0__; | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -84,3 +90,3 @@ | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HighlightJsDirective; }); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__); | ||
@@ -118,21 +124,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
__decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(), | ||
__metadata("design:type", Object) | ||
], HighlightJsDirective.prototype, "options", void 0); | ||
__decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(), | ||
__metadata("design:type", String) | ||
], HighlightJsDirective.prototype, "lang", void 0); | ||
HighlightJsDirective = __decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Directive"])({ | ||
selector: '[highlight-js]', | ||
host: { | ||
'style': 'display:none;' | ||
} | ||
}), | ||
__metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_core__["ElementRef"] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__angular_core__["ElementRef"]) === "function" && _a || Object]) | ||
], HighlightJsDirective); | ||
return HighlightJsDirective; | ||
var _a; | ||
}()); | ||
__decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(), | ||
__metadata("design:type", Object) | ||
], HighlightJsDirective.prototype, "options", void 0); | ||
__decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(), | ||
__metadata("design:type", String) | ||
], HighlightJsDirective.prototype, "lang", void 0); | ||
HighlightJsDirective = __decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Directive"])({ | ||
selector: '[highlight-js]', | ||
host: { | ||
'style': 'display:none;' | ||
} | ||
}), | ||
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_core__["ElementRef"]]) | ||
], HighlightJsDirective); | ||
@@ -142,8 +149,2 @@ | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/* 2 */ | ||
@@ -154,19 +155,7 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_highlight_js_directive__ = __webpack_require__(0); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HighlightJsDirective", function() { return __WEBPACK_IMPORTED_MODULE_0__components_highlight_js_directive__["a"]; }); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_highlight_js_module__ = __webpack_require__(3); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HighlightJsModule", function() { return __WEBPACK_IMPORTED_MODULE_1__components_highlight_js_module__["a"]; }); | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HighlightJsModule; }); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HighlightJsModule", function() { return HighlightJsModule; }); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__highlight_js_directive__ = __webpack_require__(0); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_highlight_js_directive__ = __webpack_require__(1); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HighlightJsDirective", function() { return __WEBPACK_IMPORTED_MODULE_1__components_highlight_js_directive__["a"]; }); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
@@ -180,13 +169,14 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
var HighlightJsModule = (function () { | ||
function HighlightJsModule() { | ||
} | ||
HighlightJsModule = __decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({ | ||
declarations: [__WEBPACK_IMPORTED_MODULE_1__components_highlight_js_directive__["a" /* HighlightJsDirective */]], | ||
exports: [__WEBPACK_IMPORTED_MODULE_1__components_highlight_js_directive__["a" /* HighlightJsDirective */]] | ||
}) | ||
], HighlightJsModule); | ||
return HighlightJsModule; | ||
}()); | ||
HighlightJsModule = __decorate([ | ||
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({ | ||
declarations: [__WEBPACK_IMPORTED_MODULE_1__highlight_js_directive__["a" /* HighlightJsDirective */]], | ||
exports: [__WEBPACK_IMPORTED_MODULE_1__highlight_js_directive__["a" /* HighlightJsDirective */]] | ||
}) | ||
], HighlightJsModule); | ||
@@ -193,0 +183,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core")):"function"==typeof define&&define.amd?define(["@angular/core"],t):"object"==typeof exports?exports["ngx-highlight-js.umd.min"]=t(require("@angular/core")):e["ngx-highlight-js.umd.min"]=t(e["@angular/core"])}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(1),o=(n.n(r),this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(c=(i<3?o(c):i>3?o(t,n,c):o(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c}),i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.elementRef=e}return e.prototype.ngOnInit=function(){this.codeEl=document.createElement("pre"),this.lang&&(this.codeEl.className=this.lang),this.codeEl.innerHTML=""+this.elementRef.nativeElement.innerHTML.trim(),this.parentEl=this.elementRef.nativeElement.parentNode,this.parentEl.insertBefore(this.codeEl,this.elementRef.nativeElement.nextSibling),hljs.configure(Object.assign({},this.options)),hljs.highlightBlock(this.codeEl)},e.prototype.ngOnDestroy=function(){this.codeEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=null)},e}();o([Object(r.Input)(),i("design:type",Object)],c.prototype,"options",void 0),o([Object(r.Input)(),i("design:type",String)],c.prototype,"lang",void 0),c=o([Object(r.Directive)({selector:"[highlight-js]",host:{style:"display:none;"}}),i("design:paramtypes",[r.ElementRef])],c)},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);n.d(t,"HighlightJsDirective",function(){return r.a});var o=n(3);n.d(t,"HighlightJsModule",function(){return o.a})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(1),o=(n.n(r),n(0)),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(c=(i<3?o(c):i>3?o(t,n,c):o(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c},c=function(){function e(){}return e}();c=i([Object(r.NgModule)({declarations:[o.a],exports:[o.a]})],c)}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core")):"function"==typeof define&&define.amd?define(["@angular/core"],t):"object"==typeof exports?exports["ngx-highlight-js.umd.min"]=t(require("@angular/core")):e["ngx-highlight-js.umd.min"]=t(e["@angular/core"])}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var o=n(0),r=(n.n(o),this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,c=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(c=(i<3?r(c):i>3?r(t,n,c):r(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c}),i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.elementRef=e}return e.prototype.ngOnInit=function(){this.codeEl=document.createElement("pre"),this.lang&&(this.codeEl.className=this.lang),this.codeEl.innerHTML=""+this.elementRef.nativeElement.innerHTML.trim(),this.parentEl=this.elementRef.nativeElement.parentNode,this.parentEl.insertBefore(this.codeEl,this.elementRef.nativeElement.nextSibling),hljs.configure(Object.assign({},this.options)),hljs.highlightBlock(this.codeEl)},e.prototype.ngOnDestroy=function(){this.codeEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=null)},r([Object(o.Input)(),i("design:type",Object)],e.prototype,"options",void 0),r([Object(o.Input)(),i("design:type",String)],e.prototype,"lang",void 0),e=r([Object(o.Directive)({selector:"[highlight-js]",host:{style:"display:none;"}}),i("design:paramtypes",["function"==typeof(t=void 0!==o.ElementRef&&o.ElementRef)&&t||Object])],e);var t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"HighlightJsModule",function(){return c});var o=n(0),r=(n.n(o),n(1));n.d(t,"HighlightJsDirective",function(){return r.a});var i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,c=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(c=(i<3?r(c):i>3?r(t,n,c):r(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c},c=function(){function e(){}return e=i([Object(o.NgModule)({declarations:[r.a],exports:[r.a]})],e)}()}])}); |
@@ -0,3 +1,7 @@ | ||
# 1.0.3 | ||
+ Support Angular5. | ||
# 1.0.2 | ||
+ 修复 UNMET PEER DEPENDENCY |
@@ -23,21 +23,21 @@ import { Directive, ElementRef, Input } from "@angular/core"; | ||
}; | ||
HighlightJsDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[highlight-js]', | ||
host: { | ||
'style': 'display:none;' | ||
} | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
HighlightJsDirective.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
]; }; | ||
HighlightJsDirective.propDecorators = { | ||
"options": [{ type: Input },], | ||
"lang": [{ type: Input },], | ||
}; | ||
return HighlightJsDirective; | ||
}()); | ||
export { HighlightJsDirective }; | ||
HighlightJsDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[highlight-js]', | ||
host: { | ||
'style': 'display:none;' | ||
} | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
HighlightJsDirective.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
]; }; | ||
HighlightJsDirective.propDecorators = { | ||
'options': [{ type: Input },], | ||
'lang': [{ type: Input },], | ||
}; | ||
//# sourceMappingURL=highlight-js.directive.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"HighlightJsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[highlight-js]","host":{"style":"display:none;","$quoted$":["style"]}}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lang":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HighlightJsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[highlight-js]","host":{"style":"display:none;"}}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lang":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"HighlightJsDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[highlight-js]","host":{"style":"display:none;","$quoted$":["style"]}}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lang":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] |
export { HighlightJsDirective } from './components/highlight-js.directive'; | ||
export { HighlightJsModule } from './components/highlight-js.module'; | ||
export declare class HighlightJsModule { | ||
} |
17
index.js
@@ -0,3 +1,18 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { HighlightJsDirective } from './components/highlight-js.directive'; | ||
export { HighlightJsDirective } from './components/highlight-js.directive'; | ||
export { HighlightJsModule } from './components/highlight-js.module'; | ||
var HighlightJsModule = (function () { | ||
function HighlightJsModule() { | ||
} | ||
HighlightJsModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [HighlightJsDirective], | ||
exports: [HighlightJsDirective] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
HighlightJsModule.ctorParameters = function () { return []; }; | ||
return HighlightJsModule; | ||
}()); | ||
export { HighlightJsModule }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./components/highlight-js.directive","export":["HighlightJsDirective"]},{"from":"./components/highlight-js.module","export":["HighlightJsModule"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./components/highlight-js.directive","export":["HighlightJsDirective"]},{"from":"./components/highlight-js.module","export":["HighlightJsModule"]}]}] | ||
[{"__symbolic":"module","version":4,"metadata":{"HighlightJsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./components/highlight-js.directive","name":"HighlightJsDirective"}],"exports":[{"__symbolic":"reference","module":"./components/highlight-js.directive","name":"HighlightJsDirective"}]}]}]}},"exports":[{"from":"./components/highlight-js.directive","export":["HighlightJsDirective"]}]}] |
{ | ||
"main": "index.js", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Angular for syntax highlighting with highlight.js", | ||
@@ -5,0 +5,0 @@ "typings": "index.d.ts", |
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
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
28850
15
238