qcobjects 2.5.124-beta → 2.5.133-beta

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.
Files changed (105) hide show
  1. package/Dockerfile +3 -3
  2. package/VERSION +1 -1
  3. package/build/ArrayCollection.js +2 -2
  4. package/build/Base64.js +14 -12
  5. package/build/ComponentFactory.js +2 -2
  6. package/build/DataStringify.js +1 -1
  7. package/build/DefaultTemplateHandler.js +5 -5
  8. package/build/ObjectName.js +1 -1
  9. package/build/QCObjects.js +0 -1
  10. package/build/Ready.js +3 -3
  11. package/build/WidgetsFactory.js +2 -2
  12. package/build/asyncLoad.js +3 -3
  13. package/build/basePath.js +6 -11
  14. package/build/index.js +1 -1
  15. package/build/introspection.js +1 -1
  16. package/build/is_a.js +1 -1
  17. package/build/is_forbidden_name.js +1 -1
  18. package/build/is_raw_class.js +1 -1
  19. package/build/loadSDK.js +2 -2
  20. package/build/make_global.js +1 -1
  21. package/build/range.js +1 -1
  22. package/build/routings.js +2 -2
  23. package/build/shortCode.js +1 -1
  24. package/build/waitUntil.js +2 -2
  25. package/build-esbuild.js +5 -6
  26. package/eslint.config.mjs +1 -1
  27. package/package.json +17 -9
  28. package/public/browser/QCObjects.js +127 -136
  29. package/public/browser/QCObjects.js.map +4 -4
  30. package/public/cjs/{QCObjects.cjs → index.cjs} +141 -242
  31. package/public/cjs/index.cjs.map +7 -0
  32. package/public/esm/{QCObjects.mjs → index.mjs} +229 -231
  33. package/public/esm/index.mjs.map +7 -0
  34. package/public/types/index.d.ts +99 -108
  35. package/public/types/index.d.ts.map +1 -0
  36. package/spec/helpers/mock-sdk.helper.ts +0 -3
  37. package/spec/testsClassFactorySpec.ts +1 -1
  38. package/spec/testsConfigSpec.ts +1 -1
  39. package/src/ArrayCollection.ts +7 -7
  40. package/src/BackendMicroservice.ts +14 -13
  41. package/src/Base64.ts +87 -87
  42. package/src/CONFIG.ts +3 -3
  43. package/src/Class.ts +1 -1
  44. package/src/ClassFactory.ts +1 -1
  45. package/src/ComplexStorageCache.ts +5 -5
  46. package/src/Component.ts +19 -19
  47. package/src/ComponentFactory.ts +4 -4
  48. package/src/Controller.ts +7 -7
  49. package/src/Crypt.ts +16 -16
  50. package/src/DDO.ts +2 -2
  51. package/src/DOMCreateElement.ts +9 -9
  52. package/src/DataStringify.ts +14 -14
  53. package/src/DefaultTemplateHandler.ts +45 -45
  54. package/src/Effect.ts +7 -7
  55. package/src/Export.ts +6 -6
  56. package/src/IncrementInstanceID.ts +1 -1
  57. package/src/InheritClass.ts +26 -26
  58. package/src/Logger.ts +4 -4
  59. package/src/MainProcess.ts +1 -1
  60. package/src/ObjectName.ts +1 -1
  61. package/src/PrimaryCollections.ts +2 -2
  62. package/src/Processor.ts +20 -20
  63. package/src/QCObjects.ts +1 -2
  64. package/src/Ready.ts +4 -4
  65. package/src/Service.ts +8 -8
  66. package/src/SourceCSS.ts +42 -42
  67. package/src/SourceJS.ts +8 -8
  68. package/src/Tag.ts +4 -4
  69. package/src/Timer.ts +2 -2
  70. package/src/Toggle.ts +2 -2
  71. package/src/TransitionEffect.ts +3 -4
  72. package/src/View.ts +2 -1
  73. package/src/WidgetsFactory.ts +3 -3
  74. package/src/assign.ts +1 -0
  75. package/src/asyncLoad.ts +5 -5
  76. package/src/basePath.ts +7 -14
  77. package/src/captureFalseTouch.ts +1 -1
  78. package/src/componentLoader.ts +1 -1
  79. package/src/defaultProcessors.ts +3 -3
  80. package/src/globalSettings.ts +24 -24
  81. package/src/index.cts +1 -1
  82. package/src/index.mts +1 -1
  83. package/src/index.ts +1 -1
  84. package/src/introspection.ts +78 -78
  85. package/src/is_a.ts +12 -12
  86. package/src/is_forbidden_name.ts +11 -12
  87. package/src/is_raw_class.ts +3 -3
  88. package/src/loadSDK.ts +2 -2
  89. package/src/make_global.ts +1 -1
  90. package/src/range.ts +12 -12
  91. package/src/routings.ts +3 -3
  92. package/src/secretKey.ts +1 -1
  93. package/src/serviceLoader.ts +1 -1
  94. package/src/shortCode.ts +9 -9
  95. package/src/top.ts +4 -4
  96. package/src/types/global/index.d.ts +4 -5
  97. package/src/uniqueID.ts +1 -1
  98. package/src/waitUntil.ts +2 -2
  99. package/tsconfig.d.json +30 -4
  100. package/tsconfig.jasmine.json +30 -5
  101. package/tsconfig.json +18 -2
  102. package/build/index.cjs +0 -7
  103. package/build/index.mjs +0 -2
  104. package/public/cjs/QCObjects.cjs.map +0 -7
  105. package/public/esm/QCObjects.mjs.map +0 -7
