gst-common 1.0.2 → 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.
@@ -1,17 +1,11 @@
1
- // src/functions.ts
2
- function sayHello({ firstName, lastName, age }) {
3
- const name = `${firstName} ${lastName}`;
4
- const greeting = `Hello, ${name}!`;
5
- if (age) {
6
- return `${greeting}, are ${age} years old.`;
7
- } else {
8
- return greeting;
9
- }
10
- }
11
- export {
12
- sayHello
13
- };
14
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
10
  var __copyProps = (to, from, except, desc) => {
17
11
  if (from && typeof from === "object" || typeof from === "function") {
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // src/functions.ts
2
+ function sayHello({ firstName, lastName, age }) {
3
+ const name = `${firstName} ${lastName}`;
4
+ const greeting = `Hello, ${name}!`;
5
+ if (age) {
6
+ return `${greeting}, are ${age} years old.`;
7
+ } else {
8
+ return greeting;
9
+ }
10
+ }
11
+ export {
12
+ sayHello
13
+ };
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.0.2",
4
- "description": "Store all common variables that we need",
5
- "main": "./dist/index.cjs",
3
+ "version": "1.1.0",
4
+ "description": "store all common variables that we need",
5
+ "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "type": "module",
9
- "exports": {
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
12
- },
13
9
  "scripts": {
14
10
  "build": "tsup",
15
11
  "publish:npm": "npm publish",