A new start

This commit is contained in:
2018-11-24 14:43:59 +01:00
commit 3c32c8a37a
24054 changed files with 1376258 additions and 0 deletions

13
node_modules/terser/tools/colorless-console.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
"use strict"
var semver = require("semver");
if (semver.satisfies(process.version, ">=10")) {
var Console = require("console").Console;
global.console = new Console({
stdout: process.stdout,
stderr: process.stderr,
colorMode: false
});
}

5601
node_modules/terser/tools/domprops.json generated vendored Normal file

File diff suppressed because it is too large Load Diff

15
node_modules/terser/tools/exit.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
// workaround for tty output truncation upon process.exit()
var exit = process.exit;
process.exit = function() {
var args = [].slice.call(arguments);
process.once("uncaughtException", function() {
(function callback() {
if (process.stdout.bufferSize || process.stderr.bufferSize) {
setImmediate(callback);
} else {
exit.apply(process, args);
}
})();
});
throw exit;
};

14
node_modules/terser/tools/exports.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
exports["Dictionary"] = Dictionary;
exports["minify"] = minify;
exports["parse"] = parse;
exports["push_uniq"] = push_uniq;
exports["OutputStream"] = OutputStream;
exports["TreeTransformer"] = TreeTransformer;
exports["TreeWalker"] = TreeWalker;
exports["string_template"] = string_template;
exports["Compressor"] = Compressor;
exports["defaults"] = defaults;
exports["base54"] = base54;
exports["mangle_properties"] = mangle_properties;
exports["reserve_quoted_keys"] = reserve_quoted_keys;
exports["to_ascii"] = to_ascii;

53
node_modules/terser/tools/node.js generated vendored Normal file
View File

@@ -0,0 +1,53 @@
var fs = require("fs");
var UglifyJS = exports;
var FILES = UglifyJS.FILES = [
"../lib/utils.js",
"../lib/ast.js",
"../lib/parse.js",
"../lib/transform.js",
"../lib/scope.js",
"../lib/output.js",
"../lib/compress.js",
"../lib/sourcemap.js",
"../lib/mozilla-ast.js",
"../lib/propmangle.js",
"../lib/minify.js",
"./exports.js",
].map(function(file){
return require.resolve(file);
});
try {
var istanbul = require("istanbul");
var instrumenter = new istanbul.Instrumenter();
} catch (ex) {}
new Function("MOZ_SourceMap", "exports", function() {
var code = FILES.map(function(file) {
var contents = fs.readFileSync(file, "utf8");
if (instrumenter && global.__IS_TESTING__) return instrumenter.instrumentSync(contents, file);
return contents;
});
return code.join("\n\n");
}())(
require("source-map"),
UglifyJS
);
function infer_options(options) {
var result = UglifyJS.minify("", options);
return result.error && result.error.defs;
}
UglifyJS.default_options = function() {
var defs = {};
Object.keys(infer_options({ 0: 0 })).forEach(function(component) {
var options = {};
options[component] = { 0: 0 };
if (options = infer_options(options)) {
defs[component] = options;
}
});
return defs;
};

61
node_modules/terser/tools/props.html generated vendored Normal file
View File

@@ -0,0 +1,61 @@
<html>
<head>
</head>
<body>
<script>(function(){
var props = {};
function addObject(obj) {
if (obj == null) return;
try {
Object.getOwnPropertyNames(obj).forEach(add);
} catch(ex) {}
if (obj.prototype) {
Object.getOwnPropertyNames(obj.prototype).forEach(add);
}
if (typeof obj == "function") {
try {
Object.getOwnPropertyNames(new obj).forEach(add);
} catch(ex) {}
}
}
function add(name) {
props[name] = true;
}
Object.getOwnPropertyNames(window).forEach(function(thing){
addObject(window[thing]);
});
try {
addObject(new Event("click"));
addObject(new Event("contextmenu"));
addObject(new Event("mouseup"));
addObject(new Event("mousedown"));
addObject(new Event("keydown"));
addObject(new Event("keypress"));
addObject(new Event("keyup"));
} catch(ex) {}
var ta = document.createElement("textarea");
ta.style.width = "100%";
ta.style.height = "20em";
ta.style.boxSizing = "border-box";
<!-- ta.value = Object.keys(props).sort(cmp).map(function(name){ -->
<!-- return JSON.stringify(name); -->
<!-- }).join(",\n"); -->
ta.value = JSON.stringify({
vars: [],
props: Object.keys(props).sort(cmp)
}, null, 2);
document.body.appendChild(ta);
function cmp(a, b) {
a = a.toLowerCase();
b = b.toLowerCase();
return a < b ? -1 : a > b ? 1 : 0;
}
})();</script>
</body>
</html>