@cyberskill/shared 1.47.0 → 1.48.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.
Files changed (133) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +410 -30
  2. package/dist/_tsup-dts-rollup.d.ts +410 -30
  3. package/dist/cli.cjs +2136 -1
  4. package/dist/cli.d.cts +2 -1
  5. package/dist/cli.d.ts +2 -1
  6. package/dist/cli.js +2056 -1
  7. package/dist/configs/commitlint/base.cjs +64 -1
  8. package/dist/configs/commitlint/base.js +7 -1
  9. package/dist/configs/eslint/base.cjs +121 -1
  10. package/dist/configs/eslint/base.js +52 -1
  11. package/dist/configs/eslint/nestjs.cjs +155 -1
  12. package/dist/configs/eslint/nestjs.js +85 -1
  13. package/dist/configs/eslint/nextjs.cjs +155 -1
  14. package/dist/configs/eslint/nextjs.js +85 -1
  15. package/dist/configs/eslint/nodejs.cjs +156 -1
  16. package/dist/configs/eslint/nodejs.js +86 -1
  17. package/dist/configs/eslint/vite-react.cjs +159 -1
  18. package/dist/configs/eslint/vite-react.js +89 -1
  19. package/dist/configs/graphql/graphql-codegen.cjs +125 -1
  20. package/dist/configs/graphql/graphql-codegen.js +64 -1
  21. package/dist/configs/graphql/index.cjs +126 -1
  22. package/dist/configs/graphql/index.js +64 -1
  23. package/dist/configs/i18n/react/i18next.cjs +80 -1
  24. package/dist/configs/i18n/react/i18next.js +7 -1
  25. package/dist/configs/i18n/react/index.cjs +81 -1
  26. package/dist/configs/i18n/react/index.js +7 -1
  27. package/dist/configs/index.cjs +232 -1
  28. package/dist/configs/index.js +166 -1
  29. package/dist/configs/lint-staged/base.cjs +64 -1
  30. package/dist/configs/lint-staged/base.js +7 -1
  31. package/dist/configs/vitest/react/e2e.cjs +128 -1
  32. package/dist/configs/vitest/react/e2e.js +59 -1
  33. package/dist/configs/vitest/react/unit.cjs +305 -1
  34. package/dist/configs/vitest/react/unit.js +228 -1
  35. package/dist/configs/vitest/react/unit.setup.cjs +60 -1
  36. package/dist/configs/vitest/react/unit.setup.js +8 -1
  37. package/dist/constants/index.cjs +678 -1
  38. package/dist/constants/index.d.cts +31 -1
  39. package/dist/constants/index.d.ts +31 -1
  40. package/dist/constants/index.js +469 -1
  41. package/dist/constants/path.cjs +423 -1
  42. package/dist/constants/path.d.cts +31 -1
  43. package/dist/constants/path.d.ts +31 -1
  44. package/dist/constants/path.js +218 -1
  45. package/dist/constants/response-status.cjs +313 -1
  46. package/dist/constants/response-status.js +252 -1
  47. package/dist/index.cjs +4546 -1
  48. package/dist/index.d.cts +51 -7
  49. package/dist/index.d.ts +51 -7
  50. package/dist/index.js +4133 -1
  51. package/dist/nodejs/index.cjs +2138 -1
  52. package/dist/nodejs/index.js +2054 -1
  53. package/dist/nodejs/mongo.cjs +2137 -1
  54. package/dist/nodejs/mongo.js +2054 -1
  55. package/dist/react/apollo-client.cjs +177 -1
  56. package/dist/react/apollo-client.js +116 -1
  57. package/dist/react/index.cjs +990 -1
  58. package/dist/react/index.js +876 -1
  59. package/dist/react/loading.cjs +301 -1
  60. package/dist/react/loading.js +216 -1
  61. package/dist/react/next-intl.cjs +744 -1
  62. package/dist/react/next-intl.js +655 -1
  63. package/dist/react/storage.cjs +631 -1
  64. package/dist/react/storage.js +558 -1
  65. package/dist/typescript/api-response.cjs +48 -1
  66. package/dist/typescript/apollo.cjs +48 -1
  67. package/dist/typescript/command.cjs +68 -1
  68. package/dist/typescript/command.d.cts +4 -0
  69. package/dist/typescript/command.d.ts +4 -0
  70. package/dist/typescript/command.js +7 -1
  71. package/dist/typescript/config.cjs +48 -1
  72. package/dist/typescript/fs.cjs +48 -0
  73. package/dist/typescript/fs.d.cts +1 -0
  74. package/dist/typescript/fs.d.ts +1 -0
  75. package/dist/typescript/fs.js +0 -0
  76. package/dist/typescript/graphql-codegen.cjs +48 -1
  77. package/dist/typescript/index.cjs +175 -1
  78. package/dist/typescript/index.d.cts +5 -0
  79. package/dist/typescript/index.d.ts +5 -0
  80. package/dist/typescript/index.js +151 -1
  81. package/dist/typescript/loading.cjs +48 -1
  82. package/dist/typescript/log.cjs +48 -1
  83. package/dist/typescript/mongo.cjs +164 -1
  84. package/dist/typescript/mongo.js +145 -1
  85. package/dist/typescript/next-intl.cjs +48 -1
  86. package/dist/typescript/react.cjs +48 -1
  87. package/dist/typescript/serializer.cjs +48 -1
  88. package/dist/typescript/string.cjs +48 -1
  89. package/dist/utils/command.cjs +1387 -1
  90. package/dist/utils/command.d.cts +2 -0
  91. package/dist/utils/command.d.ts +2 -0
  92. package/dist/utils/command.js +1287 -1
  93. package/dist/utils/common.cjs +300 -1
  94. package/dist/utils/common.js +219 -1
  95. package/dist/utils/config.cjs +146 -1
  96. package/dist/utils/config.js +89 -1
  97. package/dist/utils/fs.cjs +118 -1
  98. package/dist/utils/fs.d.cts +4 -1
  99. package/dist/utils/fs.d.ts +4 -1
  100. package/dist/utils/fs.js +37 -1
  101. package/dist/utils/index-nodejs.cjs +1738 -1
  102. package/dist/utils/index-nodejs.d.cts +15 -6
  103. package/dist/utils/index-nodejs.d.ts +15 -6
  104. package/dist/utils/index-nodejs.js +1571 -1
  105. package/dist/utils/index.cjs +727 -1
  106. package/dist/utils/index.js +625 -1
  107. package/dist/utils/log.cjs +330 -1
  108. package/dist/utils/log.js +269 -1
  109. package/dist/utils/package.cjs +941 -0
  110. package/dist/utils/package.d.cts +3 -0
  111. package/dist/utils/package.d.ts +3 -0
  112. package/dist/utils/package.js +857 -0
  113. package/dist/utils/path.cjs +291 -0
  114. package/dist/utils/path.d.cts +6 -0
  115. package/dist/utils/path.d.ts +6 -0
  116. package/dist/utils/path.js +191 -0
  117. package/dist/utils/serializer.cjs +91 -1
  118. package/dist/utils/serializer.js +30 -1
  119. package/dist/utils/storage-client.cjs +349 -1
  120. package/dist/utils/storage-client.js +276 -1
  121. package/dist/utils/storage-server.cjs +636 -1
  122. package/dist/utils/storage-server.d.cts +1 -1
  123. package/dist/utils/storage-server.d.ts +1 -1
  124. package/dist/utils/storage-server.js +550 -1
  125. package/dist/utils/string.cjs +152 -1
  126. package/dist/utils/string.js +75 -1
  127. package/dist/utils/validate.cjs +90 -1
  128. package/dist/utils/validate.js +33 -1
  129. package/package.json +11 -11
  130. package/dist/utils/npm-package.cjs +0 -1
  131. package/dist/utils/npm-package.d.cts +0 -5
  132. package/dist/utils/npm-package.d.ts +0 -5
  133. package/dist/utils/npm-package.js +0 -1
