@corbado/autocapture 1.0.1 → 1.2.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,21 +1,66 @@
1
1
  {
2
2
  "name": "@corbado/autocapture",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "Observer-style capture helpers for WebAuthn ceremonies, selected network exchanges, in-app navigation, and composed event paths.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.mts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
19
+ "./probe": {
20
+ "import": {
21
+ "types": "./dist/probe.d.mts",
22
+ "default": "./dist/probe.mjs"
23
+ },
24
+ "require": {
25
+ "types": "./dist/probe.d.ts",
26
+ "default": "./dist/probe.js"
27
+ }
28
+ },
29
+ "./probe/fixtures": {
30
+ "import": {
31
+ "types": "./dist/probe/fixtures.d.mts",
32
+ "default": "./dist/probe/fixtures.mjs"
33
+ },
34
+ "require": {
35
+ "types": "./dist/probe/fixtures.d.ts",
36
+ "default": "./dist/probe/fixtures.js"
37
+ }
38
+ },
39
+ "./package.json": "./package.json",
40
+ "./dist/*": "./dist/*"
41
+ },
42
+ "typesVersions": {
43
+ "*": {
44
+ "probe": [
45
+ "./dist/probe.d.ts"
46
+ ],
47
+ "probe/fixtures": [
48
+ "./dist/probe/fixtures.d.ts"
49
+ ]
50
+ }
51
+ },
8
52
  "files": [
9
53
  "dist"
10
54
  ],
55
+ "sideEffects": false,
11
56
  "scripts": {
12
- "build": "tsup src/index.ts --format cjs,esm --target es2019 --dts --minify --define.__CORBADO_AUTOCAPTURE_VERSION__='\"'${CORBADO_AUTOCAPTURE_VERSION:-0.0.0-dev}'\"'",
13
- "dev": "tsup src/index.ts --format cjs,esm --target es2019 --watch --dts",
57
+ "build": "tsup --entry.index src/index.ts --entry.probe src/probe/index.ts --entry.probe/fixtures src/probe/fixtures.ts --format cjs,esm --target es2019 --dts --minify --define.__CORBADO_AUTOCAPTURE_VERSION__='\"'${CORBADO_AUTOCAPTURE_VERSION:-0.0.0-dev}'\"'",
58
+ "dev": "tsup --entry.index src/index.ts --entry.probe src/probe/index.ts --entry.probe/fixtures src/probe/fixtures.ts --format cjs,esm --target es2019 --watch --dts",
14
59
  "lint": "tsc --noEmit",
15
60
  "test": "vitest run",
16
61
  "test:watch": "vitest",
17
62
  "test:e2e": "pnpm --filter @corbado/autocapture... build && playwright test --config e2e/playwright.config.ts",
18
- "check:dist": "es-check es2019 './dist/index.js' && es-check es2019 './dist/index.mjs' --module",
63
+ "check:dist": "es-check es2019 './dist/index.js' './dist/probe.js' './dist/probe/fixtures.js' && es-check es2019 './dist/*.mjs' './dist/probe/*.mjs' --module",
19
64
  "format": "prettier --write 'src/**/*.ts' 'e2e/**/*.ts'",
20
65
  "format:check": "prettier --check 'src/**/*.ts' 'e2e/**/*.ts'"
21
66
  },