@nsshunt/stsfhirpg 1.0.3 → 1.0.4
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/stsfhirpg.mjs +78 -206
- package/dist/stsfhirpg.mjs.map +1 -1
- package/dist/stsfhirpg.umd.js +71 -199
- package/dist/stsfhirpg.umd.js.map +1 -1
- package/package.json +10 -10
- package/types/fhir-database/dbsearchindexquantity.d.ts.map +1 -1
- package/types/fhir-database/dbsearchindextoken.d.ts.map +1 -1
package/dist/stsfhirpg.mjs
CHANGED
|
@@ -4,15 +4,15 @@ import { isAbsoluteUrl } from "@nsshunt/stsfhirclient";
|
|
|
4
4
|
import { goptions } from "@nsshunt/stsconfig";
|
|
5
5
|
import cluster from "cluster";
|
|
6
6
|
import require$$0$1 from "crypto";
|
|
7
|
-
import require$$0$
|
|
7
|
+
import require$$0$4 from "events";
|
|
8
8
|
import require$$1 from "util";
|
|
9
|
-
import require$$0$
|
|
10
|
-
import require$$
|
|
11
|
-
import require$$0$
|
|
12
|
-
import require$$1$
|
|
13
|
-
import require$$0$
|
|
14
|
-
import require$$0$
|
|
15
|
-
import require$$0$
|
|
9
|
+
import require$$0$3 from "dns";
|
|
10
|
+
import require$$0$2 from "fs";
|
|
11
|
+
import require$$0$5 from "net";
|
|
12
|
+
import require$$1$1 from "tls";
|
|
13
|
+
import require$$0$8 from "path";
|
|
14
|
+
import require$$0$7 from "stream";
|
|
15
|
+
import require$$0$6 from "buffer";
|
|
16
16
|
class LuxonError extends Error {
|
|
17
17
|
}
|
|
18
18
|
class InvalidDateTimeError extends LuxonError {
|
|
@@ -8196,16 +8196,16 @@ function requireAnsiStyles() {
|
|
|
8196
8196
|
})(ansiStyles);
|
|
8197
8197
|
return ansiStyles.exports;
|
|
8198
8198
|
}
|
|
8199
|
-
var browser
|
|
8200
|
-
var hasRequiredBrowser
|
|
8201
|
-
function requireBrowser
|
|
8202
|
-
if (hasRequiredBrowser
|
|
8203
|
-
hasRequiredBrowser
|
|
8204
|
-
browser
|
|
8199
|
+
var browser;
|
|
8200
|
+
var hasRequiredBrowser;
|
|
8201
|
+
function requireBrowser() {
|
|
8202
|
+
if (hasRequiredBrowser) return browser;
|
|
8203
|
+
hasRequiredBrowser = 1;
|
|
8204
|
+
browser = {
|
|
8205
8205
|
stdout: false,
|
|
8206
8206
|
stderr: false
|
|
8207
8207
|
};
|
|
8208
|
-
return browser
|
|
8208
|
+
return browser;
|
|
8209
8209
|
}
|
|
8210
8210
|
var util;
|
|
8211
8211
|
var hasRequiredUtil;
|
|
@@ -8366,7 +8366,7 @@ function requireSource() {
|
|
|
8366
8366
|
if (hasRequiredSource) return source;
|
|
8367
8367
|
hasRequiredSource = 1;
|
|
8368
8368
|
const ansiStyles2 = requireAnsiStyles();
|
|
8369
|
-
const { stdout: stdoutColor, stderr: stderrColor } = requireBrowser
|
|
8369
|
+
const { stdout: stdoutColor, stderr: stderrColor } = requireBrowser();
|
|
8370
8370
|
const {
|
|
8371
8371
|
stringReplaceAll,
|
|
8372
8372
|
stringEncaseCRLFWithFirstIndex
|
|
@@ -13122,175 +13122,11 @@ function requireTypeOverrides() {
|
|
|
13122
13122
|
typeOverrides = TypeOverrides;
|
|
13123
13123
|
return typeOverrides;
|
|
13124
13124
|
}
|
|
13125
|
-
var browser = { exports: {} };
|
|
13126
|
-
var hasRequiredBrowser;
|
|
13127
|
-
function requireBrowser() {
|
|
13128
|
-
if (hasRequiredBrowser) return browser.exports;
|
|
13129
|
-
hasRequiredBrowser = 1;
|
|
13130
|
-
var process2 = browser.exports = {};
|
|
13131
|
-
var cachedSetTimeout;
|
|
13132
|
-
var cachedClearTimeout;
|
|
13133
|
-
function defaultSetTimout() {
|
|
13134
|
-
throw new Error("setTimeout has not been defined");
|
|
13135
|
-
}
|
|
13136
|
-
function defaultClearTimeout() {
|
|
13137
|
-
throw new Error("clearTimeout has not been defined");
|
|
13138
|
-
}
|
|
13139
|
-
(function() {
|
|
13140
|
-
try {
|
|
13141
|
-
if (typeof setTimeout === "function") {
|
|
13142
|
-
cachedSetTimeout = setTimeout;
|
|
13143
|
-
} else {
|
|
13144
|
-
cachedSetTimeout = defaultSetTimout;
|
|
13145
|
-
}
|
|
13146
|
-
} catch (e) {
|
|
13147
|
-
cachedSetTimeout = defaultSetTimout;
|
|
13148
|
-
}
|
|
13149
|
-
try {
|
|
13150
|
-
if (typeof clearTimeout === "function") {
|
|
13151
|
-
cachedClearTimeout = clearTimeout;
|
|
13152
|
-
} else {
|
|
13153
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
13154
|
-
}
|
|
13155
|
-
} catch (e) {
|
|
13156
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
13157
|
-
}
|
|
13158
|
-
})();
|
|
13159
|
-
function runTimeout(fun) {
|
|
13160
|
-
if (cachedSetTimeout === setTimeout) {
|
|
13161
|
-
return setTimeout(fun, 0);
|
|
13162
|
-
}
|
|
13163
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
13164
|
-
cachedSetTimeout = setTimeout;
|
|
13165
|
-
return setTimeout(fun, 0);
|
|
13166
|
-
}
|
|
13167
|
-
try {
|
|
13168
|
-
return cachedSetTimeout(fun, 0);
|
|
13169
|
-
} catch (e) {
|
|
13170
|
-
try {
|
|
13171
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
13172
|
-
} catch (e2) {
|
|
13173
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
13174
|
-
}
|
|
13175
|
-
}
|
|
13176
|
-
}
|
|
13177
|
-
function runClearTimeout(marker) {
|
|
13178
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
13179
|
-
return clearTimeout(marker);
|
|
13180
|
-
}
|
|
13181
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
13182
|
-
cachedClearTimeout = clearTimeout;
|
|
13183
|
-
return clearTimeout(marker);
|
|
13184
|
-
}
|
|
13185
|
-
try {
|
|
13186
|
-
return cachedClearTimeout(marker);
|
|
13187
|
-
} catch (e) {
|
|
13188
|
-
try {
|
|
13189
|
-
return cachedClearTimeout.call(null, marker);
|
|
13190
|
-
} catch (e2) {
|
|
13191
|
-
return cachedClearTimeout.call(this, marker);
|
|
13192
|
-
}
|
|
13193
|
-
}
|
|
13194
|
-
}
|
|
13195
|
-
var queue = [];
|
|
13196
|
-
var draining = false;
|
|
13197
|
-
var currentQueue;
|
|
13198
|
-
var queueIndex = -1;
|
|
13199
|
-
function cleanUpNextTick() {
|
|
13200
|
-
if (!draining || !currentQueue) {
|
|
13201
|
-
return;
|
|
13202
|
-
}
|
|
13203
|
-
draining = false;
|
|
13204
|
-
if (currentQueue.length) {
|
|
13205
|
-
queue = currentQueue.concat(queue);
|
|
13206
|
-
} else {
|
|
13207
|
-
queueIndex = -1;
|
|
13208
|
-
}
|
|
13209
|
-
if (queue.length) {
|
|
13210
|
-
drainQueue();
|
|
13211
|
-
}
|
|
13212
|
-
}
|
|
13213
|
-
function drainQueue() {
|
|
13214
|
-
if (draining) {
|
|
13215
|
-
return;
|
|
13216
|
-
}
|
|
13217
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
13218
|
-
draining = true;
|
|
13219
|
-
var len = queue.length;
|
|
13220
|
-
while (len) {
|
|
13221
|
-
currentQueue = queue;
|
|
13222
|
-
queue = [];
|
|
13223
|
-
while (++queueIndex < len) {
|
|
13224
|
-
if (currentQueue) {
|
|
13225
|
-
currentQueue[queueIndex].run();
|
|
13226
|
-
}
|
|
13227
|
-
}
|
|
13228
|
-
queueIndex = -1;
|
|
13229
|
-
len = queue.length;
|
|
13230
|
-
}
|
|
13231
|
-
currentQueue = null;
|
|
13232
|
-
draining = false;
|
|
13233
|
-
runClearTimeout(timeout);
|
|
13234
|
-
}
|
|
13235
|
-
process2.nextTick = function(fun) {
|
|
13236
|
-
var args = new Array(arguments.length - 1);
|
|
13237
|
-
if (arguments.length > 1) {
|
|
13238
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
13239
|
-
args[i - 1] = arguments[i];
|
|
13240
|
-
}
|
|
13241
|
-
}
|
|
13242
|
-
queue.push(new Item(fun, args));
|
|
13243
|
-
if (queue.length === 1 && !draining) {
|
|
13244
|
-
runTimeout(drainQueue);
|
|
13245
|
-
}
|
|
13246
|
-
};
|
|
13247
|
-
function Item(fun, array) {
|
|
13248
|
-
this.fun = fun;
|
|
13249
|
-
this.array = array;
|
|
13250
|
-
}
|
|
13251
|
-
Item.prototype.run = function() {
|
|
13252
|
-
this.fun.apply(null, this.array);
|
|
13253
|
-
};
|
|
13254
|
-
process2.title = "browser";
|
|
13255
|
-
process2.browser = true;
|
|
13256
|
-
process2.env = {};
|
|
13257
|
-
process2.argv = [];
|
|
13258
|
-
process2.version = "";
|
|
13259
|
-
process2.versions = {};
|
|
13260
|
-
function noop() {
|
|
13261
|
-
}
|
|
13262
|
-
process2.on = noop;
|
|
13263
|
-
process2.addListener = noop;
|
|
13264
|
-
process2.once = noop;
|
|
13265
|
-
process2.off = noop;
|
|
13266
|
-
process2.removeListener = noop;
|
|
13267
|
-
process2.removeAllListeners = noop;
|
|
13268
|
-
process2.emit = noop;
|
|
13269
|
-
process2.prependListener = noop;
|
|
13270
|
-
process2.prependOnceListener = noop;
|
|
13271
|
-
process2.listeners = function(name) {
|
|
13272
|
-
return [];
|
|
13273
|
-
};
|
|
13274
|
-
process2.binding = function(name) {
|
|
13275
|
-
throw new Error("process.binding is not supported");
|
|
13276
|
-
};
|
|
13277
|
-
process2.cwd = function() {
|
|
13278
|
-
return "/";
|
|
13279
|
-
};
|
|
13280
|
-
process2.chdir = function(dir) {
|
|
13281
|
-
throw new Error("process.chdir is not supported");
|
|
13282
|
-
};
|
|
13283
|
-
process2.umask = function() {
|
|
13284
|
-
return 0;
|
|
13285
|
-
};
|
|
13286
|
-
return browser.exports;
|
|
13287
|
-
}
|
|
13288
13125
|
var pgConnectionString;
|
|
13289
13126
|
var hasRequiredPgConnectionString;
|
|
13290
13127
|
function requirePgConnectionString() {
|
|
13291
13128
|
if (hasRequiredPgConnectionString) return pgConnectionString;
|
|
13292
13129
|
hasRequiredPgConnectionString = 1;
|
|
13293
|
-
const { emitWarning } = requireBrowser();
|
|
13294
13130
|
function parse2(str, options = {}) {
|
|
13295
13131
|
if (str.charAt(0) === "/") {
|
|
13296
13132
|
const config2 = str.split(" ");
|
|
@@ -13344,7 +13180,7 @@ function requirePgConnectionString() {
|
|
|
13344
13180
|
if (config.sslcert || config.sslkey || config.sslrootcert || config.sslmode) {
|
|
13345
13181
|
config.ssl = {};
|
|
13346
13182
|
}
|
|
13347
|
-
const fs2 = config.sslcert || config.sslkey || config.sslrootcert ? require$$
|
|
13183
|
+
const fs2 = config.sslcert || config.sslkey || config.sslrootcert ? require$$0$2 : null;
|
|
13348
13184
|
if (config.sslcert) {
|
|
13349
13185
|
config.ssl.cert = fs2.readFileSync(config.sslcert).toString();
|
|
13350
13186
|
}
|
|
@@ -13450,9 +13286,9 @@ function requirePgConnectionString() {
|
|
|
13450
13286
|
return toClientConfig(parse2(str));
|
|
13451
13287
|
}
|
|
13452
13288
|
function deprecatedSslModeWarning(sslmode) {
|
|
13453
|
-
if (!deprecatedSslModeWarning.warned) {
|
|
13289
|
+
if (!deprecatedSslModeWarning.warned && typeof process !== "undefined" && process.emitWarning) {
|
|
13454
13290
|
deprecatedSslModeWarning.warned = true;
|
|
13455
|
-
emitWarning(`SECURITY WARNING: The SSL modes 'prefer', 'require', and 'verify-ca' are treated as aliases for 'verify-full'.
|
|
13291
|
+
process.emitWarning(`SECURITY WARNING: The SSL modes 'prefer', 'require', and 'verify-ca' are treated as aliases for 'verify-full'.
|
|
13456
13292
|
In the next major version (pg-connection-string v3.0.0 and pg v9.0.0), these modes will adopt standard libpq semantics, which have weaker security guarantees.
|
|
13457
13293
|
|
|
13458
13294
|
To prepare for this change:
|
|
@@ -13473,7 +13309,7 @@ var hasRequiredConnectionParameters;
|
|
|
13473
13309
|
function requireConnectionParameters() {
|
|
13474
13310
|
if (hasRequiredConnectionParameters) return connectionParameters;
|
|
13475
13311
|
hasRequiredConnectionParameters = 1;
|
|
13476
|
-
const dns = require$$0$
|
|
13312
|
+
const dns = require$$0$3;
|
|
13477
13313
|
const defaults2 = requireDefaults();
|
|
13478
13314
|
const parse2 = requirePgConnectionString().parse;
|
|
13479
13315
|
const val = function(key, config, envVar) {
|
|
@@ -13705,7 +13541,7 @@ var hasRequiredQuery$1;
|
|
|
13705
13541
|
function requireQuery$1() {
|
|
13706
13542
|
if (hasRequiredQuery$1) return query$1;
|
|
13707
13543
|
hasRequiredQuery$1 = 1;
|
|
13708
|
-
const { EventEmitter } = require$$0$
|
|
13544
|
+
const { EventEmitter } = require$$0$4;
|
|
13709
13545
|
const Result = requireResult();
|
|
13710
13546
|
const utils2 = requireUtils$1();
|
|
13711
13547
|
class Query extends EventEmitter {
|
|
@@ -14783,11 +14619,11 @@ function requireStream() {
|
|
|
14783
14619
|
};
|
|
14784
14620
|
function getNodejsStreamFuncs() {
|
|
14785
14621
|
function getStream2(ssl) {
|
|
14786
|
-
const net = require$$0$
|
|
14622
|
+
const net = require$$0$5;
|
|
14787
14623
|
return new net.Socket();
|
|
14788
14624
|
}
|
|
14789
14625
|
function getSecureStream2(options) {
|
|
14790
|
-
const tls = require$$1$
|
|
14626
|
+
const tls = require$$1$1;
|
|
14791
14627
|
return tls.connect(options);
|
|
14792
14628
|
}
|
|
14793
14629
|
return {
|
|
@@ -14834,7 +14670,7 @@ var hasRequiredConnection;
|
|
|
14834
14670
|
function requireConnection() {
|
|
14835
14671
|
if (hasRequiredConnection) return connection;
|
|
14836
14672
|
hasRequiredConnection = 1;
|
|
14837
|
-
const EventEmitter = require$$0$
|
|
14673
|
+
const EventEmitter = require$$0$4.EventEmitter;
|
|
14838
14674
|
const { parse: parse2, serialize } = requireDist();
|
|
14839
14675
|
const { getStream, getSecureStream } = requireStream();
|
|
14840
14676
|
const flushBuffer = serialize.flush();
|
|
@@ -14906,7 +14742,7 @@ function requireConnection() {
|
|
|
14906
14742
|
options.key = self2.ssl.key;
|
|
14907
14743
|
}
|
|
14908
14744
|
}
|
|
14909
|
-
const net = require$$0$
|
|
14745
|
+
const net = require$$0$5;
|
|
14910
14746
|
if (net.isIP && net.isIP(host) === 0) {
|
|
14911
14747
|
options.servername = host;
|
|
14912
14748
|
}
|
|
@@ -15021,7 +14857,7 @@ function requireSafeBuffer() {
|
|
|
15021
14857
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
15022
14858
|
hasRequiredSafeBuffer = 1;
|
|
15023
14859
|
(function(module, exports$1) {
|
|
15024
|
-
var buffer = require$$0$
|
|
14860
|
+
var buffer = require$$0$6;
|
|
15025
14861
|
var Buffer2 = buffer.Buffer;
|
|
15026
14862
|
function copyProps(src, dst) {
|
|
15027
14863
|
for (var key in src) {
|
|
@@ -15318,7 +15154,7 @@ var hasRequiredSplit2;
|
|
|
15318
15154
|
function requireSplit2() {
|
|
15319
15155
|
if (hasRequiredSplit2) return split2;
|
|
15320
15156
|
hasRequiredSplit2 = 1;
|
|
15321
|
-
const { Transform } = require$$0$
|
|
15157
|
+
const { Transform } = require$$0$7;
|
|
15322
15158
|
const { StringDecoder } = requireString_decoder();
|
|
15323
15159
|
const kLast = /* @__PURE__ */ Symbol("last");
|
|
15324
15160
|
const kDecoder = /* @__PURE__ */ Symbol("decoder");
|
|
@@ -15419,7 +15255,7 @@ function requireHelper() {
|
|
|
15419
15255
|
if (hasRequiredHelper) return helper.exports;
|
|
15420
15256
|
hasRequiredHelper = 1;
|
|
15421
15257
|
(function(module) {
|
|
15422
|
-
var path = require$$0$
|
|
15258
|
+
var path = require$$0$8, Stream = require$$0$7.Stream, split = requireSplit2(), util2 = require$$1, defaultPort = 5432, isWin = process.platform === "win32", warnStream = process.stderr;
|
|
15423
15259
|
var S_IRWXG = 56, S_IRWXO = 7, S_IFMT = 61440, S_IFREG = 32768;
|
|
15424
15260
|
function isRegFile(mode) {
|
|
15425
15261
|
return (mode & S_IFMT) == S_IFREG;
|
|
@@ -15580,7 +15416,7 @@ var hasRequiredLib$1;
|
|
|
15580
15416
|
function requireLib$1() {
|
|
15581
15417
|
if (hasRequiredLib$1) return lib.exports;
|
|
15582
15418
|
hasRequiredLib$1 = 1;
|
|
15583
|
-
var fs2 = require$$
|
|
15419
|
+
var fs2 = require$$0$2, helper2 = requireHelper();
|
|
15584
15420
|
lib.exports = function(connInfo, cb) {
|
|
15585
15421
|
var file = helper2.getFileName();
|
|
15586
15422
|
fs2.stat(file, function(err, stat) {
|
|
@@ -15599,7 +15435,7 @@ var hasRequiredClient$1;
|
|
|
15599
15435
|
function requireClient$1() {
|
|
15600
15436
|
if (hasRequiredClient$1) return client$1;
|
|
15601
15437
|
hasRequiredClient$1 = 1;
|
|
15602
|
-
const EventEmitter = require$$0$
|
|
15438
|
+
const EventEmitter = require$$0$4.EventEmitter;
|
|
15603
15439
|
const utils2 = requireUtils$1();
|
|
15604
15440
|
const nodeUtils = require$$1;
|
|
15605
15441
|
const sasl2 = requireSasl();
|
|
@@ -15770,7 +15606,7 @@ function requireClient$1() {
|
|
|
15770
15606
|
if (error) {
|
|
15771
15607
|
reject(error);
|
|
15772
15608
|
} else {
|
|
15773
|
-
resolve();
|
|
15609
|
+
resolve(this);
|
|
15774
15610
|
}
|
|
15775
15611
|
});
|
|
15776
15612
|
});
|
|
@@ -15937,16 +15773,40 @@ function requireClient$1() {
|
|
|
15937
15773
|
activeQuery.handleError(msg, this.connection);
|
|
15938
15774
|
}
|
|
15939
15775
|
_handleRowDescription(msg) {
|
|
15940
|
-
this._getActiveQuery()
|
|
15776
|
+
const activeQuery = this._getActiveQuery();
|
|
15777
|
+
if (activeQuery == null) {
|
|
15778
|
+
const error = new Error("Received unexpected rowDescription message from backend.");
|
|
15779
|
+
this._handleErrorEvent(error);
|
|
15780
|
+
return;
|
|
15781
|
+
}
|
|
15782
|
+
activeQuery.handleRowDescription(msg);
|
|
15941
15783
|
}
|
|
15942
15784
|
_handleDataRow(msg) {
|
|
15943
|
-
this._getActiveQuery()
|
|
15785
|
+
const activeQuery = this._getActiveQuery();
|
|
15786
|
+
if (activeQuery == null) {
|
|
15787
|
+
const error = new Error("Received unexpected dataRow message from backend.");
|
|
15788
|
+
this._handleErrorEvent(error);
|
|
15789
|
+
return;
|
|
15790
|
+
}
|
|
15791
|
+
activeQuery.handleDataRow(msg);
|
|
15944
15792
|
}
|
|
15945
15793
|
_handlePortalSuspended(msg) {
|
|
15946
|
-
this._getActiveQuery()
|
|
15794
|
+
const activeQuery = this._getActiveQuery();
|
|
15795
|
+
if (activeQuery == null) {
|
|
15796
|
+
const error = new Error("Received unexpected portalSuspended message from backend.");
|
|
15797
|
+
this._handleErrorEvent(error);
|
|
15798
|
+
return;
|
|
15799
|
+
}
|
|
15800
|
+
activeQuery.handlePortalSuspended(this.connection);
|
|
15947
15801
|
}
|
|
15948
15802
|
_handleEmptyQuery(msg) {
|
|
15949
|
-
this._getActiveQuery()
|
|
15803
|
+
const activeQuery = this._getActiveQuery();
|
|
15804
|
+
if (activeQuery == null) {
|
|
15805
|
+
const error = new Error("Received unexpected emptyQuery message from backend.");
|
|
15806
|
+
this._handleErrorEvent(error);
|
|
15807
|
+
return;
|
|
15808
|
+
}
|
|
15809
|
+
activeQuery.handleEmptyQuery(this.connection);
|
|
15950
15810
|
}
|
|
15951
15811
|
_handleCommandComplete(msg) {
|
|
15952
15812
|
const activeQuery = this._getActiveQuery();
|
|
@@ -15969,10 +15829,22 @@ function requireClient$1() {
|
|
|
15969
15829
|
}
|
|
15970
15830
|
}
|
|
15971
15831
|
_handleCopyInResponse(msg) {
|
|
15972
|
-
this._getActiveQuery()
|
|
15832
|
+
const activeQuery = this._getActiveQuery();
|
|
15833
|
+
if (activeQuery == null) {
|
|
15834
|
+
const error = new Error("Received unexpected copyInResponse message from backend.");
|
|
15835
|
+
this._handleErrorEvent(error);
|
|
15836
|
+
return;
|
|
15837
|
+
}
|
|
15838
|
+
activeQuery.handleCopyInResponse(this.connection);
|
|
15973
15839
|
}
|
|
15974
15840
|
_handleCopyData(msg) {
|
|
15975
|
-
this._getActiveQuery()
|
|
15841
|
+
const activeQuery = this._getActiveQuery();
|
|
15842
|
+
if (activeQuery == null) {
|
|
15843
|
+
const error = new Error("Received unexpected copyData message from backend.");
|
|
15844
|
+
this._handleErrorEvent(error);
|
|
15845
|
+
return;
|
|
15846
|
+
}
|
|
15847
|
+
activeQuery.handleCopyData(msg, this.connection);
|
|
15976
15848
|
}
|
|
15977
15849
|
_handleNotification(msg) {
|
|
15978
15850
|
this.emit("notification", msg);
|
|
@@ -16169,7 +16041,7 @@ var hasRequiredPgPool;
|
|
|
16169
16041
|
function requirePgPool() {
|
|
16170
16042
|
if (hasRequiredPgPool) return pgPool;
|
|
16171
16043
|
hasRequiredPgPool = 1;
|
|
16172
|
-
const EventEmitter = require$$0$
|
|
16044
|
+
const EventEmitter = require$$0$4.EventEmitter;
|
|
16173
16045
|
const NOOP = function() {
|
|
16174
16046
|
};
|
|
16175
16047
|
const removeWhere = (list, predicate) => {
|
|
@@ -16569,7 +16441,7 @@ var hasRequiredQuery;
|
|
|
16569
16441
|
function requireQuery() {
|
|
16570
16442
|
if (hasRequiredQuery) return query.exports;
|
|
16571
16443
|
hasRequiredQuery = 1;
|
|
16572
|
-
const EventEmitter = require$$0$
|
|
16444
|
+
const EventEmitter = require$$0$4.EventEmitter;
|
|
16573
16445
|
const util2 = require$$1;
|
|
16574
16446
|
const utils2 = requireUtils$1();
|
|
16575
16447
|
const NativeQuery = query.exports = function(config, values, callback) {
|
|
@@ -16716,7 +16588,7 @@ function requireClient() {
|
|
|
16716
16588
|
throw e;
|
|
16717
16589
|
}
|
|
16718
16590
|
const TypeOverrides = requireTypeOverrides();
|
|
16719
|
-
const EventEmitter = require$$0$
|
|
16591
|
+
const EventEmitter = require$$0$4.EventEmitter;
|
|
16720
16592
|
const util2 = require$$1;
|
|
16721
16593
|
const ConnectionParameters = requireConnectionParameters();
|
|
16722
16594
|
const NativeQuery = requireQuery();
|
|
@@ -16792,7 +16664,7 @@ function requireClient() {
|
|
|
16792
16664
|
});
|
|
16793
16665
|
self2.emit("connect");
|
|
16794
16666
|
self2._pulseQueryQueue(true);
|
|
16795
|
-
cb();
|
|
16667
|
+
cb(null, this);
|
|
16796
16668
|
});
|
|
16797
16669
|
});
|
|
16798
16670
|
};
|
|
@@ -16806,7 +16678,7 @@ function requireClient() {
|
|
|
16806
16678
|
if (error) {
|
|
16807
16679
|
reject(error);
|
|
16808
16680
|
} else {
|
|
16809
|
-
resolve();
|
|
16681
|
+
resolve(this);
|
|
16810
16682
|
}
|
|
16811
16683
|
});
|
|
16812
16684
|
});
|