gst-common 1.1.1 → 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.js +31 -2
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
- package/dist/index.cjs +0 -50
package/dist/index.js
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
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
|
+
CUSTOMER_TYPE: () => CUSTOMER_TYPE,
|
|
24
|
+
REGISTER_METHOD: () => REGISTER_METHOD,
|
|
25
|
+
sayHello: () => sayHello
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
|
+
|
|
1
29
|
// src/functions.ts
|
|
2
30
|
function sayHello() {
|
|
3
31
|
console.log("HELLO WORLD");
|
|
@@ -14,8 +42,9 @@ var REGISTER_METHOD = /* @__PURE__ */ ((REGISTER_METHOD2) => {
|
|
|
14
42
|
REGISTER_METHOD2["GOOGLE"] = "google";
|
|
15
43
|
return REGISTER_METHOD2;
|
|
16
44
|
})(REGISTER_METHOD || {});
|
|
17
|
-
export
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
18
47
|
CUSTOMER_TYPE,
|
|
19
48
|
REGISTER_METHOD,
|
|
20
49
|
sayHello
|
|
21
|
-
};
|
|
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,50 +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
|
-
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");
|
|
32
|
-
}
|
|
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,
|
|
49
|
-
sayHello
|
|
50
|
-
});
|