{"version":3,"sources":["jsdelivr-header.js","/npm/semantic-release-git-branches@1.2.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,UAAC,UAAS,UAAE,WAAa,QAAQ,UACjC,UAAY,QAAQ,gBACpB,WAAa,QAAQ,iBAE3B,IAAI,SAEJ,eAAe,iBAAiB,EAAc,GAC7C,MAAM,QAAC,GAAW,EAElB,GAAI,EAAQ,QAAS,CACpB,MAAM,EACL,UAAU,EAAQ,SAAS,MAAK,GAAU,EAAO,MAAwB,kCAAhB,EAAO,QAA6C,CAAC,EAE/G,CAAC,UAAW,SAAU,aAAc,aAAc,gBAAgB,SAAQ,IACzE,EAAa,GAAa,UAAU,EAAa,GAAY,EAAc,GAAW,GAExF,OACM,UAAU,EAAc,GAC9B,UAAW,CACZ,CAEA,eAAe,QAAQ,EAAc,GAC/B,iBACE,UAAU,EAAc,GAC9B,UAAW,SAEN,WAAW,EAAc,EAChC,CAEA,OAAO,QAAU,CAAC,kCAAkB","file":"/npm/semantic-release-git-branches@1.2.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/semantic-release-git-branches@1.2.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const {defaultTo, castArray} = require('lodash');\nconst verifyGit = require('./lib/verify');\nconst prepareGit = require('./lib/prepare');\n\nlet verified;\n\nasync function verifyConditions(pluginConfig, context) {\n\tconst {options} = context;\n\t// If the Git prepare plugin is used and has `assets` or `message` configured, validate them now in order to prevent any release if the configuration is wrong\n\tif (options.prepare) {\n\t\tconst preparePlugin =\n\t\t\tcastArray(options.prepare).find(config => config.path && config.path === 'semantic-release-git-branches') || {};\n\n\t\t['message', 'assets', 'branchName', 'branchPush', 'branchMerges'].forEach(configKey => {\n\t\t\tpluginConfig[configKey] = defaultTo(pluginConfig[configKey], preparePlugin[configKey]);\n\t\t});\n\t}\n\tawait verifyGit(pluginConfig, context);\n\tverified = true;\n}\n\nasync function prepare(pluginConfig, context) {\n\tif (!verified) {\n\t\tawait verifyGit(pluginConfig, context);\n\t\tverified = true;\n\t}\n\tawait prepareGit(pluginConfig, context);\n}\n\nmodule.exports = {verifyConditions, prepare};\n"]}