Socket
Socket
Sign inDemoInstall

ngc-webpack

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngc-webpack - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

21

package.json
{
"name": "ngc-webpack",
"version": "1.0.5",
"version": "1.0.6",
"description": "A wrapper for the angular compiler-cli with webpack integration",
"author": "Shlomi Assaf <shlomiasaf@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/shlomiassaf/ngc-webpack.git"
},
"main": "index.js",
"typings": "index.d.ts",
"keywords": [
"angular",
"compiler",
"webpack",
"laoder",
"plugin"
],
"bin": {

@@ -22,3 +35,7 @@ "ngc-w": "./src/main.js"

"webpack": "2.2.0-rc.3"
}
},
"bugs": {
"url": "https://github.com/shlomiassaf/ngc-webpack/issues"
},
"homepage": "https://github.com/shlomiassaf/ngc-webpack#readme"
}

@@ -8,2 +8,3 @@ /// <reference types="node" />

plugin: NgcWebpackPlugin;
private hasPlugin;
constructor(webpackConfigPath: string);

@@ -10,0 +11,0 @@ init(): void;

5

src/webpack-wrapper.js

@@ -20,5 +20,6 @@ "use strict";

.filter(function (p) { return p instanceof plugin_1.NgcWebpackPlugin; })[0];
this.hasPlugin = !!this.plugin;
};
WebpackWrapper.prototype.emitOnCompilationSuccess = function () {
if (typeof this.plugin.options.onCompilationSuccess === 'function') {
if (this.hasPlugin && typeof this.plugin.options.onCompilationSuccess === 'function') {
this.plugin.options.onCompilationSuccess.call(this);

@@ -28,3 +29,3 @@ }

WebpackWrapper.prototype.emitOnCompilationError = function (err) {
if (typeof this.plugin.options.onCompilationError === 'function') {
if (this.hasPlugin && typeof this.plugin.options.onCompilationError === 'function') {
this.plugin.options.onCompilationError.call(this, err);

@@ -31,0 +32,0 @@ }

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