@mparticle/web-rokt-kit 1.22.0 → 1.24.0

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/package.json CHANGED
@@ -1,22 +1,32 @@
1
1
  {
2
2
  "name": "@mparticle/web-rokt-kit",
3
- "version": "1.22.0",
3
+ "version": "1.24.0",
4
4
  "description": "mParticle integration kit for Rokt",
5
5
  "main": "dist/Rokt-Kit.common.js",
6
+ "module": "dist/Rokt-Kit.esm.js",
7
+ "types": "dist/Rokt-Kit.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/Rokt-Kit.d.ts",
11
+ "import": "./dist/Rokt-Kit.esm.js",
12
+ "require": "./dist/Rokt-Kit.common.js"
13
+ }
14
+ },
6
15
  "files": [
7
16
  "dist/Rokt-Kit.common.js",
8
- "dist/Rokt-Kit.iife.js"
17
+ "dist/Rokt-Kit.esm.js",
18
+ "dist/Rokt-Kit.iife.js",
19
+ "dist/Rokt-Kit.d.ts"
9
20
  ],
10
21
  "repository": "https://github.com/mparticle-integrations/mparticle-javascript-integration-rokt",
11
22
  "scripts": {
12
- "build": "rollup --config rollup.config.js",
13
- "build:test": "rollup --config rollup.test.config.js",
14
- "lint": "eslint src/ test/src/",
15
- "lint:fix": "eslint src/ test/src/ --fix",
16
- "watch": "rollup --config rollup.config.js -w",
17
- "watch:tests": "rollup --config rollup.test.config.js -w",
18
- "test": "npm run build && npm run build:test && karma start test/karma.config.js",
19
- "test:debug": "npm run build && npm run build:test && DEBUG=true karma start test/karma.config.js"
23
+ "build": "vite build",
24
+ "build:watch": "vite build --watch",
25
+ "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
26
+ "lint:fix": "eslint \"src/**/*.ts\" \"test/**/*.ts\" --fix",
27
+ "test": "vitest run",
28
+ "test:watch": "vitest",
29
+ "test:coverage": "vitest run --coverage"
20
30
  },
21
31
  "publishConfig": {
22
32
  "access": "public",
@@ -24,33 +34,30 @@
24
34
  "registry": "https://registry.npmjs.org"
25
35
  },
26
36
  "devDependencies": {
27
- "@rollup/plugin-json": "^6.1.0",
37
+ "@eslint/js": "^9.23.0",
38
+ "@eslint/eslintrc": "^3.3.1",
39
+ "@mparticle/event-models": "^1.1.9",
28
40
  "@semantic-release/changelog": "^6.0.3",
29
41
  "@semantic-release/exec": "^6.0.3",
30
42
  "@semantic-release/git": "^10.0.1",
31
43
  "@semantic-release/npm": "^13.1.2",
44
+ "@typescript-eslint/eslint-plugin": "^8.28.0",
45
+ "@typescript-eslint/parser": "^8.28.0",
46
+ "@types/node": "^20.11.5",
47
+ "@vitest/coverage-v8": "^4.0.0",
48
+ "eslint": "^9.23.0",
49
+ "eslint-config-prettier": "^9.0.0",
50
+ "eslint-plugin-prettier": "^5.0.0",
51
+ "jsdom": "latest",
52
+ "prettier": "^3.0.0",
32
53
  "semantic-release": "^24.2.0",
33
- "mocha": "^5.2.0",
34
- "chai": "^4.2.0",
35
- "eslint": "^7.25.0",
36
- "eslint-config-prettier": "8.3.0",
37
- "eslint-plugin-prettier": "3.4.1",
38
- "karma": "^5.1.0",
39
- "karma-chai": "^0.1.0",
40
- "karma-chrome-launcher": "^3.1.0",
41
- "karma-firefox-launcher": "^2.1.0",
42
- "karma-mocha": "^2.0.1",
43
- "prettier": "^2.4.1",
44
- "rollup": "^1.15.6",
45
- "rollup-plugin-commonjs": "^10.0.0",
46
- "rollup-plugin-node-resolve": "^5.0.3",
47
- "rollup-plugin-replace": "^2.2.0",
48
- "shelljs": "0.8.3",
49
- "should": "13.2.3",
50
- "watchify": "^3.11.0"
54
+ "typescript": "^5.5.4",
55
+ "vite": "^6.0.0",
56
+ "vite-plugin-dts": "~3.8.1",
57
+ "vitest": "^4.0.0"
51
58
  },
52
59
  "dependencies": {
53
- "@mparticle/web-sdk": "^2.56.0"
60
+ "@mparticle/web-sdk": "^2.62.0"
54
61
  },
55
62
  "license": "Apache-2.0"
56
63
  }