@elu-labs/analytics-browser 1.410.1 → 1.410.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 +92 -227
- package/NOTICE-ELU +15 -3
- package/README.md +56 -28
- package/THIRD_PARTY_NOTICES.txt +480 -9
- package/dist/cold-session.mjs.map +1 -1
- package/dist/elu.js +1 -1
- package/dist/elu.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/recorder.js.map +1 -1
- package/dist/recorder.mjs.map +1 -1
- package/dist/storage.js +1 -1
- package/dist/storage.js.map +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,230 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
94
|
-
where such license applies only to those patent claims licensable
|
|
95
|
-
by such Contributor that are necessarily infringed by their
|
|
96
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
97
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
98
|
-
institute patent litigation against any entity (including a
|
|
99
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
100
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
101
|
-
or contributory patent infringement, then any patent licenses
|
|
102
|
-
granted to You under this License for that Work shall terminate
|
|
103
|
-
as of the date such litigation is filed.
|
|
104
|
-
|
|
105
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
106
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
107
|
-
modifications, and in Source or Object form, provided that You
|
|
108
|
-
meet the following conditions:
|
|
109
|
-
|
|
110
|
-
(a) You must give any other recipients of the Work or
|
|
111
|
-
Derivative Works a copy of this License; and
|
|
112
|
-
|
|
113
|
-
(b) You must cause any modified files to carry prominent notices
|
|
114
|
-
stating that You changed the files; and
|
|
115
|
-
|
|
116
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
117
|
-
that You distribute, all copyright, patent, trademark, and
|
|
118
|
-
attribution notices from the Source form of the Work,
|
|
119
|
-
excluding those notices that do not pertain to any part of
|
|
120
|
-
the Derivative Works; and
|
|
121
|
-
|
|
122
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
123
|
-
distribution, then any Derivative Works that You distribute must
|
|
124
|
-
include a readable copy of the attribution notices contained
|
|
125
|
-
within such NOTICE file, excluding those notices that do not
|
|
126
|
-
pertain to any part of the Derivative Works, in at least one
|
|
127
|
-
of the following places: within a NOTICE text file distributed
|
|
128
|
-
as part of the Derivative Works; within the Source form or
|
|
129
|
-
documentation, if provided along with the Derivative Works; or,
|
|
130
|
-
within a display generated by the Derivative Works, if and
|
|
131
|
-
wherever such third-party notices normally appear. The contents
|
|
132
|
-
of the NOTICE file are for informational purposes only and
|
|
133
|
-
do not modify the License. You may add Your own attribution
|
|
134
|
-
notices within Derivative Works that You distribute, alongside
|
|
135
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
136
|
-
that such additional attribution notices cannot be construed
|
|
137
|
-
as modifying the License.
|
|
138
|
-
|
|
139
|
-
You may add Your own copyright statement to Your modifications and
|
|
140
|
-
may provide additional or different license terms and conditions
|
|
141
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
142
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
143
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
144
|
-
the conditions stated in this License.
|
|
145
|
-
|
|
146
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
147
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
148
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
149
|
-
this License, without any additional terms or conditions.
|
|
150
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
151
|
-
the terms of any separate license agreement you may have executed
|
|
152
|
-
with Licensor regarding such Contributions.
|
|
153
|
-
|
|
154
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
155
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
156
|
-
except as required for reasonable and customary use in describing the
|
|
157
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
158
|
-
|
|
159
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
160
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
161
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
162
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
163
|
-
implied, including, without limitation, any warranties or conditions
|
|
164
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
165
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
166
|
-
appropriateness of using or redistributing the Work and assume any
|
|
167
|
-
risks associated with Your exercise of permissions under this License.
|
|
168
|
-
|
|
169
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
170
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
171
|
-
unless required by applicable law (such as deliberate and grossly
|
|
172
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
173
|
-
liable to You for damages, including any direct, indirect, special,
|
|
174
|
-
incidental, or consequential damages of any character arising as a
|
|
175
|
-
result of this License or out of the use or inability to use the
|
|
176
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
177
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
178
|
-
other commercial damages or losses), even if such Contributor
|
|
179
|
-
has been advised of the possibility of such damages.
|
|
180
|
-
|
|
181
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
182
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
183
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
184
|
-
or other liability obligations and/or rights consistent with this
|
|
185
|
-
License. However, in accepting such obligations, You may act only
|
|
186
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
187
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
188
|
-
defend, and hold each Contributor harmless for any liability
|
|
189
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
190
|
-
of your accepting any such warranty or additional liability.
|
|
191
|
-
|
|
192
|
-
END OF TERMS AND CONDITIONS
|
|
193
|
-
|
|
194
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
195
|
-
|
|
196
|
-
To apply the Apache License to your work, attach the following
|
|
197
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
198
|
-
replaced with your own identifying information. (Don't include
|
|
199
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
200
|
-
comment syntax for the file format. We also recommend that a
|
|
201
|
-
file or class name and description of purpose be included on the
|
|
202
|
-
same "printed page" as the copyright notice for easier
|
|
203
|
-
identification within third-party archives.
|
|
204
|
-
|
|
205
|
-
Copyright [yyyy] [name of copyright owner]
|
|
206
|
-
|
|
207
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
208
|
-
you may not use this file except in compliance with the License.
|
|
209
|
-
You may obtain a copy of the License at
|
|
210
|
-
|
|
211
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
212
|
-
|
|
213
|
-
Unless required by applicable law or agreed to in writing, software
|
|
214
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
215
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
216
|
-
See the License for the specific language governing permissions and
|
|
217
|
-
limitations under the License.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
Some files in this codebase contain code from getsentry/sentry-javascript.
|
|
223
|
-
In such cases it is explicitly stated in the file header. This license only applies to the relevant code in such cases.
|
|
224
|
-
|
|
225
|
-
MIT License
|
|
226
|
-
|
|
227
|
-
Copyright (c) 2012 Functional Software, Inc. dba Sentry
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 ELU Labs, Inc.
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
228
93
|
|
|
229
94
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
230
95
|
this software and associated documentation files (the "Software"), to deal in
|
package/NOTICE-ELU
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
ELU Analytics JavaScript SDK
|
|
2
|
+
Copyright 2026 ELU Labs, Inc.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
This distribution is made available under the Functional Source License,
|
|
5
|
+
Version 1.1, MIT Future License (FSL-1.1-MIT) — see LICENSE. Each version
|
|
6
|
+
also becomes available under the MIT License on the second anniversary of
|
|
7
|
+
the date it is made available, as provided in LICENSE.
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
FSL-1.1-MIT governs ELU Labs' contributions and the combined source offering,
|
|
10
|
+
subject to separately licensed files and components. It does not relicense
|
|
11
|
+
third-party portions or other code carrying separate Apache-2.0, MIT, or ISC
|
|
12
|
+
license grants. The applicable upstream licenses and copyright notices are
|
|
13
|
+
preserved in THIRD_PARTY_NOTICES.txt and must be retained as those licenses
|
|
14
|
+
require.
|
|
15
|
+
|
|
16
|
+
This change does not revoke rights previously granted under permissive
|
|
17
|
+
licenses, including those granted with @elu-labs/analytics-browser versions
|
|
18
|
+
1.410.0 and 1.410.1. Separately licensed files retain their existing notices.
|
package/README.md
CHANGED
|
@@ -32,13 +32,10 @@ still return `undefined`.
|
|
|
32
32
|
|
|
33
33
|
## NPM installation
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
Script snippet supplied in ELU settings and
|
|
37
|
-
contact ELU support about project activation. Installing the package does not
|
|
38
|
-
activate a project or upgrade an existing script installation.
|
|
35
|
+
Install the package and use the site key from your ELU project's Web settings.
|
|
39
36
|
|
|
40
37
|
```sh
|
|
41
|
-
npm install @elu-labs/analytics-browser@
|
|
38
|
+
npm install @elu-labs/analytics-browser@latest
|
|
42
39
|
```
|
|
43
40
|
|
|
44
41
|
The page itself must use HTTPS, including during local development. Serve your
|
|
@@ -52,15 +49,28 @@ and reuse the returned client:
|
|
|
52
49
|
```ts
|
|
53
50
|
import { createEluClient } from '@elu-labs/analytics-browser'
|
|
54
51
|
|
|
55
|
-
const elu = createEluClient('YOUR_SITE_KEY'
|
|
56
|
-
capture_pageview: 'history_change',
|
|
57
|
-
autocapture: true,
|
|
58
|
-
capture_exceptions: false,
|
|
59
|
-
})
|
|
52
|
+
const elu = createEluClient('YOUR_SITE_KEY')
|
|
60
53
|
|
|
61
54
|
elu.capture('checkout_started', { source: 'pricing_page' })
|
|
62
55
|
```
|
|
63
56
|
|
|
57
|
+
For an ELU collection instance on your own domain, set its HTTPS origin:
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
const elu = createEluClient('YOUR_SITE_KEY', {
|
|
61
|
+
api_host: 'https://analytics.example.com',
|
|
62
|
+
})
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The instance must serve the events, flags and replay endpoints authorized by
|
|
66
|
+
your site's ELU configuration. Its recorder assets use the same origin unless
|
|
67
|
+
you supply `assets_host`. Cloud defaults need no host options. Origins cannot
|
|
68
|
+
contain a path, query, fragment or credentials, and cannot change after the
|
|
69
|
+
first successful client initialization on a page. A served configuration cannot
|
|
70
|
+
redirect collection or recorder requests to another origin. Site configuration
|
|
71
|
+
and the shared storage module still load from ELU's control plane; these options
|
|
72
|
+
do not relocate that service.
|
|
73
|
+
|
|
64
74
|
The package exports `createEluClient` and the TypeScript type `EluClient`. ESM
|
|
65
75
|
and CommonJS root imports are supported. Importing the package does not
|
|
66
76
|
initialize analytics. Call the factory only in a browser, never while rendering
|
|
@@ -70,18 +80,21 @@ than creating one on every render or mount. The NPM client does not create
|
|
|
70
80
|
|
|
71
81
|
### Initialization options
|
|
72
82
|
|
|
73
|
-
| Option
|
|
74
|
-
|
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
83
|
+
| Option | Default | Behavior |
|
|
84
|
+
| -------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
|
+
| `api_host` | ELU Cloud | HTTPS origin for your instance's events, flags and replay. Site authority must permit the same endpoints. |
|
|
86
|
+
| `assets_host` | Instance origin, or ELU Cloud assets for the Cloud ingest origin | Optional separate HTTPS origin for recorder assets. |
|
|
87
|
+
| `capture_pageview` | `'history_change'` | Initial pageview plus History API and hash-route changes. `true` captures the initial pageview only; `false` disables automatic pageviews. |
|
|
88
|
+
| `autocapture` | `true` | Enables automatic interaction capture, subject to site policy and consent. |
|
|
89
|
+
| `capture_exceptions` | `false` | Set `true` for unhandled errors and promise rejections. Manual `captureException()` remains available. |
|
|
90
|
+
| `capture_network_requests` | `true` | Set `false` to stop reporting fetch/XHR requests. Each report carries method, status, timing and a scrubbed path only — never query strings, headers or bodies. Up to 200 per page. |
|
|
91
|
+
| `capture_performance` | Off unless enabled in ELU | `true` enables memory and long-task samples; `false` disables both. An object overrides individual settings; see below. |
|
|
92
|
+
| `loaded(client)` | None | Runs after local startup and before the initial automatic pageview. It does not mean configuration, flags or delivery have completed. An async callback is not awaited. |
|
|
80
93
|
|
|
81
94
|
The script loader chooses its startup options; changing NPM options does not
|
|
82
95
|
configure a script installation. Replay and privacy settings come from ELU.
|
|
83
96
|
There is no public `startSessionRecording()`, `stopSessionRecording()`,
|
|
84
|
-
`set_config()` or
|
|
97
|
+
`set_config()` or per-request endpoint override on this client.
|
|
85
98
|
|
|
86
99
|
## Optional performance samples
|
|
87
100
|
|
|
@@ -90,11 +103,11 @@ initialization options enable it. For the NPM client, you can opt in explicitly:
|
|
|
90
103
|
|
|
91
104
|
```ts
|
|
92
105
|
const elu = createEluClient('YOUR_SITE_KEY', {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
106
|
+
capture_performance: {
|
|
107
|
+
memory: true,
|
|
108
|
+
long_tasks: true,
|
|
109
|
+
sample_interval_ms: 30_000,
|
|
110
|
+
},
|
|
98
111
|
})
|
|
99
112
|
```
|
|
100
113
|
|
|
@@ -175,9 +188,9 @@ handle it separately from an explicit `false`:
|
|
|
175
188
|
|
|
176
189
|
```ts
|
|
177
190
|
const unsubscribe = elu.onFeatureFlags((_keys, _variants, context) => {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
191
|
+
if (context?.errorsLoading) return
|
|
192
|
+
const enabled = elu.isFeatureEnabled('new_checkout', { defaultValue: false })
|
|
193
|
+
// Render the new checkout only when enabled === true.
|
|
181
194
|
})
|
|
182
195
|
|
|
183
196
|
// When the component is disposed:
|
|
@@ -194,7 +207,7 @@ server-side authorization boundary.
|
|
|
194
207
|
## Other common operations
|
|
195
208
|
|
|
196
209
|
```ts
|
|
197
|
-
elu.register({ app_area: 'dashboard' })
|
|
210
|
+
elu.register({ app_area: 'dashboard' }) // Properties on later events
|
|
198
211
|
elu.register_once({ first_campaign: 'docs' })
|
|
199
212
|
elu.unregister('app_area')
|
|
200
213
|
elu.setPersonProperties({ plan: 'business' })
|
|
@@ -205,4 +218,19 @@ elu.captureException(new Error('Upload failed'), { operation: 'upload' })
|
|
|
205
218
|
non-sensitive test event in ELU; a script download or method return alone does
|
|
206
219
|
not prove ingestion.
|
|
207
220
|
|
|
208
|
-
|
|
221
|
+
## License
|
|
222
|
+
|
|
223
|
+
ELU contributions and the combined work in this source revision are offered
|
|
224
|
+
under [FSL-1.1-MIT](LICENSE), subject to separately licensed files and components,
|
|
225
|
+
matching the ELU Analytics engine. Ordinary integrations
|
|
226
|
+
into your own applications, including commercial applications, are permitted
|
|
227
|
+
when they do not constitute the license's defined **Competing Use**. That
|
|
228
|
+
restriction concerns making the software available to others in a competing
|
|
229
|
+
commercial product or service. Each covered version also becomes available
|
|
230
|
+
under MIT two years after ELU makes that version available.
|
|
231
|
+
|
|
232
|
+
Upstream components retain their Apache-2.0, MIT, and ISC terms. The package
|
|
233
|
+
includes `LICENSE`, `NOTICE-ELU`, and `THIRD_PARTY_NOTICES.txt` with the applicable
|
|
234
|
+
terms and attribution. Previously published npm versions **1.410.0** and
|
|
235
|
+
**1.410.1** retain their original license terms; this source change does not
|
|
236
|
+
republish or relicense those releases.
|