UNPKG

git-semver-tagger

Version:

![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/robertfmurdock/ze-great-tools?label=Release) ![NPM Version](https://img.shields.io/npm/v/git-semver-tagger?label=npm%20git-semver-tagger)

356 lines (354 loc) 17 kB
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_com_zegreatrob_tools_tagger_core) { 'use strict'; //region block: imports var imul = Math.imul; var protoOf = kotlin_kotlin.$_$.ba; var initMetadataForCompanion = kotlin_kotlin.$_$.d9; var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1; var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l; var Unit_instance = kotlin_kotlin.$_$.v3; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k; var THROW_CCE = kotlin_kotlin.$_$.zd; var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o; var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1; var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1; var initMetadataForObject = kotlin_kotlin.$_$.h9; var VOID = kotlin_kotlin.$_$.c; var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1; var objectCreate = kotlin_kotlin.$_$.aa; var getStringHashCode = kotlin_kotlin.$_$.a9; var getBooleanHashCode = kotlin_kotlin.$_$.x8; var initMetadataForClass = kotlin_kotlin.$_$.c9; var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.j; //endregion //region block: pre-declaration initMetadataForCompanion(Companion); initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]); initMetadataForClass(TaggerConfig, 'TaggerConfig', TaggerConfig, VOID, VOID, VOID, VOID, {0: $serializer_getInstance}); //endregion function get_runtimeDefaultConfig() { _init_properties_TaggerConfig_kt__fn8iyk(); return runtimeDefaultConfig; } var runtimeDefaultConfig; function Companion() { } var Companion_instance; function Companion_getInstance() { return Companion_instance; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.json.TaggerConfig', this, 11); tmp0_serialDesc.ez('releaseBranch', true); tmp0_serialDesc.ez('implicitPatch', true); tmp0_serialDesc.ez('disableDetached', true); tmp0_serialDesc.ez('majorRegex', true); tmp0_serialDesc.ez('minorRegex', true); tmp0_serialDesc.ez('patchRegex', true); tmp0_serialDesc.ez('noneRegex', true); tmp0_serialDesc.ez('versionRegex', true); tmp0_serialDesc.ez('userName', true); tmp0_serialDesc.ez('userEmail', true); tmp0_serialDesc.ez('warningsAsErrors', true); this.u18_1 = tmp0_serialDesc; } protoOf($serializer).v18 = function (encoder, value) { var tmp0_desc = this.u18_1; var tmp1_output = encoder.vr(tmp0_desc); if (tmp1_output.rt(tmp0_desc, 0) ? true : !(value.w18_1 == null)) { tmp1_output.nt(tmp0_desc, 0, StringSerializer_getInstance(), value.w18_1); } if (tmp1_output.rt(tmp0_desc, 1) ? true : !(value.x18_1 == null)) { tmp1_output.nt(tmp0_desc, 1, BooleanSerializer_getInstance(), value.x18_1); } if (tmp1_output.rt(tmp0_desc, 2) ? true : !(value.y18_1 == null)) { tmp1_output.nt(tmp0_desc, 2, BooleanSerializer_getInstance(), value.y18_1); } if (tmp1_output.rt(tmp0_desc, 3) ? true : !(value.z18_1 == null)) { tmp1_output.nt(tmp0_desc, 3, StringSerializer_getInstance(), value.z18_1); } if (tmp1_output.rt(tmp0_desc, 4) ? true : !(value.a19_1 == null)) { tmp1_output.nt(tmp0_desc, 4, StringSerializer_getInstance(), value.a19_1); } if (tmp1_output.rt(tmp0_desc, 5) ? true : !(value.b19_1 == null)) { tmp1_output.nt(tmp0_desc, 5, StringSerializer_getInstance(), value.b19_1); } if (tmp1_output.rt(tmp0_desc, 6) ? true : !(value.c19_1 == null)) { tmp1_output.nt(tmp0_desc, 6, StringSerializer_getInstance(), value.c19_1); } if (tmp1_output.rt(tmp0_desc, 7) ? true : !(value.d19_1 == null)) { tmp1_output.nt(tmp0_desc, 7, StringSerializer_getInstance(), value.d19_1); } if (tmp1_output.rt(tmp0_desc, 8) ? true : !(value.e19_1 == null)) { tmp1_output.nt(tmp0_desc, 8, StringSerializer_getInstance(), value.e19_1); } if (tmp1_output.rt(tmp0_desc, 9) ? true : !(value.f19_1 == null)) { tmp1_output.nt(tmp0_desc, 9, StringSerializer_getInstance(), value.f19_1); } if (tmp1_output.rt(tmp0_desc, 10) ? true : !(value.g19_1 == null)) { tmp1_output.nt(tmp0_desc, 10, BooleanSerializer_getInstance(), value.g19_1); } tmp1_output.wr(tmp0_desc); }; protoOf($serializer).zo = function (encoder, value) { return this.v18(encoder, value instanceof TaggerConfig ? value : THROW_CCE()); }; protoOf($serializer).ap = function (decoder) { var tmp0_desc = this.u18_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_input = decoder.vr(tmp0_desc); if (tmp15_input.ls()) { tmp4_local0 = tmp15_input.js(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.js(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.js(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.js(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.js(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.js(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.js(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.js(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.js(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.js(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.js(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.ms(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.js(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.js(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.js(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.js(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.js(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.js(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.js(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.js(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.js(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.js(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.js(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.wr(tmp0_desc); return TaggerConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer).yo = function () { return this.u18_1; }; protoOf($serializer).gz = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance())]; }; var $serializer_instance; function $serializer_getInstance() { if ($serializer_instance == null) new $serializer(); return $serializer_instance; } function TaggerConfig_init_$Init$(seen0, releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker, $this) { if (!(0 === (0 & seen0))) { throwMissingFieldException(seen0, 0, $serializer_getInstance().u18_1); } if (0 === (seen0 & 1)) $this.w18_1 = null; else $this.w18_1 = releaseBranch; if (0 === (seen0 & 2)) $this.x18_1 = null; else $this.x18_1 = implicitPatch; if (0 === (seen0 & 4)) $this.y18_1 = null; else $this.y18_1 = disableDetached; if (0 === (seen0 & 8)) $this.z18_1 = null; else $this.z18_1 = majorRegex; if (0 === (seen0 & 16)) $this.a19_1 = null; else $this.a19_1 = minorRegex; if (0 === (seen0 & 32)) $this.b19_1 = null; else $this.b19_1 = patchRegex; if (0 === (seen0 & 64)) $this.c19_1 = null; else $this.c19_1 = noneRegex; if (0 === (seen0 & 128)) $this.d19_1 = null; else $this.d19_1 = versionRegex; if (0 === (seen0 & 256)) $this.e19_1 = null; else $this.e19_1 = userName; if (0 === (seen0 & 512)) $this.f19_1 = null; else $this.f19_1 = userEmail; if (0 === (seen0 & 1024)) $this.g19_1 = null; else $this.g19_1 = warningsAsErrors; return $this; } function TaggerConfig_init_$Create$(seen0, releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker) { return TaggerConfig_init_$Init$(seen0, releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker, objectCreate(protoOf(TaggerConfig))); } function TaggerConfig(releaseBranch, implicitPatch, disableDetached, majorRegex, minorRegex, patchRegex, noneRegex, versionRegex, userName, userEmail, warningsAsErrors) { releaseBranch = releaseBranch === VOID ? null : releaseBranch; implicitPatch = implicitPatch === VOID ? null : implicitPatch; disableDetached = disableDetached === VOID ? null : disableDetached; majorRegex = majorRegex === VOID ? null : majorRegex; minorRegex = minorRegex === VOID ? null : minorRegex; patchRegex = patchRegex === VOID ? null : patchRegex; noneRegex = noneRegex === VOID ? null : noneRegex; versionRegex = versionRegex === VOID ? null : versionRegex; userName = userName === VOID ? null : userName; userEmail = userEmail === VOID ? null : userEmail; warningsAsErrors = warningsAsErrors === VOID ? null : warningsAsErrors; this.w18_1 = releaseBranch; this.x18_1 = implicitPatch; this.y18_1 = disableDetached; this.z18_1 = majorRegex; this.a19_1 = minorRegex; this.b19_1 = patchRegex; this.c19_1 = noneRegex; this.d19_1 = versionRegex; this.e19_1 = userName; this.f19_1 = userEmail; this.g19_1 = warningsAsErrors; } protoOf(TaggerConfig).toString = function () { return 'TaggerConfig(releaseBranch=' + this.w18_1 + ', implicitPatch=' + this.x18_1 + ', disableDetached=' + this.y18_1 + ', majorRegex=' + this.z18_1 + ', minorRegex=' + this.a19_1 + ', patchRegex=' + this.b19_1 + ', noneRegex=' + this.c19_1 + ', versionRegex=' + this.d19_1 + ', userName=' + this.e19_1 + ', userEmail=' + this.f19_1 + ', warningsAsErrors=' + this.g19_1 + ')'; }; protoOf(TaggerConfig).hashCode = function () { var result = this.w18_1 == null ? 0 : getStringHashCode(this.w18_1); result = imul(result, 31) + (this.x18_1 == null ? 0 : getBooleanHashCode(this.x18_1)) | 0; result = imul(result, 31) + (this.y18_1 == null ? 0 : getBooleanHashCode(this.y18_1)) | 0; result = imul(result, 31) + (this.z18_1 == null ? 0 : getStringHashCode(this.z18_1)) | 0; result = imul(result, 31) + (this.a19_1 == null ? 0 : getStringHashCode(this.a19_1)) | 0; result = imul(result, 31) + (this.b19_1 == null ? 0 : getStringHashCode(this.b19_1)) | 0; result = imul(result, 31) + (this.c19_1 == null ? 0 : getStringHashCode(this.c19_1)) | 0; result = imul(result, 31) + (this.d19_1 == null ? 0 : getStringHashCode(this.d19_1)) | 0; result = imul(result, 31) + (this.e19_1 == null ? 0 : getStringHashCode(this.e19_1)) | 0; result = imul(result, 31) + (this.f19_1 == null ? 0 : getStringHashCode(this.f19_1)) | 0; result = imul(result, 31) + (this.g19_1 == null ? 0 : getBooleanHashCode(this.g19_1)) | 0; return result; }; protoOf(TaggerConfig).equals = function (other) { if (this === other) return true; if (!(other instanceof TaggerConfig)) return false; if (!(this.w18_1 == other.w18_1)) return false; if (!(this.x18_1 == other.x18_1)) return false; if (!(this.y18_1 == other.y18_1)) return false; if (!(this.z18_1 == other.z18_1)) return false; if (!(this.a19_1 == other.a19_1)) return false; if (!(this.b19_1 == other.b19_1)) return false; if (!(this.c19_1 == other.c19_1)) return false; if (!(this.d19_1 == other.d19_1)) return false; if (!(this.e19_1 == other.e19_1)) return false; if (!(this.f19_1 == other.f19_1)) return false; if (!(this.g19_1 == other.g19_1)) return false; return true; }; var properties_initialized_TaggerConfig_kt_islkm6; function _init_properties_TaggerConfig_kt__fn8iyk() { if (!properties_initialized_TaggerConfig_kt_islkm6) { properties_initialized_TaggerConfig_kt_islkm6 = true; runtimeDefaultConfig = new TaggerConfig(VOID, true, true, Defaults_getInstance().so_1.wb_1, Defaults_getInstance().ro_1.wb_1, Defaults_getInstance().qo_1.wb_1, Defaults_getInstance().po_1.wb_1, VOID, VOID, VOID, false); } } //region block: post-declaration protoOf($serializer).hz = typeParametersSerializers; //endregion //region block: init Companion_instance = new Companion(); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = TaggerConfig; _.$_$.b = get_runtimeDefaultConfig; //endregion return _; }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./tools-tagger-core.js'))); //# sourceMappingURL=tools-tagger-json.js.map