@motiadev/plugin-observability 0.13.2-beta.164-704005 → 0.13.2-beta.164-681857
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/dist/components/trace-group-item.d.ts.map +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.js +1753 -2280
- package/dist/lib/format-distance.d.ts +12 -0
- package/dist/lib/format-distance.d.ts.map +1 -0
- package/package.json +4 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats the distance between a given date and now in human-readable format.
|
|
3
|
+
* Implementation matching date-fns formatDistanceToNow behavior.
|
|
4
|
+
*
|
|
5
|
+
* Thresholds based on date-fns v4.x:
|
|
6
|
+
* https://github.com/date-fns/date-fns/blob/main/src/formatDistance/index.ts
|
|
7
|
+
*
|
|
8
|
+
* @param date - The date to compare (Date object or timestamp in milliseconds)
|
|
9
|
+
* @returns A human-readable string like "5 minutes", "about 2 hours", "3 days"
|
|
10
|
+
*/
|
|
11
|
+
export declare function formatDistanceToNow(date: Date | number): string;
|
|
12
|
+
//# sourceMappingURL=format-distance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-distance.d.ts","sourceRoot":"","sources":["../../src/lib/format-distance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CA0F/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motiadev/plugin-observability",
|
|
3
|
-
"version": "0.13.2-beta.164-
|
|
3
|
+
"version": "0.13.2-beta.164-681857",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,15 +23,14 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@radix-ui/react-popover": "^1.1.15",
|
|
26
|
-
"date-fns": "^4.1.0",
|
|
27
26
|
"lucide-react": "^0.548.0",
|
|
28
27
|
"react18-json-view": "^0.2.9",
|
|
29
28
|
"zustand": "^5.0.8"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
32
|
-
"@motiadev/
|
|
33
|
-
"@motiadev/
|
|
34
|
-
"@motiadev/ui": "0.13.2-beta.164-
|
|
31
|
+
"@motiadev/core": "0.13.2-beta.164-681857",
|
|
32
|
+
"@motiadev/stream-client-react": "0.13.2-beta.164-681857",
|
|
33
|
+
"@motiadev/ui": "0.13.2-beta.164-681857"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@tailwindcss/vite": "^4.1.14",
|