@ninetailed/experience.js-next-esr 7.20.4 → 7.20.6
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/index.cjs.js +3 -8
- package/index.esm.js +3 -8
- package/package.json +3 -3
- package/src/index.d.ts +2 -2
- package/src/lib/absolute-url.d.ts +6 -6
- package/src/lib/build-esr-context.d.ts +5 -5
- package/src/lib/fetchEdgeProfile.d.ts +15 -15
- package/src/lib/selector.d.ts +39 -39
- package/src/lib/middleware.d.ts +0 -0
package/index.cjs.js
CHANGED
|
@@ -53,7 +53,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
53
53
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
54
54
|
PERFORMANCE OF THIS SOFTWARE.
|
|
55
55
|
***************************************************************************** */
|
|
56
|
-
/* global Reflect, Promise
|
|
56
|
+
/* global Reflect, Promise */
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
@@ -62,14 +62,9 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
62
62
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
63
63
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
64
64
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
65
|
-
step((generator = generator.apply(thisArg,
|
|
65
|
+
step((generator = generator.apply(thisArg, [])).next());
|
|
66
66
|
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
70
|
-
var e = new Error(message);
|
|
71
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
72
|
-
};
|
|
67
|
+
}
|
|
73
68
|
|
|
74
69
|
const fetchEdgeProfile = ({
|
|
75
70
|
ctx,
|
package/index.esm.js
CHANGED
|
@@ -51,7 +51,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
51
51
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
52
52
|
PERFORMANCE OF THIS SOFTWARE.
|
|
53
53
|
***************************************************************************** */
|
|
54
|
-
/* global Reflect, Promise
|
|
54
|
+
/* global Reflect, Promise */
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
@@ -60,14 +60,9 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
60
60
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
61
61
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
62
62
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
63
|
-
step((generator = generator.apply(thisArg,
|
|
63
|
+
step((generator = generator.apply(thisArg, [])).next());
|
|
64
64
|
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
68
|
-
var e = new Error(message);
|
|
69
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
70
|
-
};
|
|
65
|
+
}
|
|
71
66
|
|
|
72
67
|
const fetchEdgeProfile = ({
|
|
73
68
|
ctx,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js-next-esr",
|
|
3
|
-
"version": "7.20.
|
|
3
|
+
"version": "7.20.6",
|
|
4
4
|
"description": "Ninetailed SDK for Next.js ESR",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"next": "
|
|
31
|
+
"next": "16.1.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@ninetailed/experience.js-shared": "7.20.
|
|
34
|
+
"@ninetailed/experience.js-shared": "7.20.6",
|
|
35
35
|
"uuid": "9.0.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { buildNinetailedEdgeRequestContext } from './lib/build-esr-context';
|
|
2
|
-
export { fetchEdgeProfile } from './lib/fetchEdgeProfile';
|
|
1
|
+
export { buildNinetailedEdgeRequestContext } from './lib/build-esr-context';
|
|
2
|
+
export { fetchEdgeProfile } from './lib/fetchEdgeProfile';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NextRequest } from 'next/server';
|
|
2
|
-
export declare function absoluteUrl(req: NextRequest, localhostAddress?: string): {
|
|
3
|
-
protocol: string;
|
|
4
|
-
host: string;
|
|
5
|
-
origin: string;
|
|
6
|
-
};
|
|
1
|
+
import { NextRequest } from 'next/server';
|
|
2
|
+
export declare function absoluteUrl(req: NextRequest, localhostAddress?: string): {
|
|
3
|
+
protocol: string;
|
|
4
|
+
host: string;
|
|
5
|
+
origin: string;
|
|
6
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NextRequest } from 'next/server';
|
|
2
|
-
import { NinetailedRequestContext } from '@ninetailed/experience.js-shared';
|
|
3
|
-
export declare const buildNinetailedEdgeRequestContext: ({ req, }: {
|
|
4
|
-
req: NextRequest;
|
|
5
|
-
}) => NinetailedRequestContext;
|
|
1
|
+
import type { NextRequest } from 'next/server';
|
|
2
|
+
import { NinetailedRequestContext } from '@ninetailed/experience.js-shared';
|
|
3
|
+
export declare const buildNinetailedEdgeRequestContext: ({ req, }: {
|
|
4
|
+
req: NextRequest;
|
|
5
|
+
}) => NinetailedRequestContext;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Profile, GeoLocation, NinetailedRequestContext } from '@ninetailed/experience.js-shared';
|
|
2
|
-
type Cookies = {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
};
|
|
5
|
-
type GetServerSideProfileOptions = {
|
|
6
|
-
ctx: NinetailedRequestContext;
|
|
7
|
-
cookies: Cookies;
|
|
8
|
-
clientId: string;
|
|
9
|
-
environment?: string;
|
|
10
|
-
url?: string;
|
|
11
|
-
ip?: string;
|
|
12
|
-
location?: GeoLocation;
|
|
13
|
-
};
|
|
14
|
-
export declare const fetchEdgeProfile: ({ ctx, cookies, clientId, environment, url, ip, location, }: GetServerSideProfileOptions) => Promise<Profile>;
|
|
15
|
-
export {};
|
|
1
|
+
import { Profile, GeoLocation, NinetailedRequestContext } from '@ninetailed/experience.js-shared';
|
|
2
|
+
type Cookies = {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
type GetServerSideProfileOptions = {
|
|
6
|
+
ctx: NinetailedRequestContext;
|
|
7
|
+
cookies: Cookies;
|
|
8
|
+
clientId: string;
|
|
9
|
+
environment?: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
ip?: string;
|
|
12
|
+
location?: GeoLocation;
|
|
13
|
+
};
|
|
14
|
+
export declare const fetchEdgeProfile: ({ ctx, cookies, clientId, environment, url, ip, location, }: GetServerSideProfileOptions) => Promise<Profile>;
|
|
15
|
+
export {};
|
package/src/lib/selector.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
type SelectNinetailedProfileOptions = {
|
|
2
|
-
ninetailed: string;
|
|
3
|
-
};
|
|
4
|
-
export declare const selectNinetailedProfile: ({ ninetailed, }: SelectNinetailedProfileOptions) => {
|
|
5
|
-
id: string;
|
|
6
|
-
stableId: string;
|
|
7
|
-
random: number;
|
|
8
|
-
audiences: string[];
|
|
9
|
-
traits: import("@ninetailed/experience.js-shared").Properties;
|
|
10
|
-
location: {
|
|
11
|
-
coordinates?: {
|
|
12
|
-
latitude: number;
|
|
13
|
-
longitude: number;
|
|
14
|
-
} | undefined;
|
|
15
|
-
city?: string | undefined;
|
|
16
|
-
postalCode?: string | undefined;
|
|
17
|
-
region?: string | undefined;
|
|
18
|
-
regionCode?: string | undefined;
|
|
19
|
-
country?: string | undefined;
|
|
20
|
-
countryCode?: string | undefined;
|
|
21
|
-
continent?: string | undefined;
|
|
22
|
-
timezone?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
session: {
|
|
25
|
-
id: string;
|
|
26
|
-
isReturningVisitor: boolean;
|
|
27
|
-
landingPage: {
|
|
28
|
-
path: string;
|
|
29
|
-
url: string;
|
|
30
|
-
query: Record<string, string>;
|
|
31
|
-
referrer: string;
|
|
32
|
-
search: string;
|
|
33
|
-
};
|
|
34
|
-
count: number;
|
|
35
|
-
activeSessionLength: number;
|
|
36
|
-
averageSessionLength: number;
|
|
37
|
-
};
|
|
38
|
-
} | null;
|
|
39
|
-
export {};
|
|
1
|
+
type SelectNinetailedProfileOptions = {
|
|
2
|
+
ninetailed: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const selectNinetailedProfile: ({ ninetailed, }: SelectNinetailedProfileOptions) => {
|
|
5
|
+
id: string;
|
|
6
|
+
stableId: string;
|
|
7
|
+
random: number;
|
|
8
|
+
audiences: string[];
|
|
9
|
+
traits: import("@ninetailed/experience.js-shared").Properties;
|
|
10
|
+
location: {
|
|
11
|
+
coordinates?: {
|
|
12
|
+
latitude: number;
|
|
13
|
+
longitude: number;
|
|
14
|
+
} | undefined;
|
|
15
|
+
city?: string | undefined;
|
|
16
|
+
postalCode?: string | undefined;
|
|
17
|
+
region?: string | undefined;
|
|
18
|
+
regionCode?: string | undefined;
|
|
19
|
+
country?: string | undefined;
|
|
20
|
+
countryCode?: string | undefined;
|
|
21
|
+
continent?: string | undefined;
|
|
22
|
+
timezone?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
session: {
|
|
25
|
+
id: string;
|
|
26
|
+
isReturningVisitor: boolean;
|
|
27
|
+
landingPage: {
|
|
28
|
+
path: string;
|
|
29
|
+
url: string;
|
|
30
|
+
query: Record<string, string>;
|
|
31
|
+
referrer: string;
|
|
32
|
+
search: string;
|
|
33
|
+
};
|
|
34
|
+
count: number;
|
|
35
|
+
activeSessionLength: number;
|
|
36
|
+
averageSessionLength: number;
|
|
37
|
+
};
|
|
38
|
+
} | null;
|
|
39
|
+
export {};
|
package/src/lib/middleware.d.ts
DELETED
|
File without changes
|