Initial commit.

This commit is contained in:
Matjaz
2022-01-12 22:36:55 +01:00
commit bfe05fa260
11687 changed files with 1321570 additions and 0 deletions

View File

@ -0,0 +1 @@
bbff059dc29122cab1cfc8601add1e64

View File

@ -0,0 +1 @@
6df74121bdb589656f99716fab51ffa9

View File

@ -0,0 +1 @@
43f8f62897dae3cfd5f56601553b7690

View File

@ -0,0 +1 @@
adf7aa2e703bbcc6a1a71c1b78349503

View File

@ -0,0 +1 @@
b5829a50498658d2d43c513ceedc9901

View File

@ -0,0 +1 @@
8d1f751345fa395e13ebcac75a5cb469

View File

@ -0,0 +1 @@
df3d949bc731ea8a2f72472b781b79fa

0
.tscache/app/timestamp Normal file
View File

21
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}\\bin\\www",
"cwd": "${workspaceRoot}"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 5858
}
]
}

80
bin/www Normal file
View File

@ -0,0 +1,80 @@
#!/usr/bin/env node
"use strict";
//module dependencies
var server = require("../dist/server");
var debug = require("debug")("express:server");
var http = require("http");
//create http server
var httpPort = normalizePort(process.env.PORT || 8080);
var app = server.Server.bootstrap().app;
app.set("port", httpPort);
var httpServer = http.createServer(app);
//listen on provided ports
httpServer.listen(httpPort);
//add error handler
httpServer.on("error", onError);
//start listening on port
httpServer.on("listening", onListening);
/**
* Normalize a port into a number, string, or false.
*/
function normalizePort(val) {
var port = parseInt(val, 10);
if (isNaN(port)) {
// named pipe
return val;
}
if (port >= 0) {
// port number
return port;
}
return false;
}
/**
* Event listener for HTTP server "error" event.
*/
function onError(error) {
if (error.syscall !== "listen") {
throw error;
}
var bind = typeof port === "string"
? "Pipe " + port
: "Port " + port;
// handle specific listen errors with friendly messages
switch (error.code) {
case "EACCES":
console.error(bind + " requires elevated privileges");
process.exit(1);
break;
case "EADDRINUSE":
console.error(bind + " is already in use");
process.exit(1);
break;
default:
throw error;
}
}
/**
* Event listener for HTTP server "listening" event.
*/
function onListening() {
var addr = httpServer.address();
var bind = typeof addr === "string"
? "pipe " + addr
: "port " + addr.port;
debug("Listening on " + bind);
}

0
dist/.baseDir.js vendored Normal file
View File

BIN
dist/public/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
dist/public/images/bootstrap-solid.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

9
dist/public/stylesheets/style.css vendored Normal file
View File

@ -0,0 +1,9 @@
body {
padding-top: 4rem;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00B7FF;
}

289
dist/routes/filter.js vendored Normal file
View File

