This repository has been archived by the owner on Jan 30, 2025. It is now read-only.
forked from ht-sdks/events-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
209 lines (209 loc) · 9.23 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"name": "@ht-sdks/events-sdk-js",
"version": "0.0.4",
"description": "",
"main": "./dist/browser.min.js",
"scripts": {
"setup": "npm i && cd sanity-suite && npm i",
"test": "npm run build:browser && sed 's/var hightouchevents/hightouchevents/g' dist/legacy/events.min.js > __tests__/prodsdk.js && jest --watchAll=false --maxWorkers=50% --coverage",
"test:ci": "npm run build:browser && sed 's/var hightouchevents/hightouchevents/g' dist/legacy/events.min.js > __tests__/prodsdk.js && jest --watchAll=false --maxWorkers=2 --coverage",
"start": "rollup --config rollup-configs/rollup.sdk.browser.js --watch --environment DEV_SERVER,PROD_DEBUG:inline",
"start:all": "npm run build:integration:all && rollup --config rollup-configs/rollup.sdk.browser.js --watch --environment DEV_SERVER,PROD_DEBUG:inline",
"build:browser:dev": "rollup --config rollup-configs/rollup.sdk.browser.js",
"build:browser": "rollup --config rollup-configs/rollup.sdk.browser.js --environment VERSION:$npm_package_version,UGLIFY,PROD_DEBUG,STAGING:$npm_config_staging,ENV:prod",
"build:browser:modern": "BROWSERSLIST_ENV=modern rollup --config rollup-configs/rollup.sdk.browser.js --environment VERSION:$npm_package_version,UGLIFY,PROD_DEBUG,STAGING:$npm_config_staging,ENV:prod",
"build:browser:debug": "rollup --config rollup-configs/rollup.sdk.browser.js --environment VERSION:$npm_package_version,UGLIFY,PROD_DEBUG:inline,ENV:prod",
"build:browser:bundle-size": "VISUALIZER=true npm run build:browser",
"build:browser:modern:bundle-size": "VISUALIZER=true npm run build:browser:modern",
"build:node:dev": "rollup --config rollup-configs/rollup.sdk.npm.js --environment VERSION:$npm_package_version,NPM",
"build:node": "rollup --config rollup-configs/rollup.sdk.npm.js --environment VERSION:$npm_package_version,UGLIFY,ENV:prod,NPM",
"build:worker": "rollup --config rollup-configs/rollup.worker.config.js --environment VERSION:$npm_package_version,NPM",
"build:npm": "npm run build:node && npm run build:worker",
"build:integration:dev": "rollup --config rollup-configs/rollup.integrations.config.js --environment PROD_DEBUG,INTG_NAME:AdobeAnalytics",
"build:integration:dev:cli": "rollup --config rollup-configs/rollup.integrations.config.js --environment PROD_DEBUG,INTG_NAME:$npm_config_intg",
"build:integration": "rollup --config rollup-configs/rollup.integrations.config.js --environment PROD_DEBUG,ENV:prod,UGLIFY,INTG_NAME:AdobeAnalytics",
"build:integration:cli": "rollup --config rollup-configs/rollup.integrations.config.js --environment PROD_DEBUG,ENV:prod,UGLIFY,INTG_NAME:$npm_config_intg",
"build:integration:all": "VISUALIZER=false STAGING=$npm_config_staging node -r esm scripts/integrationBuildScript.js",
"build:integration:all:bundle-size": "VISUALIZER=true STAGING=$npm_config_staging node -r esm scripts/integrationBuildScript.js",
"build:integration:all:modern": "VISUALIZER=false BROWSERSLIST_ENV=modern STAGING=$npm_config_staging node -r esm scripts/integrationBuildScript.js",
"build:integration:all:modern:bundle-size": "VISUALIZER=true BROWSERSLIST_ENV=modern STAGING=$npm_config_staging node -r esm scripts/integrationBuildScript.js",
"build:integration:bundle-size": "VISUALIZER=true npm run build:integration",
"build:integration:bundle-size:cli": "VISUALIZER=true npm run build:integration:cli",
"clean": "rm -rf dist",
"check:lint": "eslint \"src/**/*.js\" -f json -o reports/eslint.json || exit 0",
"check:size:build": "npm run clean && npm run build:browser && npm run build:integration:all && npm run build:npm",
"check:size": "npm run check:size:build && size-limit",
"check:circular": "madge --circular --extensions js ./src || exit 0",
"check:support": "NODE_ENV=production npx browserslist --mobile-to-desktop",
"check:support:modern": "NODE_ENV=modern npx browserslist --mobile-to-desktop",
"check:duplicates": "jscpd src --threshold 5",
"check:security": "npm audit --recursive --audit-level=high",
"format": "prettier --write .",
"lint:fix": "eslint . --fix",
"prepare": "husky install",
"pre-commit": "npm run test && npm run check:size && npx lint-staged",
"commit-msg": "commitlint --edit",
"commit": "git-cz",
"release": "npx standard-version",
"release:github": "DEBUG=conventional-github-releaser npx conventional-github-releaser -p angular --config github-release.config.js",
"sanity": "npm run build:browser && cd sanity-suite && npm run start:local",
"sanity:cdn": "cd sanity-suite && npm run start:cdn",
"sanity:npm": "cd sanity-suite && npm run start:npm",
"build:sanity": "rm -rf sanity-suite/dist && cd sanity-suite && npm run build:all && npm run build:all:staging",
"postinstall": "npx patch-package"
},
"author": "HT-SDKS",
"license": "MIT",
"bugs": {
"url": "https://github.com/ht-sdks/events-sdk-js/issues"
},
"homepage": "https://github.com/ht-sdks/events-sdk-js#readme",
"repository": {
"type": "git",
"url": "https://github.com/ht-sdks/events-sdk-js.git"
},
"dependencies": {
"@lukeed/uuid": "2.0.1",
"@ndhoule/defaults": "2.0.1",
"@ndhoule/each": "2.0.1",
"@ndhoule/extend": "2.0.0",
"@segment/localstorage-retry": "1.3.0",
"@segment/loosely-validate-event": "2.0.0",
"@segment/top-domain": "3.0.1",
"@vespaiach/axios-fetch-adapter": "0.3.1",
"assert": "2.0.0",
"axios": "0.27.2",
"axios-retry": "3.5.1",
"component-each": "0.2.6",
"component-emitter": "1.3.0",
"component-querystring": "2.0.1",
"component-url": "0.2.1",
"crypto-js": "4.1.1",
"get-value": "3.0.1",
"is": "3.3.0",
"lodash.clonedeep": "4.5.0",
"lodash.difference": "4.5.0",
"lodash.get": "4.4.2",
"lodash.isempty": "4.4.0",
"lodash.isequal": "4.5.0",
"lodash.isstring": "4.0.1",
"lodash.isundefined": "3.0.1",
"lodash.merge": "4.6.2",
"lodash.pick": "4.4.0",
"lodash.pickby": "4.6.0",
"lodash.tostring": "4.1.4",
"md5": "2.3.0",
"ms": "2.1.3",
"obj-case": "0.2.1",
"on-body": "0.0.1",
"ramda": "0.29.0",
"rudder-component-cookie": "0.0.1",
"serialize-javascript": "6.0.1",
"storejs": "2.0.5",
"uuid": "8.3.2"
},
"devDependencies": {
"@babel/core": "7.22.9",
"@babel/eslint-parser": "7.22.9",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-private-methods": "7.18.6",
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
"@babel/plugin-transform-arrow-functions": "7.22.5",
"@babel/plugin-transform-object-assign": "7.22.5",
"@babel/preset-env": "7.22.9",
"@commitlint/config-conventional": "17.6.6",
"@digitalroute/cz-conventional-changelog-for-jira": "8.0.1",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "25.0.2",
"@rollup/plugin-json": "6.0.0",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-replace": "5.0.2",
"@size-limit/file": "8.2.6",
"@size-limit/webpack": "8.2.6",
"babel-eslint": "10.1.0",
"babel-jest": "29.6.1",
"babel-plugin-transform-object-hasown": "1.1.0",
"commitizen": "4.3.0",
"commitlint": "17.6.6",
"conventional-changelog-cli": "2.2.2",
"conventional-github-releaser": "3.1.5",
"dotenv": "16.3.1",
"eslint": "8.44.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-compat": "4.1.4",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-sonarjs": "0.19.0",
"eslint-plugin-unicorn": "47.0.0",
"esm": "3.2.25",
"husky": "8.0.3",
"isomorphic-fetch": "3.0.0",
"jest": "29.6.1",
"jest-date-mock": "1.0.8",
"jest-environment-jsdom": "29.6.1",
"jest-sonar": "0.2.16",
"jscpd": "3.5.9",
"lint-staged": "13.2.3",
"madge": "6.1.0",
"msw": "1.2.2",
"prettier": "2.8.8",
"rollup": "2.79.1",
"rollup-plugin-copy": "3.4.0",
"rollup-plugin-filesize": "10.0.0",
"rollup-plugin-generate-html-template": "1.7.0",
"rollup-plugin-livereload": "2.0.5",
"rollup-plugin-polyfill-node": "0.12.0",
"rollup-plugin-serve": "2.0.2",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-visualizer": "5.9.2",
"size-limit": "8.2.6",
"standard-version": "9.5.0"
},
"overrides": {
"@xmldom/xmldom": "0.8.5",
"debug": "4.3.4",
"decode-uri-component": "0.4.1",
"dot-prop": "5.3.0",
"json5": "2.2.2",
"http-cache-semantics": "4.1.1",
"semver": "7.3.8",
"semver-regex": "3.1.4",
"trim-newlines": "3.0.1",
"webpack": "5.76.0",
"xml2js": "0.5.0"
},
"browserslist": {
"production": [
"defaults",
"Edge >= 15",
"Firefox >= 40",
"IE >= 10",
"Chrome >= 37",
"Safari >= 7",
"Opera >= 23"
],
"modern": [
"defaults"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 edge version",
"last 1 safari version"
]
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{json,js,md,ts}": "prettier --write"
},
"config": {
"commitizen": {
"path": "./node_modules/@digitalroute/cz-conventional-changelog-for-jira",
"jiraMode": false,
"jiraOptional": true,
"skipScope": true,
"defaultType": "feat"
}
}
}