-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclient-index.js
35 lines (29 loc) · 965 Bytes
/
client-index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var signet = (function () {
'use strict';
function buildSignet() {
var assembler = signetAssembler;
var parser = signetParser();
var registrar = signetRegistrar();
var checker = signetChecker(registrar);
var typelog = signetTypelog(registrar, parser);
var validator = signetValidator(typelog, assembler);
var duckTypes = signetDuckTypes;
var coreTypes = signetCoreTypes;
var recursiveTypes = signetRecursiveTypes;
return signetBuilder(
typelog,
validator,
checker,
parser,
assembler,
duckTypes,
coreTypes,
recursiveTypes);
}
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = buildSignet;
}
var signetInstance = buildSignet();
signetInstance.new = buildSignet;
return signetInstance;
})();