@ -0,0 +1,289 @@
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var route_1 = require("./route");
var redis = require("redis");
var FilterRoute = (function (_super) {
__extends(FilterRoute, _super);
function FilterRoute() {
return _super.call(this) || this;
}
FilterRoute.create = function (router) {
var _this = this;
console.log("[FilterRoute::create] Creating filter route.");
this.client.lrange('imena', 0, -1, function (err, result) {
_this.seznamImen = result;
});
this.client.lrange('priimki', 0, -1, function (err, result) {
_this.seznamPriimkov = result;
});
this.client.lrange('ulice', 0, -1, function (err, result) {
_this.seznamUlic = result;
});
this.client.lrange('filtri', 0, -1, function (err, result) {
_this.seznamFiltrov = result;
});
this.seznamOblik = ['\\bdoo\\b', '\\bsp\\b', '\\bgiz\\b', '\\bdno\\b', '\\bdd\\b',
'\\bd\\.o\\.o\\.\\b', '\\bs\\.p\\.\\b', '\\bg\\.i\\.z\\.\\b',
'\\bd\\.n\\.o\\.\\b', '\\bd\\.d\\.\\b'];
router.get("/filter", function (req, res, next) {
new FilterRoute().filter(req, res, next);
});
router.post("/filter", function (req, res, next) {
new FilterRoute().filterPost(req, res, next);
});
router.post("/filter/bulk", function (req, res, next) {
new FilterRoute().filterBulk(req, res, next);
});
};
FilterRoute.prototype.filter = function (req, res, next) {
this.title = "Filter";
res.redirect('/');
};
FilterRoute.prototype.filterPost = function (req, res, next) {
var _this = this;
this.title = "Rezultati testa";
var odgovor = {
'vsebujeIme': 0,
'vsebujePriimek': 0,
'vsebujeUlico': 0,
'vsebujeObliko': 0,
'vsebujeDavcno': 0,
'vsebujeMaticno': 0,
'vsebujeFilter': 0,
'najdeniFiltri': [],
'niz': '<prazen niz>',
'id': 0,
};
FilterRoute.client.lrange('filtri', 0, -1, function (err, result) {
if (err) {
console.log(err);
}
else {
FilterRoute.seznamFiltrov = result;
_this.preveriNiz(req.body.niz, '1234', function (err, odgovor1) {
if (err) {
console.log(err);
}
_this.render(req, res, 'index', odgovor1);
});
}
});
};
FilterRoute.prototype.filterBulk = function (req, res, next) {
var _this = this;
FilterRoute.client.lrange('filter', 0, -1, function (err, result) {
if (err) {
console.log(err);
}
else {
var seznamFiltrov = result;
FilterRoute.seznamFiltrov = result;
var odgovor = {
rezultat: []
};
for (var index = 0; index < req.body.nizi.length; index++) {
_this.preveriNiz(req.body.nizi[index], req.body.id[index], function (err, result) {
odgovor.rezultat.push(result);
});
}
res.json(odgovor);
}
});
};
FilterRoute.prototype.preveriNiz = function (niz, id, callback) {
var mojNiz;
var napaka = '';
var odgovor = {
'vsebujeIme': 0,
'vsebujePriimek': 0,
'vsebujeUlico': 0,
'vsebujeObliko': 0,
'vsebujeDavcno': 0,
'vsebujeMaticno': 0,
'vsebujeFilter': 0,
'najdeniFiltri': [],
'niz': '<prazen niz>',
'id': 0,
};
var vse = 7;
var koncano = 0;
var opNajdeni = 0;
odgovor.id = id;
odgovor.niz = niz;
var err = '';
FilterRoute.client.incr('stats:obdelanih', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
FilterRoute.seznamImen.forEach(function (ime) {
var re = new RegExp('\\b' + ime
.replace(/č/g, 'c')
.replace(/š/g, 's')
.replace(/ž/g, 'z')
.replace(/đ/g, 'd')
.replace(/ć/g, 'c')
+ '\\b', 'gi');
if (niz.toLowerCase().replace(/č/g, 'c')
.replace(/š/g, 's')
.replace(/ž/g, 'z')
.replace(/đ/g, 'd')
.replace(/ć/g, 'c')
.search(re) != -1) {
odgovor.vsebujeIme++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujeIme', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
}
});
FilterRoute.seznamPriimkov.forEach(function (priimek) {
var re = new RegExp('\\b' + priimek
.replace(/č/g, 'c')
.replace(/š/g, 's')
.replace(/ž/g, 'z')
.replace(/đ/g, 'd')
.replace(/ć/g, 'c')
+ '\\b', 'gi');
if (niz.toLowerCase().replace(/č/g, 'c')
.replace(/š/g, 's')
.replace(/ž/g, 'z')
.replace(/đ/g, 'd')
.replace(/ć/g, 'c')
.search(re) != -1) {
odgovor.vsebujePriimek++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujePriimek', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
}
});
FilterRoute.seznamUlic.forEach(function (ulica) {
var re = new RegExp('\\b' + ulica
.replace(/č/g, 'c')
.replace(/š/g, 's')
.replace(/ž/g, 'z')
.replace(/đ/g, 'd')
.replace(/ć/g, 'c')
+ '\\b', 'gi');
if (niz.toLowerCase().replace(/č/g, 'c')
.replace(/š/g, 's')
.replace(/ž/g, 'z')
.replace(/đ/g, 'd')
.replace(/ć/g, 'c')
.search(re) != -1) {
odgovor.vsebujeUlico++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujeUlico', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
}
});
FilterRoute.seznamOblik.forEach(function (oblika) {
var re = new RegExp(oblika, "gi");
if (niz.toLowerCase().search(re) != -1) {
odgovor.vsebujeObliko++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujeObliko', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
}
});
if (niz.search(/\b[1-9]\d\d\d\d\d\d\d\b/) != -1) {
var idavcna;
var kontrolna;
var index = niz.search(/\b[1-9]\d\d\d\d\d\d\d\b/);
var davcna = niz.substring(index, index + 8);
idavcna = 8 * Number(davcna[0]) +
7 * Number(davcna[1]) +
6 * Number(davcna[2]) +
5 * Number(davcna[3]) +
4 * Number(davcna[4]) +
3 * Number(davcna[5]) +
2 * Number(davcna[6]);
kontrolna = 11 - (idavcna % 11);
if ((kontrolna == 10) || (kontrolna == 11)) {
kontrolna = 0;
}
if (kontrolna == Number(davcna[7])) {
odgovor.vsebujeDavcno++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujeDavcno', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
}
}
if (niz.search(/\b[0-3]\d[0-1]\d[9|0]\d\d50\d\d\d\d\b/) != -1) {
var imaticna;
var kontrolna;
var index = niz.search(/\b[0-3]\d[0-1]\d[9|0]\d\d50\d\d\d\d\b/);
var maticna = niz.substring(index, index + 13);
imaticna = 7 * Number(maticna[0]) +
6 * Number(maticna[1]) +
5 * Number(maticna[2]) +
4 * Number(maticna[3]) +
3 * Number(maticna[4]) +
2 * Number(maticna[5]) +
7 * Number(maticna[6]) +
6 * Number(maticna[7]) +
5 * Number(maticna[8]) +
4 * Number(maticna[9]) +
3 * Number(maticna[10]) +
2 * Number(maticna[11]);
kontrolna = imaticna % 11;
if (kontrolna != 0) {
kontrolna = 11 - kontrolna;
}
if ((kontrolna == Number(maticna[12])) && (kontrolna != 10)) {
odgovor.vsebujeMaticno++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujeMaticno', function (err, result) {
if (err) {
console.log('error: ' + err.message);
}
});
}
}
FilterRoute.seznamFiltrov.forEach(function (filter) {
var re = RegExp(filter.replace(/\/\//g, '/'), 'gi');
if (niz.toLowerCase().search(re) != -1) {
odgovor.vsebujeFilter++;
opNajdeni++;
FilterRoute.client.incr('stats:vsebujeFilter', function (err, result) {
if (err) {
console.log('error:' + err.message);
}
});
odgovor.najdeniFiltri.push(filter);
}
});
if (opNajdeni == 0) {
FilterRoute.client.incr('stats:niziBrezOP');
}
if (typeof callback === 'function') {
callback(err, odgovor);
}
};
return FilterRoute;
}(route_1.BaseRoute));
FilterRoute.client = redis.createClient();
FilterRoute.seznamImen = [];
FilterRoute.seznamPriimkov = [];
FilterRoute.seznamUlic = [];
FilterRoute.seznamOblik = [];
FilterRoute.seznamFiltrov = [];
exports.FilterRoute = FilterRoute;

39
dist/routes/index.js vendored Normal file
View File

@ -0,0 +1,39 @@
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var route_1 = require("./route");
var redis = require("redis");
var IndexRoute = (function (_super) {
__extends(IndexRoute, _super);
function IndexRoute() {
var _this = _super.call(this) || this;
_this.client = redis.createClient();
return _this;
}
IndexRoute.create = function (router) {
console.log("[IndexRoute::create] Creating index route.");
router.get("/", function (req, res, next) {
new IndexRoute().index(req, res, next);
});
};
IndexRoute.prototype.index = function (req, res, next) {
this.title = "Filter";
var options = {
"niz": "<prazen niz>",
"vsebujeIme": 0,
"vsebujePriimek": 0,
"vsebujeUlico": 0,
"vsebujeObliko": 0,
"vsebujeDavcno": 0,
"vsebujeMaticno": 0,
"vsebujePravilo": 0,
"najdeniFiltri": []
};
this.render(req, res, "index", options);
};
return IndexRoute;
}(route_1.BaseRoute));
exports.IndexRoute = IndexRoute;

72
dist/routes/pravila.js vendored Normal file
View File

@ -0,0 +1,72 @@
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var route_1 = require("./route");
var redis = require("redis");
var PravilaRoute = (function (_super) {
__extends(PravilaRoute, _super);
function PravilaRoute() {
return _super.call(this) || this;
}
PravilaRoute.create = function (router) {
console.log("[PravilaRoute::create] Creating pravila route.");
router.get("/pravila", function (req, res, next) {
new PravilaRoute().pravila(req, res, next);
});
router.post("/pravila/filtri/add", function (req, res, next) {
new PravilaRoute().pravilaAdd(req, res, next);
});
router.get("/pravila/filtri/delete/:id", function (req, res, next) {
new PravilaRoute().pravilaDelete(req, res, next);
});
var client = redis.createClient();
};
PravilaRoute.prototype.pravila = function (req, res, next) {
var _this = this;
this.title = "Pravila";
PravilaRoute.client.lrange('filtri', 0, -1, function (err, result) {
if (err) {
console.log(err);
}
else {
var options = {
"message": "Welcome to the Tour of Heros! Pravila"
};
_this.render(req, res, "pravila", { seznamFiltrov: result });
}
});
};
PravilaRoute.prototype.pravilaDelete = function (req, res, next) {
this.title = "Pravila";
PravilaRoute.client.lset('filtri', req.params.id, '__deleted__', function (err, result) {
console.log(req.baseUrl);
if (err) {
console.log(err);
}
});
PravilaRoute.client.lrem('filtri', 0, '__deleted__', function (err, result) {
if (err) {
console.log(err);
}
});
res.redirect('/pravila');
};
PravilaRoute.prototype.pravilaAdd = function (req, res, next) {
this.title = "Pravila";
console.log(req.baseUrl);
PravilaRoute.client.lpush('filtri', req.body.filtri, function (err, result) {
if (err) {
console.log(err);
}
else {
res.redirect('/pravila');
}
});
};
return PravilaRoute;
}(route_1.BaseRoute));
PravilaRoute.client = redis.createClient();
exports.PravilaRoute = PravilaRoute;

19
dist/routes/route.js vendored Normal file
View File

@ -0,0 +1,19 @@
"use strict";
var BaseRoute = (function () {
function BaseRoute() {
this.title = "Tour of Heros";
this.scripts = [];
}
BaseRoute.prototype.addScript = function (src) {
this.scripts.push(src);
return this;
};
BaseRoute.prototype.render = function (req, res, view, options) {
res.locals.BASE_URL = "/";
res.locals.scripts = this.scripts;
res.locals.title = this.title;
res.render(view, options);
};
return BaseRoute;
}());
exports.BaseRoute = BaseRoute;

380
dist/routes/stats.js vendored Normal file
View File

@ -0,0 +1,380 @@
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var route_1 = require("./route");
var redis = require("redis");
var StatsRoute = (function (_super) {
__extends(StatsRoute, _super);
function StatsRoute() {
return _super.call(this) || this;
}
StatsRoute.create = function (router) {
console.log("[StatsRoute::create] Creating stats route.");
router.get("/stats", function (req, res, next) {
new StatsRoute().stats(req, res, next);
});
router.get("/stats/delete", function (req, res, next) {
new StatsRoute().statsDelete(req, res, next);
});
router.get("/stats/data", function (req, res, next) {
new StatsRoute().statsData(req, res, next);
});
};
StatsRoute.prototype.stats = function (req, res, next) {
var jsonStats = {
title: 'Statistike',
vsebujeIme: '0',
vsebujePriimek: '0',
vsebujeUlico: '0',
vsebujeObliko: '0',
vsebujeDavcno: '0',
vsebujeMaticno: '0',
vsebujeFilter: '0',
obdelanih: '0',
niziBrezOP: '0'
};
var vse = 9;
var koncano = 0;
StatsRoute.client.get('stats:vsebujeIme', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeIme = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujePriimek', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujePriimek = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeUlico', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeUlico = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeObliko', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeObliko = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeDavcno', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeDavcno = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeMaticno', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeMaticno = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeFilter', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeFilter = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:obdelanih', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.obdelanih = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
StatsRoute.client.get('stats:niziBrezOP', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.niziBrezOP = result;
koncano++;
if (vse == koncano) {
res.render('stats', jsonStats);
}
}
});
};
StatsRoute.prototype.statsDelete = function (req, res, next) {
var vse = 9;
var koncano = 0;
StatsRoute.client.set('stats:vsebujeIme', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:vsebujePriimek', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:vsebujeUlico', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:vsebujeObliko', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:vsebujeDavcno', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:vsebujeMaticno', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:vsebujeFilter', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:obdelanih', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
StatsRoute.client.set('stats:niziBrezOP', '0', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: err, stack: err } });
}
else {
koncano++;
if (vse == koncano) {
res.redirect('/stats');
}
}
});
};
StatsRoute.prototype.statsData = function (req, res, next) {
var jsonStats = {
title: 'Statistike',
vsebujeIme: '0',
vsebujePriimek: '0',
vsebujeUlico: '0',
vsebujeObliko: '0',
vsebujeDavcno: '0',
vsebujeMaticno: '0',
vsebujeFilter: '0',
obdelanih: '0',
niziBrezOP: '0'
};
var vse = 9;
var koncano = 0;
StatsRoute.client.get('stats:vsebujeIme', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeIme = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujePriimek', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujePriimek = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeUlico', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeUlico = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeObliko', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeObliko = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeDavcno', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeDavcno = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeMaticno', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeMaticno = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:vsebujeFilter', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.vsebujeFilter = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:obdelanih', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.obdelanih = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
StatsRoute.client.get('stats:niziBrezOP', function (err, result) {
if (err) {
res.render('error', { messge: err.message, error: { status: 0, stack: 0 } });
}
else {
jsonStats.niziBrezOP = result;
koncano++;
if (vse == koncano) {
res.send(jsonStats);
}
}
});
};
return StatsRoute;
}(route_1.BaseRoute));
StatsRoute.client = redis.createClient();
exports.StatsRoute = StatsRoute;

