0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions

14
web/node_modules/arity-n/.editorconfig generated vendored Normal file
View file

@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
charset = utf-8
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

29
web/node_modules/arity-n/.jshintrc generated vendored Normal file
View file

@ -0,0 +1,29 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"latedef": "nofunc",
"newcap": false,
"noarg": true,
"undef": true,
"strict": false,
"trailing": true,
"smarttabs": true,
"indent": 2,
"white": false,
"quotmark": "single",
"laxbreak": true,
"globals" : {
/* MOCHA */
"describe" : false,
"it" : false,
"before" : false,
"beforeEach" : false,
"after" : false,
"afterEach" : false
}
}

15
web/node_modules/arity-n/.npmignore generated vendored Normal file
View file

@ -0,0 +1,15 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
npm-debug.log
node_modules

3
web/node_modules/arity-n/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,3 @@
language: node_js
node_js:
- '0.10'

5
web/node_modules/arity-n/0.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
module.exports = function(fn) {
return function() {
return fn.apply(null, arguments);
};
};

5
web/node_modules/arity-n/1.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
module.exports = function(fn) {
return function(a) {
return fn.apply(null, arguments);
};
};

5
web/node_modules/arity-n/2.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
module.exports = function(fn) {
return function(a, b) {
return fn.apply(null, arguments);
};
};

5
web/node_modules/arity-n/3.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
module.exports = function(fn) {
return function(a, b, c) {
return fn.apply(null, arguments);
};
};

5
web/node_modules/arity-n/4.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
module.exports = function(fn) {
return function(a, b, c, d) {
return fn.apply(null, arguments);
};
};

5
web/node_modules/arity-n/5.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
module.exports = function(fn) {
return function(a, b, c, d, e) {
return fn.apply(null, arguments);
};
};

22
web/node_modules/arity-n/LICENSE generated vendored Normal file
View file

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Christoph Hermann
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.

16
web/node_modules/arity-n/N.js generated vendored Normal file
View file

@ -0,0 +1,16 @@
var arityFn = [
require('./0'),
require('./1'),
require('./2'),
require('./3'),
require('./4'),
require('./5')
];
module.exports = function(fn, n) {
if (n && n <= 5) {
return arityFn[n](fn);
} else {
return fn;
}
};

32
web/node_modules/arity-n/README.md generated vendored Normal file
View file

@ -0,0 +1,32 @@
arity-n
============
[![Build Status](https://travis-ci.org/stoeffel/arityN.svg)](https://travis-ci.org/stoeffel/arityN) [![npm version](https://badge.fury.io/js/arity-n.svg)](http://badge.fury.io/js/arity-n)
> Wraps a function with a function of a sertain arity.
Installation
------------
`npm install arity-n`
Usage
-----
```js
function fn(a, b, c, d) {
}
var arityN = require('arity-n');
var newFn = arityN(fn, 3);
newFn.length; // => 3
var arity4 = require('arity-n/4');
var newFn = arity4(fn);
newFn.length; // => 4
// Max arity is 5.
var newFn = arityN(fn, 7);
newFn.length; // => 4
```

31
web/node_modules/arity-n/package.json generated vendored Normal file
View file

@ -0,0 +1,31 @@
{
"name": "arity-n",
"version": "1.0.4",
"description": "Wraps a function with a function of a sertain arity.",
"main": "N.js",
"scripts": {
"test": "mocha --reporter nyan --compilers js:mocha-traceur"
},
"repository": {
"type": "git",
"url": "http://github.com/stoeffel/arityN"
},
"keywords": [
"function",
"arity",
"functional"
],
"author": "stoeffel",
"license": "MIT",
"bugs": {
"url": "http://github.com/stoeffel/arityN/issues"
},
"homepage": "http://github.com/stoeffel/arityN",
"devDependencies": {
"expect.js": "^0.3.1",
"mocha": "^2.1.0",
"mocha-traceur": "^2.1.0",
"sinon": "^1.12.2"
},
"dependencies": {}
}

100
web/node_modules/arity-n/test.js generated vendored Normal file
View file

@ -0,0 +1,100 @@
var arity0 = require('./0'),
arity1 = require('./1'),
arity2 = require('./2'),
arity3 = require('./3'),
arity4 = require('./4'),
arity5 = require('./5'),
arityN = require('./N'),
spy = require('sinon').spy(),
expect = require('expect.js');
function createArray(l) {
var arr = [];
for (var i = 0; i < l; i++) {
arr.push(i);
}
return arr;
}
function hasArity(wrapped, fn, l) {
var arr = createArray(l);
expect(wrapped).to.be.a('function');
expect(wrapped.length).to.be.eql(l);
wrapped.call(null, arr);
expect(fn.calledWith.call(fn, arr)).to.be.ok();
}
describe('arity-function', () => {
describe('#arity0', () => {
it('should return a function with length 0', () => {
var spy0 = arity0(spy);
hasArity(spy0, spy, 0);
});
});
describe('#arity1', () => {
it('should return a function with length 1', () => {
var spy1 = arity1(spy);
hasArity(spy1, spy, 1);
});
});
describe('#arity2', () => {
it('should return a function with length 2', () => {
var spy2 = arity2(spy);
hasArity(spy2, spy, 2);
});
});
describe('#arity3', () => {
it('should return a function with length 3', () => {
var spy3 = arity3(spy);
hasArity(spy3, spy, 3);
});
});
describe('#arity4', () => {
it('should return a function with length 4', () => {
var spy4 = arity4(spy);
hasArity(spy4, spy, 4);
});
});
describe('#arity5', () => {
it('should return a function with length 5', () => {
var spy5 = arity5(spy);
hasArity(spy5, spy, 5);
});
});
describe('#arityN', () => {
it('should return a function with length N', () => {
var spy0 = arityN(spy, 0);
hasArity(spy0, spy, 0);
var spy1 = arityN(spy, 1);
hasArity(spy1, spy, 1);
var spy2 = arityN(spy, 2);
hasArity(spy2, spy, 2);
var spy3 = arityN(spy, 3);
hasArity(spy3, spy, 3);
var spy4 = arityN(spy, 4);
hasArity(spy4, spy, 4);
var spy5 = arityN(spy, 5);
hasArity(spy5, spy, 5);
var spyX = arityN(spy, undefined);
hasArity(spyX, spy, 0);
spyX = arityN(spy, null);
hasArity(spyX, spy, 0);
var newFn = arityN(function(a,b,c,d,e,f,g,h,i,j,k){ return true; }, 9);
expect(newFn.length).to.be.eql(11);
expect(newFn()).to.be.eql(true);
});
});
});