couchbase 4.7.1 → 4.7.2
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/CMakeLists.txt +3 -0
- package/deps/couchbase-cxx-cache/mozilla-ca-bundle.crt +96 -155
- package/deps/couchbase-cxx-cache/mozilla-ca-bundle.sha256 +1 -1
- package/dist/analyticsexecutor.d.ts +4 -0
- package/dist/analyticsexecutor.js +26 -11
- package/dist/analyticsindexmanager.js +2 -2
- package/dist/binding.d.ts +11 -2
- package/dist/bindingutilities.js +8 -5
- package/dist/cluster.js +3 -3
- package/dist/collection.js +32 -24
- package/dist/mutationstate.js +1 -1
- package/dist/observabilityhandler.d.ts +13 -0
- package/dist/observabilityhandler.js +30 -0
- package/dist/queryexecutor.d.ts +9 -0
- package/dist/queryexecutor.js +18 -0
- package/dist/searchexecutor.d.ts +4 -0
- package/dist/searchexecutor.js +30 -15
- package/dist/transactions.js +29 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/viewexecutor.d.ts +4 -0
- package/dist/viewexecutor.js +30 -15
- package/package.json +8 -8
- package/src/connection.hpp +24 -3
- package/src/jstocbpp_errors.hpp +6 -0
package/CMakeLists.txt
CHANGED
|
@@ -203,6 +203,9 @@ file(GLOB SOURCE_FILES "src/*.cpp")
|
|
|
203
203
|
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC})
|
|
204
204
|
target_compile_definitions(${PROJECT_NAME} PRIVATE COUCHBASE_CXX_CLIENT_IGNORE_CORE_DEPRECATIONS)
|
|
205
205
|
add_definitions(-DNAPI_VERSION=6)
|
|
206
|
+
# A callback that reaches JS while a worker is terminating cannot throw. Without
|
|
207
|
+
# this, node-addon-api aborts the process building the error instead.
|
|
208
|
+
add_definitions(-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS)
|
|
206
209
|
set(COUCHBASE_CXX_SOURCE_DIR "${PROJECT_SOURCE_DIR}/deps/couchbase-cxx-client")
|
|
207
210
|
if(CMAKE_JS_VERSION VERSION_GREATER_EQUAL "7.0.0")
|
|
208
211
|
target_include_directories(${PROJECT_NAME}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
##
|
|
2
2
|
## Bundle of CA Root Certificates
|
|
3
3
|
##
|
|
4
|
-
## Certificate data from Mozilla as of:
|
|
4
|
+
## Certificate data from Mozilla as of: Tue Oct 20 13:32:40 2026 GMT
|
|
5
5
|
##
|
|
6
6
|
## Find updated versions here: https://curl.se/docs/caextract.html
|
|
7
7
|
##
|
|
@@ -13,39 +13,13 @@
|
|
|
13
13
|
## It contains the certificates in PEM format and therefore
|
|
14
14
|
## can be directly used with curl / libcurl / php_curl, or with
|
|
15
15
|
## an Apache+mod_ssl webserver for SSL client authentication.
|
|
16
|
-
##
|
|
16
|
+
## Configure this file as the SSLCACertificateFile.
|
|
17
17
|
##
|
|
18
|
-
## Conversion done with mk-ca-bundle.pl version 1.
|
|
19
|
-
## SHA256:
|
|
18
|
+
## Conversion done with mk-ca-bundle.pl version 1.35.
|
|
19
|
+
## SHA256: beb7e6dfe6499926e52c075c27bcfbe4c957f8609c575b3860273ae2806f63eb
|
|
20
20
|
##
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
Entrust Root Certification Authority
|
|
24
|
-
====================================
|
|
25
|
-
-----BEGIN CERTIFICATE-----
|
|
26
|
-
MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
|
|
27
|
-
BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
|
|
28
|
-
b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG
|
|
29
|
-
A1UEAxMkRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB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b3DQEBBQUA
|
|
42
|
-
A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9tO1KzKtvn1ISM
|
|
43
|
-
Y/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6ZuaAGAT/3B+XxFNSRuzFVJ7yVTa
|
|
44
|
-
v52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTS
|
|
45
|
-
W3iDVuycNsMm4hH2Z0kdkquM++v/eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0
|
|
46
|
-
tHuu2guQOHXvgR1m0vdXcDazv/wor3ElhVsT/h5/WrQ8
|
|
47
|
-
-----END CERTIFICATE-----
|
|
48
|
-
|
|
49
23
|
COMODO ECC Certification Authority
|
|
50
24
|
==================================
|
|
51
25
|
-----BEGIN CERTIFICATE-----
|
|
@@ -63,37 +37,6 @@ FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA
|
|
|
63
37
|
U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY=
|
|
64
38
|
-----END CERTIFICATE-----
|
|
65
39
|
|
|
66
|
-
ePKI Root Certification Authority
|
|
67
|
-
=================================
|
|
68
|
-
-----BEGIN CERTIFICATE-----
|
|
69
|
-
MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG
|
|
70
|
-
EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg
|
|
71
|
-
Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx
|
|
72
|
-
MjdaMF4xCzAJ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AAQxMC8wLQIBADAJBgUrDgMCGgUAMAcGBWcqAwAABBRFsMLH
|
|
85
|
-
ClZ87lt4DJX5GFPBphzYEDANBgkqhkiG9w0BAQUFAAOCAgEACbODU1kBPpVJufGBuvl2ICO1J2B0
|
|
86
|
-
1GqZNF5sAFPZn/KmsSQHRGoqxqWOeBLoR9lYGxMqXnmbnwoqZ6YlPwZpVnPDimZI+ymBV3QGypzq
|
|
87
|
-
KOg4ZyYr8dW1P2WT+DZdjo2NQCCHGervJ8A9tDkPJXtoUHRVnAxZfVo9QZQlUgjgRywVMRnVvwdV
|
|
88
|
-
xrsStZf0X4OFunHB2WyBEXYKCrC/gpf36j36+uwtqSiUO1bd0lEursC9CBWMd1I0ltabrNMdjmEP
|
|
89
|
-
NXubrjlpC2JgQCA2j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+r
|
|
90
|
-
GNm65ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUBo2M3IUxE
|
|
91
|
-
xJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS/jQ6fbjpKdx2qcgw+BRx
|
|
92
|
-
gMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2zGp1iro2C6pSe3VkQw63d4k3jMdXH7Ojy
|
|
93
|
-
sP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTEW9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmOD
|
|
94
|
-
BCEIZ43ygknQW/2xzQ+DhNQ+IIX3Sj0rnP0qCglN6oH4EZw=
|
|
95
|
-
-----END CERTIFICATE-----
|
|
96
|
-
|
|
97
40
|
NetLock Arany (Class Gold) Főtanúsítvány
|
|
98
41
|
========================================
|
|
99
42
|
-----BEGIN CERTIFICATE-----
|
|
@@ -611,27 +554,6 @@ vNoBYimipidx5joifsFvHZVwIEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR
|
|
|
611
554
|
9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlPBSeOE6Fuwg==
|
|
612
555
|
-----END CERTIFICATE-----
|
|
613
556
|
|
|
614
|
-
Atos TrustedRoot 2011
|
|
615
|
-
=====================
|
|
616
|
-
-----BEGIN CERTIFICATE-----
|
|
617
|
-
MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UEAwwVQXRvcyBU
|
|
618
|
-
cnVzdGVkUm9vdCAyMDExMQ0wCwYDVQQKDARBdG9zMQswCQYDVQQGEwJERTAeFw0xMTA3MDcxNDU4
|
|
619
|
-
MzBaFw0zMDEyMzEyMzU5NTlaMDwxHjAcBgNVBAMMFUF0b3MgVHJ1c3RlZFJvb3QgMjAxMTENMAsG
|
|
620
|
-
A1UECgwEQXRvczELMAkGA1UEBhMCREUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCV
|
|
621
|
-
hTuXbyo7LjvPpvMpNb7PGKw+qtn4TaA+Gke5vJrf8v7MPkfoepbCJI419KkM/IL9bcFyYie96mvr
|
|
622
|
-
54rMVD6QUM+A1JX76LWC1BTFtqlVJVfbsVD2sGBkWXppzwO3bw2+yj5vdHLqqjAqc2K+SZFhyBH+
|
|
623
|
-
DgMq92og3AIVDV4VavzjgsG1xZ1kCWyjWZgHJ8cblithdHFsQ/H3NYkQ4J7sVaE3IqKHBAUsR320
|
|
624
|
-
HLliKWYoyrfhk/WklAOZuXCFteZI6o1Q/NnezG8HDt0Lcp2AMBYHlT8oDv3FdU9T1nSatCQujgKR
|
|
625
|
-
z3bFmx5VdJx4IbHwLfELn8LVlhgf8FQieowHAgMBAAGjfTB7MB0GA1UdDgQWBBSnpQaxLKYJYO7R
|
|
626
|
-
l+lwrrw7GWzbITAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKelBrEspglg7tGX6XCuvDsZ
|
|
627
|
-
bNshMBgGA1UdIAQRMA8wDQYLKwYBBAGwLQMEAQEwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB
|
|
628
|
-
CwUAA4IBAQAmdzTblEiGKkGdLD4GkGDEjKwLVLgfuXvTBznk+j57sj1O7Z8jvZfza1zv7v1Apt+h
|
|
629
|
-
k6EKhqzvINB5Ab149xnYJDE0BAGmuhWawyfc2E8PzBhj/5kPDpFrdRbhIfzYJsdHt6bPWHJxfrrh
|
|
630
|
-
TZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pcmaHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a9
|
|
631
|
-
61qn8FYiqTxlVMYVqL2Gns2Dlmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G
|
|
632
|
-
3mB/ufNPRJLvKrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed
|
|
633
|
-
-----END CERTIFICATE-----
|
|
634
|
-
|
|
635
557
|
QuoVadis Root CA 1 G3
|
|
636
558
|
=====================
|
|
637
559
|
-----BEGIN CERTIFICATE-----
|
|
@@ -1591,58 +1513,6 @@ U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx
|
|
|
1591
1513
|
iN66zB+Afko=
|
|
1592
1514
|
-----END CERTIFICATE-----
|
|
1593
1515
|
|
|
1594
|
-
emSign ECC Root CA - G3
|
|
1595
|
-
=======================
|
|
1596
|
-
-----BEGIN CERTIFICATE-----
|
|
1597
|
-
MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG
|
|
1598
|
-
A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg
|
|
1599
|
-
MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4
|
|
1600
|
-
MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11
|
|
1601
|
-
ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g
|
|
1602
|
-
RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc
|
|
1603
|
-
58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr
|
|
1604
|
-
MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC
|
|
1605
|
-
AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D
|
|
1606
|
-
CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7
|
|
1607
|
-
jHvrZQnD+JbNR6iC8hZVdyR+EhCVBCyj
|
|
1608
|
-
-----END CERTIFICATE-----
|
|
1609
|
-
|
|
1610
|
-
emSign Root CA - C1
|
|
1611
|
-
===================
|
|
1612
|
-
-----BEGIN CERTIFICATE-----
|
|
1613
|
-
MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCVVMx
|
|
1614
|
-
EzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNp
|
|
1615
|
-
Z24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAwMFoXD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oke3VIAb3ADMmpDqw8NQ
|
|
1628
|
-
BmIMMMAVSKeoWXzhriKi4gp6D/piq1JM4fHfyr6DDUI=
|
|
1629
|
-
-----END CERTIFICATE-----
|
|
1630
|
-
|
|
1631
|
-
emSign ECC Root CA - C3
|
|
1632
|
-
=======================
|
|
1633
|
-
-----BEGIN CERTIFICATE-----
|
|
1634
|
-
MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG
|
|
1635
|
-
A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF
|
|
1636
|
-
Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE
|
|
1637
|
-
BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD
|
|
1638
|
-
ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd
|
|
1639
|
-
6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9
|
|
1640
|
-
SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA
|
|
1641
|
-
B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA
|
|
1642
|
-
MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU
|
|
1643
|
-
ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ==
|
|
1644
|
-
-----END CERTIFICATE-----
|
|
1645
|
-
|
|
1646
1516
|
Hongkong Post Root CA 3
|
|
1647
1517
|
=======================
|
|
1648
1518
|
-----BEGIN CERTIFICATE-----
|
|
@@ -2689,27 +2559,6 @@ It6IKTtM1/r+t+FHvpw+PoP7UV31aPcuIYXcv/Fa4nzXxeSDwWrruoBa3lwtcHb4yOWHh8qgnaHl
|
|
|
2689
2559
|
IhInD0Q9HWzq1MKLL295q39QpsQZp6F6t5b5wR9iWqJDB0BeJsas7a5wFsWqynKKTbDPAYsDP27X
|
|
2690
2560
|
-----END CERTIFICATE-----
|
|
2691
2561
|
|
|
2692
|
-
SecureSign Root CA12
|
|
2693
|
-
====================
|
|
2694
|
-
-----BEGIN CERTIFICATE-----
|
|
2695
|
-
MIIDcjCCAlqgAwIBAgIUZvnHwa/swlG07VOX5uaCwysckBYwDQYJKoZIhvcNAQELBQAwUTELMAkG
|
|
2696
|
-
A1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRT
|
|
2697
|
-
ZWN1cmVTaWduIFJvb3QgQ0ExMjAeFw0yMDA0MDgwNTM2NDZaFw00MDA0MDgwNTM2NDZaMFExCzAJ
|
|
2698
|
-
BgNVBAYTAkpQMSMwIQYDVQQKExpDeWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMU
|
|
2699
|
-
U2VjdXJlU2lnbiBSb290IENBMTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6OcE3
|
|
2700
|
-
emhFKxS06+QT61d1I02PJC0W6K6OyX2kVzsqdiUzg2zqMoqUm048luT9Ub+ZyZN+v/mtp7JIKwcc
|
|
2701
|
-
J/VMvHASd6SFVLX9kHrko+RRWAPNEHl57muTH2SOa2SroxPjcf59q5zdJ1M3s6oYwlkm7Fsf0uZl
|
|
2702
|
-
fO+TvdhYXAvA42VvPMfKWeP+bl+sg779XSVOKik71gurFzJ4pOE+lEa+Ym6b3kaosRbnhW70CEBF
|
|
2703
|
-
EaCeVESE99g2zvVQR9wsMJvuwPWW0v4JhscGWa5Pro4RmHvzC1KqYiaqId+OJTN5lxZJjfU+1Uef
|
|
2704
|
-
NzFJM3IFTQy2VYzxV4+Kh9GtxRESOaCtAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P
|
|
2705
|
-
AQH/BAQDAgEGMB0GA1UdDgQWBBRXNPN0zwRL1SXm8UC2LEzZLemgrTANBgkqhkiG9w0BAQsFAAOC
|
|
2706
|
-
AQEAPrvbFxbS8hQBICw4g0utvsqFepq2m2um4fylOqyttCg6r9cBg0krY6LdmmQOmFxv3Y67ilQi
|
|
2707
|
-
LUoT865AQ9tPkbeGGuwAtEGBpE/6aouIs3YIcipJQMPTw4WJmBClnW8Zt7vPemVV2zfrPIpyMpce
|
|
2708
|
-
mik+rY3moxtt9XUa5rBouVui7mlHJzWhhpmA8zNL4WukJsPvdFlseqJkth5Ew1DgDzk9qTPxpfPS
|
|
2709
|
-
vWKErI4cqc1avTc7bgoitPQV55FYxTpE05Uo2cBl6XLK0A+9H7MV2anjpEcJnuDLN/v9vZfVvhga
|
|
2710
|
-
aaI5gdka9at/yOPiZwud9AzqVN/Ssq+xIvEg37xEHA==
|
|
2711
|
-
-----END CERTIFICATE-----
|
|
2712
|
-
|
|
2713
2562
|
SecureSign Root CA14
|
|
2714
2563
|
====================
|
|
2715
2564
|
-----BEGIN CERTIFICATE-----
|
|
@@ -2955,3 +2804,95 @@ CgYIKoZIzj0EAwQDgYsAMIGHAkIBLdqu9S54tma4n7Zwf2Z0z+yOfP7AAXmazlIC58PRDHpty7Ve
|
|
|
2955
2804
|
7hekm9sEdu4pKeiv+62sUvTXK9Z3hBC9xdIoaDQCQTV2WnXzkoYI9bIeCvZlC9p2x1L/Cx6AcCIw
|
|
2956
2805
|
wzPbGO2E14vs7dOoY4G1VnxHx1YwlGhza9IuqbnZLBwpvQy6uWWL
|
|
2957
2806
|
-----END CERTIFICATE-----
|
|
2807
|
+
|
|
2808
|
+
SECOM TLS RSA Root CA 2024
|
|
2809
|
+
==========================
|
|
2810
|
+
-----BEGIN CERTIFICATE-----
|
|
2811
|
+
MIIFmjCCA4KgAwIBAgIJAO6JNNDLgOCyMA0GCSqGSIb3DQEBDAUAMFoxCzAJBgNVBAYTAkpQMSYw
|
|
2812
|
+
JAYDVQQKEx1TRUNPTSBUcnVzdCBTeXN0ZW1zIENvLiwgTHRkLjEjMCEGA1UEAxMaU0VDT00gVExT
|
|
2813
|
+
IFJTQSBSb290IENBIDIwMjQwHhcNMjQwMTMxMDUxMTU1WhcNNDkwMTE0MDUxMTU1WjBaMQswCQYD
|
|
2814
|
+
VQQGEwJKUDEmMCQGA1UEChMdU0VDT00gVHJ1c3QgU3lzdGVtcyBDby4sIEx0ZC4xIzAhBgNVBAMT
|
|
2815
|
+
GlNFQ09NIFRMUyBSU0EgUm9vdCBDQSAyMDI0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC
|
|
2816
|
+
AgEA4TjizUwzxbInq8Tx11gaFYNk5fO+34y7TyM4neh0UgL5JIZbJNLTz2x//L/B71+5m6X6nGIr
|
|
2817
|
+
7d4lFJBGtjO677hXOz93zkcWaUTm3VbOAjBlt4YWxlcccBHXuZ7o3Q+4R+ormrBdHeJ1CTUEG8tt
|
|
2818
|
+
QbKIl3G7OZYbnH8/pP8cjPub/0kDVNuMzp7xsVRROOisQt53fMoJLlYgoebbuMphOqMCtjkJ7R6e
|
|
2819
|
+
fEMfLp8UAVi9ZaLRn76ET/CJkk925nduuufC4BatS4mnXFmxN0vUXb0ij9B8O/D8gixQEsVSD4GK
|
|
2820
|
+
8FWRPh3bVd/6bzdkHGJjy21XI0yejVomZUbRrOfNuz0boPGV1pt18fFC39IHQEth3OFqb5NDO3L+
|
|
2821
|
+
A9bNqTgAyUgRmIn4ucgDc/Ri/Km3V51ueZjy1/yk0qwJVadAVVrCt56iNeXOyEv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H4W
|
|
2834
|
+
AcKiZW+cqaKMmhP2WBfR4IcR7NOL32ml11ds87hhV1CZWWFCJAcCidYZz6CZa8exzHojP9SB5RH0
|
|
2835
|
+
/v1KdHAisqhSjtJl/UIAHIQ48elOn8wrTdFap4Yb5aHglmMeNx+fAIhDluWVfxTO7H4dTPU+SFVR
|
|
2836
|
+
MLAh+wwKZfqb94nMeQ==
|
|
2837
|
+
-----END CERTIFICATE-----
|
|
2838
|
+
|
|
2839
|
+
SECOM TLS ECC Root CA 2024
|
|
2840
|
+
==========================
|
|
2841
|
+
-----BEGIN CERTIFICATE-----
|
|
2842
|
+
MIICTDCCAdGgAwIBAgIJAIF6LO+PI3pEMAoGCCqGSM49BAMDMFoxCzAJBgNVBAYTAkpQMSYwJAYD
|
|
2843
|
+
VQQKEx1TRUNPTSBUcnVzdCBTeXN0ZW1zIENvLiwgTHRkLjEjMCEGA1UEAxMaU0VDT00gVExTIEVD
|
|
2844
|
+
QyBSb290IENBIDIwMjQwHhcNMjQwMTMxMDU1MjM0WhcNNDkwMTE0MDU1MjM0WjBaMQswCQYDVQQG
|
|
2845
|
+
EwJKUDEmMCQGA1UEChMdU0VDT00gVHJ1c3QgU3lzdGVtcyBDby4sIEx0ZC4xIzAhBgNVBAMTGlNF
|
|
2846
|
+
Q09NIFRMUyBFQ0MgUm9vdCBDQSAyMDI0MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE7NzFMtu9dzQX
|
|
2847
|
+
SNC12fabk0+GlC5finB3R7XaZonRUd20aFiWObtuNBCLUZSfk6QXAE55BjEXsXQ/NG8yUqicXjsu
|
|
2848
|
+
9ksDK3JZBgCwLOVh6+nwJXTvso/dEj/GUYH5mBdoo2MwYTAdBgNVHQ4EFgQUO3YReyl04k4GTFaC
|
|
2849
|
+
QNAhL3qzydUwHwYDVR0jBBgwFoAUO3YReyl04k4GTFaCQNAhL3qzydUwDgYDVR0PAQH/BAQDAgEG
|
|
2850
|
+
MA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwMDaQAwZgIxAN3ib8fi1pMYtAPjMilB5e5/H+t5
|
|
2851
|
+
CL0xPL+cZ5oTTZuSCjpAn1v7F/VAr8bFxQXAowIxAKsBVO1ACFp7skwzPvdv1EUY5a897WGLT4lb
|
|
2852
|
+
+bjxFAWyl8wDcZJdwGZ/pAHxt1AJ1g==
|
|
2853
|
+
-----END CERTIFICATE-----
|
|
2854
|
+
|
|
2855
|
+
Telia EC TLS Root CA v3
|
|
2856
|
+
=======================
|
|
2857
|
+
-----BEGIN CERTIFICATE-----
|
|
2858
|
+
MIICMjCCAbegAwIBAgIPAYvSIlRjTQSLbOVHH9K1MAoGCCqGSM49BAMDMEoxCzAJBgNVBAYTAlNF
|
|
2859
|
+
MRkwFwYDVQQKDBBUZWxpYSBDb21wYW55IEFCMSAwHgYDVQQDDBdUZWxpYSBFQyBUTFMgUm9vdCBD
|
|
2860
|
+
QSB2MzAeFw0yMzExMTUwODU1MjZaFw00ODA1MjMxMTAwMDBaMEoxCzAJBgNVBAYTAlNFMRkwFwYD
|
|
2861
|
+
VQQKDBBUZWxpYSBDb21wYW55IEFCMSAwHgYDVQQDDBdUZWxpYSBFQyBUTFMgUm9vdCBDQSB2MzB2
|
|
2862
|
+
MBAGByqGSM49AgEGBSuBBAAiA2IABMHIlhVDLbmFKUpW0iK4dpryT6emYOeS31JPwWnWPmkWRrAk
|
|
2863
|
+
TbPX40sQfHI9mpR7Rbktu3ngg6W+BBSXSechtMCnBmWXj/EaVlmV5cY1jD2HoTfhBQ3AacpCNMLJ
|
|
2864
|
+
K4NpZaNjMGEwHwYDVR0jBBgwFoAU1GToQ4g6cy/QGnGCNgtehd7H3kMwHQYDVR0OBBYEFNRk6EOI
|
|
2865
|
+
OnMv0BpxgjYLXoXex95DMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49
|
|
2866
|
+
BAMDA2kAMGYCMQCXAUdS/9bbJ8A1JYaGf/bWt/s7Ta0ot5Ulno8OjSNYRWQIlS4tVWldvTAVA7he
|
|
2867
|
+
OFgCMQCvKr8+Z2Rn+OBr5UHzlgBObpad1LuwNTRcdNgUJxIWadcki+UBLEi1/AURKV5md2M=
|
|
2868
|
+
-----END CERTIFICATE-----
|
|
2869
|
+
|
|
2870
|
+
Telia RSA TLS Root CA v3
|
|
2871
|
+
========================
|
|
2872
|
+
-----BEGIN CERTIFICATE-----
|
|
2873
|
+
MIIFgjCCA2qgAwIBAgIPAYvSUKtCVSxHWr2h3BrFMA0GCSqGSIb3DQEBDAUAMEsxCzAJBgNVBAYT
|
|
2874
|
+
AlNFMRkwFwYDVQQKDBBUZWxpYSBDb21wYW55IEFCMSEwHwYDVQQDDBhUZWxpYSBSU0EgVExTIFJv
|
|
2875
|
+
b3QgQ0EgdjMwHhcNMjMxMTE1MDk0NzQyWhcNNDgwNTIzMTEwMDAwWjBLMQswCQYDVQQGEwJTRTEZ
|
|
2876
|
+
MBcGA1UECgwQVGVsaWEgQ29tcGFueSBBQjEhMB8GA1UEAwwYVGVsaWEgUlNBIFRMUyBSb290IENB
|
|
2877
|
+
IHYzMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsV89KG19hCf4S1Fvk8D3TyDERhmc
|
|
2878
|
+
vx8F7Kmb4WATx3ije1id3KHxRE0TKmcNCbAQ57bvHFEYa4hR2l20VjVadExqOW+2ld99MbEiO+jR
|
|
2879
|
+
VOz+BbxLxJnmGwCqI+BfuTjjVReDxsxjQvjgBsClaO/sm5i70nlZcWGRtIkvWDK3NNkT5RtwXc/O
|
|
2880
|
+
8NTFVpbUqT6cRjIj3olAblR+lRf4Ffy5o+Q9fabjYn9Z9S4itruElcEFf9Ljk7fwdTycT/rvJW9w
|
|
2881
|
+
/B3G2a3r0f/zXNOVruIBcqE6pkSospACU2bG42fYKrbM/GWnp7u+p9Frz4jaNwpb4YHuEeS8Brat
|
|
2882
|
+
NcP8X62jXIvvKHxlsMDJCnb4U8JzFOL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NBGLCCuJnsneYXjJNqzRqUcoGwzsv
|
|
2895
|
+
F3Qi/ZnHUNvISdevlgIAXL4Wvrxaqvoa01wB+GCfs57RTGE4TvAGhKNKus8K3hRT1BSpigzMIRzS
|
|
2896
|
+
xtAOrqPN6j//QSmW9f8Jcncri4j2ihSpVrFU0NdNkMhZeAKidTFPsxCVFuW4Aniz7jqiw5sWtjbQ
|
|
2897
|
+
rlW035izIEU4sYwQoC1Nx0Svy+mMTRai50LqFQ+A1/Hq6xHHDNx7CI83d23Erw==
|
|
2898
|
+
-----END CERTIFICATE-----
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
960e8aaedcb78674074e48c00ba150ccc583bbcad74225330318f1b074509cb1 cacert.pem
|
|
@@ -17,6 +17,10 @@ export declare class AnalyticsExecutor {
|
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
19
|
get observabilityInstruments(): ObservabilityInstruments;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
static _endWithError<TRow>(emitter: StreamableRowPromise<AnalyticsResult<TRow>, TRow, AnalyticsMetaData>, err: Error, obsReqHandler?: ObservableRequestHandler): void;
|
|
20
24
|
/**
|
|
21
25
|
* @internal
|
|
22
26
|
*/
|
|
@@ -7,8 +7,8 @@ const bindingutilities_1 = require("./bindingutilities");
|
|
|
7
7
|
const observability_1 = require("./observability");
|
|
8
8
|
const observabilityhandler_1 = require("./observabilityhandler");
|
|
9
9
|
const observabilitytypes_1 = require("./observabilitytypes");
|
|
10
|
+
const queryexecutor_1 = require("./queryexecutor");
|
|
10
11
|
const streamablepromises_1 = require("./streamablepromises");
|
|
11
|
-
const utilities_1 = require("./utilities");
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
@@ -25,20 +25,26 @@ class AnalyticsExecutor {
|
|
|
25
25
|
get observabilityInstruments() {
|
|
26
26
|
return this._cluster.observabilityInstruments;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
static _endWithError(emitter, err, obsReqHandler) {
|
|
32
|
+
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
33
|
+
emitter.emit('error', err);
|
|
34
|
+
emitter.emit('end');
|
|
35
|
+
}
|
|
28
36
|
/**
|
|
29
37
|
* @internal
|
|
30
38
|
*/
|
|
31
39
|
static _processAnalyticsResponse(emitter, err, resp, obsReqHandler) {
|
|
32
40
|
if (err) {
|
|
33
|
-
|
|
34
|
-
emitter.emit('error', err);
|
|
35
|
-
emitter.emit('end');
|
|
41
|
+
AnalyticsExecutor._endWithError(emitter, err, obsReqHandler);
|
|
36
42
|
return;
|
|
37
43
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
try {
|
|
45
|
+
resp.rows.forEach((row) => {
|
|
46
|
+
emitter.emit('row', JSON.parse(row));
|
|
47
|
+
});
|
|
42
48
|
const metaData = resp.meta;
|
|
43
49
|
let warnings;
|
|
44
50
|
if (metaData.warnings) {
|
|
@@ -72,6 +78,10 @@ class AnalyticsExecutor {
|
|
|
72
78
|
});
|
|
73
79
|
emitter.emit('meta', meta);
|
|
74
80
|
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
AnalyticsExecutor._endWithError(emitter, err, obsReqHandler);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
75
85
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.end();
|
|
76
86
|
emitter.emit('end');
|
|
77
87
|
}
|
|
@@ -85,9 +95,14 @@ class AnalyticsExecutor {
|
|
|
85
95
|
meta: meta,
|
|
86
96
|
});
|
|
87
97
|
});
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
98
|
+
queryPromise.then(([err, resp]) => {
|
|
99
|
+
queryexecutor_1.QueryExecutor._rethrowListenerErrors(() => {
|
|
100
|
+
AnalyticsExecutor._processAnalyticsResponse(emitter, err, resp, obsReqHandler);
|
|
101
|
+
});
|
|
102
|
+
}, (err) => {
|
|
103
|
+
queryexecutor_1.QueryExecutor._rethrowListenerErrors(() => {
|
|
104
|
+
AnalyticsExecutor._endWithError(emitter, err, obsReqHandler);
|
|
105
|
+
});
|
|
91
106
|
});
|
|
92
107
|
return emitter;
|
|
93
108
|
}
|
|
@@ -759,7 +759,7 @@ class AnalyticsIndexManager {
|
|
|
759
759
|
*/
|
|
760
760
|
async _connectLink(options, callback) {
|
|
761
761
|
if (options instanceof Function) {
|
|
762
|
-
callback = arguments[
|
|
762
|
+
callback = arguments[0];
|
|
763
763
|
options = undefined;
|
|
764
764
|
}
|
|
765
765
|
if (!options) {
|
|
@@ -836,7 +836,7 @@ class AnalyticsIndexManager {
|
|
|
836
836
|
*/
|
|
837
837
|
async _disconnectLink(options, callback) {
|
|
838
838
|
if (options instanceof Function) {
|
|
839
|
-
callback = arguments[
|
|
839
|
+
callback = arguments[0];
|
|
840
840
|
options = undefined;
|
|
841
841
|
}
|
|
842
842
|
if (!options) {
|
package/dist/binding.d.ts
CHANGED
|
@@ -2712,7 +2712,10 @@ export interface CppEnhancedErrorInfo {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
export interface CppKeyValueError extends CppErrorBase {
|
|
2714
2714
|
ctxtype: 'key_value';
|
|
2715
|
-
id:
|
|
2715
|
+
id: string;
|
|
2716
|
+
bucket: string;
|
|
2717
|
+
scope: string;
|
|
2718
|
+
collection: string;
|
|
2716
2719
|
opaque: number;
|
|
2717
2720
|
cas: CppCas;
|
|
2718
2721
|
status_code: CppKeyValueStatusCode;
|
|
@@ -2722,6 +2725,12 @@ export interface CppKeyValueError extends CppErrorBase {
|
|
|
2722
2725
|
retry_attempts: number;
|
|
2723
2726
|
retry_reasons: CppRetryReason[];
|
|
2724
2727
|
}
|
|
2728
|
+
export interface CppSubdocError extends Omit<CppKeyValueError, 'ctxtype'> {
|
|
2729
|
+
ctxtype: 'subdocument';
|
|
2730
|
+
first_error_path: string;
|
|
2731
|
+
first_error_index: number;
|
|
2732
|
+
deleted: boolean;
|
|
2733
|
+
}
|
|
2725
2734
|
export interface CppViewError extends CppErrorBase {
|
|
2726
2735
|
ctxtype: 'view';
|
|
2727
2736
|
client_context_id: string;
|
|
@@ -2825,7 +2834,7 @@ export interface CppTransactionOpErrorContext {
|
|
|
2825
2834
|
code: CppErrc;
|
|
2826
2835
|
cause: CppKeyValueError | CppQueryError | undefined;
|
|
2827
2836
|
}
|
|
2828
|
-
export type CppError = CppGenericError | CppKeyValueError | CppViewError | CppQueryError | CppSearchError | CppAnalyticsError | CppHttpError | CppTxnOperationFailed | CppTxnOpException | CppTxnError;
|
|
2837
|
+
export type CppError = CppGenericError | CppKeyValueError | CppSubdocError | CppViewError | CppQueryError | CppSearchError | CppAnalyticsError | CppHttpError | CppTxnOperationFailed | CppTxnOpException | CppTxnError;
|
|
2829
2838
|
export interface CppConnection extends CppConnectionAutogen {
|
|
2830
2839
|
connect(connStr: string, credentials: CppClusterCredentials, dnsOptions: CppDnsConfig | null, appTelemetryOptions: CppAppTelemetryConfig | null, enableTracing: boolean, orphanReporterOptions: CppOrphanReporterConfig | null, callback: (err: CppError | null) => void): void;
|
|
2831
2840
|
updateCredentials(credentials: CppClusterCredentials): CppError | null;
|
package/dist/bindingutilities.js
CHANGED
|
@@ -573,6 +573,7 @@ exports.pingStateFromCpp = pingStateFromCpp;
|
|
|
573
573
|
* @internal
|
|
574
574
|
*/
|
|
575
575
|
function contextFromCpp(err) {
|
|
576
|
+
var _a, _b, _c, _d;
|
|
576
577
|
if (!err) {
|
|
577
578
|
return null;
|
|
578
579
|
}
|
|
@@ -581,15 +582,17 @@ function contextFromCpp(err) {
|
|
|
581
582
|
retry_reasons = err.retry_reasons.map(retryReasonFromCpp);
|
|
582
583
|
}
|
|
583
584
|
let context = null;
|
|
584
|
-
|
|
585
|
+
// A subdocument error context is a key-value error context in the core, and
|
|
586
|
+
// adds only fields this context type does not carry, so both map here.
|
|
587
|
+
if (err.ctxtype === 'key_value' || err.ctxtype === 'subdocument') {
|
|
585
588
|
context = new errctxs.KeyValueErrorContext({
|
|
586
589
|
status_code: err.status_code,
|
|
587
590
|
opaque: err.opaque,
|
|
588
591
|
cas: err.cas,
|
|
589
|
-
key: err.id ?
|
|
590
|
-
bucket:
|
|
591
|
-
collection:
|
|
592
|
-
scope:
|
|
592
|
+
key: (_a = err.id) !== null && _a !== void 0 ? _a : '',
|
|
593
|
+
bucket: (_b = err.bucket) !== null && _b !== void 0 ? _b : '',
|
|
594
|
+
collection: (_c = err.collection) !== null && _c !== void 0 ? _c : '',
|
|
595
|
+
scope: (_d = err.scope) !== null && _d !== void 0 ? _d : '',
|
|
593
596
|
context: err.enhanced_error_info ? err.enhanced_error_info.context : '',
|
|
594
597
|
ref: err.enhanced_error_info ? err.enhanced_error_info.reference : '',
|
|
595
598
|
last_dispatched_from: err.last_dispatched_from
|
package/dist/cluster.js
CHANGED
|
@@ -142,9 +142,9 @@ class Cluster {
|
|
|
142
142
|
*/
|
|
143
143
|
constructor(connStr, options) {
|
|
144
144
|
var _a, _b, _c;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
145
|
+
// Copy before normalising: the options object belongs to the caller, and
|
|
146
|
+
// the defaulting below, plus any config profile, writes to it.
|
|
147
|
+
options = { ...options };
|
|
148
148
|
if (!options.security) {
|
|
149
149
|
options.security = {};
|
|
150
150
|
}
|
package/dist/collection.js
CHANGED
|
@@ -187,8 +187,10 @@ class Collection {
|
|
|
187
187
|
const cppDocId = this._cppDocId(key);
|
|
188
188
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.setRequestKeyValueAttributes(cppDocId);
|
|
189
189
|
if (options.project || options.withExpiry) {
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
// Thread the span through a copy: the options object belongs to the
|
|
191
|
+
// caller, and one reused across requests would otherwise carry a
|
|
192
|
+
// finished request's span into the next call.
|
|
193
|
+
return this._projectedGet(key, { ...options, parentSpan: obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.wrappedSpan }, obsReqHandler, callback);
|
|
192
194
|
}
|
|
193
195
|
const transcoder = options.transcoder || this.transcoder;
|
|
194
196
|
const timeout = options.timeout || this.cluster.kvTimeout;
|
|
@@ -203,12 +205,11 @@ class Collection {
|
|
|
203
205
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
204
206
|
throw err;
|
|
205
207
|
}
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
return new crudoptypes_1.GetResult({
|
|
209
|
-
content: content,
|
|
208
|
+
const toResult = () => new crudoptypes_1.GetResult({
|
|
209
|
+
content: transcoder.decode(resp.value, resp.flags),
|
|
210
210
|
cas: resp.cas,
|
|
211
211
|
});
|
|
212
|
+
return obsReqHandler ? obsReqHandler.endAfter(toResult) : toResult();
|
|
212
213
|
}, callback);
|
|
213
214
|
}
|
|
214
215
|
catch (e) {
|
|
@@ -267,6 +268,7 @@ class Collection {
|
|
|
267
268
|
expiry = expiryRes.value;
|
|
268
269
|
}
|
|
269
270
|
if (projStart >= 0) {
|
|
271
|
+
content = {};
|
|
270
272
|
if (!needReproject) {
|
|
271
273
|
for (let i = 0; i < paths.length; ++i) {
|
|
272
274
|
const projPath = paths[i];
|
|
@@ -277,11 +279,13 @@ class Collection {
|
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
else {
|
|
280
|
-
content = {};
|
|
281
282
|
const reprojRes = res.content[projStart];
|
|
282
283
|
for (let j = 0; j < paths.length; ++j) {
|
|
283
284
|
const reprojPath = paths[j];
|
|
284
285
|
const value = sdutils_1.SdUtils.getByPath(reprojRes.value, reprojPath);
|
|
286
|
+
if (value === undefined) {
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
285
289
|
content = sdutils_1.SdUtils.insertByPath(content, reprojPath, value);
|
|
286
290
|
}
|
|
287
291
|
}
|
|
@@ -368,7 +372,7 @@ class Collection {
|
|
|
368
372
|
emitter.emit('end');
|
|
369
373
|
return;
|
|
370
374
|
}
|
|
371
|
-
resp.entries
|
|
375
|
+
for (const replica of resp.entries) {
|
|
372
376
|
try {
|
|
373
377
|
const content = transcoder.decode(replica.value, replica.flags);
|
|
374
378
|
emitter.emit('replica', new crudoptypes_1.GetReplicaResult({
|
|
@@ -383,7 +387,7 @@ class Collection {
|
|
|
383
387
|
emitter.emit('end');
|
|
384
388
|
return;
|
|
385
389
|
}
|
|
386
|
-
}
|
|
390
|
+
}
|
|
387
391
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.end();
|
|
388
392
|
emitter.emit('end');
|
|
389
393
|
});
|
|
@@ -412,6 +416,8 @@ class Collection {
|
|
|
412
416
|
catch (err) {
|
|
413
417
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
414
418
|
emitter.emit('error', err);
|
|
419
|
+
emitter.emit('end');
|
|
420
|
+
return;
|
|
415
421
|
}
|
|
416
422
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.end();
|
|
417
423
|
emitter.emit('end');
|
|
@@ -811,12 +817,11 @@ class Collection {
|
|
|
811
817
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
812
818
|
throw err;
|
|
813
819
|
}
|
|
814
|
-
const
|
|
815
|
-
|
|
816
|
-
return new crudoptypes_1.GetResult({
|
|
817
|
-
content: content,
|
|
820
|
+
const toResult = () => new crudoptypes_1.GetResult({
|
|
821
|
+
content: transcoder.decode(resp.value, resp.flags),
|
|
818
822
|
cas: resp.cas,
|
|
819
823
|
});
|
|
824
|
+
return obsReqHandler ? obsReqHandler.endAfter(toResult) : toResult();
|
|
820
825
|
}, callback);
|
|
821
826
|
}
|
|
822
827
|
catch (e) {
|
|
@@ -911,12 +916,11 @@ class Collection {
|
|
|
911
916
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
912
917
|
throw err;
|
|
913
918
|
}
|
|
914
|
-
const
|
|
915
|
-
|
|
916
|
-
return new crudoptypes_1.GetResult({
|
|
917
|
-
content: content,
|
|
919
|
+
const toResult = () => new crudoptypes_1.GetResult({
|
|
920
|
+
content: transcoder.decode(resp.value, resp.flags),
|
|
918
921
|
cas: resp.cas,
|
|
919
922
|
});
|
|
923
|
+
return obsReqHandler ? obsReqHandler.endAfter(toResult) : toResult();
|
|
920
924
|
}, callback);
|
|
921
925
|
}
|
|
922
926
|
catch (e) {
|
|
@@ -1043,7 +1047,7 @@ class Collection {
|
|
|
1043
1047
|
*/
|
|
1044
1048
|
scan(scanType, options, callback) {
|
|
1045
1049
|
if (options instanceof Function) {
|
|
1046
|
-
callback = arguments[
|
|
1050
|
+
callback = arguments[1];
|
|
1047
1051
|
options = undefined;
|
|
1048
1052
|
}
|
|
1049
1053
|
if (!options) {
|
|
@@ -1052,8 +1056,12 @@ class Collection {
|
|
|
1052
1056
|
const transcoder = options.transcoder || this.transcoder;
|
|
1053
1057
|
const timeout = options.timeout || this._kvScanTimeout;
|
|
1054
1058
|
const idsOnly = options.idsOnly || false;
|
|
1055
|
-
const batchByteLimit = options.batchByteLimit
|
|
1056
|
-
|
|
1059
|
+
const batchByteLimit = typeof options.batchByteLimit !== 'undefined'
|
|
1060
|
+
? options.batchByteLimit
|
|
1061
|
+
: this._scanBatchByteLimit;
|
|
1062
|
+
const batchItemLimit = typeof options.batchItemLimit !== 'undefined'
|
|
1063
|
+
? options.batchItemLimit
|
|
1064
|
+
: this._scanBatchItemLimit;
|
|
1057
1065
|
if (typeof options.concurrency !== 'undefined' && options.concurrency < 1) {
|
|
1058
1066
|
throw new errors_1.InvalidArgumentError(new Error('Concurrency option must be positive'));
|
|
1059
1067
|
}
|
|
@@ -1488,7 +1496,7 @@ class Collection {
|
|
|
1488
1496
|
const expiry = (0, utilities_1.parseExpiry)(options.expiry);
|
|
1489
1497
|
const persistTo = options.durabilityPersistTo;
|
|
1490
1498
|
const replicateTo = options.durabilityReplicateTo;
|
|
1491
|
-
const timeout = options.timeout || this.
|
|
1499
|
+
const timeout = options.timeout || this._mutationTimeout(options.durabilityLevel);
|
|
1492
1500
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.setRequestKeyValueAttributes(cppDocId, cppDurability);
|
|
1493
1501
|
const incrementReq = {
|
|
1494
1502
|
id: cppDocId,
|
|
@@ -1555,7 +1563,7 @@ class Collection {
|
|
|
1555
1563
|
const expiry = (0, utilities_1.parseExpiry)(options.expiry);
|
|
1556
1564
|
const persistTo = options.durabilityPersistTo;
|
|
1557
1565
|
const replicateTo = options.durabilityReplicateTo;
|
|
1558
|
-
const timeout = options.timeout || this.
|
|
1566
|
+
const timeout = options.timeout || this._mutationTimeout(options.durabilityLevel);
|
|
1559
1567
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.setRequestKeyValueAttributes(cppDocId, cppDurability);
|
|
1560
1568
|
const decrementReq = {
|
|
1561
1569
|
id: cppDocId,
|
|
@@ -1621,7 +1629,7 @@ class Collection {
|
|
|
1621
1629
|
const persistTo = options.durabilityPersistTo;
|
|
1622
1630
|
const replicateTo = options.durabilityReplicateTo;
|
|
1623
1631
|
const cas = options.cas;
|
|
1624
|
-
const timeout = options.timeout || this.
|
|
1632
|
+
const timeout = options.timeout || this._mutationTimeout(options.durabilityLevel);
|
|
1625
1633
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.setRequestKeyValueAttributes(cppDocId, cppDurability);
|
|
1626
1634
|
if (!Buffer.isBuffer(value)) {
|
|
1627
1635
|
value = Buffer.from(value);
|
|
@@ -1688,7 +1696,7 @@ class Collection {
|
|
|
1688
1696
|
const persistTo = options.durabilityPersistTo;
|
|
1689
1697
|
const replicateTo = options.durabilityReplicateTo;
|
|
1690
1698
|
const cas = options.cas;
|
|
1691
|
-
const timeout = options.timeout || this.
|
|
1699
|
+
const timeout = options.timeout || this._mutationTimeout(options.durabilityLevel);
|
|
1692
1700
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.setRequestKeyValueAttributes(cppDocId, cppDurability);
|
|
1693
1701
|
if (!Buffer.isBuffer(value)) {
|
|
1694
1702
|
value = Buffer.from(value);
|
package/dist/mutationstate.js
CHANGED
|
@@ -37,7 +37,7 @@ class MutationState {
|
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
const otherToken = this._data[bucketName][vbId];
|
|
40
|
-
const otherTokenSeqNo = parseInt(otherToken.toJSON().
|
|
40
|
+
const otherTokenSeqNo = parseInt(otherToken.toJSON().sequence_number, 10);
|
|
41
41
|
if (otherTokenSeqNo < vbSeqNo) {
|
|
42
42
|
this._data[bucketName][vbId] = cppToken;
|
|
43
43
|
}
|
|
@@ -44,13 +44,26 @@ export declare class ObservableRequestHandler {
|
|
|
44
44
|
*/
|
|
45
45
|
get clusterUUID(): string | undefined;
|
|
46
46
|
/**
|
|
47
|
+
* Ends the request. A request is recorded once, so a call after the
|
|
48
|
+
* request has ended does nothing.
|
|
49
|
+
*
|
|
47
50
|
* @internal
|
|
48
51
|
*/
|
|
49
52
|
end(): void;
|
|
50
53
|
/**
|
|
54
|
+
* Ends the request with an error. As with end, a call after the request
|
|
55
|
+
* has ended does nothing.
|
|
56
|
+
*
|
|
51
57
|
* @internal
|
|
52
58
|
*/
|
|
53
59
|
endWithError(error?: any): void;
|
|
60
|
+
/**
|
|
61
|
+
* Runs fn, then ends the request, so that a failure in fn is recorded as
|
|
62
|
+
* an error rather than as a success.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
endAfter<T>(fn: () => T): T;
|
|
54
67
|
/**
|
|
55
68
|
* @internal
|
|
56
69
|
*/
|
|
@@ -402,21 +402,51 @@ class ObservableRequestHandler {
|
|
|
402
402
|
return this._tracerImpl.clusterUUID;
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
|
+
* Ends the request. A request is recorded once, so a call after the
|
|
406
|
+
* request has ended does nothing.
|
|
407
|
+
*
|
|
405
408
|
* @internal
|
|
406
409
|
*/
|
|
407
410
|
end() {
|
|
411
|
+
if (this._requestHasEnded) {
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
408
414
|
this._requestHasEnded = true;
|
|
409
415
|
this._tracerImpl.end();
|
|
410
416
|
this._meterImpl.processEnd(this.clusterName, this.clusterUUID);
|
|
411
417
|
}
|
|
412
418
|
/**
|
|
419
|
+
* Ends the request with an error. As with end, a call after the request
|
|
420
|
+
* has ended does nothing.
|
|
421
|
+
*
|
|
413
422
|
* @internal
|
|
414
423
|
*/
|
|
415
424
|
endWithError(error) {
|
|
425
|
+
if (this._requestHasEnded) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
416
428
|
this._requestHasEnded = true;
|
|
417
429
|
this._tracerImpl.endWithError(error);
|
|
418
430
|
this._meterImpl.processEnd(this.clusterName, this.clusterUUID, error);
|
|
419
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* Runs fn, then ends the request, so that a failure in fn is recorded as
|
|
434
|
+
* an error rather than as a success.
|
|
435
|
+
*
|
|
436
|
+
* @internal
|
|
437
|
+
*/
|
|
438
|
+
endAfter(fn) {
|
|
439
|
+
let result;
|
|
440
|
+
try {
|
|
441
|
+
result = fn();
|
|
442
|
+
}
|
|
443
|
+
catch (e) {
|
|
444
|
+
this.endWithError(e);
|
|
445
|
+
throw e;
|
|
446
|
+
}
|
|
447
|
+
this.end();
|
|
448
|
+
return result;
|
|
449
|
+
}
|
|
420
450
|
/**
|
|
421
451
|
* @internal
|
|
422
452
|
*/
|
package/dist/queryexecutor.d.ts
CHANGED
|
@@ -17,6 +17,15 @@ export declare class QueryExecutor {
|
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
19
|
get observabilityInstruments(): ObservabilityInstruments;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*
|
|
23
|
+
* Native callbacks swallow anything thrown out of them, so anything still
|
|
24
|
+
* thrown by the callback body (an 'error' emitted with no listener, or a
|
|
25
|
+
* throwing 'end' listener) is rethrown on a later tick, where it surfaces as
|
|
26
|
+
* an uncaught exception.
|
|
27
|
+
*/
|
|
28
|
+
static _rethrowListenerErrors(fn: () => void): void;
|
|
20
29
|
/**
|
|
21
30
|
* @internal
|
|
22
31
|
*/
|
package/dist/queryexecutor.js
CHANGED
|
@@ -24,6 +24,24 @@ class QueryExecutor {
|
|
|
24
24
|
get observabilityInstruments() {
|
|
25
25
|
return this._cluster.observabilityInstruments;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*
|
|
30
|
+
* Native callbacks swallow anything thrown out of them, so anything still
|
|
31
|
+
* thrown by the callback body (an 'error' emitted with no listener, or a
|
|
32
|
+
* throwing 'end' listener) is rethrown on a later tick, where it surfaces as
|
|
33
|
+
* an uncaught exception.
|
|
34
|
+
*/
|
|
35
|
+
static _rethrowListenerErrors(fn) {
|
|
36
|
+
try {
|
|
37
|
+
fn();
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
process.nextTick(() => {
|
|
41
|
+
throw err;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
27
45
|
/**
|
|
28
46
|
* @internal
|
|
29
47
|
*/
|
package/dist/searchexecutor.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export declare class SearchExecutor {
|
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
22
|
get observabilityInstruments(): ObservabilityInstruments;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
static _endWithError(emitter: StreamableRowPromise<SearchResult, SearchRow, SearchMetaData>, err: Error, obsReqHandler?: ObservableRequestHandler): void;
|
|
23
27
|
/**
|
|
24
28
|
* @internal
|
|
25
29
|
*/
|
package/dist/searchexecutor.js
CHANGED
|
@@ -6,10 +6,10 @@ const bindingutilities_1 = require("./bindingutilities");
|
|
|
6
6
|
const observability_1 = require("./observability");
|
|
7
7
|
const observabilityhandler_1 = require("./observabilityhandler");
|
|
8
8
|
const observabilitytypes_1 = require("./observabilitytypes");
|
|
9
|
+
const queryexecutor_1 = require("./queryexecutor");
|
|
9
10
|
const searchquery_1 = require("./searchquery");
|
|
10
11
|
const searchtypes_1 = require("./searchtypes");
|
|
11
12
|
const streamablepromises_1 = require("./streamablepromises");
|
|
12
|
-
const utilities_1 = require("./utilities");
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
@@ -28,30 +28,40 @@ class SearchExecutor {
|
|
|
28
28
|
get observabilityInstruments() {
|
|
29
29
|
return this._cluster.observabilityInstruments;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
static _endWithError(emitter, err, obsReqHandler) {
|
|
35
|
+
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
36
|
+
emitter.emit('error', err);
|
|
37
|
+
emitter.emit('end');
|
|
38
|
+
}
|
|
31
39
|
/**
|
|
32
40
|
* @internal
|
|
33
41
|
*/
|
|
34
42
|
static _processSearchResponse(emitter, err, resp, obsReqHandler) {
|
|
35
43
|
if (err) {
|
|
36
|
-
|
|
37
|
-
emitter.emit('error', err);
|
|
38
|
-
emitter.emit('end');
|
|
44
|
+
SearchExecutor._endWithError(emitter, err, obsReqHandler);
|
|
39
45
|
return;
|
|
40
46
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
try {
|
|
48
|
+
resp.rows.forEach((row) => {
|
|
49
|
+
row.fields = row.fields ? JSON.parse(row.fields) : undefined;
|
|
50
|
+
row.explanation = row.explanation
|
|
51
|
+
? JSON.parse(row.explanation)
|
|
52
|
+
: undefined;
|
|
53
|
+
emitter.emit('row', row);
|
|
54
|
+
});
|
|
49
55
|
const metaData = resp.meta;
|
|
50
56
|
emitter.emit('meta', {
|
|
51
57
|
facets: Object.fromEntries(Object.values(resp.facets).map((v) => [v.name, v])),
|
|
52
58
|
...metaData,
|
|
53
59
|
});
|
|
54
60
|
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
SearchExecutor._endWithError(emitter, err, obsReqHandler);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
55
65
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.end();
|
|
56
66
|
emitter.emit('end');
|
|
57
67
|
}
|
|
@@ -65,9 +75,14 @@ class SearchExecutor {
|
|
|
65
75
|
meta: meta,
|
|
66
76
|
});
|
|
67
77
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
searchPromise.then(([err, resp]) => {
|
|
79
|
+
queryexecutor_1.QueryExecutor._rethrowListenerErrors(() => {
|
|
80
|
+
SearchExecutor._processSearchResponse(emitter, err, resp, obsReqHandler);
|
|
81
|
+
});
|
|
82
|
+
}, (err) => {
|
|
83
|
+
queryexecutor_1.QueryExecutor._rethrowListenerErrors(() => {
|
|
84
|
+
SearchExecutor._endWithError(emitter, err, obsReqHandler);
|
|
85
|
+
});
|
|
71
86
|
});
|
|
72
87
|
return emitter;
|
|
73
88
|
}
|
package/dist/transactions.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Transactions = exports.TransactionAttemptContext = exports.TransactionQueryResult = exports.TransactionGetMultiReplicasFromPreferredServerGroupResult = exports.TransactionGetMultiReplicasFromPreferredServerGroupResultEntry = exports.TransactionGetMultiResult = exports.TransactionGetMultiResultEntry = exports.TransactionGetResult = exports.TransactionResult = exports.TransactionGetMultiReplicasFromPreferredServerGroupSpec = exports.TransactionGetMultiSpec = exports.TransactionGetMultiReplicasFromPreferredServerGroupMode = exports.TransactionGetMultiMode = exports.DocumentId = void 0;
|
|
7
7
|
const binding_1 = __importDefault(require("./binding"));
|
|
8
8
|
const bindingutilities_1 = require("./bindingutilities");
|
|
9
|
+
const errorcontexts_1 = require("./errorcontexts");
|
|
9
10
|
const errors_1 = require("./errors");
|
|
10
11
|
const queryexecutor_1 = require("./queryexecutor");
|
|
11
12
|
const transcoders_1 = require("./transcoders");
|
|
@@ -338,6 +339,28 @@ function translateGetMultiReplicasFromPreferredServerGroupResult(cppRes, transco
|
|
|
338
339
|
content,
|
|
339
340
|
});
|
|
340
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* The C++ core reports no error context for a key-value failure raised inside
|
|
344
|
+
* a transaction, so the context the same operation carries outside one never
|
|
345
|
+
* arrives. Until the core carries it, fill in what the SDK already holds:
|
|
346
|
+
* the document the operation was aimed at. The server-supplied fields are
|
|
347
|
+
* left absent rather than zeroed, since a status_code of 0 is SUCCESS, and a
|
|
348
|
+
* context claiming success for an operation that failed is worse than one
|
|
349
|
+
* that claims nothing.
|
|
350
|
+
*
|
|
351
|
+
* @internal
|
|
352
|
+
*/
|
|
353
|
+
function kvContextFromDocId(err, id) {
|
|
354
|
+
if (err instanceof errors_1.CouchbaseError && !err.context) {
|
|
355
|
+
err.context = new errorcontexts_1.KeyValueErrorContext({
|
|
356
|
+
key: id.key,
|
|
357
|
+
bucket: id.bucket,
|
|
358
|
+
scope: id.scope,
|
|
359
|
+
collection: id.collection,
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
return err;
|
|
363
|
+
}
|
|
341
364
|
/**
|
|
342
365
|
* Provides an interface to preform transactional operations in a transaction.
|
|
343
366
|
*
|
|
@@ -389,7 +412,7 @@ class TransactionAttemptContext {
|
|
|
389
412
|
this._impl.get({
|
|
390
413
|
id,
|
|
391
414
|
}, (cppErr, cppRes) => {
|
|
392
|
-
const err = (0, bindingutilities_1.errorFromCpp)(cppErr);
|
|
415
|
+
const err = kvContextFromDocId((0, bindingutilities_1.errorFromCpp)(cppErr), id);
|
|
393
416
|
if (err) {
|
|
394
417
|
return wrapCallback(err, null);
|
|
395
418
|
}
|
|
@@ -411,7 +434,7 @@ class TransactionAttemptContext {
|
|
|
411
434
|
this._impl.getReplicaFromPreferredServerGroup({
|
|
412
435
|
id,
|
|
413
436
|
}, (cppErr, cppRes) => {
|
|
414
|
-
const err = (0, bindingutilities_1.errorFromCpp)(cppErr);
|
|
437
|
+
const err = kvContextFromDocId((0, bindingutilities_1.errorFromCpp)(cppErr), id);
|
|
415
438
|
if (err) {
|
|
416
439
|
return wrapCallback(err, null);
|
|
417
440
|
}
|
|
@@ -483,7 +506,7 @@ class TransactionAttemptContext {
|
|
|
483
506
|
flags,
|
|
484
507
|
},
|
|
485
508
|
}, (cppErr, cppRes) => {
|
|
486
|
-
const err = (0, bindingutilities_1.errorFromCpp)(cppErr);
|
|
509
|
+
const err = kvContextFromDocId((0, bindingutilities_1.errorFromCpp)(cppErr), id);
|
|
487
510
|
if (err) {
|
|
488
511
|
return wrapCallback(err, null);
|
|
489
512
|
}
|
|
@@ -518,7 +541,7 @@ class TransactionAttemptContext {
|
|
|
518
541
|
flags,
|
|
519
542
|
},
|
|
520
543
|
}, (cppErr, cppRes) => {
|
|
521
|
-
const err = (0, bindingutilities_1.errorFromCpp)(cppErr);
|
|
544
|
+
const err = kvContextFromDocId((0, bindingutilities_1.errorFromCpp)(cppErr), doc.id);
|
|
522
545
|
if (err) {
|
|
523
546
|
return wrapCallback(err, null);
|
|
524
547
|
}
|
|
@@ -545,7 +568,7 @@ class TransactionAttemptContext {
|
|
|
545
568
|
metadata: doc._metadata,
|
|
546
569
|
},
|
|
547
570
|
}, (cppErr) => {
|
|
548
|
-
const err = (0, bindingutilities_1.errorFromCpp)(cppErr);
|
|
571
|
+
const err = kvContextFromDocId((0, bindingutilities_1.errorFromCpp)(cppErr), doc.id);
|
|
549
572
|
wrapCallback(err, null);
|
|
550
573
|
});
|
|
551
574
|
});
|
|
@@ -704,7 +727,7 @@ class Transactions {
|
|
|
704
727
|
e instanceof errors_1.TransactionCommitAmbiguousError) {
|
|
705
728
|
throw e;
|
|
706
729
|
}
|
|
707
|
-
throw new errors_1.TransactionFailedError(e);
|
|
730
|
+
throw new errors_1.TransactionFailedError(e, e instanceof errors_1.CouchbaseError ? e.context : undefined);
|
|
708
731
|
}
|
|
709
732
|
try {
|
|
710
733
|
const txnResult = await txn._commit(); // this is actually finalize internally
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.7.
|
|
1
|
+
export declare const SDK_VERSION = "4.7.2";
|
|
2
2
|
export declare const SDK_NAME = "couchbase";
|
package/dist/version.js
CHANGED
package/dist/viewexecutor.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare class ViewExecutor {
|
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
24
|
get observabilityInstruments(): ObservabilityInstruments;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
static _endWithError<TValue = any, TKey = any>(emitter: StreamableRowPromise<ViewResult<TValue, TKey>, ViewRow<TValue, TKey>, ViewMetaData>, err: Error, obsReqHandler?: ObservableRequestHandler): void;
|
|
25
29
|
/**
|
|
26
30
|
* @internal
|
|
27
31
|
*/
|
package/dist/viewexecutor.js
CHANGED
|
@@ -6,8 +6,8 @@ const bindingutilities_1 = require("./bindingutilities");
|
|
|
6
6
|
const observability_1 = require("./observability");
|
|
7
7
|
const observabilityhandler_1 = require("./observabilityhandler");
|
|
8
8
|
const observabilitytypes_1 = require("./observabilitytypes");
|
|
9
|
+
const queryexecutor_1 = require("./queryexecutor");
|
|
9
10
|
const streamablepromises_1 = require("./streamablepromises");
|
|
10
|
-
const utilities_1 = require("./utilities");
|
|
11
11
|
const viewtypes_1 = require("./viewtypes");
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
@@ -31,24 +31,30 @@ class ViewExecutor {
|
|
|
31
31
|
get observabilityInstruments() {
|
|
32
32
|
return this._cluster.observabilityInstruments;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
static _endWithError(emitter, err, obsReqHandler) {
|
|
38
|
+
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.endWithError(err);
|
|
39
|
+
emitter.emit('error', err);
|
|
40
|
+
emitter.emit('end');
|
|
41
|
+
}
|
|
34
42
|
/**
|
|
35
43
|
* @internal
|
|
36
44
|
*/
|
|
37
45
|
static _processViewResponse(emitter, err, resp, obsReqHandler) {
|
|
38
46
|
if (err) {
|
|
39
|
-
|
|
40
|
-
emitter.emit('error', err);
|
|
41
|
-
emitter.emit('end');
|
|
47
|
+
ViewExecutor._endWithError(emitter, err, obsReqHandler);
|
|
42
48
|
return;
|
|
43
49
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
try {
|
|
51
|
+
resp.rows.forEach((row) => {
|
|
52
|
+
emitter.emit('row', new viewtypes_1.ViewRow({
|
|
53
|
+
value: JSON.parse(row.value),
|
|
54
|
+
id: row.id,
|
|
55
|
+
key: JSON.parse(row.key),
|
|
56
|
+
}));
|
|
57
|
+
});
|
|
52
58
|
const metaData = resp.meta;
|
|
53
59
|
const meta = new viewtypes_1.ViewMetaData({
|
|
54
60
|
totalRows: metaData.total_rows,
|
|
@@ -56,6 +62,10 @@ class ViewExecutor {
|
|
|
56
62
|
});
|
|
57
63
|
emitter.emit('meta', meta);
|
|
58
64
|
}
|
|
65
|
+
catch (err) {
|
|
66
|
+
ViewExecutor._endWithError(emitter, err, obsReqHandler);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
59
69
|
obsReqHandler === null || obsReqHandler === void 0 ? void 0 : obsReqHandler.end();
|
|
60
70
|
emitter.emit('end');
|
|
61
71
|
}
|
|
@@ -69,9 +79,14 @@ class ViewExecutor {
|
|
|
69
79
|
meta: meta,
|
|
70
80
|
});
|
|
71
81
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
viewPromise.then(([err, resp]) => {
|
|
83
|
+
queryexecutor_1.QueryExecutor._rethrowListenerErrors(() => {
|
|
84
|
+
ViewExecutor._processViewResponse(emitter, err, resp, obsReqHandler);
|
|
85
|
+
});
|
|
86
|
+
}, (err) => {
|
|
87
|
+
queryexecutor_1.QueryExecutor._rethrowListenerErrors(() => {
|
|
88
|
+
ViewExecutor._endWithError(emitter, err, obsReqHandler);
|
|
89
|
+
});
|
|
75
90
|
});
|
|
76
91
|
return emitter;
|
|
77
92
|
}
|
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"type": "git",
|
|
69
69
|
"url": "http://github.com/couchbase/couchnode.git"
|
|
70
70
|
},
|
|
71
|
-
"version": "4.7.
|
|
71
|
+
"version": "4.7.2",
|
|
72
72
|
"config": {
|
|
73
73
|
"native": false
|
|
74
74
|
},
|
|
@@ -166,12 +166,12 @@
|
|
|
166
166
|
"deps/couchbase-cxx-cache/mozilla-ca-bundle.*"
|
|
167
167
|
],
|
|
168
168
|
"optionalDependencies": {
|
|
169
|
-
"@couchbase/couchbase-darwin-arm64-napi": "4.7.
|
|
170
|
-
"@couchbase/couchbase-darwin-x64-napi": "4.7.
|
|
171
|
-
"@couchbase/couchbase-linux-arm64-napi": "4.7.
|
|
172
|
-
"@couchbase/couchbase-linuxmusl-arm64-napi": "4.7.
|
|
173
|
-
"@couchbase/couchbase-linuxmusl-x64-napi": "4.7.
|
|
174
|
-
"@couchbase/couchbase-linux-x64-napi": "4.7.
|
|
175
|
-
"@couchbase/couchbase-win32-x64-napi": "4.7.
|
|
169
|
+
"@couchbase/couchbase-darwin-arm64-napi": "4.7.2",
|
|
170
|
+
"@couchbase/couchbase-darwin-x64-napi": "4.7.2",
|
|
171
|
+
"@couchbase/couchbase-linux-arm64-napi": "4.7.2",
|
|
172
|
+
"@couchbase/couchbase-linuxmusl-arm64-napi": "4.7.2",
|
|
173
|
+
"@couchbase/couchbase-linuxmusl-x64-napi": "4.7.2",
|
|
174
|
+
"@couchbase/couchbase-linux-x64-napi": "4.7.2",
|
|
175
|
+
"@couchbase/couchbase-win32-x64-napi": "4.7.2"
|
|
176
176
|
}
|
|
177
177
|
}
|
package/src/connection.hpp
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
#include "addondata.hpp"
|
|
3
3
|
#include "instance.hpp"
|
|
4
4
|
#include "jstocbpp.hpp"
|
|
5
|
+
#include <core/logger/logger.hxx>
|
|
5
6
|
#include <core/tracing/wrapper_sdk_tracer.hxx>
|
|
6
7
|
#include <core/utils/movable_function.hxx>
|
|
7
8
|
#include <napi.h>
|
|
9
|
+
#include <utility>
|
|
8
10
|
|
|
9
11
|
namespace couchnode
|
|
10
12
|
{
|
|
@@ -31,15 +33,34 @@ public:
|
|
|
31
33
|
|
|
32
34
|
CallCookie(CallCookie &o) = delete;
|
|
33
35
|
|
|
36
|
+
// The thread-safe function wrapper copies its handle on a move, so take
|
|
37
|
+
// it explicitly and leave the source with nothing to release.
|
|
34
38
|
CallCookie(CallCookie &&o)
|
|
35
|
-
: _ttsf(std::
|
|
39
|
+
: _ttsf(std::exchange(o._ttsf, CallCookieTTSF()))
|
|
36
40
|
{
|
|
37
41
|
}
|
|
38
42
|
|
|
43
|
+
// Release the thread-safe function if invoke() never ran, so a cookie
|
|
44
|
+
// that is dropped cannot keep a reference on the event loop.
|
|
45
|
+
~CallCookie()
|
|
46
|
+
{
|
|
47
|
+
if (static_cast<napi_threadsafe_function>(_ttsf) != nullptr) {
|
|
48
|
+
_ttsf.Release();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
void invoke(FwdFunc &&callback)
|
|
40
53
|
{
|
|
41
|
-
|
|
42
|
-
_ttsf.
|
|
54
|
+
auto *fn = new FwdFunc(std::move(callback));
|
|
55
|
+
auto status = _ttsf.BlockingCall(fn);
|
|
56
|
+
if (status != napi_ok) {
|
|
57
|
+
// BlockingCall only takes ownership of fn once the item is queued,
|
|
58
|
+
// so on failure it is still ours to free.
|
|
59
|
+
CB_LOG_WARNING("Unable to queue callback for execution (status={})",
|
|
60
|
+
static_cast<int>(status));
|
|
61
|
+
delete fn;
|
|
62
|
+
}
|
|
63
|
+
std::exchange(_ttsf, CallCookieTTSF()).Release();
|
|
43
64
|
}
|
|
44
65
|
|
|
45
66
|
private:
|
package/src/jstocbpp_errors.hpp
CHANGED
|
@@ -69,6 +69,9 @@ struct js_to_cbpp_t<couchbase::core::key_value_error_context> {
|
|
|
69
69
|
err.Set("ctxtype", Napi::String::New(env, "key_value"));
|
|
70
70
|
err.Set("code", cbpp_to_js(env, ctx.ec().value()));
|
|
71
71
|
err.Set("id", cbpp_to_js(env, ctx.id()));
|
|
72
|
+
err.Set("bucket", cbpp_to_js(env, ctx.bucket()));
|
|
73
|
+
err.Set("scope", cbpp_to_js(env, ctx.scope()));
|
|
74
|
+
err.Set("collection", cbpp_to_js(env, ctx.collection()));
|
|
72
75
|
err.Set("opaque", cbpp_to_js(env, ctx.opaque()));
|
|
73
76
|
err.Set("cas", cbpp_to_js(env, ctx.cas()));
|
|
74
77
|
err.Set("status_code", cbpp_to_js(env, ctx.status_code()));
|
|
@@ -100,6 +103,9 @@ struct js_to_cbpp_t<couchbase::core::subdocument_error_context> {
|
|
|
100
103
|
err.Set("ctxtype", Napi::String::New(env, "subdocument"));
|
|
101
104
|
err.Set("code", cbpp_to_js(env, ctx.ec().value()));
|
|
102
105
|
err.Set("id", cbpp_to_js(env, ctx.id()));
|
|
106
|
+
err.Set("bucket", cbpp_to_js(env, ctx.bucket()));
|
|
107
|
+
err.Set("scope", cbpp_to_js(env, ctx.scope()));
|
|
108
|
+
err.Set("collection", cbpp_to_js(env, ctx.collection()));
|
|
103
109
|
err.Set("opaque", cbpp_to_js(env, ctx.opaque()));
|
|
104
110
|
err.Set("cas", cbpp_to_js(env, ctx.cas()));
|
|
105
111
|
err.Set("status_code", cbpp_to_js(env, ctx.status_code()));
|