53
dist/server.js vendored Normal file
View File

@ -0,0 +1,53 @@
"use strict";
var bodyParser = require("body-parser");
var cookieParser = require("cookie-parser");
var express = require("express");
var logger = require("morgan");
var path = require("path");
var errorHandler = require("errorhandler");
var methodOverride = require("method-override");
var index_1 = require("./routes/index");
var filter_1 = require("./routes/filter");
var pravila_1 = require("./routes/pravila");
var stats_1 = require("./routes/stats");
var Server = (function () {
function Server() {
this.app = express();
this.config();
this.routes();
this.api();
}
Server.bootstrap = function () {
return new Server();
};
Server.prototype.api = function () {
};
Server.prototype.config = function () {
this.app.use(express.static(path.join(__dirname, "public")));
this.app.set("views", path.join(__dirname, "views"));
this.app.set("view engine", "pug");
this.app.use(logger("dev"));
this.app.use(bodyParser.json());
this.app.use(bodyParser.urlencoded({
extended: true
}));
this.app.use(cookieParser("SECRET_GOES_HERE"));
this.app.use(methodOverride());
this.app.use(function (err, req, res, next) {
err.status = 404;
next(err);
});
this.app.use(errorHandler());
};
Server.prototype.routes = function () {
var router;
router = express.Router();
index_1.IndexRoute.create(router);
filter_1.FilterRoute.create(router);
pravila_1.PravilaRoute.create(router);
stats_1.StatsRoute.create(router);
this.app.use(router);
};
return Server;
}());
exports.Server = Server;

19
dist/views/error.pug vendored Normal file
View File

