initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

1
node_modules/stacktrace-parser/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

8
node_modules/stacktrace-parser/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,8 @@
language: node_js
node_js:
- "iojs"
- "iojs-v2"
- "iojs-v1"
- "0.12"
- "0.10"
sudo: false

20
node_modules/stacktrace-parser/Gruntfile.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
module.exports = function(grunt) {
var pkg = require('./package.json');
grunt.initConfig({
shell: { // grunt-shell-spawn
options: {
stdout: true,
stderr: true
},
mocha: {
command: './node_modules/.bin/mocha --reporter spec test/**/*.js',
}
}
});
grunt.loadNpmTasks('grunt-shell-spawn');
grunt.registerTask('test', ['shell:mocha']);
};

54
node_modules/stacktrace-parser/README.md generated vendored Normal file
View File

@@ -0,0 +1,54 @@
# StackTrace-Parser
This parser parses a stack trace from any browser or Node.js and returns an array of hashes representing a line.
## Usage
``` JavaScript
try {
throw new Error('My error');
} catch(ex) {
var lines = StackTraceParser.parse(ex.stack);
}
```
Every line contains four properties: `lineNumber`, `methodName`, `file` and `column` (if applicable).
## TODOs
- allow to run in browser (v0.2)
- parse stack traces from other sources (Ruby, etc) (v0.3)
## Contribution
If you want to contrib, then do you thing, write tests, run `grunt test` ensure that everything is green , commit and make the pull request. Or just write an issue, or let's talk.
## Contributors
- [Georg Tavonius](https://github.com/calamari)
- [James Ide](https://github.com/ide)
- [Alexander Kotliarskyi](https://github.com/frantic)
## LICENSE
The MIT License (MIT)
Copyright (c) 2014-2015 Georg Tavonius
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

1
node_modules/stacktrace-parser/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require('./lib/stacktrace-parser.js');

View File

@@ -0,0 +1,53 @@
var UNKNOWN_FUNCTION = '<unknown>';
var StackTraceParser = {
/**
* This parses the different stack traces and puts them into one format
* This borrows heavily from TraceKit (https://github.com/occ/TraceKit)
*/
parse: function(stackString) {
var chrome = /^\s*at (?:(?:(?:Anonymous function)?|((?:\[object object\])?\S+(?: \[as \S+\])?)) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
gecko = /^(?:\s*([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,
node = /^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,
lines = stackString.split('\n'),
stack = [],
parts,
element;
for (var i = 0, j = lines.length; i < j; ++i) {
if ((parts = gecko.exec(lines[i]))) {
element = {
'file': parts[3],
'methodName': parts[1] || UNKNOWN_FUNCTION,
'lineNumber': +parts[4],
'column': parts[5] ? +parts[5] : null
};
} else if ((parts = chrome.exec(lines[i]))) {
element = {
'file': parts[2],
'methodName': parts[1] || UNKNOWN_FUNCTION,
'lineNumber': +parts[3],
'column': parts[4] ? +parts[4] : null
};
} else if ((parts = node.exec(lines[i]))) {
element = {
'file': parts[2],
'methodName': parts[1] || UNKNOWN_FUNCTION,
'lineNumber': +parts[3],
'column': parts[4] ? +parts[4] : null
};
} else {
continue;
}
stack.push(element);
}
return stack;
}
};
module.exports = StackTraceParser;

90
node_modules/stacktrace-parser/package.json generated vendored Normal file
View File

@@ -0,0 +1,90 @@
{
"_args": [
[
"stacktrace-parser@^0.1.3",
"/home/bernhard/freifunk-app/node_modules/react-native"
]
],
"_from": "stacktrace-parser@>=0.1.3 <0.2.0",
"_id": "stacktrace-parser@0.1.4",
"_inCache": true,
"_installable": true,
"_location": "/stacktrace-parser",
"_nodeVersion": "5.3.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/stacktrace-parser-0.1.4.tgz_1467898365229_0.3610573778860271"
},
"_npmUser": {
"email": "g.tavonius@gmail.com",
"name": "calamari"
},
"_npmVersion": "3.3.12",
"_phantomChildren": {},
"_requested": {
"name": "stacktrace-parser",
"raw": "stacktrace-parser@^0.1.3",
"rawSpec": "^0.1.3",
"scope": null,
"spec": ">=0.1.3 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/react-native"
],
"_resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.4.tgz",
"_shasum": "01397922e5f62ecf30845522c95c4fe1d25e7d4e",
"_shrinkwrap": null,
"_spec": "stacktrace-parser@^0.1.3",
"_where": "/home/bernhard/freifunk-app/node_modules/react-native",
"author": {
"email": "g.tavonius@gmail.com",
"name": "Georg Tavonius",
"url": "http://jaz-lounge.com"
},
"bugs": {
"url": "http://github.com/errwischt/stacktrace-parser/issues"
},
"dependencies": {},
"description": "Parses every stack trace into a nicely formatted array of hashes.",
"devDependencies": {
"expect.js": "*",
"grunt": "~0.4.2",
"grunt-cli": "~0.1.13",
"grunt-shell-spawn": "~0.3.0",
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "01397922e5f62ecf30845522c95c4fe1d25e7d4e",
"tarball": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.4.tgz"
},
"gitHead": "fb58c13ba19dd9aa12b8480d8e9b938524953921",
"homepage": "https://github.com/errwischt/stacktrace-parser",
"keywords": [
"errors",
"exceptions",
"parser",
"stacktrace"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "calamari",
"email": "g.tavonius@gmail.com"
}
],
"name": "stacktrace-parser",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/errwischt/stacktrace-parser.git"
},
"scripts": {
"test": "grunt test"
},
"version": "0.1.4"
}

View File

@@ -0,0 +1,333 @@
var expect = require('expect.js'),
StackTraceParser = require('../lib/stacktrace-parser');
describe('StackTraceParser', function() {
var data = {
'Chrome & Chrome Mobile & Opera': [
{
from: "Error: with timeout\n at http://errwischt.com/stack_traces/test:76:15\n at wrapped (http://errwischt.com/bandage.js:51:25)",
to: [
{ file: 'http://errwischt.com/stack_traces/test',
methodName: '<unknown>',
lineNumber: 76,
column: 15 },
{ file: 'http://errwischt.com/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 25 }
]
},
{
from: "Error: with timeout and named func\n at timeoutWithName (http://errwischt.com/stack_traces/test:83:15)\n at wrapped (http://errwischt.com/bandage.js:51:25)",
to: [
{ file: 'http://errwischt.com/stack_traces/test',
methodName: 'timeoutWithName',
lineNumber: 83,
column: 15 },
{ file: 'http://errwischt.com/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 25 }
]
},
{
from: "TypeError: Object # has no method 'objectBreakDown'\n at HTMLDocument. (http://errwischt.com/stack_traces/test:91:19)\n at l (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:24882)\n at Object.c.fireWith [as resolveWith] (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:25702)\n at Function.x.extend.ready (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:2900)\n at HTMLDocument.S (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:553)",
to: [
{ file: 'http://errwischt.com/stack_traces/test',
methodName: 'HTMLDocument.',
lineNumber: 91,
column: 19 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'l',
lineNumber: 4,
column: 24882 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'Object.c.fireWith [as resolveWith]',
lineNumber: 4,
column: 25702 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'Function.x.extend.ready',
lineNumber: 4,
column: 2900 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'HTMLDocument.S',
lineNumber: 4,
column: 553 }
]
}
],
'Firefox': [
{
from: "timeoutWithName@http://errwischt.com/stack_traces/test:83\nwrapped@http://errwischt.com/bandage.js:51",
to: [
{ file: 'http://errwischt.com/stack_traces/test',
methodName: 'timeoutWithName',
lineNumber: 83,
column: null },
{ file: 'http://errwischt.com/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: null }
]
},
{
from: "@http://errwischt.com/stack_traces/test:76\nwrapped@http://errwischt.com/bandage.js:51",
to: [
{ file: 'http://errwischt.com/stack_traces/test',
methodName: '<unknown>',
lineNumber: 76,
column: null },
{ file: 'http://errwischt.com/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: null }
]
},
{
from: "@http://errwischt.com/stack_traces/test:97\nx.Callbacks/l@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4\nx.Callbacks/c.fireWith@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4\n.ready@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4\nS@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4",
to: [
{ file: 'http://errwischt.com/stack_traces/test',
methodName: '<unknown>',
lineNumber: 97,
column: null },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'x.Callbacks/l',
lineNumber: 4,
column: null },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'x.Callbacks/c.fireWith',
lineNumber: 4,
column: null },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: '.ready',
lineNumber: 4,
column: null },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'S',
lineNumber: 4,
column: null }
]
}
],
'Safari': [
{
from: "timeoutWithName@http://bandage.local:8181/stack_traces/test:83:55\nwrapped@http://bandage.local:8181/bandage.js:51:30",
to: [ { file: 'http://bandage.local:8181/stack_traces/test',
methodName: 'timeoutWithName',
lineNumber: 83,
column: 55 },
{ file: 'http://bandage.local:8181/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 30 } ]
},
{
from: "http://bandage.local:8181/stack_traces/test:76:40\nwrapped@http://bandage.local:8181/bandage.js:51:30",
to: [ { file: 'http://bandage.local:8181/stack_traces/test',
methodName: '<unknown>',
lineNumber: 76,
column: 40 },
{ file: 'http://bandage.local:8181/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 30 } ]
},
{
from: "http://bandage.local:8181/stack_traces/test:97:28\nl@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:24909\nfireWith@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:50440\nready@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:2933\nS@http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:580",
to: [ { file: 'http://bandage.local:8181/stack_traces/test',
methodName: '<unknown>',
lineNumber: 97,
column: 28 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'l',
lineNumber: 4,
column: 24909 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'fireWith',
lineNumber: 4,
column: 50440 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'ready',
lineNumber: 4,
column: 2933 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'S',
lineNumber: 4,
column: 580 } ]
}
],
'JavaScriptCore': [
{
from: "timeoutWithName@stack_traces/test:83:55\nwrapped@bandage.js:51:30",
to: [ { file: 'stack_traces/test',
methodName: 'timeoutWithName',
lineNumber: 83,
column: 55 },
{ file: 'bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 30 } ]
},
{
from: "timeoutWithName@stack_traces/test:83:55\nwrapped@42start-with-number.js:51:30",
to: [ { file: 'stack_traces/test',
methodName: 'timeoutWithName',
lineNumber: 83,
column: 55 },
{ file: '42start-with-number.js',
methodName: 'wrapped',
lineNumber: 51,
column: 30 } ]
},
{
from: "global code@stack_traces/test:83:55",
to: [ { file: 'stack_traces/test',
methodName: 'global code',
lineNumber: 83,
column: 55 } ]
}
],
'Internet Explorer': [
{
from: "Error: with timeout and named func\n at timeoutWithName (http://bandage.jaz-lounge.com/stack_traces/test:83:9)\n at wrapped (http://bandage.jaz-lounge.com/bandage.js:51:13)",
to: [ { file: 'http://bandage.jaz-lounge.com/stack_traces/test',
methodName: 'timeoutWithName',
lineNumber: 83,
column: 9 },
{ file: 'http://bandage.jaz-lounge.com/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 13 } ]
},
{
from: "Error: with timeout\n at Anonymous function (http://bandage.jaz-lounge.com/stack_traces/test:76:9)\n at wrapped (http://bandage.jaz-lounge.com/bandage.js:51:13)",
to: [ { file: 'http://bandage.jaz-lounge.com/stack_traces/test',
methodName: '<unknown>',
lineNumber: 76,
column: 9 },
{ file: 'http://bandage.jaz-lounge.com/bandage.js',
methodName: 'wrapped',
lineNumber: 51,
column: 13 } ]
},
{
from: "TypeError: Object doesn't support property or method 'objectBreakDown'\n at Anonymous function (http://bandage.jaz-lounge.com/stack_traces/test:91:7)\n at l (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:24874)\n at fireWith (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:25638)\n at ready (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:2898)\n at S (http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:4:551)",
to: [ { file: 'http://bandage.jaz-lounge.com/stack_traces/test',
methodName: '<unknown>',
lineNumber: 91,
column: 7 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'l',
lineNumber: 4,
column: 24874 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'fireWith',
lineNumber: 4,
column: 25638 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'ready',
lineNumber: 4,
column: 2898 },
{ file: 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
methodName: 'S',
lineNumber: 4,
column: 551 } ]
}
],
'Node.js': [
{
from: "ReferenceError: test is not defined\n at repl:1:2\n at REPLServer.self.eval (repl.js:110:21)\n at Interface.<anonymous> (repl.js:239:12)\n at Interface.EventEmitter.emit (events.js:95:17)\n at emitKey (readline.js:1095:12)",
to: [ { file: 'repl',
methodName: '<unknown>',
lineNumber: 1,
column: 2 },
{ file: 'repl.js',
methodName: 'REPLServer.self.eval',
lineNumber: 110,
column: 21 },
{ file: 'repl.js',
methodName: 'Interface.<anonymous>',
lineNumber: 239,
column: 12 },
{ file: 'events.js',
methodName: 'Interface.EventEmitter.emit',
lineNumber: 95,
column: 17 },
{ file: 'readline.js',
methodName: 'emitKey',
lineNumber: 1095,
column: 12 } ]
},
{
from: "ReferenceError: breakDown is not defined\n at null._onTimeout (repl:1:25)\n at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)",
to: [ { file: 'repl',
methodName: 'null._onTimeout',
lineNumber: 1,
column: 25 },
{ file: 'timers.js',
methodName: 'Timer.listOnTimeout [as ontimeout]',
lineNumber: 110,
column: 15 } ]
},
],
'io.js': [
// io.js 2.4.0
{
from: "ReferenceError: test is not defined\n at repl:1:1\n at REPLServer.defaultEval (repl.js:154:27)\n at bound (domain.js:254:14)\n at REPLServer.runBound [as eval] (domain.js:267:12)\n at REPLServer.<anonymous> (repl.js:308:12)\n at emitOne (events.js:77:13)\n at REPLServer.emit (events.js:169:7)\n at REPLServer.Interface._onLine (readline.js:210:10)\n at REPLServer.Interface._line (readline.js:549:8)\n at REPLServer.Interface._ttyWrite (readline.js:826:14)",
to: [ { file: 'repl',
methodName: '<unknown>',
lineNumber: 1,
column: 1 },
{ file: 'repl.js',
methodName: 'REPLServer.defaultEval',
lineNumber: 154,
column: 27 },
{ file: 'domain.js',
methodName: 'bound',
lineNumber: 254,
column: 14 },
{ file: 'domain.js',
methodName: 'REPLServer.runBound [as eval]',
lineNumber: 267,
column: 12 },
{ file: 'repl.js',
methodName: 'REPLServer.<anonymous>',
lineNumber: 308,
column: 12 },
{ file: 'events.js',
methodName: 'emitOne',
lineNumber: 77,
column: 13 },
{ file: 'events.js',
methodName: 'REPLServer.emit',
lineNumber: 169,
column: 7 },
{ file: 'readline.js',
methodName: 'REPLServer.Interface._onLine',
lineNumber: 210,
column: 10 },
{ file: 'readline.js',
methodName: 'REPLServer.Interface._line',
lineNumber: 549,
column: 8 },
{ file: 'readline.js',
methodName: 'REPLServer.Interface._ttyWrite',
lineNumber: 826,
column: 14 } ]
},
]
};
Object.keys(data).forEach(function(browser) {
describe('can parse stack trace of ' + browser, function() {
data[browser].forEach(function(browserData) {
it(browserData.from, function() {
var result = StackTraceParser.parse(browserData.from);
expect(result.length).to.equal(browserData.to.length);
expect(result).to.eql(browserData.to);
});
});
});
});
});