@@ -1,80 +1,80 @@
1
- export const _protected_code_ = function (_:any) {
2
- const __oldtoString = (typeof _.prototype !== "undefined") ? (_.prototype.toString) : (function () {
3
- return "";
4
- });
5
- if (typeof _.prototype !== "undefined") {
6
- _.prototype.toString = function ():string {
7
- const _protected_symbols = [
8
- "__qcobjects__",
9
- "__qcobjects_sdk__",
10
- "__loaded__",
11
- "ComplexStorageCache",
12
- "css",
13
- "append",
14
- "attachIn",
15
- "debug",
16
- "info",
17
- "warn",
18
- "QC_Append",
19
- "set",
20
- "get",
21
- "done",
22
- "componentDone",
23
- "_new_",
24
- "__new__",
25
- "Class",
26
- "ClassFactory",
27
- "New",
28
- "Export",
29
- "Package",
30
- "Import",
31
- "subelements",
32
- "componentLoader",
33
- "buildComponents",
34
- "Controller",
35
- "View",
36
- "VO",
37
- "Service",
38
- "serviceLoader",
39
- "JSONService",
40
- "ConfigService",
41
- "SourceJS",
42
- "SourceCSS",
43
- "ArrayList",
44
- "ArrayCollection",
45
- "Effect",
46
- "Timer",
47
- "sum",
48
- "avg",
49
- "table",
50
- "max",
51
- "min",
52
- "range",
53
- "matrix",
54
- "matrix2d",
55
- "matrix3d",
56
- "unique",
57
- "uniqueId",
58
- "shortCode",
59
- "NamespaceRef"
60
- ];
61
- let _ret_;
62
- if (_protected_symbols.includes(this.name)) {
63
- _ret_ = this.name + "{ [QCObjects native code] }";
64
- } else {
65
- _ret_ = __oldtoString.call(this);
66
- }
67
- return _ret_ as string;
68
- };
69
- }
70
- };
71
- (_protected_code_)(Function);
72
- export const _methods_ = function <T>(_:any):T[] {
73
- const _m = [];
74
- for (const i in _) {
75
- if ((typeof _[i]).toLowerCase() === "function") {
76
- _m.push(_[i]);
1
+ export const _protected_code_ = (_: any): void => {
2
+ const __oldtoString = (typeof _.prototype !== "undefined") ? (_.prototype.toString) : (function () {
3
+ return "";
4
+ });
5
+ if (typeof _.prototype !== "undefined") {
6
+ _.prototype.toString = function (): string {
7
+ const _protected_symbols = [
8
+ "__qcobjects__",
9
+ "__qcobjects_sdk__",
10
+ "__loaded__",
11
+ "ComplexStorageCache",
12
+ "css",
13
+ "append",
14
+ "attachIn",
15
+ "debug",
16
+ "info",
17
+ "warn",
18
+ "QC_Append",
19
+ "set",
20
+ "get",
21
+ "done",
22
+ "componentDone",
23
+ "_new_",
24
+ "__new__",
25
+ "Class",
26
+ "ClassFactory",
27
+ "New",
28
+ "Export",
29
+ "Package",
30
+ "Import",
31
+ "subelements",
32
+ "componentLoader",
33
+ "buildComponents",
34
+ "Controller",
35
+ "View",
36
+ "VO",
37
+ "Service",
38
+ "serviceLoader",
39
+ "JSONService",
40
+ "ConfigService",
41
+ "SourceJS",
42
+ "SourceCSS",
43
+ "ArrayList",
44
+ "ArrayCollection",
45
+ "Effect",
46
+ "Timer",
47
+ "sum",
48
+ "avg",
49
+ "table",
50
+ "max",
51
+ "min",
52
+ "range",
53
+ "matrix",
54
+ "matrix2d",
55
+ "matrix3d",
56
+ "unique",
57
+ "uniqueId",
58
+ "shortCode",
59
+ "NamespaceRef"
60
+ ];
61
+ let _ret_;
62
+ if (_protected_symbols.includes(this.name)) {
63
+ _ret_ = this.name + "{ [QCObjects native code] }";
64
+ } else {
65
+ _ret_ = __oldtoString.call(this);
77
66
  }
67
+ return _ret_ as string;
68
+ };
69
+ }
70
+ };
71
+ (_protected_code_)(Function);
72
+ export const _methods_ = function <T>(_: any): T[] {
73
+ const _m = [];
74
+ for (const i in _) {
75
+ if ((typeof _[i]).toLowerCase() === "function") {
76
+ _m.push(_[i]);
78
77
  }
79
- return _m as T[];
80
- };
78
+ }
79
+ return _m as T[];
80
+ };
package/src/is_a.ts CHANGED
@@ -2,15 +2,15 @@ import { __getType__ } from "./getType";
2
2
  import { isQCObjects_Class, isQCObjects_Object } from "./isQCObjects";
3
3
  import { ObjectName } from "./ObjectName";
4
4
 
5
- /**
6
- * Returns if a class or object is from a determinated type
7
- * @param {Object} object
8
- * @param {String} typeName
9
- */
10
- export const is_a = function is_a(obj:any, typeName:string) {
11
- return !!((typeof obj !== "undefined" && obj !== null &&
12
- (((isQCObjects_Class(obj) || isQCObjects_Object(obj)) && (obj.hierarchy().includes(typeName))) ||
13
- __getType__(obj) === typeName ||
14
- ObjectName(obj) === typeName ||
15
- typeof obj === typeName)));
16
- };
5
+ /**
6
+ * Returns if a class or object is from a determinated type
7
+ * @param {Object} object
8
+ * @param {String} typeName
9
+ */
10
+ export const is_a = (obj: any, typeName: string):boolean => {
11
+ return !!((typeof obj !== "undefined" && obj !== null &&
12
+ (((isQCObjects_Class(obj) || isQCObjects_Object(obj)) && (obj.hierarchy().includes(typeName))) ||
13
+ __getType__(obj) === typeName ||
14
+ ObjectName(obj) === typeName ||
15
+ typeof obj === typeName)));
16
+ };
@@ -1,12 +1,11 @@
1
- /**
2
- * Internal use to determine the forbidden names for classes
3
- * Reserved words
4
- *
5
- * @param {String} name
6
- * @param {Object} type
7
- * @param {Object} definition
8
- */
9
- export const __is__forbidden_name__ = function (name:string) {
10
- return (["__proto__", "prototype", "Object", "Map", "defineProperty", "indexOf", "toString", "__instanceID", "function", "Function"].indexOf(name) !== -1);
11
- };
12
-
1
+ /**
2
+ * Internal use to determine the forbidden names for classes
3
+ * Reserved words
4
+ *
5
+ * @param {String} name
6
+ * @param {Object} type
7
+ * @param {Object} definition
8
+ */
9
+ export const __is__forbidden_name__ = (name: string):boolean => {
10
+ return (["__proto__", "prototype", "Object", "Map", "defineProperty", "indexOf", "toString", "__instanceID", "function", "Function"].indexOf(name) !== -1);
11
+ };
@@ -1,3 +1,3 @@
1
- export const __is_raw_class__ = function (o_c:any) {
2
- return !!((typeof o_c === "function" && o_c.toString().startsWith("class")));
3
- };
1
+ export const __is_raw_class__ = (o_c: any): boolean => {
2
+ return !!((typeof o_c === "function" && o_c.toString().startsWith("class")));
3
+ };
package/src/loadSDK.ts CHANGED
@@ -4,7 +4,7 @@ import { Import } from "./Import";
4
4
  import { logger } from "./Logger";
5
5
  import { _require_, isBrowser, isNodeCommonJS } from "./platform";
6
6
 
7
- function loadSDK() {
7
+ const loadSDK = ():void => {
8
8
  if (CONFIG.get("useSDK")) {
9
9
  (function () {
10
10
  const remoteImportsPath = CONFIG.get("remoteImportsPath");
@@ -54,6 +54,6 @@ function loadSDK() {
54
54
  })();
55
55
  }
56
56
 
57
- }
57
+ };
58
58
 
59
59
  export default loadSDK;
@@ -2,7 +2,7 @@ import { _top, set } from "./top";
2
2
  declare const global:any;
3
3
  declare const globalThis:any;
4
4
 
5
- export const __make_global__ = function (f:any) {
5
+ export const __make_global__ = (f:any):void => {
6
6
  if (!!f && !!f.name) {
7
7
  if (typeof _top !== "undefined" && typeof f !== "undefined" && _top !== null && !Object.hasOwn(_top,f.name)) {
8
8
  set(f.name, f);
package/src/range.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { _protected_code_ } from "./introspection";
2
2
 
3
- export const range = function (start:number, stop = 0, step = 1) {
4
- if (stop === 0 || typeof stop === "undefined") {
5
- stop = start;
6
- start = 0;
7
- }
8
- return Array.from({
9
- length: (stop - start) / step + 1
10
- }, function (_, i) {
11
- return start + (i * step);
12
- });
13
- };
14
- (_protected_code_)(range);
3
+ export const range = (start: number, stop = 0, step = 1): number[] => {
4
+ if (stop === 0 || typeof stop === "undefined") {
5
+ stop = start;
6
+ start = 0;
7
+ }
8
+ return Array.from({
9
+ length: (stop - start) / step + 1
10
+ }, function (_, i) {
11
+ return start + (i * step);
12
+ });
13
+ };
14
+ (_protected_code_)(range);
15
15
 
package/src/routings.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { TComponentRouting } from "./types/global";
1
+ import { TComponentRouting } from "types";
2
2
 
3
- export const __routing_params__ = function (routing:TComponentRouting, routingPath:string):object {
3
+ export const __routing_params__ = (routing:TComponentRouting, routingPath:string):object => {
4
4
  const standardRoutingPath = routing.path.replace(/{(.*?)}/g, "(?<$1>.*)"); // allowing {param}
5
5
  return {
6
6
  ...[...routingPath.matchAll((new RegExp(standardRoutingPath, "g")))][0].groups
@@ -13,6 +13,6 @@ export const __valid_routings__ = function (routings:TComponentRouting[], routin
13
13
  return (new RegExp(standardRoutingPath, "g")).test(routingPath);
14
14
  }).reverse();
15
15
  };
16
- export const __valid_routing_way__ = function (validRoutingWays:string[], routingWay:string) {
16
+ export const __valid_routing_way__ = (validRoutingWays:string[], routingWay:string):boolean => {
17
17
  return validRoutingWays.includes(routingWay);
18
18
  };
package/src/secretKey.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { isBrowser } from "./platform";
2
2
 
3
- export const _secretKey = (isBrowser)?(location.host):("secret");
3
+ export const _secretKey:string = (isBrowser)?(location.host):("secret");
@@ -1,4 +1,4 @@
1
- import { IService, TCacheController } from "./types/global";
1
+ import { IService, TCacheController } from "types";
2
2
  import { asyncLoad } from "./asyncLoad";
3
3
  import { ComplexStorageCache } from "./ComplexStorageCache";
4
4
  import { _DataStringify } from "./DataStringify";
package/src/shortCode.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { _Crypt } from "./Crypt";
2
2
 
3
- export const shortCode = function () {
4
- const length = 1000;
5
- const code1 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), (new Date()).getTime().toString());
6
- const code2 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), (new Date((new Date()).getTime() - 1000 * 1000)).getTime().toString());
7
- const shortCode = [...code2].map((o1:any, index:any):any => {
8
- return [...code1][index] === o1 ? null : o1;
9
- }).filter((c:any) => c !== null).join("");
10
- return shortCode;
11
- };
3
+ export const shortCode = (): string => {
4
+ const length = 1000;
5
+ const code1 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), (new Date()).getTime().toString());
6
+ const code2 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), (new Date((new Date()).getTime() - 1000 * 1000)).getTime().toString());
7
+ const shortCode = [...code2].map((o1: any, index: any): any => {
8
+ return [...code1][index] === o1 ? null : o1;
9
+ }).filter((c: any) => c !== null).join("");
10
+ return shortCode;
11
+ };
package/src/top.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IComplexStorageCache, IComponent, IConfigService, IQCObjectsElement } from "./types/global";
1
+ import { IComplexStorageCache, IComponent, IConfigService, IQCObjectsElement } from "types";
2
2
  import { buildComponents } from "./ComponentFactory";