@ -0,0 +1,19 @@
doctype html
html
head
title
| Napaka
link(rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css' integrity='sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M' crossorigin='anonymous')
script(src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous")
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous")
script(src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous")
script(src='https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js', integrity='sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb', crossorigin='anonymous')
link(rel='stylesheet', href='/stylesheets/style.css')
body
include partials/menu.pug
.container
h1 #{message}
h2
pre.
| #{error.status}
include partials/footer.pug

72
dist/views/index.pug vendored Normal file
View File

@ -0,0 +1,72 @@
doctype html
html
head
title #{title}
link(rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css' integrity='sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M' crossorigin='anonymous')
script(src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous")
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous")
script(src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous")
script(src='https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js', integrity='sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb', crossorigin='anonymous')
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css')
link(rel='stylesheet', href='/stylesheets/style.css')
body
include partials/menu.pug
.container
h1= title
form(action='/filter', method='POST')
.form-group
label(for='niz') Vnesi testni niz:
input.form-control.form-control-lg(type='text', name='niz', value=niz, placeholder='Testni niz ...')
small.form-text.text-muted Vpišite testni namen transakcije, ki ga bomo preverili. Nekaj veljavnih testnih davčnih in EMŠO številk je na voljo v pomoči (gumb Pomoč),
input(type='hidden', name='api', value='no')
button.btn.btn-secondary(type='button', data-toggle='collapse', data-target='#collapseExample', aria-expanded='false', aria-controls='collapseExample')
i.fa.fa-info-circle
| Pomoč
strong
|
button.btn.btn-primary(type='submit')
i.fa.fa-paper-plane
| Pošlji
p  
p
#collapseExample.collapse
.card.card-body
| Veljavna davčna številka:
code 12345679
code 11223340
| Veljavna EMŠO številka:
code 0101999500014
code 0101000500012
table.table
tr
th Opis
th.text-right Število
tr
td Niz:
td.text-right= niz
tr
td Niz vsebuje ime:
td.text-right= vsebujeIme
tr
td Niz vsebuje priimek:
td.text-right= vsebujePriimek
tr
td Niz vsebuje ulico:
td.text-right= vsebujeUlico
tr
td Niz vsebuje obliko:
td.text-right= vsebujeObliko
tr
td Niz vsebuje davčno:
td.text-right= vsebujeDavcno
tr
td Niz vsebuje matično:
td.text-right= vsebujeMaticno
tr
td Niz se ujema s pravilom:
td.text-right= vsebujeFilter
each filter in najdeniFiltri
tr
td Najdeni filter:
td= filter
include partials/footer.pug

5
dist/views/partials/footer.pug vendored Normal file
View File

@ -0,0 +1,5 @@
hr
footer
p
| © Komisija za preprečevanje korupcije 2017
small &#x1F648;&#x1F649;&#x1F64A;

15
dist/views/partials/menu.pug vendored Normal file
View File

@ -0,0 +1,15 @@
nav.navbar.navbar-expand-md.navbar-dark.bg-dark.fixed-top
a.navbar-brand(href='/')
img.d-inline-block.align-top(src='images/bootstrap-solid.png', width="25" height="25" )
| Filter
button.navbar-toggler(type='button', data-toggle='collapse', data-target='#navbarsExampleDefault', aria-controls='navbarsExampleDefault', aria-expanded='false', aria-label='Toggle navigation')
span.navbar-toggler-icon
#navbarsExampleDefault.collapse.navbar-collapse
ul.navbar-nav.mr-auto
li.nav-item
a.nav-link(href='/')
| Domov
li.nav-item
a.nav-link(href='/pravila') Pravila
li.nav-item
a.nav-link(href='/stats') Statistike

121
dist/views/pravila.pug vendored Normal file
View File

@ -0,0 +1,121 @@
doctype html
html
head
title #{title}
link(rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css' integrity='sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M' crossorigin='anonymous')
script(src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous")
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous")
script(src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous")
script(src='https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js', integrity='sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb', crossorigin='anonymous')
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css')
link(rel='stylesheet', href='/stylesheets/style.css')
body
include partials/menu.pug
.container
h1 Dodajanje pravil
#rezultat-testa
form(action='/pravila/filtri/add', method='POST')
.form-group
label(for='filtri') Testni namen:
input#testninamen.form-control.form-control-lg(type='text', name='testninamen', value='', placeholder='Namen transakcije ...')
small.form-text.text-muted Vpišite testni namen transakcije, ki ga bomo preverili s spodnjim RegExp pravilom.
.form-group
label(for='filtri') Vnesi RegExp pravilo:
input#filtri.form-control.form-control-lg(type='text', name='filtri', value='', placeholder='RegExp pravilo ...')
small.form-text.text-muted Vpišite RegExp pravilo, s katerim bomo preverili zgornji tesni namen transakcije. Pomoč za RegExp je na voljo spodaj (gumb Pomoč).
button#test-gumb.btn.btn-secondary(name='test', value='Testiraj', type='button')
span.fa.fa-flask
| Testiraj
strong
|
button.btn.btn-secondary(type='button', data-toggle='collapse', data-target='#collapseExample', aria-expanded='false', aria-controls='collapseExample')
span.fa.fa-info-circle
| Pomoč
strong
|
button#submit-gumb.btn.btn-primary(name='submit', value='Shrani', type='submit')
span.fa.fa-floppy-o
| Shrani
p  
#collapseExample.collapse
.card.card-body
h2 Brackets
p Brackets are used to find a range of characters:
pre.
Expression Description
[abc] Find any character between the brackets
[^abc] Find any character NOT between the brackets
[0-9] Find any character between the brackets (any digit)
[^0-9] Find any character NOT between the brackets (any non-digit)
(x|y) Find any of the alternatives specified
h2 Metacharacters
p Metacharacters are characters with a special meaning:
pre.
Metacharacter Description
. Find a single character, except newline or line terminator
\w Find a word character
\W Find a non-word character
\d Find a digit
\D Find a non-digit character
\s Find a whitespace character
\S Find a non-whitespace character
\b Find a match at the beginning/end of a word
\B Find a match not at the beginning/end of a word
\0 Find a NUL character
\n Find a new line character
\f Find a form feed character
\r Find a carriage return character
\t Find a tab character
\v Find a vertical tab character
\xxx Find the character specified by an octal number xxx
\xdd Find the character specified by a hexadecimal number dd
\uxxxx Find the Unicode character specified by a hexadecimal number xxxx
h2 Quantifiers
pre.
Quantifier Description
n+ Matches any string that contains at least one n
n* Matches any string that contains zero or more occurrences of n
n? Matches any string that contains zero or one occurrences of n
n{X} Matches any string that contains a sequence of X n's
n{X,Y} Matches any string that contains a sequence of X to Y n's
n{X,} Matches any string that contains a sequence of at least X n's
n$ Matches any string with n at the end of it
^n Matches any string with n at the beginning of it
?=n Matches any string that is followed by a specific string n
?!n Matches any string that is not followed by a specific string n
h1 Pregled in brisanje pravil
table.table
tr
th ID
th filter
th.text-right Orodja
each filter, index in seznamFiltrov
tr
td= index
td= filter
td.text-right
a.btn.btn-danger(href='/pravila/filtri/delete/'+index)
i.fa.fa-trash
| Briši
include partials/footer.pug
script.
$("#test-gumb").click(function() {
var re = RegExp($("#filtri").val(), "gi");
if($("#testninamen").val().search(re) != -1) {
$("#rezultat-testa").append('<div id="success-alert" class="alert alert-success alert-dismissible fade show" role="alert"> \
<button type="button" class="close" data-dismiss="alert" aria-label="Zapri"> \
<span aria-hidden="true">&times;</span> \
</button> \
<strong>Uspeh!</strong> Tvoj filter je pravi za ta namen. \
</div>')
} else {
$("#rezultat-testa").append('<div id="success-alert" class="alert alert-danger alert-dismissible fade show" role="alert"> \
<button type="button" class="close" data-dismiss="alert" aria-label="Zapri"> \
<span aria-hidden="true">&times;</span> \
</button> \
<strong>Napaka!</strong> Tvoj filter ni pravi za ta namen. \
</div>')
}
});

116
dist/views/stats.pug vendored Normal file
View File

@ -0,0 +1,116 @@
doctype html
html
head
title #{title}
link(rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css' integrity='sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M' crossorigin='anonymous')
script(src='https://code.jquery.com/jquery-3.2.1.min.js', integrity='sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=', crossorigin='anonymous')
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous")
script(src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous")
script(src='https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js', integrity='sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb', crossorigin='anonymous')
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css')
script(src='https://cdnjs.cloudflare.com/ajax/libs/chartist/0.11.0/chartist.js')
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/chartist/0.11.0/chartist.min.css')
link(rel='stylesheet', href='/stylesheets/style.css')
body
include partials/menu.pug
.container
h1 #{title}
.card-group
.card
.card-body
.ct-chart.ct-perfect-fourth
.card
.card-body
table.table
tr
th Opis
th.text-right Število
tr
td Niz vsebuje ime:
td#vIme.text-right #{vsebujeIme}
tr
td Niz vsebuje priimek:
td#vPriimek.text-right #{vsebujePriimek}
tr
td Niz vsebuje ulico:
td#vUlica.text-right #{vsebujeUlico}
tr
td Niz vsebuje obliko:
td#vOblika.text-right #{vsebujeObliko}
tr
td Niz vsebuje davcno:
td#vDavcna.text-right #{vsebujeDavcno}
tr
td Niz vsebuje matično:
td#vMaticna.text-right #{vsebujeMaticno}
tr
td Niz vsebuje filter:
td#vFilter.text-right #{vsebujeFilter}
strong#vObdelano Vsi obdelani nizi: #{obdelanih} | Nizi, ki ne vsebujejo osebnih podatkov: #{niziBrezOP}
p  
p
button.btn.btn-primary(type='button', data-toggle='collapse', data-target='#collapseExample', aria-expanded='false', aria-controls='collapseExample')
| Upravljanje statistik
#collapseExample.collapse
.card.card-body
| Pobriši statistike
a.btn.btn-secondary.btn-sm(href='/stats/delete', role='button')
i.fa.fa-trash
| Izbriši
p  
include partials/footer.pug
script(type='application/javascript').
var data = {
labels: ['Ime', 'Priimek', 'Ulica', 'Oblika', 'Davčna', 'EMŠO', 'Filter'],
series: [#{vsebujeIme}, #{vsebujePriimek}, #{vsebujeUlico}, #{vsebujeObliko},
#{vsebujeDavcno}, #{vsebujeMaticno}, #{vsebujeFilter}
]
};
var options = {
labelInterpolationFnc: function (value) {
return value[0]
},
width: 400,
height: 300
};
var responsiveOptions = [
['screen and (min-width: 640px)', {
chartPadding: 30,
labelOffset: 100,
labelDirection: 'explode',
labelInterpolationFnc: function (value) {
return value;
}
}],
['screen and (min-width: 1024px)', {
labelOffset: 80,
chartPadding: 20
}]
];
new Chartist.Pie('.ct-chart', data, options, responsiveOptions);
$(document).ready(function() {
setInterval(function() {
$.get('/stats/data', function(odgovor) {
data.series = [];
data.series.push(odgovor.vsebujeIme);
data.series.push(odgovor.vsebujePriimek);
data.series.push(odgovor.vsebujeUlico);
data.series.push(odgovor.vsebujeObliko);
data.series.push(odgovor.vsebujeDavcno);
data.series.push(odgovor.vsebujeMaticno);
data.series.push(odgovor.vsebujeFilter);
var mychart = $('.ct-chart');
mychart.get(0).__chartist__.update(data);
$("#vIme").html(odgovor.vsebujeIme);
$("#vPriimek").html(odgovor.vsebujePriimek);
$("#vUlica").html(odgovor.vsebujeUlico);
$("#vOblika").html(odgovor.vsebujeObliko);
$("#vDavcna").html(odgovor.vsebujeDavcno);
$("#vMaticna").html(odgovor.vsebujeMaticno);
$("#vFilter").html(odgovor.vsebujeFilter);
$("#vObdelano").html("Vsi obdelani nizi: " + odgovor.obdelanih + " | Nizi, ki ne vsebujejo osebnih podatkov: " + odgovor.niziBrezOP);
});
}, 1000);
});

57
gruntfile.js Normal file
View File

@ -0,0 +1,57 @@
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
copy: {
build: {
files: [
{
expand: true,
cwd: "./public",
src: ["**"],
dest: "./dist/public"
},
{
expand: true,
cwd: "./views",
src: ["**"],
dest: "./dist/views"
}
]
}
},
ts: {
app: {
files: [{
src: ["src/\*\*/\*.ts", "!src/.baseDir.ts"],
dest: "./dist"
}],
options: {
module: "commonjs",
target: "es5",
sourceMap: false
}
}
},
watch: {
ts: {
files: ["src/\*\*/\*.ts"],
tasks: ["ts"]
},
views: {
files: ["views/**/*.pug"],
tasks: ["copy"]
}
}
});
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-ts");
grunt.registerTask("default", [
"copy",
"ts"
]);
};

1
node_modules/.bin/acorn generated vendored Normal file
View File

@ -0,0 +1 @@
../acorn/bin/acorn

7
node_modules/.bin/acorn.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\acorn\bin\acorn" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\acorn\bin\acorn" %*
)

15
node_modules/.bin/cake generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../coffee-script/bin/cake" "$@"
ret=$?
else
node "$basedir/../coffee-script/bin/cake" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/cake.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\coffee-script\bin\cake" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\coffee-script\bin\cake" %*
)

1
node_modules/.bin/cleancss generated vendored Normal file
View File

@ -0,0 +1 @@
../clean-css/bin/cleancss

7
node_modules/.bin/cleancss.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\clean-css\bin\cleancss" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\clean-css\bin\cleancss" %*
)

15
node_modules/.bin/coffee generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../coffee-script/bin/coffee" "$@"
ret=$?
else
node "$basedir/../coffee-script/bin/coffee" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/coffee.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\coffee-script\bin\coffee" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\coffee-script\bin\coffee" %*
)

15
node_modules/.bin/dateformat generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../dateformat/bin/cli.js" "$@"
ret=$?
else
node "$basedir/../dateformat/bin/cli.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/dateformat.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\dateformat\bin\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\dateformat\bin\cli.js" %*
)

15
node_modules/.bin/esparse generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../esprima/bin/esparse.js" "$@"
ret=$?
else
node "$basedir/../esprima/bin/esparse.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/esparse.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\esprima\bin\esparse.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\esprima\bin\esparse.js" %*
)

15
node_modules/.bin/esvalidate generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../esprima/bin/esvalidate.js" "$@"
ret=$?
else
node "$basedir/../esprima/bin/esvalidate.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/esvalidate.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\esprima\bin\esvalidate.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\esprima\bin\esvalidate.js" %*
)

15
node_modules/.bin/grunt generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../grunt/bin/grunt" "$@"
ret=$?
else
node "$basedir/../grunt/bin/grunt" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/grunt.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\grunt\bin\grunt" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\grunt\bin\grunt" %*
)

