This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathindex.js
64 lines (51 loc) · 2.06 KB
/
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
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
64
// transpile:main
// BaseDriver exports
import * as driver from './lib/basedriver/driver';
import * as image from './lib/basedriver/image-element';
import * as deviceSettings from './lib/basedriver/device-settings';
const { BaseDriver } = driver;
const { ImageElement } = image;
const { DeviceSettings, BASEDRIVER_HANDLED_SETTINGS } = deviceSettings;
export { BaseDriver, DeviceSettings, ImageElement, BASEDRIVER_HANDLED_SETTINGS };
export default BaseDriver;
// MJSONWP exports
import * as protocol from './lib/protocol';
import {
DEFAULT_BASE_PATH, PROTOCOLS
} from './lib/constants';
const {
Protocol, routeConfiguringFunction, errors, isErrorType,
errorFromMJSONWPStatusCode, errorFromW3CJsonCode, ALL_COMMANDS, METHOD_MAP,
routeToCommandName, NO_SESSION_ID_COMMANDS, isSessionCommand,
normalizeBasePath, determineProtocol
} = protocol;
export {
Protocol, routeConfiguringFunction, errors, isErrorType, PROTOCOLS,
errorFromMJSONWPStatusCode, errorFromW3CJsonCode, determineProtocol,
errorFromMJSONWPStatusCode as errorFromCode, ALL_COMMANDS, METHOD_MAP,
routeToCommandName, NO_SESSION_ID_COMMANDS, isSessionCommand,
DEFAULT_BASE_PATH, normalizeBasePath
};
// Express exports
import * as staticIndex from './lib/express/static';
const { STATIC_DIR } = staticIndex;
export { STATIC_DIR };
import * as serverIndex from './lib/express/server';
const { server } = serverIndex;
export { server };
// jsonwp-proxy exports
import * as proxyIndex from './lib/jsonwp-proxy/proxy';
const { JWProxy } = proxyIndex;
export { JWProxy };
// jsonwp-status exports
import * as statusIndex from './lib/jsonwp-status/status';
const { codes: statusCodes, getSummaryByCode } = statusIndex;
export { statusCodes, getSummaryByCode };
// W3C capabilities parser
import * as caps from './lib/basedriver/capabilities';
const { processCapabilities, isStandardCap, validateCaps } = caps;
export { processCapabilities, isStandardCap, validateCaps };
// Web socket helpers
import * as ws from './lib/express/websocket';
const { DEFAULT_WS_PATHNAME_PREFIX } = ws;
export { DEFAULT_WS_PATHNAME_PREFIX };