UNPKG

@shopify/create-app

Version:

A CLI tool to create a new Shopify app.

77 lines (73 loc) 2.68 kB
import { __commonJS, init_cjs_shims } from "./chunk-PKR7KJ6P.js"; // ../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js var require_indent_string = __commonJS({ "../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module) { "use strict"; init_cjs_shims(); module.exports = (string, count = 1, options) => { if (options = { indent: " ", includeEmptyLines: !1, ...options }, typeof string != "string") throw new TypeError( `Expected \`input\` to be a \`string\`, got \`${typeof string}\`` ); if (typeof count != "number") throw new TypeError( `Expected \`count\` to be a \`number\`, got \`${typeof count}\`` ); if (typeof options.indent != "string") throw new TypeError( `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\`` ); if (count === 0) return string; let regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm; return string.replace(regex, options.indent.repeat(count)); }; } }); // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js var require_balanced_match = __commonJS({ "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) { "use strict"; init_cjs_shims(); module.exports = balanced; function balanced(a, b, str) { a instanceof RegExp && (a = maybeMatch(a, str)), b instanceof RegExp && (b = maybeMatch(b, str)); var r = range(a, b, str); return r && { start: r[0], end: r[1], pre: str.slice(0, r[0]), body: str.slice(r[0] + a.length, r[1]), post: str.slice(r[1] + b.length) }; } function maybeMatch(reg, str) { var m = str.match(reg); return m ? m[0] : null; } balanced.range = range; function range(a, b, str) { var begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai; if (ai >= 0 && bi > 0) { if (a === b) return [ai, bi]; for (begs = [], left = str.length; i >= 0 && !result; ) i == ai ? (begs.push(i), ai = str.indexOf(a, i + 1)) : begs.length == 1 ? result = [begs.pop(), bi] : (beg = begs.pop(), beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1)), i = ai < bi && ai >= 0 ? ai : bi; begs.length && (result = [left, right]); } return result; } } }); export { require_balanced_match, require_indent_string }; //# sourceMappingURL=chunk-LABBARNJ.js.map