15
node_modules/.bin/js-yaml generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
ret=$?
else
node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/js-yaml.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\js-yaml\bin\js-yaml.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\js-yaml\bin\js-yaml.js" %*
)

15
node_modules/.bin/latest-version generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../latest-version/cli.js" "$@"
ret=$?
else
node "$basedir/../latest-version/cli.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/latest-version.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\latest-version\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\latest-version\cli.js" %*
)

15
node_modules/.bin/mime generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../mime/cli.js" "$@"
ret=$?
else
node "$basedir/../mime/cli.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/mime.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\mime\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\mime\cli.js" %*
)

15
node_modules/.bin/mkdirp generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
ret=$?
else
node "$basedir/../mkdirp/bin/cmd.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/mkdirp.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\mkdirp\bin\cmd.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\mkdirp\bin\cmd.js" %*
)

15
node_modules/.bin/ncp generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../ncp/bin/ncp" "$@"
ret=$?
else
node "$basedir/../ncp/bin/ncp" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/ncp.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\ncp\bin\ncp" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\ncp\bin\ncp" %*
)

15
node_modules/.bin/nodemon generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../nodemon/bin/nodemon.js" "$@"
ret=$?
else
node "$basedir/../nodemon/bin/nodemon.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/nodemon.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\nodemon\bin\nodemon.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\nodemon\bin\nodemon.js" %*
)

15
node_modules/.bin/nopt generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@"
ret=$?
else
node "$basedir/../nopt/bin/nopt.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/nopt.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\nopt\bin\nopt.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\nopt\bin\nopt.js" %*
)

15
node_modules/.bin/rc generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../rc/index.js" "$@"
ret=$?
else
node "$basedir/../rc/index.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/rc.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\rc\index.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\rc\index.js" %*
)

15
node_modules/.bin/rimraf generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../rimraf/bin.js" "$@"
ret=$?
else
node "$basedir/../rimraf/bin.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/rimraf.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\rimraf\bin.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\rimraf\bin.js" %*
)

15
node_modules/.bin/semver generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
ret=$?
else
node "$basedir/../semver/bin/semver" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/semver.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\semver\bin\semver" %*
)

15
node_modules/.bin/strip-indent generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../strip-indent/cli.js" "$@"
ret=$?
else
node "$basedir/../strip-indent/cli.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/strip-indent.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\strip-indent\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\strip-indent\cli.js" %*
)

15
node_modules/.bin/strip-json-comments generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../strip-json-comments/cli.js" "$@"
ret=$?
else
node "$basedir/../strip-json-comments/cli.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/strip-json-comments.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\strip-json-comments\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\strip-json-comments\cli.js" %*
)

15
node_modules/.bin/touch generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../touch/bin/touch.js" "$@"
ret=$?
else
node "$basedir/../touch/bin/touch.js" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/touch.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\touch\bin\touch.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\touch\bin\touch.js" %*
)

15
node_modules/.bin/tsc generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
ret=$?
else
node "$basedir/../typescript/bin/tsc" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/tsc.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\typescript\bin\tsc" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\typescript\bin\tsc" %*
)

