@rebuy/rebuy 2.0.0 → 2.0.1-alpha.1
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/api.js +1 -1
- package/dist/api.mjs +1 -1
- package/dist/client.js +3 -3
- package/dist/client.mjs +3 -3
- package/dist/cookie.js +1 -1
- package/dist/cookie.mjs +1 -1
- package/dist/geolocation.js +2 -2
- package/dist/geolocation.mjs +2 -2
- package/dist/identity.js +4 -4
- package/dist/identity.mjs +4 -4
- package/dist/session.js +2 -2
- package/dist/session.mjs +2 -2
- package/package.json +1 -1
package/dist/api.js
CHANGED
package/dist/api.mjs
CHANGED
package/dist/client.js
CHANGED
|
@@ -32,9 +32,9 @@ __export(client_exports, {
|
|
|
32
32
|
default: () => client_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(client_exports);
|
|
35
|
-
var import_api = __toESM(require("
|
|
36
|
-
var import_identity = __toESM(require("
|
|
37
|
-
var import_utilities = require("
|
|
35
|
+
var import_api = __toESM(require("./api"), 1);
|
|
36
|
+
var import_identity = __toESM(require("./identity"), 1);
|
|
37
|
+
var import_utilities = require("./utilities");
|
|
38
38
|
const trackEvent = async (config, eventData) => {
|
|
39
39
|
if (config.identity && config.identity.visitorId()) {
|
|
40
40
|
eventData.uuid = config.identity.visitorId();
|
package/dist/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Api from "
|
|
2
|
-
import Identity from "
|
|
3
|
-
import { convertProductToStorefrontFormat } from "
|
|
1
|
+
import Api from "./api";
|
|
2
|
+
import Identity from "./identity";
|
|
3
|
+
import { convertProductToStorefrontFormat } from "./utilities";
|
|
4
4
|
const trackEvent = async (config, eventData) => {
|
|
5
5
|
if (config.identity && config.identity.visitorId()) {
|
|
6
6
|
eventData.uuid = config.identity.visitorId();
|
package/dist/cookie.js
CHANGED
|
@@ -27,7 +27,7 @@ __export(cookie_exports, {
|
|
|
27
27
|
set: () => set
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(cookie_exports);
|
|
30
|
-
var import_utilities = require("
|
|
30
|
+
var import_utilities = require("./utilities");
|
|
31
31
|
function get(name) {
|
|
32
32
|
if (typeof document == "undefined" || !document.cookie) {
|
|
33
33
|
return null;
|
package/dist/cookie.mjs
CHANGED
package/dist/geolocation.js
CHANGED
|
@@ -32,8 +32,8 @@ __export(geolocation_exports, {
|
|
|
32
32
|
default: () => geolocation_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(geolocation_exports);
|
|
35
|
-
var import_api = __toESM(require("
|
|
36
|
-
var import_cookie = __toESM(require("
|
|
35
|
+
var import_api = __toESM(require("./api"), 1);
|
|
36
|
+
var import_cookie = __toESM(require("./cookie"), 1);
|
|
37
37
|
class Geolocation {
|
|
38
38
|
constructor(key) {
|
|
39
39
|
this.config = {
|
package/dist/geolocation.mjs
CHANGED
package/dist/identity.js
CHANGED
|
@@ -32,10 +32,10 @@ __export(identity_exports, {
|
|
|
32
32
|
default: () => identity_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(identity_exports);
|
|
35
|
-
var import_cookie = __toESM(require("
|
|
36
|
-
var import_geolocation = __toESM(require("
|
|
37
|
-
var import_session = __toESM(require("
|
|
38
|
-
var import_utilities = require("
|
|
35
|
+
var import_cookie = __toESM(require("./cookie"), 1);
|
|
36
|
+
var import_geolocation = __toESM(require("./geolocation"), 1);
|
|
37
|
+
var import_session = __toESM(require("./session"), 1);
|
|
38
|
+
var import_utilities = require("./utilities");
|
|
39
39
|
class Identity {
|
|
40
40
|
constructor(key) {
|
|
41
41
|
this.config = {
|
package/dist/identity.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Cookie from "
|
|
2
|
-
import Geolocation from "
|
|
3
|
-
import Session from "
|
|
4
|
-
import { uuid } from "
|
|
1
|
+
import Cookie from "./cookie";
|
|
2
|
+
import Geolocation from "./geolocation";
|
|
3
|
+
import Session from "./session";
|
|
4
|
+
import { uuid } from "./utilities";
|
|
5
5
|
class Identity {
|
|
6
6
|
constructor(key) {
|
|
7
7
|
this.config = {
|
package/dist/session.js
CHANGED
|
@@ -32,8 +32,8 @@ __export(session_exports, {
|
|
|
32
32
|
default: () => session_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(session_exports);
|
|
35
|
-
var import_cookie = __toESM(require("
|
|
36
|
-
var import_utilities = require("
|
|
35
|
+
var import_cookie = __toESM(require("./cookie"), 1);
|
|
36
|
+
var import_utilities = require("./utilities");
|
|
37
37
|
const config = {
|
|
38
38
|
now: null,
|
|
39
39
|
sessionDuration: {
|
package/dist/session.mjs
CHANGED