zmdms-utils 0.0.80 → 0.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations.d.ts +6 -0
- package/dist/es/_virtual/FastBufferList.js +7 -0
- package/dist/es/_virtual/_commonjs-dynamic-modules.js +5 -0
- package/dist/es/_virtual/browser.js +7 -0
- package/dist/es/_virtual/browser2.js +7 -0
- package/dist/es/_virtual/debug.js +7 -0
- package/dist/es/_virtual/event.js +7 -0
- package/dist/es/_virtual/http-parser.js +3 -0
- package/dist/es/_virtual/iframe.js +7 -0
- package/dist/es/_virtual/index.js +7 -0
- package/dist/es/_virtual/index2.js +7 -0
- package/dist/es/_virtual/index3.js +7 -0
- package/dist/es/_virtual/index4.js +7 -0
- package/dist/es/_virtual/index5.js +7 -0
- package/dist/es/_virtual/index6.js +7 -0
- package/dist/es/_virtual/index7.js +3 -0
- package/dist/es/_virtual/index8.js +7 -0
- package/dist/es/_virtual/index9.js +7 -0
- package/dist/es/_virtual/inherits.js +7 -0
- package/dist/es/_virtual/inherits_browser.js +7 -0
- package/dist/es/_virtual/json3.js +7 -0
- package/dist/es/_virtual/node.js +7 -0
- package/dist/es/_virtual/node2.js +7 -0
- package/dist/es/_virtual/stomp-node.js +3 -0
- package/dist/es/_virtual/stomp.js +3 -0
- package/dist/es/_virtual/streams.js +3 -0
- package/dist/es/_virtual/utils.js +3 -0
- package/dist/es/constants.d.ts +5 -1
- package/dist/es/constants.js +5 -1
- package/dist/es/node_modules/bufferutil/fallback.js +43 -0
- package/dist/es/node_modules/bufferutil/index.js +21 -0
- package/dist/es/node_modules/debug/src/browser.js +192 -0
- package/dist/es/node_modules/debug/src/common.js +259 -0
- package/dist/es/node_modules/debug/src/index.js +25 -0
- package/dist/es/node_modules/debug/src/node.js +192 -0
- package/dist/es/node_modules/eventsource/lib/eventsource.js +493 -0
- package/dist/es/node_modules/faye-websocket/lib/faye/eventsource.js +150 -0
- package/dist/es/node_modules/faye-websocket/lib/faye/websocket/api/event.js +31 -0
- package/dist/es/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js +41 -0
- package/dist/es/node_modules/faye-websocket/lib/faye/websocket/api.js +205 -0
- package/dist/es/node_modules/faye-websocket/lib/faye/websocket/client.js +107 -0
- package/dist/es/node_modules/faye-websocket/lib/faye/websocket.js +47 -0
- package/dist/es/node_modules/has-flag/index.js +17 -0
- package/dist/es/node_modules/http-parser-js/http-parser.js +471 -0
- package/dist/es/node_modules/inherits/inherits.js +14 -0
- package/dist/es/node_modules/inherits/inherits_browser.js +38 -0
- package/dist/es/node_modules/is-typedarray/index.js +51 -0
- package/dist/es/node_modules/json3/lib/json3.js +937 -0
- package/dist/es/node_modules/ms/index.js +172 -0
- package/dist/es/node_modules/node-gyp-build/index.js +21 -0
- package/dist/es/node_modules/node-gyp-build/node-gyp-build.js +222 -0
- package/dist/es/node_modules/querystringify/index.js +120 -0
- package/dist/es/node_modules/requires-port/index.js +38 -0
- package/dist/es/node_modules/safe-buffer/index.js +71 -0
- package/dist/es/node_modules/supports-color/index.js +143 -0
- package/dist/es/node_modules/typedarray-to-buffer/index.js +37 -0
- package/dist/es/node_modules/url-parse/index.js +594 -0
- package/dist/es/node_modules/utf-8-validate/fallback.js +71 -0
- package/dist/es/node_modules/utf-8-validate/index.js +21 -0
- package/dist/es/node_modules/websocket/index.js +15 -0
- package/dist/es/node_modules/websocket/lib/Deprecation.js +42 -0
- package/dist/es/node_modules/websocket/lib/W3CWebSocket.js +268 -0
- package/dist/es/node_modules/websocket/lib/WebSocketClient.js +380 -0
- package/dist/es/node_modules/websocket/lib/WebSocketConnection.js +914 -0
- package/dist/es/node_modules/websocket/lib/WebSocketFrame.js +293 -0
- package/dist/es/node_modules/websocket/lib/WebSocketRequest.js +543 -0
- package/dist/es/node_modules/websocket/lib/WebSocketRouter.js +172 -0
- package/dist/es/node_modules/websocket/lib/WebSocketRouterRequest.js +67 -0
- package/dist/es/node_modules/websocket/lib/WebSocketServer.js +272 -0
- package/dist/es/node_modules/websocket/lib/utils.js +80 -0
- package/dist/es/node_modules/websocket/lib/version.js +13 -0
- package/dist/es/node_modules/websocket/lib/websocket.js +31 -0
- package/dist/es/node_modules/websocket/node_modules/debug/src/browser.js +199 -0
- package/dist/es/node_modules/websocket/node_modules/debug/src/debug.js +215 -0
- package/dist/es/node_modules/websocket/node_modules/debug/src/index.js +25 -0
- package/dist/es/node_modules/websocket/node_modules/debug/src/node.js +266 -0
- package/dist/es/node_modules/websocket/node_modules/ms/index.js +162 -0
- package/dist/es/node_modules/websocket/package.json.js +77 -0
- package/dist/es/node_modules/websocket/vendor/FastBufferList.js +205 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/base.js +202 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/client.js +152 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/draft75.js +128 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/draft76.js +124 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/headers.js +44 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/hybi/frame.js +21 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/hybi/message.js +37 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/hybi.js +492 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/proxy.js +108 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/server.js +119 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver/stream_reader.js +72 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/driver.js +47 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/http_parser.js +140 -0
- package/dist/es/node_modules/websocket-driver/lib/websocket/streams.js +150 -0
- package/dist/es/node_modules/websocket-extensions/lib/parser.js +103 -0
- package/dist/es/node_modules/websocket-extensions/lib/pipeline/cell.js +56 -0
- package/dist/es/node_modules/websocket-extensions/lib/pipeline/functor.js +74 -0
- package/dist/es/node_modules/websocket-extensions/lib/pipeline/index.js +50 -0
- package/dist/es/node_modules/websocket-extensions/lib/pipeline/pledge.js +39 -0
- package/dist/es/node_modules/websocket-extensions/lib/pipeline/ring_buffer.js +66 -0
- package/dist/es/node_modules/websocket-extensions/lib/websocket_extensions.js +165 -0
- package/dist/es/node_modules/yaeti/index.js +17 -0
- package/dist/es/node_modules/yaeti/lib/Event.js +24 -0
- package/dist/es/node_modules/yaeti/lib/EventTarget.js +130 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/entry.js +14 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/event/close.js +21 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/event/event.js +22 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/event/eventtarget.js +62 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/event/trans-message.js +19 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/facade.js +40 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/iframe-bootstrap.js +122 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/info-ajax.js +57 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/info-iframe-receiver.js +50 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/info-iframe.js +81 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/info-receiver.js +101 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/location.js +12 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/main.js +413 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/shims.js +449 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/driver/websocket.js +5 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/driver/xhr.js +80 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/eventsource.js +34 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/htmlfile.js +31 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/iframe.js +154 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/jsonp-polling.js +41 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/lib/ajax-based.js +55 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/lib/buffered-sender.js +92 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/lib/iframe-wrap.js +39 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/lib/polling.js +65 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/lib/sender-receiver.js +52 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/receiver/eventsource.js +69 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/receiver/htmlfile.js +96 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/receiver/jsonp.js +193 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/receiver/xhr.js +75 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/sender/jsonp.js +104 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/sender/xdr.js +113 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/sender/xhr-cors.js +19 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/sender/xhr-fake.js +28 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/sender/xhr-local.js +21 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/websocket.js +108 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/xdr-polling.js +30 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/xdr-streaming.js +38 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/xhr-polling.js +40 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport/xhr-streaming.js +50 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/transport-list.js +28 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/browser.js +29 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/escape.js +53 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/event.js +78 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/iframe.js +205 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/log.js +20 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/object.js +24 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/random.js +30 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/transport.js +52 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/utils/url.js +54 -0
- package/dist/es/node_modules/zt-sockjs-client/lib/version.js +11 -0
- package/dist/es/node_modules/zt-stompjs/index.js +23 -0
- package/dist/es/node_modules/zt-stompjs/lib/stomp-node.js +117 -0
- package/dist/es/node_modules/zt-stompjs/lib/stomp.js +536 -0
- package/dist/es/stompClient.d.ts +55 -0
- package/dist/es/stompClient.js +379 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +6 -2
- package/src/constants.ts +5 -0
- package/src/index.ts +4 -0
- package/src/stompClient.ts +449 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import require$$2 from 'os';
|
|
2
|
+
import { __require as requireHasFlag } from '../has-flag/index.js';
|
|
3
|
+
|
|
4
|
+
var supportsColor_1;
|
|
5
|
+
var hasRequiredSupportsColor;
|
|
6
|
+
|
|
7
|
+
function requireSupportsColor () {
|
|
8
|
+
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
9
|
+
hasRequiredSupportsColor = 1;
|
|
10
|
+
const os = require$$2;
|
|
11
|
+
const hasFlag = requireHasFlag();
|
|
12
|
+
|
|
13
|
+
const env = process.env;
|
|
14
|
+
|
|
15
|
+
let forceColor;
|
|
16
|
+
if (hasFlag('no-color') ||
|
|
17
|
+
hasFlag('no-colors') ||
|
|
18
|
+
hasFlag('color=false')) {
|
|
19
|
+
forceColor = false;
|
|
20
|
+
} else if (hasFlag('color') ||
|
|
21
|
+
hasFlag('colors') ||
|
|
22
|
+
hasFlag('color=true') ||
|
|
23
|
+
hasFlag('color=always')) {
|
|
24
|
+
forceColor = true;
|
|
25
|
+
}
|
|
26
|
+
if ('FORCE_COLOR' in env) {
|
|
27
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function translateLevel(level) {
|
|
31
|
+
if (level === 0) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
level,
|
|
37
|
+
hasBasic: true,
|
|
38
|
+
has256: level >= 2,
|
|
39
|
+
has16m: level >= 3
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function supportsColor(stream) {
|
|
44
|
+
if (forceColor === false) {
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (hasFlag('color=16m') ||
|
|
49
|
+
hasFlag('color=full') ||
|
|
50
|
+
hasFlag('color=truecolor')) {
|
|
51
|
+
return 3;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (hasFlag('color=256')) {
|
|
55
|
+
return 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (stream && !stream.isTTY && forceColor !== true) {
|
|
59
|
+
return 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const min = forceColor ? 1 : 0;
|
|
63
|
+
|
|
64
|
+
if (process.platform === 'win32') {
|
|
65
|
+
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
|
66
|
+
// libuv that enables 256 color output on Windows. Anything earlier and it
|
|
67
|
+
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
|
|
68
|
+
// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
|
|
69
|
+
// release that supports 256 colors. Windows 10 build 14931 is the first release
|
|
70
|
+
// that supports 16m/TrueColor.
|
|
71
|
+
const osRelease = os.release().split('.');
|
|
72
|
+
if (
|
|
73
|
+
Number(process.versions.node.split('.')[0]) >= 8 &&
|
|
74
|
+
Number(osRelease[0]) >= 10 &&
|
|
75
|
+
Number(osRelease[2]) >= 10586
|
|
76
|
+
) {
|
|
77
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if ('CI' in env) {
|
|
84
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
85
|
+
return 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return min;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
92
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (env.COLORTERM === 'truecolor') {
|
|
96
|
+
return 3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if ('TERM_PROGRAM' in env) {
|
|
100
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
101
|
+
|
|
102
|
+
switch (env.TERM_PROGRAM) {
|
|
103
|
+
case 'iTerm.app':
|
|
104
|
+
return version >= 3 ? 3 : 2;
|
|
105
|
+
case 'Apple_Terminal':
|
|
106
|
+
return 2;
|
|
107
|
+
// No default
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
112
|
+
return 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
116
|
+
return 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if ('COLORTERM' in env) {
|
|
120
|
+
return 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (env.TERM === 'dumb') {
|
|
124
|
+
return min;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return min;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function getSupportLevel(stream) {
|
|
131
|
+
const level = supportsColor(stream);
|
|
132
|
+
return translateLevel(level);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
supportsColor_1 = {
|
|
136
|
+
supportsColor: getSupportLevel,
|
|
137
|
+
stdout: getSupportLevel(process.stdout),
|
|
138
|
+
stderr: getSupportLevel(process.stderr)
|
|
139
|
+
};
|
|
140
|
+
return supportsColor_1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { requireSupportsColor as __require };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __require as requireIsTypedarray } from '../is-typedarray/index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Convert a typed array to a Buffer without a copy
|
|
5
|
+
*
|
|
6
|
+
* Author: Feross Aboukhadijeh <https://feross.org>
|
|
7
|
+
* License: MIT
|
|
8
|
+
*
|
|
9
|
+
* `npm install typedarray-to-buffer`
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var typedarrayToBuffer;
|
|
13
|
+
var hasRequiredTypedarrayToBuffer;
|
|
14
|
+
|
|
15
|
+
function requireTypedarrayToBuffer () {
|
|
16
|
+
if (hasRequiredTypedarrayToBuffer) return typedarrayToBuffer;
|
|
17
|
+
hasRequiredTypedarrayToBuffer = 1;
|
|
18
|
+
var isTypedArray = requireIsTypedarray().strict;
|
|
19
|
+
|
|
20
|
+
typedarrayToBuffer = function typedarrayToBuffer (arr) {
|
|
21
|
+
if (isTypedArray(arr)) {
|
|
22
|
+
// To avoid a copy, use the typed array's underlying ArrayBuffer to back new Buffer
|
|
23
|
+
var buf = Buffer.from(arr.buffer);
|
|
24
|
+
if (arr.byteLength !== arr.buffer.byteLength) {
|
|
25
|
+
// Respect the "view", i.e. byteOffset and byteLength, without doing a copy
|
|
26
|
+
buf = buf.slice(arr.byteOffset, arr.byteOffset + arr.byteLength);
|
|
27
|
+
}
|
|
28
|
+
return buf
|
|
29
|
+
} else {
|
|
30
|
+
// Pass through all other types to `Buffer.from`
|
|
31
|
+
return Buffer.from(arr)
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return typedarrayToBuffer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { requireTypedarrayToBuffer as __require };
|