@loggerjs/browser 0.0.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 (53) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +93 -0
  3. package/dist/broadcast-channel-transport.d.ts +38 -0
  4. package/dist/broadcast-channel-transport.d.ts.map +1 -0
  5. package/dist/console-integration.d.ts +11 -0
  6. package/dist/console-integration.d.ts.map +1 -0
  7. package/dist/error-integration.d.ts +10 -0
  8. package/dist/error-integration.d.ts.map +1 -0
  9. package/dist/fetch-integration.d.ts +13 -0
  10. package/dist/fetch-integration.d.ts.map +1 -0
  11. package/dist/framework-error-integration.d.ts +29 -0
  12. package/dist/framework-error-integration.d.ts.map +1 -0
  13. package/dist/http-capture-utils.d.ts +7 -0
  14. package/dist/http-capture-utils.d.ts.map +1 -0
  15. package/dist/http-transport.d.ts +49 -0
  16. package/dist/http-transport.d.ts.map +1 -0
  17. package/dist/index.cjs +3151 -0
  18. package/dist/index.cjs.map +1 -0
  19. package/dist/index.d.ts +23 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +3119 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/indexeddb-offline-queue.d.ts +16 -0
  24. package/dist/indexeddb-offline-queue.d.ts.map +1 -0
  25. package/dist/indexeddb-transport.d.ts +80 -0
  26. package/dist/indexeddb-transport.d.ts.map +1 -0
  27. package/dist/page-lifecycle.d.ts +8 -0
  28. package/dist/page-lifecycle.d.ts.map +1 -0
  29. package/dist/performance-integration.d.ts +45 -0
  30. package/dist/performance-integration.d.ts.map +1 -0
  31. package/dist/reporting-integration.d.ts +49 -0
  32. package/dist/reporting-integration.d.ts.map +1 -0
  33. package/dist/router-integration.d.ts +34 -0
  34. package/dist/router-integration.d.ts.map +1 -0
  35. package/dist/runtime-host-integration.d.ts +46 -0
  36. package/dist/runtime-host-integration.d.ts.map +1 -0
  37. package/dist/service-worker-integration.d.ts +28 -0
  38. package/dist/service-worker-integration.d.ts.map +1 -0
  39. package/dist/service-worker-transport.d.ts +51 -0
  40. package/dist/service-worker-transport.d.ts.map +1 -0
  41. package/dist/user-action-integration.d.ts +37 -0
  42. package/dist/user-action-integration.d.ts.map +1 -0
  43. package/dist/web-vitals-integration.d.ts +23 -0
  44. package/dist/web-vitals-integration.d.ts.map +1 -0
  45. package/dist/websocket-integration.d.ts +41 -0
  46. package/dist/websocket-integration.d.ts.map +1 -0
  47. package/dist/websocket-transport.d.ts +37 -0
  48. package/dist/websocket-transport.d.ts.map +1 -0
  49. package/dist/xhr-integration.d.ts +11 -0
  50. package/dist/xhr-integration.d.ts.map +1 -0
  51. package/dist/zip-export.d.ts +53 -0
  52. package/dist/zip-export.d.ts.map +1 -0
  53. package/package.json +152 -0