3
3
  import { _CastProps } from "./Cast";
4
4
  import { GlobalSettings } from "./globalSettings";
@@ -107,16 +107,16 @@ export var _top: QCObjects = (
107
107
  (_top as any).lastCache = undefined;
108
108
  export let componentsStack:IComponent[] = [];
109
109
 
110
- export const resetTop = () => {
110
+ export const resetTop = ():void => {
111
111
  const globalSettings = GlobalSettings.instance;
112
112
  _top = _CastProps(globalSettings, _top, true);
113
113
  };
114
114
 
115
- export const buildComponentsStack = () => {
115
+ export const buildComponentsStack = ():void => {
116
116
  componentsStack = buildComponents(document as unknown as IQCObjectsElement);
117
117
  };
118
118
  export let configService:IConfigService;
119
- export const setConfigService = (_configService:IConfigService) => {
119
+ export const setConfigService = (_configService:IConfigService):void => {
120
120
  _top.global.configService = _configService;
121
121
  configService = _configService;
122
122
  };
@@ -8,8 +8,8 @@ export interface IMicroservice {
8
8
  domain: string;
9
9
  basePath: string;
10
10
  body: any;
11
- stream?: Http2Stream | Stream;
12
- request?: Http2ServerRequest | ClientRequest;
11
+ stream?: Http2Stream | Stream|null;
12
+ request?: Http2ServerRequest | ClientRequest|null;
13
13
  }
14
14
 
15
15
  export interface IRoute {
@@ -433,8 +433,8 @@ export interface IController extends IInheritClass{
433
433
  }
434
434
 
435
435
  export type TViewParams = {
436
- component: IComponent;
437
- dependencies: Array<any>;
436
+ component?: IComponent;
437
+ dependencies: any[];
438
438
  };
439
439
 
440
440
  export interface IView {
@@ -595,4 +595,3 @@ export interface String {
595
595
  export declare const componentsStack: IComponent[];
596
596
  export declare const lastCache: IComplexStorageCache | undefined;
597
597
 
598
-
package/src/uniqueID.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { shortCode } from "./shortCode";
2
2
 
3
- export const uniqueId = shortCode;
3
+ export const uniqueId:Function = shortCode;
package/src/waitUntil.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { logger } from "./Logger";
2
2
 
3
- export const waitUntil = function (func:()=>void, exp:()=>any) {
4
- const _waitUntil = function (func:()=>void, exp:()=>any) {
3
+ export const waitUntil = (func:()=>void, exp:()=>any):void => {
4
+ const _waitUntil = (func:()=>void, exp:()=>any):void => {
5
5
  const maxWaitCycles = 2000;
6
6
  let _w = 0;
7
7
  var _t = setInterval(function () {
package/tsconfig.d.json CHANGED
@@ -3,7 +3,12 @@
3
3
  "./tsconfig.json"
4
4
  ],
5
5
  "compilerOptions": {
6
+ "allowJs": false,
6
7
  "strict": true,
8
+ "declarationMap": true,
9
+ "sourceMap": true,
10
+ "composite": true,
11
+ "isolatedDeclarations": true,
7
12
  "noImplicitAny": true,
8
13
  "strictNullChecks": true,
9
14
  "strictFunctionTypes": true,
@@ -17,16 +22,32 @@
17
22
  "declaration": true,
18
23
  "emitDeclarationOnly": true,
19
24
  "baseUrl": ".",
20
- "typeRoots": ["./node_modules/@types"],
25
+ "typeRoots": [
26
+ "./node_modules/@types"
27
+ ],
28
+ "types": [
29
+ "node"
30
+ ],
21
31
  "paths": {
22
- "types": ["types/global"]
32
+ "*": [
33
+ "src/*"
34
+ ],
35
+ "types": [
36
+ "src/types/global/index.d.ts"
37
+ ]
23
38
  }
24
39
  },
25
40
  "include": [
26
41
  "src/**/*",
27
42
  "src/types/**/*"
28
43
  ],
29
- "exclude": ["src/**/*.mts", "src/**/*.cts", "node_modules", "node_modules/**/*"],
44
+ "exclude": [
45
+ "src/**/*.mts",
46
+ "src/**/*.cts",
47
+ "node_modules",
48
+ "node_modules/**/*",
49
+ "public/types"
50
+ ],
30
51
  "ts-node": {
31
52
  "transpileOnly": true,
32
53
  "files": true,
@@ -34,7 +55,12 @@
34
55
  "rootDir": "./src",
35
56
  "baseUrl": ".",
36
57
  "paths": {
37
- "types": ["types/global"]
58
+ "*": [
59
+ "src/*"
60
+ ],
61
+ "types": [
62
+ "src/types/global/index.d.ts"
63
+ ]
38
64
  }
39
65
  }
40
66
  }
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "skipLibCheck": true,
4
+ "moduleDetection": "auto",
5
+ "moduleResolution": "nodenext",
6
+ "allowImportingTsExtensions": true,
3
7
  "noEmit": true,
4
8
  "forceConsistentCasingInFileNames": true,
5
9
  "strict": true,
@@ -21,19 +25,40 @@
21
25
  "allowSyntheticDefaultImports": true,
22
26
  "esModuleInterop": true,
23
27
  "baseUrl": ".",
28
+ "sourceRoot": "./src",
29
+ "inlineSourceMap": true,
24
30
  "typeRoots": [
25
31
  "./node_modules/@types"
26
32
  ],
33
+ "types": [
34
+ "node",
35
+ "jasmine"
36
+ ],
27
37
  "paths": {
38
+ "*": [
39
+ "src/*"
40
+ ],
28
41
  "types": [
29
- "src/types/global"
42
+ "src/types/global/index.d.ts"
43
+ ],
44
+ "qcobjects": [
45
+ "src/qcobjects.ts"
30
46
  ],
31
- "qcobjects-sdk": ["spec/mocks/qcobjects-sdk.mock.ts"]
47
+ "qcobjects-sdk": [
48
+ "spec/mocks/qcobjects-sdk.mock.ts"
49
+ ]
32
50
  }
33
51
  },
34
52
  "include": [
35
- "spec/**/*"
53
+ "spec/**/*",
54
+ "src/**/*",
55
+ "src/*"
36
56
  ],
37
- "exclude": ["src/**/*"]
38
-
57
+ "exclude": [
58
+ "src/**/*.mts",
59
+ "src/**/*.cts",
60
+ "node_modules",
61
+ "node_modules/**/*",
62
+ "public/types/**/*"
63
+ ]
39
64
  }
package/tsconfig.json CHANGED
@@ -23,9 +23,15 @@
23
23
  "typeRoots": [
24
24
  "./node_modules/@types"
25
25
  ],
26
+ "types": [
27
+ "node"
28
+ ],
26
29
  "paths": {
30
+ "*": [
31
+ "src/*"
32
+ ],
27
33
  "types": [
28
- "types/global"
34
+ "src/types/global/index.d.ts"
29
35
  ],
30
36
  }
31
37
  },
@@ -33,6 +39,13 @@
33
39
  "src/**/*",
34
40
  "src/types/**/*"
35
41
  ],
42
+ "exclude": [
43
+ "src/**/*.mts",
44
+ "src/**/*.cts",
45
+ "node_modules",
46
+ "node_modules/**/*",
47
+ "public/types"
48
+ ],
36
49
  "ts-node": {
37
50
  // It is faster to skip typechecking.
38
51
  // Remove if you want ts-node to do typechecking.
@@ -42,8 +55,11 @@
42
55
  "rootDir": "./src",
43
56
  "baseUrl": ".",
44
57
  "paths": {
58
+ "*": [
59
+ "src/*"
60
+ ],
45
61
  "types": [
46
- "types/global"
62
+ "src/types/global/index.d.ts"
47
63
  ]
48
64
  }
49
65
  }
package/build/index.cjs DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const qcobjects_js_1 = __importDefault(require("./qcobjects.js"));
7
- module.exports = qcobjects_js_1.default;
package/build/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- import QCObjects from "./qcobjects.js";
2
- export default QCObjects;