@hot-updater/postgres 0.33.0 → 0.33.1
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.cjs +62 -11
- package/dist/index.mjs +62 -11
- package/package.json +12 -9
package/dist/index.cjs
CHANGED
|
@@ -164,6 +164,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
164
164
|
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
165
165
|
const numeric = /^[0-9]+$/;
|
|
166
166
|
const compareIdentifiers = (a, b) => {
|
|
167
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
167
168
|
const anum = numeric.test(a);
|
|
168
169
|
const bnum = numeric.test(b);
|
|
169
170
|
if (anum && bnum) {
|
|
@@ -184,6 +185,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
184
185
|
const { safeRe: re, t } = require_re();
|
|
185
186
|
const parseOptions = require_parse_options();
|
|
186
187
|
const { compareIdentifiers } = require_identifiers();
|
|
188
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
189
|
+
const identifiers = identifier.split(".");
|
|
190
|
+
if (identifiers.length > prerelease.length) return false;
|
|
191
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
192
|
+
return true;
|
|
193
|
+
};
|
|
187
194
|
module.exports = class SemVer {
|
|
188
195
|
constructor(version, options) {
|
|
189
196
|
options = parseOptions(options);
|
|
@@ -234,7 +241,13 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
234
241
|
}
|
|
235
242
|
compareMain(other) {
|
|
236
243
|
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
237
|
-
|
|
244
|
+
if (this.major < other.major) return -1;
|
|
245
|
+
if (this.major > other.major) return 1;
|
|
246
|
+
if (this.minor < other.minor) return -1;
|
|
247
|
+
if (this.minor > other.minor) return 1;
|
|
248
|
+
if (this.patch < other.patch) return -1;
|
|
249
|
+
if (this.patch > other.patch) return 1;
|
|
250
|
+
return 0;
|
|
238
251
|
}
|
|
239
252
|
comparePre(other) {
|
|
240
253
|
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
@@ -334,8 +347,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
334
347
|
if (identifier) {
|
|
335
348
|
let prerelease = [identifier, base];
|
|
336
349
|
if (identifierBase === false) prerelease = [identifier];
|
|
337
|
-
if (
|
|
338
|
-
|
|
350
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
351
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
352
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
339
353
|
} else this.prerelease = prerelease;
|
|
340
354
|
}
|
|
341
355
|
break;
|
|
@@ -562,6 +576,37 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
562
576
|
};
|
|
563
577
|
module.exports = coerce;
|
|
564
578
|
}));
|
|
579
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
580
|
+
const parse = require_parse();
|
|
581
|
+
const constants = require_constants();
|
|
582
|
+
const SemVer = require_semver$1();
|
|
583
|
+
const truncate = (version, truncation, options) => {
|
|
584
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
585
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
586
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
587
|
+
};
|
|
588
|
+
const cloneInputVersion = (version, options) => {
|
|
589
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
590
|
+
};
|
|
591
|
+
const doTruncation = (version, truncation) => {
|
|
592
|
+
if (isPrerelease(truncation)) return version.version;
|
|
593
|
+
version.prerelease = [];
|
|
594
|
+
switch (truncation) {
|
|
595
|
+
case "major":
|
|
596
|
+
version.minor = 0;
|
|
597
|
+
version.patch = 0;
|
|
598
|
+
break;
|
|
599
|
+
case "minor":
|
|
600
|
+
version.patch = 0;
|
|
601
|
+
break;
|
|
602
|
+
}
|
|
603
|
+
return version.format();
|
|
604
|
+
};
|
|
605
|
+
const isPrerelease = (type) => {
|
|
606
|
+
return type.startsWith("pre");
|
|
607
|
+
};
|
|
608
|
+
module.exports = truncate;
|
|
609
|
+
}));
|
|
565
610
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
566
611
|
var LRUCache = class {
|
|
567
612
|
constructor() {
|
|
@@ -646,6 +691,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
646
691
|
return this.range;
|
|
647
692
|
}
|
|
648
693
|
parseRange(range) {
|
|
694
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
649
695
|
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
650
696
|
const cached = cache.get(memoKey);
|
|
651
697
|
if (cached) return cached;
|
|
@@ -704,8 +750,9 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
704
750
|
const Comparator = require_comparator();
|
|
705
751
|
const debug = require_debug();
|
|
706
752
|
const SemVer = require_semver$1();
|
|
707
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
753
|
+
const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
708
754
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
755
|
+
const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
709
756
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
710
757
|
const isAny = (c) => c.value === "";
|
|
711
758
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -721,6 +768,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
721
768
|
return result;
|
|
722
769
|
};
|
|
723
770
|
const parseComparator = (comp, options) => {
|
|
771
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
724
772
|
debug("comp", comp, options);
|
|
725
773
|
comp = replaceCarets(comp, options);
|
|
726
774
|
debug("caret", comp);
|
|
@@ -733,6 +781,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
733
781
|
return comp;
|
|
734
782
|
};
|
|
735
783
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
784
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
736
785
|
const replaceTildes = (comp, options) => {
|
|
737
786
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
738
787
|
};
|
|
@@ -773,8 +822,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
773
822
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
774
823
|
} else {
|
|
775
824
|
debug("no pr");
|
|
776
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}
|
|
777
|
-
else ret = `>=${M}.${m}.${p}
|
|
825
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
826
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
778
827
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
779
828
|
}
|
|
780
829
|
debug("caret return", ret);
|
|
@@ -790,6 +839,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
790
839
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
791
840
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
792
841
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
842
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
793
843
|
const xM = isX(M);
|
|
794
844
|
const xm = xM || isX(m);
|
|
795
845
|
const xp = xm || isX(p);
|
|
@@ -1204,7 +1254,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1204
1254
|
if (c.operator === ">" || c.operator === ">=") {
|
|
1205
1255
|
higher = higherGT(gt, c, options);
|
|
1206
1256
|
if (higher === c && higher !== gt) return false;
|
|
1207
|
-
} else if (gt.operator === ">=" && !
|
|
1257
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
|
|
1208
1258
|
}
|
|
1209
1259
|
if (lt) {
|
|
1210
1260
|
if (needDomLTPre) {
|
|
@@ -1213,7 +1263,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1213
1263
|
if (c.operator === "<" || c.operator === "<=") {
|
|
1214
1264
|
lower = lowerLT(lt, c, options);
|
|
1215
1265
|
if (lower === c && lower !== lt) return false;
|
|
1216
|
-
} else if (lt.operator === "<=" && !
|
|
1266
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
|
|
1217
1267
|
}
|
|
1218
1268
|
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
1219
1269
|
}
|
|
@@ -1263,6 +1313,7 @@ var import_semver = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exp
|
|
|
1263
1313
|
lte: require_lte(),
|
|
1264
1314
|
cmp: require_cmp(),
|
|
1265
1315
|
coerce: require_coerce(),
|
|
1316
|
+
truncate: require_truncate(),
|
|
1266
1317
|
Comparator: require_comparator(),
|
|
1267
1318
|
Range: require_range(),
|
|
1268
1319
|
satisfies: require_satisfies(),
|
|
@@ -1619,7 +1670,7 @@ function camelcaseKeys(input, options) {
|
|
|
1619
1670
|
return transform(input, options);
|
|
1620
1671
|
}
|
|
1621
1672
|
//#endregion
|
|
1622
|
-
//#region ../../node_modules/.pnpm/pg-minify@1.
|
|
1673
|
+
//#region ../../node_modules/.pnpm/pg-minify@1.8.0/node_modules/pg-minify/lib/utils.js
|
|
1623
1674
|
var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
1624
1675
|
const { inspect } = require("util");
|
|
1625
1676
|
function getIndexPos(text, index) {
|
|
@@ -1649,7 +1700,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
1649
1700
|
};
|
|
1650
1701
|
}));
|
|
1651
1702
|
//#endregion
|
|
1652
|
-
//#region ../../node_modules/.pnpm/pg-minify@1.
|
|
1703
|
+
//#region ../../node_modules/.pnpm/pg-minify@1.8.0/node_modules/pg-minify/lib/error.js
|
|
1653
1704
|
var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
1654
1705
|
const { EOL } = require("os");
|
|
1655
1706
|
const { addInspection, messageGap } = require_utils();
|
|
@@ -1710,7 +1761,7 @@ var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
1710
1761
|
};
|
|
1711
1762
|
}));
|
|
1712
1763
|
//#endregion
|
|
1713
|
-
//#region ../../node_modules/.pnpm/pg-minify@1.
|
|
1764
|
+
//#region ../../node_modules/.pnpm/pg-minify@1.8.0/node_modules/pg-minify/lib/parser.js
|
|
1714
1765
|
var require_parser = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
1715
1766
|
const { parsingErrorCode, SQLParsingError } = require_error();
|
|
1716
1767
|
const { getIndexPos } = require_utils();
|
package/dist/index.mjs
CHANGED
|
@@ -165,6 +165,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
165
165
|
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
166
166
|
const numeric = /^[0-9]+$/;
|
|
167
167
|
const compareIdentifiers = (a, b) => {
|
|
168
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
168
169
|
const anum = numeric.test(a);
|
|
169
170
|
const bnum = numeric.test(b);
|
|
170
171
|
if (anum && bnum) {
|
|
@@ -185,6 +186,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
185
186
|
const { safeRe: re, t } = require_re();
|
|
186
187
|
const parseOptions = require_parse_options();
|
|
187
188
|
const { compareIdentifiers } = require_identifiers();
|
|
189
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
190
|
+
const identifiers = identifier.split(".");
|
|
191
|
+
if (identifiers.length > prerelease.length) return false;
|
|
192
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
193
|
+
return true;
|
|
194
|
+
};
|
|
188
195
|
module.exports = class SemVer {
|
|
189
196
|
constructor(version, options) {
|
|
190
197
|
options = parseOptions(options);
|
|
@@ -235,7 +242,13 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
235
242
|
}
|
|
236
243
|
compareMain(other) {
|
|
237
244
|
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
238
|
-
|
|
245
|
+
if (this.major < other.major) return -1;
|
|
246
|
+
if (this.major > other.major) return 1;
|
|
247
|
+
if (this.minor < other.minor) return -1;
|
|
248
|
+
if (this.minor > other.minor) return 1;
|
|
249
|
+
if (this.patch < other.patch) return -1;
|
|
250
|
+
if (this.patch > other.patch) return 1;
|
|
251
|
+
return 0;
|
|
239
252
|
}
|
|
240
253
|
comparePre(other) {
|
|
241
254
|
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
@@ -335,8 +348,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
335
348
|
if (identifier) {
|
|
336
349
|
let prerelease = [identifier, base];
|
|
337
350
|
if (identifierBase === false) prerelease = [identifier];
|
|
338
|
-
if (
|
|
339
|
-
|
|
351
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
352
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
353
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
340
354
|
} else this.prerelease = prerelease;
|
|
341
355
|
}
|
|
342
356
|
break;
|
|
@@ -563,6 +577,37 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
563
577
|
};
|
|
564
578
|
module.exports = coerce;
|
|
565
579
|
}));
|
|
580
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
581
|
+
const parse = require_parse();
|
|
582
|
+
const constants = require_constants();
|
|
583
|
+
const SemVer = require_semver$1();
|
|
584
|
+
const truncate = (version, truncation, options) => {
|
|
585
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
586
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
587
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
588
|
+
};
|
|
589
|
+
const cloneInputVersion = (version, options) => {
|
|
590
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
591
|
+
};
|
|
592
|
+
const doTruncation = (version, truncation) => {
|
|
593
|
+
if (isPrerelease(truncation)) return version.version;
|
|
594
|
+
version.prerelease = [];
|
|
595
|
+
switch (truncation) {
|
|
596
|
+
case "major":
|
|
597
|
+
version.minor = 0;
|
|
598
|
+
version.patch = 0;
|
|
599
|
+
break;
|
|
600
|
+
case "minor":
|
|
601
|
+
version.patch = 0;
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
return version.format();
|
|
605
|
+
};
|
|
606
|
+
const isPrerelease = (type) => {
|
|
607
|
+
return type.startsWith("pre");
|
|
608
|
+
};
|
|
609
|
+
module.exports = truncate;
|
|
610
|
+
}));
|
|
566
611
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
567
612
|
var LRUCache = class {
|
|
568
613
|
constructor() {
|
|
@@ -647,6 +692,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
647
692
|
return this.range;
|
|
648
693
|
}
|
|
649
694
|
parseRange(range) {
|
|
695
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
650
696
|
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
651
697
|
const cached = cache.get(memoKey);
|
|
652
698
|
if (cached) return cached;
|
|
@@ -705,8 +751,9 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
705
751
|
const Comparator = require_comparator();
|
|
706
752
|
const debug = require_debug();
|
|
707
753
|
const SemVer = require_semver$1();
|
|
708
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
754
|
+
const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
709
755
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
756
|
+
const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
710
757
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
711
758
|
const isAny = (c) => c.value === "";
|
|
712
759
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -722,6 +769,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
722
769
|
return result;
|
|
723
770
|
};
|
|
724
771
|
const parseComparator = (comp, options) => {
|
|
772
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
725
773
|
debug("comp", comp, options);
|
|
726
774
|
comp = replaceCarets(comp, options);
|
|
727
775
|
debug("caret", comp);
|
|
@@ -734,6 +782,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
734
782
|
return comp;
|
|
735
783
|
};
|
|
736
784
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
785
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
737
786
|
const replaceTildes = (comp, options) => {
|
|
738
787
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
739
788
|
};
|
|
@@ -774,8 +823,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
774
823
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
775
824
|
} else {
|
|
776
825
|
debug("no pr");
|
|
777
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}
|
|
778
|
-
else ret = `>=${M}.${m}.${p}
|
|
826
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
827
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
779
828
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
780
829
|
}
|
|
781
830
|
debug("caret return", ret);
|
|
@@ -791,6 +840,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
791
840
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
792
841
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
793
842
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
843
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
794
844
|
const xM = isX(M);
|
|
795
845
|
const xm = xM || isX(m);
|
|
796
846
|
const xp = xm || isX(p);
|
|
@@ -1205,7 +1255,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1205
1255
|
if (c.operator === ">" || c.operator === ">=") {
|
|
1206
1256
|
higher = higherGT(gt, c, options);
|
|
1207
1257
|
if (higher === c && higher !== gt) return false;
|
|
1208
|
-
} else if (gt.operator === ">=" && !
|
|
1258
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
|
|
1209
1259
|
}
|
|
1210
1260
|
if (lt) {
|
|
1211
1261
|
if (needDomLTPre) {
|
|
@@ -1214,7 +1264,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1214
1264
|
if (c.operator === "<" || c.operator === "<=") {
|
|
1215
1265
|
lower = lowerLT(lt, c, options);
|
|
1216
1266
|
if (lower === c && lower !== lt) return false;
|
|
1217
|
-
} else if (lt.operator === "<=" && !
|
|
1267
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
|
|
1218
1268
|
}
|
|
1219
1269
|
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
1220
1270
|
}
|
|
@@ -1264,6 +1314,7 @@ var import_semver = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exp
|
|
|
1264
1314
|
lte: require_lte(),
|
|
1265
1315
|
cmp: require_cmp(),
|
|
1266
1316
|
coerce: require_coerce(),
|
|
1317
|
+
truncate: require_truncate(),
|
|
1267
1318
|
Comparator: require_comparator(),
|
|
1268
1319
|
Range: require_range(),
|
|
1269
1320
|
satisfies: require_satisfies(),
|
|
@@ -1620,7 +1671,7 @@ function camelcaseKeys(input, options) {
|
|
|
1620
1671
|
return transform(input, options);
|
|
1621
1672
|
}
|
|
1622
1673
|
//#endregion
|
|
1623
|
-
//#region ../../node_modules/.pnpm/pg-minify@1.
|
|
1674
|
+
//#region ../../node_modules/.pnpm/pg-minify@1.8.0/node_modules/pg-minify/lib/utils.js
|
|
1624
1675
|
var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
1625
1676
|
const { inspect } = __require("util");
|
|
1626
1677
|
function getIndexPos(text, index) {
|
|
@@ -1650,7 +1701,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
1650
1701
|
};
|
|
1651
1702
|
}));
|
|
1652
1703
|
//#endregion
|
|
1653
|
-
//#region ../../node_modules/.pnpm/pg-minify@1.
|
|
1704
|
+
//#region ../../node_modules/.pnpm/pg-minify@1.8.0/node_modules/pg-minify/lib/error.js
|
|
1654
1705
|
var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
1655
1706
|
const { EOL } = __require("os");
|
|
1656
1707
|
const { addInspection, messageGap } = require_utils();
|
|
@@ -1711,7 +1762,7 @@ var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
1711
1762
|
};
|
|
1712
1763
|
}));
|
|
1713
1764
|
//#endregion
|
|
1714
|
-
//#region ../../node_modules/.pnpm/pg-minify@1.
|
|
1765
|
+
//#region ../../node_modules/.pnpm/pg-minify@1.8.0/node_modules/pg-minify/lib/parser.js
|
|
1715
1766
|
var require_parser = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
1716
1767
|
const { parsingErrorCode, SQLParsingError } = require_error();
|
|
1717
1768
|
const { getIndexPos } = require_utils();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/postgres",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.33.
|
|
4
|
+
"version": "0.33.1",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"types": "./dist/index.d.cts",
|
|
16
16
|
"license": "MIT",
|
|
17
|
-
"repository":
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/gronxb/hot-updater"
|
|
20
|
+
},
|
|
18
21
|
"author": "gronxb <gron1gh1@gmail.com> (https://github.com/gronxb)",
|
|
19
22
|
"bugs": {
|
|
20
23
|
"url": "https://github.com/gronxb/hot-updater/issues"
|
|
@@ -29,25 +32,25 @@
|
|
|
29
32
|
"package.json"
|
|
30
33
|
],
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"kysely": "0.28.
|
|
35
|
+
"kysely": "0.28.17",
|
|
33
36
|
"pg": "8.13.1",
|
|
34
|
-
"@hot-updater/core": "0.33.
|
|
35
|
-
"@hot-updater/plugin-core": "0.33.
|
|
37
|
+
"@hot-updater/core": "0.33.1",
|
|
38
|
+
"@hot-updater/plugin-core": "0.33.1"
|
|
36
39
|
},
|
|
37
40
|
"devDependencies": {
|
|
38
|
-
"@electric-sql/pglite": "0.
|
|
41
|
+
"@electric-sql/pglite": "0.4.1",
|
|
39
42
|
"@types/node": "^20",
|
|
40
43
|
"@types/pg": "^8.11.10",
|
|
41
44
|
"camelcase-keys": "^9.1.3",
|
|
42
45
|
"pg-minify": "^1.6.5",
|
|
43
|
-
"@hot-updater/js": "0.33.
|
|
44
|
-
"@hot-updater/test-utils": "0.33.
|
|
46
|
+
"@hot-updater/js": "0.33.1",
|
|
47
|
+
"@hot-updater/test-utils": "0.33.1"
|
|
45
48
|
},
|
|
46
49
|
"inlinedDependencies": {
|
|
47
50
|
"camelcase": "8.0.0",
|
|
48
51
|
"camelcase-keys": "9.1.3",
|
|
49
52
|
"map-obj": "5.0.0",
|
|
50
|
-
"pg-minify": "1.
|
|
53
|
+
"pg-minify": "1.8.0",
|
|
51
54
|
"quick-lru": "6.1.2"
|
|
52
55
|
},
|
|
53
56
|
"scripts": {
|