package/package.json ADDED
@@ -0,0 +1,152 @@
1
+ {
2
+ "name": "@loggerjs/browser",
3
+ "version": "0.0.1",
4
+ "description": "Browser transports and integrations for loggerjs.",
5
+ "homepage": "https://github.com/jskits/loggerjs/tree/main/packages/browser#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/jskits/loggerjs/issues"
8
+ },
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/jskits/loggerjs.git",
13
+ "directory": "packages/browser"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "type": "module",
21
+ "sideEffects": false,
22
+ "main": "./dist/index.cjs",
23
+ "module": "./dist/index.js",
24
+ "types": "./dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js",
29
+ "require": "./dist/index.cjs"
30
+ },
31
+ "./transport-http": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.js",
34
+ "require": "./dist/index.cjs"
35
+ },
36
+ "./transport-broadcast-channel": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.js",
39
+ "require": "./dist/index.cjs"
40
+ },
41
+ "./transport-service-worker": {
42
+ "types": "./dist/index.d.ts",
43
+ "import": "./dist/index.js",
44
+ "require": "./dist/index.cjs"
45
+ },
46
+ "./transport-websocket": {
47
+ "types": "./dist/index.d.ts",
48
+ "import": "./dist/index.js",
49
+ "require": "./dist/index.cjs"
50
+ },
51
+ "./offline-indexeddb": {
52
+ "types": "./dist/index.d.ts",
53
+ "import": "./dist/index.js",
54
+ "require": "./dist/index.cjs"
55
+ },
56
+ "./transport-indexeddb": {
57
+ "types": "./dist/index.d.ts",
58
+ "import": "./dist/index.js",
59
+ "require": "./dist/index.cjs"
60
+ },
61
+ "./export-zip": {
62
+ "types": "./dist/index.d.ts",
63
+ "import": "./dist/index.js",
64
+ "require": "./dist/index.cjs"
65
+ },
66
+ "./integration-console": {
67
+ "types": "./dist/index.d.ts",
68
+ "import": "./dist/index.js",
69
+ "require": "./dist/index.cjs"
70
+ },
71
+ "./integration-errors": {
72
+ "types": "./dist/index.d.ts",
73
+ "import": "./dist/index.js",
74
+ "require": "./dist/index.cjs"
75
+ },
76
+ "./integration-fetch": {
77
+ "types": "./dist/index.d.ts",
78
+ "import": "./dist/index.js",
79
+ "require": "./dist/index.cjs"
80
+ },
81
+ "./integration-xhr": {
82
+ "types": "./dist/index.d.ts",
83
+ "import": "./dist/index.js",
84
+ "require": "./dist/index.cjs"
85
+ },
86
+ "./integration-framework-errors": {
87
+ "types": "./dist/index.d.ts",
88
+ "import": "./dist/index.js",
89
+ "require": "./dist/index.cjs"
90
+ },
91
+ "./integration-reporting": {
92
+ "types": "./dist/index.d.ts",
93
+ "import": "./dist/index.js",
94
+ "require": "./dist/index.cjs"
95
+ },
96
+ "./integration-router": {
97
+ "types": "./dist/index.d.ts",
98
+ "import": "./dist/index.js",
99
+ "require": "./dist/index.cjs"
100
+ },
101
+ "./integration-runtime-host": {
102
+ "types": "./dist/index.d.ts",
103
+ "import": "./dist/index.js",
104
+ "require": "./dist/index.cjs"
105
+ },
106
+ "./integration-service-worker": {
107
+ "types": "./dist/index.d.ts",
108
+ "import": "./dist/index.js",
109
+ "require": "./dist/index.cjs"
110
+ },
111
+ "./integration-user-actions": {
112
+ "types": "./dist/index.d.ts",
113
+ "import": "./dist/index.js",
114
+ "require": "./dist/index.cjs"
115
+ },
116
+ "./integration-websocket": {
117
+ "types": "./dist/index.d.ts",
118
+ "import": "./dist/index.js",
119
+ "require": "./dist/index.cjs"
120
+ },
121
+ "./integration-web-vitals": {
122
+ "types": "./dist/index.d.ts",
123
+ "import": "./dist/index.js",
124
+ "require": "./dist/index.cjs"
125
+ },
126
+ "./integration-performance": {
127
+ "types": "./dist/index.d.ts",
128
+ "import": "./dist/index.js",
129
+ "require": "./dist/index.cjs"
130
+ },
131
+ "./integration-page-lifecycle": {
132
+ "types": "./dist/index.d.ts",
133
+ "import": "./dist/index.js",
134
+ "require": "./dist/index.cjs"
135
+ }
136
+ },
137
+ "publishConfig": {
138
+ "access": "public",
139
+ "provenance": true
140
+ },
141
+ "dependencies": {
142
+ "@loggerjs/core": "0.0.1"
143
+ },
144
+ "scripts": {
145
+ "build": "pnpm run clean && pnpm run build:js && pnpm run build:types",
146
+ "build:js": "rolldown -c ../../rolldown.config.mjs",
147
+ "build:types": "tsc -p tsconfig.build.json && node ../../scripts/fix-dts-extensions.mjs dist",
148
+ "typecheck": "tsc --noEmit -p tsconfig.json",
149
+ "test": "vitest run --passWithNoTests",
150
+ "clean": "rm -rf dist"
151
+ }
152
+ }