Skip to content

Commit c00356b

Browse files
feat/initial vue integration
1 parent cbbddb4 commit c00356b

11 files changed

Lines changed: 85 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"workspaces": [
1212
"packages/node",
1313
"packages/browser",
14-
"packages/react"
14+
"packages/react",
15+
"packages/vue"
1516
],
1617
"devDependencies": {
1718
"@types/node": "10.17.0",

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@traceo-sdk/browser",
3-
"version": "0.31.14",
3+
"version": "0.32.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"license": "MIT",

packages/browser/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export type {
55
TraceoOptions,
66
TraceoBrowserError as TraceoError
77
} from "./types/client";
8+
export { VERSION } from "./version";

packages/browser/src/version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const VERSION = "0.32.0";

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@traceo-sdk/react",
3-
"version": "0.31.14",
3+
"version": "0.32.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"license": "MIT",

packages/react/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BrowserClient, TraceoOptions } from "@traceo-sdk/browser";
1+
import { BrowserClient, TraceoOptions, VERSION } from "@traceo-sdk/browser";
22

33
export class Client extends BrowserClient {
44
constructor(options: TraceoOptions) {
@@ -7,7 +7,7 @@ export class Client extends BrowserClient {
77
this.options = options;
88
this.headers = {
99
"x-sdk-name": "react",
10-
"x-sdk-version": "0.31.8",
10+
"x-sdk-version": VERSION,
1111
"x-sdk-key": this.options.apiKey
1212
};
1313
}

packages/vue/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Traceo SDK for Vue

packages/vue/package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "@traceo-sdk/vue",
3+
"version": "0.32.0",
4+
"main": "dist/index.js",
5+
"types": "dist/index.d.ts",
6+
"license": "MIT",
7+
"files": [
8+
"dist"
9+
],
10+
"homepage": "https://github.com/traceo-dev/traceo-sdk",
11+
"repository": {
12+
"type": "git",
13+
"url": "git://github.com/traceo-dev/traceo-sdk.git"
14+
},
15+
"scripts": {
16+
"build": "tsc -p ./tsconfig.json --outDir dist",
17+
"build:tarball": "yarn build && npm pack",
18+
"prebuild": "rimraf ./dist",
19+
"lint": "run-s lint:prettier",
20+
"lint:prettier": "prettier ./src/**/*.{js,ts,tsx} --write",
21+
"prepack": "yarn lint",
22+
"test": "jest",
23+
"test:watch": "jest --watch --notify"
24+
},
25+
"dependencies": {
26+
"@traceo-sdk/browser": "0.31.14"
27+
},
28+
"publishConfig": {
29+
"access": "public"
30+
}
31+
}

packages/vue/src/client.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { BrowserClient, TraceoOptions, VERSION } from "@traceo-sdk/browser";
2+
3+
export class Client extends BrowserClient {
4+
constructor(options: TraceoOptions) {
5+
super(options);
6+
7+
this.options = options;
8+
this.headers = {
9+
"x-sdk-name": "vue",
10+
"x-sdk-version": VERSION,
11+
"x-sdk-key": this.options.apiKey
12+
};
13+
}
14+
15+
public postInitSDK(): void {}
16+
}

packages/vue/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Client as TraceoClient } from "./client";

0 commit comments

Comments
 (0)