@leather.io/analytics 3.0.4 → 3.1.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/package.json +2 -7
package/dist/index.d.ts CHANGED
@@ -200,7 +200,8 @@ interface SubmitWaitlist {
200
200
  }
201
201
 
202
202
  interface DefaultProperties {
203
- platform: 'web' | 'extension' | 'mobile';
203
+ platform: 'web' | 'extension' | 'mobile' | 'earn';
204
+ [key: string]: string | number | boolean | undefined;
204
205
  }
205
206
  interface AnalyticsClientInterface {
206
207
  screen: (name: string, ...args: any[]) => Promise<any>;
@@ -215,7 +216,7 @@ interface AnalyticsClientConfig<T extends AnalyticsClientInterface> {
215
216
  defaultTraits?: JsonMap;
216
217
  }
217
218
  type JsonList = JsonValue[];
218
- type JsonValue = boolean | number | string | null | JsonList | JsonMap | undefined | unknown | Error;
219
+ type JsonValue = boolean | number | string | undefined | null | JsonList | JsonMap | Error;
219
220
  interface JsonMap {
220
221
  [key: string]: JsonValue;
221
222
  [index: number]: JsonValue;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@leather.io/analytics",
3
3
  "author": "Leather.io contact@leather.io",
4
4
  "description": "Analytics package for Leather using Segment",
5
- "version": "3.0.4",
5
+ "version": "3.1.1",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/leather.io/mono/tree/dev/packages/analytics",
8
8
  "repository": {
@@ -21,14 +21,11 @@
21
21
  "devDependencies": {
22
22
  "@types/node": "20.14.0",
23
23
  "concurrently": "8.2.2",
24
- "eslint": "8.53.0",
25
- "eslint-config-universe": "12.0.0",
26
24
  "prettier": "3.3.3",
27
25
  "tsup": "8.1.0",
28
26
  "typescript": "5.5.4",
29
27
  "vitest": "2.1.5",
30
- "@leather.io/eslint-config": "0.7.0",
31
- "@leather.io/models": "0.24.2"
28
+ "@leather.io/models": "0.24.3"
32
29
  },
33
30
  "files": [
34
31
  "dist"
@@ -46,8 +43,6 @@
46
43
  "build:watch": "tsup --watch --onSuccess 'tsup --dts-only'",
47
44
  "format": "prettier . --write \"src/**/*.ts\" --ignore-path ../../.prettierignore",
48
45
  "format:check": "prettier . --check \"src/**/*.ts\" --ignore-path ../../.prettierignore",
49
- "lint": "eslint . --ignore-path ../../.eslintignore",
50
- "lint:fix": "eslint . --fix --ignore-path ../../.eslintignore",
51
46
  "typecheck": "tsc --noEmit"
52
47
  }
53
48
  }