@prisma/migrate 5.17.0-dev.10 → 5.17.0-dev.4
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/bin.js +4 -4
- package/dist/{chunk-CQYWVZIS.js → chunk-2FQ3U47H.js} +452 -91
- package/dist/{chunk-AJFOZSAR.js → chunk-3BUUXV4H.js} +451 -90
- package/dist/chunk-NNDVFXHL.js +105 -0
- package/dist/commands/MigrateDiff.js +4 -4
- package/dist/index.js +4 -4
- package/dist/utils/setupMSSQL.js +41960 -43348
- package/package.json +6 -6
- package/dist/chunk-ODPKPRK7.js +0 -474
package/dist/bin.js
CHANGED
|
@@ -60,8 +60,8 @@ var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
|
|
60
60
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
61
61
|
var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
|
|
62
62
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
|
63
|
-
var
|
|
64
|
-
var
|
|
63
|
+
var import_chunk_2FQ3U47H = require("./chunk-2FQ3U47H.js");
|
|
64
|
+
var import_chunk_NNDVFXHL = require("./chunk-NNDVFXHL.js");
|
|
65
65
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
66
66
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
|
67
67
|
var import_chunk_WIZM7TFT = require("./chunk-WIZM7TFT.js");
|
|
@@ -94,7 +94,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
94
94
|
(0, import_chunk_CK5VLKFM.init_MigrateCommand)();
|
|
95
95
|
(0, import_chunk_URVCS3KZ.init_MigrateDeploy)();
|
|
96
96
|
(0, import_chunk_N3MKZNHF.init_MigrateDev)();
|
|
97
|
-
(0,
|
|
97
|
+
(0, import_chunk_2FQ3U47H.init_MigrateDiff)();
|
|
98
98
|
(0, import_chunk_SRQV752O.init_MigrateReset)();
|
|
99
99
|
(0, import_chunk_YOJLWWHS.init_MigrateResolve)();
|
|
100
100
|
(0, import_chunk_EXUE5VNG.init_MigrateStatus)();
|
|
@@ -118,7 +118,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
118
118
|
resolve: import_chunk_YOJLWWHS.MigrateResolve.new(),
|
|
119
119
|
reset: import_chunk_SRQV752O.MigrateReset.new(),
|
|
120
120
|
deploy: import_chunk_URVCS3KZ.MigrateDeploy.new(),
|
|
121
|
-
diff:
|
|
121
|
+
diff: import_chunk_2FQ3U47H.MigrateDiff.new()
|
|
122
122
|
}),
|
|
123
123
|
db: import_chunk_NJUAN6V2.DbCommand.new({
|
|
124
124
|
execute: import_chunk_ABP7SDTZ.DbExecute.new(),
|
|
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_2FQ3U47H_exports = {};
|
|
30
|
+
__export(chunk_2FQ3U47H_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_2FQ3U47H_exports);
|
|
35
|
+
var import_chunk_NNDVFXHL = require("./chunk-NNDVFXHL.js");
|
|
36
36
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
37
37
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
|
38
38
|
var import_chunk_WIZM7TFT = require("./chunk-WIZM7TFT.js");
|
|
@@ -7768,6 +7768,448 @@ ${codeFrame}
|
|
|
7768
7768
|
);
|
|
7769
7769
|
}
|
|
7770
7770
|
});
|
|
7771
|
+
var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7772
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"(exports, module2) {
|
|
7773
|
+
"use strict";
|
|
7774
|
+
var debug4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
7775
|
+
};
|
|
7776
|
+
module2.exports = debug4;
|
|
7777
|
+
}
|
|
7778
|
+
});
|
|
7779
|
+
var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7780
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"(exports, module2) {
|
|
7781
|
+
"use strict";
|
|
7782
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
7783
|
+
var MAX_LENGTH = 256;
|
|
7784
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
7785
|
+
9007199254740991;
|
|
7786
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
7787
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
7788
|
+
var RELEASE_TYPES = [
|
|
7789
|
+
"major",
|
|
7790
|
+
"premajor",
|
|
7791
|
+
"minor",
|
|
7792
|
+
"preminor",
|
|
7793
|
+
"patch",
|
|
7794
|
+
"prepatch",
|
|
7795
|
+
"prerelease"
|
|
7796
|
+
];
|
|
7797
|
+
module2.exports = {
|
|
7798
|
+
MAX_LENGTH,
|
|
7799
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
7800
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
7801
|
+
MAX_SAFE_INTEGER,
|
|
7802
|
+
RELEASE_TYPES,
|
|
7803
|
+
SEMVER_SPEC_VERSION,
|
|
7804
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
7805
|
+
FLAG_LOOSE: 2
|
|
7806
|
+
};
|
|
7807
|
+
}
|
|
7808
|
+
});
|
|
7809
|
+
var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7810
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"(exports, module2) {
|
|
7811
|
+
"use strict";
|
|
7812
|
+
var {
|
|
7813
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
7814
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
7815
|
+
MAX_LENGTH
|
|
7816
|
+
} = require_constants();
|
|
7817
|
+
var debug4 = require_debug();
|
|
7818
|
+
exports = module2.exports = {};
|
|
7819
|
+
var re = exports.re = [];
|
|
7820
|
+
var safeRe = exports.safeRe = [];
|
|
7821
|
+
var src = exports.src = [];
|
|
7822
|
+
var t = exports.t = {};
|
|
7823
|
+
var R = 0;
|
|
7824
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
7825
|
+
var safeRegexReplacements = [
|
|
7826
|
+
["\\s", 1],
|
|
7827
|
+
["\\d", MAX_LENGTH],
|
|
7828
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
7829
|
+
];
|
|
7830
|
+
var makeSafeRegex = (value) => {
|
|
7831
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
7832
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
7833
|
+
}
|
|
7834
|
+
return value;
|
|
7835
|
+
};
|
|
7836
|
+
var createToken = (name, value, isGlobal) => {
|
|
7837
|
+
const safe = makeSafeRegex(value);
|
|
7838
|
+
const index = R++;
|
|
7839
|
+
debug4(name, index, value);
|
|
7840
|
+
t[name] = index;
|
|
7841
|
+
src[index] = value;
|
|
7842
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
7843
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
7844
|
+
};
|
|
7845
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
7846
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
7847
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
7848
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
7849
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
7850
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
7851
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
7852
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
7853
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
7854
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
7855
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
7856
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
7857
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
7858
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
7859
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
7860
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
7861
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
7862
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
7863
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
7864
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
7865
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
7866
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
7867
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
7868
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
7869
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
7870
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
7871
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
7872
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
7873
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
7874
|
+
exports.tildeTrimReplace = "$1~";
|
|
7875
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
7876
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
7877
|
+
createToken("LONECARET", "(?:\\^)");
|
|
7878
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
7879
|
+
exports.caretTrimReplace = "$1^";
|
|
7880
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
7881
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
7882
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
7883
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
7884
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
7885
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
7886
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
7887
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
7888
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
7889
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
7890
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
7891
|
+
}
|
|
7892
|
+
});
|
|
7893
|
+
var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7894
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
7895
|
+
"use strict";
|
|
7896
|
+
var looseOption = Object.freeze({ loose: true });
|
|
7897
|
+
var emptyOpts = Object.freeze({});
|
|
7898
|
+
var parseOptions = (options) => {
|
|
7899
|
+
if (!options) {
|
|
7900
|
+
return emptyOpts;
|
|
7901
|
+
}
|
|
7902
|
+
if (typeof options !== "object") {
|
|
7903
|
+
return looseOption;
|
|
7904
|
+
}
|
|
7905
|
+
return options;
|
|
7906
|
+
};
|
|
7907
|
+
module2.exports = parseOptions;
|
|
7908
|
+
}
|
|
7909
|
+
});
|
|
7910
|
+
var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7911
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js"(exports, module2) {
|
|
7912
|
+
"use strict";
|
|
7913
|
+
var numeric = /^[0-9]+$/;
|
|
7914
|
+
var compareIdentifiers = (a, b) => {
|
|
7915
|
+
const anum = numeric.test(a);
|
|
7916
|
+
const bnum = numeric.test(b);
|
|
7917
|
+
if (anum && bnum) {
|
|
7918
|
+
a = +a;
|
|
7919
|
+
b = +b;
|
|
7920
|
+
}
|
|
7921
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
7922
|
+
};
|
|
7923
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
7924
|
+
module2.exports = {
|
|
7925
|
+
compareIdentifiers,
|
|
7926
|
+
rcompareIdentifiers
|
|
7927
|
+
};
|
|
7928
|
+
}
|
|
7929
|
+
});
|
|
7930
|
+
var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7931
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"(exports, module2) {
|
|
7932
|
+
"use strict";
|
|
7933
|
+
var debug4 = require_debug();
|
|
7934
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
7935
|
+
var { safeRe: re, t } = require_re();
|
|
7936
|
+
var parseOptions = require_parse_options();
|
|
7937
|
+
var { compareIdentifiers } = require_identifiers();
|
|
7938
|
+
var SemVer = class _SemVer {
|
|
7939
|
+
constructor(version2, options) {
|
|
7940
|
+
options = parseOptions(options);
|
|
7941
|
+
if (version2 instanceof _SemVer) {
|
|
7942
|
+
if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
|
|
7943
|
+
return version2;
|
|
7944
|
+
} else {
|
|
7945
|
+
version2 = version2.version;
|
|
7946
|
+
}
|
|
7947
|
+
} else if (typeof version2 !== "string") {
|
|
7948
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
|
7949
|
+
}
|
|
7950
|
+
if (version2.length > MAX_LENGTH) {
|
|
7951
|
+
throw new TypeError(
|
|
7952
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
7953
|
+
);
|
|
7954
|
+
}
|
|
7955
|
+
debug4("SemVer", version2, options);
|
|
7956
|
+
this.options = options;
|
|
7957
|
+
this.loose = !!options.loose;
|
|
7958
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
7959
|
+
const m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
7960
|
+
if (!m) {
|
|
7961
|
+
throw new TypeError(`Invalid Version: ${version2}`);
|
|
7962
|
+
}
|
|
7963
|
+
this.raw = version2;
|
|
7964
|
+
this.major = +m[1];
|
|
7965
|
+
this.minor = +m[2];
|
|
7966
|
+
this.patch = +m[3];
|
|
7967
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
7968
|
+
throw new TypeError("Invalid major version");
|
|
7969
|
+
}
|
|
7970
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
7971
|
+
throw new TypeError("Invalid minor version");
|
|
7972
|
+
}
|
|
7973
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
7974
|
+
throw new TypeError("Invalid patch version");
|
|
7975
|
+
}
|
|
7976
|
+
if (!m[4]) {
|
|
7977
|
+
this.prerelease = [];
|
|
7978
|
+
} else {
|
|
7979
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
7980
|
+
if (/^[0-9]+$/.test(id)) {
|
|
7981
|
+
const num = +id;
|
|
7982
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
7983
|
+
return num;
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
return id;
|
|
7987
|
+
});
|
|
7988
|
+
}
|
|
7989
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
7990
|
+
this.format();
|
|
7991
|
+
}
|
|
7992
|
+
format() {
|
|
7993
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
7994
|
+
if (this.prerelease.length) {
|
|
7995
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
7996
|
+
}
|
|
7997
|
+
return this.version;
|
|
7998
|
+
}
|
|
7999
|
+
toString() {
|
|
8000
|
+
return this.version;
|
|
8001
|
+
}
|
|
8002
|
+
compare(other) {
|
|
8003
|
+
debug4("SemVer.compare", this.version, this.options, other);
|
|
8004
|
+
if (!(other instanceof _SemVer)) {
|
|
8005
|
+
if (typeof other === "string" && other === this.version) {
|
|
8006
|
+
return 0;
|
|
8007
|
+
}
|
|
8008
|
+
other = new _SemVer(other, this.options);
|
|
8009
|
+
}
|
|
8010
|
+
if (other.version === this.version) {
|
|
8011
|
+
return 0;
|
|
8012
|
+
}
|
|
8013
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
8014
|
+
}
|
|
8015
|
+
compareMain(other) {
|
|
8016
|
+
if (!(other instanceof _SemVer)) {
|
|
8017
|
+
other = new _SemVer(other, this.options);
|
|
8018
|
+
}
|
|
8019
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
8020
|
+
}
|
|
8021
|
+
comparePre(other) {
|
|
8022
|
+
if (!(other instanceof _SemVer)) {
|
|
8023
|
+
other = new _SemVer(other, this.options);
|
|
8024
|
+
}
|
|
8025
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
8026
|
+
return -1;
|
|
8027
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
8028
|
+
return 1;
|
|
8029
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
8030
|
+
return 0;
|
|
8031
|
+
}
|
|
8032
|
+
let i = 0;
|
|
8033
|
+
do {
|
|
8034
|
+
const a = this.prerelease[i];
|
|
8035
|
+
const b = other.prerelease[i];
|
|
8036
|
+
debug4("prerelease compare", i, a, b);
|
|
8037
|
+
if (a === void 0 && b === void 0) {
|
|
8038
|
+
return 0;
|
|
8039
|
+
} else if (b === void 0) {
|
|
8040
|
+
return 1;
|
|
8041
|
+
} else if (a === void 0) {
|
|
8042
|
+
return -1;
|
|
8043
|
+
} else if (a === b) {
|
|
8044
|
+
continue;
|
|
8045
|
+
} else {
|
|
8046
|
+
return compareIdentifiers(a, b);
|
|
8047
|
+
}
|
|
8048
|
+
} while (++i);
|
|
8049
|
+
}
|
|
8050
|
+
compareBuild(other) {
|
|
8051
|
+
if (!(other instanceof _SemVer)) {
|
|
8052
|
+
other = new _SemVer(other, this.options);
|
|
8053
|
+
}
|
|
8054
|
+
let i = 0;
|
|
8055
|
+
do {
|
|
8056
|
+
const a = this.build[i];
|
|
8057
|
+
const b = other.build[i];
|
|
8058
|
+
debug4("build compare", i, a, b);
|
|
8059
|
+
if (a === void 0 && b === void 0) {
|
|
8060
|
+
return 0;
|
|
8061
|
+
} else if (b === void 0) {
|
|
8062
|
+
return 1;
|
|
8063
|
+
} else if (a === void 0) {
|
|
8064
|
+
return -1;
|
|
8065
|
+
} else if (a === b) {
|
|
8066
|
+
continue;
|
|
8067
|
+
} else {
|
|
8068
|
+
return compareIdentifiers(a, b);
|
|
8069
|
+
}
|
|
8070
|
+
} while (++i);
|
|
8071
|
+
}
|
|
8072
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
8073
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
8074
|
+
inc(release, identifier, identifierBase) {
|
|
8075
|
+
switch (release) {
|
|
8076
|
+
case "premajor":
|
|
8077
|
+
this.prerelease.length = 0;
|
|
8078
|
+
this.patch = 0;
|
|
8079
|
+
this.minor = 0;
|
|
8080
|
+
this.major++;
|
|
8081
|
+
this.inc("pre", identifier, identifierBase);
|
|
8082
|
+
break;
|
|
8083
|
+
case "preminor":
|
|
8084
|
+
this.prerelease.length = 0;
|
|
8085
|
+
this.patch = 0;
|
|
8086
|
+
this.minor++;
|
|
8087
|
+
this.inc("pre", identifier, identifierBase);
|
|
8088
|
+
break;
|
|
8089
|
+
case "prepatch":
|
|
8090
|
+
this.prerelease.length = 0;
|
|
8091
|
+
this.inc("patch", identifier, identifierBase);
|
|
8092
|
+
this.inc("pre", identifier, identifierBase);
|
|
8093
|
+
break;
|
|
8094
|
+
case "prerelease":
|
|
8095
|
+
if (this.prerelease.length === 0) {
|
|
8096
|
+
this.inc("patch", identifier, identifierBase);
|
|
8097
|
+
}
|
|
8098
|
+
this.inc("pre", identifier, identifierBase);
|
|
8099
|
+
break;
|
|
8100
|
+
case "major":
|
|
8101
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
8102
|
+
this.major++;
|
|
8103
|
+
}
|
|
8104
|
+
this.minor = 0;
|
|
8105
|
+
this.patch = 0;
|
|
8106
|
+
this.prerelease = [];
|
|
8107
|
+
break;
|
|
8108
|
+
case "minor":
|
|
8109
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
8110
|
+
this.minor++;
|
|
8111
|
+
}
|
|
8112
|
+
this.patch = 0;
|
|
8113
|
+
this.prerelease = [];
|
|
8114
|
+
break;
|
|
8115
|
+
case "patch":
|
|
8116
|
+
if (this.prerelease.length === 0) {
|
|
8117
|
+
this.patch++;
|
|
8118
|
+
}
|
|
8119
|
+
this.prerelease = [];
|
|
8120
|
+
break;
|
|
8121
|
+
case "pre": {
|
|
8122
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
8123
|
+
if (!identifier && identifierBase === false) {
|
|
8124
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
8125
|
+
}
|
|
8126
|
+
if (this.prerelease.length === 0) {
|
|
8127
|
+
this.prerelease = [base];
|
|
8128
|
+
} else {
|
|
8129
|
+
let i = this.prerelease.length;
|
|
8130
|
+
while (--i >= 0) {
|
|
8131
|
+
if (typeof this.prerelease[i] === "number") {
|
|
8132
|
+
this.prerelease[i]++;
|
|
8133
|
+
i = -2;
|
|
8134
|
+
}
|
|
8135
|
+
}
|
|
8136
|
+
if (i === -1) {
|
|
8137
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
8138
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
8139
|
+
}
|
|
8140
|
+
this.prerelease.push(base);
|
|
8141
|
+
}
|
|
8142
|
+
}
|
|
8143
|
+
if (identifier) {
|
|
8144
|
+
let prerelease = [identifier, base];
|
|
8145
|
+
if (identifierBase === false) {
|
|
8146
|
+
prerelease = [identifier];
|
|
8147
|
+
}
|
|
8148
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
8149
|
+
if (isNaN(this.prerelease[1])) {
|
|
8150
|
+
this.prerelease = prerelease;
|
|
8151
|
+
}
|
|
8152
|
+
} else {
|
|
8153
|
+
this.prerelease = prerelease;
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8156
|
+
break;
|
|
8157
|
+
}
|
|
8158
|
+
default:
|
|
8159
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
8160
|
+
}
|
|
8161
|
+
this.raw = this.format();
|
|
8162
|
+
if (this.build.length) {
|
|
8163
|
+
this.raw += `+${this.build.join(".")}`;
|
|
8164
|
+
}
|
|
8165
|
+
return this;
|
|
8166
|
+
}
|
|
8167
|
+
};
|
|
8168
|
+
module2.exports = SemVer;
|
|
8169
|
+
}
|
|
8170
|
+
});
|
|
8171
|
+
var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8172
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
8173
|
+
"use strict";
|
|
8174
|
+
var SemVer = require_semver();
|
|
8175
|
+
var parse = (version2, options, throwErrors = false) => {
|
|
8176
|
+
if (version2 instanceof SemVer) {
|
|
8177
|
+
return version2;
|
|
8178
|
+
}
|
|
8179
|
+
try {
|
|
8180
|
+
return new SemVer(version2, options);
|
|
8181
|
+
} catch (er) {
|
|
8182
|
+
if (!throwErrors) {
|
|
8183
|
+
return null;
|
|
8184
|
+
}
|
|
8185
|
+
throw er;
|
|
8186
|
+
}
|
|
8187
|
+
};
|
|
8188
|
+
module2.exports = parse;
|
|
8189
|
+
}
|
|
8190
|
+
});
|
|
8191
|
+
var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8192
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
8193
|
+
"use strict";
|
|
8194
|
+
var parse = require_parse();
|
|
8195
|
+
var valid = (version2, options) => {
|
|
8196
|
+
const v = parse(version2, options);
|
|
8197
|
+
return v ? v.version : null;
|
|
8198
|
+
};
|
|
8199
|
+
module2.exports = valid;
|
|
8200
|
+
}
|
|
8201
|
+
});
|
|
8202
|
+
var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8203
|
+
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
8204
|
+
"use strict";
|
|
8205
|
+
var parse = require_parse();
|
|
8206
|
+
var clean = (version2, options) => {
|
|
8207
|
+
const s = parse(version2.trim().replace(/^[=v]+/, ""), options);
|
|
8208
|
+
return s ? s.version : null;
|
|
8209
|
+
};
|
|
8210
|
+
module2.exports = clean;
|
|
8211
|
+
}
|
|
8212
|
+
});
|
|
7771
8213
|
var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7772
8214
|
"../../node_modules/.pnpm/spdx-license-ids@3.0.18/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
|
7773
8215
|
module2.exports = [
|
|
@@ -8576,7 +9018,7 @@ var require_scan = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8576
9018
|
};
|
|
8577
9019
|
}
|
|
8578
9020
|
});
|
|
8579
|
-
var
|
|
9021
|
+
var require_parse2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8580
9022
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js"(exports, module2) {
|
|
8581
9023
|
"use strict";
|
|
8582
9024
|
module2.exports = function(tokens) {
|
|
@@ -8692,7 +9134,7 @@ var require_spdx_expression_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8692
9134
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js"(exports, module2) {
|
|
8693
9135
|
"use strict";
|
|
8694
9136
|
var scan = require_scan();
|
|
8695
|
-
var parse =
|
|
9137
|
+
var parse = require_parse2();
|
|
8696
9138
|
module2.exports = function(source) {
|
|
8697
9139
|
return parse(scan(source));
|
|
8698
9140
|
};
|
|
@@ -9541,93 +9983,12 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9541
9983
|
module2.exports = GitHost;
|
|
9542
9984
|
}
|
|
9543
9985
|
});
|
|
9544
|
-
var require_implementation = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9545
|
-
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
|
9546
|
-
"use strict";
|
|
9547
|
-
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
9548
|
-
var toStr = Object.prototype.toString;
|
|
9549
|
-
var max = Math.max;
|
|
9550
|
-
var funcType = "[object Function]";
|
|
9551
|
-
var concatty = function concatty2(a, b) {
|
|
9552
|
-
var arr = [];
|
|
9553
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
9554
|
-
arr[i] = a[i];
|
|
9555
|
-
}
|
|
9556
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
9557
|
-
arr[j + a.length] = b[j];
|
|
9558
|
-
}
|
|
9559
|
-
return arr;
|
|
9560
|
-
};
|
|
9561
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
9562
|
-
var arr = [];
|
|
9563
|
-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
9564
|
-
arr[j] = arrLike[i];
|
|
9565
|
-
}
|
|
9566
|
-
return arr;
|
|
9567
|
-
};
|
|
9568
|
-
var joiny = function(arr, joiner) {
|
|
9569
|
-
var str = "";
|
|
9570
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
9571
|
-
str += arr[i];
|
|
9572
|
-
if (i + 1 < arr.length) {
|
|
9573
|
-
str += joiner;
|
|
9574
|
-
}
|
|
9575
|
-
}
|
|
9576
|
-
return str;
|
|
9577
|
-
};
|
|
9578
|
-
module2.exports = function bind2(that) {
|
|
9579
|
-
var target = this;
|
|
9580
|
-
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
9581
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
9582
|
-
}
|
|
9583
|
-
var args = slicy(arguments, 1);
|
|
9584
|
-
var bound;
|
|
9585
|
-
var binder = function() {
|
|
9586
|
-
if (this instanceof bound) {
|
|
9587
|
-
var result = target.apply(
|
|
9588
|
-
this,
|
|
9589
|
-
concatty(args, arguments)
|
|
9590
|
-
);
|
|
9591
|
-
if (Object(result) === result) {
|
|
9592
|
-
return result;
|
|
9593
|
-
}
|
|
9594
|
-
return this;
|
|
9595
|
-
}
|
|
9596
|
-
return target.apply(
|
|
9597
|
-
that,
|
|
9598
|
-
concatty(args, arguments)
|
|
9599
|
-
);
|
|
9600
|
-
};
|
|
9601
|
-
var boundLength = max(0, target.length - args.length);
|
|
9602
|
-
var boundArgs = [];
|
|
9603
|
-
for (var i = 0; i < boundLength; i++) {
|
|
9604
|
-
boundArgs[i] = "$" + i;
|
|
9605
|
-
}
|
|
9606
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
9607
|
-
if (target.prototype) {
|
|
9608
|
-
var Empty = function Empty2() {
|
|
9609
|
-
};
|
|
9610
|
-
Empty.prototype = target.prototype;
|
|
9611
|
-
bound.prototype = new Empty();
|
|
9612
|
-
Empty.prototype = null;
|
|
9613
|
-
}
|
|
9614
|
-
return bound;
|
|
9615
|
-
};
|
|
9616
|
-
}
|
|
9617
|
-
});
|
|
9618
|
-
var require_function_bind = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9619
|
-
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
|
9620
|
-
"use strict";
|
|
9621
|
-
var implementation = require_implementation();
|
|
9622
|
-
module2.exports = Function.prototype.bind || implementation;
|
|
9623
|
-
}
|
|
9624
|
-
});
|
|
9625
9986
|
var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9626
9987
|
"../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module2) {
|
|
9627
9988
|
"use strict";
|
|
9628
9989
|
var call = Function.prototype.call;
|
|
9629
9990
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
9630
|
-
var bind2 = require_function_bind();
|
|
9991
|
+
var bind2 = (0, import_chunk_NNDVFXHL.require_function_bind)();
|
|
9631
9992
|
module2.exports = bind2.call(call, $hasOwn);
|
|
9632
9993
|
}
|
|
9633
9994
|
});
|
|
@@ -9911,8 +10272,8 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9911
10272
|
var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9912
10273
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
|
9913
10274
|
"use strict";
|
|
9914
|
-
var isValidSemver =
|
|
9915
|
-
var cleanSemver =
|
|
10275
|
+
var isValidSemver = require_valid();
|
|
10276
|
+
var cleanSemver = require_clean();
|
|
9916
10277
|
var validateLicense = require_validate_npm_package_license();
|
|
9917
10278
|
var hostedGitInfo = require_lib5();
|
|
9918
10279
|
var isBuiltinModule = require_is_core_module();
|
|
@@ -10748,7 +11109,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10748
11109
|
"../internals/package.json"(exports, module2) {
|
|
10749
11110
|
module2.exports = {
|
|
10750
11111
|
name: "@prisma/internals",
|
|
10751
|
-
version: "5.17.0-dev.
|
|
11112
|
+
version: "5.17.0-dev.4",
|
|
10752
11113
|
description: "This package is intended for Prisma's internal use",
|
|
10753
11114
|
main: "dist/index.js",
|
|
10754
11115
|
types: "dist/index.d.ts",
|