@@ -1 +1,48 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/typescript/loading.ts
47
+ var loading_exports = {};
48
+ module.exports = __toCommonJS(loading_exports);
@@ -1 +1,48 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/typescript/log.ts
47
+ var log_exports = {};
48
+ module.exports = __toCommonJS(log_exports);
@@ -1 +1,164 @@
1
- "use strict";function t(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function e(t,e,n){e=r(e);return u(t,f()?Reflect.construct(e,n||[],r(t).constructor):e.apply(t,n))}function n(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function r(t){r=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return r(t)}function o(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)c(t,e)}function u(e,n){if(n&&(i(n)==="object"||typeof n==="function")){return n}return t(e)}function c(t,e){c=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return c(t,e)}function i(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var p=function(t,e){for(var n in e)l(t,n,{get:e[n],enumerable:!0})},y=function(t,e,n,r){var o=true,u=false,c=undefined;if(e&&(typeof e==="undefined"?"undefined":i(e))=="object"||typeof e=="function")try{var f=function(){var o=y.value;!_.call(t,o)&&o!==n&&l(t,o,{get:function(){return e[o]},enumerable:!(r=a(e,o))||r.enumerable})};for(var p=s(e)[Symbol.iterator](),y;!(o=(y=p.next()).done);o=true)f()}catch(t){u=true;c=t}finally{try{if(!o&&p.return!=null){p.return()}}finally{if(u){throw c}}}return t};var b=function(t){return y(l({},"__esModule",{value:!0}),t)};var d={};p(d,{C_Collection:function(){return w},C_Db:function(){return m},C_Document:function(){return C},C_Model:function(){return O}});module.exports=b(d);var h=require("mongodb"),v=require("mongoose"),m=/*#__PURE__*/function(t){o(r,t);function r(){n(this,r);return e(this,r,arguments)}return r}(h.Db),C=/*#__PURE__*/function(t){o(r,t);function r(){n(this,r);return e(this,r,arguments)}return r}(v.Document),O=/*#__PURE__*/function(t){o(r,t);function r(){n(this,r);return e(this,r,arguments)}return r}(v.Model),w=/*#__PURE__*/function(t){o(r,t);function r(){n(this,r);return e(this,r,arguments)}return r}(h.Collection);0&&(module.exports={C_Collection:C_Collection,C_Db:C_Db,C_Document:C_Document,C_Model:C_Model});
1
+ "use strict";
2
+ function _assert_this_initialized(self) {
3
+ if (self === void 0) {
4
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
+ }
6
+ return self;
7
+ }
8
+ function _call_super(_this, derived, args) {
9
+ derived = _get_prototype_of(derived);
10
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
11
+ }
12
+ function _class_call_check(instance, Constructor) {
13
+ if (!(instance instanceof Constructor)) {
14
+ throw new TypeError("Cannot call a class as a function");
15
+ }
16
+ }
17
+ function _get_prototype_of(o) {
18
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
19
+ return o.__proto__ || Object.getPrototypeOf(o);
20
+ };
21
+ return _get_prototype_of(o);
22
+ }
23
+ function _inherits(subClass, superClass) {
24
+ if (typeof superClass !== "function" && superClass !== null) {
25
+ throw new TypeError("Super expression must either be null or a function");
26
+ }
27
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
28
+ constructor: {
29
+ value: subClass,
30
+ writable: true,
31
+ configurable: true
32
+ }
33
+ });
34
+ if (superClass) _set_prototype_of(subClass, superClass);
35
+ }
36
+ function _possible_constructor_return(self, call) {
37
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
38
+ return call;
39
+ }
40
+ return _assert_this_initialized(self);
41
+ }
42
+ function _set_prototype_of(o, p) {
43
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
44
+ o.__proto__ = p;
45
+ return o;
46
+ };
47
+ return _set_prototype_of(o, p);
48
+ }
49
+ function _type_of(obj) {
50
+ "@swc/helpers - typeof";
51
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
52
+ }
53
+ function _is_native_reflect_construct() {
54
+ try {
55
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
56
+ } catch (_) {}
57
+ return (_is_native_reflect_construct = function() {
58
+ return !!result;
59
+ })();
60
+ }
61
+ var __defProp = Object.defineProperty;
62
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
63
+ var __getOwnPropNames = Object.getOwnPropertyNames;
64
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
65
+ var __export = function(target, all) {
66
+ for(var name in all)__defProp(target, name, {
67
+ get: all[name],
68
+ enumerable: true
69
+ });
70
+ };
71
+ var __copyProps = function(to, from, except, desc) {
72
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
73
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
74
+ try {
75
+ var _loop = function() {
76
+ var key = _step.value;
77
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
78
+ get: function() {
79
+ return from[key];
80
+ },
81
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
82
+ });
83
+ };
84
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
85
+ } catch (err) {
86
+ _didIteratorError = true;
87
+ _iteratorError = err;
88
+ } finally{
89
+ try {
90
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
91
+ _iterator.return();
92
+ }
93
+ } finally{
94
+ if (_didIteratorError) {
95
+ throw _iteratorError;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ return to;
101
+ };
102
+ var __toCommonJS = function(mod) {
103
+ return __copyProps(__defProp({}, "__esModule", {
104
+ value: true
105
+ }), mod);
106
+ };
107
+ // src/typescript/mongo.ts
108
+ var mongo_exports = {};
109
+ __export(mongo_exports, {
110
+ C_Collection: function() {
111
+ return C_Collection;
112
+ },
113
+ C_Db: function() {
114
+ return C_Db;
115
+ },
116
+ C_Document: function() {
117
+ return C_Document;
118
+ },
119
+ C_Model: function() {
120
+ return C_Model;
121
+ }
122
+ });
123
+ module.exports = __toCommonJS(mongo_exports);
124
+ var import_mongodb = require("mongodb");
125
+ var import_mongoose = require("mongoose");
126
+ var C_Db = /*#__PURE__*/ function(_import_mongodb_Db) {
127
+ _inherits(C_Db, _import_mongodb_Db);
128
+ function C_Db() {
129
+ _class_call_check(this, C_Db);
130
+ return _call_super(this, C_Db, arguments);
131
+ }
132
+ return C_Db;
133
+ }(import_mongodb.Db);
134
+ var C_Document = /*#__PURE__*/ function(_import_mongoose_Document) {
135
+ _inherits(C_Document, _import_mongoose_Document);
136
+ function C_Document() {
137
+ _class_call_check(this, C_Document);
138
+ return _call_super(this, C_Document, arguments);
139
+ }
140
+ return C_Document;
141
+ }(import_mongoose.Document);
142
+ var C_Model = /*#__PURE__*/ function(_import_mongoose_Model) {
143
+ _inherits(C_Model, _import_mongoose_Model);
144
+ function C_Model() {
145
+ _class_call_check(this, C_Model);
146
+ return _call_super(this, C_Model, arguments);
147
+ }
148
+ return C_Model;
149
+ }(import_mongoose.Model);
150
+ var C_Collection = /*#__PURE__*/ function(_import_mongodb_Collection) {
151
+ _inherits(C_Collection, _import_mongodb_Collection);
152
+ function C_Collection() {
153
+ _class_call_check(this, C_Collection);
154
+ return _call_super(this, C_Collection, arguments);
155
+ }
156
+ return C_Collection;
157
+ }(import_mongodb.Collection);
158
+ // Annotate the CommonJS export names for ESM import in node:
159
+ 0 && (module.exports = {
160
+ C_Collection: C_Collection,
161
+ C_Db: C_Db,
162
+ C_Document: C_Document,
163
+ C_Model: C_Model
164
+ });
@@ -1 +1,145 @@
1
- function t(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function n(t,n,o){n=e(n);return u(t,f()?Reflect.construct(n,o||[],e(t).constructor):n.apply(t,o))}function o(t,n){if(!(t instanceof n)){throw new TypeError("Cannot call a class as a function")}}function e(t){e=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return e(t)}function r(t,n){if(typeof n!=="function"&&n!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:true,configurable:true}});if(n)c(t,n)}function u(n,o){if(o&&(i(o)==="object"||typeof o==="function")){return o}return t(n)}function c(t,n){c=Object.setPrototypeOf||function t(t,n){t.__proto__=n;return t};return c(t,n)}function i(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}import{Collection as s,Db as a}from"mongodb";import{Document as l,Model as p}from"mongoose";var _=/*#__PURE__*/function(t){"use strict";r(e,t);function e(){o(this,e);return n(this,e,arguments)}return e}(a),y=/*#__PURE__*/function(t){"use strict";r(e,t);function e(){o(this,e);return n(this,e,arguments)}return e}(l),b=/*#__PURE__*/function(t){"use strict";r(e,t);function e(){o(this,e);return n(this,e,arguments)}return e}(p),h=/*#__PURE__*/function(t){"use strict";r(e,t);function e(){o(this,e);return n(this,e,arguments)}return e}(s);export{h as C_Collection,_ as C_Db,y as C_Document,b as C_Model};
1
+ // src/typescript/mongo.ts
2
+ function _assert_this_initialized(self) {
3
+ if (self === void 0) {
4
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
+ }
6
+ return self;
7
+ }
8
+ function _call_super(_this, derived, args) {
9
+ derived = _get_prototype_of(derived);
10
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
11
+ }
12
+ function _class_call_check(instance, Constructor) {
13
+ if (!(instance instanceof Constructor)) {
14
+ throw new TypeError("Cannot call a class as a function");
15
+ }
16
+ }
17
+ function _construct(Parent, args, Class) {
18
+ if (_is_native_reflect_construct()) {
19
+ _construct = Reflect.construct;
20
+ } else {
21
+ _construct = function construct(Parent, args, Class) {
22
+ var a = [
23
+ null
24
+ ];
25
+ a.push.apply(a, args);
26
+ var Constructor = Function.bind.apply(Parent, a);
27
+ var instance = new Constructor();
28
+ if (Class) _set_prototype_of(instance, Class.prototype);
29
+ return instance;
30
+ };
31
+ }
32
+ return _construct.apply(null, arguments);
33
+ }
34
+ function _get_prototype_of(o) {
35
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
36
+ return o.__proto__ || Object.getPrototypeOf(o);
37
+ };
38
+ return _get_prototype_of(o);
39
+ }
40
+ function _inherits(subClass, superClass) {
41
+ if (typeof superClass !== "function" && superClass !== null) {
42
+ throw new TypeError("Super expression must either be null or a function");
43
+ }
44
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
45
+ constructor: {
46
+ value: subClass,
47
+ writable: true,
48
+ configurable: true
49
+ }
50
+ });
51
+ if (superClass) _set_prototype_of(subClass, superClass);
52
+ }
53
+ function _is_native_function(fn) {
54
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
55
+ }
56
+ function _possible_constructor_return(self, call) {
57
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
58
+ return call;
59
+ }
60
+ return _assert_this_initialized(self);
61
+ }
62
+ function _set_prototype_of(o, p) {
63
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
64
+ o.__proto__ = p;
65
+ return o;
66
+ };
67
+ return _set_prototype_of(o, p);
68
+ }
69
+ function _type_of(obj) {
70
+ "@swc/helpers - typeof";
71
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
72
+ }
73
+ function _wrap_native_super(Class) {
74
+ var _cache = typeof Map === "function" ? new Map() : undefined;
75
+ _wrap_native_super = function wrapNativeSuper(Class) {
76
+ if (Class === null || !_is_native_function(Class)) return Class;
77
+ if (typeof Class !== "function") {
78
+ throw new TypeError("Super expression must either be null or a function");
79
+ }
80
+ if (typeof _cache !== "undefined") {
81
+ if (_cache.has(Class)) return _cache.get(Class);
82
+ _cache.set(Class, Wrapper);
83
+ }
84
+ function Wrapper() {
85
+ return _construct(Class, arguments, _get_prototype_of(this).constructor);
86
+ }
87
+ Wrapper.prototype = Object.create(Class.prototype, {
88
+ constructor: {
89
+ value: Wrapper,
90
+ enumerable: false,
91
+ writable: true,
92
+ configurable: true
93
+ }
94
+ });
95
+ return _set_prototype_of(Wrapper, Class);
96
+ };
97
+ return _wrap_native_super(Class);
98
+ }
99
+ function _is_native_reflect_construct() {
100
+ try {
101
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
102
+ } catch (_) {}
103
+ return (_is_native_reflect_construct = function() {
104
+ return !!result;
105
+ })();
106
+ }
107
+ import { Collection, Db } from "mongodb";
108
+ import { Document, Model } from "mongoose";
109
+ var C_Db = /*#__PURE__*/ function(Db) {
110
+ "use strict";
111
+ _inherits(C_Db, Db);
112
+ function C_Db() {
113
+ _class_call_check(this, C_Db);
114
+ return _call_super(this, C_Db, arguments);
115
+ }
116
+ return C_Db;
117
+ }(Db);
118
+ var C_Document = /*#__PURE__*/ function(Document) {
119
+ "use strict";
120
+ _inherits(C_Document, Document);
121
+ function C_Document() {
122
+ _class_call_check(this, C_Document);
123
+ return _call_super(this, C_Document, arguments);
124
+ }
125
+ return C_Document;
126
+ }(_wrap_native_super(Document));
127
+ var C_Model = /*#__PURE__*/ function(Model) {
128
+ "use strict";
129
+ _inherits(C_Model, Model);
130
+ function C_Model() {
131
+ _class_call_check(this, C_Model);
132
+ return _call_super(this, C_Model, arguments);
133
+ }
134
+ return C_Model;
135
+ }(Model);
136
+ var C_Collection = /*#__PURE__*/ function(Collection) {
137
+ "use strict";
138
+ _inherits(C_Collection, Collection);
139
+ function C_Collection() {
140
+ _class_call_check(this, C_Collection);
141
+ return _call_super(this, C_Collection, arguments);
142
+ }
143
+ return C_Collection;
144
+ }(Collection);
145
+ export { C_Collection, C_Db, C_Document, C_Model };
@@ -1 +1,48 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/typescript/next-intl.ts
47
+ var next_intl_exports = {};
48
+ module.exports = __toCommonJS(next_intl_exports);
@@ -1 +1,48 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/typescript/react.ts
47
+ var react_exports = {};
48
+ module.exports = __toCommonJS(react_exports);
@@ -1 +1,48 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/typescript/serializer.ts
47
+ var serializer_exports = {};
48
+ module.exports = __toCommonJS(serializer_exports);
@@ -1 +1,48 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/typescript/string.ts
47
+ var string_exports = {};
48
+ module.exports = __toCommonJS(string_exports);