@point-hub/papi 0.6.1 → 0.6.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/lib/index.js
CHANGED
|
@@ -4,15 +4,29 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
22
|
for (let key of __getOwnPropNames(mod))
|
|
11
23
|
if (!__hasOwnProp.call(to, key))
|
|
12
24
|
__defProp(to, key, {
|
|
13
|
-
get: (
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
14
26
|
enumerable: true
|
|
15
27
|
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
16
30
|
return to;
|
|
17
31
|
};
|
|
18
32
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -1046,7 +1060,7 @@ var require_colors = __commonJS((exports, module) => {
|
|
|
1046
1060
|
colors2.stripColors = colors2.strip = function(str) {
|
|
1047
1061
|
return ("" + str).replace(/\x1B\[\d+m/g, "");
|
|
1048
1062
|
};
|
|
1049
|
-
var stylize = colors2.stylize = function
|
|
1063
|
+
var stylize = colors2.stylize = function stylize2(str, style) {
|
|
1050
1064
|
if (!colors2.enabled) {
|
|
1051
1065
|
return str + "";
|
|
1052
1066
|
}
|
|
@@ -1064,8 +1078,8 @@ var require_colors = __commonJS((exports, module) => {
|
|
|
1064
1078
|
return str.replace(matchOperatorsRe, "\\$&");
|
|
1065
1079
|
};
|
|
1066
1080
|
function build(_styles) {
|
|
1067
|
-
var builder = function
|
|
1068
|
-
return applyStyle.apply(
|
|
1081
|
+
var builder = function builder2() {
|
|
1082
|
+
return applyStyle.apply(builder2, arguments);
|
|
1069
1083
|
};
|
|
1070
1084
|
builder._styles = _styles;
|
|
1071
1085
|
builder.__proto__ = proto;
|
|
@@ -1084,7 +1098,7 @@ var require_colors = __commonJS((exports, module) => {
|
|
|
1084
1098
|
});
|
|
1085
1099
|
return ret;
|
|
1086
1100
|
}();
|
|
1087
|
-
var proto = defineProps(function
|
|
1101
|
+
var proto = defineProps(function colors3() {}, styles);
|
|
1088
1102
|
function applyStyle() {
|
|
1089
1103
|
var args = Array.prototype.slice.call(arguments);
|
|
1090
1104
|
var str = args.map(function(arg2) {
|
|
@@ -1143,7 +1157,7 @@ var require_colors = __commonJS((exports, module) => {
|
|
|
1143
1157
|
});
|
|
1144
1158
|
return ret;
|
|
1145
1159
|
}
|
|
1146
|
-
var sequencer = function
|
|
1160
|
+
var sequencer = function sequencer2(map2, str) {
|
|
1147
1161
|
var exploded = str.split("");
|
|
1148
1162
|
exploded = exploded.map(map2);
|
|
1149
1163
|
return exploded.join("");
|
|
@@ -1272,7 +1286,7 @@ var require_cell = __commonJS((exports, module) => {
|
|
|
1272
1286
|
let content = utils.truncate(this.content, 10, this.truncate);
|
|
1273
1287
|
if (!lineNum) {
|
|
1274
1288
|
info(`${this.y}-${this.x}: ${this.rowSpan - lineNum}x${this.colSpan} Cell ${content}`);
|
|
1275
|
-
}
|
|
1289
|
+
}
|
|
1276
1290
|
let padLen = Math.max(this.height - this.lines.length, 0);
|
|
1277
1291
|
let padTop;
|
|
1278
1292
|
switch (this.vAlign) {
|
|
@@ -2040,7 +2054,7 @@ var require_clear = __commonJS((exports, module) => {
|
|
|
2040
2054
|
if (it)
|
|
2041
2055
|
o = it;
|
|
2042
2056
|
var i = 0;
|
|
2043
|
-
var F = function
|
|
2057
|
+
var F = function F2() {};
|
|
2044
2058
|
return { s: F, n: function n() {
|
|
2045
2059
|
if (i >= o.length)
|
|
2046
2060
|
return { done: true };
|
|
@@ -4372,7 +4386,7 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
4372
4386
|
if (it)
|
|
4373
4387
|
o = it;
|
|
4374
4388
|
var i = 0;
|
|
4375
|
-
var F = function
|
|
4389
|
+
var F = function F2() {};
|
|
4376
4390
|
return { s: F, n: function n() {
|
|
4377
4391
|
if (i >= o.length)
|
|
4378
4392
|
return { done: true };
|
|
@@ -4475,7 +4489,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4475
4489
|
}
|
|
4476
4490
|
return question2.format ? yield question2.format(answer2, answers) : answer2;
|
|
4477
4491
|
});
|
|
4478
|
-
return function
|
|
4492
|
+
return function getFormattedAnswer2(_x, _x2) {
|
|
4479
4493
|
return _ref.apply(this, arguments);
|
|
4480
4494
|
};
|
|
4481
4495
|
}();
|
|
@@ -12051,7 +12065,7 @@ var require_server_selection = __commonJS((exports) => {
|
|
|
12051
12065
|
};
|
|
12052
12066
|
}
|
|
12053
12067
|
function sameServerSelector(description) {
|
|
12054
|
-
return function
|
|
12068
|
+
return function sameServerSelector2(topologyDescription, servers) {
|
|
12055
12069
|
if (!description)
|
|
12056
12070
|
return [];
|
|
12057
12071
|
return servers.filter((sd) => {
|
|
@@ -15972,7 +15986,7 @@ var require_mongo_logger = __commonJS((exports) => {
|
|
|
15972
15986
|
function stringifyWithMaxLen(value, maxDocumentLength, options = {}) {
|
|
15973
15987
|
let strToTruncate = "";
|
|
15974
15988
|
let currentLength = 0;
|
|
15975
|
-
const maxDocumentLengthEnsurer = function
|
|
15989
|
+
const maxDocumentLengthEnsurer = function maxDocumentLengthEnsurer2(key, value2) {
|
|
15976
15990
|
if (currentLength >= maxDocumentLength) {
|
|
15977
15991
|
return;
|
|
15978
15992
|
}
|
|
@@ -35197,7 +35211,7 @@ var require_utils4 = __commonJS((exports) => {
|
|
|
35197
35211
|
}
|
|
35198
35212
|
var toString = Object.prototype.toString;
|
|
35199
35213
|
exports.toString = toString;
|
|
35200
|
-
var isFunction = function
|
|
35214
|
+
var isFunction = function isFunction2(value) {
|
|
35201
35215
|
return typeof value === "function";
|
|
35202
35216
|
};
|
|
35203
35217
|
if (isFunction(/x/)) {
|
|
@@ -35851,7 +35865,7 @@ var require_wrapHelper = __commonJS((exports) => {
|
|
|
35851
35865
|
if (typeof helper !== "function") {
|
|
35852
35866
|
return helper;
|
|
35853
35867
|
}
|
|
35854
|
-
var wrapper = function
|
|
35868
|
+
var wrapper = function wrapper2() {
|
|
35855
35869
|
var options = arguments[arguments.length - 1];
|
|
35856
35870
|
arguments[arguments.length - 1] = transformOptionsFn(options);
|
|
35857
35871
|
return helper.apply(this, arguments);
|
|
@@ -37515,7 +37529,7 @@ var require_compiler = __commonJS((exports) => {
|
|
|
37515
37529
|
return true;
|
|
37516
37530
|
},
|
|
37517
37531
|
guid: 0,
|
|
37518
|
-
compile: function
|
|
37532
|
+
compile: function compile2(program, options) {
|
|
37519
37533
|
this.sourceNode = [];
|
|
37520
37534
|
this.opcodes = [];
|
|
37521
37535
|
this.children = [];
|
|
@@ -39626,7 +39640,7 @@ var require_code_gen = __commonJS((exports, module) => {
|
|
|
39626
39640
|
this.source = [];
|
|
39627
39641
|
}
|
|
39628
39642
|
CodeGen.prototype = {
|
|
39629
|
-
isEmpty: function
|
|
39643
|
+
isEmpty: function isEmpty2() {
|
|
39630
39644
|
return !this.source.length;
|
|
39631
39645
|
},
|
|
39632
39646
|
prepend: function prepend(source, loc) {
|
|
@@ -41477,7 +41491,7 @@ var require_parser3 = __commonJS((exports, module) => {
|
|
|
41477
41491
|
return (string + "").replace(unescapeRe, "");
|
|
41478
41492
|
};
|
|
41479
41493
|
var slickRe = RegExp(`^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/, "[" + escape(">+~`!@$%^&={}\\;</") + "]").replace(/<unicode>/g, "(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g, "(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])"));
|
|
41480
|
-
var Part = function
|
|
41494
|
+
var Part = function Part2(combinator) {
|
|
41481
41495
|
this.combinator = combinator || " ";
|
|
41482
41496
|
this.tag = "*";
|
|
41483
41497
|
};
|
|
@@ -41503,7 +41517,7 @@ var require_parser3 = __commonJS((exports, module) => {
|
|
|
41503
41517
|
}
|
|
41504
41518
|
return this.raw;
|
|
41505
41519
|
};
|
|
41506
|
-
var Expression = function
|
|
41520
|
+
var Expression = function Expression2() {
|
|
41507
41521
|
this.length = 0;
|
|
41508
41522
|
};
|
|
41509
41523
|
Expression.prototype.toString = function() {
|
|
@@ -41568,7 +41582,7 @@ var require_parser3 = __commonJS((exports, module) => {
|
|
|
41568
41582
|
}
|
|
41569
41583
|
return "";
|
|
41570
41584
|
};
|
|
41571
|
-
var Expressions = function
|
|
41585
|
+
var Expressions = function Expressions2(expression) {
|
|
41572
41586
|
this.length = 0;
|
|
41573
41587
|
var self = this;
|
|
41574
41588
|
var original = expression, replaced;
|
|
@@ -63654,7 +63668,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
63654
63668
|
if (resCode !== undefined) {
|
|
63655
63669
|
dbcsCode = resCode;
|
|
63656
63670
|
nextChar = uCode;
|
|
63657
|
-
}
|
|
63671
|
+
}
|
|
63658
63672
|
}
|
|
63659
63673
|
seqObj = undefined;
|
|
63660
63674
|
} else if (uCode >= 0) {
|
|
@@ -63715,7 +63729,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
63715
63729
|
newBuf[j++] = dbcsCode >> 8;
|
|
63716
63730
|
newBuf[j++] = dbcsCode & 255;
|
|
63717
63731
|
}
|
|
63718
|
-
}
|
|
63732
|
+
}
|
|
63719
63733
|
this.seqObj = undefined;
|
|
63720
63734
|
}
|
|
63721
63735
|
if (this.leadSurrogate !== -1) {
|
|
@@ -69541,11 +69555,14 @@ function deepMerge(target, source) {
|
|
|
69541
69555
|
return result;
|
|
69542
69556
|
}
|
|
69543
69557
|
function stringToDateIfISODateTime(str) {
|
|
69544
|
-
|
|
69558
|
+
const isoDateTimeRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
69559
|
+
if (!isoDateTimeRegex.test(str)) {
|
|
69545
69560
|
return str;
|
|
69561
|
+
}
|
|
69546
69562
|
const timestamp = Date.parse(str);
|
|
69547
|
-
if (Number.isNaN(timestamp))
|
|
69563
|
+
if (Number.isNaN(timestamp)) {
|
|
69548
69564
|
return str;
|
|
69565
|
+
}
|
|
69549
69566
|
return new Date(timestamp);
|
|
69550
69567
|
}
|
|
69551
69568
|
function convertPrimitive(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongodb-helper.d.ts","sourceRoot":"","sources":["../../../../src/database/mongodb/mongodb-helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAE5E,OAAO,EAAE,SAAS,EAAE,MAA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C,MAAM,EAAE,GAAG,CAAC,CAAC;KACjC,CAyEA;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@point-hub/papi",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Point API Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"url": "https://github.com/point-hub/papi.git"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@eslint/eslintrc": "^3.3.
|
|
36
|
+
"@eslint/eslintrc": "^3.3.6",
|
|
37
37
|
"@eslint/js": "^9.39.2",
|
|
38
38
|
"@types/compression": "^1.8.1",
|
|
39
39
|
"@types/cors": "^2.8.19",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@types/node": "^25.0.8",
|
|
42
42
|
"@types/shelljs": "^0.10.0",
|
|
43
43
|
"@types/validatorjs": "^3.15.5",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
45
|
-
"@typescript-eslint/parser": "^8.
|
|
46
|
-
"bun-types": "^1.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
45
|
+
"@typescript-eslint/parser": "^8.67.0",
|
|
46
|
+
"bun-types": "^1.4.0",
|
|
47
47
|
"cross-env": "^10.1.0",
|
|
48
|
-
"eslint": "^9.
|
|
49
|
-
"eslint-plugin-simple-import-sort": "^
|
|
50
|
-
"jiti": "^2.
|
|
48
|
+
"eslint": "^10.9.0",
|
|
49
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
50
|
+
"jiti": "^2.7.0",
|
|
51
51
|
"shx": "^0.4.0",
|
|
52
52
|
"typescript": "^5.9.3"
|
|
53
53
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@point-hub/express-error-handler": "^0.2.2",
|
|
57
57
|
"@point-hub/express-factory": "^1.1.4",
|
|
58
58
|
"@point-hub/express-utils": "^0.2.12",
|
|
59
|
-
"date-fns": "^4.
|
|
59
|
+
"date-fns": "^4.4.0",
|
|
60
60
|
"shelljs": "^0.10.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|