@reactionary/provider-algolia 0.0.40 → 0.0.41

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@reactionary/provider-algolia",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
7
- "@reactionary/core": "0.0.40",
7
+ "@reactionary/core": "0.0.41",
8
8
  "algoliasearch": "^5.23.4",
9
9
  "zod": "4.1.9"
10
10
  }
@@ -0,0 +1,2 @@
1
+ import { Session } from "@reactionary/core";
2
+ export declare function createAnonymousTestSession(): Session;
@@ -0,0 +1,28 @@
1
+ function createAnonymousTestSession() {
2
+ return {
3
+ id: "test-session-id",
4
+ identity: {
5
+ type: "Anonymous",
6
+ meta: {
7
+ cache: { hit: false, key: "" },
8
+ placeholder: false
9
+ },
10
+ id: "",
11
+ token: void 0,
12
+ issued: /* @__PURE__ */ new Date(),
13
+ expiry: new Date((/* @__PURE__ */ new Date()).getTime() + 3600 * 1e3)
14
+ // 1 hour from now
15
+ },
16
+ languageContext: {
17
+ locale: "en-US",
18
+ currencyCode: "USD",
19
+ countryCode: "US"
20
+ },
21
+ storeIdentifier: {
22
+ key: "the-good-store"
23
+ }
24
+ };
25
+ }
26
+ export {
27
+ createAnonymousTestSession
28
+ };