@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 +1 -1
- package/dist/shopify-handler.js +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
package/dist/shopify-handler.js
CHANGED
|
@@ -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) => {
|