15
node_modules/.bin/tsserver generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
ret=$?
else
node "$basedir/../typescript/bin/tsserver" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/tsserver.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\typescript\bin\tsserver" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\typescript\bin\tsserver" %*
)

1
node_modules/.bin/uglifyjs generated vendored Normal file
View File

@ -0,0 +1 @@
../uglify-js/bin/uglifyjs

7
node_modules/.bin/uglifyjs.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\uglify-js\bin\uglifyjs" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\uglify-js\bin\uglifyjs" %*
)

15
node_modules/.bin/which generated vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../which/bin/which" "$@"
ret=$?
else
node "$basedir/../which/bin/which" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/which.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\which\bin\which" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\which\bin\which" %*
)

18
node_modules/@types/body-parser/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# Installation
> `npm install --save @types/body-parser`
# Summary
This package contains type definitions for body-parser (http://expressjs.com).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/body-parser
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:23 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: express
* Global values: bodyParser
# Credits
These definitions were written by Santi Albo <https://github.com/santialbo/>, VILIC VANE <https://vilic.info>, Jonathan Häberle <https://github.com/dreampulse/>.

137
node_modules/@types/body-parser/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,137 @@
// Type definitions for body-parser
// Project: http://expressjs.com
// Definitions by: Santi Albo <https://github.com/santialbo/>, VILIC VANE <https://vilic.info>, Jonathan Häberle <https://github.com/dreampulse/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as express from "express";
/**
* bodyParser: use individual json/urlencoded middlewares
* @deprecated
*/
declare function bodyParser(options?: {
/**
* if deflated bodies will be inflated. (default: true)
*/
inflate?: boolean;
/**
* maximum request body size. (default: '100kb')
*/
limit?: any;
/**
* function to verify body content, the parsing can be aborted by throwing an error.
*/
verify?: (req: express.Request, res: express.Response, buf: Buffer, encoding: string) => void;
/**
* only parse objects and arrays. (default: true)
*/
strict?: boolean;
/**
* passed to JSON.parse().
*/
reviver?: (key: string, value: any) => any;
/**
* parse extended syntax with the qs module. (default: true)
*/
extended?: boolean;
}): express.RequestHandler;
declare namespace bodyParser {
export function json(options?: {
/**
* if deflated bodies will be inflated. (default: true)
*/
inflate?: boolean;
/**
* maximum request body size. (default: '100kb')
*/
limit?: any;
/**
* request content-type to parse, passed directly to the type-is library. (default: 'json')
*/
type?: any;
/**
* function to verify body content, the parsing can be aborted by throwing an error.
*/
verify?: (req: express.Request, res: express.Response, buf: Buffer, encoding: string) => void;
/**
* only parse objects and arrays. (default: true)
*/
strict?: boolean;
/**
* passed to JSON.parse().
*/
reviver?: (key: string, value: any) => any;
}): express.RequestHandler;
export function raw(options?: {
/**
* if deflated bodies will be inflated. (default: true)
*/
inflate?: boolean;
/**
* maximum request body size. (default: '100kb')
*/
limit?: any;
/**
* request content-type to parse, passed directly to the type-is library. (default: 'application/octet-stream')
*/
type?: any;
/**
* function to verify body content, the parsing can be aborted by throwing an error.
*/
verify?: (req: express.Request, res: express.Response, buf: Buffer, encoding: string) => void;
}): express.RequestHandler;
export function text(options?: {
/**
* if deflated bodies will be inflated. (default: true)
*/
inflate?: boolean;
/**
* maximum request body size. (default: '100kb')
*/
limit?: any;
/**
* request content-type to parse, passed directly to the type-is library. (default: 'text/plain')
*/
type?: any;
/**
* function to verify body content, the parsing can be aborted by throwing an error.
*/
verify?: (req: express.Request, res: express.Response, buf: Buffer, encoding: string) => void;
/**
* the default charset to parse as, if not specified in content-type. (default: 'utf-8')
*/
defaultCharset?: string;
}): express.RequestHandler;
export function urlencoded(options: {
/**
* if deflated bodies will be inflated. (default: true)
*/
inflate?: boolean;
/**
* maximum request body size. (default: '100kb')
*/
limit?: any;
/**
* request content-type to parse, passed directly to the type-is library. (default: 'urlencoded')
*/
type?: any;
/**
* function to verify body content, the parsing can be aborted by throwing an error.
*/
verify?: (req: express.Request, res: express.Response, buf: Buffer, encoding: string) => void;
/**
* parse extended syntax with the qs module.
*/
extended: boolean;
}): express.RequestHandler;
}
export = bodyParser;

80
node_modules/@types/body-parser/package.json generated vendored Normal file
View File

@ -0,0 +1,80 @@
{
"_args": [
[
{
"raw": "@types/body-parser",
"scope": "@types",
"escapedName": "@types%2fbody-parser",
"name": "@types/body-parser",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"C:\\projekti\\ts\\bin"
]
],
"_from": "@types/body-parser@latest",
"_id": "@types/body-parser@0.0.33",
"_inCache": true,
"_location": "/@types/body-parser",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/body-parser-0.0.33.tgz_1474302198383_0.8077569084707648"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/body-parser",
"scope": "@types",
"escapedName": "@types%2fbody-parser",
"name": "@types/body-parser",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
"#DEV:/",
"#USER"
],
"_resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-0.0.33.tgz",
"_shasum": "33ca1498fc37e51c5df0c81cae34569e7041e025",
"_shrinkwrap": null,
"_spec": "@types/body-parser",
"_where": "C:\\projekti\\ts\\bin",
"author": {
"name": "Santi Albo",
"email": "https://github.com/santialbo/"
},
"dependencies": {
"@types/express": "*"
},
"description": "TypeScript definitions for body-parser",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "33ca1498fc37e51c5df0c81cae34569e7041e025",
"tarball": "https://registry.npmjs.org/@types/body-parser/-/body-parser-0.0.33.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/body-parser",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typesPublisherContentHash": "3dd3e60390ba243da416a19c8c853368a46f2cc894003a59c5d80c2b6e89966d",
"typings": "index.d.ts",
"version": "0.0.33"
}

27
node_modules/@types/body-parser/types-metadata.json generated vendored Normal file
View File

@ -0,0 +1,27 @@
{
"authors": "Santi Albo <https://github.com/santialbo/>, VILIC VANE <https://vilic.info>, Jonathan Häberle <https://github.com/dreampulse/>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [
"express"
],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryName": "body-parser",
"typingsPackageName": "body-parser",
"projectName": "http://expressjs.com",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"bodyParser"
],
"declaredModules": [
"body-parser"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "3dd3e60390ba243da416a19c8c853368a46f2cc894003a59c5d80c2b6e89966d"
}

