stable-layer-sdk 0.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.
- package/dist/index.d.ts +20 -0
- package/dist/index.js +33 -0
- package/package.json +29 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable Layer SDK
|
|
3
|
+
* A simple hello world SDK for testing
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Returns a hello world message
|
|
7
|
+
*/
|
|
8
|
+
export declare function hello(name?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* A simple greeting class
|
|
11
|
+
*/
|
|
12
|
+
export declare class Greeter {
|
|
13
|
+
private name;
|
|
14
|
+
constructor(name: string);
|
|
15
|
+
greet(): string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get the SDK version
|
|
19
|
+
*/
|
|
20
|
+
export declare function getVersion(): string;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Stable Layer SDK
|
|
4
|
+
* A simple hello world SDK for testing
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Greeter = void 0;
|
|
8
|
+
exports.hello = hello;
|
|
9
|
+
exports.getVersion = getVersion;
|
|
10
|
+
/**
|
|
11
|
+
* Returns a hello world message
|
|
12
|
+
*/
|
|
13
|
+
function hello(name) {
|
|
14
|
+
return `Hello, ${name || 'World'}!`;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A simple greeting class
|
|
18
|
+
*/
|
|
19
|
+
class Greeter {
|
|
20
|
+
constructor(name) {
|
|
21
|
+
this.name = name;
|
|
22
|
+
}
|
|
23
|
+
greet() {
|
|
24
|
+
return `Hello from ${this.name}!`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Greeter = Greeter;
|
|
28
|
+
/**
|
|
29
|
+
* Get the SDK version
|
|
30
|
+
*/
|
|
31
|
+
function getVersion() {
|
|
32
|
+
return '1.0.0';
|
|
33
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stable-layer-sdk",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "A TypeScript SDK for Stable Layer",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"sdk",
|
|
13
|
+
"stable-layer",
|
|
14
|
+
"typescript"
|
|
15
|
+
],
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@tsconfig/recommended": "^1.0.3",
|
|
20
|
+
"@types/node": "^20.0.0",
|
|
21
|
+
"typescript": "^5.0.0"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"dev": "tsc --watch",
|
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
28
|
+
}
|
|
29
|
+
}
|