@akanjs/base 0.0.2 → 0.0.3

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/index.js CHANGED
@@ -1 +1,21 @@
1
- export * from "./src";
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var base_exports = {};
16
+ module.exports = __toCommonJS(base_exports);
17
+ __reExport(base_exports, require("./src"), module.exports);
18
+ // Annotate the CommonJS export names for ESM import in node:
19
+ 0 && (module.exports = {
20
+ ...require("./src")
21
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akanjs/base",
3
- "version": "0.0.2",
4
- "type": "module",
3
+ "version": "0.0.3",
4
+ "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -14,6 +14,5 @@
14
14
  "dayjs": "1.11.13",
15
15
  "tunnel-ssh": "5.2.0"
16
16
  },
17
- "module": "./index.js",
18
17
  "main": "./index.js"
19
18
  }
package/src/base.js CHANGED
@@ -1,3 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var base_exports = {};
19
+ __export(base_exports, {
20
+ DataList: () => DataList,
21
+ Enum: () => Enum,
22
+ enumOf: () => enumOf,
23
+ logo: () => logo,
24
+ version: () => version
25
+ });
26
+ module.exports = __toCommonJS(base_exports);
1
27
  class Enum {
2
28
  constructor(values) {
3
29
  this.values = values;
@@ -150,10 +176,11 @@ const logo = `
150
176
  \u2605 Star Akanjs on GitHub https://github.com/aka-bassman/akanjs
151
177
 
152
178
  `;
153
- export {
179
+ // Annotate the CommonJS export names for ESM import in node:
180
+ 0 && (module.exports = {
154
181
  DataList,
155
182
  Enum,
156
183
  enumOf,
157
184
  logo,
158
185
  version
159
- };
186
+ });
package/src/baseEnv.js CHANGED
@@ -1,3 +1,26 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var baseEnv_exports = {};
19
+ __export(baseEnv_exports, {
20
+ baseClientEnv: () => baseClientEnv,
21
+ baseEnv: () => baseEnv
22
+ });
23
+ module.exports = __toCommonJS(baseEnv_exports);
1
24
  //! Nextjs는 환경변수를 build time에 그냥 하드코딩으로 값을 넣어버림. operationMode같은것들 잘 동작안할 수 있음. 추후 수정 필요.
2
25
  const appName = process.env.NEXT_PUBLIC_APP_NAME ?? process.env.NX_TASK_TARGET_PROJECT ?? "unknown";
3
26
  const repoName = process.env.NEXT_PUBLIC_REPO_NAME ?? "unknown";
@@ -55,7 +78,8 @@ const baseClientEnv = {
55
78
  serverWsProtocol,
56
79
  serverWsUri
57
80
  };
58
- export {
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
59
83
  baseClientEnv,
60
84
  baseEnv
61
- };
85
+ });
package/src/index.js CHANGED
@@ -1,4 +1,27 @@
1
- export * from "./base";
2
- export * from "./baseEnv";
3
- export * from "./scalar";
4
- export * from "./types";
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var src_exports = {};
16
+ module.exports = __toCommonJS(src_exports);
17
+ __reExport(src_exports, require("./base"), module.exports);
18
+ __reExport(src_exports, require("./baseEnv"), module.exports);
19
+ __reExport(src_exports, require("./scalar"), module.exports);
20
+ __reExport(src_exports, require("./types"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("./base"),
24
+ ...require("./baseEnv"),
25
+ ...require("./scalar"),
26
+ ...require("./types")
27
+ });
package/src/scalar.js CHANGED
@@ -1,5 +1,56 @@
1
- import dayjsLib, { Dayjs } from "dayjs";
2
- const dayjs = dayjsLib;
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var scalar_exports = {};
29
+ __export(scalar_exports, {
30
+ BaseObject: () => BaseObject,
31
+ Dayjs: () => import_dayjs.Dayjs,
32
+ Float: () => Float,
33
+ ID: () => ID,
34
+ Int: () => Int,
35
+ JSON: () => JSON,
36
+ Upload: () => Upload,
37
+ applyFnToArrayObjects: () => applyFnToArrayObjects,
38
+ arraiedModel: () => arraiedModel,
39
+ dayjs: () => dayjs,
40
+ getNonArrayModel: () => getNonArrayModel,
41
+ gqlScalarNames: () => gqlScalarNames,
42
+ gqlScalars: () => gqlScalars,
43
+ isGqlClass: () => isGqlClass,
44
+ isGqlMap: () => isGqlMap,
45
+ isGqlScalar: () => isGqlScalar,
46
+ scalarArgMap: () => scalarArgMap,
47
+ scalarDefaultMap: () => scalarDefaultMap,
48
+ scalarNameMap: () => scalarNameMap,
49
+ scalarSet: () => scalarSet
50
+ });
51
+ module.exports = __toCommonJS(scalar_exports);
52
+ var import_dayjs = __toESM(require("dayjs"));
53
+ const dayjs = import_dayjs.default;
3
54
  class BaseObject {
4
55
  id;
5
56
  createdAt;
@@ -81,7 +132,8 @@ const scalarDefaultMap = /* @__PURE__ */ new Map([
81
132
  const isGqlClass = (modelRef) => !scalarSet.has(modelRef);
82
133
  const isGqlScalar = (modelRef) => scalarSet.has(modelRef);
83
134
  const isGqlMap = (modelRef) => modelRef === Map;
84
- export {
135
+ // Annotate the CommonJS export names for ESM import in node:
136
+ 0 && (module.exports = {
85
137
  BaseObject,
86
138
  Dayjs,
87
139
  Float,
@@ -102,4 +154,4 @@ export {
102
154
  scalarDefaultMap,
103
155
  scalarNameMap,
104
156
  scalarSet
105
- };
157
+ });
package/src/types.js CHANGED
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var types_exports = {};
15
+ module.exports = __toCommonJS(types_exports);