forked from enviPath/enviPy
Current Dev State
This commit is contained in:
13
static/js/ketcher2/node_modules/gulp-uglify/lib/create-error.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/gulp-uglify/lib/create-error.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
var curry = require('lodash/fp/curry');
|
||||
var GulpUglifyError = require('./gulp-uglify-error');
|
||||
|
||||
function createError(file, msg, cause) {
|
||||
var perr = new GulpUglifyError(msg, cause);
|
||||
perr.plugin = 'gulp-uglify';
|
||||
perr.fileName = file.path;
|
||||
perr.showStack = false;
|
||||
return perr;
|
||||
}
|
||||
|
||||
module.exports = curry(createError);
|
||||
13
static/js/ketcher2/node_modules/gulp-uglify/lib/gulp-uglify-error.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/gulp-uglify/lib/gulp-uglify-error.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
var makeErrorCause = require('make-error-cause');
|
||||
|
||||
var gulpUglifyError = makeErrorCause('GulpUglifyError');
|
||||
gulpUglifyError.prototype.toString = function() {
|
||||
var cause = this.cause || {};
|
||||
|
||||
return makeErrorCause.BaseError.prototype.toString.call(this) +
|
||||
(this.fileName ? '\nFile: ' + this.fileName : '') +
|
||||
(cause.line ? '\nLine: ' + cause.line : '');
|
||||
};
|
||||
|
||||
module.exports = gulpUglifyError;
|
||||
18
static/js/ketcher2/node_modules/gulp-uglify/lib/log.js
generated
vendored
Normal file
18
static/js/ketcher2/node_modules/gulp-uglify/lib/log.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
var hasLog = require('has-gulplog');
|
||||
var each = require('lodash/fp/forEach');
|
||||
|
||||
var levels = ['debug', 'info', 'warn', 'error'];
|
||||
|
||||
each(
|
||||
function(level) {
|
||||
module.exports[level] = function() {
|
||||
if (hasLog()) {
|
||||
var log = require('gulplog');
|
||||
|
||||
log[level].apply(log, arguments);
|
||||
}
|
||||
};
|
||||
},
|
||||
levels
|
||||
);
|
||||
Reference in New Issue
Block a user