UNPKG

git-digger

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-digger?label=npm%20git-digger)

262 lines (260 loc) 13.4 kB
(function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) { 'use strict'; //region block: imports var imul = Math.imul; var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a; var collectionSizeOrDefault = kotlin_kotlin.$_$.z3; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k; var Unit_instance = kotlin_kotlin.$_$.d3; var KtList = kotlin_kotlin.$_$.k3; var getKClass = kotlin_kotlin.$_$.f; var arrayOf = kotlin_kotlin.$_$.vb; var createKType = kotlin_kotlin.$_$.c; var createInvariantKTypeProjection = kotlin_kotlin.$_$.b; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1; var THROW_CCE = kotlin_kotlin.$_$.jb; var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1; var isInterface = kotlin_kotlin.$_$.v7; var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j; var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j; var lazy = kotlin_kotlin.$_$.bc; var protoOf = kotlin_kotlin.$_$.f8; var initMetadataForCompanion = kotlin_kotlin.$_$.i7; var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1; var InstantSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k; var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z; var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1; var initMetadataForObject = kotlin_kotlin.$_$.m7; var VOID = kotlin_kotlin.$_$.g; var toString = kotlin_kotlin.$_$.i8; var toString_0 = kotlin_kotlin.$_$.gc; var getStringHashCode = kotlin_kotlin.$_$.f7; var hashCode = kotlin_kotlin.$_$.g7; var equals = kotlin_kotlin.$_$.b7; var initMetadataForClass = kotlin_kotlin.$_$.h7; //endregion //region block: pre-declaration initMetadataForCompanion(Companion); initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]); initMetadataForClass(ContributionJson, 'ContributionJson', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance}); //endregion function toJsonString(_this__u8e3s4) { var tmp0 = Default_getInstance(); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10)); var _iterator__ex2g4s = _this__u8e3s4.m(); while (_iterator__ex2g4s.n()) { var item = _iterator__ex2g4s.o(); var tmp$ret$0 = toJsonModel(item); destination.e(tmp$ret$0); } // Inline function 'kotlinx.serialization.json.Json.encodeToString' call // Inline function 'kotlinx.serialization.serializer' call var this_0 = tmp0.on(); // Inline function 'kotlinx.serialization.internal.cast' call var this_1 = serializer(this_0, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ContributionJson), arrayOf([]), false))]), false)); var tmp$ret$4 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(); return tmp0.cy(tmp$ret$4, destination); } function toJsonString_0(_this__u8e3s4) { var tmp0 = Default_getInstance(); // Inline function 'kotlinx.serialization.json.Json.encodeToString' call var value = toJsonModel(_this__u8e3s4); // Inline function 'kotlinx.serialization.serializer' call var this_0 = tmp0.on(); // Inline function 'kotlinx.serialization.internal.cast' call var this_1 = serializer(this_0, createKType(getKClass(ContributionJson), arrayOf([]), false)); var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(); return tmp0.cy(tmp$ret$1, value); } function ContributionJson$Companion$$childSerializers$_anonymous__js8jrm() { return new ArrayListSerializer(StringSerializer_getInstance()); } function Companion() { Companion_instance = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.v10_1 = [null, null, lazy(tmp_0, ContributionJson$Companion$$childSerializers$_anonymous__js8jrm), null, null, null, null, null, null, null, null, null]; } var Companion_instance; function Companion_getInstance() { if (Companion_instance == null) new Companion(); return Companion_instance; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.digger.json.ContributionJson', this, 12); tmp0_serialDesc.zq('lastCommit', false); tmp0_serialDesc.zq('firstCommit', false); tmp0_serialDesc.zq('authors', false); tmp0_serialDesc.zq('dateTime', true); tmp0_serialDesc.zq('firstCommitDateTime', true); tmp0_serialDesc.zq('commitCount', false); tmp0_serialDesc.zq('ease', true); tmp0_serialDesc.zq('storyId', true); tmp0_serialDesc.zq('semver', true); tmp0_serialDesc.zq('label', true); tmp0_serialDesc.zq('tagName', true); tmp0_serialDesc.zq('tagDateTime', true); this.w10_1 = tmp0_serialDesc; } protoOf($serializer).x10 = function (encoder, value) { var tmp0_desc = this.w10_1; var tmp1_output = encoder.lm(tmp0_desc); var tmp2_cached = Companion_getInstance().v10_1; tmp1_output.in(tmp0_desc, 0, value.y10_1); tmp1_output.in(tmp0_desc, 1, value.z10_1); tmp1_output.kn(tmp0_desc, 2, tmp2_cached[2].z(), value.a11_1); if (tmp1_output.rn(tmp0_desc, 3) ? true : !(value.b11_1 == null)) { tmp1_output.mn(tmp0_desc, 3, InstantSerializer_getInstance(), value.b11_1); } if (tmp1_output.rn(tmp0_desc, 4) ? true : !(value.c11_1 == null)) { tmp1_output.mn(tmp0_desc, 4, InstantSerializer_getInstance(), value.c11_1); } tmp1_output.dn(tmp0_desc, 5, value.d11_1); if (tmp1_output.rn(tmp0_desc, 6) ? true : !(value.e11_1 == null)) { tmp1_output.mn(tmp0_desc, 6, IntSerializer_getInstance(), value.e11_1); } if (tmp1_output.rn(tmp0_desc, 7) ? true : !(value.f11_1 == null)) { tmp1_output.mn(tmp0_desc, 7, StringSerializer_getInstance(), value.f11_1); } if (tmp1_output.rn(tmp0_desc, 8) ? true : !(value.g11_1 == null)) { tmp1_output.mn(tmp0_desc, 8, StringSerializer_getInstance(), value.g11_1); } if (tmp1_output.rn(tmp0_desc, 9) ? true : !(value.h11_1 == null)) { tmp1_output.mn(tmp0_desc, 9, StringSerializer_getInstance(), value.h11_1); } if (tmp1_output.rn(tmp0_desc, 10) ? true : !(value.i11_1 == null)) { tmp1_output.mn(tmp0_desc, 10, StringSerializer_getInstance(), value.i11_1); } if (tmp1_output.rn(tmp0_desc, 11) ? true : !(value.j11_1 == null)) { tmp1_output.mn(tmp0_desc, 11, InstantSerializer_getInstance(), value.j11_1); } tmp1_output.mm(tmp0_desc); }; protoOf($serializer).kk = function (encoder, value) { return this.x10(encoder, value instanceof ContributionJson ? value : THROW_CCE()); }; protoOf($serializer).jk = function () { return this.w10_1; }; protoOf($serializer).br = function () { var tmp0_cached = Companion_getInstance().v10_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2].z(), get_nullable(InstantSerializer_getInstance()), get_nullable(InstantSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(InstantSerializer_getInstance())]; }; var $serializer_instance; function $serializer_getInstance() { if ($serializer_instance == null) new $serializer(); return $serializer_instance; } function ContributionJson(lastCommit, firstCommit, authors, dateTime, firstCommitDateTime, commitCount, ease, storyId, semver, label, tagName, tagDateTime) { Companion_getInstance(); dateTime = dateTime === VOID ? null : dateTime; firstCommitDateTime = firstCommitDateTime === VOID ? null : firstCommitDateTime; ease = ease === VOID ? null : ease; storyId = storyId === VOID ? null : storyId; semver = semver === VOID ? null : semver; label = label === VOID ? null : label; tagName = tagName === VOID ? null : tagName; tagDateTime = tagDateTime === VOID ? null : tagDateTime; this.y10_1 = lastCommit; this.z10_1 = firstCommit; this.a11_1 = authors; this.b11_1 = dateTime; this.c11_1 = firstCommitDateTime; this.d11_1 = commitCount; this.e11_1 = ease; this.f11_1 = storyId; this.g11_1 = semver; this.h11_1 = label; this.i11_1 = tagName; this.j11_1 = tagDateTime; } protoOf(ContributionJson).toString = function () { return 'ContributionJson(lastCommit=' + this.y10_1 + ', firstCommit=' + this.z10_1 + ', authors=' + toString(this.a11_1) + ', dateTime=' + toString_0(this.b11_1) + ', firstCommitDateTime=' + toString_0(this.c11_1) + ', commitCount=' + this.d11_1 + ', ease=' + this.e11_1 + ', storyId=' + this.f11_1 + ', semver=' + this.g11_1 + ', label=' + this.h11_1 + ', tagName=' + this.i11_1 + ', tagDateTime=' + toString_0(this.j11_1) + ')'; }; protoOf(ContributionJson).hashCode = function () { var result = getStringHashCode(this.y10_1); result = imul(result, 31) + getStringHashCode(this.z10_1) | 0; result = imul(result, 31) + hashCode(this.a11_1) | 0; result = imul(result, 31) + (this.b11_1 == null ? 0 : this.b11_1.hashCode()) | 0; result = imul(result, 31) + (this.c11_1 == null ? 0 : this.c11_1.hashCode()) | 0; result = imul(result, 31) + this.d11_1 | 0; result = imul(result, 31) + (this.e11_1 == null ? 0 : this.e11_1) | 0; result = imul(result, 31) + (this.f11_1 == null ? 0 : getStringHashCode(this.f11_1)) | 0; result = imul(result, 31) + (this.g11_1 == null ? 0 : getStringHashCode(this.g11_1)) | 0; result = imul(result, 31) + (this.h11_1 == null ? 0 : getStringHashCode(this.h11_1)) | 0; result = imul(result, 31) + (this.i11_1 == null ? 0 : getStringHashCode(this.i11_1)) | 0; result = imul(result, 31) + (this.j11_1 == null ? 0 : this.j11_1.hashCode()) | 0; return result; }; protoOf(ContributionJson).equals = function (other) { if (this === other) return true; if (!(other instanceof ContributionJson)) return false; var tmp0_other_with_cast = other instanceof ContributionJson ? other : THROW_CCE(); if (!(this.y10_1 === tmp0_other_with_cast.y10_1)) return false; if (!(this.z10_1 === tmp0_other_with_cast.z10_1)) return false; if (!equals(this.a11_1, tmp0_other_with_cast.a11_1)) return false; if (!equals(this.b11_1, tmp0_other_with_cast.b11_1)) return false; if (!equals(this.c11_1, tmp0_other_with_cast.c11_1)) return false; if (!(this.d11_1 === tmp0_other_with_cast.d11_1)) return false; if (!(this.e11_1 == tmp0_other_with_cast.e11_1)) return false; if (!(this.f11_1 == tmp0_other_with_cast.f11_1)) return false; if (!(this.g11_1 == tmp0_other_with_cast.g11_1)) return false; if (!(this.h11_1 == tmp0_other_with_cast.h11_1)) return false; if (!(this.i11_1 == tmp0_other_with_cast.i11_1)) return false; if (!equals(this.j11_1, tmp0_other_with_cast.j11_1)) return false; return true; }; function toJsonModel(_this__u8e3s4) { var tmp0_lastCommit = _this__u8e3s4.rv_1; var tmp1_firstCommit = _this__u8e3s4.sv_1; var tmp2_authors = _this__u8e3s4.tv_1; var tmp3_dateTime = _this__u8e3s4.vv_1; var tmp4_firstCommitDateTime = _this__u8e3s4.wv_1; var tmp5_ease = _this__u8e3s4.xv_1; var tmp6_storyId = _this__u8e3s4.yv_1; var tmp7_semver = _this__u8e3s4.zv_1; var tmp8_label = _this__u8e3s4.aw_1; var tmp9_tagName = _this__u8e3s4.bw_1; var tmp10_tagDateTime = _this__u8e3s4.cw_1; var tmp11_commitCount = _this__u8e3s4.uv_1; return new ContributionJson(tmp0_lastCommit, tmp1_firstCommit, tmp2_authors, tmp3_dateTime, tmp4_firstCommitDateTime, tmp11_commitCount, tmp5_ease, tmp6_storyId, tmp7_semver, tmp8_label, tmp9_tagName, tmp10_tagDateTime); } //region block: post-declaration protoOf($serializer).cr = typeParametersSerializers; //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = toJsonString_0; _.$_$.b = toJsonString; //endregion return _; }(module.exports, require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'))); //# sourceMappingURL=tools-digger-json.js.map