cardoctor-call-chat 1.0.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.
@@ -0,0 +1,8 @@
1
+ export declare function sayHello(name: string): string;
2
+ export declare class MySDK {
3
+ private token;
4
+ constructor(token: string);
5
+ getAuthHeader(): {
6
+ Authorization: string;
7
+ };
8
+ }
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MySDK = void 0;
4
+ exports.sayHello = sayHello;
5
+ function sayHello(name) {
6
+ return `Hello, ${name}! 👋`;
7
+ }
8
+ class MySDK {
9
+ constructor(token) {
10
+ this.token = token;
11
+ }
12
+ getAuthHeader() {
13
+ return { Authorization: `Bearer ${this.token}` };
14
+ }
15
+ }
16
+ exports.MySDK = MySDK;
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "cardoctor-call-chat",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "prepublishOnly": "npm run build"
9
+ },
10
+ "license": "MIT",
11
+ "devDependencies": {
12
+ "typescript": "^5.9.2"
13
+ }
14
+ }
package/src/index.ts ADDED
@@ -0,0 +1,15 @@
1
+ export function sayHello(name: string): string {
2
+ return `Hello, ${name}! 👋`;
3
+ }
4
+
5
+ export class MySDK {
6
+ private token: string;
7
+
8
+ constructor(token: string) {
9
+ this.token = token;
10
+ }
11
+
12
+ getAuthHeader() {
13
+ return { Authorization: `Bearer ${this.token}` };
14
+ }
15
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist",
4
+ "declaration": true,
5
+ "esModuleInterop": true,
6
+ "moduleResolution": "node",
7
+ "target": "ES2019",
8
+ "module": "commonjs",
9
+ "strict": true
10
+ },
11
+ "include": ["src"]
12
+ }