gst-common 1.0.1 → 1.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 +2 -6
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +2 -6
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -25,15 +25,11 @@ __export(index_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(index_exports);
|
|
26
26
|
|
|
27
27
|
// src/functions.ts
|
|
28
|
-
function sayHello({
|
|
29
|
-
firstName,
|
|
30
|
-
lastName,
|
|
31
|
-
age
|
|
32
|
-
}) {
|
|
28
|
+
function sayHello({ firstName, lastName, age }) {
|
|
33
29
|
const name = `${firstName} ${lastName}`;
|
|
34
30
|
const greeting = `Hello, ${name}!`;
|
|
35
31
|
if (age) {
|
|
36
|
-
return `${greeting},
|
|
32
|
+
return `${greeting}, are ${age} years old.`;
|
|
37
33
|
} else {
|
|
38
34
|
return greeting;
|
|
39
35
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
declare function sayHello({ firstName, lastName, age, }: {
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
age?: number;
|
|
5
|
-
}): string;
|
|
6
|
-
|
|
7
1
|
type SayHelloProps = {
|
|
8
2
|
firstName: string;
|
|
9
3
|
lastName: string;
|
|
10
4
|
age?: number;
|
|
11
5
|
};
|
|
12
6
|
|
|
7
|
+
declare function sayHello({ firstName, lastName, age }: SayHelloProps): string;
|
|
8
|
+
|
|
13
9
|
export { type SayHelloProps, sayHello };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
declare function sayHello({ firstName, lastName, age, }: {
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
age?: number;
|
|
5
|
-
}): string;
|
|
6
|
-
|
|
7
1
|
type SayHelloProps = {
|
|
8
2
|
firstName: string;
|
|
9
3
|
lastName: string;
|
|
10
4
|
age?: number;
|
|
11
5
|
};
|
|
12
6
|
|
|
7
|
+
declare function sayHello({ firstName, lastName, age }: SayHelloProps): string;
|
|
8
|
+
|
|
13
9
|
export { type SayHelloProps, sayHello };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
// src/functions.ts
|
|
2
|
-
function sayHello({
|
|
3
|
-
firstName,
|
|
4
|
-
lastName,
|
|
5
|
-
age
|
|
6
|
-
}) {
|
|
2
|
+
function sayHello({ firstName, lastName, age }) {
|
|
7
3
|
const name = `${firstName} ${lastName}`;
|
|
8
4
|
const greeting = `Hello, ${name}!`;
|
|
9
5
|
if (age) {
|
|
10
|
-
return `${greeting},
|
|
6
|
+
return `${greeting}, are ${age} years old.`;
|
|
11
7
|
} else {
|
|
12
8
|
return greeting;
|
|
13
9
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gst-common",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "store all common variables that we need",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "tsup"
|
|
10
|
+
"build": "tsup",
|
|
11
|
+
"publish:npm": "npm publish",
|
|
12
|
+
"release": "npm run build && npm run publish:npm"
|
|
11
13
|
},
|
|
12
14
|
"repository": {
|
|
13
15
|
"type": "git",
|