@zuplo/cli 7.15.0 → 7.15.3
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/LICENSE.third-party.txt +236 -0
- package/LICENSE.txt +5 -78
- package/README.md +18 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
- package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.js +17 -2
- package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.mjs +17 -2
- package/node_modules/@posthog/core/dist/logs/index.d.ts +18 -1
- package/node_modules/@posthog/core/dist/logs/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/logs/index.js +22 -3
- package/node_modules/@posthog/core/dist/logs/index.mjs +22 -3
- package/node_modules/@posthog/core/dist/metrics/index.d.ts +9 -0
- package/node_modules/@posthog/core/dist/metrics/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/metrics/index.js +13 -0
- package/node_modules/@posthog/core/dist/metrics/index.mjs +13 -0
- package/node_modules/@posthog/core/dist/privacy.d.ts +6 -1
- package/node_modules/@posthog/core/dist/privacy.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/privacy.js +69 -10
- package/node_modules/@posthog/core/dist/privacy.mjs +65 -9
- package/node_modules/@posthog/core/dist/traces/span.d.ts +6 -0
- package/node_modules/@posthog/core/dist/traces/span.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/traces/span.js +18 -0
- package/node_modules/@posthog/core/dist/traces/span.mjs +18 -0
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/featureFlagLocalEvaluation.ts +23 -2
- package/node_modules/@posthog/core/src/logs/index.spec.ts +119 -0
- package/node_modules/@posthog/core/src/logs/index.ts +57 -3
- package/node_modules/@posthog/core/src/metrics/index.spec.ts +70 -0
- package/node_modules/@posthog/core/src/metrics/index.ts +30 -0
- package/node_modules/@posthog/core/src/privacy.ts +100 -18
- package/node_modules/@posthog/core/src/traces/span.spec.ts +15 -1
- package/node_modules/@posthog/core/src/traces/span.ts +23 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +4 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/traces.d.ts +10 -0
- package/node_modules/@posthog/types/dist/traces.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +4 -0
- package/node_modules/@posthog/types/src/traces.ts +12 -0
- package/node_modules/@zuplo/core/LICENSE.third-party.txt +622 -0
- package/node_modules/@zuplo/core/LICENSE.txt +5 -78
- package/node_modules/@zuplo/core/README.md +7 -0
- package/node_modules/@zuplo/core/constants.minified.js +7 -20
- package/node_modules/@zuplo/core/customer.cli.minified.js +243 -256
- package/node_modules/@zuplo/core/index.minified.js +248 -261
- package/node_modules/@zuplo/core/package.json +4 -2
- package/node_modules/@zuplo/core/zeno.js +7 -20
- package/node_modules/@zuplo/graphql/LICENSE.third-party.txt +29 -0
- package/node_modules/@zuplo/graphql/LICENSE.txt +5 -78
- package/node_modules/@zuplo/graphql/README.md +7 -0
- package/node_modules/@zuplo/graphql/out/esm/index.js +7 -20
- package/node_modules/@zuplo/graphql/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/graphql/package.json +3 -2
- package/node_modules/@zuplo/openapi-tools/LICENSE.txt +7 -0
- package/node_modules/@zuplo/openapi-tools/README.md +7 -0
- package/node_modules/@zuplo/openapi-tools/package.json +3 -2
- package/node_modules/@zuplo/otel/LICENSE.third-party.txt +243 -0
- package/node_modules/@zuplo/otel/LICENSE.txt +5 -78
- package/node_modules/@zuplo/otel/README.md +33 -0
- package/node_modules/@zuplo/otel/out/esm/chunk-6YAK7LGJ.js +13 -0
- package/node_modules/@zuplo/otel/out/esm/chunk-6YAK7LGJ.js.map +1 -0
- package/node_modules/@zuplo/otel/out/esm/index.js +8 -21
- package/node_modules/@zuplo/otel/out/types/index.d.ts +41 -0
- package/node_modules/@zuplo/otel/package.json +3 -2
- package/node_modules/@zuplo/runtime/LICENSE.third-party.txt +511 -0
- package/node_modules/@zuplo/runtime/LICENSE.txt +5 -78
- package/node_modules/@zuplo/runtime/README.md +7 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-5JGLAPFA.js +13 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-5JGLAPFA.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-SX6JF7A6.js → chunk-AJ3MMWJS.js} +9 -22
- package/node_modules/@zuplo/runtime/out/esm/chunk-AJ3MMWJS.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-BH4DKEES.js +13 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-BH4DKEES.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-G42UYZ6V.js +24 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-M4IZPJP6.js.map → chunk-G42UYZ6V.js.map} +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-OE2WMJXK.js +431 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-OE2WMJXK.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-R6UNMRUU.js +13 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-R6UNMRUU.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-GWGCD6Z7.js → chunk-T2WKOG7J.js} +9 -22
- package/node_modules/@zuplo/runtime/out/esm/chunk-T2WKOG7J.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-HTXNM72E.js → chunk-TOJD4RET.js} +9 -22
- package/node_modules/@zuplo/runtime/out/esm/chunk-TOJD4RET.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-VXPFMOL5.js +13 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-VXPFMOL5.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +8 -21
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/internal/index.js +8 -21
- package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +8 -21
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +11 -39
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +8 -21
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +8 -21
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +248 -6
- package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +101 -0
- package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +127 -0
- package/node_modules/@zuplo/runtime/package.json +3 -2
- package/node_modules/express-rate-limit/dist/index.cjs +33 -4
- package/node_modules/express-rate-limit/dist/index.mjs +33 -4
- package/node_modules/express-rate-limit/package.json +1 -1
- package/package.json +12 -11
- package/node_modules/@zuplo/otel/out/esm/chunk-PVCAT62X.js +0 -26
- package/node_modules/@zuplo/otel/out/esm/chunk-PVCAT62X.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-A3QGJZO7.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-A3QGJZO7.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-F4G3YEN2.js +0 -429
- package/node_modules/@zuplo/runtime/out/esm/chunk-F4G3YEN2.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-GWGCD6Z7.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-HTXNM72E.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-M4IZPJP6.js +0 -37
- package/node_modules/@zuplo/runtime/out/esm/chunk-SX6JF7A6.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-TYV53J3B.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-TYV53J3B.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-UKQQD2JN.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-UKQQD2JN.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-VP5Q3DEN.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-VP5Q3DEN.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-M4IZPJP6.js.LEGAL.txt → chunk-G42UYZ6V.js.LEGAL.txt} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-F4G3YEN2.js.LEGAL.txt → chunk-OE2WMJXK.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
This package includes code from the open source projects below, each
|
|
2
|
+
under its own license. The license texts follow.
|
|
3
|
+
|
|
4
|
+
==============================================================================
|
|
5
|
+
node-machine-id
|
|
6
|
+
https://github.com/automation-stack/node-machine-id
|
|
7
|
+
==============================================================================
|
|
8
|
+
|
|
9
|
+
The MIT License (MIT)
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2016 Aleksandr Komlev
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
|
|
31
|
+
==============================================================================
|
|
32
|
+
Vercel CLI (box output)
|
|
33
|
+
https://github.com/vercel/vercel
|
|
34
|
+
==============================================================================
|
|
35
|
+
|
|
36
|
+
Apache License
|
|
37
|
+
Version 2.0, January 2004
|
|
38
|
+
http://www.apache.org/licenses/
|
|
39
|
+
|
|
40
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
41
|
+
|
|
42
|
+
1. Definitions.
|
|
43
|
+
|
|
44
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
45
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
46
|
+
|
|
47
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
48
|
+
the copyright owner that is granting the License.
|
|
49
|
+
|
|
50
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
51
|
+
other entities that control, are controlled by, or are under common
|
|
52
|
+
control with that entity. For the purposes of this definition,
|
|
53
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
54
|
+
direction or management of such entity, whether by contract or
|
|
55
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
56
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
57
|
+
|
|
58
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
59
|
+
exercising permissions granted by this License.
|
|
60
|
+
|
|
61
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
62
|
+
including but not limited to software source code, documentation
|
|
63
|
+
source, and configuration files.
|
|
64
|
+
|
|
65
|
+
"Object" form shall mean any form resulting from mechanical
|
|
66
|
+
transformation or translation of a Source form, including but
|
|
67
|
+
not limited to compiled object code, generated documentation,
|
|
68
|
+
and conversions to other media types.
|
|
69
|
+
|
|
70
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
71
|
+
Object form, made available under the License, as indicated by a
|
|
72
|
+
copyright notice that is included in or attached to the work
|
|
73
|
+
(an example is provided in the Appendix below).
|
|
74
|
+
|
|
75
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
76
|
+
form, that is based on (or derived from) the Work and for which the
|
|
77
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
78
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
79
|
+
of this License, Derivative Works shall not include works that remain
|
|
80
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
81
|
+
the Work and Derivative Works thereof.
|
|
82
|
+
|
|
83
|
+
"Contribution" shall mean any work of authorship, including
|
|
84
|
+
the original version of the Work and any modifications or additions
|
|
85
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
86
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
87
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
88
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
89
|
+
means any form of electronic, verbal, or written communication sent
|
|
90
|
+
to the Licensor or its representatives, including but not limited to
|
|
91
|
+
communication on electronic mailing lists, source code control systems,
|
|
92
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
93
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
94
|
+
excluding communication that is conspicuously marked or otherwise
|
|
95
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
96
|
+
|
|
97
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
98
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
99
|
+
subsequently incorporated within the Work.
|
|
100
|
+
|
|
101
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
102
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
103
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
104
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
105
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
106
|
+
Work and such Derivative Works in Source or Object form.
|
|
107
|
+
|
|
108
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
109
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
110
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
111
|
+
(except as stated in this section) patent license to make, have made,
|
|
112
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
113
|
+
where such license applies only to those patent claims licensable
|
|
114
|
+
by such Contributor that are necessarily infringed by their
|
|
115
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
116
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
117
|
+
institute patent litigation against any entity (including a
|
|
118
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
119
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
120
|
+
or contributory patent infringement, then any patent licenses
|
|
121
|
+
granted to You under this License for that Work shall terminate
|
|
122
|
+
as of the date such litigation is filed.
|
|
123
|
+
|
|
124
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
125
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
126
|
+
modifications, and in Source or Object form, provided that You
|
|
127
|
+
meet the following conditions:
|
|
128
|
+
|
|
129
|
+
(a) You must give any other recipients of the Work or
|
|
130
|
+
Derivative Works a copy of this License; and
|
|
131
|
+
|
|
132
|
+
(b) You must cause any modified files to carry prominent notices
|
|
133
|
+
stating that You changed the files; and
|
|
134
|
+
|
|
135
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
136
|
+
that You distribute, all copyright, patent, trademark, and
|
|
137
|
+
attribution notices from the Source form of the Work,
|
|
138
|
+
excluding those notices that do not pertain to any part of
|
|
139
|
+
the Derivative Works; and
|
|
140
|
+
|
|
141
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
142
|
+
distribution, then any Derivative Works that You distribute must
|
|
143
|
+
include a readable copy of the attribution notices contained
|
|
144
|
+
within such NOTICE file, excluding those notices that do not
|
|
145
|
+
pertain to any part of the Derivative Works, in at least one
|
|
146
|
+
of the following places: within a NOTICE text file distributed
|
|
147
|
+
as part of the Derivative Works; within the Source form or
|
|
148
|
+
documentation, if provided along with the Derivative Works; or,
|
|
149
|
+
within a display generated by the Derivative Works, if and
|
|
150
|
+
wherever such third-party notices normally appear. The contents
|
|
151
|
+
of the NOTICE file are for informational purposes only and
|
|
152
|
+
do not modify the License. You may add Your own attribution
|
|
153
|
+
notices within Derivative Works that You distribute, alongside
|
|
154
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
155
|
+
that such additional attribution notices cannot be construed
|
|
156
|
+
as modifying the License.
|
|
157
|
+
|
|
158
|
+
You may add Your own copyright statement to Your modifications and
|
|
159
|
+
may provide additional or different license terms and conditions
|
|
160
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
161
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
162
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
163
|
+
the conditions stated in this License.
|
|
164
|
+
|
|
165
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
166
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
167
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
168
|
+
this License, without any additional terms or conditions.
|
|
169
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
170
|
+
the terms of any separate license agreement you may have executed
|
|
171
|
+
with Licensor regarding such Contributions.
|
|
172
|
+
|
|
173
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
174
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
175
|
+
except as required for reasonable and customary use in describing the
|
|
176
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
177
|
+
|
|
178
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
179
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
180
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
181
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
182
|
+
implied, including, without limitation, any warranties or conditions
|
|
183
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
184
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
185
|
+
appropriateness of using or redistributing the Work and assume any
|
|
186
|
+
risks associated with Your exercise of permissions under this License.
|
|
187
|
+
|
|
188
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
189
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
190
|
+
unless required by applicable law (such as deliberate and grossly
|
|
191
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
192
|
+
liable to You for damages, including any direct, indirect, special,
|
|
193
|
+
incidental, or consequential damages of any character arising as a
|
|
194
|
+
result of this License or out of the use or inability to use the
|
|
195
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
196
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
197
|
+
other commercial damages or losses), even if such Contributor
|
|
198
|
+
has been advised of the possibility of such damages.
|
|
199
|
+
|
|
200
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
201
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
202
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
203
|
+
or other liability obligations and/or rights consistent with this
|
|
204
|
+
License. However, in accepting such obligations, You may act only
|
|
205
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
206
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
207
|
+
defend, and hold each Contributor harmless for any liability
|
|
208
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
209
|
+
of your accepting any such warranty or additional liability.
|
|
210
|
+
|
|
211
|
+
END OF TERMS AND CONDITIONS
|
|
212
|
+
|
|
213
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
214
|
+
|
|
215
|
+
To apply the Apache License to your work, attach the following
|
|
216
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
217
|
+
replaced with your own identifying information. (Don't include
|
|
218
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
219
|
+
comment syntax for the file format. We also recommend that a
|
|
220
|
+
file or class name and description of purpose be included on the
|
|
221
|
+
same "printed page" as the copyright notice for easier
|
|
222
|
+
identification within third-party archives.
|
|
223
|
+
|
|
224
|
+
Copyright 2017 Vercel, Inc.
|
|
225
|
+
|
|
226
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
227
|
+
you may not use this file except in compliance with the License.
|
|
228
|
+
You may obtain a copy of the License at
|
|
229
|
+
|
|
230
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
231
|
+
|
|
232
|
+
Unless required by applicable law or agreed to in writing, software
|
|
233
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
234
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
235
|
+
See the License for the specific language governing permissions and
|
|
236
|
+
limitations under the License.
|
package/LICENSE.txt
CHANGED
|
@@ -1,80 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Zuplo, Inc. All rights reserved.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"Software").
|
|
3
|
+
Use of this software is governed by the Zuplo Terms of Service at
|
|
4
|
+
https://zuplo.com/legal/terms, or by a separate agreement your company has
|
|
5
|
+
signed with Zuplo.
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
by the terms of this Agreement. If you do not agree, do not install or use the
|
|
10
|
-
Software.
|
|
11
|
-
|
|
12
|
-
## 1. License Grant
|
|
13
|
-
|
|
14
|
-
Subject to the terms of this Agreement, Zuplo grants you a limited,
|
|
15
|
-
non-exclusive, non-transferable, non-sublicensable license to use the Software
|
|
16
|
-
**solely for internal local development purposes** and **only if you are an
|
|
17
|
-
active customer of Zuplo**.
|
|
18
|
-
|
|
19
|
-
## 2. Restrictions
|
|
20
|
-
|
|
21
|
-
You may **not**:
|
|
22
|
-
|
|
23
|
-
- Distribute, sublicense, lease, rent, or otherwise make the Software available
|
|
24
|
-
to any third party;
|
|
25
|
-
- Use the Software for any commercial purpose other than in connection with your
|
|
26
|
-
authorized use of Zuplo services;
|
|
27
|
-
- Reverse engineer, decompile, disassemble, or attempt to derive the source code
|
|
28
|
-
of the Software;
|
|
29
|
-
- Use the Software if you are not a current customer of Zuplo.
|
|
30
|
-
|
|
31
|
-
## 3. Intellectual Property Ownership
|
|
32
|
-
|
|
33
|
-
All intellectual property rights in and to the Software — including but not
|
|
34
|
-
limited to all code, documentation, interfaces, design, and trademarks — are and
|
|
35
|
-
shall remain the exclusive property of Zuplo and its licensors.
|
|
36
|
-
This Agreement does not grant you any rights, title, or interest in or to any
|
|
37
|
-
trademarks, trade secrets, copyrights, patents, or other intellectual property
|
|
38
|
-
owned by Zuplo, except for the limited license expressly set forth in Section 1.
|
|
39
|
-
|
|
40
|
-
Any feedback, suggestions, or improvements you provide regarding the Software
|
|
41
|
-
may be freely used by Zuplo without any obligation to you.
|
|
42
|
-
|
|
43
|
-
## 4. Open Source Software Notice
|
|
44
|
-
|
|
45
|
-
The Software may include or rely on components that are subject to separate open
|
|
46
|
-
source licenses. These components are not governed by this Agreement but instead
|
|
47
|
-
by their respective licenses.
|
|
48
|
-
|
|
49
|
-
Copies of the applicable open source licenses are provided in the distribution
|
|
50
|
-
of the Software.
|
|
51
|
-
|
|
52
|
-
## 5. Termination
|
|
53
|
-
|
|
54
|
-
This license is effective until terminated. It will automatically terminate
|
|
55
|
-
without notice if you cease to be a customer of Zuplo or fail to comply with any
|
|
56
|
-
term of this Agreement. Upon termination, you must immediately cease all use of
|
|
57
|
-
the Software and destroy all copies.
|
|
58
|
-
|
|
59
|
-
## 6. No Warranty
|
|
60
|
-
|
|
61
|
-
The Software is provided "**as is**," without warranty of any kind, express or
|
|
62
|
-
implied, including but not limited to the implied warranties of merchantability
|
|
63
|
-
or fitness for a particular purpose.
|
|
64
|
-
|
|
65
|
-
## 7. Limitation of Liability
|
|
66
|
-
|
|
67
|
-
In no event shall Zuplo be liable for any indirect, incidental, special, or
|
|
68
|
-
consequential damages, or damages for loss of profits, revenue, data, or use,
|
|
69
|
-
incurred by you or any third party, whether in an action in contract or tort,
|
|
70
|
-
arising from your use of the Software.
|
|
71
|
-
|
|
72
|
-
## 8. Governing Law
|
|
73
|
-
|
|
74
|
-
This Agreement is governed by and construed in accordance with the laws of the
|
|
75
|
-
State of Delaware, without regard to its conflict of law principles.
|
|
76
|
-
|
|
77
|
-
## 9. Entire Agreement
|
|
78
|
-
|
|
79
|
-
This Agreement constitutes the entire agreement between the parties with respect
|
|
80
|
-
to the Software and supersedes all prior or contemporaneous understandings.
|
|
7
|
+
See https://zuplo.com/legal/eula for more information.
|
package/README.md
CHANGED
|
@@ -98,13 +98,28 @@ Commands:
|
|
|
98
98
|
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
## Usage data
|
|
102
|
+
|
|
103
|
+
The Zuplo CLI sends usage data and error reports to Zuplo. Usage data includes
|
|
104
|
+
the command you run, your Zuplo user ID (or, when you aren't logged in, an
|
|
105
|
+
identifier derived from your machine), the account and project names you pass,
|
|
106
|
+
whether it runs in CI, and your Node.js version, operating system, CPU
|
|
107
|
+
architecture, and package manager. To turn this off, set `ZUPLO_DO_NOT_TRACK=1`.
|
|
108
|
+
For how Zuplo handles this data, see the
|
|
109
|
+
[Zuplo Privacy Policy](https://zuplo.com/legal/privacy-policy).
|
|
110
|
+
|
|
111
|
+
## License
|
|
112
|
+
|
|
113
|
+
Copyright (c) Zuplo, Inc. All rights reserved. Use of this package is governed
|
|
114
|
+
by the [Zuplo Terms of Service](https://zuplo.com/legal/terms), or by a separate
|
|
115
|
+
agreement your company has signed with Zuplo. See `LICENSE.txt` and
|
|
116
|
+
[zuplo.com/legal/eula](https://zuplo.com/legal/eula).
|
|
117
|
+
|
|
101
118
|
# Changelog
|
|
102
119
|
|
|
103
120
|
## v3
|
|
104
121
|
|
|
105
|
-
- Version 3 requires Node.js 20.
|
|
106
|
-
(using Node.js 18) until September 30, 2024. We encourage you to upgrade to v3
|
|
107
|
-
as soon as possible.
|
|
122
|
+
- Version 3 requires Node.js 20.
|
|
108
123
|
|
|
109
124
|
## v2
|
|
110
125
|
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js
CHANGED
|
@@ -5,7 +5,7 @@ function isCloudflareWorkers() {
|
|
|
5
5
|
return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
|
|
6
6
|
}
|
|
7
7
|
let USER_AGENT;
|
|
8
|
-
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.
|
|
8
|
+
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
|
|
9
9
|
const customFetch = /* @__PURE__ */ Symbol();
|
|
10
10
|
async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
|
|
11
11
|
const response = await fetchImpl(url, {
|
|
@@ -87,6 +87,8 @@ function validateClaimsSet(protectedHeader, claimsSetBytes, options = {}) {
|
|
|
87
87
|
throw new JWTExpired('"exp" claim timestamp check failed', claimsSet, "exp", checkFailed);
|
|
88
88
|
if (maxTokenAge !== void 0) {
|
|
89
89
|
const age = now - iat, max = validateInput("maxTokenAge option", typeof maxTokenAge == "number" ? maxTokenAge : secs(maxTokenAge));
|
|
90
|
+
if (max < 0)
|
|
91
|
+
throw new TypeError("Invalid maxTokenAge option input");
|
|
90
92
|
if (age - tolerance > max)
|
|
91
93
|
throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)', claimsSet, "iat", checkFailed);
|
|
92
94
|
if (age < -tolerance)
|
|
@@ -5,7 +5,7 @@ function isCloudflareWorkers() {
|
|
|
5
5
|
return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
|
|
6
6
|
}
|
|
7
7
|
let USER_AGENT;
|
|
8
|
-
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.
|
|
8
|
+
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
|
|
9
9
|
const customFetch = /* @__PURE__ */ Symbol();
|
|
10
10
|
async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
|
|
11
11
|
const response = await fetchImpl(url, {
|
package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
CHANGED
|
@@ -87,6 +87,8 @@ function validateClaimsSet(protectedHeader, claimsSetBytes, options = {}) {
|
|
|
87
87
|
throw new JWTExpired('"exp" claim timestamp check failed', claimsSet, "exp", checkFailed);
|
|
88
88
|
if (maxTokenAge !== void 0) {
|
|
89
89
|
const age = now - iat, max = validateInput("maxTokenAge option", typeof maxTokenAge == "number" ? maxTokenAge : secs(maxTokenAge));
|
|
90
|
+
if (max < 0)
|
|
91
|
+
throw new TypeError("Invalid maxTokenAge option input");
|
|
90
92
|
if (age - tolerance > max)
|
|
91
93
|
throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)', claimsSet, "iat", checkFailed);
|
|
92
94
|
if (age < -tolerance)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureFlagLocalEvaluation.d.ts","sourceRoot":"","sources":["../src/featureFlagLocalEvaluation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEzD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAA;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,wBAAwB,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,QAAQ,GAAG,mBAAmB,CAAA;AAE3E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,mBAAmB,CAAC,EAAE,8BAA8B,CAAA;IACpD,mGAAmG;IACnG,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAqBD;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,wBAAwB,GACxB,iBAAiB,GACjB,uBAAuB,CAAA;AAE3B,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAA;IAErC,YAAY,OAAO,EAAE,MAAM,EAA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BAAkB,EAAE,GACtC,6BAA6B,EAAE,CASjC;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAK7B;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAC3E,SAAS,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GAC7C,QAAQ,GAAG,IAAI,CAMjB"}
|
|
@@ -417,13 +417,28 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
417
417
|
if ('h' === interval) parsedDt.setUTCHours(parsedDt.getUTCHours() - number);
|
|
418
418
|
else if ('d' === interval) parsedDt.setUTCDate(parsedDt.getUTCDate() - number);
|
|
419
419
|
else if ('w' === interval) parsedDt.setUTCDate(parsedDt.getUTCDate() - 7 * number);
|
|
420
|
-
else if ('m' === interval)
|
|
420
|
+
else if ('m' === interval) subtractUTCMonths(parsedDt, number);
|
|
421
421
|
else {
|
|
422
422
|
if ('y' !== interval) return null;
|
|
423
|
-
|
|
423
|
+
subtractUTCYears(parsedDt, number);
|
|
424
424
|
}
|
|
425
425
|
return parsedDt;
|
|
426
426
|
}
|
|
427
|
+
function subtractUTCMonths(date, months) {
|
|
428
|
+
const year = date.getUTCFullYear();
|
|
429
|
+
const month = date.getUTCMonth();
|
|
430
|
+
let day = date.getUTCDate();
|
|
431
|
+
for(let step = 1; step <= months && day > 28; step++){
|
|
432
|
+
const lastDayOfMonth = new Date(Date.UTC(year, month - step + 1, 0)).getUTCDate();
|
|
433
|
+
day = Math.min(day, lastDayOfMonth);
|
|
434
|
+
}
|
|
435
|
+
date.setUTCFullYear(year, month - months, day);
|
|
436
|
+
}
|
|
437
|
+
function subtractUTCYears(date, years) {
|
|
438
|
+
const month = date.getUTCMonth();
|
|
439
|
+
const day = years > 0 && 1 === month && 29 === date.getUTCDate() ? 28 : date.getUTCDate();
|
|
440
|
+
date.setUTCFullYear(date.getUTCFullYear() - years, month, day);
|
|
441
|
+
}
|
|
427
442
|
function parseDateFilter(value) {
|
|
428
443
|
if ('boolean' == typeof value) throw new InconclusiveMatchError('Date operations cannot be performed on boolean values');
|
|
429
444
|
return relativeDateParseForFeatureFlagMatching(String(value)) ?? convertToDateTime(value);
|
|
@@ -375,13 +375,28 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
375
375
|
if ('h' === interval) parsedDt.setUTCHours(parsedDt.getUTCHours() - number);
|
|
376
376
|
else if ('d' === interval) parsedDt.setUTCDate(parsedDt.getUTCDate() - number);
|
|
377
377
|
else if ('w' === interval) parsedDt.setUTCDate(parsedDt.getUTCDate() - 7 * number);
|
|
378
|
-
else if ('m' === interval)
|
|
378
|
+
else if ('m' === interval) subtractUTCMonths(parsedDt, number);
|
|
379
379
|
else {
|
|
380
380
|
if ('y' !== interval) return null;
|
|
381
|
-
|
|
381
|
+
subtractUTCYears(parsedDt, number);
|
|
382
382
|
}
|
|
383
383
|
return parsedDt;
|
|
384
384
|
}
|
|
385
|
+
function subtractUTCMonths(date, months) {
|
|
386
|
+
const year = date.getUTCFullYear();
|
|
387
|
+
const month = date.getUTCMonth();
|
|
388
|
+
let day = date.getUTCDate();
|
|
389
|
+
for(let step = 1; step <= months && day > 28; step++){
|
|
390
|
+
const lastDayOfMonth = new Date(Date.UTC(year, month - step + 1, 0)).getUTCDate();
|
|
391
|
+
day = Math.min(day, lastDayOfMonth);
|
|
392
|
+
}
|
|
393
|
+
date.setUTCFullYear(year, month - months, day);
|
|
394
|
+
}
|
|
395
|
+
function subtractUTCYears(date, years) {
|
|
396
|
+
const month = date.getUTCMonth();
|
|
397
|
+
const day = years > 0 && 1 === month && 29 === date.getUTCDate() ? 28 : date.getUTCDate();
|
|
398
|
+
date.setUTCFullYear(date.getUTCFullYear() - years, month, day);
|
|
399
|
+
}
|
|
385
400
|
function parseDateFilter(value) {
|
|
386
401
|
if ('boolean' == typeof value) throw new InconclusiveMatchError('Date operations cannot be performed on boolean values');
|
|
387
402
|
return relativeDateParseForFeatureFlagMatching(String(value)) ?? convertToDateTime(value);
|
|
@@ -8,6 +8,7 @@ export declare class PostHogLogs {
|
|
|
8
8
|
private readonly _onReady;
|
|
9
9
|
private readonly _waitForStoragePersist;
|
|
10
10
|
private readonly _scopeName?;
|
|
11
|
+
private readonly _isConsentWithdrawn;
|
|
11
12
|
private _maxBufferSize;
|
|
12
13
|
private _maxQueueSize;
|
|
13
14
|
private _flushIntervalMs;
|
|
@@ -16,6 +17,7 @@ export declare class PostHogLogs {
|
|
|
16
17
|
private _flushPromise;
|
|
17
18
|
private _evictedSinceAdvance;
|
|
18
19
|
private _queueGeneration;
|
|
20
|
+
private _backgroundFlushPromise;
|
|
19
21
|
private _retryAfter;
|
|
20
22
|
private _consecutiveFlushFailures;
|
|
21
23
|
private _flushJitter;
|
|
@@ -24,13 +26,15 @@ export declare class PostHogLogs {
|
|
|
24
26
|
private _intervalWindowStart;
|
|
25
27
|
private _intervalLogCount;
|
|
26
28
|
private _droppedWarned;
|
|
27
|
-
constructor(_instance: LogsHost, _config: ResolvedPostHogLogsConfig, _logger: Logger, _getContext: () => LogSdkContext, _onReady: (fn: () => void) => void, _waitForStoragePersist?: () => Promise<void>, _scopeName?: string | undefined);
|
|
29
|
+
constructor(_instance: LogsHost, _config: ResolvedPostHogLogsConfig, _logger: Logger, _getContext: () => LogSdkContext, _onReady: (fn: () => void) => void, _waitForStoragePersist?: () => Promise<void>, _scopeName?: string | undefined, _isConsentWithdrawn?: () => boolean);
|
|
28
30
|
/**
|
|
29
31
|
* Drops every queued record. A batch this instance has in flight is retired with
|
|
30
32
|
* them, so it can neither re-send what was just purged nor advance past records
|
|
31
33
|
* captured after this call.
|
|
32
34
|
*/
|
|
33
35
|
clearQueue(): void;
|
|
36
|
+
/** True while the endpoint's `Retry-After` window is open, so a host's automatic flush can skip logs. */
|
|
37
|
+
get throttled(): boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Clears the flush timer and rate-cap state. The host owns the record queue
|
|
36
40
|
* and clears it separately (the browser empties its in-memory store).
|
|
@@ -88,6 +92,12 @@ export declare class PostHogLogs {
|
|
|
88
92
|
*/
|
|
89
93
|
flush(): Promise<void>;
|
|
90
94
|
private _flushInner;
|
|
95
|
+
/**
|
|
96
|
+
* Drops the queue once consent is withdrawn. Records carry the distinct id and
|
|
97
|
+
* session id, so whatever is still queued when the user opts out must not be
|
|
98
|
+
* exported, by a pending timer or by a drain already under way.
|
|
99
|
+
*/
|
|
100
|
+
private _discardQueueIfConsentWithdrawn;
|
|
91
101
|
private _persistQueueAdvance;
|
|
92
102
|
private _buildResourceAttributes;
|
|
93
103
|
private _enqueue;
|
|
@@ -118,6 +128,13 @@ export declare class PostHogLogs {
|
|
|
118
128
|
* unhandled-rejection logs — the next regular flush cycle will retry.
|
|
119
129
|
*/
|
|
120
130
|
flushWithTimeout(timeoutMs: number): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* `flush()` for a host that drives logs from its own flush cycle. Never rejects, and when
|
|
133
|
+
* records remain (a failed send, or captures that landed mid-flush) re-arms the timer with
|
|
134
|
+
* backoff, as the pipeline's own timer flush does. A bare `flush()` clears the timer and
|
|
135
|
+
* leaves nothing to retry the records once traffic stops.
|
|
136
|
+
*/
|
|
137
|
+
flushInBackground(): Promise<void>;
|
|
121
138
|
private _flushInBackground;
|
|
122
139
|
}
|
|
123
140
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAA4B,MAAM,UAAU,CAAA;AAK3D,OAAO,KAAK,EAAoB,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,yBAAyB,EA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AAC,CA6BjC;IAED,OAAO,CAAC,kBAAkB;CAG3B"}
|
|
@@ -37,7 +37,7 @@ const flush_timer_js_namespaceObject = require("../utils/flush-timer.js");
|
|
|
37
37
|
const retry_after_js_namespaceObject = require("../utils/retry-after.js");
|
|
38
38
|
const backoff_js_namespaceObject = require("../utils/backoff.js");
|
|
39
39
|
class PostHogLogs {
|
|
40
|
-
constructor(_instance, _config, _logger, _getContext, _onReady, _waitForStoragePersist = ()=>Promise.resolve(), _scopeName){
|
|
40
|
+
constructor(_instance, _config, _logger, _getContext, _onReady, _waitForStoragePersist = ()=>Promise.resolve(), _scopeName, _isConsentWithdrawn = ()=>false){
|
|
41
41
|
this._instance = _instance;
|
|
42
42
|
this._config = _config;
|
|
43
43
|
this._logger = _logger;
|
|
@@ -45,10 +45,12 @@ class PostHogLogs {
|
|
|
45
45
|
this._onReady = _onReady;
|
|
46
46
|
this._waitForStoragePersist = _waitForStoragePersist;
|
|
47
47
|
this._scopeName = _scopeName;
|
|
48
|
+
this._isConsentWithdrawn = _isConsentWithdrawn;
|
|
48
49
|
this._flushTimer = new flush_timer_js_namespaceObject.FlushTimer(()=>this._flushInBackground());
|
|
49
50
|
this._flushPromise = null;
|
|
50
51
|
this._evictedSinceAdvance = 0;
|
|
51
52
|
this._queueGeneration = 0;
|
|
53
|
+
this._backgroundFlushPromise = null;
|
|
52
54
|
this._retryAfter = new retry_after_js_namespaceObject.RetryAfterWindow();
|
|
53
55
|
this._consecutiveFlushFailures = 0;
|
|
54
56
|
this._flushJitter = backoff_js_namespaceObject.NO_JITTER;
|
|
@@ -66,6 +68,9 @@ class PostHogLogs {
|
|
|
66
68
|
this._queueGeneration++;
|
|
67
69
|
this._instance.setPersistedProperty(external_types_js_namespaceObject.PostHogPersistedProperty.LogsQueue, []);
|
|
68
70
|
}
|
|
71
|
+
get throttled() {
|
|
72
|
+
return this._retryAfter.isOpen();
|
|
73
|
+
}
|
|
69
74
|
reset() {
|
|
70
75
|
this._flushTimer.clear();
|
|
71
76
|
this._intervalWindowStart = 0;
|
|
@@ -148,11 +153,13 @@ class PostHogLogs {
|
|
|
148
153
|
}
|
|
149
154
|
async _flushInner() {
|
|
150
155
|
this._flushTimer.clear();
|
|
156
|
+
if (this._discardQueueIfConsentWithdrawn()) return;
|
|
151
157
|
let queue = this._instance.getPersistedProperty(external_types_js_namespaceObject.PostHogPersistedProperty.LogsQueue) ?? [];
|
|
152
158
|
if (0 === queue.length) return;
|
|
153
159
|
const originalQueueLength = queue.length;
|
|
154
160
|
let sentCount = 0;
|
|
155
161
|
while(queue.length > 0 && sentCount < originalQueueLength){
|
|
162
|
+
if (this._discardQueueIfConsentWithdrawn()) return;
|
|
156
163
|
const generation = this._queueGeneration;
|
|
157
164
|
this._evictedSinceAdvance = 0;
|
|
158
165
|
const batchSize = Math.min(queue.length, this._maxBatchRecordsPerPost);
|
|
@@ -177,6 +184,11 @@ class PostHogLogs {
|
|
|
177
184
|
if ('fatal' === outcome.kind) throw outcome.error;
|
|
178
185
|
}
|
|
179
186
|
}
|
|
187
|
+
_discardQueueIfConsentWithdrawn() {
|
|
188
|
+
if (!this._isConsentWithdrawn()) return false;
|
|
189
|
+
if (this._hasQueuedRecords()) this.clearQueue();
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
180
192
|
async _persistQueueAdvance(consumed) {
|
|
181
193
|
const evicted = this._evictedSinceAdvance;
|
|
182
194
|
const drop = Math.max(0, consumed - evicted);
|
|
@@ -223,8 +235,9 @@ class PostHogLogs {
|
|
|
223
235
|
flushPromise.catch(()=>{});
|
|
224
236
|
});
|
|
225
237
|
}
|
|
226
|
-
|
|
227
|
-
this.
|
|
238
|
+
flushInBackground() {
|
|
239
|
+
if (this._backgroundFlushPromise) return this._backgroundFlushPromise;
|
|
240
|
+
const promise = this.flush().then(()=>{
|
|
228
241
|
this._consecutiveFlushFailures = 0;
|
|
229
242
|
this._flushJitter = backoff_js_namespaceObject.NO_JITTER;
|
|
230
243
|
}, (err)=>{
|
|
@@ -232,8 +245,14 @@ class PostHogLogs {
|
|
|
232
245
|
this._flushJitter = (0, backoff_js_namespaceObject.drawJitter)();
|
|
233
246
|
this._logger.error('PostHog logs flush failed:', err);
|
|
234
247
|
}).finally(()=>{
|
|
248
|
+
if (this._backgroundFlushPromise === promise) this._backgroundFlushPromise = null;
|
|
235
249
|
if (!this._instance.isDisabled && this._hasQueuedRecords()) this._flushTimer.armNoEarlierThan(this._nextFlushDelay());
|
|
236
250
|
});
|
|
251
|
+
this._backgroundFlushPromise = promise;
|
|
252
|
+
return promise;
|
|
253
|
+
}
|
|
254
|
+
_flushInBackground() {
|
|
255
|
+
this.flushInBackground();
|
|
237
256
|
}
|
|
238
257
|
}
|
|
239
258
|
exports.PostHogLogs = __webpack_exports__.PostHogLogs;
|