@nexly/web 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nexly.d.ts +1 -1
- package/dist/nexly.d.ts.map +1 -1
- package/dist/nexly.js +3 -3
- package/package.json +2 -2
package/dist/nexly.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { NexlyBase, type NexlyInit } from '@nexly/core';
|
|
|
4
4
|
* and metadata via DOM/Navigator APIs.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Nexly extends NexlyBase {
|
|
7
|
-
/** Creates (or replaces) the browser singleton. Default `client` is `
|
|
7
|
+
/** Creates (or replaces) the browser singleton. Default `client` is `NexlyClient.Web`. */
|
|
8
8
|
static init(options: NexlyInit): Nexly;
|
|
9
9
|
/** Returns the browser singleton, or `null` if not yet initialized. */
|
|
10
10
|
static getInstance(): Nexly | null;
|
package/dist/nexly.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nexly.d.ts","sourceRoot":"","sources":["../src/nexly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"nexly.d.ts","sourceRoot":"","sources":["../src/nexly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,KAAK,SAAS,EAAE,MAAM,aAAa,CAAA;AAMpE;;;GAGG;AACH,qBAAa,KAAM,SAAQ,SAAS;IAClC,0FAA0F;IAC1F,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,KAAK;IAMtC,uEAAuE;IACvE,MAAM,CAAC,WAAW,IAAI,KAAK,GAAG,IAAI;gBAItB,IAAI,EAAE,SAAS;cAIR,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;cAKpD,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAI9C,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI1D,cAAc,IAAI,MAAM;IAIxB,eAAe,IAAI,MAAM,IAAI;CASvC"}
|
package/dist/nexly.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NexlyBase } from '@nexly/core';
|
|
1
|
+
import { NexlyBase, NexlyClient } from '@nexly/core';
|
|
2
2
|
import { sendPayloadBeacon } from './beacon.js';
|
|
3
3
|
import { collectEventMeta, collectSessionMeta } from './browser-meta.js';
|
|
4
4
|
import { startEngagementTracking } from './events/engagement.js';
|
|
@@ -8,9 +8,9 @@ import { getDefaultPathname } from './events/pageview.js';
|
|
|
8
8
|
* and metadata via DOM/Navigator APIs.
|
|
9
9
|
*/
|
|
10
10
|
export class Nexly extends NexlyBase {
|
|
11
|
-
/** Creates (or replaces) the browser singleton. Default `client` is `
|
|
11
|
+
/** Creates (or replaces) the browser singleton. Default `client` is `NexlyClient.Web`. */
|
|
12
12
|
static init(options) {
|
|
13
|
-
const instance = new Nexly({ ...options, client: options.client ??
|
|
13
|
+
const instance = new Nexly({ ...options, client: options.client ?? NexlyClient.Web });
|
|
14
14
|
Nexly.setInstance(instance);
|
|
15
15
|
return instance;
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexly/web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Nexly browser ingest SDK: sendBeacon transport, DOM metadata, engagement listeners on top of @nexly/core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"node": ">=20"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@nexly/core": "0.
|
|
41
|
+
"@nexly/core": "0.12.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "~6.0.2"
|