18
node_modules/@types/cookie-parser/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# Installation
> `npm install --save @types/cookie-parser`
# Summary
This package contains type definitions for cookie-parser v1.3.4 (https://github.com/expressjs/cookie-parser).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/cookie-parser
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:24 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: express
* Global values: e
# Credits
These definitions were written by Santi Albo <https://github.com/santialbo/>.

12
node_modules/@types/cookie-parser/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,12 @@
// Type definitions for cookie-parser v1.3.4
// Project: https://github.com/expressjs/cookie-parser
// Definitions by: Santi Albo <https://github.com/santialbo/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import express = require('express');
declare function e(secret?: string, options?: any): express.RequestHandler;
declare namespace e { }
export = e;

80
node_modules/@types/cookie-parser/package.json generated vendored Normal file
View File

@ -0,0 +1,80 @@
{
"_args": [
[
{
"raw": "@types/cookie-parser",
"scope": "@types",
"escapedName": "@types%2fcookie-parser",
"name": "@types/cookie-parser",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"C:\\projekti\\ts\\bin"
]
],
"_from": "@types/cookie-parser@latest",
"_id": "@types/cookie-parser@1.3.30",
"_inCache": true,
"_location": "/@types/cookie-parser",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/cookie-parser-1.3.30.tgz_1474303464059_0.33324976707808673"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/cookie-parser",
"scope": "@types",
"escapedName": "@types%2fcookie-parser",
"name": "@types/cookie-parser",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
"#DEV:/",
"#USER"
],
"_resolved": "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.3.30.tgz",
"_shasum": "70e4824086e2f214dbc674fd922d1c2744475392",
"_shrinkwrap": null,
"_spec": "@types/cookie-parser",
"_where": "C:\\projekti\\ts\\bin",
"author": {
"name": "Santi Albo",
"email": "https://github.com/santialbo/"
},
"dependencies": {
"@types/express": "*"
},
"description": "TypeScript definitions for cookie-parser v1.3.4",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "70e4824086e2f214dbc674fd922d1c2744475392",
"tarball": "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.3.30.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/cookie-parser",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typesPublisherContentHash": "6c7f2db61082396b54f32f57c12128c15e167290cddd3e0d380ecdf2fa9ebea0",
"typings": "index.d.ts",
"version": "1.3.30"
}

27
node_modules/@types/cookie-parser/types-metadata.json generated vendored Normal file
View File

@ -0,0 +1,27 @@
{
"authors": "Santi Albo <https://github.com/santialbo/>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [
"express"
],
"libraryMajorVersion": "1",
"libraryMinorVersion": "3",
"libraryName": "cookie-parser v1.3.4",
"typingsPackageName": "cookie-parser",
"projectName": "https://github.com/expressjs/cookie-parser",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"e"
],
"declaredModules": [
"cookie-parser"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "6c7f2db61082396b54f32f57c12128c15e167290cddd3e0d380ecdf2fa9ebea0"
}

18
node_modules/@types/errorhandler/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# Installation
> `npm install --save @types/errorhandler`
# Summary
This package contains type definitions for errorhandler (https://github.com/expressjs/errorhandler).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/errorhandler
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:24 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: express
* Global values: errorHandler
# Credits
These definitions were written by Santi Albo <https://github.com/santialbo/>.

31
node_modules/@types/errorhandler/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,31 @@
// Type definitions for errorhandler
// Project: https://github.com/expressjs/errorhandler
// Definitions by: Santi Albo <https://github.com/santialbo/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as express from 'express';
declare function errorHandler(options?: errorHandler.Options): express.ErrorRequestHandler;
declare namespace errorHandler {
interface LoggingCallback {
(err: Error, str: string, req: express.Request, res: express.Response): void;
}
interface Options {
/**
* Defaults to true.
*
* Possible values:
* true : Log errors using console.error(str).
* false : Only send the error back in the response.
* A function : pass the error to a function for handling.
*/
log: boolean | LoggingCallback;
}
}
export = errorHandler;

80
node_modules/@types/errorhandler/package.json generated vendored Normal file
View File

@ -0,0 +1,80 @@
{
"_args": [
[
{
"raw": "@types/errorhandler",
"scope": "@types",
"escapedName": "@types%2ferrorhandler",
"name": "@types/errorhandler",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"C:\\projekti\\ts\\bin"
]
],
"_from": "@types/errorhandler@latest",
"_id": "@types/errorhandler@0.0.30",
"_inCache": true,
"_location": "/@types/errorhandler",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/errorhandler-0.0.30.tgz_1474303547431_0.7253146793227643"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/errorhandler",
"scope": "@types",
"escapedName": "@types%2ferrorhandler",
"name": "@types/errorhandler",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
"#DEV:/",
"#USER"
],
"_resolved": "https://registry.npmjs.org/@types/errorhandler/-/errorhandler-0.0.30.tgz",
"_shasum": "5b6c4318695fc11aa2a20f5ba0bcb70c796ee350",
"_shrinkwrap": null,
"_spec": "@types/errorhandler",
"_where": "C:\\projekti\\ts\\bin",
"author": {
"name": "Santi Albo",
"email": "https://github.com/santialbo/"
},
"dependencies": {
"@types/express": "*"
},
"description": "TypeScript definitions for errorhandler",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "5b6c4318695fc11aa2a20f5ba0bcb70c796ee350",
"tarball": "https://registry.npmjs.org/@types/errorhandler/-/errorhandler-0.0.30.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/errorhandler",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typesPublisherContentHash": "46bd0a642c3b7ad71609d2babccb841cc5661926292c670648e53b42bdd7c7e7",
"typings": "index.d.ts",
"version": "0.0.30"
}

27
node_modules/@types/errorhandler/types-metadata.json generated vendored Normal file
View File

@ -0,0 +1,27 @@
{
"authors": "Santi Albo <https://github.com/santialbo/>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [
"express"
],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryName": "errorhandler",
"typingsPackageName": "errorhandler",
"projectName": "https://github.com/expressjs/errorhandler",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"errorHandler"
],
"declaredModules": [
"errorhandler"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "46bd0a642c3b7ad71609d2babccb841cc5661926292c670648e53b42bdd7c7e7"
}

View File

@ -0,0 +1,17 @@
# Installation
> `npm install --save @types/express-serve-static-core`
# Summary
This package contains type definitions for Express (http://expressjs.com).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/express-serve-static-core
Additional Details
* Last updated: Wed, 28 Dec 2016 00:53:36 GMT
* Library Dependencies: node
* Module Dependencies: http
* Global values: none
# Credits
These definitions were written by Boris Yankov <https://github.com/borisyankov/>.

1111
node_modules/@types/express-serve-static-core/index.d.ts generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,81 @@
{
"_args": [
[
{
"raw": "@types/express-serve-static-core@*",
"scope": "@types",
"escapedName": "@types%2fexpress-serve-static-core",
"name": "@types/express-serve-static-core",
"rawSpec": "*",
"spec": "*",
"type": "range"
},
"C:\\projekti\\ts\\node_modules\\@types\\express"
]
],
"_from": "@types/express-serve-static-core@*",
"_id": "@types/express-serve-static-core@4.0.40",
"_inCache": true,
"_location": "/@types/express-serve-static-core",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/express-serve-static-core-4.0.40.tgz_1482886448974_0.32687022583559155"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/express-serve-static-core@*",
"scope": "@types",
"escapedName": "@types%2fexpress-serve-static-core",
"name": "@types/express-serve-static-core",
"rawSpec": "*",
"spec": "*",
"type": "range"
},
"_requiredBy": [
"/@types/express",
"/@types/serve-static"
],
"_resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.0.40.tgz",
"_shasum": "168e82978bffc81ee7737bc60728d64733a4f37b",
"_shrinkwrap": null,
"_spec": "@types/express-serve-static-core@*",
"_where": "C:\\projekti\\ts\\node_modules\\@types\\express",
"author": {
"name": "Boris Yankov",
"email": "https://github.com/borisyankov/"
},
"dependencies": {
"@types/node": "*"
},
"description": "TypeScript definitions for Express",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "168e82978bffc81ee7737bc60728d64733a4f37b",
"tarball": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.0.40.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/express-serve-static-core",
"optionalDependencies": {},
"peerDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typeScriptVersion": "2.0",
"typesPublisherContentHash": "893ac8eb217f16cec1d9018c68fcc08501bd4a6e0948d8a8b3659f764d320693",
"version": "4.0.40"
}

View File

