gst-common 1.1.0 → 1.1.2
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.cts +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +47 -10
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
- package/dist/index.cjs +0 -40
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
age?: number;
|
|
5
|
-
};
|
|
1
|
+
declare function sayHello(): void;
|
|
6
2
|
|
|
7
|
-
declare
|
|
3
|
+
declare enum CUSTOMER_TYPE {
|
|
4
|
+
TUTOR = "tutor",
|
|
5
|
+
STUDENT = "student"
|
|
6
|
+
}
|
|
7
|
+
declare enum REGISTER_METHOD {
|
|
8
|
+
EMAIL = "email",
|
|
9
|
+
GOOGLE = "google"
|
|
10
|
+
}
|
|
8
11
|
|
|
9
|
-
export {
|
|
12
|
+
export { CUSTOMER_TYPE, REGISTER_METHOD, sayHello };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
age?: number;
|
|
5
|
-
};
|
|
1
|
+
declare function sayHello(): void;
|
|
6
2
|
|
|
7
|
-
declare
|
|
3
|
+
declare enum CUSTOMER_TYPE {
|
|
4
|
+
TUTOR = "tutor",
|
|
5
|
+
STUDENT = "student"
|
|
6
|
+
}
|
|
7
|
+
declare enum REGISTER_METHOD {
|
|
8
|
+
EMAIL = "email",
|
|
9
|
+
GOOGLE = "google"
|
|
10
|
+
}
|
|
8
11
|
|
|
9
|
-
export {
|
|
12
|
+
export { CUSTOMER_TYPE, REGISTER_METHOD, sayHello };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
CUSTOMER_TYPE: () => CUSTOMER_TYPE,
|
|
24
|
+
REGISTER_METHOD: () => REGISTER_METHOD,
|
|
25
|
+
sayHello: () => sayHello
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
|
+
|
|
29
|
+
// src/functions.ts
|
|
30
|
+
function sayHello() {
|
|
31
|
+
console.log("HELLO WORLD");
|
|
10
32
|
}
|
|
11
|
-
|
|
33
|
+
|
|
34
|
+
// src/type.ts
|
|
35
|
+
var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
|
|
36
|
+
CUSTOMER_TYPE2["TUTOR"] = "tutor";
|
|
37
|
+
CUSTOMER_TYPE2["STUDENT"] = "student";
|
|
38
|
+
return CUSTOMER_TYPE2;
|
|
39
|
+
})(CUSTOMER_TYPE || {});
|
|
40
|
+
var REGISTER_METHOD = /* @__PURE__ */ ((REGISTER_METHOD2) => {
|
|
41
|
+
REGISTER_METHOD2["EMAIL"] = "email";
|
|
42
|
+
REGISTER_METHOD2["GOOGLE"] = "google";
|
|
43
|
+
return REGISTER_METHOD2;
|
|
44
|
+
})(REGISTER_METHOD || {});
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
CUSTOMER_TYPE,
|
|
48
|
+
REGISTER_METHOD,
|
|
12
49
|
sayHello
|
|
13
|
-
};
|
|
50
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/functions.ts
|
|
2
|
+
function sayHello() {
|
|
3
|
+
console.log("HELLO WORLD");
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// src/type.ts
|
|
7
|
+
var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
|
|
8
|
+
CUSTOMER_TYPE2["TUTOR"] = "tutor";
|
|
9
|
+
CUSTOMER_TYPE2["STUDENT"] = "student";
|
|
10
|
+
return CUSTOMER_TYPE2;
|
|
11
|
+
})(CUSTOMER_TYPE || {});
|
|
12
|
+
var REGISTER_METHOD = /* @__PURE__ */ ((REGISTER_METHOD2) => {
|
|
13
|
+
REGISTER_METHOD2["EMAIL"] = "email";
|
|
14
|
+
REGISTER_METHOD2["GOOGLE"] = "google";
|
|
15
|
+
return REGISTER_METHOD2;
|
|
16
|
+
})(REGISTER_METHOD || {});
|
|
17
|
+
export {
|
|
18
|
+
CUSTOMER_TYPE,
|
|
19
|
+
REGISTER_METHOD,
|
|
20
|
+
sayHello
|
|
21
|
+
};
|
package/package.json
CHANGED
package/dist/index.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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 });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
sayHello: () => sayHello
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(index_exports);
|
|
26
|
-
|
|
27
|
-
// src/functions.ts
|
|
28
|
-
function sayHello({ firstName, lastName, age }) {
|
|
29
|
-
const name = `${firstName} ${lastName}`;
|
|
30
|
-
const greeting = `Hello, ${name}!`;
|
|
31
|
-
if (age) {
|
|
32
|
-
return `${greeting}, are ${age} years old.`;
|
|
33
|
-
} else {
|
|
34
|
-
return greeting;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
sayHello
|
|
40
|
-
});
|