@qlover/fe-release 2.3.5 → 3.0.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.
- package/dist/cli.cjs +323 -1001
- package/dist/cli.js +330 -1003
- package/dist/index.cjs +708 -1378
- package/dist/index.d.ts +43 -96
- package/dist/index.js +715 -1380
- package/package.json +4 -4
package/dist/cli.cjs
CHANGED
|
@@ -2878,116 +2878,65 @@ var require_set = __commonJS({
|
|
|
2878
2878
|
}
|
|
2879
2879
|
});
|
|
2880
2880
|
|
|
2881
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2882
|
-
var
|
|
2883
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2884
|
-
"use strict";
|
|
2885
|
-
var ListCache = require_ListCache();
|
|
2886
|
-
function stackClear() {
|
|
2887
|
-
this.__data__ = new ListCache();
|
|
2888
|
-
this.size = 0;
|
|
2889
|
-
}
|
|
2890
|
-
module2.exports = stackClear;
|
|
2891
|
-
}
|
|
2892
|
-
});
|
|
2893
|
-
|
|
2894
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
|
|
2895
|
-
var require_stackDelete = __commonJS({
|
|
2896
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports2, module2) {
|
|
2897
|
-
"use strict";
|
|
2898
|
-
function stackDelete(key) {
|
|
2899
|
-
var data = this.__data__, result = data["delete"](key);
|
|
2900
|
-
this.size = data.size;
|
|
2901
|
-
return result;
|
|
2902
|
-
}
|
|
2903
|
-
module2.exports = stackDelete;
|
|
2904
|
-
}
|
|
2905
|
-
});
|
|
2906
|
-
|
|
2907
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
|
|
2908
|
-
var require_stackGet = __commonJS({
|
|
2909
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports2, module2) {
|
|
2910
|
-
"use strict";
|
|
2911
|
-
function stackGet(key) {
|
|
2912
|
-
return this.__data__.get(key);
|
|
2913
|
-
}
|
|
2914
|
-
module2.exports = stackGet;
|
|
2915
|
-
}
|
|
2916
|
-
});
|
|
2917
|
-
|
|
2918
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
|
|
2919
|
-
var require_stackHas = __commonJS({
|
|
2920
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports2, module2) {
|
|
2881
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
|
|
2882
|
+
var require_baseGet = __commonJS({
|
|
2883
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports2, module2) {
|
|
2921
2884
|
"use strict";
|
|
2922
|
-
|
|
2923
|
-
|
|
2885
|
+
var castPath = require_castPath();
|
|
2886
|
+
var toKey = require_toKey();
|
|
2887
|
+
function baseGet(object, path) {
|
|
2888
|
+
path = castPath(path, object);
|
|
2889
|
+
var index = 0, length = path.length;
|
|
2890
|
+
while (object != null && index < length) {
|
|
2891
|
+
object = object[toKey(path[index++])];
|
|
2892
|
+
}
|
|
2893
|
+
return index && index == length ? object : void 0;
|
|
2924
2894
|
}
|
|
2925
|
-
module2.exports =
|
|
2895
|
+
module2.exports = baseGet;
|
|
2926
2896
|
}
|
|
2927
2897
|
});
|
|
2928
2898
|
|
|
2929
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2930
|
-
var
|
|
2931
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2899
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
|
|
2900
|
+
var require_get = __commonJS({
|
|
2901
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports2, module2) {
|
|
2932
2902
|
"use strict";
|
|
2933
|
-
var
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
function stackSet(key, value) {
|
|
2938
|
-
var data = this.__data__;
|
|
2939
|
-
if (data instanceof ListCache) {
|
|
2940
|
-
var pairs = data.__data__;
|
|
2941
|
-
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
2942
|
-
pairs.push([key, value]);
|
|
2943
|
-
this.size = ++data.size;
|
|
2944
|
-
return this;
|
|
2945
|
-
}
|
|
2946
|
-
data = this.__data__ = new MapCache(pairs);
|
|
2947
|
-
}
|
|
2948
|
-
data.set(key, value);
|
|
2949
|
-
this.size = data.size;
|
|
2950
|
-
return this;
|
|
2903
|
+
var baseGet = require_baseGet();
|
|
2904
|
+
function get2(object, path, defaultValue) {
|
|
2905
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
2906
|
+
return result === void 0 ? defaultValue : result;
|
|
2951
2907
|
}
|
|
2952
|
-
module2.exports =
|
|
2908
|
+
module2.exports = get2;
|
|
2953
2909
|
}
|
|
2954
2910
|
});
|
|
2955
2911
|
|
|
2956
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2957
|
-
var
|
|
2958
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2912
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js
|
|
2913
|
+
var require_isString = __commonJS({
|
|
2914
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"(exports2, module2) {
|
|
2959
2915
|
"use strict";
|
|
2960
|
-
var
|
|
2961
|
-
var
|
|
2962
|
-
var
|
|
2963
|
-
var
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
function Stack(entries) {
|
|
2967
|
-
var data = this.__data__ = new ListCache(entries);
|
|
2968
|
-
this.size = data.size;
|
|
2916
|
+
var baseGetTag = require_baseGetTag();
|
|
2917
|
+
var isArray = require_isArray();
|
|
2918
|
+
var isObjectLike = require_isObjectLike();
|
|
2919
|
+
var stringTag = "[object String]";
|
|
2920
|
+
function isString2(value) {
|
|
2921
|
+
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
2969
2922
|
}
|
|
2970
|
-
|
|
2971
|
-
Stack.prototype["delete"] = stackDelete;
|
|
2972
|
-
Stack.prototype.get = stackGet;
|
|
2973
|
-
Stack.prototype.has = stackHas;
|
|
2974
|
-
Stack.prototype.set = stackSet;
|
|
2975
|
-
module2.exports = Stack;
|
|
2923
|
+
module2.exports = isString2;
|
|
2976
2924
|
}
|
|
2977
2925
|
});
|
|
2978
2926
|
|
|
2979
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2980
|
-
var
|
|
2981
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2927
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js
|
|
2928
|
+
var require_arrayAggregator = __commonJS({
|
|
2929
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js"(exports2, module2) {
|
|
2982
2930
|
"use strict";
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2931
|
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
2932
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
2933
|
+
while (++index < length) {
|
|
2934
|
+
var value = array[index];
|
|
2935
|
+
setter(accumulator, value, iteratee(value), array);
|
|
2988
2936
|
}
|
|
2937
|
+
return accumulator;
|
|
2989
2938
|
}
|
|
2990
|
-
module2.exports =
|
|
2939
|
+
module2.exports = arrayAggregator;
|
|
2991
2940
|
}
|
|
2992
2941
|
});
|
|
2993
2942
|
|
|
@@ -3021,154 +2970,18 @@ var require_baseFor = __commonJS({
|
|
|
3021
2970
|
}
|
|
3022
2971
|
});
|
|
3023
2972
|
|
|
3024
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3025
|
-
var
|
|
3026
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
2973
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
|
|
2974
|
+
var require_baseTimes = __commonJS({
|
|
2975
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports2, module2) {
|
|
3027
2976
|
"use strict";
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
3033
|
-
var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
3034
|
-
function cloneBuffer(buffer, isDeep) {
|
|
3035
|
-
if (isDeep) {
|
|
3036
|
-
return buffer.slice();
|
|
2977
|
+
function baseTimes(n, iteratee) {
|
|
2978
|
+
var index = -1, result = Array(n);
|
|
2979
|
+
while (++index < n) {
|
|
2980
|
+
result[index] = iteratee(index);
|
|
3037
2981
|
}
|
|
3038
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
3039
|
-
buffer.copy(result);
|
|
3040
|
-
return result;
|
|
3041
|
-
}
|
|
3042
|
-
module2.exports = cloneBuffer;
|
|
3043
|
-
}
|
|
3044
|
-
});
|
|
3045
|
-
|
|
3046
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
|
|
3047
|
-
var require_Uint8Array = __commonJS({
|
|
3048
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports2, module2) {
|
|
3049
|
-
"use strict";
|
|
3050
|
-
var root = require_root();
|
|
3051
|
-
var Uint8Array2 = root.Uint8Array;
|
|
3052
|
-
module2.exports = Uint8Array2;
|
|
3053
|
-
}
|
|
3054
|
-
});
|
|
3055
|
-
|
|
3056
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js
|
|
3057
|
-
var require_cloneArrayBuffer = __commonJS({
|
|
3058
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(exports2, module2) {
|
|
3059
|
-
"use strict";
|
|
3060
|
-
var Uint8Array2 = require_Uint8Array();
|
|
3061
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
3062
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
3063
|
-
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
3064
2982
|
return result;
|
|
3065
2983
|
}
|
|
3066
|
-
module2.exports =
|
|
3067
|
-
}
|
|
3068
|
-
});
|
|
3069
|
-
|
|
3070
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js
|
|
3071
|
-
var require_cloneTypedArray = __commonJS({
|
|
3072
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(exports2, module2) {
|
|
3073
|
-
"use strict";
|
|
3074
|
-
var cloneArrayBuffer = require_cloneArrayBuffer();
|
|
3075
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
3076
|
-
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
3077
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
3078
|
-
}
|
|
3079
|
-
module2.exports = cloneTypedArray;
|
|
3080
|
-
}
|
|
3081
|
-
});
|
|
3082
|
-
|
|
3083
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js
|
|
3084
|
-
var require_copyArray = __commonJS({
|
|
3085
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(exports2, module2) {
|
|
3086
|
-
"use strict";
|
|
3087
|
-
function copyArray(source, array) {
|
|
3088
|
-
var index = -1, length = source.length;
|
|
3089
|
-
array || (array = Array(length));
|
|
3090
|
-
while (++index < length) {
|
|
3091
|
-
array[index] = source[index];
|
|
3092
|
-
}
|
|
3093
|
-
return array;
|
|
3094
|
-
}
|
|
3095
|
-
module2.exports = copyArray;
|
|
3096
|
-
}
|
|
3097
|
-
});
|
|
3098
|
-
|
|
3099
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js
|
|
3100
|
-
var require_baseCreate = __commonJS({
|
|
3101
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(exports2, module2) {
|
|
3102
|
-
"use strict";
|
|
3103
|
-
var isObject = require_isObject();
|
|
3104
|
-
var objectCreate = Object.create;
|
|
3105
|
-
var baseCreate = /* @__PURE__ */ function() {
|
|
3106
|
-
function object() {
|
|
3107
|
-
}
|
|
3108
|
-
return function(proto) {
|
|
3109
|
-
if (!isObject(proto)) {
|
|
3110
|
-
return {};
|
|
3111
|
-
}
|
|
3112
|
-
if (objectCreate) {
|
|
3113
|
-
return objectCreate(proto);
|
|
3114
|
-
}
|
|
3115
|
-
object.prototype = proto;
|
|
3116
|
-
var result = new object();
|
|
3117
|
-
object.prototype = void 0;
|
|
3118
|
-
return result;
|
|
3119
|
-
};
|
|
3120
|
-
}();
|
|
3121
|
-
module2.exports = baseCreate;
|
|
3122
|
-
}
|
|
3123
|
-
});
|
|
3124
|
-
|
|
3125
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
|
|
3126
|
-
var require_overArg = __commonJS({
|
|
3127
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports2, module2) {
|
|
3128
|
-
"use strict";
|
|
3129
|
-
function overArg(func, transform) {
|
|
3130
|
-
return function(arg) {
|
|
3131
|
-
return func(transform(arg));
|
|
3132
|
-
};
|
|
3133
|
-
}
|
|
3134
|
-
module2.exports = overArg;
|
|
3135
|
-
}
|
|
3136
|
-
});
|
|
3137
|
-
|
|
3138
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js
|
|
3139
|
-
var require_getPrototype = __commonJS({
|
|
3140
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(exports2, module2) {
|
|
3141
|
-
"use strict";
|
|
3142
|
-
var overArg = require_overArg();
|
|
3143
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
3144
|
-
module2.exports = getPrototype;
|
|
3145
|
-
}
|
|
3146
|
-
});
|
|
3147
|
-
|
|
3148
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
|
|
3149
|
-
var require_isPrototype = __commonJS({
|
|
3150
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports2, module2) {
|
|
3151
|
-
"use strict";
|
|
3152
|
-
var objectProto = Object.prototype;
|
|
3153
|
-
function isPrototype(value) {
|
|
3154
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
3155
|
-
return value === proto;
|
|
3156
|
-
}
|
|
3157
|
-
module2.exports = isPrototype;
|
|
3158
|
-
}
|
|
3159
|
-
});
|
|
3160
|
-
|
|
3161
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js
|
|
3162
|
-
var require_initCloneObject = __commonJS({
|
|
3163
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(exports2, module2) {
|
|
3164
|
-
"use strict";
|
|
3165
|
-
var baseCreate = require_baseCreate();
|
|
3166
|
-
var getPrototype = require_getPrototype();
|
|
3167
|
-
var isPrototype = require_isPrototype();
|
|
3168
|
-
function initCloneObject(object) {
|
|
3169
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
3170
|
-
}
|
|
3171
|
-
module2.exports = initCloneObject;
|
|
2984
|
+
module2.exports = baseTimes;
|
|
3172
2985
|
}
|
|
3173
2986
|
});
|
|
3174
2987
|
|
|
@@ -3204,44 +3017,6 @@ var require_isArguments = __commonJS({
|
|
|
3204
3017
|
}
|
|
3205
3018
|
});
|
|
3206
3019
|
|
|
3207
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
|
|
3208
|
-
var require_isLength = __commonJS({
|
|
3209
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports2, module2) {
|
|
3210
|
-
"use strict";
|
|
3211
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
3212
|
-
function isLength(value) {
|
|
3213
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
3214
|
-
}
|
|
3215
|
-
module2.exports = isLength;
|
|
3216
|
-
}
|
|
3217
|
-
});
|
|
3218
|
-
|
|
3219
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
|
|
3220
|
-
var require_isArrayLike = __commonJS({
|
|
3221
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports2, module2) {
|
|
3222
|
-
"use strict";
|
|
3223
|
-
var isFunction = require_isFunction();
|
|
3224
|
-
var isLength = require_isLength();
|
|
3225
|
-
function isArrayLike(value) {
|
|
3226
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
3227
|
-
}
|
|
3228
|
-
module2.exports = isArrayLike;
|
|
3229
|
-
}
|
|
3230
|
-
});
|
|
3231
|
-
|
|
3232
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js
|
|
3233
|
-
var require_isArrayLikeObject = __commonJS({
|
|
3234
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(exports2, module2) {
|
|
3235
|
-
"use strict";
|
|
3236
|
-
var isArrayLike = require_isArrayLike();
|
|
3237
|
-
var isObjectLike = require_isObjectLike();
|
|
3238
|
-
function isArrayLikeObject(value) {
|
|
3239
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
3240
|
-
}
|
|
3241
|
-
module2.exports = isArrayLikeObject;
|
|
3242
|
-
}
|
|
3243
|
-
});
|
|
3244
|
-
|
|
3245
3020
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
|
|
3246
3021
|
var require_stubFalse = __commonJS({
|
|
3247
3022
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports2, module2) {
|
|
@@ -3269,31 +3044,15 @@ var require_isBuffer = __commonJS({
|
|
|
3269
3044
|
}
|
|
3270
3045
|
});
|
|
3271
3046
|
|
|
3272
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3273
|
-
var
|
|
3274
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3047
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
|
|
3048
|
+
var require_isLength = __commonJS({
|
|
3049
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports2, module2) {
|
|
3275
3050
|
"use strict";
|
|
3276
|
-
var
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
var objectTag = "[object Object]";
|
|
3280
|
-
var funcProto = Function.prototype;
|
|
3281
|
-
var objectProto = Object.prototype;
|
|
3282
|
-
var funcToString = funcProto.toString;
|
|
3283
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3284
|
-
var objectCtorString = funcToString.call(Object);
|
|
3285
|
-
function isPlainObject(value) {
|
|
3286
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
3287
|
-
return false;
|
|
3288
|
-
}
|
|
3289
|
-
var proto = getPrototype(value);
|
|
3290
|
-
if (proto === null) {
|
|
3291
|
-
return true;
|
|
3292
|
-
}
|
|
3293
|
-
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
3294
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
3051
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
3052
|
+
function isLength(value) {
|
|
3053
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
3295
3054
|
}
|
|
3296
|
-
module2.exports =
|
|
3055
|
+
module2.exports = isLength;
|
|
3297
3056
|
}
|
|
3298
3057
|
});
|
|
3299
3058
|
|
|
@@ -3380,532 +3139,65 @@ var require_isTypedArray = __commonJS({
|
|
|
3380
3139
|
"use strict";
|
|
3381
3140
|
var baseIsTypedArray = require_baseIsTypedArray();
|
|
3382
3141
|
var baseUnary = require_baseUnary();
|
|
3383
|
-
var nodeUtil = require_nodeUtil();
|
|
3384
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
3385
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
3386
|
-
module2.exports = isTypedArray;
|
|
3387
|
-
}
|
|
3388
|
-
});
|
|
3389
|
-
|
|
3390
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js
|
|
3391
|
-
var require_safeGet = __commonJS({
|
|
3392
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(exports2, module2) {
|
|
3393
|
-
"use strict";
|
|
3394
|
-
function safeGet(object, key) {
|
|
3395
|
-
if (key === "constructor" && typeof object[key] === "function") {
|
|
3396
|
-
return;
|
|
3397
|
-
}
|
|
3398
|
-
if (key == "__proto__") {
|
|
3399
|
-
return;
|
|
3400
|
-
}
|
|
3401
|
-
return object[key];
|
|
3402
|
-
}
|
|
3403
|
-
module2.exports = safeGet;
|
|
3404
|
-
}
|
|
3405
|
-
});
|
|
3406
|
-
|
|
3407
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js
|
|
3408
|
-
var require_copyObject = __commonJS({
|
|
3409
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(exports2, module2) {
|
|
3410
|
-
"use strict";
|
|
3411
|
-
var assignValue = require_assignValue();
|
|
3412
|
-
var baseAssignValue = require_baseAssignValue();
|
|
3413
|
-
function copyObject(source, props, object, customizer) {
|
|
3414
|
-
var isNew = !object;
|
|
3415
|
-
object || (object = {});
|
|
3416
|
-
var index = -1, length = props.length;
|
|
3417
|
-
while (++index < length) {
|
|
3418
|
-
var key = props[index];
|
|
3419
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
3420
|
-
if (newValue === void 0) {
|
|
3421
|
-
newValue = source[key];
|
|
3422
|
-
}
|
|
3423
|
-
if (isNew) {
|
|
3424
|
-
baseAssignValue(object, key, newValue);
|
|
3425
|
-
} else {
|
|
3426
|
-
assignValue(object, key, newValue);
|
|
3427
|
-
}
|
|
3428
|
-
}
|
|
3429
|
-
return object;
|
|
3430
|
-
}
|
|
3431
|
-
module2.exports = copyObject;
|
|
3432
|
-
}
|
|
3433
|
-
});
|
|
3434
|
-
|
|
3435
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
|
|
3436
|
-
var require_baseTimes = __commonJS({
|
|
3437
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports2, module2) {
|
|
3438
|
-
"use strict";
|
|
3439
|
-
function baseTimes(n, iteratee) {
|
|
3440
|
-
var index = -1, result = Array(n);
|
|
3441
|
-
while (++index < n) {
|
|
3442
|
-
result[index] = iteratee(index);
|
|
3443
|
-
}
|
|
3444
|
-
return result;
|
|
3445
|
-
}
|
|
3446
|
-
module2.exports = baseTimes;
|
|
3447
|
-
}
|
|
3448
|
-
});
|
|
3449
|
-
|
|
3450
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
|
|
3451
|
-
var require_arrayLikeKeys = __commonJS({
|
|
3452
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports2, module2) {
|
|
3453
|
-
"use strict";
|
|
3454
|
-
var baseTimes = require_baseTimes();
|
|
3455
|
-
var isArguments = require_isArguments();
|
|
3456
|
-
var isArray = require_isArray();
|
|
3457
|
-
var isBuffer = require_isBuffer();
|
|
3458
|
-
var isIndex = require_isIndex();
|
|
3459
|
-
var isTypedArray = require_isTypedArray();
|
|
3460
|
-
var objectProto = Object.prototype;
|
|
3461
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3462
|
-
function arrayLikeKeys(value, inherited) {
|
|
3463
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
3464
|
-
for (var key in value) {
|
|
3465
|
-
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3466
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
3467
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
3468
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
3469
|
-
isIndex(key, length)))) {
|
|
3470
|
-
result.push(key);
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
|
-
return result;
|
|
3474
|
-
}
|
|
3475
|
-
module2.exports = arrayLikeKeys;
|
|
3476
|
-
}
|
|
3477
|
-
});
|
|
3478
|
-
|
|
3479
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
|
|
3480
|
-
var require_nativeKeysIn = __commonJS({
|
|
3481
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports2, module2) {
|
|
3482
|
-
"use strict";
|
|
3483
|
-
function nativeKeysIn(object) {
|
|
3484
|
-
var result = [];
|
|
3485
|
-
if (object != null) {
|
|
3486
|
-
for (var key in Object(object)) {
|
|
3487
|
-
result.push(key);
|
|
3488
|
-
}
|
|
3489
|
-
}
|
|
3490
|
-
return result;
|
|
3491
|
-
}
|
|
3492
|
-
module2.exports = nativeKeysIn;
|
|
3493
|
-
}
|
|
3494
|
-
});
|
|
3495
|
-
|
|
3496
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
|
|
3497
|
-
var require_baseKeysIn = __commonJS({
|
|
3498
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports2, module2) {
|
|
3499
|
-
"use strict";
|
|
3500
|
-
var isObject = require_isObject();
|
|
3501
|
-
var isPrototype = require_isPrototype();
|
|
3502
|
-
var nativeKeysIn = require_nativeKeysIn();
|
|
3503
|
-
var objectProto = Object.prototype;
|
|
3504
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3505
|
-
function baseKeysIn(object) {
|
|
3506
|
-
if (!isObject(object)) {
|
|
3507
|
-
return nativeKeysIn(object);
|
|
3508
|
-
}
|
|
3509
|
-
var isProto = isPrototype(object), result = [];
|
|
3510
|
-
for (var key in object) {
|
|
3511
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
3512
|
-
result.push(key);
|
|
3513
|
-
}
|
|
3514
|
-
}
|
|
3515
|
-
return result;
|
|
3516
|
-
}
|
|
3517
|
-
module2.exports = baseKeysIn;
|
|
3518
|
-
}
|
|
3519
|
-
});
|
|
3520
|
-
|
|
3521
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
|
|
3522
|
-
var require_keysIn = __commonJS({
|
|
3523
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports2, module2) {
|
|
3524
|
-
"use strict";
|
|
3525
|
-
var arrayLikeKeys = require_arrayLikeKeys();
|
|
3526
|
-
var baseKeysIn = require_baseKeysIn();
|
|
3527
|
-
var isArrayLike = require_isArrayLike();
|
|
3528
|
-
function keysIn(object) {
|
|
3529
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
3530
|
-
}
|
|
3531
|
-
module2.exports = keysIn;
|
|
3532
|
-
}
|
|
3533
|
-
});
|
|
3534
|
-
|
|
3535
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
|
|
3536
|
-
var require_toPlainObject = __commonJS({
|
|
3537
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports2, module2) {
|
|
3538
|
-
"use strict";
|
|
3539
|
-
var copyObject = require_copyObject();
|
|
3540
|
-
var keysIn = require_keysIn();
|
|
3541
|
-
function toPlainObject(value) {
|
|
3542
|
-
return copyObject(value, keysIn(value));
|
|
3543
|
-
}
|
|
3544
|
-
module2.exports = toPlainObject;
|
|
3545
|
-
}
|
|
3546
|
-
});
|
|
3547
|
-
|
|
3548
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
|
|
3549
|
-
var require_baseMergeDeep = __commonJS({
|
|
3550
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(exports2, module2) {
|
|
3551
|
-
"use strict";
|
|
3552
|
-
var assignMergeValue = require_assignMergeValue();
|
|
3553
|
-
var cloneBuffer = require_cloneBuffer();
|
|
3554
|
-
var cloneTypedArray = require_cloneTypedArray();
|
|
3555
|
-
var copyArray = require_copyArray();
|
|
3556
|
-
var initCloneObject = require_initCloneObject();
|
|
3557
|
-
var isArguments = require_isArguments();
|
|
3558
|
-
var isArray = require_isArray();
|
|
3559
|
-
var isArrayLikeObject = require_isArrayLikeObject();
|
|
3560
|
-
var isBuffer = require_isBuffer();
|
|
3561
|
-
var isFunction = require_isFunction();
|
|
3562
|
-
var isObject = require_isObject();
|
|
3563
|
-
var isPlainObject = require_isPlainObject();
|
|
3564
|
-
var isTypedArray = require_isTypedArray();
|
|
3565
|
-
var safeGet = require_safeGet();
|
|
3566
|
-
var toPlainObject = require_toPlainObject();
|
|
3567
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
3568
|
-
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
3569
|
-
if (stacked) {
|
|
3570
|
-
assignMergeValue(object, key, stacked);
|
|
3571
|
-
return;
|
|
3572
|
-
}
|
|
3573
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
3574
|
-
var isCommon = newValue === void 0;
|
|
3575
|
-
if (isCommon) {
|
|
3576
|
-
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
3577
|
-
newValue = srcValue;
|
|
3578
|
-
if (isArr || isBuff || isTyped) {
|
|
3579
|
-
if (isArray(objValue)) {
|
|
3580
|
-
newValue = objValue;
|
|
3581
|
-
} else if (isArrayLikeObject(objValue)) {
|
|
3582
|
-
newValue = copyArray(objValue);
|
|
3583
|
-
} else if (isBuff) {
|
|
3584
|
-
isCommon = false;
|
|
3585
|
-
newValue = cloneBuffer(srcValue, true);
|
|
3586
|
-
} else if (isTyped) {
|
|
3587
|
-
isCommon = false;
|
|
3588
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
3589
|
-
} else {
|
|
3590
|
-
newValue = [];
|
|
3591
|
-
}
|
|
3592
|
-
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
3593
|
-
newValue = objValue;
|
|
3594
|
-
if (isArguments(objValue)) {
|
|
3595
|
-
newValue = toPlainObject(objValue);
|
|
3596
|
-
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
3597
|
-
newValue = initCloneObject(srcValue);
|
|
3598
|
-
}
|
|
3599
|
-
} else {
|
|
3600
|
-
isCommon = false;
|
|
3601
|
-
}
|
|
3602
|
-
}
|
|
3603
|
-
if (isCommon) {
|
|
3604
|
-
stack.set(srcValue, newValue);
|
|
3605
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
3606
|
-
stack["delete"](srcValue);
|
|
3607
|
-
}
|
|
3608
|
-
assignMergeValue(object, key, newValue);
|
|
3609
|
-
}
|
|
3610
|
-
module2.exports = baseMergeDeep;
|
|
3611
|
-
}
|
|
3612
|
-
});
|
|
3613
|
-
|
|
3614
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js
|
|
3615
|
-
var require_baseMerge = __commonJS({
|
|
3616
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(exports2, module2) {
|
|
3617
|
-
"use strict";
|
|
3618
|
-
var Stack = require_Stack();
|
|
3619
|
-
var assignMergeValue = require_assignMergeValue();
|
|
3620
|
-
var baseFor = require_baseFor();
|
|
3621
|
-
var baseMergeDeep = require_baseMergeDeep();
|
|
3622
|
-
var isObject = require_isObject();
|
|
3623
|
-
var keysIn = require_keysIn();
|
|
3624
|
-
var safeGet = require_safeGet();
|
|
3625
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
3626
|
-
if (object === source) {
|
|
3627
|
-
return;
|
|
3628
|
-
}
|
|
3629
|
-
baseFor(source, function(srcValue, key) {
|
|
3630
|
-
stack || (stack = new Stack());
|
|
3631
|
-
if (isObject(srcValue)) {
|
|
3632
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
3633
|
-
} else {
|
|
3634
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
3635
|
-
if (newValue === void 0) {
|
|
3636
|
-
newValue = srcValue;
|
|
3637
|
-
}
|
|
3638
|
-
assignMergeValue(object, key, newValue);
|
|
3639
|
-
}
|
|
3640
|
-
}, keysIn);
|
|
3641
|
-
}
|
|
3642
|
-
module2.exports = baseMerge;
|
|
3643
|
-
}
|
|
3644
|
-
});
|
|
3645
|
-
|
|
3646
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
|
|
3647
|
-
var require_identity = __commonJS({
|
|
3648
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports2, module2) {
|
|
3649
|
-
"use strict";
|
|
3650
|
-
function identity(value) {
|
|
3651
|
-
return value;
|
|
3652
|
-
}
|
|
3653
|
-
module2.exports = identity;
|
|
3654
|
-
}
|
|
3655
|
-
});
|
|
3656
|
-
|
|
3657
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js
|
|
3658
|
-
var require_apply = __commonJS({
|
|
3659
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(exports2, module2) {
|
|
3660
|
-
"use strict";
|
|
3661
|
-
function apply(func, thisArg, args) {
|
|
3662
|
-
switch (args.length) {
|
|
3663
|
-
case 0:
|
|
3664
|
-
return func.call(thisArg);
|
|
3665
|
-
case 1:
|
|
3666
|
-
return func.call(thisArg, args[0]);
|
|
3667
|
-
case 2:
|
|
3668
|
-
return func.call(thisArg, args[0], args[1]);
|
|
3669
|
-
case 3:
|
|
3670
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
3671
|
-
}
|
|
3672
|
-
return func.apply(thisArg, args);
|
|
3673
|
-
}
|
|
3674
|
-
module2.exports = apply;
|
|
3675
|
-
}
|
|
3676
|
-
});
|
|
3677
|
-
|
|
3678
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js
|
|
3679
|
-
var require_overRest = __commonJS({
|
|
3680
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports2, module2) {
|
|
3681
|
-
"use strict";
|
|
3682
|
-
var apply = require_apply();
|
|
3683
|
-
var nativeMax = Math.max;
|
|
3684
|
-
function overRest(func, start, transform) {
|
|
3685
|
-
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
3686
|
-
return function() {
|
|
3687
|
-
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
3688
|
-
while (++index < length) {
|
|
3689
|
-
array[index] = args[start + index];
|
|
3690
|
-
}
|
|
3691
|
-
index = -1;
|
|
3692
|
-
var otherArgs = Array(start + 1);
|
|
3693
|
-
while (++index < start) {
|
|
3694
|
-
otherArgs[index] = args[index];
|
|
3695
|
-
}
|
|
3696
|
-
otherArgs[start] = transform(array);
|
|
3697
|
-
return apply(func, this, otherArgs);
|
|
3698
|
-
};
|
|
3699
|
-
}
|
|
3700
|
-
module2.exports = overRest;
|
|
3701
|
-
}
|
|
3702
|
-
});
|
|
3703
|
-
|
|
3704
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js
|
|
3705
|
-
var require_constant = __commonJS({
|
|
3706
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(exports2, module2) {
|
|
3707
|
-
"use strict";
|
|
3708
|
-
function constant(value) {
|
|
3709
|
-
return function() {
|
|
3710
|
-
return value;
|
|
3711
|
-
};
|
|
3712
|
-
}
|
|
3713
|
-
module2.exports = constant;
|
|
3714
|
-
}
|
|
3715
|
-
});
|
|
3716
|
-
|
|
3717
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js
|
|
3718
|
-
var require_baseSetToString = __commonJS({
|
|
3719
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(exports2, module2) {
|
|
3720
|
-
"use strict";
|
|
3721
|
-
var constant = require_constant();
|
|
3722
|
-
var defineProperty = require_defineProperty();
|
|
3723
|
-
var identity = require_identity();
|
|
3724
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
3725
|
-
return defineProperty(func, "toString", {
|
|
3726
|
-
"configurable": true,
|
|
3727
|
-
"enumerable": false,
|
|
3728
|
-
"value": constant(string),
|
|
3729
|
-
"writable": true
|
|
3730
|
-
});
|
|
3731
|
-
};
|
|
3732
|
-
module2.exports = baseSetToString;
|
|
3733
|
-
}
|
|
3734
|
-
});
|
|
3735
|
-
|
|
3736
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js
|
|
3737
|
-
var require_shortOut = __commonJS({
|
|
3738
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(exports2, module2) {
|
|
3739
|
-
"use strict";
|
|
3740
|
-
var HOT_COUNT = 800;
|
|
3741
|
-
var HOT_SPAN = 16;
|
|
3742
|
-
var nativeNow = Date.now;
|
|
3743
|
-
function shortOut(func) {
|
|
3744
|
-
var count = 0, lastCalled = 0;
|
|
3745
|
-
return function() {
|
|
3746
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
3747
|
-
lastCalled = stamp;
|
|
3748
|
-
if (remaining > 0) {
|
|
3749
|
-
if (++count >= HOT_COUNT) {
|
|
3750
|
-
return arguments[0];
|
|
3751
|
-
}
|
|
3752
|
-
} else {
|
|
3753
|
-
count = 0;
|
|
3754
|
-
}
|
|
3755
|
-
return func.apply(void 0, arguments);
|
|
3756
|
-
};
|
|
3757
|
-
}
|
|
3758
|
-
module2.exports = shortOut;
|
|
3759
|
-
}
|
|
3760
|
-
});
|
|
3761
|
-
|
|
3762
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js
|
|
3763
|
-
var require_setToString = __commonJS({
|
|
3764
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(exports2, module2) {
|
|
3765
|
-
"use strict";
|
|
3766
|
-
var baseSetToString = require_baseSetToString();
|
|
3767
|
-
var shortOut = require_shortOut();
|
|
3768
|
-
var setToString = shortOut(baseSetToString);
|
|
3769
|
-
module2.exports = setToString;
|
|
3770
|
-
}
|
|
3771
|
-
});
|
|
3772
|
-
|
|
3773
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js
|
|
3774
|
-
var require_baseRest = __commonJS({
|
|
3775
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(exports2, module2) {
|
|
3776
|
-
"use strict";
|
|
3777
|
-
var identity = require_identity();
|
|
3778
|
-
var overRest = require_overRest();
|
|
3779
|
-
var setToString = require_setToString();
|
|
3780
|
-
function baseRest(func, start) {
|
|
3781
|
-
return setToString(overRest(func, start, identity), func + "");
|
|
3782
|
-
}
|
|
3783
|
-
module2.exports = baseRest;
|
|
3784
|
-
}
|
|
3785
|
-
});
|
|
3786
|
-
|
|
3787
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js
|
|
3788
|
-
var require_isIterateeCall = __commonJS({
|
|
3789
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(exports2, module2) {
|
|
3790
|
-
"use strict";
|
|
3791
|
-
var eq = require_eq2();
|
|
3792
|
-
var isArrayLike = require_isArrayLike();
|
|
3793
|
-
var isIndex = require_isIndex();
|
|
3794
|
-
var isObject = require_isObject();
|
|
3795
|
-
function isIterateeCall(value, index, object) {
|
|
3796
|
-
if (!isObject(object)) {
|
|
3797
|
-
return false;
|
|
3798
|
-
}
|
|
3799
|
-
var type = typeof index;
|
|
3800
|
-
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
3801
|
-
return eq(object[index], value);
|
|
3802
|
-
}
|
|
3803
|
-
return false;
|
|
3804
|
-
}
|
|
3805
|
-
module2.exports = isIterateeCall;
|
|
3806
|
-
}
|
|
3807
|
-
});
|
|
3808
|
-
|
|
3809
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js
|
|
3810
|
-
var require_createAssigner = __commonJS({
|
|
3811
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(exports2, module2) {
|
|
3812
|
-
"use strict";
|
|
3813
|
-
var baseRest = require_baseRest();
|
|
3814
|
-
var isIterateeCall = require_isIterateeCall();
|
|
3815
|
-
function createAssigner(assigner) {
|
|
3816
|
-
return baseRest(function(object, sources) {
|
|
3817
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
3818
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
3819
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
3820
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
3821
|
-
length = 1;
|
|
3822
|
-
}
|
|
3823
|
-
object = Object(object);
|
|
3824
|
-
while (++index < length) {
|
|
3825
|
-
var source = sources[index];
|
|
3826
|
-
if (source) {
|
|
3827
|
-
assigner(object, source, index, customizer);
|
|
3828
|
-
}
|
|
3829
|
-
}
|
|
3830
|
-
return object;
|
|
3831
|
-
});
|
|
3832
|
-
}
|
|
3833
|
-
module2.exports = createAssigner;
|
|
3834
|
-
}
|
|
3835
|
-
});
|
|
3836
|
-
|
|
3837
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
|
|
3838
|
-
var require_merge = __commonJS({
|
|
3839
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports2, module2) {
|
|
3840
|
-
"use strict";
|
|
3841
|
-
var baseMerge = require_baseMerge();
|
|
3842
|
-
var createAssigner = require_createAssigner();
|
|
3843
|
-
var merge3 = createAssigner(function(object, source, srcIndex) {
|
|
3844
|
-
baseMerge(object, source, srcIndex);
|
|
3845
|
-
});
|
|
3846
|
-
module2.exports = merge3;
|
|
3847
|
-
}
|
|
3848
|
-
});
|
|
3849
|
-
|
|
3850
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
|
|
3851
|
-
var require_baseGet = __commonJS({
|
|
3852
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports2, module2) {
|
|
3853
|
-
"use strict";
|
|
3854
|
-
var castPath = require_castPath();
|
|
3855
|
-
var toKey = require_toKey();
|
|
3856
|
-
function baseGet(object, path) {
|
|
3857
|
-
path = castPath(path, object);
|
|
3858
|
-
var index = 0, length = path.length;
|
|
3859
|
-
while (object != null && index < length) {
|
|
3860
|
-
object = object[toKey(path[index++])];
|
|
3861
|
-
}
|
|
3862
|
-
return index && index == length ? object : void 0;
|
|
3863
|
-
}
|
|
3864
|
-
module2.exports = baseGet;
|
|
3142
|
+
var nodeUtil = require_nodeUtil();
|
|
3143
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
3144
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
3145
|
+
module2.exports = isTypedArray;
|
|
3865
3146
|
}
|
|
3866
3147
|
});
|
|
3867
3148
|
|
|
3868
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3869
|
-
var
|
|
3870
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3149
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
|
|
3150
|
+
var require_arrayLikeKeys = __commonJS({
|
|
3151
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports2, module2) {
|
|
3871
3152
|
"use strict";
|
|
3872
|
-
var
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3153
|
+
var baseTimes = require_baseTimes();
|
|
3154
|
+
var isArguments = require_isArguments();
|
|
3155
|
+
var isArray = require_isArray();
|
|
3156
|
+
var isBuffer = require_isBuffer();
|
|
3157
|
+
var isIndex = require_isIndex();
|
|
3158
|
+
var isTypedArray = require_isTypedArray();
|
|
3159
|
+
var objectProto = Object.prototype;
|
|
3160
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3161
|
+
function arrayLikeKeys(value, inherited) {
|
|
3162
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
3163
|
+
for (var key in value) {
|
|
3164
|
+
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3165
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
3166
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
3167
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
3168
|
+
isIndex(key, length)))) {
|
|
3169
|
+
result.push(key);
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
return result;
|
|
3876
3173
|
}
|
|
3877
|
-
module2.exports =
|
|
3174
|
+
module2.exports = arrayLikeKeys;
|
|
3878
3175
|
}
|
|
3879
3176
|
});
|
|
3880
3177
|
|
|
3881
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3882
|
-
var
|
|
3883
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3178
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
|
|
3179
|
+
var require_isPrototype = __commonJS({
|
|
3180
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports2, module2) {
|
|
3884
3181
|
"use strict";
|
|
3885
|
-
var
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
function isString2(value) {
|
|
3890
|
-
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
3182
|
+
var objectProto = Object.prototype;
|
|
3183
|
+
function isPrototype(value) {
|
|
3184
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
3185
|
+
return value === proto;
|
|
3891
3186
|
}
|
|
3892
|
-
module2.exports =
|
|
3187
|
+
module2.exports = isPrototype;
|
|
3893
3188
|
}
|
|
3894
3189
|
});
|
|
3895
3190
|
|
|
3896
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3897
|
-
var
|
|
3898
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
3191
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
|
|
3192
|
+
var require_overArg = __commonJS({
|
|
3193
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports2, module2) {
|
|
3899
3194
|
"use strict";
|
|
3900
|
-
function
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
setter(accumulator, value, iteratee(value), array);
|
|
3905
|
-
}
|
|
3906
|
-
return accumulator;
|
|
3195
|
+
function overArg(func, transform) {
|
|
3196
|
+
return function(arg) {
|
|
3197
|
+
return func(transform(arg));
|
|
3198
|
+
};
|
|
3907
3199
|
}
|
|
3908
|
-
module2.exports =
|
|
3200
|
+
module2.exports = overArg;
|
|
3909
3201
|
}
|
|
3910
3202
|
});
|
|
3911
3203
|
|
|
@@ -3943,6 +3235,19 @@ var require_baseKeys = __commonJS({
|
|
|
3943
3235
|
}
|
|
3944
3236
|
});
|
|
3945
3237
|
|
|
3238
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
|
|
3239
|
+
var require_isArrayLike = __commonJS({
|
|
3240
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports2, module2) {
|
|
3241
|
+
"use strict";
|
|
3242
|
+
var isFunction = require_isFunction();
|
|
3243
|
+
var isLength = require_isLength();
|
|
3244
|
+
function isArrayLike(value) {
|
|
3245
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
3246
|
+
}
|
|
3247
|
+
module2.exports = isArrayLike;
|
|
3248
|
+
}
|
|
3249
|
+
});
|
|
3250
|
+
|
|
3946
3251
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js
|
|
3947
3252
|
var require_keys = __commonJS({
|
|
3948
3253
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"(exports2, module2) {
|
|
@@ -4022,6 +3327,104 @@ var require_baseAggregator = __commonJS({
|
|
|
4022
3327
|
}
|
|
4023
3328
|
});
|
|
4024
3329
|
|
|
3330
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
|
|
3331
|
+
var require_stackClear = __commonJS({
|
|
3332
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports2, module2) {
|
|
3333
|
+
"use strict";
|
|
3334
|
+
var ListCache = require_ListCache();
|
|
3335
|
+
function stackClear() {
|
|
3336
|
+
this.__data__ = new ListCache();
|
|
3337
|
+
this.size = 0;
|
|
3338
|
+
}
|
|
3339
|
+
module2.exports = stackClear;
|
|
3340
|
+
}
|
|
3341
|
+
});
|
|
3342
|
+
|
|
3343
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
|
|
3344
|
+
var require_stackDelete = __commonJS({
|
|
3345
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports2, module2) {
|
|
3346
|
+
"use strict";
|
|
3347
|
+
function stackDelete(key) {
|
|
3348
|
+
var data = this.__data__, result = data["delete"](key);
|
|
3349
|
+
this.size = data.size;
|
|
3350
|
+
return result;
|
|
3351
|
+
}
|
|
3352
|
+
module2.exports = stackDelete;
|
|
3353
|
+
}
|
|
3354
|
+
});
|
|
3355
|
+
|
|
3356
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
|
|
3357
|
+
var require_stackGet = __commonJS({
|
|
3358
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports2, module2) {
|
|
3359
|
+
"use strict";
|
|
3360
|
+
function stackGet(key) {
|
|
3361
|
+
return this.__data__.get(key);
|
|
3362
|
+
}
|
|
3363
|
+
module2.exports = stackGet;
|
|
3364
|
+
}
|
|
3365
|
+
});
|
|
3366
|
+
|
|
3367
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
|
|
3368
|
+
var require_stackHas = __commonJS({
|
|
3369
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports2, module2) {
|
|
3370
|
+
"use strict";
|
|
3371
|
+
function stackHas(key) {
|
|
3372
|
+
return this.__data__.has(key);
|
|
3373
|
+
}
|
|
3374
|
+
module2.exports = stackHas;
|
|
3375
|
+
}
|
|
3376
|
+
});
|
|
3377
|
+
|
|
3378
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
|
|
3379
|
+
var require_stackSet = __commonJS({
|
|
3380
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports2, module2) {
|
|
3381
|
+
"use strict";
|
|
3382
|
+
var ListCache = require_ListCache();
|
|
3383
|
+
var Map2 = require_Map();
|
|
3384
|
+
var MapCache = require_MapCache();
|
|
3385
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
3386
|
+
function stackSet(key, value) {
|
|
3387
|
+
var data = this.__data__;
|
|
3388
|
+
if (data instanceof ListCache) {
|
|
3389
|
+
var pairs = data.__data__;
|
|
3390
|
+
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
3391
|
+
pairs.push([key, value]);
|
|
3392
|
+
this.size = ++data.size;
|
|
3393
|
+
return this;
|
|
3394
|
+
}
|
|
3395
|
+
data = this.__data__ = new MapCache(pairs);
|
|
3396
|
+
}
|
|
3397
|
+
data.set(key, value);
|
|
3398
|
+
this.size = data.size;
|
|
3399
|
+
return this;
|
|
3400
|
+
}
|
|
3401
|
+
module2.exports = stackSet;
|
|
3402
|
+
}
|
|
3403
|
+
});
|
|
3404
|
+
|
|
3405
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
|
|
3406
|
+
var require_Stack = __commonJS({
|
|
3407
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports2, module2) {
|
|
3408
|
+
"use strict";
|
|
3409
|
+
var ListCache = require_ListCache();
|
|
3410
|
+
var stackClear = require_stackClear();
|
|
3411
|
+
var stackDelete = require_stackDelete();
|
|
3412
|
+
var stackGet = require_stackGet();
|
|
3413
|
+
var stackHas = require_stackHas();
|
|
3414
|
+
var stackSet = require_stackSet();
|
|
3415
|
+
function Stack(entries) {
|
|
3416
|
+
var data = this.__data__ = new ListCache(entries);
|
|
3417
|
+
this.size = data.size;
|
|
3418
|
+
}
|
|
3419
|
+
Stack.prototype.clear = stackClear;
|
|
3420
|
+
Stack.prototype["delete"] = stackDelete;
|
|
3421
|
+
Stack.prototype.get = stackGet;
|
|
3422
|
+
Stack.prototype.has = stackHas;
|
|
3423
|
+
Stack.prototype.set = stackSet;
|
|
3424
|
+
module2.exports = Stack;
|
|
3425
|
+
}
|
|
3426
|
+
});
|
|
3427
|
+
|
|
4025
3428
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js
|
|
4026
3429
|
var require_setCacheAdd = __commonJS({
|
|
4027
3430
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js"(exports2, module2) {
|
|
@@ -4150,6 +3553,16 @@ var require_equalArrays = __commonJS({
|
|
|
4150
3553
|
}
|
|
4151
3554
|
});
|
|
4152
3555
|
|
|
3556
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
|
|
3557
|
+
var require_Uint8Array = __commonJS({
|
|
3558
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports2, module2) {
|
|
3559
|
+
"use strict";
|
|
3560
|
+
var root = require_root();
|
|
3561
|
+
var Uint8Array2 = root.Uint8Array;
|
|
3562
|
+
module2.exports = Uint8Array2;
|
|
3563
|
+
}
|
|
3564
|
+
});
|
|
3565
|
+
|
|
4153
3566
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js
|
|
4154
3567
|
var require_mapToArray = __commonJS({
|
|
4155
3568
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(exports2, module2) {
|
|
@@ -4734,7 +4147,7 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
4734
4147
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"(exports2, module2) {
|
|
4735
4148
|
"use strict";
|
|
4736
4149
|
var baseIsEqual = require_baseIsEqual();
|
|
4737
|
-
var
|
|
4150
|
+
var get2 = require_get();
|
|
4738
4151
|
var hasIn = require_hasIn();
|
|
4739
4152
|
var isKey = require_isKey();
|
|
4740
4153
|
var isStrictComparable = require_isStrictComparable();
|
|
@@ -4747,7 +4160,7 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
4747
4160
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
4748
4161
|
}
|
|
4749
4162
|
return function(object) {
|
|
4750
|
-
var objValue =
|
|
4163
|
+
var objValue = get2(object, path);
|
|
4751
4164
|
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
4752
4165
|
};
|
|
4753
4166
|
}
|
|
@@ -4755,6 +4168,17 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
4755
4168
|
}
|
|
4756
4169
|
});
|
|
4757
4170
|
|
|
4171
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
|
|
4172
|
+
var require_identity = __commonJS({
|
|
4173
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports2, module2) {
|
|
4174
|
+
"use strict";
|
|
4175
|
+
function identity(value) {
|
|
4176
|
+
return value;
|
|
4177
|
+
}
|
|
4178
|
+
module2.exports = identity;
|
|
4179
|
+
}
|
|
4180
|
+
});
|
|
4181
|
+
|
|
4758
4182
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js
|
|
4759
4183
|
var require_baseProperty = __commonJS({
|
|
4760
4184
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"(exports2, module2) {
|
|
@@ -4864,7 +4288,7 @@ var import_commander = require("commander");
|
|
|
4864
4288
|
|
|
4865
4289
|
// package.json
|
|
4866
4290
|
var description = "A tool for releasing front-end projects, supporting multiple release modes and configurations, simplifying the release process and improving efficiency.";
|
|
4867
|
-
var version = "
|
|
4291
|
+
var version = "3.0.0";
|
|
4868
4292
|
|
|
4869
4293
|
// src/cli.ts
|
|
4870
4294
|
var import_semver = __toESM(require_semver2(), 1);
|
|
@@ -4891,10 +4315,7 @@ function tuple(plugin, ...args) {
|
|
|
4891
4315
|
var import_fe_corekit = require("@qlover/fe-corekit");
|
|
4892
4316
|
|
|
4893
4317
|
// src/implments/ReleaseContext.ts
|
|
4894
|
-
var import_scripts_context = require("@qlover/scripts-context");
|
|
4895
|
-
var import_merge = __toESM(require_merge(), 1);
|
|
4896
4318
|
var import_get = __toESM(require_get(), 1);
|
|
4897
|
-
var import_env_loader = require("@qlover/env-loader");
|
|
4898
4319
|
|
|
4899
4320
|
// src/defaults.ts
|
|
4900
4321
|
var DEFAULT_SOURCE_BRANCH = "master";
|
|
@@ -4908,52 +4329,38 @@ var WORKSPACE_VERSION_SEPARATOR = "@";
|
|
|
4908
4329
|
var BATCH_PR_BODY = "\n## ${name} ${version}\n${changelog}\n";
|
|
4909
4330
|
|
|
4910
4331
|
// src/implments/ReleaseContext.ts
|
|
4911
|
-
var
|
|
4912
|
-
var ReleaseContext = class extends import_scripts_context.
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
this.getDefaultShreadOptions(context.shared)
|
|
4929
|
-
);
|
|
4930
|
-
}
|
|
4931
|
-
getDefaultShreadOptions(props) {
|
|
4932
|
-
return {
|
|
4933
|
-
rootPath: process.cwd(),
|
|
4934
|
-
// use currentBranch by default
|
|
4935
|
-
sourceBranch: this._env.get("FE_RELEASE_BRANCH") || this._env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH,
|
|
4936
|
-
releaseEnv: this._env.get("FE_RELEASE_ENV") || this._env.get("NODE_ENV") || "development",
|
|
4937
|
-
...props
|
|
4938
|
-
};
|
|
4332
|
+
var import_scripts_context = require("@qlover/scripts-context");
|
|
4333
|
+
var ReleaseContext = class extends import_scripts_context.ScriptContext {
|
|
4334
|
+
constructor(name, options) {
|
|
4335
|
+
super(name, options);
|
|
4336
|
+
if (!this.options.rootPath) {
|
|
4337
|
+
this.setOptions({ rootPath: process.cwd() });
|
|
4338
|
+
}
|
|
4339
|
+
if (!this.options.sourceBranch) {
|
|
4340
|
+
this.setOptions({
|
|
4341
|
+
sourceBranch: this.env.get("FE_RELEASE_BRANCH") || this.env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH
|
|
4342
|
+
});
|
|
4343
|
+
}
|
|
4344
|
+
if (!this.options.releaseEnv) {
|
|
4345
|
+
this.setOptions({
|
|
4346
|
+
releaseEnv: this.env.get("FE_RELEASE_ENV") || this.env.get("NODE_ENV") || "development"
|
|
4347
|
+
});
|
|
4348
|
+
}
|
|
4939
4349
|
}
|
|
4940
4350
|
get rootPath() {
|
|
4941
|
-
return this.
|
|
4351
|
+
return this.getOptions("rootPath");
|
|
4942
4352
|
}
|
|
4943
4353
|
get sourceBranch() {
|
|
4944
|
-
return this.
|
|
4354
|
+
return this.getOptions("sourceBranch");
|
|
4945
4355
|
}
|
|
4946
4356
|
get releaseEnv() {
|
|
4947
|
-
return this.
|
|
4948
|
-
}
|
|
4949
|
-
get env() {
|
|
4950
|
-
return this._env;
|
|
4357
|
+
return this.getOptions("releaseEnv");
|
|
4951
4358
|
}
|
|
4952
4359
|
get workspaces() {
|
|
4953
|
-
return this.
|
|
4360
|
+
return this.getOptions("workspaces.workspaces");
|
|
4954
4361
|
}
|
|
4955
4362
|
get workspace() {
|
|
4956
|
-
return this.
|
|
4363
|
+
return this.getOptions("workspaces.workspace");
|
|
4957
4364
|
}
|
|
4958
4365
|
setWorkspaces(workspaces) {
|
|
4959
4366
|
this.options.workspaces = {
|
|
@@ -4961,15 +4368,6 @@ var ReleaseContext = class extends import_scripts_context.FeScriptContext {
|
|
|
4961
4368
|
workspaces
|
|
4962
4369
|
};
|
|
4963
4370
|
}
|
|
4964
|
-
setConfig(config) {
|
|
4965
|
-
this.options = (0, import_merge.default)(this.options, config);
|
|
4966
|
-
}
|
|
4967
|
-
getConfig(key, defaultValue) {
|
|
4968
|
-
return (0, import_get.default)(this.options, key, defaultValue);
|
|
4969
|
-
}
|
|
4970
|
-
setShared(shared) {
|
|
4971
|
-
this.shared = (0, import_merge.default)(this.shared, shared);
|
|
4972
|
-
}
|
|
4973
4371
|
getPkg(key, defaultValue) {
|
|
4974
4372
|
const packageJson = this.workspace?.packageJson;
|
|
4975
4373
|
if (!packageJson) {
|
|
@@ -4982,7 +4380,7 @@ var ReleaseContext = class extends import_scripts_context.FeScriptContext {
|
|
|
4982
4380
|
}
|
|
4983
4381
|
getTemplateContext() {
|
|
4984
4382
|
return {
|
|
4985
|
-
...this.
|
|
4383
|
+
...this.getOptions(),
|
|
4986
4384
|
...this.workspace,
|
|
4987
4385
|
publishPath: this.workspace?.path || "",
|
|
4988
4386
|
// deprecated
|
|
@@ -5007,6 +4405,7 @@ var ReleaseContext = class extends import_scripts_context.FeScriptContext {
|
|
|
5007
4405
|
};
|
|
5008
4406
|
|
|
5009
4407
|
// src/implments/ReleaseParams.ts
|
|
4408
|
+
var import_scripts_context2 = require("@qlover/scripts-context");
|
|
5010
4409
|
var DEFAULT_RELEASE_CONFIG = {
|
|
5011
4410
|
maxWorkspace: MAX_WORKSPACE,
|
|
5012
4411
|
multiWorkspaceSeparator: MULTI_WORKSPACE_SEPARATOR,
|
|
@@ -5015,8 +4414,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
5015
4414
|
batchTagName: "batch-${length}-packages-${timestamp}"
|
|
5016
4415
|
};
|
|
5017
4416
|
var ReleaseParams = class {
|
|
5018
|
-
constructor(
|
|
5019
|
-
this.shell = shell;
|
|
4417
|
+
constructor(logger, config = {}) {
|
|
5020
4418
|
this.logger = logger;
|
|
5021
4419
|
this.config = {
|
|
5022
4420
|
...DEFAULT_RELEASE_CONFIG,
|
|
@@ -5030,7 +4428,7 @@ var ReleaseParams = class {
|
|
|
5030
4428
|
throw new Error("Branch name template is not a string");
|
|
5031
4429
|
}
|
|
5032
4430
|
this.logger.debug("Release Branch template is:", branchNameTpl);
|
|
5033
|
-
return
|
|
4431
|
+
return import_scripts_context2.Shell.format(branchNameTpl, {
|
|
5034
4432
|
pkgName: releaseName,
|
|
5035
4433
|
releaseName,
|
|
5036
4434
|
tagName,
|
|
@@ -5044,7 +4442,7 @@ var ReleaseParams = class {
|
|
|
5044
4442
|
throw new Error("Branch name template is not a string");
|
|
5045
4443
|
}
|
|
5046
4444
|
this.logger.debug("Release Batch Branch template is:", branchNameTpl);
|
|
5047
|
-
return
|
|
4445
|
+
return import_scripts_context2.Shell.format(branchNameTpl, {
|
|
5048
4446
|
pkgName: releaseName,
|
|
5049
4447
|
releaseName,
|
|
5050
4448
|
tagName,
|
|
@@ -5068,7 +4466,7 @@ var ReleaseParams = class {
|
|
|
5068
4466
|
return composeWorkspaces[0].version;
|
|
5069
4467
|
}
|
|
5070
4468
|
const { batchTagName } = this.config;
|
|
5071
|
-
return
|
|
4469
|
+
return import_scripts_context2.Shell.format(batchTagName, {
|
|
5072
4470
|
length: composeWorkspaces.length,
|
|
5073
4471
|
timestamp: Date.now()
|
|
5074
4472
|
});
|
|
@@ -5089,7 +4487,7 @@ var ReleaseParams = class {
|
|
|
5089
4487
|
}
|
|
5090
4488
|
getPRTitle(releaseBranchParams, context) {
|
|
5091
4489
|
const prTitleTpl = this.config.PRTitle || DEFAULT_PR_TITLE;
|
|
5092
|
-
return
|
|
4490
|
+
return import_scripts_context2.Shell.format(prTitleTpl, {
|
|
5093
4491
|
...context,
|
|
5094
4492
|
tagName: releaseBranchParams.tagName,
|
|
5095
4493
|
pkgName: releaseBranchParams.releaseBranch
|
|
@@ -5104,7 +4502,7 @@ var ReleaseParams = class {
|
|
|
5104
4502
|
getPRBody(composeWorkspaces, releaseBranchParams, context) {
|
|
5105
4503
|
const PRBodyTpl = this.config.PRBody;
|
|
5106
4504
|
const changelog = composeWorkspaces.length > 1 ? composeWorkspaces.map((workspace) => {
|
|
5107
|
-
return
|
|
4505
|
+
return import_scripts_context2.Shell.format(
|
|
5108
4506
|
BATCH_PR_BODY,
|
|
5109
4507
|
workspace
|
|
5110
4508
|
);
|
|
@@ -5113,7 +4511,7 @@ var ReleaseParams = class {
|
|
|
5113
4511
|
const tagName = composeWorkspaces.length === 1 ? releaseBranchParams.tagName : composeWorkspaces.map(
|
|
5114
4512
|
(workspace) => `${workspace.name}${workspaceVersionSeparator}${workspace.version}`
|
|
5115
4513
|
).join(" ");
|
|
5116
|
-
return
|
|
4514
|
+
return import_scripts_context2.Shell.format(PRBodyTpl, {
|
|
5117
4515
|
...context,
|
|
5118
4516
|
tagName,
|
|
5119
4517
|
changelog
|
|
@@ -5122,6 +4520,7 @@ var ReleaseParams = class {
|
|
|
5122
4520
|
};
|
|
5123
4521
|
|
|
5124
4522
|
// src/plugins/githubPR/GithubManager.ts
|
|
4523
|
+
var import_scripts_context3 = require("@qlover/scripts-context");
|
|
5125
4524
|
var import_rest = require("@octokit/rest");
|
|
5126
4525
|
var GithubManager = class {
|
|
5127
4526
|
constructor(context) {
|
|
@@ -5129,7 +4528,7 @@ var GithubManager = class {
|
|
|
5129
4528
|
}
|
|
5130
4529
|
_octokit = null;
|
|
5131
4530
|
getGitHubUserInfo() {
|
|
5132
|
-
const { authorName, repoName } = this.context.
|
|
4531
|
+
const { authorName, repoName } = this.context.getOptions();
|
|
5133
4532
|
if (!authorName || !repoName) {
|
|
5134
4533
|
throw new Error("Author name or repo name is not set");
|
|
5135
4534
|
}
|
|
@@ -5139,7 +4538,7 @@ var GithubManager = class {
|
|
|
5139
4538
|
};
|
|
5140
4539
|
}
|
|
5141
4540
|
getToken() {
|
|
5142
|
-
const { tokenRef = "GITHUB_TOKEN" } = this.context.
|
|
4541
|
+
const { tokenRef = "GITHUB_TOKEN" } = this.context.getOptions("githubPR");
|
|
5143
4542
|
const token = this.context.env.get(tokenRef);
|
|
5144
4543
|
if (!token) {
|
|
5145
4544
|
throw new Error(
|
|
@@ -5152,7 +4551,7 @@ var GithubManager = class {
|
|
|
5152
4551
|
if (this._octokit) {
|
|
5153
4552
|
return this._octokit;
|
|
5154
4553
|
}
|
|
5155
|
-
const { timeout } = this.context.
|
|
4554
|
+
const { timeout } = this.context.getOptions("githubPR");
|
|
5156
4555
|
const options = {
|
|
5157
4556
|
auth: this.getToken(),
|
|
5158
4557
|
request: {
|
|
@@ -5174,7 +4573,7 @@ var GithubManager = class {
|
|
|
5174
4573
|
* @default `squash`
|
|
5175
4574
|
*/
|
|
5176
4575
|
get autoMergeType() {
|
|
5177
|
-
return this.context.
|
|
4576
|
+
return this.context.getOptions().autoMergeType || DEFAULT_AUTO_MERGE_TYPE;
|
|
5178
4577
|
}
|
|
5179
4578
|
/**
|
|
5180
4579
|
* Dry run PR number
|
|
@@ -5182,7 +4581,7 @@ var GithubManager = class {
|
|
|
5182
4581
|
* @default `999999`
|
|
5183
4582
|
*/
|
|
5184
4583
|
get dryRunPRNumber() {
|
|
5185
|
-
return this.context.
|
|
4584
|
+
return this.context.getOptions("githubPR.dryRunPRNumber", "999999");
|
|
5186
4585
|
}
|
|
5187
4586
|
/**
|
|
5188
4587
|
* Auto merge release PR
|
|
@@ -5190,7 +4589,7 @@ var GithubManager = class {
|
|
|
5190
4589
|
* @default `false`
|
|
5191
4590
|
*/
|
|
5192
4591
|
get autoMergeReleasePR() {
|
|
5193
|
-
return this.context.
|
|
4592
|
+
return this.context.getOptions("autoMergeReleasePR") || DEFAULT_AUTO_MERGE_RELEASE_PR;
|
|
5194
4593
|
}
|
|
5195
4594
|
/**
|
|
5196
4595
|
* Automatically merges a pull request.
|
|
@@ -5205,7 +4604,7 @@ var GithubManager = class {
|
|
|
5205
4604
|
}
|
|
5206
4605
|
const mergeMethod = this.autoMergeType;
|
|
5207
4606
|
if (this.context.dryRun) {
|
|
5208
|
-
const { repoName, authorName } = this.context.
|
|
4607
|
+
const { repoName, authorName } = this.context.getOptions();
|
|
5209
4608
|
this.logger.info(
|
|
5210
4609
|
`[DRY RUN] Would merge PR #${prNumber} with method '${mergeMethod}' in repo ${authorName}/${repoName}, branch ${releaseBranch}`
|
|
5211
4610
|
);
|
|
@@ -5270,7 +4669,7 @@ var GithubManager = class {
|
|
|
5270
4669
|
* @throws If the label is not valid or if the creation fails.
|
|
5271
4670
|
*/
|
|
5272
4671
|
async createReleasePRLabel() {
|
|
5273
|
-
const label = this.context.
|
|
4672
|
+
const label = this.context.getOptions().label;
|
|
5274
4673
|
if (!label || !label.name || !label.description || !label.color) {
|
|
5275
4674
|
throw new Error("Label is not valid, skipping creation");
|
|
5276
4675
|
}
|
|
@@ -5305,7 +4704,7 @@ var GithubManager = class {
|
|
|
5305
4704
|
* @throws If the creation fails or if the pull request already exists.
|
|
5306
4705
|
*/
|
|
5307
4706
|
async createReleasePR(options) {
|
|
5308
|
-
const dryRunCreatePR = this.context.
|
|
4707
|
+
const dryRunCreatePR = this.context.getOptions("githubPR.dryRunCreatePR");
|
|
5309
4708
|
if (dryRunCreatePR || this.context.dryRun) {
|
|
5310
4709
|
this.logger.info(`[DRY RUN] Would create PR with:`, {
|
|
5311
4710
|
...options,
|
|
@@ -5357,7 +4756,7 @@ var GithubManager = class {
|
|
|
5357
4756
|
makeLatest = true,
|
|
5358
4757
|
releaseNotes,
|
|
5359
4758
|
discussionCategoryName = void 0
|
|
5360
|
-
} = this.context.
|
|
4759
|
+
} = this.context.getOptions("githubPR");
|
|
5361
4760
|
const name = releaseName;
|
|
5362
4761
|
const body = autoGenerate ? "" : this.truncateBody(String(releaseNotes));
|
|
5363
4762
|
return {
|
|
@@ -5378,7 +4777,7 @@ var GithubManager = class {
|
|
|
5378
4777
|
tag_name: workspace.tagName,
|
|
5379
4778
|
body: workspace.changelog
|
|
5380
4779
|
});
|
|
5381
|
-
meragedOptions.name =
|
|
4780
|
+
meragedOptions.name = import_scripts_context3.Shell.format(
|
|
5382
4781
|
meragedOptions.name,
|
|
5383
4782
|
workspace
|
|
5384
4783
|
);
|
|
@@ -5410,92 +4809,14 @@ var GithubManager = class {
|
|
|
5410
4809
|
|
|
5411
4810
|
// src/plugins/GitBase.ts
|
|
5412
4811
|
var import_isString = __toESM(require_isString(), 1);
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
var import_merge2 = __toESM(require_merge(), 1);
|
|
5416
|
-
var import_get2 = __toESM(require_get(), 1);
|
|
5417
|
-
var Plugin = class {
|
|
5418
|
-
constructor(context, pluginName, props = {}) {
|
|
5419
|
-
this.context = context;
|
|
5420
|
-
this.pluginName = pluginName;
|
|
5421
|
-
this.props = props;
|
|
5422
|
-
this.setConfig(this.getInitialProps(props));
|
|
5423
|
-
}
|
|
5424
|
-
onlyOne = true;
|
|
5425
|
-
getInitialProps(props) {
|
|
5426
|
-
const pluginConfig = this.context.options[this.pluginName];
|
|
5427
|
-
const fileConfig = (0, import_get2.default)(this.context.shared, this.pluginName);
|
|
5428
|
-
return pluginConfig || props ? (0, import_merge2.default)({}, fileConfig, props, pluginConfig) : {};
|
|
5429
|
-
}
|
|
5430
|
-
get logger() {
|
|
5431
|
-
return this.context.logger;
|
|
5432
|
-
}
|
|
5433
|
-
get shell() {
|
|
5434
|
-
return this.context.shell;
|
|
5435
|
-
}
|
|
5436
|
-
get options() {
|
|
5437
|
-
return this.context.getConfig(this.pluginName, {});
|
|
5438
|
-
}
|
|
5439
|
-
getEnv(key, defaultValue) {
|
|
5440
|
-
return this.context.env.get(key) ?? defaultValue;
|
|
5441
|
-
}
|
|
5442
|
-
enabled(_name, _context) {
|
|
5443
|
-
return true;
|
|
5444
|
-
}
|
|
5445
|
-
getConfig(keys, defaultValue) {
|
|
5446
|
-
if (!keys) {
|
|
5447
|
-
return this.context.getConfig(this.pluginName, defaultValue);
|
|
5448
|
-
}
|
|
5449
|
-
return this.context.getConfig(
|
|
5450
|
-
[this.pluginName, ...Array.isArray(keys) ? keys : [keys]],
|
|
5451
|
-
defaultValue
|
|
5452
|
-
);
|
|
5453
|
-
}
|
|
5454
|
-
setConfig(config) {
|
|
5455
|
-
this.context.setConfig({
|
|
5456
|
-
[this.pluginName]: config
|
|
5457
|
-
});
|
|
5458
|
-
}
|
|
5459
|
-
onBefore(_context) {
|
|
5460
|
-
}
|
|
5461
|
-
onExec(_context) {
|
|
5462
|
-
}
|
|
5463
|
-
onSuccess(_context) {
|
|
5464
|
-
}
|
|
5465
|
-
onError(_context) {
|
|
5466
|
-
}
|
|
5467
|
-
/**
|
|
5468
|
-
* run a step
|
|
5469
|
-
*
|
|
5470
|
-
* this will log the step and return the result of the task
|
|
5471
|
-
*
|
|
5472
|
-
* @param label - the label of the step
|
|
5473
|
-
* @param task - the task to run
|
|
5474
|
-
* @returns the result of the task
|
|
5475
|
-
*/
|
|
5476
|
-
async step({ label, task }) {
|
|
5477
|
-
this.logger.log();
|
|
5478
|
-
this.logger.info(label);
|
|
5479
|
-
this.logger.log();
|
|
5480
|
-
try {
|
|
5481
|
-
const res = await task();
|
|
5482
|
-
this.logger.info(`${label} - success`);
|
|
5483
|
-
return res;
|
|
5484
|
-
} catch (e) {
|
|
5485
|
-
this.logger.error(e);
|
|
5486
|
-
throw e;
|
|
5487
|
-
}
|
|
5488
|
-
}
|
|
5489
|
-
};
|
|
5490
|
-
|
|
5491
|
-
// src/plugins/GitBase.ts
|
|
5492
|
-
var GitBase = class extends Plugin {
|
|
4812
|
+
var import_scripts_context4 = require("@qlover/scripts-context");
|
|
4813
|
+
var GitBase = class extends import_scripts_context4.ScriptPlugin {
|
|
5493
4814
|
async onBefore() {
|
|
5494
4815
|
const repoInfo = await this.getUserInfo();
|
|
5495
4816
|
if (!repoInfo) {
|
|
5496
4817
|
throw new Error("Failed to get repoInfo");
|
|
5497
4818
|
}
|
|
5498
|
-
let currentBranch = this.context.
|
|
4819
|
+
let currentBranch = this.context.options.currentBranch;
|
|
5499
4820
|
if (!currentBranch) {
|
|
5500
4821
|
currentBranch = await this.getCurrentBranch();
|
|
5501
4822
|
}
|
|
@@ -5504,7 +4825,7 @@ var GitBase = class extends Plugin {
|
|
|
5504
4825
|
dryRun: false
|
|
5505
4826
|
});
|
|
5506
4827
|
}
|
|
5507
|
-
this.context.
|
|
4828
|
+
this.context.setOptions({
|
|
5508
4829
|
repoName: repoInfo.repoName,
|
|
5509
4830
|
authorName: repoInfo.authorName,
|
|
5510
4831
|
currentBranch
|
|
@@ -5616,14 +4937,14 @@ var GitChangelog = class {
|
|
|
5616
4937
|
* @returns
|
|
5617
4938
|
*/
|
|
5618
4939
|
async getGitLog(options = {}) {
|
|
5619
|
-
const { directory, noMerges = true,
|
|
4940
|
+
const { directory, noMerges = true, fields } = options;
|
|
5620
4941
|
const from = await this.resolveTag(options.from, "root");
|
|
5621
4942
|
const to = await this.resolveTag(options.to, "HEAD");
|
|
5622
4943
|
const range = from === to ? to : `${from}..${to}`;
|
|
5623
4944
|
const gitLogOptions = {
|
|
5624
4945
|
repo: ".",
|
|
5625
4946
|
number: 1e3,
|
|
5626
|
-
fields
|
|
4947
|
+
fields,
|
|
5627
4948
|
branch: range,
|
|
5628
4949
|
file: directory,
|
|
5629
4950
|
nameStatus: false,
|
|
@@ -5716,6 +5037,7 @@ var GitChangelog = class {
|
|
|
5716
5037
|
};
|
|
5717
5038
|
|
|
5718
5039
|
// src/implments/changelog/GitChangelogFormatter.ts
|
|
5040
|
+
var import_scripts_context5 = require("@qlover/scripts-context");
|
|
5719
5041
|
var import_groupBy = __toESM(require_groupBy(), 1);
|
|
5720
5042
|
var DEFAULT_TEMPLATE = "\n- ${scopeHeader} ${commitlint.message} ${commitLink} ${prLink}";
|
|
5721
5043
|
var GitChangelogFormatter = class {
|
|
@@ -5767,7 +5089,7 @@ var GitChangelogFormatter = class {
|
|
|
5767
5089
|
hash.slice(0, 7),
|
|
5768
5090
|
repoUrl ? `${repoUrl}/commit/${hash}` : ""
|
|
5769
5091
|
) : "";
|
|
5770
|
-
return
|
|
5092
|
+
return import_scripts_context5.Shell.format(formatTemplate, {
|
|
5771
5093
|
...commit,
|
|
5772
5094
|
scopeHeader,
|
|
5773
5095
|
commitLink: hashLink,
|
|
@@ -5932,11 +5254,11 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
|
|
|
5932
5254
|
async transformWorkspace(workspaces, context) {
|
|
5933
5255
|
const githubRootPath = [
|
|
5934
5256
|
DOMAIN,
|
|
5935
|
-
context.
|
|
5936
|
-
context.
|
|
5257
|
+
context.getOptions("authorName"),
|
|
5258
|
+
context.getOptions("repoName")
|
|
5937
5259
|
].join("/");
|
|
5938
5260
|
const changelogProps = {
|
|
5939
|
-
...context.
|
|
5261
|
+
...context.getOptions("changelog"),
|
|
5940
5262
|
githubRootPath,
|
|
5941
5263
|
mergePRcommit: true,
|
|
5942
5264
|
shell: context.shell,
|
|
@@ -5952,7 +5274,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
|
|
|
5952
5274
|
const changelog = await githubChangelog.getFullCommit({
|
|
5953
5275
|
from: workspace.lastTag ?? "",
|
|
5954
5276
|
directory: workspace.path,
|
|
5955
|
-
|
|
5277
|
+
fields: CHANGELOG_ALL_FIELDS
|
|
5956
5278
|
});
|
|
5957
5279
|
if (typeof changelog === "string") {
|
|
5958
5280
|
return {
|
|
@@ -5974,6 +5296,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
|
|
|
5974
5296
|
};
|
|
5975
5297
|
|
|
5976
5298
|
// src/plugins/githubPR/GithubPR.ts
|
|
5299
|
+
var import_scripts_context6 = require("@qlover/scripts-context");
|
|
5977
5300
|
var DEFAULT_RELEASE_NAME = "Release ${name} v${version}";
|
|
5978
5301
|
var DEFAULT_COMMIT_MESSAGE = "chore(tag): ${name} v${version}";
|
|
5979
5302
|
var GithubPR = class extends GitBase {
|
|
@@ -5984,9 +5307,9 @@ var GithubPR = class extends GitBase {
|
|
|
5984
5307
|
});
|
|
5985
5308
|
this.context = context;
|
|
5986
5309
|
this.githubManager = new GithubManager(this.context);
|
|
5987
|
-
this.releaseParams = new ReleaseParams(context.
|
|
5988
|
-
PRTitle: this.getConfig("PRTitle", this.context.
|
|
5989
|
-
PRBody: this.getConfig("PRBody", this.context.
|
|
5310
|
+
this.releaseParams = new ReleaseParams(context.logger, {
|
|
5311
|
+
PRTitle: this.getConfig("PRTitle", this.context.options.PRTitle),
|
|
5312
|
+
PRBody: this.getConfig("PRBody", this.context.options.PRBody),
|
|
5990
5313
|
...this.props
|
|
5991
5314
|
});
|
|
5992
5315
|
}
|
|
@@ -6019,7 +5342,7 @@ var GithubPR = class extends GitBase {
|
|
|
6019
5342
|
}
|
|
6020
5343
|
await super.onBefore();
|
|
6021
5344
|
if (this.isPublish) {
|
|
6022
|
-
const npmToken = this.getEnv("NPM_TOKEN");
|
|
5345
|
+
const npmToken = this.context.getEnv("NPM_TOKEN");
|
|
6023
5346
|
if (!npmToken) {
|
|
6024
5347
|
throw new Error("NPM_TOKEN is not set");
|
|
6025
5348
|
}
|
|
@@ -6031,7 +5354,7 @@ var GithubPR = class extends GitBase {
|
|
|
6031
5354
|
async onExec() {
|
|
6032
5355
|
const workspaces = this.context.workspaces;
|
|
6033
5356
|
const githubChangelog = new GithubChangelog(
|
|
6034
|
-
this.context.
|
|
5357
|
+
this.context.getOptions("changelog"),
|
|
6035
5358
|
this.githubManager
|
|
6036
5359
|
);
|
|
6037
5360
|
const newWorkspaces = await this.step({
|
|
@@ -6106,7 +5429,7 @@ var GithubPR = class extends GitBase {
|
|
|
6106
5429
|
);
|
|
6107
5430
|
}
|
|
6108
5431
|
async commitWorkspace(workspace, commitArgs = []) {
|
|
6109
|
-
const commitMessage =
|
|
5432
|
+
const commitMessage = import_scripts_context6.Shell.format(
|
|
6110
5433
|
this.getConfig("commitMessage", DEFAULT_COMMIT_MESSAGE),
|
|
6111
5434
|
workspace
|
|
6112
5435
|
);
|
|
@@ -6125,13 +5448,14 @@ var GithubPR = class extends GitBase {
|
|
|
6125
5448
|
async createReleaseBranch(workspaces) {
|
|
6126
5449
|
const params = this.releaseParams.getReleaseBranchParams(
|
|
6127
5450
|
workspaces,
|
|
5451
|
+
// @ts-expect-error TODO: fix this
|
|
6128
5452
|
this.context.getTemplateContext()
|
|
6129
5453
|
);
|
|
6130
5454
|
const { tagName, releaseBranch } = params;
|
|
6131
5455
|
if (typeof tagName !== "string") {
|
|
6132
5456
|
throw new Error("Tag name is not a string");
|
|
6133
5457
|
}
|
|
6134
|
-
const { sourceBranch, currentBranch } = this.context.
|
|
5458
|
+
const { sourceBranch, currentBranch } = this.context.getOptions();
|
|
6135
5459
|
this.context.logger.debug("PR TagName is:", tagName);
|
|
6136
5460
|
this.context.logger.debug("PR CurrentBranch is:", currentBranch);
|
|
6137
5461
|
this.context.logger.debug("PR SourceBranch is:", sourceBranch);
|
|
@@ -6167,7 +5491,7 @@ var GithubPR = class extends GitBase {
|
|
|
6167
5491
|
const label = await this.githubManager.createReleasePRLabel();
|
|
6168
5492
|
let labels = [label.name];
|
|
6169
5493
|
if (this.getConfig("pushChangeLabels")) {
|
|
6170
|
-
const changeLabels = this.context.
|
|
5494
|
+
const changeLabels = this.context.getOptions("workspaces.changeLabels");
|
|
6171
5495
|
if (Array.isArray(changeLabels) && changeLabels.length > 0) {
|
|
6172
5496
|
labels.push(...changeLabels);
|
|
6173
5497
|
}
|
|
@@ -6255,7 +5579,8 @@ var WorkspaceCreator = class _WorkspaceCreator {
|
|
|
6255
5579
|
};
|
|
6256
5580
|
|
|
6257
5581
|
// src/plugins/workspaces/Workspaces.ts
|
|
6258
|
-
var
|
|
5582
|
+
var import_scripts_context7 = require("@qlover/scripts-context");
|
|
5583
|
+
var Workspaces = class extends import_scripts_context7.ScriptPlugin {
|
|
6259
5584
|
releaseTask = null;
|
|
6260
5585
|
workspacesList = [];
|
|
6261
5586
|
_skip = false;
|
|
@@ -6263,8 +5588,8 @@ var Workspaces = class extends Plugin {
|
|
|
6263
5588
|
constructor(context) {
|
|
6264
5589
|
super(context, "workspaces");
|
|
6265
5590
|
this.releaseLabel = new ReleaseLabel({
|
|
6266
|
-
changePackagesLabel: this.context.
|
|
6267
|
-
packagesDirectories: this.context.
|
|
5591
|
+
changePackagesLabel: this.context.options.changePackagesLabel || "change:${name}",
|
|
5592
|
+
packagesDirectories: this.context.options.packagesDirectories || [],
|
|
6268
5593
|
compare: (changedFilePath, packagePath) => (0, import_node_path2.resolve)(changedFilePath).startsWith((0, import_node_path2.resolve)(packagePath))
|
|
6269
5594
|
});
|
|
6270
5595
|
}
|
|
@@ -6282,7 +5607,7 @@ var Workspaces = class extends Plugin {
|
|
|
6282
5607
|
if (this.getConfig("skipCheckPackage") || workspaces.length === 0) {
|
|
6283
5608
|
throw new Error("No changes to publish packages");
|
|
6284
5609
|
}
|
|
6285
|
-
const
|
|
5610
|
+
const publishPath = this.context.getOptions("publishPath");
|
|
6286
5611
|
if (publishPath) {
|
|
6287
5612
|
const targetWorkspace = workspaces.find(
|
|
6288
5613
|
(workspace2) => (0, import_node_path2.resolve)(workspace2.root) === (0, import_node_path2.resolve)(publishPath)
|
|
@@ -6316,7 +5641,7 @@ var Workspaces = class extends Plugin {
|
|
|
6316
5641
|
this.releaseTask = releaseTask;
|
|
6317
5642
|
}
|
|
6318
5643
|
setCurrentWorkspace(workspace, workspaces) {
|
|
6319
|
-
this.context.
|
|
5644
|
+
this.context.setOptions({
|
|
6320
5645
|
publishPath: workspace.path
|
|
6321
5646
|
});
|
|
6322
5647
|
this.setConfig({
|
|
@@ -6348,7 +5673,7 @@ var Workspaces = class extends Plugin {
|
|
|
6348
5673
|
}
|
|
6349
5674
|
getProjectWorkspaces() {
|
|
6350
5675
|
const rootPath = this.context.rootPath;
|
|
6351
|
-
const packagesDirectories = this.context.
|
|
5676
|
+
const packagesDirectories = this.context.options.packagesDirectories;
|
|
6352
5677
|
if (Array.isArray(packagesDirectories) && packagesDirectories.length > 0) {
|
|
6353
5678
|
return packagesDirectories.map(
|
|
6354
5679
|
(path) => WorkspaceCreator.toWorkspace({ path }, rootPath)
|
|
@@ -6572,8 +5897,9 @@ async function loaderPluginsFromPluginTuples(context, pluginsTuples, maxLimit =
|
|
|
6572
5897
|
// src/plugins/Changelog.ts
|
|
6573
5898
|
var import_path2 = require("path");
|
|
6574
5899
|
var import_fs2 = require("fs");
|
|
5900
|
+
var import_scripts_context8 = require("@qlover/scripts-context");
|
|
6575
5901
|
var contentTmplate = "---\n'${name}': '${increment}'\n---\n\n${changelog}";
|
|
6576
|
-
var Changelog = class extends
|
|
5902
|
+
var Changelog = class extends import_scripts_context8.ScriptPlugin {
|
|
6577
5903
|
constructor(context, props) {
|
|
6578
5904
|
super(context, "changelog", {
|
|
6579
5905
|
increment: "patch",
|
|
@@ -6652,7 +5978,7 @@ var Changelog = class extends Plugin {
|
|
|
6652
5978
|
this.context.setWorkspaces(newWorkspaces);
|
|
6653
5979
|
}
|
|
6654
5980
|
async restoreIgnorePackages() {
|
|
6655
|
-
const { changedPaths = [], packages = [] } = this.context.
|
|
5981
|
+
const { changedPaths = [], packages = [] } = this.context.getOptions(
|
|
6656
5982
|
"workspaces"
|
|
6657
5983
|
);
|
|
6658
5984
|
const noChangedPackages = packages.filter((pkgPath) => !changedPaths.includes(pkgPath)).map(
|
|
@@ -6664,7 +5990,7 @@ var Changelog = class extends Plugin {
|
|
|
6664
5990
|
}
|
|
6665
5991
|
}
|
|
6666
5992
|
getTagPrefix(workspace) {
|
|
6667
|
-
return
|
|
5993
|
+
return import_scripts_context8.Shell.format(
|
|
6668
5994
|
this.getConfig("tagPrefix"),
|
|
6669
5995
|
workspace
|
|
6670
5996
|
);
|
|
@@ -6681,8 +6007,8 @@ var Changelog = class extends Plugin {
|
|
|
6681
6007
|
...baseConfig,
|
|
6682
6008
|
from: tagName,
|
|
6683
6009
|
directory: workspace.path,
|
|
6684
|
-
shell: this.shell,
|
|
6685
|
-
|
|
6010
|
+
shell: this.context.shell,
|
|
6011
|
+
fields: CHANGELOG_ALL_FIELDS,
|
|
6686
6012
|
logger: this.logger
|
|
6687
6013
|
};
|
|
6688
6014
|
const gitChangelog = new GitChangelog(props);
|
|
@@ -6697,7 +6023,7 @@ var Changelog = class extends Plugin {
|
|
|
6697
6023
|
generateTagName(workspace) {
|
|
6698
6024
|
try {
|
|
6699
6025
|
const tagTemplate = this.getConfig("tagTemplate");
|
|
6700
|
-
return
|
|
6026
|
+
return import_scripts_context8.Shell.format(
|
|
6701
6027
|
tagTemplate,
|
|
6702
6028
|
workspace
|
|
6703
6029
|
);
|
|
@@ -6709,7 +6035,7 @@ var Changelog = class extends Plugin {
|
|
|
6709
6035
|
async getTagName(workspace) {
|
|
6710
6036
|
try {
|
|
6711
6037
|
const currentTagPattern = this.generateTagName(workspace);
|
|
6712
|
-
const tagMatch =
|
|
6038
|
+
const tagMatch = import_scripts_context8.Shell.format(
|
|
6713
6039
|
this.getConfig("tagMatch"),
|
|
6714
6040
|
workspace
|
|
6715
6041
|
);
|
|
@@ -6733,7 +6059,7 @@ var Changelog = class extends Plugin {
|
|
|
6733
6059
|
}
|
|
6734
6060
|
}
|
|
6735
6061
|
getIncrement() {
|
|
6736
|
-
const lables = this.context.
|
|
6062
|
+
const lables = this.context.getOptions("workspaces.changeLabels");
|
|
6737
6063
|
if (Array.isArray(lables) && lables.length > 0) {
|
|
6738
6064
|
if (lables.includes("increment:major")) {
|
|
6739
6065
|
return "major";
|
|
@@ -6751,7 +6077,7 @@ var Changelog = class extends Plugin {
|
|
|
6751
6077
|
const changesetPath = (0, import_path2.join)(this.changesetRoot, `${changesetName}.md`);
|
|
6752
6078
|
const increment = this.getIncrement();
|
|
6753
6079
|
this.logger.debug("increment is:", [increment]);
|
|
6754
|
-
const fileContent =
|
|
6080
|
+
const fileContent = import_scripts_context8.Shell.format(contentTmplate, {
|
|
6755
6081
|
...workspace,
|
|
6756
6082
|
increment
|
|
6757
6083
|
});
|
|
@@ -6776,18 +6102,19 @@ var innerTuples = [
|
|
|
6776
6102
|
tuple(Changelog, {}),
|
|
6777
6103
|
tuple(GithubPR, {})
|
|
6778
6104
|
];
|
|
6105
|
+
var defaultName = "release";
|
|
6779
6106
|
var ReleaseTask = class {
|
|
6780
6107
|
constructor(options = {}, executor = new import_fe_corekit.AsyncExecutor(), defaultTuples = innerTuples) {
|
|
6781
6108
|
this.executor = executor;
|
|
6782
6109
|
this.defaultTuples = defaultTuples;
|
|
6783
|
-
this.context = new ReleaseContext(options);
|
|
6110
|
+
this.context = new ReleaseContext(defaultName, options);
|
|
6784
6111
|
}
|
|
6785
6112
|
context;
|
|
6786
6113
|
getContext() {
|
|
6787
6114
|
return this.context;
|
|
6788
6115
|
}
|
|
6789
6116
|
async usePlugins(externalTuples) {
|
|
6790
|
-
externalTuples = externalTuples || this.context.
|
|
6117
|
+
externalTuples = externalTuples || this.context.options.plugins || [];
|
|
6791
6118
|
const plugins = await loaderPluginsFromPluginTuples(this.context, [
|
|
6792
6119
|
...this.defaultTuples,
|
|
6793
6120
|
...externalTuples
|
|
@@ -6864,16 +6191,11 @@ function programArgs() {
|
|
|
6864
6191
|
splitWithComma
|
|
6865
6192
|
);
|
|
6866
6193
|
program.parse();
|
|
6867
|
-
return reduceOptions(program.opts(), "
|
|
6194
|
+
return reduceOptions(program.opts(), "global");
|
|
6868
6195
|
}
|
|
6869
6196
|
async function main() {
|
|
6870
|
-
const {
|
|
6871
|
-
|
|
6872
|
-
const options = Object.assign(
|
|
6873
|
-
allOptions,
|
|
6874
|
-
{}
|
|
6875
|
-
);
|
|
6876
|
-
await new ReleaseTask({ dryRun, verbose, options, shared }).exec();
|
|
6197
|
+
const { global: global2, ...allOptions } = programArgs();
|
|
6198
|
+
await new ReleaseTask({ ...global2, options: allOptions }).exec();
|
|
6877
6199
|
}
|
|
6878
6200
|
main().catch((e) => {
|
|
6879
6201
|
console.error(e.message);
|