@kargo-pulse/vue 0.1.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/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@kargo-pulse/browser");function g(r,n){const t=s.createKargoPulse(n),o=r.config.errorHandler;return r.config.errorHandler=(u,e,c)=>{var l;t.captureException(u,{source:"vue",component:c,handled:!1,context:{componentName:(l=e==null?void 0:e.$options)==null?void 0:l.name}}),o==null||o(u,e,c)},t}exports.setupKargoPulse=g;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,5 @@
1
+ import { type KargoPulseClient, type KargoPulseOptions } from '@kargo-pulse/browser';
2
+ import type { App } from 'vue';
3
+ export declare function setupKargoPulse(app: App, options: KargoPulseOptions): KargoPulseClient;
4
+ export type { KargoPulseClient, KargoPulseOptions };
5
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import { createKargoPulse as n } from "@kargo-pulse/browser";
2
+ function f(r, m) {
3
+ const t = n(m), e = r.config.errorHandler;
4
+ return r.config.errorHandler = (u, o, c) => {
5
+ var l;
6
+ t.captureException(u, {
7
+ source: "vue",
8
+ component: c,
9
+ handled: !1,
10
+ context: {
11
+ componentName: (l = o == null ? void 0 : o.$options) == null ? void 0 : l.name
12
+ }
13
+ }), e == null || e(u, o, c);
14
+ }, t;
15
+ }
16
+ export {
17
+ f as setupKargoPulse
18
+ };
19
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@kargo-pulse/vue",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "license": "UNLICENSED",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "files": [
13
+ "dist/**/*.js",
14
+ "dist/**/*.cjs",
15
+ "dist/**/*.d.ts",
16
+ "package.json"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js",
22
+ "require": "./dist/index.cjs"
23
+ }
24
+ },
25
+ "dependencies": {
26
+ "@kargo-pulse/browser": "0.1.0"
27
+ },
28
+ "peerDependencies": {
29
+ "vue": "^3.5.0"
30
+ },
31
+ "devDependencies": {
32
+ "vite": "^6.2.2",
33
+ "vue": "^3.5.13"
34
+ },
35
+ "scripts": {
36
+ "build": "vite build && tsc -p tsconfig.json --emitDeclarationOnly",
37
+ "typecheck": "tsc --noEmit"
38
+ }
39
+ }