@ -0,0 +1,26 @@
{
"authors": "Boris Yankov <https://github.com/borisyankov/>",
"libraryDependencies": [
"node"
],
"moduleDependencies": [
"http"
],
"libraryMajorVersion": 4,
"libraryMinorVersion": 0,
"typeScriptVersion": "2.0",
"libraryName": "Express",
"typingsPackageName": "express-serve-static-core",
"projectName": "http://expressjs.com",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "master",
"globals": [],
"declaredModules": [
"express-serve-static-core"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "893ac8eb217f16cec1d9018c68fcc08501bd4a6e0948d8a8b3659f764d320693"
}

18
node_modules/@types/express/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# Installation
> `npm install --save @types/express`
# Summary
This package contains type definitions for Express 4.x (http://expressjs.com).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/express
Additional Details
* Last updated: Tue, 15 Nov 2016 14:55:32 GMT
* File structure: ProperModule
* Library Dependencies: express-serve-static-core, serve-static
* Module Dependencies: express-serve-static-core, serve-static
* Global values: e
# Credits
These definitions were written by Boris Yankov <https://github.com/borisyankov/>.

73
node_modules/@types/express/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,73 @@
// Type definitions for Express 4.x
// Project: http://expressjs.com
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* =================== USAGE ===================
import * as express from "express";
var app = express();
=============================================== */
/// <reference types="express-serve-static-core" />
/// <reference types="serve-static" />
import * as serveStatic from "serve-static";
import * as core from "express-serve-static-core";
/**
* Creates an Express application. The express() function is a top-level function exported by the express module.
*/
declare function e(): core.Express;
declare namespace e {
/**
* This is the only built-in middleware function in Express. It serves static files and is based on serve-static.
*/
var static: typeof serveStatic;
export function Router(options?: RouterOptions): core.Router;
interface RouterOptions {
/**
* Enable case sensitivity.
*/
caseSensitive?: boolean;
/**
* Preserve the req.params values from the parent router.
* If the parent and the child have conflicting param names, the childs value take precedence.
*
* @default false
* @since 4.5.0
*/
mergeParams?: boolean;
/**
* Enable strict routing.
*/
strict?: boolean;
}
interface Application extends core.Application { }
interface CookieOptions extends core.CookieOptions { }
interface Errback extends core.Errback { }
interface ErrorRequestHandler extends core.ErrorRequestHandler { }
interface Express extends core.Express { }
interface Handler extends core.Handler { }
interface IRoute extends core.IRoute { }
interface IRouter<T> extends core.IRouter { }
interface IRouterMatcher<T> extends core.IRouterMatcher<T> { }
interface MediaType extends core.MediaType { }
interface NextFunction extends core.NextFunction { }
interface Request extends core.Request { }
interface RequestHandler extends core.RequestHandler { }
interface RequestParamHandler extends core.RequestParamHandler { }
export interface Response extends core.Response { }
interface Router extends core.Router { }
interface Send extends core.Send { }
}
export = e;

81
node_modules/@types/express/package.json generated vendored Normal file
View File

@ -0,0 +1,81 @@
{
"_args": [
[
{
"raw": "@types/express@*",
"scope": "@types",
"escapedName": "@types%2fexpress",
"name": "@types/express",
"rawSpec": "*",
"spec": "*",
"type": "range"
},
"C:\\projekti\\ts\\node_modules\\@types\\body-parser"
]
],
"_from": "@types/express@*",
"_id": "@types/express@4.0.34",
"_inCache": true,
"_location": "/@types/express",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/express-4.0.34.tgz_1479221773267_0.6036220847163349"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/express@*",
"scope": "@types",
"escapedName": "@types%2fexpress",
"name": "@types/express",
"rawSpec": "*",
"spec": "*",
"type": "range"
},
"_requiredBy": [
"/@types/body-parser"
],
"_resolved": "https://registry.npmjs.org/@types/express/-/express-4.0.34.tgz",
"_shasum": "cdc0afd69d70d2295b81b3aa47f26f672afcde1c",
"_shrinkwrap": null,
"_spec": "@types/express@*",
"_where": "C:\\projekti\\ts\\node_modules\\@types\\body-parser",
"author": {
"name": "Boris Yankov",
"email": "https://github.com/borisyankov/"
},
"dependencies": {
"@types/express-serve-static-core": "*",
"@types/serve-static": "*"
},
"description": "TypeScript definitions for Express 4.x",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "cdc0afd69d70d2295b81b3aa47f26f672afcde1c",
"tarball": "https://registry.npmjs.org/@types/express/-/express-4.0.34.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/express",
"optionalDependencies": {},
"peerDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typesPublisherContentHash": "cb2883774f9ff8bf15e334e96c3f98fd01820ea5da7fe8c99b6a1131b8816784",
"typings": "index.d.ts",
"version": "4.0.34"
}

31
node_modules/@types/express/types-metadata.json generated vendored Normal file
View File

@ -0,0 +1,31 @@
{
"authors": "Boris Yankov <https://github.com/borisyankov/>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [
"express-serve-static-core",
"serve-static"
],
"moduleDependencies": [
"express-serve-static-core",
"serve-static"
],
"libraryMajorVersion": 4,
"libraryMinorVersion": 0,
"libraryName": "Express 4.x",
"typingsPackageName": "express",
"projectName": "http://expressjs.com",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"e"
],
"declaredModules": [
"express"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "cb2883774f9ff8bf15e334e96c3f98fd01820ea5da7fe8c99b6a1131b8816784"
}

18
node_modules/@types/method-override/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# Installation
> `npm install --save @types/method-override`
# Summary
This package contains type definitions for method-override (https://github.com/expressjs/method-override).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/method-override
Additional Details
* Last updated: Wed, 05 Oct 2016 20:53:35 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: express
* Global values: e
# Credits
These definitions were written by Santi Albo <https://github.com/santialbo/>.

24
node_modules/@types/method-override/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,24 @@
// Type definitions for method-override
// Project: https://github.com/expressjs/method-override
// Definitions by: Santi Albo <https://github.com/santialbo/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Express {
export interface Request {
originalMethod?: string;
}
}
import express = require('express');
declare namespace e {
export interface MethodOverrideOptions {
methods: string[];
}
}
declare function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
export = e;

81
node_modules/@types/method-override/package.json generated vendored Normal file
View File

@ -0,0 +1,81 @@
{
"_args": [
[
{
"raw": "@types/method-override",
"scope": "@types",
"escapedName": "@types%2fmethod-override",
"name": "@types/method-override",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"C:\\projekti\\ts\\bin"
]
],
"_from": "@types/method-override@latest",
"_id": "@types/method-override@0.0.29",
"_inCache": true,
"_location": "/@types/method-override",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/method-override-0.0.29.tgz_1475701161650_0.3091852073557675"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/method-override",
"scope": "@types",
"escapedName": "@types%2fmethod-override",
"name": "@types/method-override",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
"#DEV:/",
"#USER"
],
"_resolved": "https://registry.npmjs.org/@types/method-override/-/method-override-0.0.29.tgz",
"_shasum": "5f272145bcf70442cdd2b1a86e8e62635f1dfdcb",
"_shrinkwrap": null,
"_spec": "@types/method-override",
"_where": "C:\\projekti\\ts\\bin",
"author": {
"name": "Santi Albo",
"email": "https://github.com/santialbo/"
},
"dependencies": {
"@types/express": "*"
},
"description": "TypeScript definitions for method-override",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "5f272145bcf70442cdd2b1a86e8e62635f1dfdcb",
"tarball": "https://registry.npmjs.org/@types/method-override/-/method-override-0.0.29.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/method-override",
"optionalDependencies": {},
"peerDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typesPublisherContentHash": "77132f4a9390d32e336148bc81ec90c67f5d14595d8e28afd5334609919c30a5",
"typings": "index.d.ts",
"version": "0.0.29"
}

Some files were not shown because too many files have changed in this diff Show More