@cascayd/experiment 0.3.3 → 0.3.5

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/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getOrCreateSession, readVariantChoice } from './cookies';
1
+ import { getOrCreateSession, readVariantChoice } from './cookies.js';
2
2
  let API_KEY = '';
3
3
  let BASE_URL = 'https://ab-mvp-backend.onrender.com';
4
4
  const SDK_VERSION = '0.2.0-dev';
@@ -6,8 +6,8 @@
6
6
  * Expects the Cascayd SDK to be loaded first via:
7
7
  * <script src="https://cdn.jsdelivr.net/npm/@cascayd/experiment@latest/dist/client.js"></script>
8
8
  */
9
- import { assignVariant, record } from './client';
10
- import { readVariantChoice, persistVariantChoice } from './cookies';
9
+ import { assignVariant, record } from './client.js';
10
+ import { readVariantChoice, persistVariantChoice } from './cookies.js';
11
11
  // Wait for SDK to be available
12
12
  function waitForSDK(maxAttempts = 50, interval = 100) {
13
13
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascayd/experiment",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "A lightweight A/B testing SDK for React applications with server-side analytics integration",
5
5
  "keywords": [
6
6
  "ab-testing",