Initial commit

This commit is contained in:
2021-03-14 11:09:02 +01:00
commit 21e364ee38
1046 changed files with 126647 additions and 0 deletions

3
node_modules/better-js-class/.npmignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
.idea
*.iml
npm-debug.log

19
node_modules/better-js-class/LICENSE generated vendored Normal file
View File

@ -0,0 +1,19 @@
Copyright (c) 2013 Chiyan Chen
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.

44
node_modules/better-js-class/README.md generated vendored Normal file
View File

@ -0,0 +1,44 @@
# class
A convenient way to emulated class and inheritance in Javascript.
Why is this "better"? In the inheritance case, the super function can be called without explicitly referring to the parent class. One can just write:
```javascript
this.parent.methodName.call(this, args);
```
__Example__
```javascript
var Class = require('better-js-class');
var A = Class({
_init: function() {
this._bar = 'bar';
},
foo: function() {
console.log('foo ' + this._bar);
}
});
var B = Class(A, {
_init: function() {
this.parent._init.call(this);
},
kaz: function() {
console.log('kaz ' + this._bar);
}
});
var a = new B();
a.foo();
a.kaz();
```
## Note
The constructor function's name is conventioned to be "_init".

58
node_modules/better-js-class/lib/class.js generated vendored Normal file
View File

@ -0,0 +1,58 @@
module.exports = function() {
var Class = function () {
var extend = function (subclass, superclass, overrides) {
var magic = function(fn) {
return function() {
var tmp = this.parent;
this.parent = superclass.prototype;
var res = fn.apply(this, arguments);
this.parent = tmp;
return res;
};
};
var k,
TempClass = function () {};
TempClass.prototype = superclass.prototype;
subclass.prototype = new TempClass();
for (k in overrides) {
subclass.prototype[k] = magic(overrides[k]);
}
return superclass.prototype;
};
var Class = function () {
var superclass, methods;
if (arguments.length === 1) {
methods = arguments[0];
} else {
superclass = arguments[0];
methods = arguments[1];
}
var cls = function () {
this._init.apply(this, arguments);
}
if (superclass) {
extend(cls, superclass, methods);
} else {
if (methods._init == null) {
methods._init = function() {};
}
cls.prototype = methods;
}
return cls;
};
return Class;
}();
return Class;
}();

56
node_modules/better-js-class/package.json generated vendored Normal file
View File

@ -0,0 +1,56 @@
{
"_from": "better-js-class@*",
"_id": "better-js-class@0.1.3",
"_inBundle": false,
"_integrity": "sha1-dY3RdGKzcZ4c+gDMZHoM+ZS6b5Q=",
"_location": "/better-js-class",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "better-js-class@*",
"name": "better-js-class",
"escapedName": "better-js-class",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/node-mysql"
],
"_resolved": "https://registry.npmjs.org/better-js-class/-/better-js-class-0.1.3.tgz",
"_shasum": "758dd17462b3719e1cfa00cc647a0cf994ba6f94",
"_spec": "better-js-class@*",
"_where": "E:\\IntellijProjects\\woam-antispam-bot\\node_modules\\node-mysql",
"author": {
"name": "Chiyan Chen"
},
"bugs": {
"url": "https://github.com/redblaze/class/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "A convenient way to emulated class and inheritance in Javascript.",
"homepage": "https://github.com/redblaze/class#readme",
"jam": {
"main": "lib/class.js",
"include": [
"lib/class.js",
"README.md",
"LICENSE"
]
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/redblaze/class/raw/master/LICENSE"
}
],
"main": "./lib/class",
"name": "better-js-class",
"repository": {
"type": "git",
"url": "git+https://github.com/redblaze/class.git"
},
"version": "0.1.3"
}