@vibedeckx/linux-x64 0.1.17 → 0.1.20
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/dist/process-manager.d.ts +1 -1
- package/dist/process-manager.js +131 -42
- package/dist/ui/404/index.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/__next.__PAGE__.txt +1 -1
- package/dist/ui/__next._full.txt +1 -1
- package/dist/ui/__next._head.txt +1 -1
- package/dist/ui/__next._index.txt +1 -1
- package/dist/ui/__next._tree.txt +1 -1
- package/dist/ui/_not-found/__next._full.txt +1 -1
- package/dist/ui/_not-found/__next._head.txt +1 -1
- package/dist/ui/_not-found/__next._index.txt +1 -1
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/ui/_not-found/__next._not-found.txt +1 -1
- package/dist/ui/_not-found/__next._tree.txt +1 -1
- package/dist/ui/_not-found/index.html +1 -1
- package/dist/ui/_not-found/index.txt +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/ui/index.txt +1 -1
- package/node_modules/node-pty/lib/conpty_console_list_agent.js +10 -1
- package/node_modules/node-pty/lib/unixTerminal.js +6 -3
- package/node_modules/node-pty/lib/utils.js +1 -1
- package/node_modules/node-pty/lib/windowsPtyAgent.js +62 -95
- package/node_modules/node-pty/lib/windowsTerminal.js +4 -2
- package/node_modules/node-pty/package.json +6 -5
- package/node_modules/node-pty/prebuilds/linux-x64/pty.node +0 -0
- package/package.json +2 -2
- package/node_modules/node-pty/build/Release/pty.node +0 -0
- package/node_modules/node-pty/build/binding.Makefile +0 -6
- package/node_modules/node-pty/build/pty.target.mk +0 -168
- package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
- package/node_modules/node-pty/lib/terminal.test.js +0 -139
- package/node_modules/node-pty/lib/testUtils.test.js +0 -28
- package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
- package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
- package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
- /package/dist/ui/_next/static/{KwSMuRKWgTp_quB8AMAmD → 2WZQQh5uge1KTsD-HSfhL}/_buildManifest.js +0 -0
- /package/dist/ui/_next/static/{KwSMuRKWgTp_quB8AMAmD → 2WZQQh5uge1KTsD-HSfhL}/_clientMiddlewareManifest.json +0 -0
- /package/dist/ui/_next/static/{KwSMuRKWgTp_quB8AMAmD → 2WZQQh5uge1KTsD-HSfhL}/_ssgManifest.js +0 -0
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
# This file is generated by gyp; do not edit.
|
|
2
|
-
|
|
3
|
-
TOOLSET := target
|
|
4
|
-
TARGET := pty
|
|
5
|
-
DEFS_Debug := \
|
|
6
|
-
'-DNODE_GYP_MODULE_NAME=pty' \
|
|
7
|
-
'-DUSING_UV_SHARED=1' \
|
|
8
|
-
'-DUSING_V8_SHARED=1' \
|
|
9
|
-
'-DV8_DEPRECATION_WARNINGS=1' \
|
|
10
|
-
'-D_GLIBCXX_USE_CXX11_ABI=1' \
|
|
11
|
-
'-D_FILE_OFFSET_BITS=64' \
|
|
12
|
-
'-D_LARGEFILE_SOURCE' \
|
|
13
|
-
'-D__STDC_FORMAT_MACROS' \
|
|
14
|
-
'-DOPENSSL_NO_PINSHARED' \
|
|
15
|
-
'-DOPENSSL_THREADS' \
|
|
16
|
-
'-DNAPI_CPP_EXCEPTIONS' \
|
|
17
|
-
'-DBUILDING_NODE_EXTENSION' \
|
|
18
|
-
'-DDEBUG' \
|
|
19
|
-
'-D_DEBUG'
|
|
20
|
-
|
|
21
|
-
# Flags passed to all source files.
|
|
22
|
-
CFLAGS_Debug := \
|
|
23
|
-
-fPIC \
|
|
24
|
-
-pthread \
|
|
25
|
-
-Wall \
|
|
26
|
-
-Wextra \
|
|
27
|
-
-Wno-unused-parameter \
|
|
28
|
-
-Wall \
|
|
29
|
-
-O2 \
|
|
30
|
-
-D_FORTIFY_SOURCE=2 \
|
|
31
|
-
-m64 \
|
|
32
|
-
-g \
|
|
33
|
-
-O0
|
|
34
|
-
|
|
35
|
-
# Flags passed to only C files.
|
|
36
|
-
CFLAGS_C_Debug :=
|
|
37
|
-
|
|
38
|
-
# Flags passed to only C++ files.
|
|
39
|
-
CFLAGS_CC_Debug := \
|
|
40
|
-
-fno-rtti \
|
|
41
|
-
-fno-strict-aliasing \
|
|
42
|
-
-std=gnu++17
|
|
43
|
-
|
|
44
|
-
INCS_Debug := \
|
|
45
|
-
-I/home/runner/.cache/node-gyp/22.22.2/include/node \
|
|
46
|
-
-I/home/runner/.cache/node-gyp/22.22.2/src \
|
|
47
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/openssl/config \
|
|
48
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/openssl/openssl/include \
|
|
49
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/uv/include \
|
|
50
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/zlib \
|
|
51
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/v8/include \
|
|
52
|
-
-I$(srcdir)/../node-addon-api
|
|
53
|
-
|
|
54
|
-
DEFS_Release := \
|
|
55
|
-
'-DNODE_GYP_MODULE_NAME=pty' \
|
|
56
|
-
'-DUSING_UV_SHARED=1' \
|
|
57
|
-
'-DUSING_V8_SHARED=1' \
|
|
58
|
-
'-DV8_DEPRECATION_WARNINGS=1' \
|
|
59
|
-
'-D_GLIBCXX_USE_CXX11_ABI=1' \
|
|
60
|
-
'-D_FILE_OFFSET_BITS=64' \
|
|
61
|
-
'-D_LARGEFILE_SOURCE' \
|
|
62
|
-
'-D__STDC_FORMAT_MACROS' \
|
|
63
|
-
'-DOPENSSL_NO_PINSHARED' \
|
|
64
|
-
'-DOPENSSL_THREADS' \
|
|
65
|
-
'-DNAPI_CPP_EXCEPTIONS' \
|
|
66
|
-
'-DBUILDING_NODE_EXTENSION'
|
|
67
|
-
|
|
68
|
-
# Flags passed to all source files.
|
|
69
|
-
CFLAGS_Release := \
|
|
70
|
-
-fPIC \
|
|
71
|
-
-pthread \
|
|
72
|
-
-Wall \
|
|
73
|
-
-Wextra \
|
|
74
|
-
-Wno-unused-parameter \
|
|
75
|
-
-Wall \
|
|
76
|
-
-O2 \
|
|
77
|
-
-D_FORTIFY_SOURCE=2 \
|
|
78
|
-
-m64 \
|
|
79
|
-
-O3 \
|
|
80
|
-
-fno-omit-frame-pointer
|
|
81
|
-
|
|
82
|
-
# Flags passed to only C files.
|
|
83
|
-
CFLAGS_C_Release :=
|
|
84
|
-
|
|
85
|
-
# Flags passed to only C++ files.
|
|
86
|
-
CFLAGS_CC_Release := \
|
|
87
|
-
-fno-rtti \
|
|
88
|
-
-fno-strict-aliasing \
|
|
89
|
-
-std=gnu++17
|
|
90
|
-
|
|
91
|
-
INCS_Release := \
|
|
92
|
-
-I/home/runner/.cache/node-gyp/22.22.2/include/node \
|
|
93
|
-
-I/home/runner/.cache/node-gyp/22.22.2/src \
|
|
94
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/openssl/config \
|
|
95
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/openssl/openssl/include \
|
|
96
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/uv/include \
|
|
97
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/zlib \
|
|
98
|
-
-I/home/runner/.cache/node-gyp/22.22.2/deps/v8/include \
|
|
99
|
-
-I$(srcdir)/../node-addon-api
|
|
100
|
-
|
|
101
|
-
OBJS := \
|
|
102
|
-
$(obj).target/$(TARGET)/src/unix/pty.o
|
|
103
|
-
|
|
104
|
-
# Add to the list of files we specially track dependencies for.
|
|
105
|
-
all_deps += $(OBJS)
|
|
106
|
-
|
|
107
|
-
# Make sure our dependencies are built before any of us.
|
|
108
|
-
$(OBJS): | $(obj).target/../node-addon-api/node_addon_api_except.stamp
|
|
109
|
-
|
|
110
|
-
# CFLAGS et al overrides must be target-local.
|
|
111
|
-
# See "Target-specific Variable Values" in the GNU Make manual.
|
|
112
|
-
$(OBJS): TOOLSET := $(TOOLSET)
|
|
113
|
-
$(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
|
|
114
|
-
$(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
|
|
115
|
-
|
|
116
|
-
# Suffix rules, putting all outputs into $(obj).
|
|
117
|
-
|
|
118
|
-
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
|
|
119
|
-
@$(call do_cmd,cxx,1)
|
|
120
|
-
|
|
121
|
-
# Try building from generated source, too.
|
|
122
|
-
|
|
123
|
-
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
|
|
124
|
-
@$(call do_cmd,cxx,1)
|
|
125
|
-
|
|
126
|
-
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
|
|
127
|
-
@$(call do_cmd,cxx,1)
|
|
128
|
-
|
|
129
|
-
# End of this set of suffix rules
|
|
130
|
-
### Rules for final target.
|
|
131
|
-
LDFLAGS_Debug := \
|
|
132
|
-
-pthread \
|
|
133
|
-
-rdynamic \
|
|
134
|
-
-m64
|
|
135
|
-
|
|
136
|
-
LDFLAGS_Release := \
|
|
137
|
-
-pthread \
|
|
138
|
-
-rdynamic \
|
|
139
|
-
-m64
|
|
140
|
-
|
|
141
|
-
LIBS := \
|
|
142
|
-
-lutil
|
|
143
|
-
|
|
144
|
-
$(obj).target/pty.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
|
|
145
|
-
$(obj).target/pty.node: LIBS := $(LIBS)
|
|
146
|
-
$(obj).target/pty.node: TOOLSET := $(TOOLSET)
|
|
147
|
-
$(obj).target/pty.node: $(OBJS) FORCE_DO_CMD
|
|
148
|
-
$(call do_cmd,solink_module)
|
|
149
|
-
|
|
150
|
-
all_deps += $(obj).target/pty.node
|
|
151
|
-
# Add target alias
|
|
152
|
-
.PHONY: pty
|
|
153
|
-
pty: $(builddir)/pty.node
|
|
154
|
-
|
|
155
|
-
# Copy this to the executable output path.
|
|
156
|
-
$(builddir)/pty.node: TOOLSET := $(TOOLSET)
|
|
157
|
-
$(builddir)/pty.node: $(obj).target/pty.node FORCE_DO_CMD
|
|
158
|
-
$(call do_cmd,copy)
|
|
159
|
-
|
|
160
|
-
all_deps += $(builddir)/pty.node
|
|
161
|
-
# Short alias for building this executable.
|
|
162
|
-
.PHONY: pty.node
|
|
163
|
-
pty.node: $(obj).target/pty.node $(builddir)/pty.node
|
|
164
|
-
|
|
165
|
-
# Add executable to "all" target.
|
|
166
|
-
.PHONY: all
|
|
167
|
-
all: $(builddir)/pty.node
|
|
168
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2019, Microsoft Corporation (MIT License).
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var assert = require("assert");
|
|
7
|
-
var eventEmitter2_1 = require("./eventEmitter2");
|
|
8
|
-
describe('EventEmitter2', function () {
|
|
9
|
-
it('should fire listeners multiple times', function () {
|
|
10
|
-
var order = [];
|
|
11
|
-
var emitter = new eventEmitter2_1.EventEmitter2();
|
|
12
|
-
emitter.event(function (data) { return order.push(data + 'a'); });
|
|
13
|
-
emitter.event(function (data) { return order.push(data + 'b'); });
|
|
14
|
-
emitter.fire(1);
|
|
15
|
-
emitter.fire(2);
|
|
16
|
-
assert.deepEqual(order, ['1a', '1b', '2a', '2b']);
|
|
17
|
-
});
|
|
18
|
-
it('should not fire listeners once disposed', function () {
|
|
19
|
-
var order = [];
|
|
20
|
-
var emitter = new eventEmitter2_1.EventEmitter2();
|
|
21
|
-
emitter.event(function (data) { return order.push(data + 'a'); });
|
|
22
|
-
var disposeB = emitter.event(function (data) { return order.push(data + 'b'); });
|
|
23
|
-
emitter.event(function (data) { return order.push(data + 'c'); });
|
|
24
|
-
emitter.fire(1);
|
|
25
|
-
disposeB.dispose();
|
|
26
|
-
emitter.fire(2);
|
|
27
|
-
assert.deepEqual(order, ['1a', '1b', '1c', '2a', '2c']);
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=eventEmitter2.test.js.map
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2017, Daniel Imms (MIT License).
|
|
4
|
-
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
5
|
-
*/
|
|
6
|
-
var __extends = (this && this.__extends) || (function () {
|
|
7
|
-
var extendStatics = function (d, b) {
|
|
8
|
-
extendStatics = Object.setPrototypeOf ||
|
|
9
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11
|
-
return extendStatics(d, b);
|
|
12
|
-
};
|
|
13
|
-
return function (d, b) {
|
|
14
|
-
extendStatics(d, b);
|
|
15
|
-
function __() { this.constructor = d; }
|
|
16
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17
|
-
};
|
|
18
|
-
})();
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
var assert = require("assert");
|
|
21
|
-
var windowsTerminal_1 = require("./windowsTerminal");
|
|
22
|
-
var unixTerminal_1 = require("./unixTerminal");
|
|
23
|
-
var terminal_1 = require("./terminal");
|
|
24
|
-
var terminalConstructor = (process.platform === 'win32') ? windowsTerminal_1.WindowsTerminal : unixTerminal_1.UnixTerminal;
|
|
25
|
-
var SHELL = (process.platform === 'win32') ? 'cmd.exe' : '/bin/bash';
|
|
26
|
-
var terminalCtor;
|
|
27
|
-
if (process.platform === 'win32') {
|
|
28
|
-
terminalCtor = require('./windowsTerminal');
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
terminalCtor = require('./unixTerminal');
|
|
32
|
-
}
|
|
33
|
-
var TestTerminal = /** @class */ (function (_super) {
|
|
34
|
-
__extends(TestTerminal, _super);
|
|
35
|
-
function TestTerminal() {
|
|
36
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
-
}
|
|
38
|
-
TestTerminal.prototype.checkType = function (name, value, type, allowArray) {
|
|
39
|
-
if (allowArray === void 0) { allowArray = false; }
|
|
40
|
-
this._checkType(name, value, type, allowArray);
|
|
41
|
-
};
|
|
42
|
-
TestTerminal.prototype._write = function (data) {
|
|
43
|
-
throw new Error('Method not implemented.');
|
|
44
|
-
};
|
|
45
|
-
TestTerminal.prototype.resize = function (cols, rows) {
|
|
46
|
-
throw new Error('Method not implemented.');
|
|
47
|
-
};
|
|
48
|
-
TestTerminal.prototype.clear = function () {
|
|
49
|
-
throw new Error('Method not implemented.');
|
|
50
|
-
};
|
|
51
|
-
TestTerminal.prototype.destroy = function () {
|
|
52
|
-
throw new Error('Method not implemented.');
|
|
53
|
-
};
|
|
54
|
-
TestTerminal.prototype.kill = function (signal) {
|
|
55
|
-
throw new Error('Method not implemented.');
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(TestTerminal.prototype, "process", {
|
|
58
|
-
get: function () {
|
|
59
|
-
throw new Error('Method not implemented.');
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(TestTerminal.prototype, "master", {
|
|
65
|
-
get: function () {
|
|
66
|
-
throw new Error('Method not implemented.');
|
|
67
|
-
},
|
|
68
|
-
enumerable: false,
|
|
69
|
-
configurable: true
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(TestTerminal.prototype, "slave", {
|
|
72
|
-
get: function () {
|
|
73
|
-
throw new Error('Method not implemented.');
|
|
74
|
-
},
|
|
75
|
-
enumerable: false,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
return TestTerminal;
|
|
79
|
-
}(terminal_1.Terminal));
|
|
80
|
-
describe('Terminal', function () {
|
|
81
|
-
describe('constructor', function () {
|
|
82
|
-
it('should do basic type checks', function () {
|
|
83
|
-
assert.throws(function () { return new terminalCtor('a', 'b', { 'name': {} }); }, 'name must be a string (not a object)');
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
describe('checkType', function () {
|
|
87
|
-
it('should throw for the wrong type', function () {
|
|
88
|
-
var t = new TestTerminal();
|
|
89
|
-
assert.doesNotThrow(function () { return t.checkType('foo', 'test', 'string'); });
|
|
90
|
-
assert.doesNotThrow(function () { return t.checkType('foo', 1, 'number'); });
|
|
91
|
-
assert.doesNotThrow(function () { return t.checkType('foo', {}, 'object'); });
|
|
92
|
-
assert.throws(function () { return t.checkType('foo', 'test', 'number'); });
|
|
93
|
-
assert.throws(function () { return t.checkType('foo', 1, 'object'); });
|
|
94
|
-
assert.throws(function () { return t.checkType('foo', {}, 'string'); });
|
|
95
|
-
});
|
|
96
|
-
it('should throw for wrong types within arrays', function () {
|
|
97
|
-
var t = new TestTerminal();
|
|
98
|
-
assert.doesNotThrow(function () { return t.checkType('foo', ['test'], 'string', true); });
|
|
99
|
-
assert.doesNotThrow(function () { return t.checkType('foo', [1], 'number', true); });
|
|
100
|
-
assert.doesNotThrow(function () { return t.checkType('foo', [{}], 'object', true); });
|
|
101
|
-
assert.throws(function () { return t.checkType('foo', ['test'], 'number', true); });
|
|
102
|
-
assert.throws(function () { return t.checkType('foo', [1], 'object', true); });
|
|
103
|
-
assert.throws(function () { return t.checkType('foo', [{}], 'string', true); });
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
describe('automatic flow control', function () {
|
|
107
|
-
it('should respect ctor flow control options', function () {
|
|
108
|
-
var pty = new terminalConstructor(SHELL, [], { handleFlowControl: true, flowControlPause: 'abc', flowControlResume: '123' });
|
|
109
|
-
assert.equal(pty.handleFlowControl, true);
|
|
110
|
-
assert.equal(pty._flowControlPause, 'abc');
|
|
111
|
-
assert.equal(pty._flowControlResume, '123');
|
|
112
|
-
});
|
|
113
|
-
// TODO: I don't think this test ever worked due to pollUntil being used incorrectly
|
|
114
|
-
// it('should do flow control automatically', async function(): Promise<void> {
|
|
115
|
-
// // Flow control doesn't work on Windows
|
|
116
|
-
// if (process.platform === 'win32') {
|
|
117
|
-
// return;
|
|
118
|
-
// }
|
|
119
|
-
// this.timeout(10000);
|
|
120
|
-
// const pty = new terminalConstructor(SHELL, [], {handleFlowControl: true, flowControlPause: 'PAUSE', flowControlResume: 'RESUME'});
|
|
121
|
-
// let read: string = '';
|
|
122
|
-
// pty.on('data', data => read += data);
|
|
123
|
-
// pty.on('pause', () => read += 'paused');
|
|
124
|
-
// pty.on('resume', () => read += 'resumed');
|
|
125
|
-
// pty.write('1');
|
|
126
|
-
// pty.write('PAUSE');
|
|
127
|
-
// pty.write('2');
|
|
128
|
-
// pty.write('RESUME');
|
|
129
|
-
// pty.write('3');
|
|
130
|
-
// await pollUntil(() => {
|
|
131
|
-
// return stripEscapeSequences(read).endsWith('1pausedresumed23');
|
|
132
|
-
// }, 100, 10);
|
|
133
|
-
// });
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
function stripEscapeSequences(data) {
|
|
137
|
-
return data.replace(/\u001b\[0K/, '');
|
|
138
|
-
}
|
|
139
|
-
//# sourceMappingURL=terminal.test.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2019, Microsoft Corporation (MIT License).
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.pollUntil = void 0;
|
|
7
|
-
function pollUntil(cb, timeout, interval) {
|
|
8
|
-
return new Promise(function (resolve, reject) {
|
|
9
|
-
var intervalId = setInterval(function () {
|
|
10
|
-
if (cb()) {
|
|
11
|
-
clearInterval(intervalId);
|
|
12
|
-
clearTimeout(timeoutId);
|
|
13
|
-
resolve();
|
|
14
|
-
}
|
|
15
|
-
}, interval);
|
|
16
|
-
var timeoutId = setTimeout(function () {
|
|
17
|
-
clearInterval(intervalId);
|
|
18
|
-
if (cb()) {
|
|
19
|
-
resolve();
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
reject();
|
|
23
|
-
}
|
|
24
|
-
}, timeout);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
exports.pollUntil = pollUntil;
|
|
28
|
-
//# sourceMappingURL=testUtils.test.js.map
|