-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathLoader.js
63 lines (56 loc) · 2.1 KB
/
Loader.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* Loader.js *
* *
* hprose CommonJS/AMD/CMD loader for HTML5. *
* *
* LastModified: Nov 18, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
/* global define, module */
(function (hprose) {
'use strict';
hprose.common = {
Completer: hprose.Completer,
Future: hprose.Future,
ResultMode: hprose.ResultMode
};
hprose.io = {
BytesIO: hprose.BytesIO,
ClassManager: hprose.ClassManager,
Tags: hprose.Tags,
RawReader: hprose.RawReader,
Reader: hprose.Reader,
Writer: hprose.Writer,
Formatter: hprose.Formatter
};
hprose.client = {
Client: hprose.Client,
HttpClient: hprose.HttpClient,
TcpClient: hprose.TcpClient,
WebSocketClient: hprose.WebSocketClient
};
hprose.filter = {
JSONRPCClientFilter: hprose.JSONRPCClientFilter
};
if (typeof define === 'function') {
if (define.cmd) {
define('hprose', [], hprose);
}
else if (define.amd) {
define('hprose', [], function() { return hprose; });
}
}
if (typeof module === 'object') {
module.exports = hprose;
}
})(hprose);