@asymmetrik/ngx-leaflet
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -58,18 +58,16 @@ 'use strict'; | ||
// Build JS from the TS source | ||
gulp.task('build-ts', () => { | ||
gulp.task('build-ts', (done) => { | ||
let configPath = './tsconfig-aot.json'; | ||
return gulp.src(configPath) | ||
.pipe(through.obj((file, encoding, callback) => { | ||
ngc([ '-p', configPath ], (error) => { | ||
let err = (null == error) | ||
? null | ||
: new plugins.util.PluginError( | ||
'ngc', | ||
`${plugins.util.colors.red('Compilation error.')}\nSee details in the ngc output`, | ||
{fileName: file.path}); | ||
let err = null; | ||
let result = ngc([ '-p', configPath ], (error) => { | ||
err = error; | ||
}); | ||
callback(err, file); | ||
}); | ||
})); | ||
if (0 !== result || null != err) { | ||
err = new plugins.util.PluginError( | ||
'ngc', `${plugins.util.colors.red('Compilation error, see details in ngc output.')}`, {}); | ||
} | ||
done(err); | ||
}); | ||
@@ -99,3 +97,3 @@ | ||
onwarn: (warning) => { | ||
if ('THIS_IS_UNDEFINED' === warning.code) { | ||
if ('THIS_IS_UNDEFINED' === warning.code || 'UNUSED_EXTERNAL_IMPORT' === warning.code) { | ||
return; | ||
@@ -102,0 +100,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"description": "Angular.io components for Leaflet", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Asymmetrik, Ltd.", | ||
@@ -23,4 +23,4 @@ "copyright": "Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved.", | ||
"peerDependencies": { | ||
"@angular/core": "5", | ||
"@angular/common": "5", | ||
"@angular/core": ">=5", | ||
"@angular/common": ">=5", | ||
@@ -67,5 +67,2 @@ "leaflet": "1" | ||
"sass-loader": "6.0", | ||
"style-loader": "0.19", | ||
"awesome-typescript-loader": "3.4", | ||
"url-loader": "0.6", | ||
"source-map-loader": "0.2", | ||
@@ -72,0 +69,0 @@ "style-loader": "0.19", |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
258659
104
3602
2