@rebuy/rebuy 1.0.0-rc.4 → 1.0.1-rc.2
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/README.md +2 -0
- package/client.js +2 -2
- package/geolocation.js +4 -0
- package/identity.js +4 -0
- package/package.json +15 -1
- package/session.js +4 -0
- package/utilities.js +5 -1
package/README.md
CHANGED
package/client.js
CHANGED
|
@@ -11,7 +11,7 @@ const config = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
const trackEvent = async (eventData) => {
|
|
14
|
-
if (config.identity.visitorId()) {
|
|
14
|
+
if (config.identity && config.identity.visitorId()) {
|
|
15
15
|
eventData.uuid = config.identity.visitorId();
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ const makeCall = async (endpoint, params, format) => {
|
|
|
33
33
|
Object.assign(query, params);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
if (config.identity.visitorId()) {
|
|
36
|
+
if (config.identity && config.identity.visitorId()) {
|
|
37
37
|
query.uuid = config.identity.visitorId();
|
|
38
38
|
}
|
|
39
39
|
|
package/geolocation.js
CHANGED
package/identity.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
3
|
"description": "This is the default library for Rebuy",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1-rc.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rebuy, Inc.",
|
|
7
7
|
"type": "module",
|
|
@@ -13,8 +13,17 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"lint": "eslint .",
|
|
16
|
+
"prepare": "husky install",
|
|
16
17
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
17
18
|
},
|
|
19
|
+
"config": {
|
|
20
|
+
"commitizen": {
|
|
21
|
+
"path": "./node_modules/cz-customizable"
|
|
22
|
+
},
|
|
23
|
+
"cz-customizable": {
|
|
24
|
+
"config": ".cz-config.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
18
27
|
"repository": {
|
|
19
28
|
"type": "git",
|
|
20
29
|
"url": "git+ssh://git@bitbucket.org/rebuyengine/npm-rebuy.git"
|
|
@@ -24,13 +33,18 @@
|
|
|
24
33
|
},
|
|
25
34
|
"homepage": "https://bitbucket.org/rebuyengine/npm-rebuy#readme",
|
|
26
35
|
"devDependencies": {
|
|
36
|
+
"@commitlint/cli": "^17.0.2",
|
|
37
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
27
38
|
"@semantic-release/changelog": "^6.0.1",
|
|
28
39
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
29
40
|
"@semantic-release/git": "^10.0.1",
|
|
30
41
|
"@semantic-release/npm": "^9.0.1",
|
|
31
42
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
32
43
|
"conventional-changelog-eslint": "^3.0.9",
|
|
44
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
45
|
+
"cz-customizable": "^6.3.0",
|
|
33
46
|
"eslint": "^8.17.0",
|
|
47
|
+
"husky": "^8.0.1",
|
|
34
48
|
"semantic-release": "^19.0.3"
|
|
35
49
|
}
|
|
36
50
|
}
|
package/session.js
CHANGED
package/utilities.js
CHANGED