diff --git a/node_modules/@babel/runtime/LICENSE b/node_modules/@babel/runtime/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/node_modules/@babel/runtime/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/runtime/README.md b/node_modules/@babel/runtime/README.md deleted file mode 100644 index 2f3368ef..00000000 --- a/node_modules/@babel/runtime/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/runtime - -> babel's modular runtime helpers - -See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/runtime -``` - -or using yarn: - -```sh -yarn add @babel/runtime -``` diff --git a/node_modules/@babel/runtime/helpers/AsyncGenerator.js b/node_modules/@babel/runtime/helpers/AsyncGenerator.js deleted file mode 100644 index 9dca1ed0..00000000 --- a/node_modules/@babel/runtime/helpers/AsyncGenerator.js +++ /dev/null @@ -1,64 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function AsyncGenerator(e) { - var r, t; - function resume(r, t) { - try { - var n = e[r](t), - o = n.value, - u = o instanceof OverloadYield; - Promise.resolve(u ? o.v : o).then(function (t) { - if (u) { - var i = "return" === r ? "return" : "next"; - if (!o.k || t.done) return resume(i, t); - t = e[i](t).value; - } - settle(n.done ? "return" : "normal", t); - }, function (e) { - resume("throw", e); - }); - } catch (e) { - settle("throw", e); - } - } - function settle(e, n) { - switch (e) { - case "return": - r.resolve({ - value: n, - done: !0 - }); - break; - case "throw": - r.reject(n); - break; - default: - r.resolve({ - value: n, - done: !1 - }); - } - (r = r.next) ? resume(r.key, r.arg) : t = null; - } - this._invoke = function (e, n) { - return new Promise(function (o, u) { - var i = { - key: e, - arg: n, - resolve: o, - reject: u, - next: null - }; - t ? t = t.next = i : (r = t = i, resume(e, n)); - }); - }, "function" != typeof e["return"] && (this["return"] = void 0); -} -AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { - return this; -}, AsyncGenerator.prototype.next = function (e) { - return this._invoke("next", e); -}, AsyncGenerator.prototype["throw"] = function (e) { - return this._invoke("throw", e); -}, AsyncGenerator.prototype["return"] = function (e) { - return this._invoke("return", e); -}; -module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/AwaitValue.js b/node_modules/@babel/runtime/helpers/AwaitValue.js deleted file mode 100644 index 7681c2df..00000000 --- a/node_modules/@babel/runtime/helpers/AwaitValue.js +++ /dev/null @@ -1,4 +0,0 @@ -function _AwaitValue(value) { - this.wrapped = value; -} -module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/OverloadYield.js b/node_modules/@babel/runtime/helpers/OverloadYield.js deleted file mode 100644 index c0dce510..00000000 --- a/node_modules/@babel/runtime/helpers/OverloadYield.js +++ /dev/null @@ -1,4 +0,0 @@ -function _OverloadYield(t, e) { - this.v = t, this.k = e; -} -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js deleted file mode 100644 index 98810d61..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +++ /dev/null @@ -1,24 +0,0 @@ -function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { - var desc = {}; - Object.keys(descriptor).forEach(function (key) { - desc[key] = descriptor[key]; - }); - desc.enumerable = !!desc.enumerable; - desc.configurable = !!desc.configurable; - if ('value' in desc || desc.initializer) { - desc.writable = true; - } - desc = decorators.slice().reverse().reduce(function (desc, decorator) { - return decorator(target, property, desc) || desc; - }, desc); - if (context && desc.initializer !== void 0) { - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; - desc.initializer = undefined; - } - if (desc.initializer === void 0) { - Object.defineProperty(target, property, desc); - desc = null; - } - return desc; -} -module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs.js b/node_modules/@babel/runtime/helpers/applyDecs.js deleted file mode 100644 index 3770c5ae..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecs.js +++ /dev/null @@ -1,236 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function old_createMetadataMethodsForProperty(e, t, a, r) { - return { - getMetadata: function getMetadata(o) { - old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); - var i = e[o]; - if (void 0 !== i) if (1 === t) { - var n = i["public"]; - if (void 0 !== n) return n[a]; - } else if (2 === t) { - var l = i["private"]; - if (void 0 !== l) return l.get(a); - } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; - }, - setMetadata: function setMetadata(o, i) { - old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); - var n = e[o]; - if (void 0 === n && (n = e[o] = {}), 1 === t) { - var l = n["public"]; - void 0 === l && (l = n["public"] = {}), l[a] = i; - } else if (2 === t) { - var s = n.priv; - void 0 === s && (s = n["private"] = new Map()), s.set(a, i); - } else n.constructor = i; - } - }; -} -function old_convertMetadataMapToFinal(e, t) { - var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], - r = Object.getOwnPropertySymbols(t); - if (0 !== r.length) { - for (var o = 0; o < r.length; o++) { - var i = r[o], - n = t[i], - l = a ? a[i] : null, - s = n["public"], - c = l ? l["public"] : null; - s && c && Object.setPrototypeOf(s, c); - var d = n["private"]; - if (d) { - var u = Array.from(d.values()), - f = l ? l["private"] : null; - f && (u = u.concat(f)), n["private"] = u; - } - l && Object.setPrototypeOf(n, l); - } - a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; - } -} -function old_createAddInitializerMethod(e, t) { - return function (a) { - old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); - }; -} -function old_memberDec(e, t, a, r, o, i, n, l, s) { - var c; - switch (i) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var d, - u, - f = { - kind: c, - name: l ? "#" + t : toPropertyKey(t), - isStatic: n, - isPrivate: l - }, - p = { - v: !1 - }; - if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { - d = 2, u = Symbol(t); - var v = {}; - 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { - return a.value; - } : (1 !== i && 3 !== i || (v.get = function () { - return a.get.call(this); - }), 1 !== i && 4 !== i || (v.set = function (e) { - a.set.call(this, e); - })), f.access = v; - } else d = 1, u = t; - try { - return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); - } finally { - p.v = !0; - } -} -function old_assertNotFinished(e, t) { - if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); -} -function old_assertMetadataKey(e) { - if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); -} -function old_assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); -} -function old_assertValidReturnValue(e, t) { - var a = _typeof(t); - if (1 === e) { - if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); - } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); -} -function old_getInit(e) { - var t; - return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; -} -function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { - var c, - d, - u, - f, - p, - v, - y, - h = a[0]; - if (n ? (0 === o || 1 === o ? (c = { - get: a[3], - set: a[4] - }, u = "get") : 3 === o ? (c = { - get: a[3] - }, u = "get") : 4 === o ? (c = { - set: a[3] - }, u = "set") : c = { - value: a[3] - }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { - get: c.get, - set: c.set - } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { - var b; - void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); - } - if (0 === o || 1 === o) { - if (void 0 === d) d = function d(e, t) { - return t; - };else if ("function" != typeof d) { - var g = d; - d = function d(e, t) { - for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); - return a; - }; - } else { - var _ = d; - d = function d(e, t) { - return _.call(e, t); - }; - } - e.push(d); - } - 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === o ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, r, c)); -} -function old_applyMemberDecs(e, t, a, r, o) { - for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { - var d = o[c]; - if (Array.isArray(d)) { - var u, - f, - p, - v = d[1], - y = d[2], - h = d.length > 3, - m = v >= 5; - if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { - var b = m ? s : l, - g = b.get(y) || 0; - if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); - !g && v > 2 ? b.set(y, v) : b.set(y, !0); - } - old_applyMemberDec(e, u, d, y, v, m, h, f, p); - } - } - old_pushInitializers(e, i), old_pushInitializers(e, n); -} -function old_pushInitializers(e, t) { - t && e.push(function (e) { - for (var a = 0; a < t.length; a++) t[a].call(e); - return e; - }); -} -function old_applyClassDecs(e, t, a, r) { - if (r.length > 0) { - for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { - var s = { - v: !1 - }; - try { - var c = Object.assign({ - kind: "class", - name: n, - addInitializer: old_createAddInitializerMethod(o, s) - }, old_createMetadataMethodsForProperty(a, 0, n, s)), - d = r[l](i, c); - } finally { - s.v = !0; - } - void 0 !== d && (old_assertValidReturnValue(10, d), i = d); - } - e.push(i, function () { - for (var e = 0; e < o.length; e++) o[e].call(i); - }); - } -} -function applyDecs(e, t, a) { - var r = [], - o = {}, - i = {}; - return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; -} -module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2203.js b/node_modules/@babel/runtime/helpers/applyDecs2203.js deleted file mode 100644 index d3da3338..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecs2203.js +++ /dev/null @@ -1,184 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function applyDecs2203Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, a, n, i, s, o) { - var c; - switch (n) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: s ? "#" + t : t, - "static": i, - "private": s - }, - p = { - v: !1 - }; - 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === n ? l = function l() { - return r.value; - } : (1 !== n && 3 !== n || (l = function l() { - return r.get.call(this); - }), 1 !== n && 4 !== n || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(o, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, a, n, i, s, o) { - var c, - l, - u, - f, - p, - d, - h = r[0]; - if (s ? c = 0 === n || 1 === n ? { - get: r[3], - set: r[4] - } : 3 === n ? { - get: r[3] - } : 4 === n ? { - set: r[3] - } : { - value: r[3] - } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { - get: c.get, - set: c.set - } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { - var g; - void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); - } - if (0 === n || 1 === n) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var y = l; - l = function l(e, t) { - for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); - return r; - }; - } else { - var m = l; - l = function l(e, t) { - return m.call(e, t); - }; - } - e.push(l); - } - 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { - return u.get.call(e, t); - }), e.push(function (e, t) { - return u.set.call(e, t); - })) : 2 === n ? e.push(u) : e.push(function (e, t) { - return u.call(e, t); - }) : Object.defineProperty(t, a, c)); - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - var a = []; - return function (e, t, r) { - for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { - var c = r[o]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { - var v = h ? s : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(e, l, c, p, f, h, d, u); - } - } - pushInitializers(e, a), pushInitializers(e, n); - }(a, e, t), function (e, t, r) { - if (r.length > 0) { - for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { - var o = { - v: !1 - }; - try { - var c = r[s](n, { - kind: "class", - name: i, - addInitializer: createAddInitializerMethod(a, o) - }); - } finally { - o.v = !0; - } - void 0 !== c && (assertValidReturnValue(10, c), n = c); - } - e.push(n, function () { - for (var e = 0; e < a.length; e++) a[e].call(n); - }); - } - }(a, e, r), a; - }; -} -var applyDecs2203Impl; -function applyDecs2203(e, t, r) { - return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); -} -module.exports = applyDecs2203, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2203R.js b/node_modules/@babel/runtime/helpers/applyDecs2203R.js deleted file mode 100644 index 725419b5..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecs2203R.js +++ /dev/null @@ -1,191 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2203RFactory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, n, a, i, o, s) { - var c; - switch (a) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: o ? "#" + t : toPropertyKey(t), - "static": i, - "private": o - }, - p = { - v: !1 - }; - 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === a ? l = function l() { - return r.value; - } : (1 !== a && 3 !== a || (l = function l() { - return r.get.call(this); - }), 1 !== a && 4 !== a || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(s, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, n, a, i, o, s) { - var c, - l, - u, - f, - p, - d, - h, - v = r[0]; - if (o ? (0 === a || 1 === a ? (c = { - get: r[3], - set: r[4] - }, u = "get") : 3 === a ? (c = { - get: r[3] - }, u = "get") : 4 === a ? (c = { - set: r[3] - }, u = "set") : c = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { - get: c.get, - set: c.set - } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { - var y; - void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var m = l; - l = function l(e, t) { - for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); - return r; - }; - } else { - var b = l; - l = function l(e, t) { - return b.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === a ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, n, c)); - } - function applyMemberDecs(e, t) { - for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { - var c = t[s]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { - var v = h ? o : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(a, l, c, p, f, h, d, u); - } - } - return pushInitializers(a, r), pushInitializers(a, n), a; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - return { - e: applyMemberDecs(e, t), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var o = { - v: !1 - }; - try { - var s = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, o) - }); - } finally { - o.v = !0; - } - void 0 !== s && (assertValidReturnValue(10, s), n = s); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -function applyDecs2203R(e, t, r) { - return (module.exports = applyDecs2203R = applyDecs2203RFactory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r); -} -module.exports = applyDecs2203R, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2301.js b/node_modules/@babel/runtime/helpers/applyDecs2301.js deleted file mode 100644 index fc2c1307..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecs2301.js +++ /dev/null @@ -1,222 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2301Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function assertInstanceIfPrivate(e, t) { - if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); - } - function memberDec(e, t, r, n, a, i, s, o, c) { - var u; - switch (a) { - case 1: - u = "accessor"; - break; - case 2: - u = "method"; - break; - case 3: - u = "getter"; - break; - case 4: - u = "setter"; - break; - default: - u = "field"; - } - var l, - f, - p = { - kind: u, - name: s ? "#" + t : toPropertyKey(t), - "static": i, - "private": s - }, - d = { - v: !1 - }; - if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { - if (2 === a) l = function l(e) { - return assertInstanceIfPrivate(c, e), r.value; - };else { - var h = 0 === a || 1 === a; - (h || 3 === a) && (l = s ? function (e) { - return assertInstanceIfPrivate(c, e), r.get.call(e); - } : function (e) { - return r.get.call(e); - }), (h || 4 === a) && (f = s ? function (e, t) { - assertInstanceIfPrivate(c, e), r.set.call(e, t); - } : function (e, t) { - r.set.call(e, t); - }); - } - } else l = function l(e) { - return e[t]; - }, 0 === a && (f = function f(e, r) { - e[t] = r; - }); - var v = s ? c.bind() : function (e) { - return t in e; - }; - p.access = l && f ? { - get: l, - set: f, - has: v - } : l ? { - get: l, - has: v - } : { - set: f, - has: v - }; - try { - return e(o, p); - } finally { - d.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function curryThis2(e) { - return function (t) { - e(this, t); - }; - } - function applyMemberDec(e, t, r, n, a, i, s, o, c) { - var u, - l, - f, - p, - d, - h, - v, - y, - g = r[0]; - if (s ? (0 === a || 1 === a ? (u = { - get: (d = r[3], function () { - return d(this); - }), - set: curryThis2(r[4]) - }, f = "get") : 3 === a ? (u = { - get: r[3] - }, f = "get") : 4 === a ? (u = { - set: r[3] - }, f = "set") : u = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { - get: u.get, - set: u.set - } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { - var b; - void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var I = l; - l = function l(e, t) { - for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); - return r; - }; - } else { - var w = l; - l = function l(e, t) { - return w.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { - return p.get.call(e, t); - }), e.push(function (e, t) { - return p.set.call(e, t); - })) : 2 === a ? e.push(p) : e.push(function (e, t) { - return p.call(e, t); - }) : Object.defineProperty(t, n, u)); - } - function applyMemberDecs(e, t, r) { - for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { - var l = t[u]; - if (Array.isArray(l)) { - var f, - p, - d = l[1], - h = l[2], - v = l.length > 3, - y = d >= 5, - g = r; - if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { - return checkInRHS(t) === e; - }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { - var m = y ? c : o, - b = m.get(h) || 0; - if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - !b && d > 2 ? m.set(h, d) : m.set(h, !0); - } - applyMemberDec(s, f, l, h, d, y, v, p, g); - } - } - return pushInitializers(s, n), pushInitializers(s, a), s; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r, n) { - return { - e: applyMemberDecs(e, t, n), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var s = { - v: !1 - }; - try { - var o = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, s) - }); - } finally { - s.v = !0; - } - void 0 !== o && (assertValidReturnValue(10, o), n = o); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -function applyDecs2301(e, t, r, n) { - return (module.exports = applyDecs2301 = applyDecs2301Factory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r, n); -} -module.exports = applyDecs2301, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2305.js b/node_modules/@babel/runtime/helpers/applyDecs2305.js deleted file mode 100644 index 744c3521..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecs2305.js +++ /dev/null @@ -1,133 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2305(e, t, r, n, o, a) { - function i(e, t, r) { - return function (n, o) { - return r && r(n), e[t].call(n, o); - }; - } - function c(e, t) { - for (var r = 0; r < e.length; r++) e[r].call(t); - return t; - } - function s(e, t, r, n) { - if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); - return e; - } - function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { - function m(e) { - if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var y, - v = t[0], - g = t[3], - b = !u; - if (!b) { - r || Array.isArray(v) || (v = [v]); - var w = {}, - S = [], - A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; - f ? (p || d ? w = { - get: setFunctionName(function () { - return g(this); - }, n, "get"), - set: function set(e) { - t[4](this, e); - } - } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); - } - for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { - var D = v[j], - E = r ? v[j - 1] : void 0, - I = {}, - O = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: n, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - s(t, "An initializer", "be", !0), c.push(t); - }.bind(null, I) - }; - try { - if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { - var k, F; - O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { - return m(e), w.value; - } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { - return e[n]; - }, (o < 2 || 4 === o) && (F = function F(e, t) { - e[n] = t; - })); - var N = O.access = { - has: f ? h.bind() : function (e) { - return n in e; - } - }; - if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { - get: w.get, - set: w.set - } : w[A], O), d) { - if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); - } - } finally { - I.v = !0; - } - } - return (p || d) && u.push(function (e, t) { - for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); - return t; - }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; - } - function u(e, t) { - return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { - configurable: !0, - enumerable: !0, - value: t - }); - } - if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; - var f = Object.create(null == l ? null : l), - p = function (e, t, r, n) { - var o, - a, - i = [], - s = function s(t) { - return checkInRHS(t) === e; - }, - u = new Map(); - function l(e) { - e && i.push(c.bind(null, e)); - } - for (var f = 0; f < t.length; f++) { - var p = t[f]; - if (Array.isArray(p)) { - var d = p[1], - h = p[2], - m = p.length > 3, - y = 16 & d, - v = !!(8 & d), - g = 0 == (d &= 7), - b = h + "/" + v; - if (!g && !m) { - var w = u.get(b); - if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - u.set(b, !(d > 2) || d); - } - applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); - } - } - return l(o), l(a), i; - }(e, t, o, f); - return r.length || u(e, f), { - e: p, - get c() { - var t = []; - return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; - } - }; -} -module.exports = applyDecs2305, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2311.js b/node_modules/@babel/runtime/helpers/applyDecs2311.js deleted file mode 100644 index a6055430..00000000 --- a/node_modules/@babel/runtime/helpers/applyDecs2311.js +++ /dev/null @@ -1,124 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2311(e, t, n, r, o, i) { - var a, - c, - u, - s, - f, - l, - p, - d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), - m = Object.defineProperty, - h = Object.create, - y = [h(null), h(null)], - v = t.length; - function g(t, n, r) { - return function (o, i) { - n && (i = o, o = e); - for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); - return r ? i : o; - }; - } - function b(e, t, n, r) { - if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); - return e; - } - function applyDec(e, t, n, r, o, i, u, s, f, l, p) { - function d(e) { - if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var h = [].concat(t[0]), - v = t[3], - w = !u, - D = 1 === o, - S = 3 === o, - j = 4 === o, - E = 2 === o; - function I(t, n, r) { - return function (o, i) { - return n && (i = o, o = e), r && r(o), P[t].call(o, i); - }; - } - if (!w) { - var P = {}, - k = [], - F = S ? "get" : j || D ? "set" : "value"; - if (f ? (l || D ? P = { - get: setFunctionName(function () { - return v(this); - }, r, "get"), - set: function set(e) { - t[4](this, e); - } - } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { - if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); - y[+s][r] = o < 3 ? 1 : o; - } - } - for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { - var z = b(h[O], "A decorator", "be", !0), - A = n ? h[O - 1] : void 0, - H = {}, - K = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: r, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - b(t, "An initializer", "be", !0), i.push(t); - }.bind(null, H) - }; - if (w) c = z.call(A, N, K), H.v = 1, b(c, "class decorators", "return") && (N = c);else if (K["static"] = s, K["private"] = f, c = K.access = { - has: f ? p.bind() : function (e) { - return r in e; - } - }, j || (c.get = f ? E ? function (e) { - return d(e), P.value; - } : I("get", 0, d) : function (e) { - return e[r]; - }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { - e[r] = t; - }), N = z.call(A, D ? { - get: P.get, - set: P.set - } : P[F], K), H.v = 1, D) { - if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); - } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); - } - return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; - } - function w(e) { - return m(e, d, { - configurable: !0, - enumerable: !0, - value: a - }); - } - return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { - e && f.push(g(e)); - }, p = function p(t, r) { - for (var i = 0; i < n.length; i++) { - var a = n[i], - c = a[1], - l = 7 & c; - if ((8 & c) == t && !l == r) { - var p = a[2], - d = !!a[3], - m = 16 & c; - applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { - return checkInRHS(t) === e; - } : o); - } - } - }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { - e: c, - get c() { - var n = []; - return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; - } - }; -} -module.exports = applyDecs2311, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayLikeToArray.js b/node_modules/@babel/runtime/helpers/arrayLikeToArray.js deleted file mode 100644 index 36865401..00000000 --- a/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +++ /dev/null @@ -1,6 +0,0 @@ -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/arrayWithHoles.js deleted file mode 100644 index ad0cc6b9..00000000 --- a/node_modules/@babel/runtime/helpers/arrayWithHoles.js +++ /dev/null @@ -1,4 +0,0 @@ -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js deleted file mode 100644 index 6d4b76de..00000000 --- a/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +++ /dev/null @@ -1,5 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); -} -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/assertClassBrand.js b/node_modules/@babel/runtime/helpers/assertClassBrand.js deleted file mode 100644 index e63ed8f4..00000000 --- a/node_modules/@babel/runtime/helpers/assertClassBrand.js +++ /dev/null @@ -1,5 +0,0 @@ -function _assertClassBrand(e, t, n) { - if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; - throw new TypeError("Private element is not present on this object"); -} -module.exports = _assertClassBrand, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/assertThisInitialized.js deleted file mode 100644 index 71487e57..00000000 --- a/node_modules/@babel/runtime/helpers/assertThisInitialized.js +++ /dev/null @@ -1,7 +0,0 @@ -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js deleted file mode 100644 index 023568e0..00000000 --- a/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +++ /dev/null @@ -1,24 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _asyncGeneratorDelegate(t) { - var e = {}, - n = !1; - function pump(e, r) { - return n = !0, r = new Promise(function (n) { - n(t[e](r)); - }), { - done: !1, - value: new OverloadYield(r, 1) - }; - } - return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { - return this; - }, e.next = function (t) { - return n ? (n = !1, t) : pump("next", t); - }, "function" == typeof t["throw"] && (e["throw"] = function (t) { - if (n) throw n = !1, t; - return pump("throw", t); - }), "function" == typeof t["return"] && (e["return"] = function (t) { - return n ? (n = !1, t) : pump("return", t); - }), e; -} -module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncIterator.js b/node_modules/@babel/runtime/helpers/asyncIterator.js deleted file mode 100644 index 9c0c95cf..00000000 --- a/node_modules/@babel/runtime/helpers/asyncIterator.js +++ /dev/null @@ -1,45 +0,0 @@ -function _asyncIterator(r) { - var n, - t, - o, - e = 2; - for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { - if (t && null != (n = r[t])) return n.call(r); - if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); - t = "@@asyncIterator", o = "@@iterator"; - } - throw new TypeError("Object is not async iterable"); -} -function AsyncFromSyncIterator(r) { - function AsyncFromSyncIteratorContinuation(r) { - if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); - var n = r.done; - return Promise.resolve(r.value).then(function (r) { - return { - value: r, - done: n - }; - }); - } - return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { - this.s = r, this.n = r.next; - }, AsyncFromSyncIterator.prototype = { - s: null, - n: null, - next: function next() { - return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); - }, - "return": function _return(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.resolve({ - value: r, - done: !0 - }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - }, - "throw": function _throw(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - } - }, new AsyncFromSyncIterator(r); -} -module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/asyncToGenerator.js deleted file mode 100644 index 6b9697af..00000000 --- a/node_modules/@babel/runtime/helpers/asyncToGenerator.js +++ /dev/null @@ -1,31 +0,0 @@ -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(undefined); - }); - }; -} -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js deleted file mode 100644 index 2d6fab91..00000000 --- a/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +++ /dev/null @@ -1,5 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _awaitAsyncGenerator(e) { - return new OverloadYield(e, 0); -} -module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/callSuper.js b/node_modules/@babel/runtime/helpers/callSuper.js deleted file mode 100644 index 38eaf7f8..00000000 --- a/node_modules/@babel/runtime/helpers/callSuper.js +++ /dev/null @@ -1,7 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -var possibleConstructorReturn = require("./possibleConstructorReturn.js"); -function _callSuper(t, o, e) { - return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); -} -module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/checkInRHS.js b/node_modules/@babel/runtime/helpers/checkInRHS.js deleted file mode 100644 index 4eea13d9..00000000 --- a/node_modules/@babel/runtime/helpers/checkInRHS.js +++ /dev/null @@ -1,6 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _checkInRHS(e) { - if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); - return e; -} -module.exports = _checkInRHS, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js b/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js deleted file mode 100644 index 1bbfd346..00000000 --- a/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +++ /dev/null @@ -1,6 +0,0 @@ -function _checkPrivateRedeclaration(obj, privateCollection) { - if (privateCollection.has(obj)) { - throw new TypeError("Cannot initialize the same private elements twice on an object"); - } -} -module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js deleted file mode 100644 index 3ebfed87..00000000 --- a/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +++ /dev/null @@ -1,18 +0,0 @@ -function _classApplyDescriptorDestructureSet(receiver, descriptor) { - if (descriptor.set) { - if (!("__destrObj" in descriptor)) { - descriptor.__destrObj = { - set value(v) { - descriptor.set.call(receiver, v); - } - }; - } - return descriptor.__destrObj; - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - return descriptor; - } -} -module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js deleted file mode 100644 index af3555da..00000000 --- a/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classApplyDescriptorGet(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; -} -module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js deleted file mode 100644 index 71bbf1df..00000000 --- a/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +++ /dev/null @@ -1,11 +0,0 @@ -function _classApplyDescriptorSet(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - descriptor.value = value; - } -} -module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCallCheck.js b/node_modules/@babel/runtime/helpers/classCallCheck.js deleted file mode 100644 index eab7e520..00000000 --- a/node_modules/@babel/runtime/helpers/classCallCheck.js +++ /dev/null @@ -1,6 +0,0 @@ -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js deleted file mode 100644 index 6492cc1e..00000000 --- a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) { - return assertClassBrand(classConstructor, receiver, returnValue); -} -module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js deleted file mode 100644 index b937d15e..00000000 --- a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +++ /dev/null @@ -1,6 +0,0 @@ -function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { - if (descriptor === undefined) { - throw new TypeError("attempted to " + action + " private static field before its declaration"); - } -} -module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js b/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js deleted file mode 100644 index 15345225..00000000 --- a/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +++ /dev/null @@ -1,5 +0,0 @@ -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classExtractFieldDescriptor(receiver, privateMap) { - return classPrivateFieldGet2(privateMap, receiver); -} -module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classNameTDZError.js b/node_modules/@babel/runtime/helpers/classNameTDZError.js deleted file mode 100644 index 9f84697a..00000000 --- a/node_modules/@babel/runtime/helpers/classNameTDZError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classNameTDZError(name) { - throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); -} -module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js deleted file mode 100644 index 2d4486c2..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classPrivateFieldDestructureSet(receiver, privateMap) { - var descriptor = classPrivateFieldGet2(privateMap, receiver); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} -module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js deleted file mode 100644 index 16456719..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classPrivateFieldGet(receiver, privateMap) { - var descriptor = classPrivateFieldGet2(privateMap, receiver); - return classApplyDescriptorGet(receiver, descriptor); -} -module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js deleted file mode 100644 index d4c271c7..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateFieldGet2(s, a) { - return s.get(assertClassBrand(s, a)); -} -module.exports = _classPrivateFieldGet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js b/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js deleted file mode 100644 index e55873a1..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +++ /dev/null @@ -1,6 +0,0 @@ -var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); -function _classPrivateFieldInitSpec(obj, privateMap, value) { - checkPrivateRedeclaration(obj, privateMap); - privateMap.set(obj, value); -} -module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js deleted file mode 100644 index bb16c0bc..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classPrivateFieldBase(receiver, privateKey) { - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { - throw new TypeError("attempted to use private field on non-instance"); - } - return receiver; -} -module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js deleted file mode 100644 index b3d546f1..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +++ /dev/null @@ -1,5 +0,0 @@ -var id = 0; -function _classPrivateFieldKey(name) { - return "__private_" + id++ + "_" + name; -} -module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js deleted file mode 100644 index 4f1842f5..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +++ /dev/null @@ -1,8 +0,0 @@ -var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classPrivateFieldSet(receiver, privateMap, value) { - var descriptor = classPrivateFieldGet2(privateMap, receiver); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} -module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js deleted file mode 100644 index 25c60caa..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateFieldSet2(s, a, r) { - return s.set(assertClassBrand(s, a), r), r; -} -module.exports = _classPrivateFieldSet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateGetter.js b/node_modules/@babel/runtime/helpers/classPrivateGetter.js deleted file mode 100644 index 1b3cf30a..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateGetter.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateGetter(s, r, a) { - return a(assertClassBrand(s, r)); -} -module.exports = _classPrivateGetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js deleted file mode 100644 index cfa4e76a..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +++ /dev/null @@ -1,6 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateMethodGet(receiver, privateSet, fn) { - assertClassBrand(privateSet, receiver); - return fn; -} -module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js b/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js deleted file mode 100644 index 31064767..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +++ /dev/null @@ -1,6 +0,0 @@ -var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); -function _classPrivateMethodInitSpec(obj, privateSet) { - checkPrivateRedeclaration(obj, privateSet); - privateSet.add(obj); -} -module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js deleted file mode 100644 index a44fd785..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); -} -module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateSetter.js b/node_modules/@babel/runtime/helpers/classPrivateSetter.js deleted file mode 100644 index 494f81f0..00000000 --- a/node_modules/@babel/runtime/helpers/classPrivateSetter.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateSetter(s, r, a, t) { - return r(assertClassBrand(s, a), t), t; -} -module.exports = _classPrivateSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js deleted file mode 100644 index 873630f9..00000000 --- a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +++ /dev/null @@ -1,9 +0,0 @@ -var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); -var assertClassBrand = require("./assertClassBrand.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { - assertClassBrand(classConstructor, receiver); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} -module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js deleted file mode 100644 index b8959592..00000000 --- a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +++ /dev/null @@ -1,9 +0,0 @@ -var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); -var assertClassBrand = require("./assertClassBrand.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { - assertClassBrand(classConstructor, receiver); - classCheckPrivateStaticFieldDescriptor(descriptor, "get"); - return classApplyDescriptorGet(receiver, descriptor); -} -module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js deleted file mode 100644 index e64e859a..00000000 --- a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +++ /dev/null @@ -1,10 +0,0 @@ -var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); -var assertClassBrand = require("./assertClassBrand.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { - assertClassBrand(classConstructor, receiver); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} -module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js deleted file mode 100644 index b92343f8..00000000 --- a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +++ /dev/null @@ -1,6 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classStaticPrivateMethodGet(receiver, classConstructor, method) { - assertClassBrand(classConstructor, receiver); - return method; -} -module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js deleted file mode 100644 index 72560e66..00000000 --- a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); -} -module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js deleted file mode 100644 index 771e1d79..00000000 --- a/node_modules/@babel/runtime/helpers/construct.js +++ /dev/null @@ -1,10 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -function _construct(t, e, r) { - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); - var o = [null]; - o.push.apply(o, e); - var p = new (t.bind.apply(t, o))(); - return r && setPrototypeOf(p, r.prototype), p; -} -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createClass.js b/node_modules/@babel/runtime/helpers/createClass.js deleted file mode 100644 index 201dcdf4..00000000 --- a/node_modules/@babel/runtime/helpers/createClass.js +++ /dev/null @@ -1,19 +0,0 @@ -var toPropertyKey = require("./toPropertyKey.js"); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js b/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js deleted file mode 100644 index 19b6f141..00000000 --- a/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +++ /dev/null @@ -1,53 +0,0 @@ -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = it.call(o); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it["return"] != null) it["return"](); - } finally { - if (didErr) throw err; - } - } - }; -} -module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js b/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js deleted file mode 100644 index b8eb5507..00000000 --- a/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +++ /dev/null @@ -1,20 +0,0 @@ -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (it) return (it = it.call(o)).next.bind(it); - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - return function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createSuper.js b/node_modules/@babel/runtime/helpers/createSuper.js deleted file mode 100644 index bd72679c..00000000 --- a/node_modules/@babel/runtime/helpers/createSuper.js +++ /dev/null @@ -1,18 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -var possibleConstructorReturn = require("./possibleConstructorReturn.js"); -function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - }; -} -module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/decorate.js b/node_modules/@babel/runtime/helpers/decorate.js deleted file mode 100644 index 457741fb..00000000 --- a/node_modules/@babel/runtime/helpers/decorate.js +++ /dev/null @@ -1,343 +0,0 @@ -var toArray = require("./toArray.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function _decorate(decorators, factory, superClass, mixins) { - var api = _getDecoratorsApi(); - if (mixins) { - for (var i = 0; i < mixins.length; i++) { - api = mixins[i](api); - } - } - var r = factory(function initialize(O) { - api.initializeInstanceElements(O, decorated.elements); - }, superClass); - var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); - api.initializeClassElements(r.F, decorated.elements); - return api.runClassFinishers(r.F, decorated.finishers); -} -function _getDecoratorsApi() { - _getDecoratorsApi = function _getDecoratorsApi() { - return api; - }; - var api = { - elementsDefinitionOrder: [["method"], ["field"]], - initializeInstanceElements: function initializeInstanceElements(O, elements) { - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - if (element.kind === kind && element.placement === "own") { - this.defineClassElement(O, element); - } - }, this); - }, this); - }, - initializeClassElements: function initializeClassElements(F, elements) { - var proto = F.prototype; - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - var placement = element.placement; - if (element.kind === kind && (placement === "static" || placement === "prototype")) { - var receiver = placement === "static" ? F : proto; - this.defineClassElement(receiver, element); - } - }, this); - }, this); - }, - defineClassElement: function defineClassElement(receiver, element) { - var descriptor = element.descriptor; - if (element.kind === "field") { - var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver) - }; - } - Object.defineProperty(receiver, element.key, descriptor); - }, - decorateClass: function decorateClass(elements, decorators) { - var newElements = []; - var finishers = []; - var placements = { - "static": [], - prototype: [], - own: [] - }; - elements.forEach(function (element) { - this.addElementPlacement(element, placements); - }, this); - elements.forEach(function (element) { - if (!_hasDecorators(element)) return newElements.push(element); - var elementFinishersExtras = this.decorateElement(element, placements); - newElements.push(elementFinishersExtras.element); - newElements.push.apply(newElements, elementFinishersExtras.extras); - finishers.push.apply(finishers, elementFinishersExtras.finishers); - }, this); - if (!decorators) { - return { - elements: newElements, - finishers: finishers - }; - } - var result = this.decorateConstructor(newElements, decorators); - finishers.push.apply(finishers, result.finishers); - result.finishers = finishers; - return result; - }, - addElementPlacement: function addElementPlacement(element, placements, silent) { - var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } - keys.push(element.key); - }, - decorateElement: function decorateElement(element, placements) { - var extras = []; - var finishers = []; - for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { - var keys = placements[element.placement]; - keys.splice(keys.indexOf(element.key), 1); - var elementObject = this.fromElementDescriptor(element); - var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); - element = elementFinisherExtras.element; - this.addElementPlacement(element, placements); - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } - var newExtras = elementFinisherExtras.extras; - if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - this.addElementPlacement(newExtras[j], placements); - } - extras.push.apply(extras, newExtras); - } - } - return { - element: element, - finishers: finishers, - extras: extras - }; - }, - decorateConstructor: function decorateConstructor(elements, decorators) { - var finishers = []; - for (var i = decorators.length - 1; i >= 0; i--) { - var obj = this.fromClassDescriptor(elements); - var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } - if (elementsAndFinisher.elements !== undefined) { - elements = elementsAndFinisher.elements; - for (var j = 0; j < elements.length - 1; j++) { - for (var k = j + 1; k < elements.length; k++) { - if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { - throw new TypeError("Duplicated element (" + elements[j].key + ")"); - } - } - } - } - } - return { - elements: elements, - finishers: finishers - }; - }, - fromElementDescriptor: function fromElementDescriptor(element) { - var obj = { - kind: element.kind, - key: element.key, - placement: element.placement, - descriptor: element.descriptor - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - if (element.kind === "field") obj.initializer = element.initializer; - return obj; - }, - toElementDescriptors: function toElementDescriptors(elementObjects) { - if (elementObjects === undefined) return; - return toArray(elementObjects).map(function (elementObject) { - var element = this.toElementDescriptor(elementObject); - this.disallowProperty(elementObject, "finisher", "An element descriptor"); - this.disallowProperty(elementObject, "extras", "An element descriptor"); - return element; - }, this); - }, - toElementDescriptor: function toElementDescriptor(elementObject) { - var kind = String(elementObject.kind); - if (kind !== "method" && kind !== "field") { - throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); - } - var key = toPropertyKey(elementObject.key); - var placement = String(elementObject.placement); - if (placement !== "static" && placement !== "prototype" && placement !== "own") { - throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); - } - var descriptor = elementObject.descriptor; - this.disallowProperty(elementObject, "elements", "An element descriptor"); - var element = { - kind: kind, - key: key, - placement: placement, - descriptor: Object.assign({}, descriptor) - }; - if (kind !== "field") { - this.disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { - this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); - element.initializer = elementObject.initializer; - } - return element; - }, - toElementFinisherExtras: function toElementFinisherExtras(elementObject) { - var element = this.toElementDescriptor(elementObject); - var finisher = _optionalCallableProperty(elementObject, "finisher"); - var extras = this.toElementDescriptors(elementObject.extras); - return { - element: element, - finisher: finisher, - extras: extras - }; - }, - fromClassDescriptor: function fromClassDescriptor(elements) { - var obj = { - kind: "class", - elements: elements.map(this.fromElementDescriptor, this) - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - return obj; - }, - toClassDescriptor: function toClassDescriptor(obj) { - var kind = String(obj.kind); - if (kind !== "class") { - throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); - } - this.disallowProperty(obj, "key", "A class descriptor"); - this.disallowProperty(obj, "placement", "A class descriptor"); - this.disallowProperty(obj, "descriptor", "A class descriptor"); - this.disallowProperty(obj, "initializer", "A class descriptor"); - this.disallowProperty(obj, "extras", "A class descriptor"); - var finisher = _optionalCallableProperty(obj, "finisher"); - var elements = this.toElementDescriptors(obj.elements); - return { - elements: elements, - finisher: finisher - }; - }, - runClassFinishers: function runClassFinishers(constructor, finishers) { - for (var i = 0; i < finishers.length; i++) { - var newConstructor = (0, finishers[i])(constructor); - if (newConstructor !== undefined) { - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } - constructor = newConstructor; - } - } - return constructor; - }, - disallowProperty: function disallowProperty(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } - } - }; - return api; -} -function _createElementDescriptor(def) { - var key = toPropertyKey(def.key); - var descriptor; - if (def.kind === "method") { - descriptor = { - value: def.value, - writable: true, - configurable: true, - enumerable: false - }; - } else if (def.kind === "get") { - descriptor = { - get: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "set") { - descriptor = { - set: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "field") { - descriptor = { - configurable: true, - writable: true, - enumerable: true - }; - } - var element = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", - descriptor: descriptor - }; - if (def.decorators) element.decorators = def.decorators; - if (def.kind === "field") element.initializer = def.value; - return element; -} -function _coalesceGetterSetter(element, other) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } -} -function _coalesceClassElements(elements) { - var newElements = []; - var isSameElement = function isSameElement(other) { - return other.kind === "method" && other.key === element.key && other.placement === element.placement; - }; - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - var other; - if (element.kind === "method" && (other = newElements.find(isSameElement))) { - if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { - if (_hasDecorators(element) || _hasDecorators(other)) { - throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); - } - other.descriptor = element.descriptor; - } else { - if (_hasDecorators(element)) { - if (_hasDecorators(other)) { - throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); - } - other.decorators = element.decorators; - } - _coalesceGetterSetter(element, other); - } - } else { - newElements.push(element); - } - } - return newElements; -} -function _hasDecorators(element) { - return element.decorators && element.decorators.length; -} -function _isDataDescriptor(desc) { - return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); -} -function _optionalCallableProperty(obj, name) { - var value = obj[name]; - if (value !== undefined && typeof value !== "function") { - throw new TypeError("Expected '" + name + "' to be a function"); - } - return value; -} -module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defaults.js b/node_modules/@babel/runtime/helpers/defaults.js deleted file mode 100644 index 86641e9c..00000000 --- a/node_modules/@babel/runtime/helpers/defaults.js +++ /dev/null @@ -1,12 +0,0 @@ -function _defaults(obj, defaults) { - var keys = Object.getOwnPropertyNames(defaults); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } - } - return obj; -} -module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineAccessor.js b/node_modules/@babel/runtime/helpers/defineAccessor.js deleted file mode 100644 index dc065f01..00000000 --- a/node_modules/@babel/runtime/helpers/defineAccessor.js +++ /dev/null @@ -1,8 +0,0 @@ -function _defineAccessor(e, r, n, t) { - var c = { - configurable: !0, - enumerable: !0 - }; - return c[e] = t, Object.defineProperty(r, n, c); -} -module.exports = _defineAccessor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js deleted file mode 100644 index a04e6028..00000000 --- a/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +++ /dev/null @@ -1,20 +0,0 @@ -function _defineEnumerableProperties(obj, descs) { - for (var key in descs) { - var desc = descs[key]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, key, desc); - } - if (Object.getOwnPropertySymbols) { - var objectSymbols = Object.getOwnPropertySymbols(descs); - for (var i = 0; i < objectSymbols.length; i++) { - var sym = objectSymbols[i]; - var desc = descs[sym]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, sym, desc); - } - } - return obj; -} -module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineProperty.js b/node_modules/@babel/runtime/helpers/defineProperty.js deleted file mode 100644 index 8762046d..00000000 --- a/node_modules/@babel/runtime/helpers/defineProperty.js +++ /dev/null @@ -1,16 +0,0 @@ -var toPropertyKey = require("./toPropertyKey.js"); -function _defineProperty(obj, key, value) { - key = toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/dispose.js b/node_modules/@babel/runtime/helpers/dispose.js deleted file mode 100644 index c20193ca..00000000 --- a/node_modules/@babel/runtime/helpers/dispose.js +++ /dev/null @@ -1,28 +0,0 @@ -function dispose_SuppressedError(r, e) { - return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { - this.suppressed = e, this.error = r, this.stack = Error().stack; - }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { - constructor: { - value: dispose_SuppressedError, - writable: !0, - configurable: !0 - } - })), new dispose_SuppressedError(r, e); -} -function _dispose(r, e, s) { - function next() { - for (; r.length > 0;) try { - var o = r.pop(), - p = o.d.call(o.v); - if (o.a) return Promise.resolve(p).then(next, err); - } catch (r) { - return err(r); - } - if (s) throw e; - } - function err(r) { - return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); - } - return next(); -} -module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js deleted file mode 100644 index cd051523..00000000 --- a/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +++ /dev/null @@ -1,63 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -export default function AsyncGenerator(e) { - var r, t; - function resume(r, t) { - try { - var n = e[r](t), - o = n.value, - u = o instanceof OverloadYield; - Promise.resolve(u ? o.v : o).then(function (t) { - if (u) { - var i = "return" === r ? "return" : "next"; - if (!o.k || t.done) return resume(i, t); - t = e[i](t).value; - } - settle(n.done ? "return" : "normal", t); - }, function (e) { - resume("throw", e); - }); - } catch (e) { - settle("throw", e); - } - } - function settle(e, n) { - switch (e) { - case "return": - r.resolve({ - value: n, - done: !0 - }); - break; - case "throw": - r.reject(n); - break; - default: - r.resolve({ - value: n, - done: !1 - }); - } - (r = r.next) ? resume(r.key, r.arg) : t = null; - } - this._invoke = function (e, n) { - return new Promise(function (o, u) { - var i = { - key: e, - arg: n, - resolve: o, - reject: u, - next: null - }; - t ? t = t.next = i : (r = t = i, resume(e, n)); - }); - }, "function" != typeof e["return"] && (this["return"] = void 0); -} -AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { - return this; -}, AsyncGenerator.prototype.next = function (e) { - return this._invoke("next", e); -}, AsyncGenerator.prototype["throw"] = function (e) { - return this._invoke("throw", e); -}, AsyncGenerator.prototype["return"] = function (e) { - return this._invoke("return", e); -}; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/AwaitValue.js b/node_modules/@babel/runtime/helpers/esm/AwaitValue.js deleted file mode 100644 index 5237e18f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _AwaitValue(value) { - this.wrapped = value; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/OverloadYield.js b/node_modules/@babel/runtime/helpers/esm/OverloadYield.js deleted file mode 100644 index e2583ef9..00000000 --- a/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _OverloadYield(t, e) { - this.v = t, this.k = e; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js deleted file mode 100644 index 5137e85f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +++ /dev/null @@ -1,23 +0,0 @@ -export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { - var desc = {}; - Object.keys(descriptor).forEach(function (key) { - desc[key] = descriptor[key]; - }); - desc.enumerable = !!desc.enumerable; - desc.configurable = !!desc.configurable; - if ('value' in desc || desc.initializer) { - desc.writable = true; - } - desc = decorators.slice().reverse().reduce(function (desc, decorator) { - return decorator(target, property, desc) || desc; - }, desc); - if (context && desc.initializer !== void 0) { - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; - desc.initializer = undefined; - } - if (desc.initializer === void 0) { - Object.defineProperty(target, property, desc); - desc = null; - } - return desc; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs.js b/node_modules/@babel/runtime/helpers/esm/applyDecs.js deleted file mode 100644 index fe11cde8..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs.js +++ /dev/null @@ -1,235 +0,0 @@ -import _typeof from "./typeof.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function old_createMetadataMethodsForProperty(e, t, a, r) { - return { - getMetadata: function getMetadata(o) { - old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); - var i = e[o]; - if (void 0 !== i) if (1 === t) { - var n = i["public"]; - if (void 0 !== n) return n[a]; - } else if (2 === t) { - var l = i["private"]; - if (void 0 !== l) return l.get(a); - } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; - }, - setMetadata: function setMetadata(o, i) { - old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); - var n = e[o]; - if (void 0 === n && (n = e[o] = {}), 1 === t) { - var l = n["public"]; - void 0 === l && (l = n["public"] = {}), l[a] = i; - } else if (2 === t) { - var s = n.priv; - void 0 === s && (s = n["private"] = new Map()), s.set(a, i); - } else n.constructor = i; - } - }; -} -function old_convertMetadataMapToFinal(e, t) { - var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], - r = Object.getOwnPropertySymbols(t); - if (0 !== r.length) { - for (var o = 0; o < r.length; o++) { - var i = r[o], - n = t[i], - l = a ? a[i] : null, - s = n["public"], - c = l ? l["public"] : null; - s && c && Object.setPrototypeOf(s, c); - var d = n["private"]; - if (d) { - var u = Array.from(d.values()), - f = l ? l["private"] : null; - f && (u = u.concat(f)), n["private"] = u; - } - l && Object.setPrototypeOf(n, l); - } - a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; - } -} -function old_createAddInitializerMethod(e, t) { - return function (a) { - old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); - }; -} -function old_memberDec(e, t, a, r, o, i, n, l, s) { - var c; - switch (i) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var d, - u, - f = { - kind: c, - name: l ? "#" + t : toPropertyKey(t), - isStatic: n, - isPrivate: l - }, - p = { - v: !1 - }; - if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { - d = 2, u = Symbol(t); - var v = {}; - 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { - return a.value; - } : (1 !== i && 3 !== i || (v.get = function () { - return a.get.call(this); - }), 1 !== i && 4 !== i || (v.set = function (e) { - a.set.call(this, e); - })), f.access = v; - } else d = 1, u = t; - try { - return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); - } finally { - p.v = !0; - } -} -function old_assertNotFinished(e, t) { - if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); -} -function old_assertMetadataKey(e) { - if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); -} -function old_assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); -} -function old_assertValidReturnValue(e, t) { - var a = _typeof(t); - if (1 === e) { - if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); - } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); -} -function old_getInit(e) { - var t; - return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; -} -function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { - var c, - d, - u, - f, - p, - v, - y, - h = a[0]; - if (n ? (0 === o || 1 === o ? (c = { - get: a[3], - set: a[4] - }, u = "get") : 3 === o ? (c = { - get: a[3] - }, u = "get") : 4 === o ? (c = { - set: a[3] - }, u = "set") : c = { - value: a[3] - }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { - get: c.get, - set: c.set - } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { - var b; - void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); - } - if (0 === o || 1 === o) { - if (void 0 === d) d = function d(e, t) { - return t; - };else if ("function" != typeof d) { - var g = d; - d = function d(e, t) { - for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); - return a; - }; - } else { - var _ = d; - d = function d(e, t) { - return _.call(e, t); - }; - } - e.push(d); - } - 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === o ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, r, c)); -} -function old_applyMemberDecs(e, t, a, r, o) { - for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { - var d = o[c]; - if (Array.isArray(d)) { - var u, - f, - p, - v = d[1], - y = d[2], - h = d.length > 3, - m = v >= 5; - if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { - var b = m ? s : l, - g = b.get(y) || 0; - if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); - !g && v > 2 ? b.set(y, v) : b.set(y, !0); - } - old_applyMemberDec(e, u, d, y, v, m, h, f, p); - } - } - old_pushInitializers(e, i), old_pushInitializers(e, n); -} -function old_pushInitializers(e, t) { - t && e.push(function (e) { - for (var a = 0; a < t.length; a++) t[a].call(e); - return e; - }); -} -function old_applyClassDecs(e, t, a, r) { - if (r.length > 0) { - for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { - var s = { - v: !1 - }; - try { - var c = Object.assign({ - kind: "class", - name: n, - addInitializer: old_createAddInitializerMethod(o, s) - }, old_createMetadataMethodsForProperty(a, 0, n, s)), - d = r[l](i, c); - } finally { - s.v = !0; - } - void 0 !== d && (old_assertValidReturnValue(10, d), i = d); - } - e.push(i, function () { - for (var e = 0; e < o.length; e++) o[e].call(i); - }); - } -} -export default function applyDecs(e, t, a) { - var r = [], - o = {}, - i = {}; - return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js deleted file mode 100644 index d0d076b8..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +++ /dev/null @@ -1,183 +0,0 @@ -import _typeof from "./typeof.js"; -function applyDecs2203Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, a, n, i, s, o) { - var c; - switch (n) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: s ? "#" + t : t, - "static": i, - "private": s - }, - p = { - v: !1 - }; - 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === n ? l = function l() { - return r.value; - } : (1 !== n && 3 !== n || (l = function l() { - return r.get.call(this); - }), 1 !== n && 4 !== n || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(o, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, a, n, i, s, o) { - var c, - l, - u, - f, - p, - d, - h = r[0]; - if (s ? c = 0 === n || 1 === n ? { - get: r[3], - set: r[4] - } : 3 === n ? { - get: r[3] - } : 4 === n ? { - set: r[3] - } : { - value: r[3] - } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { - get: c.get, - set: c.set - } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { - var g; - void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); - } - if (0 === n || 1 === n) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var y = l; - l = function l(e, t) { - for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); - return r; - }; - } else { - var m = l; - l = function l(e, t) { - return m.call(e, t); - }; - } - e.push(l); - } - 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { - return u.get.call(e, t); - }), e.push(function (e, t) { - return u.set.call(e, t); - })) : 2 === n ? e.push(u) : e.push(function (e, t) { - return u.call(e, t); - }) : Object.defineProperty(t, a, c)); - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - var a = []; - return function (e, t, r) { - for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { - var c = r[o]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { - var v = h ? s : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(e, l, c, p, f, h, d, u); - } - } - pushInitializers(e, a), pushInitializers(e, n); - }(a, e, t), function (e, t, r) { - if (r.length > 0) { - for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { - var o = { - v: !1 - }; - try { - var c = r[s](n, { - kind: "class", - name: i, - addInitializer: createAddInitializerMethod(a, o) - }); - } finally { - o.v = !0; - } - void 0 !== c && (assertValidReturnValue(10, c), n = c); - } - e.push(n, function () { - for (var e = 0; e < a.length; e++) a[e].call(n); - }); - } - }(a, e, r), a; - }; -} -var applyDecs2203Impl; -export default function applyDecs2203(e, t, r) { - return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js deleted file mode 100644 index b7edfcf2..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +++ /dev/null @@ -1,190 +0,0 @@ -import _typeof from "./typeof.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function applyDecs2203RFactory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, n, a, i, o, s) { - var c; - switch (a) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: o ? "#" + t : toPropertyKey(t), - "static": i, - "private": o - }, - p = { - v: !1 - }; - 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === a ? l = function l() { - return r.value; - } : (1 !== a && 3 !== a || (l = function l() { - return r.get.call(this); - }), 1 !== a && 4 !== a || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(s, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, n, a, i, o, s) { - var c, - l, - u, - f, - p, - d, - h, - v = r[0]; - if (o ? (0 === a || 1 === a ? (c = { - get: r[3], - set: r[4] - }, u = "get") : 3 === a ? (c = { - get: r[3] - }, u = "get") : 4 === a ? (c = { - set: r[3] - }, u = "set") : c = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { - get: c.get, - set: c.set - } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { - var y; - void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var m = l; - l = function l(e, t) { - for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); - return r; - }; - } else { - var b = l; - l = function l(e, t) { - return b.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === a ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, n, c)); - } - function applyMemberDecs(e, t) { - for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { - var c = t[s]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { - var v = h ? o : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(a, l, c, p, f, h, d, u); - } - } - return pushInitializers(a, r), pushInitializers(a, n), a; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - return { - e: applyMemberDecs(e, t), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var o = { - v: !1 - }; - try { - var s = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, o) - }); - } finally { - o.v = !0; - } - void 0 !== s && (assertValidReturnValue(10, s), n = s); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -export default function applyDecs2203R(e, t, r) { - return (applyDecs2203R = applyDecs2203RFactory())(e, t, r); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js deleted file mode 100644 index 7dd52e80..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +++ /dev/null @@ -1,221 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function applyDecs2301Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function assertInstanceIfPrivate(e, t) { - if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); - } - function memberDec(e, t, r, n, a, i, s, o, c) { - var u; - switch (a) { - case 1: - u = "accessor"; - break; - case 2: - u = "method"; - break; - case 3: - u = "getter"; - break; - case 4: - u = "setter"; - break; - default: - u = "field"; - } - var l, - f, - p = { - kind: u, - name: s ? "#" + t : toPropertyKey(t), - "static": i, - "private": s - }, - d = { - v: !1 - }; - if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { - if (2 === a) l = function l(e) { - return assertInstanceIfPrivate(c, e), r.value; - };else { - var h = 0 === a || 1 === a; - (h || 3 === a) && (l = s ? function (e) { - return assertInstanceIfPrivate(c, e), r.get.call(e); - } : function (e) { - return r.get.call(e); - }), (h || 4 === a) && (f = s ? function (e, t) { - assertInstanceIfPrivate(c, e), r.set.call(e, t); - } : function (e, t) { - r.set.call(e, t); - }); - } - } else l = function l(e) { - return e[t]; - }, 0 === a && (f = function f(e, r) { - e[t] = r; - }); - var v = s ? c.bind() : function (e) { - return t in e; - }; - p.access = l && f ? { - get: l, - set: f, - has: v - } : l ? { - get: l, - has: v - } : { - set: f, - has: v - }; - try { - return e(o, p); - } finally { - d.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function curryThis2(e) { - return function (t) { - e(this, t); - }; - } - function applyMemberDec(e, t, r, n, a, i, s, o, c) { - var u, - l, - f, - p, - d, - h, - v, - y, - g = r[0]; - if (s ? (0 === a || 1 === a ? (u = { - get: (d = r[3], function () { - return d(this); - }), - set: curryThis2(r[4]) - }, f = "get") : 3 === a ? (u = { - get: r[3] - }, f = "get") : 4 === a ? (u = { - set: r[3] - }, f = "set") : u = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { - get: u.get, - set: u.set - } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { - var b; - void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var I = l; - l = function l(e, t) { - for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); - return r; - }; - } else { - var w = l; - l = function l(e, t) { - return w.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { - return p.get.call(e, t); - }), e.push(function (e, t) { - return p.set.call(e, t); - })) : 2 === a ? e.push(p) : e.push(function (e, t) { - return p.call(e, t); - }) : Object.defineProperty(t, n, u)); - } - function applyMemberDecs(e, t, r) { - for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { - var l = t[u]; - if (Array.isArray(l)) { - var f, - p, - d = l[1], - h = l[2], - v = l.length > 3, - y = d >= 5, - g = r; - if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { - return checkInRHS(t) === e; - }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { - var m = y ? c : o, - b = m.get(h) || 0; - if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - !b && d > 2 ? m.set(h, d) : m.set(h, !0); - } - applyMemberDec(s, f, l, h, d, y, v, p, g); - } - } - return pushInitializers(s, n), pushInitializers(s, a), s; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r, n) { - return { - e: applyMemberDecs(e, t, n), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var s = { - v: !1 - }; - try { - var o = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, s) - }); - } finally { - s.v = !0; - } - void 0 !== o && (assertValidReturnValue(10, o), n = o); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -export default function applyDecs2301(e, t, r, n) { - return (applyDecs2301 = applyDecs2301Factory())(e, t, r, n); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js deleted file mode 100644 index f4cbda6f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +++ /dev/null @@ -1,132 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -export default function applyDecs2305(e, t, r, n, o, a) { - function i(e, t, r) { - return function (n, o) { - return r && r(n), e[t].call(n, o); - }; - } - function c(e, t) { - for (var r = 0; r < e.length; r++) e[r].call(t); - return t; - } - function s(e, t, r, n) { - if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); - return e; - } - function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { - function m(e) { - if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var y, - v = t[0], - g = t[3], - b = !u; - if (!b) { - r || Array.isArray(v) || (v = [v]); - var w = {}, - S = [], - A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; - f ? (p || d ? w = { - get: setFunctionName(function () { - return g(this); - }, n, "get"), - set: function set(e) { - t[4](this, e); - } - } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); - } - for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { - var D = v[j], - E = r ? v[j - 1] : void 0, - I = {}, - O = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: n, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - s(t, "An initializer", "be", !0), c.push(t); - }.bind(null, I) - }; - try { - if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { - var k, F; - O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { - return m(e), w.value; - } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { - return e[n]; - }, (o < 2 || 4 === o) && (F = function F(e, t) { - e[n] = t; - })); - var N = O.access = { - has: f ? h.bind() : function (e) { - return n in e; - } - }; - if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { - get: w.get, - set: w.set - } : w[A], O), d) { - if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); - } - } finally { - I.v = !0; - } - } - return (p || d) && u.push(function (e, t) { - for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); - return t; - }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; - } - function u(e, t) { - return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { - configurable: !0, - enumerable: !0, - value: t - }); - } - if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; - var f = Object.create(null == l ? null : l), - p = function (e, t, r, n) { - var o, - a, - i = [], - s = function s(t) { - return checkInRHS(t) === e; - }, - u = new Map(); - function l(e) { - e && i.push(c.bind(null, e)); - } - for (var f = 0; f < t.length; f++) { - var p = t[f]; - if (Array.isArray(p)) { - var d = p[1], - h = p[2], - m = p.length > 3, - y = 16 & d, - v = !!(8 & d), - g = 0 == (d &= 7), - b = h + "/" + v; - if (!g && !m) { - var w = u.get(b); - if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - u.set(b, !(d > 2) || d); - } - applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); - } - } - return l(o), l(a), i; - }(e, t, o, f); - return r.length || u(e, f), { - e: p, - get c() { - var t = []; - return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; - } - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js deleted file mode 100644 index da81cc0e..00000000 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +++ /dev/null @@ -1,123 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -export default function applyDecs2311(e, t, n, r, o, i) { - var a, - c, - u, - s, - f, - l, - p, - d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), - m = Object.defineProperty, - h = Object.create, - y = [h(null), h(null)], - v = t.length; - function g(t, n, r) { - return function (o, i) { - n && (i = o, o = e); - for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); - return r ? i : o; - }; - } - function b(e, t, n, r) { - if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); - return e; - } - function applyDec(e, t, n, r, o, i, u, s, f, l, p) { - function d(e) { - if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var h = [].concat(t[0]), - v = t[3], - w = !u, - D = 1 === o, - S = 3 === o, - j = 4 === o, - E = 2 === o; - function I(t, n, r) { - return function (o, i) { - return n && (i = o, o = e), r && r(o), P[t].call(o, i); - }; - } - if (!w) { - var P = {}, - k = [], - F = S ? "get" : j || D ? "set" : "value"; - if (f ? (l || D ? P = { - get: setFunctionName(function () { - return v(this); - }, r, "get"), - set: function set(e) { - t[4](this, e); - } - } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { - if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); - y[+s][r] = o < 3 ? 1 : o; - } - } - for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { - var z = b(h[O], "A decorator", "be", !0), - A = n ? h[O - 1] : void 0, - H = {}, - K = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: r, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - b(t, "An initializer", "be", !0), i.push(t); - }.bind(null, H) - }; - if (w) c = z.call(A, N, K), H.v = 1, b(c, "class decorators", "return") && (N = c);else if (K["static"] = s, K["private"] = f, c = K.access = { - has: f ? p.bind() : function (e) { - return r in e; - } - }, j || (c.get = f ? E ? function (e) { - return d(e), P.value; - } : I("get", 0, d) : function (e) { - return e[r]; - }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { - e[r] = t; - }), N = z.call(A, D ? { - get: P.get, - set: P.set - } : P[F], K), H.v = 1, D) { - if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); - } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); - } - return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; - } - function w(e) { - return m(e, d, { - configurable: !0, - enumerable: !0, - value: a - }); - } - return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { - e && f.push(g(e)); - }, p = function p(t, r) { - for (var i = 0; i < n.length; i++) { - var a = n[i], - c = a[1], - l = 7 & c; - if ((8 & c) == t && !l == r) { - var p = a[2], - d = !!a[3], - m = 16 & c; - applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { - return checkInRHS(t) === e; - } : o); - } - } - }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { - e: c, - get c() { - var n = []; - return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; - } - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js b/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js deleted file mode 100644 index 8a9fad8a..00000000 --- a/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js deleted file mode 100644 index be734fc3..00000000 --- a/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js deleted file mode 100644 index f7d8dc78..00000000 --- a/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +++ /dev/null @@ -1,4 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -export default function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js b/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js deleted file mode 100644 index 63893586..00000000 --- a/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +++ /dev/null @@ -1,4 +0,0 @@ -export default function _assertClassBrand(e, t, n) { - if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; - throw new TypeError("Private element is not present on this object"); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js deleted file mode 100644 index 1f8fcf4b..00000000 --- a/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js deleted file mode 100644 index 96106075..00000000 --- a/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +++ /dev/null @@ -1,23 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -export default function _asyncGeneratorDelegate(t) { - var e = {}, - n = !1; - function pump(e, r) { - return n = !0, r = new Promise(function (n) { - n(t[e](r)); - }), { - done: !1, - value: new OverloadYield(r, 1) - }; - } - return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { - return this; - }, e.next = function (t) { - return n ? (n = !1, t) : pump("next", t); - }, "function" == typeof t["throw"] && (e["throw"] = function (t) { - if (n) throw n = !1, t; - return pump("throw", t); - }), "function" == typeof t["return"] && (e["return"] = function (t) { - return n ? (n = !1, t) : pump("return", t); - }), e; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncIterator.js b/node_modules/@babel/runtime/helpers/esm/asyncIterator.js deleted file mode 100644 index beca9a79..00000000 --- a/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +++ /dev/null @@ -1,44 +0,0 @@ -export default function _asyncIterator(r) { - var n, - t, - o, - e = 2; - for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { - if (t && null != (n = r[t])) return n.call(r); - if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); - t = "@@asyncIterator", o = "@@iterator"; - } - throw new TypeError("Object is not async iterable"); -} -function AsyncFromSyncIterator(r) { - function AsyncFromSyncIteratorContinuation(r) { - if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); - var n = r.done; - return Promise.resolve(r.value).then(function (r) { - return { - value: r, - done: n - }; - }); - } - return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { - this.s = r, this.n = r.next; - }, AsyncFromSyncIterator.prototype = { - s: null, - n: null, - next: function next() { - return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); - }, - "return": function _return(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.resolve({ - value: r, - done: !0 - }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - }, - "throw": function _throw(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - } - }, new AsyncFromSyncIterator(r); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js deleted file mode 100644 index c37aa2c7..00000000 --- a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +++ /dev/null @@ -1,30 +0,0 @@ -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} -export default function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(undefined); - }); - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js deleted file mode 100644 index c8dfd66e..00000000 --- a/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +++ /dev/null @@ -1,4 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -export default function _awaitAsyncGenerator(e) { - return new OverloadYield(e, 0); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/callSuper.js b/node_modules/@babel/runtime/helpers/esm/callSuper.js deleted file mode 100644 index 33a3b607..00000000 --- a/node_modules/@babel/runtime/helpers/esm/callSuper.js +++ /dev/null @@ -1,6 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import possibleConstructorReturn from "./possibleConstructorReturn.js"; -export default function _callSuper(t, o, e) { - return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/checkInRHS.js b/node_modules/@babel/runtime/helpers/esm/checkInRHS.js deleted file mode 100644 index 8b59ccf8..00000000 --- a/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +++ /dev/null @@ -1,5 +0,0 @@ -import _typeof from "./typeof.js"; -export default function _checkInRHS(e) { - if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); - return e; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js b/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js deleted file mode 100644 index 99014036..00000000 --- a/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _checkPrivateRedeclaration(obj, privateCollection) { - if (privateCollection.has(obj)) { - throw new TypeError("Cannot initialize the same private elements twice on an object"); - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js deleted file mode 100644 index 68684f23..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { - if (descriptor.set) { - if (!("__destrObj" in descriptor)) { - descriptor.__destrObj = { - set value(v) { - descriptor.set.call(receiver, v); - } - }; - } - return descriptor.__destrObj; - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - return descriptor; - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js deleted file mode 100644 index 727e9e9b..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _classApplyDescriptorGet(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js deleted file mode 100644 index b4df6d30..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function _classApplyDescriptorSet(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - descriptor.value = value; - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCallCheck.js b/node_modules/@babel/runtime/helpers/esm/classCallCheck.js deleted file mode 100644 index 2f1738a3..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js deleted file mode 100644 index 6778e732..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +++ /dev/null @@ -1,4 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) { - return assertClassBrand(classConstructor, receiver, returnValue); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js deleted file mode 100644 index 0ef34b8d..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { - if (descriptor === undefined) { - throw new TypeError("attempted to " + action + " private static field before its declaration"); - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js b/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js deleted file mode 100644 index 72f59f8e..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +++ /dev/null @@ -1,4 +0,0 @@ -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -export default function _classExtractFieldDescriptor(receiver, privateMap) { - return classPrivateFieldGet2(privateMap, receiver); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js b/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js deleted file mode 100644 index 46eea93a..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _classNameTDZError(name) { - throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js deleted file mode 100644 index f6ca5cdd..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +++ /dev/null @@ -1,6 +0,0 @@ -import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -export default function _classPrivateFieldDestructureSet(receiver, privateMap) { - var descriptor = classPrivateFieldGet2(privateMap, receiver); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js deleted file mode 100644 index f5ecf4d3..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +++ /dev/null @@ -1,6 +0,0 @@ -import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -export default function _classPrivateFieldGet(receiver, privateMap) { - var descriptor = classPrivateFieldGet2(privateMap, receiver); - return classApplyDescriptorGet(receiver, descriptor); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js deleted file mode 100644 index 3d1980d0..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +++ /dev/null @@ -1,4 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classPrivateFieldGet2(s, a) { - return s.get(assertClassBrand(s, a)); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js deleted file mode 100644 index 2253dd84..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; -export default function _classPrivateFieldInitSpec(obj, privateMap, value) { - checkPrivateRedeclaration(obj, privateMap); - privateMap.set(obj, value); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js deleted file mode 100644 index 09e93304..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _classPrivateFieldBase(receiver, privateKey) { - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { - throw new TypeError("attempted to use private field on non-instance"); - } - return receiver; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js deleted file mode 100644 index 5b7e5ac0..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +++ /dev/null @@ -1,4 +0,0 @@ -var id = 0; -export default function _classPrivateFieldKey(name) { - return "__private_" + id++ + "_" + name; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js deleted file mode 100644 index de550c29..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -export default function _classPrivateFieldSet(receiver, privateMap, value) { - var descriptor = classPrivateFieldGet2(privateMap, receiver); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js deleted file mode 100644 index e117e308..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +++ /dev/null @@ -1,4 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classPrivateFieldSet2(s, a, r) { - return s.set(assertClassBrand(s, a), r), r; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js b/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js deleted file mode 100644 index ecb0e368..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +++ /dev/null @@ -1,4 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classPrivateGetter(s, r, a) { - return a(assertClassBrand(s, r)); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js deleted file mode 100644 index 68d03821..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classPrivateMethodGet(receiver, privateSet, fn) { - assertClassBrand(privateSet, receiver); - return fn; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js deleted file mode 100644 index 18d12915..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; -export default function _classPrivateMethodInitSpec(obj, privateSet) { - checkPrivateRedeclaration(obj, privateSet); - privateSet.add(obj); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js deleted file mode 100644 index 2bbaf3a7..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js b/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js deleted file mode 100644 index e78b164d..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +++ /dev/null @@ -1,4 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classPrivateSetter(s, r, a, t) { - return r(assertClassBrand(s, a), t), t; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js deleted file mode 100644 index 10243742..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +++ /dev/null @@ -1,8 +0,0 @@ -import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; -import assertClassBrand from "./assertClassBrand.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { - assertClassBrand(classConstructor, receiver); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js deleted file mode 100644 index 3da1d145..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +++ /dev/null @@ -1,8 +0,0 @@ -import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; -import assertClassBrand from "./assertClassBrand.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { - assertClassBrand(classConstructor, receiver); - classCheckPrivateStaticFieldDescriptor(descriptor, "get"); - return classApplyDescriptorGet(receiver, descriptor); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js deleted file mode 100644 index b080552e..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +++ /dev/null @@ -1,9 +0,0 @@ -import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; -import assertClassBrand from "./assertClassBrand.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { - assertClassBrand(classConstructor, receiver); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js deleted file mode 100644 index 7bdd1690..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { - assertClassBrand(classConstructor, receiver); - return method; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js deleted file mode 100644 index d5ab60a9..00000000 --- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/construct.js b/node_modules/@babel/runtime/helpers/esm/construct.js deleted file mode 100644 index ce6b2783..00000000 --- a/node_modules/@babel/runtime/helpers/esm/construct.js +++ /dev/null @@ -1,9 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -export default function _construct(t, e, r) { - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); - var o = [null]; - o.push.apply(o, e); - var p = new (t.bind.apply(t, o))(); - return r && setPrototypeOf(p, r.prototype), p; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createClass.js b/node_modules/@babel/runtime/helpers/esm/createClass.js deleted file mode 100644 index bbacdfec..00000000 --- a/node_modules/@babel/runtime/helpers/esm/createClass.js +++ /dev/null @@ -1,18 +0,0 @@ -import toPropertyKey from "./toPropertyKey.js"; -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } -} -export default function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js deleted file mode 100644 index 5e0e0f19..00000000 --- a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +++ /dev/null @@ -1,52 +0,0 @@ -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -export default function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = it.call(o); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it["return"] != null) it["return"](); - } finally { - if (didErr) throw err; - } - } - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js deleted file mode 100644 index 043857dc..00000000 --- a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +++ /dev/null @@ -1,19 +0,0 @@ -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (it) return (it = it.call(o)).next.bind(it); - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - return function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createSuper.js b/node_modules/@babel/runtime/helpers/esm/createSuper.js deleted file mode 100644 index 7c962976..00000000 --- a/node_modules/@babel/runtime/helpers/esm/createSuper.js +++ /dev/null @@ -1,17 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import possibleConstructorReturn from "./possibleConstructorReturn.js"; -export default function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/decorate.js b/node_modules/@babel/runtime/helpers/esm/decorate.js deleted file mode 100644 index e511dfe6..00000000 --- a/node_modules/@babel/runtime/helpers/esm/decorate.js +++ /dev/null @@ -1,342 +0,0 @@ -import toArray from "./toArray.js"; -import toPropertyKey from "./toPropertyKey.js"; -export default function _decorate(decorators, factory, superClass, mixins) { - var api = _getDecoratorsApi(); - if (mixins) { - for (var i = 0; i < mixins.length; i++) { - api = mixins[i](api); - } - } - var r = factory(function initialize(O) { - api.initializeInstanceElements(O, decorated.elements); - }, superClass); - var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); - api.initializeClassElements(r.F, decorated.elements); - return api.runClassFinishers(r.F, decorated.finishers); -} -function _getDecoratorsApi() { - _getDecoratorsApi = function _getDecoratorsApi() { - return api; - }; - var api = { - elementsDefinitionOrder: [["method"], ["field"]], - initializeInstanceElements: function initializeInstanceElements(O, elements) { - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - if (element.kind === kind && element.placement === "own") { - this.defineClassElement(O, element); - } - }, this); - }, this); - }, - initializeClassElements: function initializeClassElements(F, elements) { - var proto = F.prototype; - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - var placement = element.placement; - if (element.kind === kind && (placement === "static" || placement === "prototype")) { - var receiver = placement === "static" ? F : proto; - this.defineClassElement(receiver, element); - } - }, this); - }, this); - }, - defineClassElement: function defineClassElement(receiver, element) { - var descriptor = element.descriptor; - if (element.kind === "field") { - var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver) - }; - } - Object.defineProperty(receiver, element.key, descriptor); - }, - decorateClass: function decorateClass(elements, decorators) { - var newElements = []; - var finishers = []; - var placements = { - "static": [], - prototype: [], - own: [] - }; - elements.forEach(function (element) { - this.addElementPlacement(element, placements); - }, this); - elements.forEach(function (element) { - if (!_hasDecorators(element)) return newElements.push(element); - var elementFinishersExtras = this.decorateElement(element, placements); - newElements.push(elementFinishersExtras.element); - newElements.push.apply(newElements, elementFinishersExtras.extras); - finishers.push.apply(finishers, elementFinishersExtras.finishers); - }, this); - if (!decorators) { - return { - elements: newElements, - finishers: finishers - }; - } - var result = this.decorateConstructor(newElements, decorators); - finishers.push.apply(finishers, result.finishers); - result.finishers = finishers; - return result; - }, - addElementPlacement: function addElementPlacement(element, placements, silent) { - var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } - keys.push(element.key); - }, - decorateElement: function decorateElement(element, placements) { - var extras = []; - var finishers = []; - for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { - var keys = placements[element.placement]; - keys.splice(keys.indexOf(element.key), 1); - var elementObject = this.fromElementDescriptor(element); - var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); - element = elementFinisherExtras.element; - this.addElementPlacement(element, placements); - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } - var newExtras = elementFinisherExtras.extras; - if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - this.addElementPlacement(newExtras[j], placements); - } - extras.push.apply(extras, newExtras); - } - } - return { - element: element, - finishers: finishers, - extras: extras - }; - }, - decorateConstructor: function decorateConstructor(elements, decorators) { - var finishers = []; - for (var i = decorators.length - 1; i >= 0; i--) { - var obj = this.fromClassDescriptor(elements); - var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } - if (elementsAndFinisher.elements !== undefined) { - elements = elementsAndFinisher.elements; - for (var j = 0; j < elements.length - 1; j++) { - for (var k = j + 1; k < elements.length; k++) { - if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { - throw new TypeError("Duplicated element (" + elements[j].key + ")"); - } - } - } - } - } - return { - elements: elements, - finishers: finishers - }; - }, - fromElementDescriptor: function fromElementDescriptor(element) { - var obj = { - kind: element.kind, - key: element.key, - placement: element.placement, - descriptor: element.descriptor - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - if (element.kind === "field") obj.initializer = element.initializer; - return obj; - }, - toElementDescriptors: function toElementDescriptors(elementObjects) { - if (elementObjects === undefined) return; - return toArray(elementObjects).map(function (elementObject) { - var element = this.toElementDescriptor(elementObject); - this.disallowProperty(elementObject, "finisher", "An element descriptor"); - this.disallowProperty(elementObject, "extras", "An element descriptor"); - return element; - }, this); - }, - toElementDescriptor: function toElementDescriptor(elementObject) { - var kind = String(elementObject.kind); - if (kind !== "method" && kind !== "field") { - throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); - } - var key = toPropertyKey(elementObject.key); - var placement = String(elementObject.placement); - if (placement !== "static" && placement !== "prototype" && placement !== "own") { - throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); - } - var descriptor = elementObject.descriptor; - this.disallowProperty(elementObject, "elements", "An element descriptor"); - var element = { - kind: kind, - key: key, - placement: placement, - descriptor: Object.assign({}, descriptor) - }; - if (kind !== "field") { - this.disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { - this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); - element.initializer = elementObject.initializer; - } - return element; - }, - toElementFinisherExtras: function toElementFinisherExtras(elementObject) { - var element = this.toElementDescriptor(elementObject); - var finisher = _optionalCallableProperty(elementObject, "finisher"); - var extras = this.toElementDescriptors(elementObject.extras); - return { - element: element, - finisher: finisher, - extras: extras - }; - }, - fromClassDescriptor: function fromClassDescriptor(elements) { - var obj = { - kind: "class", - elements: elements.map(this.fromElementDescriptor, this) - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - return obj; - }, - toClassDescriptor: function toClassDescriptor(obj) { - var kind = String(obj.kind); - if (kind !== "class") { - throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); - } - this.disallowProperty(obj, "key", "A class descriptor"); - this.disallowProperty(obj, "placement", "A class descriptor"); - this.disallowProperty(obj, "descriptor", "A class descriptor"); - this.disallowProperty(obj, "initializer", "A class descriptor"); - this.disallowProperty(obj, "extras", "A class descriptor"); - var finisher = _optionalCallableProperty(obj, "finisher"); - var elements = this.toElementDescriptors(obj.elements); - return { - elements: elements, - finisher: finisher - }; - }, - runClassFinishers: function runClassFinishers(constructor, finishers) { - for (var i = 0; i < finishers.length; i++) { - var newConstructor = (0, finishers[i])(constructor); - if (newConstructor !== undefined) { - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } - constructor = newConstructor; - } - } - return constructor; - }, - disallowProperty: function disallowProperty(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } - } - }; - return api; -} -function _createElementDescriptor(def) { - var key = toPropertyKey(def.key); - var descriptor; - if (def.kind === "method") { - descriptor = { - value: def.value, - writable: true, - configurable: true, - enumerable: false - }; - } else if (def.kind === "get") { - descriptor = { - get: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "set") { - descriptor = { - set: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "field") { - descriptor = { - configurable: true, - writable: true, - enumerable: true - }; - } - var element = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", - descriptor: descriptor - }; - if (def.decorators) element.decorators = def.decorators; - if (def.kind === "field") element.initializer = def.value; - return element; -} -function _coalesceGetterSetter(element, other) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } -} -function _coalesceClassElements(elements) { - var newElements = []; - var isSameElement = function isSameElement(other) { - return other.kind === "method" && other.key === element.key && other.placement === element.placement; - }; - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - var other; - if (element.kind === "method" && (other = newElements.find(isSameElement))) { - if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { - if (_hasDecorators(element) || _hasDecorators(other)) { - throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); - } - other.descriptor = element.descriptor; - } else { - if (_hasDecorators(element)) { - if (_hasDecorators(other)) { - throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); - } - other.decorators = element.decorators; - } - _coalesceGetterSetter(element, other); - } - } else { - newElements.push(element); - } - } - return newElements; -} -function _hasDecorators(element) { - return element.decorators && element.decorators.length; -} -function _isDataDescriptor(desc) { - return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); -} -function _optionalCallableProperty(obj, name) { - var value = obj[name]; - if (value !== undefined && typeof value !== "function") { - throw new TypeError("Expected '" + name + "' to be a function"); - } - return value; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defaults.js b/node_modules/@babel/runtime/helpers/esm/defaults.js deleted file mode 100644 index 9e59e9a8..00000000 --- a/node_modules/@babel/runtime/helpers/esm/defaults.js +++ /dev/null @@ -1,11 +0,0 @@ -export default function _defaults(obj, defaults) { - var keys = Object.getOwnPropertyNames(defaults); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } - } - return obj; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineAccessor.js b/node_modules/@babel/runtime/helpers/esm/defineAccessor.js deleted file mode 100644 index bfa2e315..00000000 --- a/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _defineAccessor(e, r, n, t) { - var c = { - configurable: !0, - enumerable: !0 - }; - return c[e] = t, Object.defineProperty(r, n, c); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js deleted file mode 100644 index 0c04128a..00000000 --- a/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +++ /dev/null @@ -1,19 +0,0 @@ -export default function _defineEnumerableProperties(obj, descs) { - for (var key in descs) { - var desc = descs[key]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, key, desc); - } - if (Object.getOwnPropertySymbols) { - var objectSymbols = Object.getOwnPropertySymbols(descs); - for (var i = 0; i < objectSymbols.length; i++) { - var sym = objectSymbols[i]; - var desc = descs[sym]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, sym, desc); - } - } - return obj; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineProperty.js b/node_modules/@babel/runtime/helpers/esm/defineProperty.js deleted file mode 100644 index 56c06a25..00000000 --- a/node_modules/@babel/runtime/helpers/esm/defineProperty.js +++ /dev/null @@ -1,15 +0,0 @@ -import toPropertyKey from "./toPropertyKey.js"; -export default function _defineProperty(obj, key, value) { - key = toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/dispose.js b/node_modules/@babel/runtime/helpers/esm/dispose.js deleted file mode 100644 index 8bcb79d5..00000000 --- a/node_modules/@babel/runtime/helpers/esm/dispose.js +++ /dev/null @@ -1,27 +0,0 @@ -function dispose_SuppressedError(r, e) { - return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { - this.suppressed = e, this.error = r, this.stack = Error().stack; - }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { - constructor: { - value: dispose_SuppressedError, - writable: !0, - configurable: !0 - } - })), new dispose_SuppressedError(r, e); -} -export default function _dispose(r, e, s) { - function next() { - for (; r.length > 0;) try { - var o = r.pop(), - p = o.d.call(o.v); - if (o.a) return Promise.resolve(p).then(next, err); - } catch (r) { - return err(r); - } - if (s) throw e; - } - function err(r) { - return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); - } - return next(); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/extends.js b/node_modules/@babel/runtime/helpers/esm/extends.js deleted file mode 100644 index ab17131f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/extends.js +++ /dev/null @@ -1,14 +0,0 @@ -export default function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return _extends.apply(this, arguments); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/get.js b/node_modules/@babel/runtime/helpers/esm/get.js deleted file mode 100644 index 0705d5fc..00000000 --- a/node_modules/@babel/runtime/helpers/esm/get.js +++ /dev/null @@ -1,17 +0,0 @@ -import superPropBase from "./superPropBase.js"; -export default function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - _get = Reflect.get.bind(); - } else { - _get = function _get(target, property, receiver) { - var base = superPropBase(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(arguments.length < 3 ? target : receiver); - } - return desc.value; - }; - } - return _get.apply(this, arguments); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js deleted file mode 100644 index e9bb1d54..00000000 --- a/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/identity.js b/node_modules/@babel/runtime/helpers/esm/identity.js deleted file mode 100644 index a1e7e4cd..00000000 --- a/node_modules/@babel/runtime/helpers/esm/identity.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _identity(x) { - return x; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js b/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js deleted file mode 100644 index 176456a0..00000000 --- a/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +++ /dev/null @@ -1,26 +0,0 @@ -export default function _importDeferProxy(e) { - var t = null, - constValue = function constValue(e) { - return function () { - return e; - }; - }, - proxy = function proxy(r) { - return function (n, o, f) { - return null === t && (t = e()), r(t, o, f); - }; - }; - return new Proxy({}, { - defineProperty: constValue(!1), - deleteProperty: constValue(!1), - get: proxy(Reflect.get), - getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), - getPrototypeOf: constValue(null), - isExtensible: constValue(!1), - has: proxy(Reflect.has), - ownKeys: proxy(Reflect.ownKeys), - preventExtensions: constValue(!0), - set: constValue(!1), - setPrototypeOf: constValue(!1) - }); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/inherits.js b/node_modules/@babel/runtime/helpers/esm/inherits.js deleted file mode 100644 index 0b0a0eac..00000000 --- a/node_modules/@babel/runtime/helpers/esm/inherits.js +++ /dev/null @@ -1,17 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -export default function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) setPrototypeOf(subClass, superClass); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js b/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js deleted file mode 100644 index 90bb7965..00000000 --- a/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +++ /dev/null @@ -1,6 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -export default function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - setPrototypeOf(subClass, superClass); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js deleted file mode 100644 index 26fdea08..00000000 --- a/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _initializerDefineProperty(target, property, descriptor, context) { - if (!descriptor) return; - Object.defineProperty(target, property, { - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 - }); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js deleted file mode 100644 index 99d0b417..00000000 --- a/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _initializerWarningHelper(descriptor, context) { - throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/instanceof.js b/node_modules/@babel/runtime/helpers/esm/instanceof.js deleted file mode 100644 index 8c43b717..00000000 --- a/node_modules/@babel/runtime/helpers/esm/instanceof.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _instanceof(left, right) { - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { - return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js deleted file mode 100644 index c2df7b64..00000000 --- a/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js deleted file mode 100644 index df1fbc8f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +++ /dev/null @@ -1,26 +0,0 @@ -import _typeof from "./typeof.js"; -function _getRequireWildcardCache(e) { - if ("function" != typeof WeakMap) return null; - var r = new WeakMap(), - t = new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { - return e ? t : r; - })(e); -} -export default function _interopRequireWildcard(e, r) { - if (!r && e && e.__esModule) return e; - if (null === e || "object" != _typeof(e) && "function" != typeof e) return { - "default": e - }; - var t = _getRequireWildcardCache(r); - if (t && t.has(e)) return t.get(e); - var n = { - __proto__: null - }, - a = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { - var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; - i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; - } - return n["default"] = e, t && t.set(e, n), n; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js b/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js deleted file mode 100644 index 3b475d92..00000000 --- a/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _isNativeFunction(fn) { - try { - return Function.toString.call(fn).indexOf("[native code]") !== -1; - } catch (e) { - return typeof fn === "function"; - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js deleted file mode 100644 index c9b3114b..00000000 --- a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +++ /dev/null @@ -1,8 +0,0 @@ -export default function _isNativeReflectConstruct() { - try { - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - } catch (t) {} - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { - return !!t; - })(); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArray.js b/node_modules/@babel/runtime/helpers/esm/iterableToArray.js deleted file mode 100644 index cfe9fbd3..00000000 --- a/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js deleted file mode 100644 index 89129884..00000000 --- a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +++ /dev/null @@ -1,27 +0,0 @@ -export default function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js deleted file mode 100644 index 4c0e679b..00000000 --- a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _iterableToArrayLimitLoose(e, r) { - var t = e && ("undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]); - if (null != t) { - var o, - l = []; - for (t = t.call(e); e.length < r && !(o = t.next()).done;) l.push(o.value); - return l; - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/jsx.js b/node_modules/@babel/runtime/helpers/esm/jsx.js deleted file mode 100644 index c4fa68c3..00000000 --- a/node_modules/@babel/runtime/helpers/esm/jsx.js +++ /dev/null @@ -1,21 +0,0 @@ -var REACT_ELEMENT_TYPE; -export default function _createRawReactElement(e, r, E, l) { - REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); - var o = e && e.defaultProps, - n = arguments.length - 3; - if (r || 0 === n || (r = { - children: void 0 - }), 1 === n) r.children = l;else if (n > 1) { - for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; - r.children = t; - } - if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); - return { - $$typeof: REACT_ELEMENT_TYPE, - type: e, - key: void 0 === E ? null : "" + E, - ref: null, - props: r, - _owner: null - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js b/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js deleted file mode 100644 index 38fd78fb..00000000 --- a/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +++ /dev/null @@ -1,8 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -export default function _maybeArrayLike(next, arr, i) { - if (arr && !Array.isArray(arr) && typeof arr.length === "number") { - var len = arr.length; - return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); - } - return next(arr, i); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js b/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js deleted file mode 100644 index d6cd8643..00000000 --- a/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _newArrowCheck(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js b/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js deleted file mode 100644 index b349d006..00000000 --- a/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js deleted file mode 100644 index 82d82961..00000000 --- a/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js b/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js deleted file mode 100644 index a1a11b0f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _nullishReceiverError(r) { - throw new TypeError("Cannot set property of null or undefined."); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js deleted file mode 100644 index 251b8595..00000000 --- a/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _objectDestructuringEmpty(obj) { - if (obj == null) throw new TypeError("Cannot destructure " + obj); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread.js b/node_modules/@babel/runtime/helpers/esm/objectSpread.js deleted file mode 100644 index a4e05e56..00000000 --- a/node_modules/@babel/runtime/helpers/esm/objectSpread.js +++ /dev/null @@ -1,16 +0,0 @@ -import defineProperty from "./defineProperty.js"; -export default function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? Object(arguments[i]) : {}; - var ownKeys = Object.keys(source); - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - ownKeys.forEach(function (key) { - defineProperty(target, key, source[key]); - }); - } - return target; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread2.js b/node_modules/@babel/runtime/helpers/esm/objectSpread2.js deleted file mode 100644 index 34487677..00000000 --- a/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +++ /dev/null @@ -1,22 +0,0 @@ -import defineProperty from "./defineProperty.js"; -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -export default function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js deleted file mode 100644 index 36804a39..00000000 --- a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +++ /dev/null @@ -1,16 +0,0 @@ -import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; -export default function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js deleted file mode 100644 index 4b308bde..00000000 --- a/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +++ /dev/null @@ -1,12 +0,0 @@ -export default function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/package.json b/node_modules/@babel/runtime/helpers/esm/package.json deleted file mode 100644 index aead43de..00000000 --- a/node_modules/@babel/runtime/helpers/esm/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js deleted file mode 100644 index 87788244..00000000 --- a/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +++ /dev/null @@ -1,10 +0,0 @@ -import _typeof from "./typeof.js"; -import assertThisInitialized from "./assertThisInitialized.js"; -export default function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return assertThisInitialized(self); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/readOnlyError.js b/node_modules/@babel/runtime/helpers/esm/readOnlyError.js deleted file mode 100644 index 166e40e5..00000000 --- a/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _readOnlyError(name) { - throw new TypeError("\"" + name + "\" is read-only"); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js b/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js deleted file mode 100644 index 2c0a400a..00000000 --- a/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +++ /dev/null @@ -1,303 +0,0 @@ -import _typeof from "./typeof.js"; -export default function _regeneratorRuntime() { - "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - _regeneratorRuntime = function _regeneratorRuntime() { - return e; - }; - var t, - e = {}, - r = Object.prototype, - n = r.hasOwnProperty, - o = Object.defineProperty || function (t, e, r) { - t[e] = r.value; - }, - i = "function" == typeof Symbol ? Symbol : {}, - a = i.iterator || "@@iterator", - c = i.asyncIterator || "@@asyncIterator", - u = i.toStringTag || "@@toStringTag"; - function define(t, e, r) { - return Object.defineProperty(t, e, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }), t[e]; - } - try { - define({}, ""); - } catch (t) { - define = function define(t, e, r) { - return t[e] = r; - }; - } - function wrap(t, e, r, n) { - var i = e && e.prototype instanceof Generator ? e : Generator, - a = Object.create(i.prototype), - c = new Context(n || []); - return o(a, "_invoke", { - value: makeInvokeMethod(t, r, c) - }), a; - } - function tryCatch(t, e, r) { - try { - return { - type: "normal", - arg: t.call(e, r) - }; - } catch (t) { - return { - type: "throw", - arg: t - }; - } - } - e.wrap = wrap; - var h = "suspendedStart", - l = "suspendedYield", - f = "executing", - s = "completed", - y = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - var p = {}; - define(p, a, function () { - return this; - }); - var d = Object.getPrototypeOf, - v = d && d(d(values([]))); - v && v !== r && n.call(v, a) && (p = v); - var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); - function defineIteratorMethods(t) { - ["next", "throw", "return"].forEach(function (e) { - define(t, e, function (t) { - return this._invoke(e, t); - }); - }); - } - function AsyncIterator(t, e) { - function invoke(r, o, i, a) { - var c = tryCatch(t[r], t, o); - if ("throw" !== c.type) { - var u = c.arg, - h = u.value; - return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { - invoke("next", t, i, a); - }, function (t) { - invoke("throw", t, i, a); - }) : e.resolve(h).then(function (t) { - u.value = t, i(u); - }, function (t) { - return invoke("throw", t, i, a); - }); - } - a(c.arg); - } - var r; - o(this, "_invoke", { - value: function value(t, n) { - function callInvokeWithMethodAndArg() { - return new e(function (e, r) { - invoke(t, n, e, r); - }); - } - return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - }); - } - function makeInvokeMethod(e, r, n) { - var o = h; - return function (i, a) { - if (o === f) throw Error("Generator is already running"); - if (o === s) { - if ("throw" === i) throw a; - return { - value: t, - done: !0 - }; - } - for (n.method = i, n.arg = a;;) { - var c = n.delegate; - if (c) { - var u = maybeInvokeDelegate(c, n); - if (u) { - if (u === y) continue; - return u; - } - } - if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { - if (o === h) throw o = s, n.arg; - n.dispatchException(n.arg); - } else "return" === n.method && n.abrupt("return", n.arg); - o = f; - var p = tryCatch(e, r, n); - if ("normal" === p.type) { - if (o = n.done ? s : l, p.arg === y) continue; - return { - value: p.arg, - done: n.done - }; - } - "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); - } - }; - } - function maybeInvokeDelegate(e, r) { - var n = r.method, - o = e.iterator[n]; - if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; - var i = tryCatch(o, e.iterator, r.arg); - if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; - var a = i.arg; - return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); - } - function pushTryEntry(t) { - var e = { - tryLoc: t[0] - }; - 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); - } - function resetTryEntry(t) { - var e = t.completion || {}; - e.type = "normal", delete e.arg, t.completion = e; - } - function Context(t) { - this.tryEntries = [{ - tryLoc: "root" - }], t.forEach(pushTryEntry, this), this.reset(!0); - } - function values(e) { - if (e || "" === e) { - var r = e[a]; - if (r) return r.call(e); - if ("function" == typeof e.next) return e; - if (!isNaN(e.length)) { - var o = -1, - i = function next() { - for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; - return next.value = t, next.done = !0, next; - }; - return i.next = i; - } - } - throw new TypeError(_typeof(e) + " is not iterable"); - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { - value: GeneratorFunctionPrototype, - configurable: !0 - }), o(GeneratorFunctionPrototype, "constructor", { - value: GeneratorFunction, - configurable: !0 - }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { - var e = "function" == typeof t && t.constructor; - return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); - }, e.mark = function (t) { - return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; - }, e.awrap = function (t) { - return { - __await: t - }; - }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { - return this; - }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { - void 0 === i && (i = Promise); - var a = new AsyncIterator(wrap(t, r, n, o), i); - return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { - return t.done ? t.value : a.next(); - }); - }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { - return this; - }), define(g, "toString", function () { - return "[object Generator]"; - }), e.keys = function (t) { - var e = Object(t), - r = []; - for (var n in e) r.push(n); - return r.reverse(), function next() { - for (; r.length;) { - var t = r.pop(); - if (t in e) return next.value = t, next.done = !1, next; - } - return next.done = !0, next; - }; - }, e.values = values, Context.prototype = { - constructor: Context, - reset: function reset(e) { - if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); - }, - stop: function stop() { - this.done = !0; - var t = this.tryEntries[0].completion; - if ("throw" === t.type) throw t.arg; - return this.rval; - }, - dispatchException: function dispatchException(e) { - if (this.done) throw e; - var r = this; - function handle(n, o) { - return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; - } - for (var o = this.tryEntries.length - 1; o >= 0; --o) { - var i = this.tryEntries[o], - a = i.completion; - if ("root" === i.tryLoc) return handle("end"); - if (i.tryLoc <= this.prev) { - var c = n.call(i, "catchLoc"), - u = n.call(i, "finallyLoc"); - if (c && u) { - if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); - if (this.prev < i.finallyLoc) return handle(i.finallyLoc); - } else if (c) { - if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); - } else { - if (!u) throw Error("try statement without catch or finally"); - if (this.prev < i.finallyLoc) return handle(i.finallyLoc); - } - } - } - }, - abrupt: function abrupt(t, e) { - for (var r = this.tryEntries.length - 1; r >= 0; --r) { - var o = this.tryEntries[r]; - if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { - var i = o; - break; - } - } - i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); - var a = i ? i.completion : {}; - return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); - }, - complete: function complete(t, e) { - if ("throw" === t.type) throw t.arg; - return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; - }, - finish: function finish(t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var r = this.tryEntries[e]; - if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; - } - }, - "catch": function _catch(t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var r = this.tryEntries[e]; - if (r.tryLoc === t) { - var n = r.completion; - if ("throw" === n.type) { - var o = n.arg; - resetTryEntry(r); - } - return o; - } - } - throw Error("illegal catch attempt"); - }, - delegateYield: function delegateYield(e, r, n) { - return this.delegate = { - iterator: values(e), - resultName: r, - nextLoc: n - }, "next" === this.method && (this.arg = t), y; - } - }, e; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/set.js b/node_modules/@babel/runtime/helpers/esm/set.js deleted file mode 100644 index c9ee6c72..00000000 --- a/node_modules/@babel/runtime/helpers/esm/set.js +++ /dev/null @@ -1,40 +0,0 @@ -import superPropBase from "./superPropBase.js"; -import defineProperty from "./defineProperty.js"; -function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { - set = function set(target, property, value, receiver) { - var base = superPropBase(target, property); - var desc; - if (base) { - desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.set) { - desc.set.call(receiver, value); - return true; - } else if (!desc.writable) { - return false; - } - } - desc = Object.getOwnPropertyDescriptor(receiver, property); - if (desc) { - if (!desc.writable) { - return false; - } - desc.value = value; - Object.defineProperty(receiver, property, desc); - } else { - defineProperty(receiver, property, value); - } - return true; - }; - } - return set(target, property, value, receiver); -} -export default function _set(target, property, value, receiver, isStrict) { - var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new TypeError('failed to set property'); - } - return value; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/setFunctionName.js b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js deleted file mode 100644 index dc8ae48d..00000000 --- a/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +++ /dev/null @@ -1,11 +0,0 @@ -import _typeof from "./typeof.js"; -export default function setFunctionName(e, t, n) { - "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); - try { - Object.defineProperty(e, "name", { - configurable: !0, - value: n ? n + " " + t : t - }); - } catch (e) {} - return e; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js deleted file mode 100644 index 905e13c0..00000000 --- a/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js b/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js deleted file mode 100644 index cadd9bb5..00000000 --- a/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _skipFirstGeneratorNext(fn) { - return function () { - var it = fn.apply(this, arguments); - it.next(); - return it; - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/slicedToArray.js b/node_modules/@babel/runtime/helpers/esm/slicedToArray.js deleted file mode 100644 index 618200b9..00000000 --- a/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArrayLimit from "./iterableToArrayLimit.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -export default function _slicedToArray(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js b/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js deleted file mode 100644 index efc7429e..00000000 --- a/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -export default function _slicedToArrayLoose(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/superPropBase.js b/node_modules/@babel/runtime/helpers/esm/superPropBase.js deleted file mode 100644 index 605724d7..00000000 --- a/node_modules/@babel/runtime/helpers/esm/superPropBase.js +++ /dev/null @@ -1,8 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -export default function _superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = getPrototypeOf(object); - if (object === null) break; - } - return object; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js deleted file mode 100644 index 990d5e43..00000000 --- a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function _taggedTemplateLiteral(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - return Object.freeze(Object.defineProperties(strings, { - raw: { - value: Object.freeze(raw) - } - })); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js deleted file mode 100644 index 9fcba323..00000000 --- a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - strings.raw = raw; - return strings; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/tdz.js b/node_modules/@babel/runtime/helpers/esm/tdz.js deleted file mode 100644 index d5d0adc8..00000000 --- a/node_modules/@babel/runtime/helpers/esm/tdz.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _tdzError(name) { - throw new ReferenceError(name + " is not defined - temporal dead zone"); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/temporalRef.js b/node_modules/@babel/runtime/helpers/esm/temporalRef.js deleted file mode 100644 index b25f7c44..00000000 --- a/node_modules/@babel/runtime/helpers/esm/temporalRef.js +++ /dev/null @@ -1,5 +0,0 @@ -import undef from "./temporalUndefined.js"; -import err from "./tdz.js"; -export default function _temporalRef(val, name) { - return val === undef ? err(name) : val; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js b/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js deleted file mode 100644 index 1a357173..00000000 --- a/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +++ /dev/null @@ -1 +0,0 @@ -export default function _temporalUndefined() {} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toArray.js b/node_modules/@babel/runtime/helpers/esm/toArray.js deleted file mode 100644 index ad7c871a..00000000 --- a/node_modules/@babel/runtime/helpers/esm/toArray.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArray from "./iterableToArray.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -export default function _toArray(arr) { - return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js b/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js deleted file mode 100644 index bd912855..00000000 --- a/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithoutHoles from "./arrayWithoutHoles.js"; -import iterableToArray from "./iterableToArray.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableSpread from "./nonIterableSpread.js"; -export default function _toConsumableArray(arr) { - return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toPrimitive.js b/node_modules/@babel/runtime/helpers/esm/toPrimitive.js deleted file mode 100644 index 56b19f5a..00000000 --- a/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +++ /dev/null @@ -1,11 +0,0 @@ -import _typeof from "./typeof.js"; -export default function toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js b/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js deleted file mode 100644 index 3cda5c5c..00000000 --- a/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +++ /dev/null @@ -1,6 +0,0 @@ -import _typeof from "./typeof.js"; -import toPrimitive from "./toPrimitive.js"; -export default function toPropertyKey(t) { - var i = toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : i + ""; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toSetter.js b/node_modules/@babel/runtime/helpers/esm/toSetter.js deleted file mode 100644 index a4eec55f..00000000 --- a/node_modules/@babel/runtime/helpers/esm/toSetter.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _toSetter(t, e, n) { - e || (e = []); - var r = e.length++; - return Object.defineProperty({}, "_", { - set: function set(o) { - e[r] = o, t.apply(n, e); - } - }); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/typeof.js b/node_modules/@babel/runtime/helpers/esm/typeof.js deleted file mode 100644 index 013eb727..00000000 --- a/node_modules/@babel/runtime/helpers/esm/typeof.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js b/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js deleted file mode 100644 index c0f63bd5..00000000 --- a/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +++ /dev/null @@ -1,9 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -export default function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/using.js b/node_modules/@babel/runtime/helpers/esm/using.js deleted file mode 100644 index 6918b2d3..00000000 --- a/node_modules/@babel/runtime/helpers/esm/using.js +++ /dev/null @@ -1,11 +0,0 @@ -export default function _using(o, n, e) { - if (null == n) return n; - if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); - return o.push({ - v: n, - d: r, - a: e - }), n; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/usingCtx.js b/node_modules/@babel/runtime/helpers/esm/usingCtx.js deleted file mode 100644 index b9d36f19..00000000 --- a/node_modules/@babel/runtime/helpers/esm/usingCtx.js +++ /dev/null @@ -1,43 +0,0 @@ -export default function _usingCtx() { - var r = "function" == typeof SuppressedError ? SuppressedError : function (r, n) { - var e = Error(); - return e.name = "SuppressedError", e.suppressed = n, e.error = r, e; - }, - n = {}, - e = []; - function using(r, n) { - if (null != n) { - if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (r) var o = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == o && (o = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof o) throw new TypeError("Property [Symbol.dispose] is not a function."); - e.push({ - v: n, - d: o, - a: r - }); - } - return n; - } - return { - e: n, - u: using.bind(null, !1), - a: using.bind(null, !0), - d: function d() { - var o = this.e; - function next() { - for (; r = e.pop();) try { - var r, - t = r.d.call(r.v); - if (r.a) return Promise.resolve(t).then(next, err); - } catch (r) { - return err(r); - } - if (o !== n) throw o; - } - function err(e) { - return o = o !== n ? new r(o, e) : e, next(); - } - return next(); - } - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js deleted file mode 100644 index 723b2dda..00000000 --- a/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +++ /dev/null @@ -1,6 +0,0 @@ -import AsyncGenerator from "./AsyncGenerator.js"; -export default function _wrapAsyncGenerator(fn) { - return function () { - return new AsyncGenerator(fn.apply(this, arguments)); - }; -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js deleted file mode 100644 index 43d0ded7..00000000 --- a/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +++ /dev/null @@ -1,30 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -import isNativeFunction from "./isNativeFunction.js"; -import construct from "./construct.js"; -export default function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return construct(Class, arguments, getPrototypeOf(this).constructor); - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return setPrototypeOf(Wrapper, Class); - }; - return _wrapNativeSuper(Class); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js b/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js deleted file mode 100644 index 1d22b169..00000000 --- a/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +++ /dev/null @@ -1,50 +0,0 @@ -import _typeof from "./typeof.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -import inherits from "./inherits.js"; -export default function _wrapRegExp() { - _wrapRegExp = function _wrapRegExp(e, r) { - return new BabelRegExp(e, void 0, r); - }; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = RegExp(e, t); - return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { - var t = o[r]; - return "$" + (Array.isArray(t) ? t.join("$") : t); - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js b/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js deleted file mode 100644 index 9170bd45..00000000 --- a/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _writeOnlyError(name) { - throw new TypeError("\"" + name + "\" is write-only"); -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/extends.js b/node_modules/@babel/runtime/helpers/extends.js deleted file mode 100644 index bb111607..00000000 --- a/node_modules/@babel/runtime/helpers/extends.js +++ /dev/null @@ -1,15 +0,0 @@ -function _extends() { - module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _extends.apply(this, arguments); -} -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/get.js b/node_modules/@babel/runtime/helpers/get.js deleted file mode 100644 index 9b44d2fb..00000000 --- a/node_modules/@babel/runtime/helpers/get.js +++ /dev/null @@ -1,18 +0,0 @@ -var superPropBase = require("./superPropBase.js"); -function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; - } else { - module.exports = _get = function _get(target, property, receiver) { - var base = superPropBase(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(arguments.length < 3 ? target : receiver); - } - return desc.value; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - } - return _get.apply(this, arguments); -} -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/getPrototypeOf.js deleted file mode 100644 index 0639a655..00000000 --- a/node_modules/@babel/runtime/helpers/getPrototypeOf.js +++ /dev/null @@ -1,7 +0,0 @@ -function _getPrototypeOf(o) { - module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _getPrototypeOf(o); -} -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/identity.js b/node_modules/@babel/runtime/helpers/identity.js deleted file mode 100644 index 7dd82dc7..00000000 --- a/node_modules/@babel/runtime/helpers/identity.js +++ /dev/null @@ -1,4 +0,0 @@ -function _identity(x) { - return x; -} -module.exports = _identity, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/importDeferProxy.js b/node_modules/@babel/runtime/helpers/importDeferProxy.js deleted file mode 100644 index cffaae65..00000000 --- a/node_modules/@babel/runtime/helpers/importDeferProxy.js +++ /dev/null @@ -1,27 +0,0 @@ -function _importDeferProxy(e) { - var t = null, - constValue = function constValue(e) { - return function () { - return e; - }; - }, - proxy = function proxy(r) { - return function (n, o, f) { - return null === t && (t = e()), r(t, o, f); - }; - }; - return new Proxy({}, { - defineProperty: constValue(!1), - deleteProperty: constValue(!1), - get: proxy(Reflect.get), - getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), - getPrototypeOf: constValue(null), - isExtensible: constValue(!1), - has: proxy(Reflect.has), - ownKeys: proxy(Reflect.ownKeys), - preventExtensions: constValue(!0), - set: constValue(!1), - setPrototypeOf: constValue(!1) - }); -} -module.exports = _importDeferProxy, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/inherits.js b/node_modules/@babel/runtime/helpers/inherits.js deleted file mode 100644 index 6521cce3..00000000 --- a/node_modules/@babel/runtime/helpers/inherits.js +++ /dev/null @@ -1,18 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) setPrototypeOf(subClass, superClass); -} -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/inheritsLoose.js b/node_modules/@babel/runtime/helpers/inheritsLoose.js deleted file mode 100644 index 19a60c93..00000000 --- a/node_modules/@babel/runtime/helpers/inheritsLoose.js +++ /dev/null @@ -1,7 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - setPrototypeOf(subClass, superClass); -} -module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/initializerDefineProperty.js deleted file mode 100644 index 7f35d503..00000000 --- a/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +++ /dev/null @@ -1,10 +0,0 @@ -function _initializerDefineProperty(target, property, descriptor, context) { - if (!descriptor) return; - Object.defineProperty(target, property, { - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 - }); -} -module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/initializerWarningHelper.js deleted file mode 100644 index 061f420a..00000000 --- a/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +++ /dev/null @@ -1,4 +0,0 @@ -function _initializerWarningHelper(descriptor, context) { - throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); -} -module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/instanceof.js b/node_modules/@babel/runtime/helpers/instanceof.js deleted file mode 100644 index bc3d9e7f..00000000 --- a/node_modules/@babel/runtime/helpers/instanceof.js +++ /dev/null @@ -1,8 +0,0 @@ -function _instanceof(left, right) { - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { - return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } -} -module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/interopRequireDefault.js deleted file mode 100644 index 429b270d..00000000 --- a/node_modules/@babel/runtime/helpers/interopRequireDefault.js +++ /dev/null @@ -1,6 +0,0 @@ -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; -} -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/interopRequireWildcard.js deleted file mode 100644 index 41411cc3..00000000 --- a/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +++ /dev/null @@ -1,27 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _getRequireWildcardCache(e) { - if ("function" != typeof WeakMap) return null; - var r = new WeakMap(), - t = new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { - return e ? t : r; - })(e); -} -function _interopRequireWildcard(e, r) { - if (!r && e && e.__esModule) return e; - if (null === e || "object" != _typeof(e) && "function" != typeof e) return { - "default": e - }; - var t = _getRequireWildcardCache(r); - if (t && t.has(e)) return t.get(e); - var n = { - __proto__: null - }, - a = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { - var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; - i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; - } - return n["default"] = e, t && t.set(e, n), n; -} -module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/isNativeFunction.js b/node_modules/@babel/runtime/helpers/isNativeFunction.js deleted file mode 100644 index c9d7e07f..00000000 --- a/node_modules/@babel/runtime/helpers/isNativeFunction.js +++ /dev/null @@ -1,8 +0,0 @@ -function _isNativeFunction(fn) { - try { - return Function.toString.call(fn).indexOf("[native code]") !== -1; - } catch (e) { - return typeof fn === "function"; - } -} -module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js deleted file mode 100644 index b677e107..00000000 --- a/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +++ /dev/null @@ -1,9 +0,0 @@ -function _isNativeReflectConstruct() { - try { - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - } catch (t) {} - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { - return !!t; - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); -} -module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/iterableToArray.js b/node_modules/@babel/runtime/helpers/iterableToArray.js deleted file mode 100644 index 89607526..00000000 --- a/node_modules/@babel/runtime/helpers/iterableToArray.js +++ /dev/null @@ -1,4 +0,0 @@ -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js deleted file mode 100644 index 2671778b..00000000 --- a/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +++ /dev/null @@ -1,28 +0,0 @@ -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js b/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js deleted file mode 100644 index 718a5b15..00000000 --- a/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +++ /dev/null @@ -1,10 +0,0 @@ -function _iterableToArrayLimitLoose(e, r) { - var t = e && ("undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]); - if (null != t) { - var o, - l = []; - for (t = t.call(e); e.length < r && !(o = t.next()).done;) l.push(o.value); - return l; - } -} -module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/jsx.js b/node_modules/@babel/runtime/helpers/jsx.js deleted file mode 100644 index 3415eead..00000000 --- a/node_modules/@babel/runtime/helpers/jsx.js +++ /dev/null @@ -1,22 +0,0 @@ -var REACT_ELEMENT_TYPE; -function _createRawReactElement(e, r, E, l) { - REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); - var o = e && e.defaultProps, - n = arguments.length - 3; - if (r || 0 === n || (r = { - children: void 0 - }), 1 === n) r.children = l;else if (n > 1) { - for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; - r.children = t; - } - if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); - return { - $$typeof: REACT_ELEMENT_TYPE, - type: e, - key: void 0 === E ? null : "" + E, - ref: null, - props: r, - _owner: null - }; -} -module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/maybeArrayLike.js b/node_modules/@babel/runtime/helpers/maybeArrayLike.js deleted file mode 100644 index 5d000975..00000000 --- a/node_modules/@babel/runtime/helpers/maybeArrayLike.js +++ /dev/null @@ -1,9 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _maybeArrayLike(next, arr, i) { - if (arr && !Array.isArray(arr) && typeof arr.length === "number") { - var len = arr.length; - return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); - } - return next(arr, i); -} -module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/newArrowCheck.js b/node_modules/@babel/runtime/helpers/newArrowCheck.js deleted file mode 100644 index 9c680c8d..00000000 --- a/node_modules/@babel/runtime/helpers/newArrowCheck.js +++ /dev/null @@ -1,6 +0,0 @@ -function _newArrowCheck(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } -} -module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/nonIterableRest.js b/node_modules/@babel/runtime/helpers/nonIterableRest.js deleted file mode 100644 index 95265ba3..00000000 --- a/node_modules/@babel/runtime/helpers/nonIterableRest.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/nonIterableSpread.js deleted file mode 100644 index 3fcf23f0..00000000 --- a/node_modules/@babel/runtime/helpers/nonIterableSpread.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/nullishReceiverError.js b/node_modules/@babel/runtime/helpers/nullishReceiverError.js deleted file mode 100644 index 970e0231..00000000 --- a/node_modules/@babel/runtime/helpers/nullishReceiverError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nullishReceiverError(r) { - throw new TypeError("Cannot set property of null or undefined."); -} -module.exports = _nullishReceiverError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js deleted file mode 100644 index 5b405e00..00000000 --- a/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +++ /dev/null @@ -1,4 +0,0 @@ -function _objectDestructuringEmpty(obj) { - if (obj == null) throw new TypeError("Cannot destructure " + obj); -} -module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectSpread.js b/node_modules/@babel/runtime/helpers/objectSpread.js deleted file mode 100644 index f3934031..00000000 --- a/node_modules/@babel/runtime/helpers/objectSpread.js +++ /dev/null @@ -1,17 +0,0 @@ -var defineProperty = require("./defineProperty.js"); -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? Object(arguments[i]) : {}; - var ownKeys = Object.keys(source); - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - ownKeys.forEach(function (key) { - defineProperty(target, key, source[key]); - }); - } - return target; -} -module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectSpread2.js b/node_modules/@babel/runtime/helpers/objectSpread2.js deleted file mode 100644 index 4f3b9fa0..00000000 --- a/node_modules/@babel/runtime/helpers/objectSpread2.js +++ /dev/null @@ -1,23 +0,0 @@ -var defineProperty = require("./defineProperty.js"); -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/objectWithoutProperties.js deleted file mode 100644 index cf526bc8..00000000 --- a/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +++ /dev/null @@ -1,17 +0,0 @@ -var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js deleted file mode 100644 index 3c65a9db..00000000 --- a/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +++ /dev/null @@ -1,13 +0,0 @@ -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js deleted file mode 100644 index b2424b00..00000000 --- a/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +++ /dev/null @@ -1,11 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var assertThisInitialized = require("./assertThisInitialized.js"); -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return assertThisInitialized(self); -} -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/readOnlyError.js b/node_modules/@babel/runtime/helpers/readOnlyError.js deleted file mode 100644 index 6637a0e0..00000000 --- a/node_modules/@babel/runtime/helpers/readOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _readOnlyError(name) { - throw new TypeError("\"" + name + "\" is read-only"); -} -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/regeneratorRuntime.js b/node_modules/@babel/runtime/helpers/regeneratorRuntime.js deleted file mode 100644 index f33e4945..00000000 --- a/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +++ /dev/null @@ -1,304 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _regeneratorRuntime() { - "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - module.exports = _regeneratorRuntime = function _regeneratorRuntime() { - return e; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - var t, - e = {}, - r = Object.prototype, - n = r.hasOwnProperty, - o = Object.defineProperty || function (t, e, r) { - t[e] = r.value; - }, - i = "function" == typeof Symbol ? Symbol : {}, - a = i.iterator || "@@iterator", - c = i.asyncIterator || "@@asyncIterator", - u = i.toStringTag || "@@toStringTag"; - function define(t, e, r) { - return Object.defineProperty(t, e, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }), t[e]; - } - try { - define({}, ""); - } catch (t) { - define = function define(t, e, r) { - return t[e] = r; - }; - } - function wrap(t, e, r, n) { - var i = e && e.prototype instanceof Generator ? e : Generator, - a = Object.create(i.prototype), - c = new Context(n || []); - return o(a, "_invoke", { - value: makeInvokeMethod(t, r, c) - }), a; - } - function tryCatch(t, e, r) { - try { - return { - type: "normal", - arg: t.call(e, r) - }; - } catch (t) { - return { - type: "throw", - arg: t - }; - } - } - e.wrap = wrap; - var h = "suspendedStart", - l = "suspendedYield", - f = "executing", - s = "completed", - y = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - var p = {}; - define(p, a, function () { - return this; - }); - var d = Object.getPrototypeOf, - v = d && d(d(values([]))); - v && v !== r && n.call(v, a) && (p = v); - var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); - function defineIteratorMethods(t) { - ["next", "throw", "return"].forEach(function (e) { - define(t, e, function (t) { - return this._invoke(e, t); - }); - }); - } - function AsyncIterator(t, e) { - function invoke(r, o, i, a) { - var c = tryCatch(t[r], t, o); - if ("throw" !== c.type) { - var u = c.arg, - h = u.value; - return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { - invoke("next", t, i, a); - }, function (t) { - invoke("throw", t, i, a); - }) : e.resolve(h).then(function (t) { - u.value = t, i(u); - }, function (t) { - return invoke("throw", t, i, a); - }); - } - a(c.arg); - } - var r; - o(this, "_invoke", { - value: function value(t, n) { - function callInvokeWithMethodAndArg() { - return new e(function (e, r) { - invoke(t, n, e, r); - }); - } - return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - }); - } - function makeInvokeMethod(e, r, n) { - var o = h; - return function (i, a) { - if (o === f) throw Error("Generator is already running"); - if (o === s) { - if ("throw" === i) throw a; - return { - value: t, - done: !0 - }; - } - for (n.method = i, n.arg = a;;) { - var c = n.delegate; - if (c) { - var u = maybeInvokeDelegate(c, n); - if (u) { - if (u === y) continue; - return u; - } - } - if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { - if (o === h) throw o = s, n.arg; - n.dispatchException(n.arg); - } else "return" === n.method && n.abrupt("return", n.arg); - o = f; - var p = tryCatch(e, r, n); - if ("normal" === p.type) { - if (o = n.done ? s : l, p.arg === y) continue; - return { - value: p.arg, - done: n.done - }; - } - "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); - } - }; - } - function maybeInvokeDelegate(e, r) { - var n = r.method, - o = e.iterator[n]; - if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; - var i = tryCatch(o, e.iterator, r.arg); - if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; - var a = i.arg; - return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); - } - function pushTryEntry(t) { - var e = { - tryLoc: t[0] - }; - 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); - } - function resetTryEntry(t) { - var e = t.completion || {}; - e.type = "normal", delete e.arg, t.completion = e; - } - function Context(t) { - this.tryEntries = [{ - tryLoc: "root" - }], t.forEach(pushTryEntry, this), this.reset(!0); - } - function values(e) { - if (e || "" === e) { - var r = e[a]; - if (r) return r.call(e); - if ("function" == typeof e.next) return e; - if (!isNaN(e.length)) { - var o = -1, - i = function next() { - for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; - return next.value = t, next.done = !0, next; - }; - return i.next = i; - } - } - throw new TypeError(_typeof(e) + " is not iterable"); - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { - value: GeneratorFunctionPrototype, - configurable: !0 - }), o(GeneratorFunctionPrototype, "constructor", { - value: GeneratorFunction, - configurable: !0 - }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { - var e = "function" == typeof t && t.constructor; - return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); - }, e.mark = function (t) { - return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; - }, e.awrap = function (t) { - return { - __await: t - }; - }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { - return this; - }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { - void 0 === i && (i = Promise); - var a = new AsyncIterator(wrap(t, r, n, o), i); - return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { - return t.done ? t.value : a.next(); - }); - }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { - return this; - }), define(g, "toString", function () { - return "[object Generator]"; - }), e.keys = function (t) { - var e = Object(t), - r = []; - for (var n in e) r.push(n); - return r.reverse(), function next() { - for (; r.length;) { - var t = r.pop(); - if (t in e) return next.value = t, next.done = !1, next; - } - return next.done = !0, next; - }; - }, e.values = values, Context.prototype = { - constructor: Context, - reset: function reset(e) { - if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); - }, - stop: function stop() { - this.done = !0; - var t = this.tryEntries[0].completion; - if ("throw" === t.type) throw t.arg; - return this.rval; - }, - dispatchException: function dispatchException(e) { - if (this.done) throw e; - var r = this; - function handle(n, o) { - return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; - } - for (var o = this.tryEntries.length - 1; o >= 0; --o) { - var i = this.tryEntries[o], - a = i.completion; - if ("root" === i.tryLoc) return handle("end"); - if (i.tryLoc <= this.prev) { - var c = n.call(i, "catchLoc"), - u = n.call(i, "finallyLoc"); - if (c && u) { - if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); - if (this.prev < i.finallyLoc) return handle(i.finallyLoc); - } else if (c) { - if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); - } else { - if (!u) throw Error("try statement without catch or finally"); - if (this.prev < i.finallyLoc) return handle(i.finallyLoc); - } - } - } - }, - abrupt: function abrupt(t, e) { - for (var r = this.tryEntries.length - 1; r >= 0; --r) { - var o = this.tryEntries[r]; - if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { - var i = o; - break; - } - } - i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); - var a = i ? i.completion : {}; - return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); - }, - complete: function complete(t, e) { - if ("throw" === t.type) throw t.arg; - return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; - }, - finish: function finish(t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var r = this.tryEntries[e]; - if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; - } - }, - "catch": function _catch(t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var r = this.tryEntries[e]; - if (r.tryLoc === t) { - var n = r.completion; - if ("throw" === n.type) { - var o = n.arg; - resetTryEntry(r); - } - return o; - } - } - throw Error("illegal catch attempt"); - }, - delegateYield: function delegateYield(e, r, n) { - return this.delegate = { - iterator: values(e), - resultName: r, - nextLoc: n - }, "next" === this.method && (this.arg = t), y; - } - }, e; -} -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/set.js b/node_modules/@babel/runtime/helpers/set.js deleted file mode 100644 index e1356241..00000000 --- a/node_modules/@babel/runtime/helpers/set.js +++ /dev/null @@ -1,41 +0,0 @@ -var superPropBase = require("./superPropBase.js"); -var defineProperty = require("./defineProperty.js"); -function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { - set = function set(target, property, value, receiver) { - var base = superPropBase(target, property); - var desc; - if (base) { - desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.set) { - desc.set.call(receiver, value); - return true; - } else if (!desc.writable) { - return false; - } - } - desc = Object.getOwnPropertyDescriptor(receiver, property); - if (desc) { - if (!desc.writable) { - return false; - } - desc.value = value; - Object.defineProperty(receiver, property, desc); - } else { - defineProperty(receiver, property, value); - } - return true; - }; - } - return set(target, property, value, receiver); -} -function _set(target, property, value, receiver, isStrict) { - var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new TypeError('failed to set property'); - } - return value; -} -module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/setFunctionName.js b/node_modules/@babel/runtime/helpers/setFunctionName.js deleted file mode 100644 index 9664076a..00000000 --- a/node_modules/@babel/runtime/helpers/setFunctionName.js +++ /dev/null @@ -1,12 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function setFunctionName(e, t, n) { - "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); - try { - Object.defineProperty(e, "name", { - configurable: !0, - value: n ? n + " " + t : t - }); - } catch (e) {} - return e; -} -module.exports = setFunctionName, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/setPrototypeOf.js deleted file mode 100644 index e0d8b518..00000000 --- a/node_modules/@babel/runtime/helpers/setPrototypeOf.js +++ /dev/null @@ -1,8 +0,0 @@ -function _setPrototypeOf(o, p) { - module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _setPrototypeOf(o, p); -} -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js b/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js deleted file mode 100644 index ca269aad..00000000 --- a/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +++ /dev/null @@ -1,8 +0,0 @@ -function _skipFirstGeneratorNext(fn) { - return function () { - var it = fn.apply(this, arguments); - it.next(); - return it; - }; -} -module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/slicedToArray.js b/node_modules/@babel/runtime/helpers/slicedToArray.js deleted file mode 100644 index 534b61aa..00000000 --- a/node_modules/@babel/runtime/helpers/slicedToArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArrayLimit = require("./iterableToArrayLimit.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _slicedToArray(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js b/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js deleted file mode 100644 index b1989b48..00000000 --- a/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArrayLimitLoose = require("./iterableToArrayLimitLoose.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _slicedToArrayLoose(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} -module.exports = _slicedToArrayLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/superPropBase.js b/node_modules/@babel/runtime/helpers/superPropBase.js deleted file mode 100644 index e43a0293..00000000 --- a/node_modules/@babel/runtime/helpers/superPropBase.js +++ /dev/null @@ -1,9 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -function _superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = getPrototypeOf(object); - if (object === null) break; - } - return object; -} -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js b/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js deleted file mode 100644 index 1ab0e7a2..00000000 --- a/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +++ /dev/null @@ -1,11 +0,0 @@ -function _taggedTemplateLiteral(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - return Object.freeze(Object.defineProperties(strings, { - raw: { - value: Object.freeze(raw) - } - })); -} -module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js deleted file mode 100644 index 904e1a7d..00000000 --- a/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +++ /dev/null @@ -1,8 +0,0 @@ -function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - strings.raw = raw; - return strings; -} -module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/tdz.js b/node_modules/@babel/runtime/helpers/tdz.js deleted file mode 100644 index 0641c76d..00000000 --- a/node_modules/@babel/runtime/helpers/tdz.js +++ /dev/null @@ -1,4 +0,0 @@ -function _tdzError(name) { - throw new ReferenceError(name + " is not defined - temporal dead zone"); -} -module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/temporalRef.js b/node_modules/@babel/runtime/helpers/temporalRef.js deleted file mode 100644 index a9be53d2..00000000 --- a/node_modules/@babel/runtime/helpers/temporalRef.js +++ /dev/null @@ -1,6 +0,0 @@ -var temporalUndefined = require("./temporalUndefined.js"); -var tdz = require("./tdz.js"); -function _temporalRef(val, name) { - return val === temporalUndefined ? tdz(name) : val; -} -module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/temporalUndefined.js b/node_modules/@babel/runtime/helpers/temporalUndefined.js deleted file mode 100644 index f8def800..00000000 --- a/node_modules/@babel/runtime/helpers/temporalUndefined.js +++ /dev/null @@ -1,2 +0,0 @@ -function _temporalUndefined() {} -module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toArray.js b/node_modules/@babel/runtime/helpers/toArray.js deleted file mode 100644 index 5c808c2e..00000000 --- a/node_modules/@babel/runtime/helpers/toArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArray = require("./iterableToArray.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _toArray(arr) { - return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); -} -module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toConsumableArray.js b/node_modules/@babel/runtime/helpers/toConsumableArray.js deleted file mode 100644 index 547c6c44..00000000 --- a/node_modules/@babel/runtime/helpers/toConsumableArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithoutHoles = require("./arrayWithoutHoles.js"); -var iterableToArray = require("./iterableToArray.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableSpread = require("./nonIterableSpread.js"); -function _toConsumableArray(arr) { - return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); -} -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toPrimitive.js b/node_modules/@babel/runtime/helpers/toPrimitive.js deleted file mode 100644 index ef9d249b..00000000 --- a/node_modules/@babel/runtime/helpers/toPrimitive.js +++ /dev/null @@ -1,12 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toPropertyKey.js b/node_modules/@babel/runtime/helpers/toPropertyKey.js deleted file mode 100644 index 3ca3d4fc..00000000 --- a/node_modules/@babel/runtime/helpers/toPropertyKey.js +++ /dev/null @@ -1,7 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var toPrimitive = require("./toPrimitive.js"); -function toPropertyKey(t) { - var i = toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : i + ""; -} -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toSetter.js b/node_modules/@babel/runtime/helpers/toSetter.js deleted file mode 100644 index e0012a8f..00000000 --- a/node_modules/@babel/runtime/helpers/toSetter.js +++ /dev/null @@ -1,10 +0,0 @@ -function _toSetter(t, e, n) { - e || (e = []); - var r = e.length++; - return Object.defineProperty({}, "_", { - set: function set(o) { - e[r] = o, t.apply(n, e); - } - }); -} -module.exports = _toSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/typeof.js b/node_modules/@babel/runtime/helpers/typeof.js deleted file mode 100644 index 64a8ecf7..00000000 --- a/node_modules/@babel/runtime/helpers/typeof.js +++ /dev/null @@ -1,10 +0,0 @@ -function _typeof(o) { - "@babel/helpers - typeof"; - - return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); -} -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js b/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js deleted file mode 100644 index b7d18c6a..00000000 --- a/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +++ /dev/null @@ -1,10 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); -} -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/using.js b/node_modules/@babel/runtime/helpers/using.js deleted file mode 100644 index 37c79e2c..00000000 --- a/node_modules/@babel/runtime/helpers/using.js +++ /dev/null @@ -1,12 +0,0 @@ -function _using(o, n, e) { - if (null == n) return n; - if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); - return o.push({ - v: n, - d: r, - a: e - }), n; -} -module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/usingCtx.js b/node_modules/@babel/runtime/helpers/usingCtx.js deleted file mode 100644 index d1a1501f..00000000 --- a/node_modules/@babel/runtime/helpers/usingCtx.js +++ /dev/null @@ -1,44 +0,0 @@ -function _usingCtx() { - var r = "function" == typeof SuppressedError ? SuppressedError : function (r, n) { - var e = Error(); - return e.name = "SuppressedError", e.suppressed = n, e.error = r, e; - }, - n = {}, - e = []; - function using(r, n) { - if (null != n) { - if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (r) var o = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == o && (o = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof o) throw new TypeError("Property [Symbol.dispose] is not a function."); - e.push({ - v: n, - d: o, - a: r - }); - } - return n; - } - return { - e: n, - u: using.bind(null, !1), - a: using.bind(null, !0), - d: function d() { - var o = this.e; - function next() { - for (; r = e.pop();) try { - var r, - t = r.d.call(r.v); - if (r.a) return Promise.resolve(t).then(next, err); - } catch (r) { - return err(r); - } - if (o !== n) throw o; - } - function err(e) { - return o = o !== n ? new r(o, e) : e, next(); - } - return next(); - } - }; -} -module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js deleted file mode 100644 index a62dcf02..00000000 --- a/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +++ /dev/null @@ -1,7 +0,0 @@ -var AsyncGenerator = require("./AsyncGenerator.js"); -function _wrapAsyncGenerator(fn) { - return function () { - return new AsyncGenerator(fn.apply(this, arguments)); - }; -} -module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/wrapNativeSuper.js deleted file mode 100644 index b6ea60c6..00000000 --- a/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +++ /dev/null @@ -1,31 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var setPrototypeOf = require("./setPrototypeOf.js"); -var isNativeFunction = require("./isNativeFunction.js"); -var construct = require("./construct.js"); -function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return construct(Class, arguments, getPrototypeOf(this).constructor); - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return setPrototypeOf(Wrapper, Class); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _wrapNativeSuper(Class); -} -module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/wrapRegExp.js b/node_modules/@babel/runtime/helpers/wrapRegExp.js deleted file mode 100644 index c5271688..00000000 --- a/node_modules/@babel/runtime/helpers/wrapRegExp.js +++ /dev/null @@ -1,51 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setPrototypeOf = require("./setPrototypeOf.js"); -var inherits = require("./inherits.js"); -function _wrapRegExp() { - module.exports = _wrapRegExp = function _wrapRegExp(e, r) { - return new BabelRegExp(e, void 0, r); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = RegExp(e, t); - return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { - var t = o[r]; - return "$" + (Array.isArray(t) ? t.join("$") : t); - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/writeOnlyError.js b/node_modules/@babel/runtime/helpers/writeOnlyError.js deleted file mode 100644 index c66c6f29..00000000 --- a/node_modules/@babel/runtime/helpers/writeOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _writeOnlyError(name) { - throw new TypeError("\"" + name + "\" is write-only"); -} -module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/package.json b/node_modules/@babel/runtime/package.json deleted file mode 100644 index 376ac567..00000000 --- a/node_modules/@babel/runtime/package.json +++ /dev/null @@ -1,1065 +0,0 @@ -{ - "name": "@babel/runtime", - "version": "7.24.4", - "description": "babel's modular runtime helpers", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-runtime" - }, - "homepage": "https://babel.dev/docs/en/next/babel-runtime", - "author": "The Babel Team (https://babel.dev/team)", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "exports": { - "./helpers/AsyncGenerator": [ - { - "node": "./helpers/AsyncGenerator.js", - "import": "./helpers/esm/AsyncGenerator.js", - "default": "./helpers/AsyncGenerator.js" - }, - "./helpers/AsyncGenerator.js" - ], - "./helpers/esm/AsyncGenerator": "./helpers/esm/AsyncGenerator.js", - "./helpers/OverloadYield": [ - { - "node": "./helpers/OverloadYield.js", - "import": "./helpers/esm/OverloadYield.js", - "default": "./helpers/OverloadYield.js" - }, - "./helpers/OverloadYield.js" - ], - "./helpers/esm/OverloadYield": "./helpers/esm/OverloadYield.js", - "./helpers/applyDecs": [ - { - "node": "./helpers/applyDecs.js", - "import": "./helpers/esm/applyDecs.js", - "default": "./helpers/applyDecs.js" - }, - "./helpers/applyDecs.js" - ], - "./helpers/esm/applyDecs": "./helpers/esm/applyDecs.js", - "./helpers/applyDecs2203": [ - { - "node": "./helpers/applyDecs2203.js", - "import": "./helpers/esm/applyDecs2203.js", - "default": "./helpers/applyDecs2203.js" - }, - "./helpers/applyDecs2203.js" - ], - "./helpers/esm/applyDecs2203": "./helpers/esm/applyDecs2203.js", - "./helpers/applyDecs2203R": [ - { - "node": "./helpers/applyDecs2203R.js", - "import": "./helpers/esm/applyDecs2203R.js", - "default": "./helpers/applyDecs2203R.js" - }, - "./helpers/applyDecs2203R.js" - ], - "./helpers/esm/applyDecs2203R": "./helpers/esm/applyDecs2203R.js", - "./helpers/applyDecs2301": [ - { - "node": "./helpers/applyDecs2301.js", - "import": "./helpers/esm/applyDecs2301.js", - "default": "./helpers/applyDecs2301.js" - }, - "./helpers/applyDecs2301.js" - ], - "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", - "./helpers/applyDecs2305": [ - { - "node": "./helpers/applyDecs2305.js", - "import": "./helpers/esm/applyDecs2305.js", - "default": "./helpers/applyDecs2305.js" - }, - "./helpers/applyDecs2305.js" - ], - "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", - "./helpers/applyDecs2311": [ - { - "node": "./helpers/applyDecs2311.js", - "import": "./helpers/esm/applyDecs2311.js", - "default": "./helpers/applyDecs2311.js" - }, - "./helpers/applyDecs2311.js" - ], - "./helpers/esm/applyDecs2311": "./helpers/esm/applyDecs2311.js", - "./helpers/assertClassBrand": [ - { - "node": "./helpers/assertClassBrand.js", - "import": "./helpers/esm/assertClassBrand.js", - "default": "./helpers/assertClassBrand.js" - }, - "./helpers/assertClassBrand.js" - ], - "./helpers/esm/assertClassBrand": "./helpers/esm/assertClassBrand.js", - "./helpers/asyncGeneratorDelegate": [ - { - "node": "./helpers/asyncGeneratorDelegate.js", - "import": "./helpers/esm/asyncGeneratorDelegate.js", - "default": "./helpers/asyncGeneratorDelegate.js" - }, - "./helpers/asyncGeneratorDelegate.js" - ], - "./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js", - "./helpers/asyncIterator": [ - { - "node": "./helpers/asyncIterator.js", - "import": "./helpers/esm/asyncIterator.js", - "default": "./helpers/asyncIterator.js" - }, - "./helpers/asyncIterator.js" - ], - "./helpers/esm/asyncIterator": "./helpers/esm/asyncIterator.js", - "./helpers/awaitAsyncGenerator": [ - { - "node": "./helpers/awaitAsyncGenerator.js", - "import": "./helpers/esm/awaitAsyncGenerator.js", - "default": "./helpers/awaitAsyncGenerator.js" - }, - "./helpers/awaitAsyncGenerator.js" - ], - "./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js", - "./helpers/callSuper": [ - { - "node": "./helpers/callSuper.js", - "import": "./helpers/esm/callSuper.js", - "default": "./helpers/callSuper.js" - }, - "./helpers/callSuper.js" - ], - "./helpers/esm/callSuper": "./helpers/esm/callSuper.js", - "./helpers/checkInRHS": [ - { - "node": "./helpers/checkInRHS.js", - "import": "./helpers/esm/checkInRHS.js", - "default": "./helpers/checkInRHS.js" - }, - "./helpers/checkInRHS.js" - ], - "./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js", - "./helpers/classPrivateFieldGet2": [ - { - "node": "./helpers/classPrivateFieldGet2.js", - "import": "./helpers/esm/classPrivateFieldGet2.js", - "default": "./helpers/classPrivateFieldGet2.js" - }, - "./helpers/classPrivateFieldGet2.js" - ], - "./helpers/esm/classPrivateFieldGet2": "./helpers/esm/classPrivateFieldGet2.js", - "./helpers/classPrivateFieldSet2": [ - { - "node": "./helpers/classPrivateFieldSet2.js", - "import": "./helpers/esm/classPrivateFieldSet2.js", - "default": "./helpers/classPrivateFieldSet2.js" - }, - "./helpers/classPrivateFieldSet2.js" - ], - "./helpers/esm/classPrivateFieldSet2": "./helpers/esm/classPrivateFieldSet2.js", - "./helpers/classPrivateGetter": [ - { - "node": "./helpers/classPrivateGetter.js", - "import": "./helpers/esm/classPrivateGetter.js", - "default": "./helpers/classPrivateGetter.js" - }, - "./helpers/classPrivateGetter.js" - ], - "./helpers/esm/classPrivateGetter": "./helpers/esm/classPrivateGetter.js", - "./helpers/classPrivateSetter": [ - { - "node": "./helpers/classPrivateSetter.js", - "import": "./helpers/esm/classPrivateSetter.js", - "default": "./helpers/classPrivateSetter.js" - }, - "./helpers/classPrivateSetter.js" - ], - "./helpers/esm/classPrivateSetter": "./helpers/esm/classPrivateSetter.js", - "./helpers/construct": [ - { - "node": "./helpers/construct.js", - "import": "./helpers/esm/construct.js", - "default": "./helpers/construct.js" - }, - "./helpers/construct.js" - ], - "./helpers/esm/construct": "./helpers/esm/construct.js", - "./helpers/defineAccessor": [ - { - "node": "./helpers/defineAccessor.js", - "import": "./helpers/esm/defineAccessor.js", - "default": "./helpers/defineAccessor.js" - }, - "./helpers/defineAccessor.js" - ], - "./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js", - "./helpers/dispose": [ - { - "node": "./helpers/dispose.js", - "import": "./helpers/esm/dispose.js", - "default": "./helpers/dispose.js" - }, - "./helpers/dispose.js" - ], - "./helpers/esm/dispose": "./helpers/esm/dispose.js", - "./helpers/importDeferProxy": [ - { - "node": "./helpers/importDeferProxy.js", - "import": "./helpers/esm/importDeferProxy.js", - "default": "./helpers/importDeferProxy.js" - }, - "./helpers/importDeferProxy.js" - ], - "./helpers/esm/importDeferProxy": "./helpers/esm/importDeferProxy.js", - "./helpers/interopRequireWildcard": [ - { - "node": "./helpers/interopRequireWildcard.js", - "import": "./helpers/esm/interopRequireWildcard.js", - "default": "./helpers/interopRequireWildcard.js" - }, - "./helpers/interopRequireWildcard.js" - ], - "./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js", - "./helpers/isNativeReflectConstruct": [ - { - "node": "./helpers/isNativeReflectConstruct.js", - "import": "./helpers/esm/isNativeReflectConstruct.js", - "default": "./helpers/isNativeReflectConstruct.js" - }, - "./helpers/isNativeReflectConstruct.js" - ], - "./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js", - "./helpers/iterableToArrayLimit": [ - { - "node": "./helpers/iterableToArrayLimit.js", - "import": "./helpers/esm/iterableToArrayLimit.js", - "default": "./helpers/iterableToArrayLimit.js" - }, - "./helpers/iterableToArrayLimit.js" - ], - "./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js", - "./helpers/iterableToArrayLimitLoose": [ - { - "node": "./helpers/iterableToArrayLimitLoose.js", - "import": "./helpers/esm/iterableToArrayLimitLoose.js", - "default": "./helpers/iterableToArrayLimitLoose.js" - }, - "./helpers/iterableToArrayLimitLoose.js" - ], - "./helpers/esm/iterableToArrayLimitLoose": "./helpers/esm/iterableToArrayLimitLoose.js", - "./helpers/jsx": [ - { - "node": "./helpers/jsx.js", - "import": "./helpers/esm/jsx.js", - "default": "./helpers/jsx.js" - }, - "./helpers/jsx.js" - ], - "./helpers/esm/jsx": "./helpers/esm/jsx.js", - "./helpers/objectSpread2": [ - { - "node": "./helpers/objectSpread2.js", - "import": "./helpers/esm/objectSpread2.js", - "default": "./helpers/objectSpread2.js" - }, - "./helpers/objectSpread2.js" - ], - "./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", - "./helpers/regeneratorRuntime": [ - { - "node": "./helpers/regeneratorRuntime.js", - "import": "./helpers/esm/regeneratorRuntime.js", - "default": "./helpers/regeneratorRuntime.js" - }, - "./helpers/regeneratorRuntime.js" - ], - "./helpers/esm/regeneratorRuntime": "./helpers/esm/regeneratorRuntime.js", - "./helpers/setFunctionName": [ - { - "node": "./helpers/setFunctionName.js", - "import": "./helpers/esm/setFunctionName.js", - "default": "./helpers/setFunctionName.js" - }, - "./helpers/setFunctionName.js" - ], - "./helpers/esm/setFunctionName": "./helpers/esm/setFunctionName.js", - "./helpers/toPrimitive": [ - { - "node": "./helpers/toPrimitive.js", - "import": "./helpers/esm/toPrimitive.js", - "default": "./helpers/toPrimitive.js" - }, - "./helpers/toPrimitive.js" - ], - "./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js", - "./helpers/toPropertyKey": [ - { - "node": "./helpers/toPropertyKey.js", - "import": "./helpers/esm/toPropertyKey.js", - "default": "./helpers/toPropertyKey.js" - }, - "./helpers/toPropertyKey.js" - ], - "./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js", - "./helpers/toSetter": [ - { - "node": "./helpers/toSetter.js", - "import": "./helpers/esm/toSetter.js", - "default": "./helpers/toSetter.js" - }, - "./helpers/toSetter.js" - ], - "./helpers/esm/toSetter": "./helpers/esm/toSetter.js", - "./helpers/typeof": [ - { - "node": "./helpers/typeof.js", - "import": "./helpers/esm/typeof.js", - "default": "./helpers/typeof.js" - }, - "./helpers/typeof.js" - ], - "./helpers/esm/typeof": "./helpers/esm/typeof.js", - "./helpers/using": [ - { - "node": "./helpers/using.js", - "import": "./helpers/esm/using.js", - "default": "./helpers/using.js" - }, - "./helpers/using.js" - ], - "./helpers/esm/using": "./helpers/esm/using.js", - "./helpers/usingCtx": [ - { - "node": "./helpers/usingCtx.js", - "import": "./helpers/esm/usingCtx.js", - "default": "./helpers/usingCtx.js" - }, - "./helpers/usingCtx.js" - ], - "./helpers/esm/usingCtx": "./helpers/esm/usingCtx.js", - "./helpers/wrapRegExp": [ - { - "node": "./helpers/wrapRegExp.js", - "import": "./helpers/esm/wrapRegExp.js", - "default": "./helpers/wrapRegExp.js" - }, - "./helpers/wrapRegExp.js" - ], - "./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js", - "./helpers/AwaitValue": [ - { - "node": "./helpers/AwaitValue.js", - "import": "./helpers/esm/AwaitValue.js", - "default": "./helpers/AwaitValue.js" - }, - "./helpers/AwaitValue.js" - ], - "./helpers/esm/AwaitValue": "./helpers/esm/AwaitValue.js", - "./helpers/wrapAsyncGenerator": [ - { - "node": "./helpers/wrapAsyncGenerator.js", - "import": "./helpers/esm/wrapAsyncGenerator.js", - "default": "./helpers/wrapAsyncGenerator.js" - }, - "./helpers/wrapAsyncGenerator.js" - ], - "./helpers/esm/wrapAsyncGenerator": "./helpers/esm/wrapAsyncGenerator.js", - "./helpers/asyncToGenerator": [ - { - "node": "./helpers/asyncToGenerator.js", - "import": "./helpers/esm/asyncToGenerator.js", - "default": "./helpers/asyncToGenerator.js" - }, - "./helpers/asyncToGenerator.js" - ], - "./helpers/esm/asyncToGenerator": "./helpers/esm/asyncToGenerator.js", - "./helpers/classCallCheck": [ - { - "node": "./helpers/classCallCheck.js", - "import": "./helpers/esm/classCallCheck.js", - "default": "./helpers/classCallCheck.js" - }, - "./helpers/classCallCheck.js" - ], - "./helpers/esm/classCallCheck": "./helpers/esm/classCallCheck.js", - "./helpers/createClass": [ - { - "node": "./helpers/createClass.js", - "import": "./helpers/esm/createClass.js", - "default": "./helpers/createClass.js" - }, - "./helpers/createClass.js" - ], - "./helpers/esm/createClass": "./helpers/esm/createClass.js", - "./helpers/defineEnumerableProperties": [ - { - "node": "./helpers/defineEnumerableProperties.js", - "import": "./helpers/esm/defineEnumerableProperties.js", - "default": "./helpers/defineEnumerableProperties.js" - }, - "./helpers/defineEnumerableProperties.js" - ], - "./helpers/esm/defineEnumerableProperties": "./helpers/esm/defineEnumerableProperties.js", - "./helpers/defaults": [ - { - "node": "./helpers/defaults.js", - "import": "./helpers/esm/defaults.js", - "default": "./helpers/defaults.js" - }, - "./helpers/defaults.js" - ], - "./helpers/esm/defaults": "./helpers/esm/defaults.js", - "./helpers/defineProperty": [ - { - "node": "./helpers/defineProperty.js", - "import": "./helpers/esm/defineProperty.js", - "default": "./helpers/defineProperty.js" - }, - "./helpers/defineProperty.js" - ], - "./helpers/esm/defineProperty": "./helpers/esm/defineProperty.js", - "./helpers/extends": [ - { - "node": "./helpers/extends.js", - "import": "./helpers/esm/extends.js", - "default": "./helpers/extends.js" - }, - "./helpers/extends.js" - ], - "./helpers/esm/extends": "./helpers/esm/extends.js", - "./helpers/objectSpread": [ - { - "node": "./helpers/objectSpread.js", - "import": "./helpers/esm/objectSpread.js", - "default": "./helpers/objectSpread.js" - }, - "./helpers/objectSpread.js" - ], - "./helpers/esm/objectSpread": "./helpers/esm/objectSpread.js", - "./helpers/inherits": [ - { - "node": "./helpers/inherits.js", - "import": "./helpers/esm/inherits.js", - "default": "./helpers/inherits.js" - }, - "./helpers/inherits.js" - ], - "./helpers/esm/inherits": "./helpers/esm/inherits.js", - "./helpers/inheritsLoose": [ - { - "node": "./helpers/inheritsLoose.js", - "import": "./helpers/esm/inheritsLoose.js", - "default": "./helpers/inheritsLoose.js" - }, - "./helpers/inheritsLoose.js" - ], - "./helpers/esm/inheritsLoose": "./helpers/esm/inheritsLoose.js", - "./helpers/getPrototypeOf": [ - { - "node": "./helpers/getPrototypeOf.js", - "import": "./helpers/esm/getPrototypeOf.js", - "default": "./helpers/getPrototypeOf.js" - }, - "./helpers/getPrototypeOf.js" - ], - "./helpers/esm/getPrototypeOf": "./helpers/esm/getPrototypeOf.js", - "./helpers/setPrototypeOf": [ - { - "node": "./helpers/setPrototypeOf.js", - "import": "./helpers/esm/setPrototypeOf.js", - "default": "./helpers/setPrototypeOf.js" - }, - "./helpers/setPrototypeOf.js" - ], - "./helpers/esm/setPrototypeOf": "./helpers/esm/setPrototypeOf.js", - "./helpers/isNativeFunction": [ - { - "node": "./helpers/isNativeFunction.js", - "import": "./helpers/esm/isNativeFunction.js", - "default": "./helpers/isNativeFunction.js" - }, - "./helpers/isNativeFunction.js" - ], - "./helpers/esm/isNativeFunction": "./helpers/esm/isNativeFunction.js", - "./helpers/wrapNativeSuper": [ - { - "node": "./helpers/wrapNativeSuper.js", - "import": "./helpers/esm/wrapNativeSuper.js", - "default": "./helpers/wrapNativeSuper.js" - }, - "./helpers/wrapNativeSuper.js" - ], - "./helpers/esm/wrapNativeSuper": "./helpers/esm/wrapNativeSuper.js", - "./helpers/instanceof": [ - { - "node": "./helpers/instanceof.js", - "import": "./helpers/esm/instanceof.js", - "default": "./helpers/instanceof.js" - }, - "./helpers/instanceof.js" - ], - "./helpers/esm/instanceof": "./helpers/esm/instanceof.js", - "./helpers/interopRequireDefault": [ - { - "node": "./helpers/interopRequireDefault.js", - "import": "./helpers/esm/interopRequireDefault.js", - "default": "./helpers/interopRequireDefault.js" - }, - "./helpers/interopRequireDefault.js" - ], - "./helpers/esm/interopRequireDefault": "./helpers/esm/interopRequireDefault.js", - "./helpers/newArrowCheck": [ - { - "node": "./helpers/newArrowCheck.js", - "import": "./helpers/esm/newArrowCheck.js", - "default": "./helpers/newArrowCheck.js" - }, - "./helpers/newArrowCheck.js" - ], - "./helpers/esm/newArrowCheck": "./helpers/esm/newArrowCheck.js", - "./helpers/objectDestructuringEmpty": [ - { - "node": "./helpers/objectDestructuringEmpty.js", - "import": "./helpers/esm/objectDestructuringEmpty.js", - "default": "./helpers/objectDestructuringEmpty.js" - }, - "./helpers/objectDestructuringEmpty.js" - ], - "./helpers/esm/objectDestructuringEmpty": "./helpers/esm/objectDestructuringEmpty.js", - "./helpers/objectWithoutPropertiesLoose": [ - { - "node": "./helpers/objectWithoutPropertiesLoose.js", - "import": "./helpers/esm/objectWithoutPropertiesLoose.js", - "default": "./helpers/objectWithoutPropertiesLoose.js" - }, - "./helpers/objectWithoutPropertiesLoose.js" - ], - "./helpers/esm/objectWithoutPropertiesLoose": "./helpers/esm/objectWithoutPropertiesLoose.js", - "./helpers/objectWithoutProperties": [ - { - "node": "./helpers/objectWithoutProperties.js", - "import": "./helpers/esm/objectWithoutProperties.js", - "default": "./helpers/objectWithoutProperties.js" - }, - "./helpers/objectWithoutProperties.js" - ], - "./helpers/esm/objectWithoutProperties": "./helpers/esm/objectWithoutProperties.js", - "./helpers/assertThisInitialized": [ - { - "node": "./helpers/assertThisInitialized.js", - "import": "./helpers/esm/assertThisInitialized.js", - "default": "./helpers/assertThisInitialized.js" - }, - "./helpers/assertThisInitialized.js" - ], - "./helpers/esm/assertThisInitialized": "./helpers/esm/assertThisInitialized.js", - "./helpers/possibleConstructorReturn": [ - { - "node": "./helpers/possibleConstructorReturn.js", - "import": "./helpers/esm/possibleConstructorReturn.js", - "default": "./helpers/possibleConstructorReturn.js" - }, - "./helpers/possibleConstructorReturn.js" - ], - "./helpers/esm/possibleConstructorReturn": "./helpers/esm/possibleConstructorReturn.js", - "./helpers/createSuper": [ - { - "node": "./helpers/createSuper.js", - "import": "./helpers/esm/createSuper.js", - "default": "./helpers/createSuper.js" - }, - "./helpers/createSuper.js" - ], - "./helpers/esm/createSuper": "./helpers/esm/createSuper.js", - "./helpers/superPropBase": [ - { - "node": "./helpers/superPropBase.js", - "import": "./helpers/esm/superPropBase.js", - "default": "./helpers/superPropBase.js" - }, - "./helpers/superPropBase.js" - ], - "./helpers/esm/superPropBase": "./helpers/esm/superPropBase.js", - "./helpers/get": [ - { - "node": "./helpers/get.js", - "import": "./helpers/esm/get.js", - "default": "./helpers/get.js" - }, - "./helpers/get.js" - ], - "./helpers/esm/get": "./helpers/esm/get.js", - "./helpers/set": [ - { - "node": "./helpers/set.js", - "import": "./helpers/esm/set.js", - "default": "./helpers/set.js" - }, - "./helpers/set.js" - ], - "./helpers/esm/set": "./helpers/esm/set.js", - "./helpers/taggedTemplateLiteral": [ - { - "node": "./helpers/taggedTemplateLiteral.js", - "import": "./helpers/esm/taggedTemplateLiteral.js", - "default": "./helpers/taggedTemplateLiteral.js" - }, - "./helpers/taggedTemplateLiteral.js" - ], - "./helpers/esm/taggedTemplateLiteral": "./helpers/esm/taggedTemplateLiteral.js", - "./helpers/taggedTemplateLiteralLoose": [ - { - "node": "./helpers/taggedTemplateLiteralLoose.js", - "import": "./helpers/esm/taggedTemplateLiteralLoose.js", - "default": "./helpers/taggedTemplateLiteralLoose.js" - }, - "./helpers/taggedTemplateLiteralLoose.js" - ], - "./helpers/esm/taggedTemplateLiteralLoose": "./helpers/esm/taggedTemplateLiteralLoose.js", - "./helpers/readOnlyError": [ - { - "node": "./helpers/readOnlyError.js", - "import": "./helpers/esm/readOnlyError.js", - "default": "./helpers/readOnlyError.js" - }, - "./helpers/readOnlyError.js" - ], - "./helpers/esm/readOnlyError": "./helpers/esm/readOnlyError.js", - "./helpers/writeOnlyError": [ - { - "node": "./helpers/writeOnlyError.js", - "import": "./helpers/esm/writeOnlyError.js", - "default": "./helpers/writeOnlyError.js" - }, - "./helpers/writeOnlyError.js" - ], - "./helpers/esm/writeOnlyError": "./helpers/esm/writeOnlyError.js", - "./helpers/classNameTDZError": [ - { - "node": "./helpers/classNameTDZError.js", - "import": "./helpers/esm/classNameTDZError.js", - "default": "./helpers/classNameTDZError.js" - }, - "./helpers/classNameTDZError.js" - ], - "./helpers/esm/classNameTDZError": "./helpers/esm/classNameTDZError.js", - "./helpers/temporalUndefined": [ - { - "node": "./helpers/temporalUndefined.js", - "import": "./helpers/esm/temporalUndefined.js", - "default": "./helpers/temporalUndefined.js" - }, - "./helpers/temporalUndefined.js" - ], - "./helpers/esm/temporalUndefined": "./helpers/esm/temporalUndefined.js", - "./helpers/tdz": [ - { - "node": "./helpers/tdz.js", - "import": "./helpers/esm/tdz.js", - "default": "./helpers/tdz.js" - }, - "./helpers/tdz.js" - ], - "./helpers/esm/tdz": "./helpers/esm/tdz.js", - "./helpers/temporalRef": [ - { - "node": "./helpers/temporalRef.js", - "import": "./helpers/esm/temporalRef.js", - "default": "./helpers/temporalRef.js" - }, - "./helpers/temporalRef.js" - ], - "./helpers/esm/temporalRef": "./helpers/esm/temporalRef.js", - "./helpers/slicedToArray": [ - { - "node": "./helpers/slicedToArray.js", - "import": "./helpers/esm/slicedToArray.js", - "default": "./helpers/slicedToArray.js" - }, - "./helpers/slicedToArray.js" - ], - "./helpers/esm/slicedToArray": "./helpers/esm/slicedToArray.js", - "./helpers/slicedToArrayLoose": [ - { - "node": "./helpers/slicedToArrayLoose.js", - "import": "./helpers/esm/slicedToArrayLoose.js", - "default": "./helpers/slicedToArrayLoose.js" - }, - "./helpers/slicedToArrayLoose.js" - ], - "./helpers/esm/slicedToArrayLoose": "./helpers/esm/slicedToArrayLoose.js", - "./helpers/toArray": [ - { - "node": "./helpers/toArray.js", - "import": "./helpers/esm/toArray.js", - "default": "./helpers/toArray.js" - }, - "./helpers/toArray.js" - ], - "./helpers/esm/toArray": "./helpers/esm/toArray.js", - "./helpers/toConsumableArray": [ - { - "node": "./helpers/toConsumableArray.js", - "import": "./helpers/esm/toConsumableArray.js", - "default": "./helpers/toConsumableArray.js" - }, - "./helpers/toConsumableArray.js" - ], - "./helpers/esm/toConsumableArray": "./helpers/esm/toConsumableArray.js", - "./helpers/arrayWithoutHoles": [ - { - "node": "./helpers/arrayWithoutHoles.js", - "import": "./helpers/esm/arrayWithoutHoles.js", - "default": "./helpers/arrayWithoutHoles.js" - }, - "./helpers/arrayWithoutHoles.js" - ], - "./helpers/esm/arrayWithoutHoles": "./helpers/esm/arrayWithoutHoles.js", - "./helpers/arrayWithHoles": [ - { - "node": "./helpers/arrayWithHoles.js", - "import": "./helpers/esm/arrayWithHoles.js", - "default": "./helpers/arrayWithHoles.js" - }, - "./helpers/arrayWithHoles.js" - ], - "./helpers/esm/arrayWithHoles": "./helpers/esm/arrayWithHoles.js", - "./helpers/maybeArrayLike": [ - { - "node": "./helpers/maybeArrayLike.js", - "import": "./helpers/esm/maybeArrayLike.js", - "default": "./helpers/maybeArrayLike.js" - }, - "./helpers/maybeArrayLike.js" - ], - "./helpers/esm/maybeArrayLike": "./helpers/esm/maybeArrayLike.js", - "./helpers/iterableToArray": [ - { - "node": "./helpers/iterableToArray.js", - "import": "./helpers/esm/iterableToArray.js", - "default": "./helpers/iterableToArray.js" - }, - "./helpers/iterableToArray.js" - ], - "./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js", - "./helpers/unsupportedIterableToArray": [ - { - "node": "./helpers/unsupportedIterableToArray.js", - "import": "./helpers/esm/unsupportedIterableToArray.js", - "default": "./helpers/unsupportedIterableToArray.js" - }, - "./helpers/unsupportedIterableToArray.js" - ], - "./helpers/esm/unsupportedIterableToArray": "./helpers/esm/unsupportedIterableToArray.js", - "./helpers/arrayLikeToArray": [ - { - "node": "./helpers/arrayLikeToArray.js", - "import": "./helpers/esm/arrayLikeToArray.js", - "default": "./helpers/arrayLikeToArray.js" - }, - "./helpers/arrayLikeToArray.js" - ], - "./helpers/esm/arrayLikeToArray": "./helpers/esm/arrayLikeToArray.js", - "./helpers/nonIterableSpread": [ - { - "node": "./helpers/nonIterableSpread.js", - "import": "./helpers/esm/nonIterableSpread.js", - "default": "./helpers/nonIterableSpread.js" - }, - "./helpers/nonIterableSpread.js" - ], - "./helpers/esm/nonIterableSpread": "./helpers/esm/nonIterableSpread.js", - "./helpers/nonIterableRest": [ - { - "node": "./helpers/nonIterableRest.js", - "import": "./helpers/esm/nonIterableRest.js", - "default": "./helpers/nonIterableRest.js" - }, - "./helpers/nonIterableRest.js" - ], - "./helpers/esm/nonIterableRest": "./helpers/esm/nonIterableRest.js", - "./helpers/createForOfIteratorHelper": [ - { - "node": "./helpers/createForOfIteratorHelper.js", - "import": "./helpers/esm/createForOfIteratorHelper.js", - "default": "./helpers/createForOfIteratorHelper.js" - }, - "./helpers/createForOfIteratorHelper.js" - ], - "./helpers/esm/createForOfIteratorHelper": "./helpers/esm/createForOfIteratorHelper.js", - "./helpers/createForOfIteratorHelperLoose": [ - { - "node": "./helpers/createForOfIteratorHelperLoose.js", - "import": "./helpers/esm/createForOfIteratorHelperLoose.js", - "default": "./helpers/createForOfIteratorHelperLoose.js" - }, - "./helpers/createForOfIteratorHelperLoose.js" - ], - "./helpers/esm/createForOfIteratorHelperLoose": "./helpers/esm/createForOfIteratorHelperLoose.js", - "./helpers/skipFirstGeneratorNext": [ - { - "node": "./helpers/skipFirstGeneratorNext.js", - "import": "./helpers/esm/skipFirstGeneratorNext.js", - "default": "./helpers/skipFirstGeneratorNext.js" - }, - "./helpers/skipFirstGeneratorNext.js" - ], - "./helpers/esm/skipFirstGeneratorNext": "./helpers/esm/skipFirstGeneratorNext.js", - "./helpers/initializerWarningHelper": [ - { - "node": "./helpers/initializerWarningHelper.js", - "import": "./helpers/esm/initializerWarningHelper.js", - "default": "./helpers/initializerWarningHelper.js" - }, - "./helpers/initializerWarningHelper.js" - ], - "./helpers/esm/initializerWarningHelper": "./helpers/esm/initializerWarningHelper.js", - "./helpers/initializerDefineProperty": [ - { - "node": "./helpers/initializerDefineProperty.js", - "import": "./helpers/esm/initializerDefineProperty.js", - "default": "./helpers/initializerDefineProperty.js" - }, - "./helpers/initializerDefineProperty.js" - ], - "./helpers/esm/initializerDefineProperty": "./helpers/esm/initializerDefineProperty.js", - "./helpers/applyDecoratedDescriptor": [ - { - "node": "./helpers/applyDecoratedDescriptor.js", - "import": "./helpers/esm/applyDecoratedDescriptor.js", - "default": "./helpers/applyDecoratedDescriptor.js" - }, - "./helpers/applyDecoratedDescriptor.js" - ], - "./helpers/esm/applyDecoratedDescriptor": "./helpers/esm/applyDecoratedDescriptor.js", - "./helpers/classPrivateFieldLooseKey": [ - { - "node": "./helpers/classPrivateFieldLooseKey.js", - "import": "./helpers/esm/classPrivateFieldLooseKey.js", - "default": "./helpers/classPrivateFieldLooseKey.js" - }, - "./helpers/classPrivateFieldLooseKey.js" - ], - "./helpers/esm/classPrivateFieldLooseKey": "./helpers/esm/classPrivateFieldLooseKey.js", - "./helpers/classPrivateFieldLooseBase": [ - { - "node": "./helpers/classPrivateFieldLooseBase.js", - "import": "./helpers/esm/classPrivateFieldLooseBase.js", - "default": "./helpers/classPrivateFieldLooseBase.js" - }, - "./helpers/classPrivateFieldLooseBase.js" - ], - "./helpers/esm/classPrivateFieldLooseBase": "./helpers/esm/classPrivateFieldLooseBase.js", - "./helpers/classPrivateFieldGet": [ - { - "node": "./helpers/classPrivateFieldGet.js", - "import": "./helpers/esm/classPrivateFieldGet.js", - "default": "./helpers/classPrivateFieldGet.js" - }, - "./helpers/classPrivateFieldGet.js" - ], - "./helpers/esm/classPrivateFieldGet": "./helpers/esm/classPrivateFieldGet.js", - "./helpers/classPrivateFieldSet": [ - { - "node": "./helpers/classPrivateFieldSet.js", - "import": "./helpers/esm/classPrivateFieldSet.js", - "default": "./helpers/classPrivateFieldSet.js" - }, - "./helpers/classPrivateFieldSet.js" - ], - "./helpers/esm/classPrivateFieldSet": "./helpers/esm/classPrivateFieldSet.js", - "./helpers/classPrivateFieldDestructureSet": [ - { - "node": "./helpers/classPrivateFieldDestructureSet.js", - "import": "./helpers/esm/classPrivateFieldDestructureSet.js", - "default": "./helpers/classPrivateFieldDestructureSet.js" - }, - "./helpers/classPrivateFieldDestructureSet.js" - ], - "./helpers/esm/classPrivateFieldDestructureSet": "./helpers/esm/classPrivateFieldDestructureSet.js", - "./helpers/classExtractFieldDescriptor": [ - { - "node": "./helpers/classExtractFieldDescriptor.js", - "import": "./helpers/esm/classExtractFieldDescriptor.js", - "default": "./helpers/classExtractFieldDescriptor.js" - }, - "./helpers/classExtractFieldDescriptor.js" - ], - "./helpers/esm/classExtractFieldDescriptor": "./helpers/esm/classExtractFieldDescriptor.js", - "./helpers/classStaticPrivateFieldSpecGet": [ - { - "node": "./helpers/classStaticPrivateFieldSpecGet.js", - "import": "./helpers/esm/classStaticPrivateFieldSpecGet.js", - "default": "./helpers/classStaticPrivateFieldSpecGet.js" - }, - "./helpers/classStaticPrivateFieldSpecGet.js" - ], - "./helpers/esm/classStaticPrivateFieldSpecGet": "./helpers/esm/classStaticPrivateFieldSpecGet.js", - "./helpers/classStaticPrivateFieldSpecSet": [ - { - "node": "./helpers/classStaticPrivateFieldSpecSet.js", - "import": "./helpers/esm/classStaticPrivateFieldSpecSet.js", - "default": "./helpers/classStaticPrivateFieldSpecSet.js" - }, - "./helpers/classStaticPrivateFieldSpecSet.js" - ], - "./helpers/esm/classStaticPrivateFieldSpecSet": "./helpers/esm/classStaticPrivateFieldSpecSet.js", - "./helpers/classStaticPrivateMethodGet": [ - { - "node": "./helpers/classStaticPrivateMethodGet.js", - "import": "./helpers/esm/classStaticPrivateMethodGet.js", - "default": "./helpers/classStaticPrivateMethodGet.js" - }, - "./helpers/classStaticPrivateMethodGet.js" - ], - "./helpers/esm/classStaticPrivateMethodGet": "./helpers/esm/classStaticPrivateMethodGet.js", - "./helpers/classStaticPrivateMethodSet": [ - { - "node": "./helpers/classStaticPrivateMethodSet.js", - "import": "./helpers/esm/classStaticPrivateMethodSet.js", - "default": "./helpers/classStaticPrivateMethodSet.js" - }, - "./helpers/classStaticPrivateMethodSet.js" - ], - "./helpers/esm/classStaticPrivateMethodSet": "./helpers/esm/classStaticPrivateMethodSet.js", - "./helpers/classApplyDescriptorGet": [ - { - "node": "./helpers/classApplyDescriptorGet.js", - "import": "./helpers/esm/classApplyDescriptorGet.js", - "default": "./helpers/classApplyDescriptorGet.js" - }, - "./helpers/classApplyDescriptorGet.js" - ], - "./helpers/esm/classApplyDescriptorGet": "./helpers/esm/classApplyDescriptorGet.js", - "./helpers/classApplyDescriptorSet": [ - { - "node": "./helpers/classApplyDescriptorSet.js", - "import": "./helpers/esm/classApplyDescriptorSet.js", - "default": "./helpers/classApplyDescriptorSet.js" - }, - "./helpers/classApplyDescriptorSet.js" - ], - "./helpers/esm/classApplyDescriptorSet": "./helpers/esm/classApplyDescriptorSet.js", - "./helpers/classApplyDescriptorDestructureSet": [ - { - "node": "./helpers/classApplyDescriptorDestructureSet.js", - "import": "./helpers/esm/classApplyDescriptorDestructureSet.js", - "default": "./helpers/classApplyDescriptorDestructureSet.js" - }, - "./helpers/classApplyDescriptorDestructureSet.js" - ], - "./helpers/esm/classApplyDescriptorDestructureSet": "./helpers/esm/classApplyDescriptorDestructureSet.js", - "./helpers/classStaticPrivateFieldDestructureSet": [ - { - "node": "./helpers/classStaticPrivateFieldDestructureSet.js", - "import": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", - "default": "./helpers/classStaticPrivateFieldDestructureSet.js" - }, - "./helpers/classStaticPrivateFieldDestructureSet.js" - ], - "./helpers/esm/classStaticPrivateFieldDestructureSet": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", - "./helpers/classCheckPrivateStaticAccess": [ - { - "node": "./helpers/classCheckPrivateStaticAccess.js", - "import": "./helpers/esm/classCheckPrivateStaticAccess.js", - "default": "./helpers/classCheckPrivateStaticAccess.js" - }, - "./helpers/classCheckPrivateStaticAccess.js" - ], - "./helpers/esm/classCheckPrivateStaticAccess": "./helpers/esm/classCheckPrivateStaticAccess.js", - "./helpers/classCheckPrivateStaticFieldDescriptor": [ - { - "node": "./helpers/classCheckPrivateStaticFieldDescriptor.js", - "import": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", - "default": "./helpers/classCheckPrivateStaticFieldDescriptor.js" - }, - "./helpers/classCheckPrivateStaticFieldDescriptor.js" - ], - "./helpers/esm/classCheckPrivateStaticFieldDescriptor": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", - "./helpers/decorate": [ - { - "node": "./helpers/decorate.js", - "import": "./helpers/esm/decorate.js", - "default": "./helpers/decorate.js" - }, - "./helpers/decorate.js" - ], - "./helpers/esm/decorate": "./helpers/esm/decorate.js", - "./helpers/classPrivateMethodGet": [ - { - "node": "./helpers/classPrivateMethodGet.js", - "import": "./helpers/esm/classPrivateMethodGet.js", - "default": "./helpers/classPrivateMethodGet.js" - }, - "./helpers/classPrivateMethodGet.js" - ], - "./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js", - "./helpers/checkPrivateRedeclaration": [ - { - "node": "./helpers/checkPrivateRedeclaration.js", - "import": "./helpers/esm/checkPrivateRedeclaration.js", - "default": "./helpers/checkPrivateRedeclaration.js" - }, - "./helpers/checkPrivateRedeclaration.js" - ], - "./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js", - "./helpers/classPrivateFieldInitSpec": [ - { - "node": "./helpers/classPrivateFieldInitSpec.js", - "import": "./helpers/esm/classPrivateFieldInitSpec.js", - "default": "./helpers/classPrivateFieldInitSpec.js" - }, - "./helpers/classPrivateFieldInitSpec.js" - ], - "./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js", - "./helpers/classPrivateMethodInitSpec": [ - { - "node": "./helpers/classPrivateMethodInitSpec.js", - "import": "./helpers/esm/classPrivateMethodInitSpec.js", - "default": "./helpers/classPrivateMethodInitSpec.js" - }, - "./helpers/classPrivateMethodInitSpec.js" - ], - "./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js", - "./helpers/classPrivateMethodSet": [ - { - "node": "./helpers/classPrivateMethodSet.js", - "import": "./helpers/esm/classPrivateMethodSet.js", - "default": "./helpers/classPrivateMethodSet.js" - }, - "./helpers/classPrivateMethodSet.js" - ], - "./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js", - "./helpers/identity": [ - { - "node": "./helpers/identity.js", - "import": "./helpers/esm/identity.js", - "default": "./helpers/identity.js" - }, - "./helpers/identity.js" - ], - "./helpers/esm/identity": "./helpers/esm/identity.js", - "./helpers/nullishReceiverError": [ - { - "node": "./helpers/nullishReceiverError.js", - "import": "./helpers/esm/nullishReceiverError.js", - "default": "./helpers/nullishReceiverError.js" - }, - "./helpers/nullishReceiverError.js" - ], - "./helpers/esm/nullishReceiverError": "./helpers/esm/nullishReceiverError.js", - "./package": "./package.json", - "./package.json": "./package.json", - "./regenerator": "./regenerator/index.js", - "./regenerator/*.js": "./regenerator/*.js", - "./regenerator/": "./regenerator/" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/node_modules/@babel/runtime/regenerator/index.js b/node_modules/@babel/runtime/regenerator/index.js deleted file mode 100644 index 58813573..00000000 --- a/node_modules/@babel/runtime/regenerator/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// TODO(Babel 8): Remove this file. - -var runtime = require("../helpers/regeneratorRuntime")(); -module.exports = runtime; - -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= -try { - regeneratorRuntime = runtime; -} catch (accidentalStrictMode) { - if (typeof globalThis === "object") { - globalThis.regeneratorRuntime = runtime; - } else { - Function("r", "regeneratorRuntime = r")(runtime); - } -} diff --git a/node_modules/@changesets/apply-release-plan/CHANGELOG.md b/node_modules/@changesets/apply-release-plan/CHANGELOG.md deleted file mode 100644 index 377e9775..00000000 --- a/node_modules/@changesets/apply-release-plan/CHANGELOG.md +++ /dev/null @@ -1,456 +0,0 @@ -# @changesets/apply-release-plan - -## 7.0.0 - -### Major Changes - -- [#1185](https://github.com/changesets/changesets/pull/1185) [`a971652`](https://github.com/changesets/changesets/commit/a971652ec1403aab3fb89eb2f1640bd5012b895a) Thanks [@Andarist](https://github.com/Andarist)! - `package.json#exports` have been added to limit what (and how) code might be imported from the package. - -### Minor Changes - -- [#1236](https://github.com/changesets/changesets/pull/1236) [`dfd4cca`](https://github.com/changesets/changesets/commit/dfd4cca84118df913feedfeac37a4939566ae447) Thanks [@camertron](https://github.com/camertron)! - Avoid using short commit IDs - -### Patch Changes - -- Updated dependencies [[`a971652`](https://github.com/changesets/changesets/commit/a971652ec1403aab3fb89eb2f1640bd5012b895a)]: - - @changesets/get-version-range-type@0.4.0 - - @changesets/config@3.0.0 - - @changesets/types@6.0.0 - - @changesets/git@3.0.0 - -## 6.1.4 - -### Patch Changes - -- [#1176](https://github.com/changesets/changesets/pull/1176) [`41988ce`](https://github.com/changesets/changesets/commit/41988ceb8c1cedd3857c939448bf3965494ff0a4) Thanks [@joshwooding](https://github.com/joshwooding)! - Bump [`semver`](https://github.com/npm/node-semver) dependency to v7.5.3 - -- Updated dependencies []: - - @changesets/config@2.3.1 - -## 6.1.3 - -### Patch Changes - -- Updated dependencies [[`598136a`](https://github.com/changesets/changesets/commit/598136a32a00b620c9521d7a7151fbbc721c17d7), [`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2), [`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2), [`598136a`](https://github.com/changesets/changesets/commit/598136a32a00b620c9521d7a7151fbbc721c17d7), [`598136a`](https://github.com/changesets/changesets/commit/598136a32a00b620c9521d7a7151fbbc721c17d7), [`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2)]: - - @changesets/git@2.0.0 - - @changesets/config@2.3.0 - - @changesets/types@5.2.1 - -## 6.1.2 - -### Patch Changes - -- [#983](https://github.com/changesets/changesets/pull/983) [`6cc4300`](https://github.com/changesets/changesets/commit/6cc430013a052dc2488b9e6700a1e4bd8c8e0680) Thanks [@Andarist](https://github.com/Andarist)! - Improved compatibility with the alpha releases of Prettier v3 by awaiting the `.format` result since it's a promise in that version. - -## 6.1.1 - -### Patch Changes - -- Updated dependencies [[`8c08469`](https://github.com/changesets/changesets/commit/8c0846977597ddaf51aaeb35f1f0f9428bf8ba14), [`8c08469`](https://github.com/changesets/changesets/commit/8c0846977597ddaf51aaeb35f1f0f9428bf8ba14)]: - - @changesets/git@1.5.0 - - @changesets/config@2.2.0 - - @changesets/types@5.2.0 - -## 6.1.0 - -### Minor Changes - -- [#905](https://github.com/changesets/changesets/pull/905) [`c140171`](https://github.com/changesets/changesets/commit/c1401716cf5ee839aaa02ea7ff8f23f8af8bf5b0) Thanks [@Andarist](https://github.com/Andarist)! - The local version of Prettier is going to be preferred from now on when writing formatted `.md` files back to disk. At the same time the version of Prettier that we depend on has been upgraded. - -## 6.0.4 - -### Patch Changes - -- [#900](https://github.com/changesets/changesets/pull/900) [`7d998ee`](https://github.com/changesets/changesets/commit/7d998eeb16064b5442ebc49ad31dec7b841d504e) Thanks [@sdirosa](https://github.com/sdirosa)! - Fixed an issue with generating changelogs not being skipped when the `changelog` config option was set to `false`. - -- Updated dependencies [[`7d998ee`](https://github.com/changesets/changesets/commit/7d998eeb16064b5442ebc49ad31dec7b841d504e)]: - - @changesets/config@2.1.1 - -## 6.0.3 - -### Patch Changes - -- Updated dependencies [[`f64bc1b`](https://github.com/changesets/changesets/commit/f64bc1bb33457918eae34b22f214174ba3cf4504)]: - - @changesets/git@1.4.1 - -## 6.0.2 - -### Patch Changes - -- Updated dependencies [[`dd9b76f`](https://github.com/changesets/changesets/commit/dd9b76f162a546ae8b412e0cb10277f971f3585e), [`dd9b76f`](https://github.com/changesets/changesets/commit/dd9b76f162a546ae8b412e0cb10277f971f3585e), [`dd9b76f`](https://github.com/changesets/changesets/commit/dd9b76f162a546ae8b412e0cb10277f971f3585e)]: - - @changesets/config@2.1.0 - - @changesets/git@1.4.0 - - @changesets/types@5.1.0 - -## 6.0.1 - -### Patch Changes - -- [#857](https://github.com/changesets/changesets/pull/857) [`7febb59`](https://github.com/changesets/changesets/commit/7febb599167234ae071b5d223b80cbc8a9375709) Thanks [@dotansimha](https://github.com/dotansimha)! - Fixed an issue with dependency ranges still using pre-existing range modifiers instead of fixed package versions when performing a snapshot release. This ensures that installs of snapshot versions are always reproducible. - -- Updated dependencies [[`2827c7a`](https://github.com/changesets/changesets/commit/2827c7ab33af30065fafe72ede1a2a6ac88d5276), [`7b1c0c1`](https://github.com/changesets/changesets/commit/7b1c0c1b73a19b50fe3a104acb440c604eab108f)]: - - @changesets/config@2.0.1 - -## 6.0.0 - -### Major Changes - -- [#768](https://github.com/changesets/changesets/pull/768) [`c87eba6`](https://github.com/changesets/changesets/commit/c87eba6f80a34563b7382f87472c29f6dafb546c) Thanks [@rohit-gohri](https://github.com/rohit-gohri)! - This module is no longer responsible for commiting files - this responsibility has been moved entirely to `@changesets/cli`. - -### Patch Changes - -- Updated dependencies [[`c87eba6`](https://github.com/changesets/changesets/commit/c87eba6f80a34563b7382f87472c29f6dafb546c), [`eb86652`](https://github.com/changesets/changesets/commit/eb86652cbd21c49f90d2a03caa9a578593c4d102), [`c87eba6`](https://github.com/changesets/changesets/commit/c87eba6f80a34563b7382f87472c29f6dafb546c)]: - - @changesets/types@5.0.0 - - @changesets/git@1.3.2 - - @changesets/config@2.0.0 - -## 5.0.5 - -### Patch Changes - -- [#703](https://github.com/changesets/changesets/pull/703) [`15c461d`](https://github.com/changesets/changesets/commit/15c461d5de94a274ccc8b33755a133a513339b0a) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with `*` dependency ranges not being replaced in premode. Those have to replaced with exact versions because prereleases don't satisfy wildcard ranges. A published prerelease package with such dependency range left untouched won't install correct prerelease dependency version. - -- [#749](https://github.com/changesets/changesets/pull/749) [`d14cf79`](https://github.com/changesets/changesets/commit/d14cf79fd323529c6fe6ca956d9a7fda93bb425b) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue that caused **created** CHANGELOG files not being formatted in the same way as the **updated** ones (this could happen when calling `changeset version` for the very first time for a package). - -- Updated dependencies [[`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15), [`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15)]: - - @changesets/types@4.1.0 - - @changesets/config@1.7.0 - - @changesets/git@1.3.1 - -## 5.0.4 - -### Patch Changes - -- Updated dependencies [[`77c1cef`](https://github.com/changesets/changesets/commit/77c1ceff402f390c1ededec358d914ba68a31d0d)]: - - @changesets/git@1.3.0 - - @changesets/config@1.6.4 - -## 5.0.3 - -### Patch Changes - -- [#667](https://github.com/changesets/changesets/pull/667) [`fe8db75`](https://github.com/changesets/changesets/commit/fe8db7500f81caea9064f8bec02bcb77e0fd8fce) Thanks [@fz6m](https://github.com/fz6m)! - Upgraded `@manypkg/get-packages` dependency to fix getting correct packages in pnpm workspaces with exclude rules. - -- Updated dependencies [[`fe8db75`](https://github.com/changesets/changesets/commit/fe8db7500f81caea9064f8bec02bcb77e0fd8fce), [`9a993ba`](https://github.com/changesets/changesets/commit/9a993ba09629c1620d749432520470cec49d3a96)]: - - @changesets/config@1.6.3 - - @changesets/git@1.2.1 - - @changesets/types@4.0.2 - -## 5.0.2 - -### Patch Changes - -- [#585](https://github.com/changesets/changesets/pull/585) [`74dda8c`](https://github.com/changesets/changesets/commit/74dda8c0d8bd1741ca7b19f0ccb37b2330dc9549) Thanks [@javier-garcia-meteologica](https://github.com/javier-garcia-meteologica)! - Add support for `workspace:^` and `workspace:~` dependency ranges. - -- Updated dependencies [[`2b49c39`](https://github.com/changesets/changesets/commit/2b49c390a7cf24ce859ac932b432eb6d8f55c98b)]: - - @changesets/git@1.2.0 - - @changesets/config@1.6.2 - -## 5.0.1 - -### Patch Changes - -- Updated dependencies [[`e89e28a`](https://github.com/changesets/changesets/commit/e89e28a05f5fa43307db73812a6bcd269b62ddee)]: - - @changesets/types@4.0.1 - - @changesets/config@1.6.1 - - @changesets/git@1.1.2 - -## 5.0.0 - -### Major Changes - -- [#542](https://github.com/changesets/changesets/pull/542) [`de2b4a5`](https://github.com/changesets/changesets/commit/de2b4a5a7b244a37d94625bcb70ecde9dde5b612) Thanks [@Andarist](https://github.com/Andarist)! - The accepted `Config` type has been changed - a new experimental option (`updateInternalDependents`) was added to it. - -### Patch Changes - -- Updated dependencies [[`de2b4a5`](https://github.com/changesets/changesets/commit/de2b4a5a7b244a37d94625bcb70ecde9dde5b612)]: - - @changesets/config@1.6.0 - - @changesets/types@4.0.0 - - @changesets/git@1.1.1 - -## 4.2.0 - -### Minor Changes - -- [`12f9a43`](https://github.com/changesets/changesets/commit/12f9a433a6c3ac38f9405fcd77c9108c423d7101) [#507](https://github.com/changesets/changesets/pull/507) Thanks [@zkochan](https://github.com/zkochan)! - New setting added: bumpVersionsWithWorkspaceProtocolOnly. When it is set to `true`, versions are bumped in `dependencies`, only if those versions are prefixed by the workspace protocol. For instance, `"foo": "workspace:^1.0.0"`. - -### Patch Changes - -- Updated dependencies [[`12f9a43`](https://github.com/changesets/changesets/commit/12f9a433a6c3ac38f9405fcd77c9108c423d7101)]: - - @changesets/config@1.5.0 - - @changesets/types@3.3.0 - -## 4.1.0 - -### Minor Changes - -- [`fd53ca2`](https://github.com/changesets/changesets/commit/fd53ca2acb0a955bc87af090daba5aa41c2bab69) [#395](https://github.com/changesets/changesets/pull/395) Thanks [@jonathanmorley](https://github.com/jonathanmorley)! - Use `JSON.stringify` to update package.jsons without including modifications from prettier. - -## 4.0.0 - -### Major Changes - -- [`addd725`](https://github.com/changesets/changesets/commit/addd7256d9251d999251a7c16c0a0b068d557b5d) [#383](https://github.com/changesets/changesets/pull/383) Thanks [@Feiyang1](https://github.com/Feiyang1)! - Added an experimental flag `onlyUpdatePeerDependentsWhenOutOfRange`. When set to `true`, we only bump peer dependents when peerDependencies are leaving range. - -### Minor Changes - -- [`9dcc364`](https://github.com/changesets/changesets/commit/9dcc364bf19e48f8f2824ebaf967d9ef41b6fc04) [#371](https://github.com/changesets/changesets/pull/371) Thanks [@Feiyang1](https://github.com/Feiyang1)! - Added support for ignoring packages in the `version` command. The version of ignored packages will not be bumped, but their dependencies will still be bumped normally. This is useful when you have private packages, e.g. packages under development. It allows you to make releases for the public packages without changing the version of your private packages. To use the feature, you can define the `ignore` array in the config file with the name of the packages: - - ``` - { - ... - "ignore": ["pkg-a", "pkg-b"] - ... - } - ``` - - or you can pass the package names to the `--ignore` flag when using cli: - - ``` - yarn changeset version --ignore pkg-a --ignore --pkg-b - ``` - -### Patch Changes - -- Updated dependencies [[`addd725`](https://github.com/changesets/changesets/commit/addd7256d9251d999251a7c16c0a0b068d557b5d), [`9dcc364`](https://github.com/changesets/changesets/commit/9dcc364bf19e48f8f2824ebaf967d9ef41b6fc04)]: - - @changesets/config@1.2.0 - - @changesets/types@3.1.0 - -## 3.1.0 - -### Minor Changes - -- [`6d0790a`](https://github.com/changesets/changesets/commit/6d0790a7aa9f00e350e9394f419e4b3c7ee7ca6a) [#359](https://github.com/changesets/changesets/pull/359) Thanks [@ajaymathur](https://github.com/ajaymathur)! - Add support for snapshot flag to version command. Usage: `changeset version --snapshot [tag]`. The updated version of the packages looks like `0.0.0[-tag]-YYYYMMDDHHMMSS` where YYYY, MM, DD, HH, MM, and SS is the date and time of when the snapshot version is created. You can use this feature with the tag option in the publish command to publish packages under experimental tags from feature branches. To publish a snapshot version of a package under an experimental tag you can do: - - ``` - # Version packages to snapshot version - changeset version --snapshot - # Publish packages under experimental tag, keeping next and latest tag clean - changeset publish --tag experimental - ``` - -## 3.0.3 - -### Patch Changes - -- [`90f3b65`](https://github.com/changesets/changesets/commit/90f3b651f9c0403920b17801b84a2fbe6f190e2a) [#373](https://github.com/changesets/changesets/pull/373) Thanks [@Blasz](https://github.com/Blasz)! - Fix patch bumped dependencies not being updated in dependents package.json when leaving semver range with `updateInternalDependencies` set to minor. - -## 3.0.2 - -### Patch Changes - -- [`8fe77b6`](https://github.com/changesets/changesets/commit/8fe77b614b726b861900e69c015c8876f64ed04f) [#366](https://github.com/changesets/changesets/pull/366) Thanks [@Blasz](https://github.com/Blasz)! - Fix release version commit including dev dependent packages with release type 'none' - -## 3.0.1 - -### Patch Changes - -- [`52a88ce`](https://github.com/changesets/changesets/commit/52a88ce816692f6b18fa8f3f67d707b78b0b8210) [#361](https://github.com/changesets/changesets/pull/361) Thanks [@Blasz](https://github.com/Blasz)! - Fix dependency release lines being output when they were skipped via the updateInternalDependencies config option - -## 3.0.0 - -### Major Changes - -- [`2b49d66`](https://github.com/changesets/changesets/commit/2b49d668ecaa1333bc5c7c5be4648dda1b11528d) [#358](https://github.com/changesets/changesets/pull/358) Thanks [@Blasz](https://github.com/Blasz)! - Add new updateInternalDependencies config option to disable auto bumping of internal dependencies in the same release if the dependency was only patch bumped - -### Patch Changes - -- Updated dependencies [[`89f0c49`](https://github.com/changesets/changesets/commit/89f0c497ac21b8d008da67caff8032947836c7b1), [`2b49d66`](https://github.com/changesets/changesets/commit/2b49d668ecaa1333bc5c7c5be4648dda1b11528d), [`09f62f9`](https://github.com/changesets/changesets/commit/09f62f9c822f31899a48cbd93c7801d72a80b97e)]: - - @changesets/git@1.0.5 - - @changesets/types@3.0.0 - - @changesets/config@1.1.0 - -## 2.0.2 - -### Patch Changes - -- [`3dbab2e`](https://github.com/changesets/changesets/commit/3dbab2e80d9a8a0cccc02d74c6d8150f603219e6) [#343](https://github.com/changesets/changesets/pull/343) Thanks [@zkochan](https://github.com/zkochan)! - Self-references should be skipped when bumping versions. A self-reference is a dev dep that has the same name as the package. Some projects use self-references as a convenient way to require files using relative paths from the root directory. - -## 2.0.1 - -### Patch Changes - -- [`1706fb7`](https://github.com/changesets/changesets/commit/1706fb751ecc2f5a792c42f467b2063078d58716) [#321](https://github.com/changesets/changesets/pull/321) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fix TypeScript declarations - -- Updated dependencies [[`1706fb7`](https://github.com/changesets/changesets/commit/1706fb751ecc2f5a792c42f467b2063078d58716)]: - - @changesets/config@1.0.3 - - @changesets/get-version-range-type@0.3.2 - - @changesets/git@1.0.3 - - @changesets/types@2.0.1 - -## 2.0.0 - -### Major Changes - -- [`011d57f`](https://github.com/changesets/changesets/commit/011d57f1edf9e37f75a8bef4f918e72166af096e) [#313](https://github.com/changesets/changesets/pull/313) Thanks [@zkochan](https://github.com/zkochan)! - Bumping `devDependencies` no longer bumps the packages that they depend on. - - This is a pretty big "quality of life" update, which means we will do fewer releases of packages overall, as there is no change of installed packages. - - This has been made a breaking change as it changes the behavior of what will be published. It should only be for the better, but we didn't want to surprise you with it. - -- [`011d57f`](https://github.com/changesets/changesets/commit/011d57f1edf9e37f75a8bef4f918e72166af096e) [#313](https://github.com/changesets/changesets/pull/313) Thanks [@zkochan](https://github.com/zkochan)! - Updates to devDependencies are not affecting the end users of a package. So we are not listing these changes in the changelog file. - -### Minor Changes - -- [`c3cc232`](https://github.com/changesets/changesets/commit/c3cc23204c6cb80487aced1b37ebe8ffde0e2111) [#311](https://github.com/changesets/changesets/pull/311) Thanks [@zkochan](https://github.com/zkochan)! - Added support for workspace ranges. They are now correctly kept and updated when applying a release plan. - -### Patch Changes - -- [`44555b4`](https://github.com/changesets/changesets/commit/44555b44cac843d973d31adbfc7703f45117d204) [#315](https://github.com/changesets/changesets/pull/315) Thanks [@maraisr](https://github.com/maraisr)! - Allows prettier to know about filepaths so it can apply file overrides - -- Updated dependencies [[`011d57f`](https://github.com/changesets/changesets/commit/011d57f1edf9e37f75a8bef4f918e72166af096e)]: - - @changesets/types@2.0.0 - - @changesets/config@1.0.2 - - @changesets/git@1.0.2 - -## 1.0.1 - -### Patch Changes - -- [`04ddfd7`](https://github.com/changesets/changesets/commit/04ddfd7c3acbfb84ef9c92873fe7f9dea1f5145c) [#305](https://github.com/changesets/changesets/pull/305) Thanks [@Noviny](https://github.com/Noviny)! - Add link to changelog in readme - -- [`b49e1cf`](https://github.com/changesets/changesets/commit/b49e1cff65dca7fe9e341a35aa91704aa0e51cb3) [#306](https://github.com/changesets/changesets/pull/306) Thanks [@Andarist](https://github.com/Andarist)! - Ignore `node_modules` when glob searching for packages. This fixes an issue with package cycles. - -- Updated dependencies [[`04ddfd7`](https://github.com/changesets/changesets/commit/04ddfd7c3acbfb84ef9c92873fe7f9dea1f5145c), [`e56928b`](https://github.com/changesets/changesets/commit/e56928bbd6f9096def06ac37487bdbf28efec9d1), [`b49e1cf`](https://github.com/changesets/changesets/commit/b49e1cff65dca7fe9e341a35aa91704aa0e51cb3)]: - - @changesets/config@1.0.1 - - @changesets/get-version-range-type@0.3.1 - - @changesets/git@1.0.1 - - @changesets/types@1.0.1 - -## 1.0.0 - -### Major Changes - -- [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20) [#290](https://github.com/changesets/changesets/pull/290) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Accept `Packages` object from `@manypkg/get-packages` instead of `cwd` - -### Patch Changes - -- Updated dependencies [[`41e2e3d`](https://github.com/changesets/changesets/commit/41e2e3dd1053ff2f35a1a07e60793c9099f26997), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20), [`2363366`](https://github.com/changesets/changesets/commit/2363366756d1b15bddf6d803911baccfca03cbdf), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20)]: - - @changesets/types@1.0.0 - - @changesets/git@1.0.0 - - @changesets/config@1.0.0 - -## 0.4.2 - -### Patch Changes - -- Updated dependencies [[`d08c3b3`](https://github.com/changesets/changesets/commit/d08c3b309d38090ce4f1b8f62cc6b78a5a04efcf)]: - - @changesets/get-version-range-type@0.3.0 - -## 0.4.1 - -### Patch Changes - -- Updated dependencies [[`1282ef6`](https://github.com/changesets/changesets/commit/1282ef698761c1f634fb409842cc7de6b4d03da4)]: - - @changesets/get-version-range-type@0.2.0 - -## 0.4.0 - -### Minor Changes - -- [`fe0d9192`](https://github.com/changesets/changesets/commit/fe0d9192544646e1a755202b87dfe850c1c200a3) [#236](https://github.com/changesets/changesets/pull/236) Thanks [@Andarist](https://github.com/Andarist)! - Read also pnpm workspace packages when searching for packages. - -### Patch Changes - -- [`ef6402c9`](https://github.com/changesets/changesets/commit/ef6402c9d8dc1832126732dbbafb015b71f57f83) [#252](https://github.com/changesets/changesets/pull/252) Thanks [@Andarist](https://github.com/Andarist)! - Ensure there is a newline between release lines so the final markdown preserves correct formatting. - -- [`503154db`](https://github.com/changesets/changesets/commit/503154db39fe8ab88a1176e4569c48078bcf5569) [#257](https://github.com/changesets/changesets/pull/257) Thanks [@Noviny](https://github.com/Noviny)! - Move catch statement so errors are less spammy - -- Updated dependencies [[`fe0d9192`](https://github.com/changesets/changesets/commit/fe0d9192544646e1a755202b87dfe850c1c200a3), [`fe0d9192`](https://github.com/changesets/changesets/commit/fe0d9192544646e1a755202b87dfe850c1c200a3)]: - - get-workspaces@0.6.0 - - @changesets/git@0.4.0 - -## 0.3.1 - -### Patch Changes - -- Updated dependencies [[`bca8865`](https://github.com/changesets/changesets/commit/bca88652d38caa31e789c4564230ba0b49562ad2), [`bca8865`](https://github.com/changesets/changesets/commit/bca88652d38caa31e789c4564230ba0b49562ad2)]: - - @changesets/config@0.3.0 - - @changesets/git@0.3.0 - -## 0.3.0 - -### Minor Changes - -- [`8f0a1ef`](https://github.com/changesets/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0) [#183](https://github.com/changesets/changesets/pull/183) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Add support for prereleases. For more information, see [the docs on prereleases](https://github.com/changesets/changesets/blob/main/docs/prereleases.md). - -### Patch Changes - -- Updated dependencies [[`8f0a1ef`](https://github.com/changesets/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0)]: - - @changesets/types@0.4.0 - - @changesets/config@0.2.3 - - get-workspaces@0.5.2 - - @changesets/git@0.2.4 - -## 0.2.3 - -### Patch Changes - -- [`a679b1d`](https://github.com/changesets/changesets/commit/a679b1dcdcb56652d31536e2d6326ba02a9dfe62) [#204](https://github.com/changesets/changesets/pull/204) Thanks [@Andarist](https://github.com/Andarist)! - Correctly handle the 'access' flag for packages - - Previously, we had access as "public" or "private", access "private" isn't valid. This was a confusing because there are three states for publishing a package: - - - `private: true` - the package will not be published to npm (worked) - - `access: public` - the package will be publicly published to npm (even if it uses a scope) (worked) - - `access: restricted` - the package will be published to npm, but only visible/accessible by those who are part of the scope. This technically worked, but we were passing the wrong bit of information in. - - Now, we pass the correct access options `public` or `restricted`. - -- [`da11ab8`](https://github.com/changesets/changesets/commit/da11ab8a4e4324a7023d12f990beec8c3b6ae35f) [#205](https://github.com/changesets/changesets/pull/205) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Don't update ranges set to \*/x/X when versioning - -- Updated dependencies [[`5ababa0`](https://github.com/changesets/changesets/commit/5ababa08c8ea5ee3b4ff92253e2e752a5976cd27), [`a679b1d`](https://github.com/changesets/changesets/commit/a679b1dcdcb56652d31536e2d6326ba02a9dfe62)]: - - @changesets/config@0.2.2 - - get-workspaces@0.5.1 - - @changesets/types@0.3.1 - -## 0.2.2 - -### Patch Changes - -- [`72babcb`](https://github.com/changesets/changesets/commit/72babcbccbdd41618d9cb90b2a8871fe63643601) [#178](https://github.com/changesets/changesets/pull/178) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fix changelog generator options not being provided - -- Updated dependencies []: - - @changesets/git@0.2.3 - -## 0.2.1 - -### Patch Changes - -- [1ff73b7](https://github.com/changesets/changesets/commit/1ff73b74f414031e49c6fd5a0f68e9974900d381) [#156](https://github.com/changesets/changesets/pull/156) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fix commits not being obtained for old changesets - -- [8c43fa0](https://github.com/changesets/changesets/commit/8c43fa061e2a5a01e4f32504ed351d261761c8dc) [#155](https://github.com/changesets/changesets/pull/155) Thanks [@Noviny](https://github.com/Noviny)! - Add Readme - -- [0320391](https://github.com/changesets/changesets/commit/0320391699a73621d0e51ce031062a06cbdefadc) [#163](https://github.com/changesets/changesets/pull/163) Thanks [@Noviny](https://github.com/Noviny)! - Reordered dependencies in the package json (this should have no impact) - -- Updated dependencies [8c43fa0, 0320391, 1ff73b7]: - - @changesets/get-version-range-type@0.1.1 - - @changesets/git@0.2.1 - - @changesets/types@0.3.0 - - @changesets/config@0.2.1 - -## 0.2.0 - -### Minor Changes - -- [296a6731](https://github.com/changesets/changesets/commit/296a6731) - Safety bump: Towards the end of preparing changesets v2, there was a lot of chaos - this bump is to ensure every package on npm matches what is found in the repository. - -### Patch Changes - -- Updated dependencies [296a6731]: - - @changesets/config@0.2.0 - - @changesets/get-version-range-type@0.1.0 - - get-workspaces@0.5.0 - - @changesets/git@0.2.0 - - @changesets/types@0.2.0 - -## 0.1.2 - -### Patch Changes - -- [a15abbf9](https://github.com/changesets/changesets/commit/a15abbf9) - Previous release shipped unbuilt code - fixing that - -## 0.1.0 - -### Minor Changes - -- [fded7cce](https://github.com/changesets/changesets/commit/fded7cce) - Initial release diff --git a/node_modules/@changesets/apply-release-plan/README.md b/node_modules/@changesets/apply-release-plan/README.md deleted file mode 100644 index 3d630d44..00000000 --- a/node_modules/@changesets/apply-release-plan/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# Apply Release Plan - -[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@changesets/apply-release-plan) - -This takes a `releasePlan` object for changesets and applies the expected changes from that -release. This includes updating package versions, and updating changelogs. - -```ts -import applyReleasePlan from "@changesets/apply-release-plan"; -import { ReleasePlan, Config } from "@changesets/types"; -import { Packages } from '@manypkg/get-packages' - -await applyReleasePlan( - // The release plan to be applied - see @changesets/types for information about its shape - aReleasePlan: ReleasePlan, - // The packages that applyReleasePlan should be run for from @manypkg/get-packages - packages: Packages, - // A valid @changesets/config config - see @changesets/types for information about its shape - config: Config -); -``` - -Note that `apply-release-plan` does not validate the release plan's accuracy. - -To generate a release plan from written changesets use `@changesets/get-release-plan` diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.mts b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.mts deleted file mode 100644 index 0851d8b2..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.mts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./declarations/src/index.js"; -export { _default as default } from "./changesets-apply-release-plan.cjs.default.js"; -//# sourceMappingURL=changesets-apply-release-plan.cjs.d.mts.map diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.mts.map b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.mts.map deleted file mode 100644 index 915fa41d..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"changesets-apply-release-plan.cjs.d.mts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"} diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.ts b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.ts deleted file mode 100644 index d1be2bf2..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./declarations/src/index"; -export { default } from "./declarations/src/index"; -//# sourceMappingURL=changesets-apply-release-plan.cjs.d.ts.map diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.ts.map b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.ts.map deleted file mode 100644 index 57b2529e..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"changesets-apply-release-plan.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"} diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.default.d.ts b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.default.d.ts deleted file mode 100644 index 922ab3aa..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.default.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as _default } from "./declarations/src/index.js" diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.default.js b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.default.js deleted file mode 100644 index 3bdd1ae1..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.default.js +++ /dev/null @@ -1 +0,0 @@ -exports._default = require("./changesets-apply-release-plan.cjs.js").default; diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.js b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.js deleted file mode 100644 index af74e1a5..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.js +++ /dev/null @@ -1,445 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); -var config = require('@changesets/config'); -var git = require('@changesets/git'); -var resolveFrom = require('resolve-from'); -var detectIndent = require('detect-indent'); -var fs = require('fs-extra'); -var path = require('path'); -var prettier = require('prettier'); -var getVersionRangeType = require('@changesets/get-version-range-type'); -var Range = require('semver/classes/range'); -var semverPrerelease = require('semver/functions/prerelease'); -var semverSatisfies = require('semver/functions/satisfies'); -var startCase = require('lodash.startcase'); - -function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } - -function _interopNamespace(e) { - if (e && e.__esModule) return e; - var n = Object.create(null); - if (e) { - Object.keys(e).forEach(function (k) { - if (k !== 'default') { - var d = Object.getOwnPropertyDescriptor(e, k); - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: function () { return e[k]; } - }); - } - }); - } - n["default"] = e; - return Object.freeze(n); -} - -var git__namespace = /*#__PURE__*/_interopNamespace(git); -var resolveFrom__default = /*#__PURE__*/_interopDefault(resolveFrom); -var detectIndent__default = /*#__PURE__*/_interopDefault(detectIndent); -var fs__default = /*#__PURE__*/_interopDefault(fs); -var path__default = /*#__PURE__*/_interopDefault(path); -var prettier__default = /*#__PURE__*/_interopDefault(prettier); -var getVersionRangeType__default = /*#__PURE__*/_interopDefault(getVersionRangeType); -var Range__default = /*#__PURE__*/_interopDefault(Range); -var semverPrerelease__default = /*#__PURE__*/_interopDefault(semverPrerelease); -var semverSatisfies__default = /*#__PURE__*/_interopDefault(semverSatisfies); -var startCase__default = /*#__PURE__*/_interopDefault(startCase); - -/** - * Shared utility functions and business logic - */ -const bumpTypes = ["none", "patch", "minor", "major"]; -/* Converts a bump type into a numeric level to indicate order */ - -function getBumpLevel(type) { - const level = bumpTypes.indexOf(type); - - if (level < 0) { - throw new Error(`Unrecognised bump type ${type}`); - } - - return level; -} - -function shouldUpdateDependencyBasedOnConfig(release, { - depVersionRange, - depType -}, { - minReleaseType, - onlyUpdatePeerDependentsWhenOutOfRange -}) { - if (!semverSatisfies__default["default"](release.version, depVersionRange)) { - // Dependencies leaving semver range should always be updated - return true; - } - - const minLevel = getBumpLevel(minReleaseType); - let shouldUpdate = getBumpLevel(release.type) >= minLevel; - - if (depType === "peerDependencies") { - shouldUpdate = !onlyUpdatePeerDependentsWhenOutOfRange; - } - - return shouldUpdate; -} - -const DEPENDENCY_TYPES = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; -function versionPackage(release, versionsToUpdate, { - updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange, - bumpVersionsWithWorkspaceProtocolOnly, - snapshot -}) { - let { - newVersion, - packageJson - } = release; - packageJson.version = newVersion; - - for (let depType of DEPENDENCY_TYPES) { - let deps = packageJson[depType]; - - if (deps) { - for (let { - name, - version, - type - } of versionsToUpdate) { - let depCurrentVersion = deps[name]; - - if (!depCurrentVersion || depCurrentVersion.startsWith("file:") || depCurrentVersion.startsWith("link:") || !shouldUpdateDependencyBasedOnConfig({ - version, - type - }, { - depVersionRange: depCurrentVersion, - depType - }, { - minReleaseType: updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange - })) { - continue; - } - - const usesWorkspaceRange = depCurrentVersion.startsWith("workspace:"); - - if (!usesWorkspaceRange && bumpVersionsWithWorkspaceProtocolOnly === true) { - continue; - } - - if (usesWorkspaceRange) { - const workspaceDepVersion = depCurrentVersion.replace(/^workspace:/, ""); - - if (workspaceDepVersion === "*" || workspaceDepVersion === "^" || workspaceDepVersion === "~") { - continue; - } - - depCurrentVersion = workspaceDepVersion; - } - - if ( // an empty string is the normalised version of x/X/* - // we don't want to change these versions because they will match - // any version and if someone makes the range that - // they probably want it to stay like that... - new Range__default["default"](depCurrentVersion).range !== "" || // ...unless the current version of a dependency is a prerelease (which doesn't satisfy x/X/*) - // leaving those as is would leave the package in a non-installable state (wrong dep versions would get installed) - semverPrerelease__default["default"](version) !== null) { - let newNewRange = snapshot ? version : `${getVersionRangeType__default["default"](depCurrentVersion)}${version}`; - if (usesWorkspaceRange) newNewRange = `workspace:${newNewRange}`; - deps[name] = newNewRange; - } - } - } - } - - return _objectSpread(_objectSpread({}, release), {}, { - packageJson - }); -} - -async function generateChangesForVersionTypeMarkdown(obj, type) { - let releaseLines = await Promise.all(obj[type]); - releaseLines = releaseLines.filter(x => x); - - if (releaseLines.length) { - return `### ${startCase__default["default"](type)} Changes\n\n${releaseLines.join("\n")}\n`; - } -} // release is the package and version we are releasing - - -async function getChangelogEntry(release, releases, changesets, changelogFuncs, changelogOpts, { - updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange -}) { - if (release.type === "none") return null; - const changelogLines = { - major: [], - minor: [], - patch: [] - }; // I sort of feel we can do better, as ComprehensiveReleases have an array - // of the relevant changesets but since we need the version type for the - // release in the changeset, I don't know if we can - // We can filter here, but that just adds another iteration over this list - - changesets.forEach(cs => { - const rls = cs.releases.find(r => r.name === release.name); - - if (rls && rls.type !== "none") { - changelogLines[rls.type].push(changelogFuncs.getReleaseLine(cs, rls.type, changelogOpts)); - } - }); - let dependentReleases = releases.filter(rel => { - var _release$packageJson$, _release$packageJson$2; - - const dependencyVersionRange = (_release$packageJson$ = release.packageJson.dependencies) === null || _release$packageJson$ === void 0 ? void 0 : _release$packageJson$[rel.name]; - const peerDependencyVersionRange = (_release$packageJson$2 = release.packageJson.peerDependencies) === null || _release$packageJson$2 === void 0 ? void 0 : _release$packageJson$2[rel.name]; - const versionRange = dependencyVersionRange || peerDependencyVersionRange; - return versionRange && shouldUpdateDependencyBasedOnConfig({ - type: rel.type, - version: rel.newVersion - }, { - depVersionRange: versionRange, - depType: dependencyVersionRange ? "dependencies" : "peerDependencies" - }, { - minReleaseType: updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange - }); - }); - let relevantChangesetIds = new Set(); - dependentReleases.forEach(rel => { - rel.changesets.forEach(cs => { - relevantChangesetIds.add(cs); - }); - }); - let relevantChangesets = changesets.filter(cs => relevantChangesetIds.has(cs.id)); - changelogLines.patch.push(changelogFuncs.getDependencyReleaseLine(relevantChangesets, dependentReleases, changelogOpts)); - return [`## ${release.newVersion}`, await generateChangesForVersionTypeMarkdown(changelogLines, "major"), await generateChangesForVersionTypeMarkdown(changelogLines, "minor"), await generateChangesForVersionTypeMarkdown(changelogLines, "patch")].filter(line => line).join("\n"); -} - -function getPrettierInstance(cwd) { - try { - return require(require.resolve("prettier", { - paths: [cwd] - })); - } catch (err) { - if (!err || err.code !== "MODULE_NOT_FOUND") { - throw err; - } - - return prettier__default["default"]; - } -} - -function stringDefined(s) { - return !!s; -} - -async function getCommitsThatAddChangesets(changesetIds, cwd) { - const paths = changesetIds.map(id => `.changeset/${id}.md`); - const commits = await git__namespace.getCommitsThatAddFiles(paths, { - cwd - }); - - if (commits.every(stringDefined)) { - // We have commits for all files - return commits; - } // Some files didn't exist. Try legacy filenames instead - - - const missingIds = changesetIds.map((id, i) => commits[i] ? undefined : id).filter(stringDefined); - const legacyPaths = missingIds.map(id => `.changeset/${id}/changes.json`); - const commitsForLegacyPaths = await git__namespace.getCommitsThatAddFiles(legacyPaths, { - cwd - }); // Fill in the blanks in the array of commits - - changesetIds.forEach((id, i) => { - if (!commits[i]) { - const missingIndex = missingIds.indexOf(id); - commits[i] = commitsForLegacyPaths[missingIndex]; - } - }); - return commits; -} - -async function applyReleasePlan(releasePlan, packages, config$1 = config.defaultConfig, snapshot) { - let cwd = packages.root.dir; - let touchedFiles = []; - const packagesByName = new Map(packages.packages.map(x => [x.packageJson.name, x])); - let { - releases, - changesets - } = releasePlan; - let releasesWithPackage = releases.map(release => { - let pkg = packagesByName.get(release.name); - if (!pkg) throw new Error(`Could not find matching package for release of: ${release.name}`); - return _objectSpread(_objectSpread({}, release), pkg); - }); // I think this might be the wrong place to do this, but gotta do it somewhere - add changelog entries to releases - - let releaseWithChangelogs = await getNewChangelogEntry(releasesWithPackage, changesets, config$1, cwd); - - if (releasePlan.preState !== undefined && snapshot === undefined) { - if (releasePlan.preState.mode === "exit") { - await fs__default["default"].remove(path__default["default"].join(cwd, ".changeset", "pre.json")); - } else { - await fs__default["default"].writeFile(path__default["default"].join(cwd, ".changeset", "pre.json"), JSON.stringify(releasePlan.preState, null, 2) + "\n"); - } - } - - let versionsToUpdate = releases.map(({ - name, - newVersion, - type - }) => ({ - name, - version: newVersion, - type - })); // iterate over releases updating packages - - let finalisedRelease = releaseWithChangelogs.map(release => { - return versionPackage(release, versionsToUpdate, { - updateInternalDependencies: config$1.updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange: config$1.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange, - bumpVersionsWithWorkspaceProtocolOnly: config$1.bumpVersionsWithWorkspaceProtocolOnly, - snapshot - }); - }); - let prettierInstance = getPrettierInstance(cwd); - let prettierConfig = await prettierInstance.resolveConfig(cwd); - - for (let release of finalisedRelease) { - let { - changelog, - packageJson, - dir, - name - } = release; - const pkgJSONPath = path__default["default"].resolve(dir, "package.json"); - await updatePackageJson(pkgJSONPath, packageJson); - touchedFiles.push(pkgJSONPath); - - if (changelog && changelog.length > 0) { - const changelogPath = path__default["default"].resolve(dir, "CHANGELOG.md"); - await updateChangelog(changelogPath, changelog, name, prettierInstance, prettierConfig); - touchedFiles.push(changelogPath); - } - } - - if (releasePlan.preState === undefined || releasePlan.preState.mode === "exit") { - let changesetFolder = path__default["default"].resolve(cwd, ".changeset"); - await Promise.all(changesets.map(async changeset => { - let changesetPath = path__default["default"].resolve(changesetFolder, `${changeset.id}.md`); - let changesetFolderPath = path__default["default"].resolve(changesetFolder, changeset.id); - - if (await fs__default["default"].pathExists(changesetPath)) { - // DO NOT remove changeset for ignored packages - // Mixed changeset that contains both ignored packages and not ignored packages are disallowed - // At this point, we know there is no such changeset, because otherwise the program would've already failed, - // so we just check if any ignored package exists in this changeset, and only remove it if none exists - // Ignored list is added in v2, so we don't need to do it for v1 changesets - if (!changeset.releases.find(release => config$1.ignore.includes(release.name))) { - touchedFiles.push(changesetPath); - await fs__default["default"].remove(changesetPath); - } // TO REMOVE LOGIC - this works to remove v1 changesets. We should be removed in the future - - } else if (await fs__default["default"].pathExists(changesetFolderPath)) { - touchedFiles.push(changesetFolderPath); - await fs__default["default"].remove(changesetFolderPath); - } - })); - } // We return the touched files to be committed in the cli - - - return touchedFiles; -} - -async function getNewChangelogEntry(releasesWithPackage, changesets, config, cwd) { - if (!config.changelog) { - return Promise.resolve(releasesWithPackage.map(release => _objectSpread(_objectSpread({}, release), {}, { - changelog: null - }))); - } - - let getChangelogFuncs = { - getReleaseLine: () => Promise.resolve(""), - getDependencyReleaseLine: () => Promise.resolve("") - }; - const changelogOpts = config.changelog[1]; - let changesetPath = path__default["default"].join(cwd, ".changeset"); - let changelogPath = resolveFrom__default["default"](changesetPath, config.changelog[0]); - - let possibleChangelogFunc = require(changelogPath); - - if (possibleChangelogFunc.default) { - possibleChangelogFunc = possibleChangelogFunc.default; - } - - if (typeof possibleChangelogFunc.getReleaseLine === "function" && typeof possibleChangelogFunc.getDependencyReleaseLine === "function") { - getChangelogFuncs = possibleChangelogFunc; - } else { - throw new Error("Could not resolve changelog generation functions"); - } - - let commits = await getCommitsThatAddChangesets(changesets.map(cs => cs.id), cwd); - let moddedChangesets = changesets.map((cs, i) => _objectSpread(_objectSpread({}, cs), {}, { - commit: commits[i] - })); - return Promise.all(releasesWithPackage.map(async release => { - let changelog = await getChangelogEntry(release, releasesWithPackage, moddedChangesets, getChangelogFuncs, changelogOpts, { - updateInternalDependencies: config.updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange - }); - return _objectSpread(_objectSpread({}, release), {}, { - changelog - }); - })).catch(e => { - console.error("The following error was encountered while generating changelog entries"); - console.error("We have escaped applying the changesets, and no files should have been affected"); - throw e; - }); -} - -async function updateChangelog(changelogPath, changelog, name, prettierInstance, prettierConfig) { - let templateString = `\n\n${changelog.trim()}\n`; - - try { - if (fs__default["default"].existsSync(changelogPath)) { - await prependFile(changelogPath, templateString, name, prettierInstance, prettierConfig); - } else { - await writeFormattedMarkdownFile(changelogPath, `# ${name}${templateString}`, prettierInstance, prettierConfig); - } - } catch (e) { - console.warn(e); - } -} - -async function updatePackageJson(pkgJsonPath, pkgJson) { - const pkgRaw = await fs__default["default"].readFile(pkgJsonPath, "utf-8"); - const indent = detectIndent__default["default"](pkgRaw).indent || " "; - const stringified = JSON.stringify(pkgJson, null, indent) + (pkgRaw.endsWith("\n") ? "\n" : ""); - return fs__default["default"].writeFile(pkgJsonPath, stringified); -} - -async function prependFile(filePath, data, name, prettierInstance, prettierConfig) { - const fileData = fs__default["default"].readFileSync(filePath).toString(); // if the file exists but doesn't have the header, we'll add it in - - if (!fileData) { - const completelyNewChangelog = `# ${name}${data}`; - await writeFormattedMarkdownFile(filePath, completelyNewChangelog, prettierInstance, prettierConfig); - return; - } - - const newChangelog = fileData.replace("\n", data); - await writeFormattedMarkdownFile(filePath, newChangelog, prettierInstance, prettierConfig); -} - -async function writeFormattedMarkdownFile(filePath, content, prettierInstance, prettierConfig) { - await fs__default["default"].writeFile(filePath, // Prettier v3 returns a promise - await prettierInstance.format(content, _objectSpread(_objectSpread({}, prettierConfig), {}, { - filepath: filePath, - parser: "markdown" - }))); -} - -exports["default"] = applyReleasePlan; diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.mjs b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.mjs deleted file mode 100644 index 2739b107..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.cjs.mjs +++ /dev/null @@ -1,2 +0,0 @@ -import "./changesets-apply-release-plan.cjs.js"; -export { _default as default } from "./changesets-apply-release-plan.cjs.default.js"; diff --git a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.esm.js b/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.esm.js deleted file mode 100644 index 69243cbb..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/changesets-apply-release-plan.esm.js +++ /dev/null @@ -1,409 +0,0 @@ -import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2'; -import { defaultConfig } from '@changesets/config'; -import * as git from '@changesets/git'; -import resolveFrom from 'resolve-from'; -import detectIndent from 'detect-indent'; -import fs from 'fs-extra'; -import path from 'path'; -import prettier from 'prettier'; -import getVersionRangeType from '@changesets/get-version-range-type'; -import Range from 'semver/classes/range'; -import semverPrerelease from 'semver/functions/prerelease'; -import semverSatisfies from 'semver/functions/satisfies'; -import startCase from 'lodash.startcase'; - -/** - * Shared utility functions and business logic - */ -const bumpTypes = ["none", "patch", "minor", "major"]; -/* Converts a bump type into a numeric level to indicate order */ - -function getBumpLevel(type) { - const level = bumpTypes.indexOf(type); - - if (level < 0) { - throw new Error(`Unrecognised bump type ${type}`); - } - - return level; -} - -function shouldUpdateDependencyBasedOnConfig(release, { - depVersionRange, - depType -}, { - minReleaseType, - onlyUpdatePeerDependentsWhenOutOfRange -}) { - if (!semverSatisfies(release.version, depVersionRange)) { - // Dependencies leaving semver range should always be updated - return true; - } - - const minLevel = getBumpLevel(minReleaseType); - let shouldUpdate = getBumpLevel(release.type) >= minLevel; - - if (depType === "peerDependencies") { - shouldUpdate = !onlyUpdatePeerDependentsWhenOutOfRange; - } - - return shouldUpdate; -} - -const DEPENDENCY_TYPES = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; -function versionPackage(release, versionsToUpdate, { - updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange, - bumpVersionsWithWorkspaceProtocolOnly, - snapshot -}) { - let { - newVersion, - packageJson - } = release; - packageJson.version = newVersion; - - for (let depType of DEPENDENCY_TYPES) { - let deps = packageJson[depType]; - - if (deps) { - for (let { - name, - version, - type - } of versionsToUpdate) { - let depCurrentVersion = deps[name]; - - if (!depCurrentVersion || depCurrentVersion.startsWith("file:") || depCurrentVersion.startsWith("link:") || !shouldUpdateDependencyBasedOnConfig({ - version, - type - }, { - depVersionRange: depCurrentVersion, - depType - }, { - minReleaseType: updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange - })) { - continue; - } - - const usesWorkspaceRange = depCurrentVersion.startsWith("workspace:"); - - if (!usesWorkspaceRange && bumpVersionsWithWorkspaceProtocolOnly === true) { - continue; - } - - if (usesWorkspaceRange) { - const workspaceDepVersion = depCurrentVersion.replace(/^workspace:/, ""); - - if (workspaceDepVersion === "*" || workspaceDepVersion === "^" || workspaceDepVersion === "~") { - continue; - } - - depCurrentVersion = workspaceDepVersion; - } - - if ( // an empty string is the normalised version of x/X/* - // we don't want to change these versions because they will match - // any version and if someone makes the range that - // they probably want it to stay like that... - new Range(depCurrentVersion).range !== "" || // ...unless the current version of a dependency is a prerelease (which doesn't satisfy x/X/*) - // leaving those as is would leave the package in a non-installable state (wrong dep versions would get installed) - semverPrerelease(version) !== null) { - let newNewRange = snapshot ? version : `${getVersionRangeType(depCurrentVersion)}${version}`; - if (usesWorkspaceRange) newNewRange = `workspace:${newNewRange}`; - deps[name] = newNewRange; - } - } - } - } - - return _objectSpread(_objectSpread({}, release), {}, { - packageJson - }); -} - -async function generateChangesForVersionTypeMarkdown(obj, type) { - let releaseLines = await Promise.all(obj[type]); - releaseLines = releaseLines.filter(x => x); - - if (releaseLines.length) { - return `### ${startCase(type)} Changes\n\n${releaseLines.join("\n")}\n`; - } -} // release is the package and version we are releasing - - -async function getChangelogEntry(release, releases, changesets, changelogFuncs, changelogOpts, { - updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange -}) { - if (release.type === "none") return null; - const changelogLines = { - major: [], - minor: [], - patch: [] - }; // I sort of feel we can do better, as ComprehensiveReleases have an array - // of the relevant changesets but since we need the version type for the - // release in the changeset, I don't know if we can - // We can filter here, but that just adds another iteration over this list - - changesets.forEach(cs => { - const rls = cs.releases.find(r => r.name === release.name); - - if (rls && rls.type !== "none") { - changelogLines[rls.type].push(changelogFuncs.getReleaseLine(cs, rls.type, changelogOpts)); - } - }); - let dependentReleases = releases.filter(rel => { - var _release$packageJson$, _release$packageJson$2; - - const dependencyVersionRange = (_release$packageJson$ = release.packageJson.dependencies) === null || _release$packageJson$ === void 0 ? void 0 : _release$packageJson$[rel.name]; - const peerDependencyVersionRange = (_release$packageJson$2 = release.packageJson.peerDependencies) === null || _release$packageJson$2 === void 0 ? void 0 : _release$packageJson$2[rel.name]; - const versionRange = dependencyVersionRange || peerDependencyVersionRange; - return versionRange && shouldUpdateDependencyBasedOnConfig({ - type: rel.type, - version: rel.newVersion - }, { - depVersionRange: versionRange, - depType: dependencyVersionRange ? "dependencies" : "peerDependencies" - }, { - minReleaseType: updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange - }); - }); - let relevantChangesetIds = new Set(); - dependentReleases.forEach(rel => { - rel.changesets.forEach(cs => { - relevantChangesetIds.add(cs); - }); - }); - let relevantChangesets = changesets.filter(cs => relevantChangesetIds.has(cs.id)); - changelogLines.patch.push(changelogFuncs.getDependencyReleaseLine(relevantChangesets, dependentReleases, changelogOpts)); - return [`## ${release.newVersion}`, await generateChangesForVersionTypeMarkdown(changelogLines, "major"), await generateChangesForVersionTypeMarkdown(changelogLines, "minor"), await generateChangesForVersionTypeMarkdown(changelogLines, "patch")].filter(line => line).join("\n"); -} - -function getPrettierInstance(cwd) { - try { - return require(require.resolve("prettier", { - paths: [cwd] - })); - } catch (err) { - if (!err || err.code !== "MODULE_NOT_FOUND") { - throw err; - } - - return prettier; - } -} - -function stringDefined(s) { - return !!s; -} - -async function getCommitsThatAddChangesets(changesetIds, cwd) { - const paths = changesetIds.map(id => `.changeset/${id}.md`); - const commits = await git.getCommitsThatAddFiles(paths, { - cwd - }); - - if (commits.every(stringDefined)) { - // We have commits for all files - return commits; - } // Some files didn't exist. Try legacy filenames instead - - - const missingIds = changesetIds.map((id, i) => commits[i] ? undefined : id).filter(stringDefined); - const legacyPaths = missingIds.map(id => `.changeset/${id}/changes.json`); - const commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, { - cwd - }); // Fill in the blanks in the array of commits - - changesetIds.forEach((id, i) => { - if (!commits[i]) { - const missingIndex = missingIds.indexOf(id); - commits[i] = commitsForLegacyPaths[missingIndex]; - } - }); - return commits; -} - -async function applyReleasePlan(releasePlan, packages, config = defaultConfig, snapshot) { - let cwd = packages.root.dir; - let touchedFiles = []; - const packagesByName = new Map(packages.packages.map(x => [x.packageJson.name, x])); - let { - releases, - changesets - } = releasePlan; - let releasesWithPackage = releases.map(release => { - let pkg = packagesByName.get(release.name); - if (!pkg) throw new Error(`Could not find matching package for release of: ${release.name}`); - return _objectSpread(_objectSpread({}, release), pkg); - }); // I think this might be the wrong place to do this, but gotta do it somewhere - add changelog entries to releases - - let releaseWithChangelogs = await getNewChangelogEntry(releasesWithPackage, changesets, config, cwd); - - if (releasePlan.preState !== undefined && snapshot === undefined) { - if (releasePlan.preState.mode === "exit") { - await fs.remove(path.join(cwd, ".changeset", "pre.json")); - } else { - await fs.writeFile(path.join(cwd, ".changeset", "pre.json"), JSON.stringify(releasePlan.preState, null, 2) + "\n"); - } - } - - let versionsToUpdate = releases.map(({ - name, - newVersion, - type - }) => ({ - name, - version: newVersion, - type - })); // iterate over releases updating packages - - let finalisedRelease = releaseWithChangelogs.map(release => { - return versionPackage(release, versionsToUpdate, { - updateInternalDependencies: config.updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange, - bumpVersionsWithWorkspaceProtocolOnly: config.bumpVersionsWithWorkspaceProtocolOnly, - snapshot - }); - }); - let prettierInstance = getPrettierInstance(cwd); - let prettierConfig = await prettierInstance.resolveConfig(cwd); - - for (let release of finalisedRelease) { - let { - changelog, - packageJson, - dir, - name - } = release; - const pkgJSONPath = path.resolve(dir, "package.json"); - await updatePackageJson(pkgJSONPath, packageJson); - touchedFiles.push(pkgJSONPath); - - if (changelog && changelog.length > 0) { - const changelogPath = path.resolve(dir, "CHANGELOG.md"); - await updateChangelog(changelogPath, changelog, name, prettierInstance, prettierConfig); - touchedFiles.push(changelogPath); - } - } - - if (releasePlan.preState === undefined || releasePlan.preState.mode === "exit") { - let changesetFolder = path.resolve(cwd, ".changeset"); - await Promise.all(changesets.map(async changeset => { - let changesetPath = path.resolve(changesetFolder, `${changeset.id}.md`); - let changesetFolderPath = path.resolve(changesetFolder, changeset.id); - - if (await fs.pathExists(changesetPath)) { - // DO NOT remove changeset for ignored packages - // Mixed changeset that contains both ignored packages and not ignored packages are disallowed - // At this point, we know there is no such changeset, because otherwise the program would've already failed, - // so we just check if any ignored package exists in this changeset, and only remove it if none exists - // Ignored list is added in v2, so we don't need to do it for v1 changesets - if (!changeset.releases.find(release => config.ignore.includes(release.name))) { - touchedFiles.push(changesetPath); - await fs.remove(changesetPath); - } // TO REMOVE LOGIC - this works to remove v1 changesets. We should be removed in the future - - } else if (await fs.pathExists(changesetFolderPath)) { - touchedFiles.push(changesetFolderPath); - await fs.remove(changesetFolderPath); - } - })); - } // We return the touched files to be committed in the cli - - - return touchedFiles; -} - -async function getNewChangelogEntry(releasesWithPackage, changesets, config, cwd) { - if (!config.changelog) { - return Promise.resolve(releasesWithPackage.map(release => _objectSpread(_objectSpread({}, release), {}, { - changelog: null - }))); - } - - let getChangelogFuncs = { - getReleaseLine: () => Promise.resolve(""), - getDependencyReleaseLine: () => Promise.resolve("") - }; - const changelogOpts = config.changelog[1]; - let changesetPath = path.join(cwd, ".changeset"); - let changelogPath = resolveFrom(changesetPath, config.changelog[0]); - - let possibleChangelogFunc = require(changelogPath); - - if (possibleChangelogFunc.default) { - possibleChangelogFunc = possibleChangelogFunc.default; - } - - if (typeof possibleChangelogFunc.getReleaseLine === "function" && typeof possibleChangelogFunc.getDependencyReleaseLine === "function") { - getChangelogFuncs = possibleChangelogFunc; - } else { - throw new Error("Could not resolve changelog generation functions"); - } - - let commits = await getCommitsThatAddChangesets(changesets.map(cs => cs.id), cwd); - let moddedChangesets = changesets.map((cs, i) => _objectSpread(_objectSpread({}, cs), {}, { - commit: commits[i] - })); - return Promise.all(releasesWithPackage.map(async release => { - let changelog = await getChangelogEntry(release, releasesWithPackage, moddedChangesets, getChangelogFuncs, changelogOpts, { - updateInternalDependencies: config.updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange - }); - return _objectSpread(_objectSpread({}, release), {}, { - changelog - }); - })).catch(e => { - console.error("The following error was encountered while generating changelog entries"); - console.error("We have escaped applying the changesets, and no files should have been affected"); - throw e; - }); -} - -async function updateChangelog(changelogPath, changelog, name, prettierInstance, prettierConfig) { - let templateString = `\n\n${changelog.trim()}\n`; - - try { - if (fs.existsSync(changelogPath)) { - await prependFile(changelogPath, templateString, name, prettierInstance, prettierConfig); - } else { - await writeFormattedMarkdownFile(changelogPath, `# ${name}${templateString}`, prettierInstance, prettierConfig); - } - } catch (e) { - console.warn(e); - } -} - -async function updatePackageJson(pkgJsonPath, pkgJson) { - const pkgRaw = await fs.readFile(pkgJsonPath, "utf-8"); - const indent = detectIndent(pkgRaw).indent || " "; - const stringified = JSON.stringify(pkgJson, null, indent) + (pkgRaw.endsWith("\n") ? "\n" : ""); - return fs.writeFile(pkgJsonPath, stringified); -} - -async function prependFile(filePath, data, name, prettierInstance, prettierConfig) { - const fileData = fs.readFileSync(filePath).toString(); // if the file exists but doesn't have the header, we'll add it in - - if (!fileData) { - const completelyNewChangelog = `# ${name}${data}`; - await writeFormattedMarkdownFile(filePath, completelyNewChangelog, prettierInstance, prettierConfig); - return; - } - - const newChangelog = fileData.replace("\n", data); - await writeFormattedMarkdownFile(filePath, newChangelog, prettierInstance, prettierConfig); -} - -async function writeFormattedMarkdownFile(filePath, content, prettierInstance, prettierConfig) { - await fs.writeFile(filePath, // Prettier v3 returns a promise - await prettierInstance.format(content, _objectSpread(_objectSpread({}, prettierConfig), {}, { - filepath: filePath, - parser: "markdown" - }))); -} - -export { applyReleasePlan as default }; diff --git a/node_modules/@changesets/apply-release-plan/dist/declarations/src/index.d.ts b/node_modules/@changesets/apply-release-plan/dist/declarations/src/index.d.ts deleted file mode 100644 index 5b1bce6a..00000000 --- a/node_modules/@changesets/apply-release-plan/dist/declarations/src/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ReleasePlan, Config } from "@changesets/types"; -import { Packages } from "@manypkg/get-packages"; -export default function applyReleasePlan(releasePlan: ReleasePlan, packages: Packages, config?: Config, snapshot?: string | boolean): Promise; diff --git a/node_modules/@changesets/apply-release-plan/node_modules/.bin/prettier b/node_modules/@changesets/apply-release-plan/node_modules/.bin/prettier deleted file mode 120000 index 5b834da5..00000000 --- a/node_modules/@changesets/apply-release-plan/node_modules/.bin/prettier +++ /dev/null @@ -1 +0,0 @@ -../../../../prettier/bin-prettier.js \ No newline at end of file diff --git a/node_modules/@changesets/apply-release-plan/node_modules/.bin/semver b/node_modules/@changesets/apply-release-plan/node_modules/.bin/semver deleted file mode 120000 index 501bb2f5..00000000 --- a/node_modules/@changesets/apply-release-plan/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../../../../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/@changesets/apply-release-plan/package.json b/node_modules/@changesets/apply-release-plan/package.json deleted file mode 100644 index e69de673..00000000 --- a/node_modules/@changesets/apply-release-plan/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@changesets/apply-release-plan", - "version": "7.0.0", - "description": "Takes a release plan and applies it to packages", - "main": "dist/changesets-apply-release-plan.cjs.js", - "module": "dist/changesets-apply-release-plan.esm.js", - "exports": { - ".": { - "types": { - "import": "./dist/changesets-apply-release-plan.cjs.mjs", - "default": "./dist/changesets-apply-release-plan.cjs.js" - }, - "module": "./dist/changesets-apply-release-plan.esm.js", - "import": "./dist/changesets-apply-release-plan.cjs.mjs", - "default": "./dist/changesets-apply-release-plan.cjs.js" - }, - "./package.json": "./package.json" - }, - "license": "MIT", - "repository": "https://github.com/changesets/changesets/tree/main/packages/apply-release-plan", - "dependencies": { - "@babel/runtime": "^7.20.1", - "@changesets/config": "^3.0.0", - "@changesets/get-version-range-type": "^0.4.0", - "@changesets/git": "^3.0.0", - "@changesets/types": "^6.0.0", - "@manypkg/get-packages": "^1.1.3", - "detect-indent": "^6.0.0", - "fs-extra": "^7.0.1", - "lodash.startcase": "^4.4.0", - "outdent": "^0.5.0", - "prettier": "^2.7.1", - "resolve-from": "^5.0.0", - "semver": "^7.5.3" - }, - "devDependencies": { - "@changesets/test-utils": "*", - "spawndamnit": "^2.0.0" - } -} diff --git a/node_modules/@changesets/apply-release-plan/src/get-changelog-entry.ts b/node_modules/@changesets/apply-release-plan/src/get-changelog-entry.ts deleted file mode 100644 index 1f07982d..00000000 --- a/node_modules/@changesets/apply-release-plan/src/get-changelog-entry.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { ChangelogFunctions, NewChangesetWithCommit } from "@changesets/types"; - -import { ModCompWithPackage } from "@changesets/types"; -import startCase from "lodash.startcase"; -import { shouldUpdateDependencyBasedOnConfig } from "./utils"; - -type ChangelogLines = { - major: Array>; - minor: Array>; - patch: Array>; -}; - -async function generateChangesForVersionTypeMarkdown( - obj: ChangelogLines, - type: keyof ChangelogLines -) { - let releaseLines = await Promise.all(obj[type]); - releaseLines = releaseLines.filter((x) => x); - if (releaseLines.length) { - return `### ${startCase(type)} Changes\n\n${releaseLines.join("\n")}\n`; - } -} - -// release is the package and version we are releasing -export default async function getChangelogEntry( - release: ModCompWithPackage, - releases: ModCompWithPackage[], - changesets: NewChangesetWithCommit[], - changelogFuncs: ChangelogFunctions, - changelogOpts: any, - { - updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange, - }: { - updateInternalDependencies: "patch" | "minor"; - onlyUpdatePeerDependentsWhenOutOfRange: boolean; - } -) { - if (release.type === "none") return null; - - const changelogLines: ChangelogLines = { - major: [], - minor: [], - patch: [], - }; - - // I sort of feel we can do better, as ComprehensiveReleases have an array - // of the relevant changesets but since we need the version type for the - // release in the changeset, I don't know if we can - // We can filter here, but that just adds another iteration over this list - changesets.forEach((cs) => { - const rls = cs.releases.find((r) => r.name === release.name); - if (rls && rls.type !== "none") { - changelogLines[rls.type].push( - changelogFuncs.getReleaseLine(cs, rls.type, changelogOpts) - ); - } - }); - let dependentReleases = releases.filter((rel) => { - const dependencyVersionRange = release.packageJson.dependencies?.[rel.name]; - const peerDependencyVersionRange = - release.packageJson.peerDependencies?.[rel.name]; - - const versionRange = dependencyVersionRange || peerDependencyVersionRange; - return ( - versionRange && - shouldUpdateDependencyBasedOnConfig( - { type: rel.type, version: rel.newVersion }, - { - depVersionRange: versionRange, - depType: dependencyVersionRange ? "dependencies" : "peerDependencies", - }, - { - minReleaseType: updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange, - } - ) - ); - }); - - let relevantChangesetIds: Set = new Set(); - - dependentReleases.forEach((rel) => { - rel.changesets.forEach((cs) => { - relevantChangesetIds.add(cs); - }); - }); - - let relevantChangesets = changesets.filter((cs) => - relevantChangesetIds.has(cs.id) - ); - - changelogLines.patch.push( - changelogFuncs.getDependencyReleaseLine( - relevantChangesets, - dependentReleases, - changelogOpts - ) - ); - - return [ - `## ${release.newVersion}`, - await generateChangesForVersionTypeMarkdown(changelogLines, "major"), - await generateChangesForVersionTypeMarkdown(changelogLines, "minor"), - await generateChangesForVersionTypeMarkdown(changelogLines, "patch"), - ] - .filter((line) => line) - .join("\n"); -} diff --git a/node_modules/@changesets/apply-release-plan/src/index.test.ts b/node_modules/@changesets/apply-release-plan/src/index.test.ts deleted file mode 100644 index 8d07a81b..00000000 --- a/node_modules/@changesets/apply-release-plan/src/index.test.ts +++ /dev/null @@ -1,3142 +0,0 @@ -import { - ReleasePlan, - Config, - NewChangeset, - ComprehensiveRelease, -} from "@changesets/types"; -import * as git from "@changesets/git"; -import fs from "fs-extra"; -import path from "path"; -import outdent from "outdent"; -import spawn from "spawndamnit"; -import { defaultConfig } from "@changesets/config"; - -import applyReleasePlan from "./"; -import { getPackages } from "@manypkg/get-packages"; -import { - temporarilySilenceLogs, - testdir, - Fixture, -} from "@changesets/test-utils"; - -class FakeReleasePlan { - changesets: NewChangeset[]; - releases: ComprehensiveRelease[]; - config: Config; - - constructor( - changesets: NewChangeset[] = [], - releases: ComprehensiveRelease[] = [], - config: Partial = {} - ) { - const baseChangeset: NewChangeset = { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [{ name: "pkg-a", type: "minor" }], - }; - const baseRelease: ComprehensiveRelease = { - name: "pkg-a", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }; - this.config = { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "patch", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - ...config, - }; - - this.changesets = [baseChangeset, ...changesets]; - this.releases = [baseRelease, ...releases]; - } - - getReleasePlan(): ReleasePlan { - return { - changesets: this.changesets, - releases: this.releases, - preState: undefined, - }; - } -} - -async function testSetup( - fixture: Fixture, - releasePlan: ReleasePlan, - config?: Config, - snapshot?: string | undefined, - setupFunc?: (tempDir: string) => Promise -) { - if (!config) { - config = { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "patch", - ignore: [], - privatePackages: { version: true, tag: false }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - }; - } - let tempDir = await testdir(fixture); - - if (setupFunc) { - await setupFunc(tempDir); - } - - if (config.commit) { - await spawn("git", ["init"], { cwd: tempDir }); - await git.add(".", tempDir); - await git.commit("first commit", tempDir); - } - - return { - changedFiles: await applyReleasePlan( - releasePlan, - await getPackages(tempDir), - config, - snapshot - ), - tempDir, - }; -} - -describe("apply release plan", () => { - describe("versioning", () => { - describe("formatting", () => { - it("should not reformat a small array in a package.json", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": `{ - "name": "pkg-a", - "version": "1.0.0", - "files": [ - "lib" - ] -}`, - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => a.endsWith(`package.json`)); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readFile(pkgPath, { encoding: "utf-8" }); - - expect(pkgJSON).toStrictEqual(`{ - "name": "pkg-a", - "version": "1.1.0", - "files": [ - "lib" - ] -}`); - }); - it("should not change tab indentation in a package.json", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify( - { - name: "pkg-a", - version: "1.0.0", - }, - null, - "\t" - ), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => a.endsWith(`package.json`)); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readFile(pkgPath, { encoding: "utf-8" }); - - expect(pkgJSON).toStrictEqual(`{ -\t"name": "pkg-a", -\t"version": "1.1.0" -}`); - }); - it("should not add trailing newlines in a package.json if they don't exist", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => a.endsWith(`package.json`)); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readFile(pkgPath, { encoding: "utf-8" }); - - expect(pkgJSON).toStrictEqual(`{ - "name": "pkg-a", - "version": "1.1.0" -}`); - }); - it("should not remove trailing newlines in a package.json if they exist", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": - JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }) + "\n", - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => a.endsWith(`package.json`)); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readFile(pkgPath, { encoding: "utf-8" }); - - expect(pkgJSON).toStrictEqual(`{ - "name": "pkg-a", - "version": "1.1.0" -}\n`); - }); - }); - - it("should update a version for one package", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readJSON(pkgPath); - - expect(pkgJSON).toMatchObject({ - name: "pkg-a", - version: "1.1.0", - }); - }); - it("should not update ranges set to *", async () => { - const releasePlan = new FakeReleasePlan( - [ - { - id: "some-id", - releases: [{ name: "pkg-b", type: "minor" }], - summary: "a very useful summary", - }, - ], - [ - { - changesets: ["some-id"], - name: "pkg-b", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - ] - ); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "*", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readJSON(pkgPath); - - expect(pkgJSON).toEqual({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "*", - }, - }); - }); - it("should update workspace ranges", async () => { - const releasePlan = new FakeReleasePlan( - [ - { - id: "some-id", - releases: [{ name: "pkg-b", type: "minor" }], - summary: "a very useful summary", - }, - ], - [ - { - changesets: ["some-id"], - name: "pkg-b", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - ] - ); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "workspace:1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readJSON(pkgPath); - - expect(pkgJSON).toEqual({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "workspace:1.1.0", - }, - }); - }); - it("should not update workspace version aliases", async () => { - const releasePlan = new FakeReleasePlan( - [ - { - id: "some-id", - releases: [{ name: "pkg-b", type: "minor" }], - summary: "a very useful summary", - }, - { - id: "some-id", - releases: [{ name: "pkg-c", type: "minor" }], - summary: "a very useful summary", - }, - { - id: "some-id", - releases: [{ name: "pkg-d", type: "minor" }], - summary: "a very useful summary", - }, - ], - [ - { - changesets: ["some-id"], - name: "pkg-b", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - { - changesets: ["some-id"], - name: "pkg-c", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - { - changesets: ["some-id"], - name: "pkg-d", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - ] - ); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "workspace:*", - "pkg-c": "workspace:^", - "pkg-d": "workspace:~", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "1.0.0", - }), - "packages/pkg-d/package.json": JSON.stringify({ - name: "pkg-d", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readJSON(pkgPath); - - expect(pkgJSON).toEqual({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "workspace:*", - "pkg-c": "workspace:^", - "pkg-d": "workspace:~", - }, - }); - }); - it("should update workspace ranges only with bumpVersionsWithWorkspaceProtocolOnly", async () => { - const releasePlan = new FakeReleasePlan( - [ - { - id: "some-id", - releases: [ - { name: "pkg-b", type: "minor" }, - { name: "pkg-c", type: "minor" }, - ], - summary: "a very useful summary", - }, - ], - [ - { - changesets: ["some-id"], - name: "pkg-b", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - { - changesets: ["some-id"], - name: "pkg-c", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - ], - { - bumpVersionsWithWorkspaceProtocolOnly: true, - } - ); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "workspace:1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgAPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - - if (!pkgAPath) throw new Error(`could not find an updated package json`); - let pkgAJSON = await fs.readJSON(pkgAPath); - - expect(pkgAJSON).toEqual({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "workspace:1.1.0", - }, - }); - - let pkgCPath = changedFiles.find((a) => - a.endsWith(`pkg-c${path.sep}package.json`) - ); - - if (!pkgCPath) throw new Error(`could not find an updated package json`); - let pkgCJSON = await fs.readJSON(pkgCPath); - - expect(pkgCJSON).toEqual({ - name: "pkg-c", - version: "1.1.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }); - }); - it("should update a version for two packages with different new versions", async () => { - const releasePlan = new FakeReleasePlan( - [], - [ - { - name: "pkg-b", - type: "major", - oldVersion: "1.0.0", - newVersion: "2.0.0", - changesets: [], - }, - ] - ); - - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.1.0", - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "2.0.0", - }); - }); - it("should not update the version of the dependent package if the released dep is a dev dep", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - devDependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "none" }, - { name: "pkg-b", type: "minor" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "none", - oldVersion: "1.0.0", - newVersion: "1.0.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - baseBranch: "main", - changedFilePatterns: ["**"], - updateInternalDependencies: "patch", - privatePackages: { version: true, tag: false }, - ignore: [], - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.0.0", - devDependencies: { - "pkg-b": "1.1.0", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.1.0", - }); - }); - it("should skip dependencies that have the same name as the package", async () => { - let { tempDir } = await testSetup( - { - "package.json": JSON.stringify({ - name: "self-referenced", - version: "1.0.0", - devDependencies: { - "self-referenced": "file:", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [{ name: "self-referenced", type: "minor" }], - }, - ], - releases: [ - { - name: "self-referenced", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - baseBranch: "main", - changedFilePatterns: ["**"], - updateInternalDependencies: "patch", - privatePackages: { version: true, tag: false }, - ignore: [], - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - - let pkgJSON = await fs.readJSON(path.join(tempDir, "package.json")); - - expect(pkgJSON).toMatchObject({ - name: "self-referenced", - version: "1.1.0", - devDependencies: { - "self-referenced": "file:", - }, - }); - }); - it("should not update dependent versions when a package has a changeset type of none", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "^1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [{ name: "pkg-b", type: "none" }], - }, - ], - releases: [ - { - name: "pkg-b", - type: "none", - oldVersion: "1.0.0", - newVersion: "1.0.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { ...defaultConfig, changelog: false } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - expect(pkgPathA).toBeUndefined(); - if (!pkgPathB) throw new Error(`could not find an updated package json`); - - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.0.0", - }); - }); - it("should not update workspace dependent versions when a package has a changeset type of none", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "workspace:1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [{ name: "pkg-b", type: "none" }], - }, - ], - releases: [ - { - name: "pkg-b", - type: "none", - oldVersion: "1.0.0", - newVersion: "1.0.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { ...defaultConfig, changelog: false } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - expect(pkgPathA).toBeUndefined(); - if (!pkgPathB) throw new Error(`could not find an updated package json`); - - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.0.0", - }); - }); - it("should use exact versioning when snapshot release is applied, and ignore any range modifiers", async () => { - const releasePlan = new FakeReleasePlan( - [ - { - id: "some-id", - releases: [{ name: "pkg-b", type: "minor" }], - summary: "a very useful summary", - }, - ], - [ - { - changesets: ["some-id"], - name: "pkg-b", - newVersion: "1.1.0", - oldVersion: "1.0.0", - type: "minor", - }, - ] - ); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "^1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config, - "canary" - ); - - let pkgPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - - if (!pkgPath) throw new Error(`could not find an updated package json`); - let pkgJSON = await fs.readJSON(pkgPath); - - expect(pkgJSON).toMatchObject({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "1.1.0", - }, - }); - }); - - describe("internal dependency bumping", () => { - describe("updateInternalDependencies set to patch", () => { - const updateInternalDependencies = "patch"; - it("should update min version ranges of patch bumped internal dependencies", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.0.4", - dependencies: { - "pkg-b": "~1.2.1", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-a": "^1.0.4", - }, - }); - }); - it("should still update min version ranges of patch bumped internal dependencies that have left semver range", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-c": "2.0.0", - "pkg-a": "^1.0.3", - }, - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "2.0.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - { name: "pkg-c", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "none", - oldVersion: "1.2.0", - newVersion: "1.2.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-c", - type: "patch", - oldVersion: "2.0.0", - newVersion: "2.0.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.0.4", - dependencies: { - "pkg-b": "~1.2.0", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-c": "2.0.1", - "pkg-a": "^1.0.4", - }, - }); - }); - it("should update min version ranges of minor bumped internal dependencies", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "minor" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "minor", - oldVersion: "1.0.3", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "~1.2.1", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-a": "^1.1.0", - }, - }); - }); - it("should update min version ranges of major bumped internal dependencies", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "major" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "major", - oldVersion: "1.0.3", - newVersion: "2.0.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "2.0.0", - dependencies: { - "pkg-b": "~1.2.1", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-a": "^2.0.0", - }, - }); - }); - }); - describe("updateInternalDependencies set to minor", () => { - const updateInternalDependencies = "minor"; - it("should NOT update min version ranges of patch bumped internal dependencies", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.0.4", - dependencies: { - "pkg-b": "~1.2.0", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-a": "^1.0.3", - }, - }); - }); - it("should still update min version ranges of patch bumped internal dependencies that have left semver range", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-c": "2.0.0", - "pkg-a": "^1.0.3", - }, - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "2.0.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - { name: "pkg-c", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-c", - type: "patch", - oldVersion: "2.0.0", - newVersion: "2.0.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.0.4", - dependencies: { - "pkg-b": "~1.2.0", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-c": "2.0.1", - "pkg-a": "^1.0.3", - }, - }); - }); - it("should update min version ranges of minor bumped internal dependencies", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-c": "2.0.0", - "pkg-a": "^1.0.3", - }, - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "2.0.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "minor" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "minor", - oldVersion: "1.0.3", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "1.1.0", - dependencies: { - "pkg-b": "~1.2.0", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-a": "^1.1.0", - }, - }); - }); - it("should update min version ranges of major bumped internal dependencies", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "major" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "major", - oldVersion: "1.0.3", - newVersion: "2.0.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies, - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathA = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}package.json`) - ); - let pkgPathB = changedFiles.find((b) => - b.endsWith(`pkg-b${path.sep}package.json`) - ); - - if (!pkgPathA || !pkgPathB) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONA = await fs.readJSON(pkgPathA); - let pkgJSONB = await fs.readJSON(pkgPathB); - - expect(pkgJSONA).toMatchObject({ - name: "pkg-a", - version: "2.0.0", - dependencies: { - "pkg-b": "~1.2.0", - }, - }); - expect(pkgJSONB).toMatchObject({ - name: "pkg-b", - version: "1.2.1", - dependencies: { - "pkg-a": "^2.0.0", - }, - }); - }); - }); - }); - - describe("onlyUpdatePeerDependentsWhenOutOfRange set to true", () => { - it("should not bump peerDependencies if they are still in range", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/depended-upon/package.json": JSON.stringify({ - name: "depended-upon", - version: "1.0.0", - }), - "packages/has-peer-dep/package.json": JSON.stringify({ - name: "has-peer-dep", - version: "1.0.0", - peerDependencies: { - "depended-upon": "^1.0.0", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "depended-upon", type: "patch" }, - { name: "has-peer-dep", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "has-peer-dep", - type: "patch", - oldVersion: "1.0.0", - newVersion: "1.0.1", - changesets: ["quick-lions-devour"], - }, - { - name: "depended-upon", - type: "patch", - oldVersion: "1.0.0", - newVersion: "1.0.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: false, - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "patch", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: true, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgPathDependent = changedFiles.find((a) => - a.endsWith(`has-peer-dep${path.sep}package.json`) - ); - let pkgPathDepended = changedFiles.find((b) => - b.endsWith(`depended-upon${path.sep}package.json`) - ); - - if (!pkgPathDependent || !pkgPathDepended) { - throw new Error(`could not find an updated package json`); - } - let pkgJSONDependent = await fs.readJSON(pkgPathDependent); - let pkgJSONDepended = await fs.readJSON(pkgPathDepended); - - expect(pkgJSONDependent).toMatchObject({ - name: "has-peer-dep", - version: "1.0.1", - peerDependencies: { - "depended-upon": "^1.0.0", - }, - }); - expect(pkgJSONDepended).toMatchObject({ - name: "depended-upon", - version: "1.0.1", - }); - }); - }); - }); - describe("changelogs", () => { - it("should not generate any changelogs", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - changelog: false, - } - ); - - expect( - changedFiles.find((a) => a.endsWith(`pkg-a${path.sep}CHANGELOG.md`)) - ).toBeUndefined(); - }); - it("should update a changelog for one package", async () => { - const releasePlan = new FakeReleasePlan(); - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - - if (!readmePath) throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - - expect(readme.trim()).toEqual(outdent`# pkg-a - - ## 1.1.0 - - ### Minor Changes - - - Hey, let's have fun with testing!`); - }); - it("should update a changelog for two packages", async () => { - const releasePlan = new FakeReleasePlan( - [], - [ - { - name: "pkg-b", - type: "major", - oldVersion: "1.0.0", - newVersion: "2.0.0", - changesets: [], - }, - ] - ); - - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - let readmePathB = changedFiles.find((a) => - a.endsWith(`pkg-b${path.sep}CHANGELOG.md`) - ); - - if (!readmePath || !readmePathB) - throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - let readmeB = await fs.readFile(readmePathB, "utf-8"); - - expect(readme.trim()).toEqual(outdent`# pkg-a - - ## 1.1.0 - - ### Minor Changes - - - Hey, let's have fun with testing! - - ### Patch Changes - - - pkg-b@2.0.0`); - - expect(readmeB.trim()).toEqual(outdent`# pkg-b - - ## 2.0.0`); - }); - it("should not update the changelog if only devDeps changed", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - devDependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "none" }, - { name: "pkg-b", type: "minor" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "none", - oldVersion: "1.0.0", - newVersion: "1.0.0", - changesets: [], - }, - { - name: "pkg-b", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - commit: false, - fixed: [], - linked: [], - access: "restricted", - baseBranch: "main", - changedFilePatterns: ["**"], - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - updateInternalDependencies: "patch", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - let pkgAChangelogPath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - - expect(pkgAChangelogPath).toBeUndefined(); - }); - - test("should list multi-line same-type summaries correctly", async () => { - const releasePlan = new FakeReleasePlan([ - { - id: "some-id-1", - summary: "Random stuff\n\nget it while it's hot!", - releases: [{ name: "pkg-a", type: "minor" }], - }, - { - id: "some-id-2", - summary: "New feature, much wow\n\nlook at this shiny stuff!", - releases: [{ name: "pkg-a", type: "minor" }], - }, - ]); - releasePlan.releases[0].changesets.push("some-id-1", "some-id-2"); - - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - - if (!readmePath) throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - expect(readme.trim()).toEqual( - [ - "# pkg-a\n", - "## 1.1.0\n", - "### Minor Changes\n", - "- Hey, let's have fun with testing!", - "- Random stuff\n", - " get it while it's hot!\n", - "- New feature, much wow\n", - " look at this shiny stuff!", - ].join("\n") - ); - }); - - it("should add an updated dependencies line when dependencies have been updated", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "patch", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - let readmePathB = changedFiles.find((a) => - a.endsWith(`pkg-b${path.sep}CHANGELOG.md`) - ); - - if (!readmePath || !readmePathB) - throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - let readmeB = await fs.readFile(readmePathB, "utf-8"); - - expect(readme.trim()).toEqual(outdent`# pkg-a - - ## 1.0.4 - - ### Patch Changes - - - Hey, let's have fun with testing! - - Updated dependencies - - pkg-b@1.2.1`); - - expect(readmeB.trim()).toEqual(outdent`# pkg-b - - ## 1.2.1 - - ### Patch Changes - - - Hey, let's have fun with testing! - - Updated dependencies - - pkg-a@1.0.4`); - }); - - it("should NOT add updated dependencies line if dependencies have NOT been updated", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "minor", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - let readmePathB = changedFiles.find((a) => - a.endsWith(`pkg-b${path.sep}CHANGELOG.md`) - ); - - if (!readmePath || !readmePathB) - throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - let readmeB = await fs.readFile(readmePathB, "utf-8"); - - expect(readme.trim()).toEqual(outdent`# pkg-a - - ## 1.0.4 - - ### Patch Changes - - - Hey, let's have fun with testing!`); - - expect(readmeB.trim()).toEqual(outdent`# pkg-b - - ## 1.2.1 - - ### Patch Changes - - - Hey, let's have fun with testing!`); - }); - - it("should only add updated dependencies line for dependencies that have been updated", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-c": "2.0.0", - "pkg-a": "^1.0.3", - }, - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "2.0.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - { name: "pkg-c", type: "minor" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-c", - type: "minor", - oldVersion: "2.0.0", - newVersion: "2.1.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "minor", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - let readmePathB = changedFiles.find((a) => - a.endsWith(`pkg-b${path.sep}CHANGELOG.md`) - ); - let readmePathC = changedFiles.find((a) => - a.endsWith(`pkg-c${path.sep}CHANGELOG.md`) - ); - - if (!readmePath || !readmePathB || !readmePathC) - throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - let readmeB = await fs.readFile(readmePathB, "utf-8"); - let readmeC = await fs.readFile(readmePathC, "utf-8"); - - expect(readme.trim()).toEqual(outdent`# pkg-a - - ## 1.0.4 - - ### Patch Changes - - - Hey, let's have fun with testing!`); - - expect(readmeB.trim()).toEqual(outdent`# pkg-b - - ## 1.2.1 - - ### Patch Changes - - - Hey, let's have fun with testing! - - Updated dependencies - - pkg-c@2.1.0`); - - expect(readmeC.trim()).toEqual(outdent`# pkg-c - - ## 2.1.0 - - ### Minor Changes - - - Hey, let's have fun with testing!`); - }); - - it("should still add updated dependencies line for dependencies that have a bump type less than the minimum internal bump range but leave semver range", async () => { - let { changedFiles } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.3", - dependencies: { - "pkg-b": "~1.2.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.2.0", - dependencies: { - "pkg-c": "2.0.0", - "pkg-a": "^1.0.3", - }, - }), - "packages/pkg-c/package.json": JSON.stringify({ - name: "pkg-c", - version: "2.0.0", - dependencies: { - "pkg-a": "^1.0.3", - }, - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "patch" }, - { name: "pkg-c", type: "patch" }, - ], - }, - ], - releases: [ - { - name: "pkg-a", - type: "patch", - oldVersion: "1.0.3", - newVersion: "1.0.4", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-b", - type: "patch", - oldVersion: "1.2.0", - newVersion: "1.2.1", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-c", - type: "patch", - oldVersion: "2.0.0", - newVersion: "2.0.1", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - }, - { - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - commit: false, - fixed: [], - linked: [], - access: "restricted", - changedFilePatterns: ["**"], - baseBranch: "main", - updateInternalDependencies: "minor", - ignore: [], - privatePackages: { version: true, tag: false }, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - onlyUpdatePeerDependentsWhenOutOfRange: false, - updateInternalDependents: "out-of-range", - }, - snapshot: { - useCalculatedVersion: false, - prereleaseTemplate: null, - }, - } - ); - - let readmePath = changedFiles.find((a) => - a.endsWith(`pkg-a${path.sep}CHANGELOG.md`) - ); - let readmePathB = changedFiles.find((a) => - a.endsWith(`pkg-b${path.sep}CHANGELOG.md`) - ); - let readmePathC = changedFiles.find((a) => - a.endsWith(`pkg-c${path.sep}CHANGELOG.md`) - ); - - if (!readmePath || !readmePathB || !readmePathC) - throw new Error(`could not find an updated changelog`); - let readme = await fs.readFile(readmePath, "utf-8"); - let readmeB = await fs.readFile(readmePathB, "utf-8"); - let readmeC = await fs.readFile(readmePathC, "utf-8"); - - expect(readme.trim()).toEqual(outdent`# pkg-a - - ## 1.0.4 - - ### Patch Changes - - - Hey, let's have fun with testing!`); - - expect(readmeB.trim()).toEqual(outdent`# pkg-b - - ## 1.2.1 - - ### Patch Changes - - - Hey, let's have fun with testing! - - Updated dependencies - - pkg-c@2.0.1`); - - expect(readmeC.trim()).toEqual(outdent`# pkg-c - - ## 2.0.1 - - ### Patch Changes - - - Hey, let's have fun with testing!`); - }); - }); - describe("should error and not write if", () => { - // This is skipped as *for now* we are assuming we have been passed - // valid releasePlans - this may get work done on it in the future - it.skip("a package appears twice", async () => { - let changedFiles; - try { - let testResults = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - { - changesets: [ - { - id: "quick-lions-devour", - summary: "Hey, let's have fun with testing!", - releases: [{ name: "pkg-a", type: "minor" }], - }, - ], - releases: [ - { - name: "pkg-a", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - { - name: "pkg-a", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.1.0", - changesets: ["quick-lions-devour"], - }, - ], - preState: undefined, - } - ); - changedFiles = testResults.changedFiles; - } catch (e) { - expect((e as Error).message).toEqual("some string probably"); - - return; - } - - throw new Error( - `expected error but instead got changed files: \n${changedFiles.join( - "\n" - )}` - ); - }); - it("a package cannot be found", async () => { - let releasePlan = new FakeReleasePlan( - [], - [ - { - name: "impossible-package", - type: "minor", - oldVersion: "1.0.0", - newVersion: "1.0.0", - changesets: [], - }, - ] - ); - - let tempDir = await testdir({ - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }); - - await spawn("git", ["init"], { cwd: tempDir }); - - await git.add(".", tempDir); - await git.commit("first commit", tempDir); - - try { - await applyReleasePlan( - releasePlan.getReleasePlan(), - await getPackages(tempDir), - releasePlan.config - ); - } catch (e) { - expect((e as Error).message).toEqual( - "Could not find matching package for release of: impossible-package" - ); - - let gitCmd = await spawn("git", ["status"], { cwd: tempDir }); - - expect(gitCmd.stdout.toString().includes("nothing to commit")).toEqual( - true - ); - return; - } - - throw new Error("Expected test to exit before this point"); - }); - it( - "a provided changelog function fails", - temporarilySilenceLogs(async () => { - let releasePlan = new FakeReleasePlan(); - - let tempDir = await testdir({ - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }); - - await spawn("git", ["init"], { cwd: tempDir }); - - await git.add(".", tempDir); - await git.commit("first commit", tempDir); - - try { - await applyReleasePlan( - releasePlan.getReleasePlan(), - await getPackages(tempDir), - { - ...releasePlan.config, - changelog: [ - path.resolve(__dirname, "test-utils/failing-functions"), - null, - ], - } - ); - } catch (e) { - expect((e as Error).message).toEqual("no chance"); - - let gitCmd = await spawn("git", ["status"], { cwd: tempDir }); - - expect( - gitCmd.stdout.toString().includes("nothing to commit") - ).toEqual(true); - expect((console.error as any).mock.calls).toMatchInlineSnapshot(` - [ - [ - "The following error was encountered while generating changelog entries", - ], - [ - "We have escaped applying the changesets, and no files should have been affected", - ], - ] - `); - return; - } - - throw new Error("Expected test to exit before this point"); - }) - ); - }); - describe("changesets", () => { - it("should delete one changeset after it is applied", async () => { - const releasePlan = new FakeReleasePlan(); - - let changesetPath: string; - - const setupFunc = (tempDir: string) => - Promise.all( - releasePlan.getReleasePlan().changesets.map(({ id, summary }) => { - const thisPath = path.resolve(tempDir, ".changeset", `${id}.md`); - changesetPath = thisPath; - const content = `---\n---\n${summary}`; - return fs.outputFile(thisPath, content); - }) - ); - - await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config, - undefined, - setupFunc - ); - - // @ts-ignore this is possibly bad - let pathExists = await fs.pathExists(changesetPath); - expect(pathExists).toEqual(false); - }); - it("should NOT delete changesets for ignored packages", async () => { - const releasePlan = new FakeReleasePlan(); - - let changesetPath: string; - - const setupFunc = (tempDir: string) => - Promise.all( - releasePlan.getReleasePlan().changesets.map(({ id, summary }) => { - const thisPath = path.resolve(tempDir, ".changeset", `${id}.md`); - changesetPath = thisPath; - const content = `---\n---\n${summary}`; - return fs.outputFile(thisPath, content); - }) - ); - - await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { ...releasePlan.config, ignore: ["pkg-a"] }, - undefined, - setupFunc - ); - - // @ts-ignore this is possibly bad - let pathExists = await fs.pathExists(changesetPath); - expect(pathExists).toEqual(true); - }); - it("should delete an old format changeset if it is applied", async () => { - const releasePlan = new FakeReleasePlan(); - - let changesetMDPath: string; - let changesetJSONPath: string; - - const setupFunc = (tempDir: string) => - Promise.all( - releasePlan - .getReleasePlan() - .changesets.map(async ({ id, summary }) => { - changesetMDPath = path.resolve( - tempDir, - ".changeset", - id, - `changes.md` - ); - changesetJSONPath = path.resolve( - tempDir, - ".changeset", - id, - `changes.json` - ); - await fs.outputFile(changesetMDPath, summary); - await fs.outputFile( - changesetJSONPath, - JSON.stringify({ id, summary }) - ); - }) - ); - - await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - releasePlan.config, - undefined, - setupFunc - ); - - // @ts-ignore this is possibly bad - let mdPathExists = await fs.pathExists(changesetMDPath); - // @ts-ignore this is possibly bad - let JSONPathExists = await fs.pathExists(changesetMDPath); - - expect(mdPathExists).toEqual(false); - expect(JSONPathExists).toEqual(false); - }); - }); - - it("should get the commit for an old changeset", async () => { - const releasePlan = new FakeReleasePlan(); - - let changesetMDPath: string; - let changesetJSONPath: string; - - const setupFunc = (tempDir: string) => - Promise.all( - releasePlan.changesets.map(async ({ id, summary }) => { - changesetMDPath = path.resolve( - tempDir, - ".changeset", - id, - `changes.md` - ); - changesetJSONPath = path.resolve( - tempDir, - ".changeset", - id, - `changes.json` - ); - await fs.outputFile(changesetMDPath, summary); - await fs.outputFile( - changesetJSONPath, - JSON.stringify({ id, summary }) - ); - }) - ); - - let { tempDir } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - commit: [ - path.resolve(__dirname, "test-utils/simple-get-commit-entry"), - null, - ], - changelog: [ - path.resolve(__dirname, "test-utils/simple-get-changelog-entry"), - null, - ], - }, - undefined, - setupFunc - ); - - let thing = await spawn("git", ["rev-list", "HEAD"], { cwd: tempDir }); - let commits = thing.stdout - .toString("utf8") - .split("\n") - .filter((x) => x); - - let lastCommit = commits[commits.length - 1].substring(0, 7); - - expect( - await fs.readFile( - path.join(tempDir, "packages", "pkg-a", "CHANGELOG.md"), - "utf8" - ) - ).toBe(`# pkg-a - -## 1.1.0 - -### Minor Changes - -- ${lastCommit}: Hey, let's have fun with testing! -`); - }); - - describe("files", () => { - it("shouldn't commit updated files from packages", async () => { - const releasePlan = new FakeReleasePlan(); - - let { tempDir } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - commit: [ - path.resolve(__dirname, "test-utils/simple-get-commit-entry"), - null, - ], - } - ); - - let gitCmd = await spawn("git", ["status"], { cwd: tempDir }); - - expect(gitCmd.stdout.toString()).toContain( - "Changes not staged for commit" - ); - - expect(gitCmd.stdout.toString()).toContain( - "modified: packages/pkg-a/package.json" - ); - - let lastCommit = await spawn("git", ["log", "-1"], { cwd: tempDir }); - - expect(lastCommit.stdout.toString()).toContain("first commit"); - }); - - it("should remove applied changesets", async () => { - const releasePlan = new FakeReleasePlan(); - - let changesetPath: string; - - const setupFunc = (tempDir: string) => - Promise.all( - releasePlan.changesets.map(({ id, summary }) => { - const thisPath = path.resolve(tempDir, ".changeset", `${id}.md`); - changesetPath = thisPath; - const content = `---\n---\n${summary}`; - return fs.outputFile(thisPath, content); - }) - ); - - let { tempDir } = await testSetup( - { - "package.json": JSON.stringify({ - private: true, - workspaces: ["packages/*"], - }), - "packages/pkg-a/package.json": JSON.stringify({ - name: "pkg-a", - version: "1.0.0", - dependencies: { - "pkg-b": "1.0.0", - }, - }), - "packages/pkg-b/package.json": JSON.stringify({ - name: "pkg-b", - version: "1.0.0", - }), - }, - releasePlan.getReleasePlan(), - { - ...releasePlan.config, - commit: [ - path.resolve(__dirname, "test-utils/simple-get-commit-entry"), - null, - ], - }, - undefined, - setupFunc - ); - - // @ts-ignore this is possibly bad - let pathExists = await fs.pathExists(changesetPath); - - expect(pathExists).toEqual(false); - - let gitCmd = await spawn("git", ["status"], { cwd: tempDir }); - - const changesetsDeleted = releasePlan.changesets.reduce( - (prev, { id }) => { - return ( - prev && - gitCmd.stdout.toString().includes(`deleted: .changeset/${id}.md`) - ); - }, - true - ); - - expect(releasePlan.changesets.length).toBeGreaterThan(0); - expect(changesetsDeleted).toBe(true); - }); - }); -}); diff --git a/node_modules/@changesets/apply-release-plan/src/index.ts b/node_modules/@changesets/apply-release-plan/src/index.ts deleted file mode 100644 index d12496c0..00000000 --- a/node_modules/@changesets/apply-release-plan/src/index.ts +++ /dev/null @@ -1,359 +0,0 @@ -import { - ReleasePlan, - Config, - ChangelogFunctions, - NewChangeset, - ModCompWithPackage, -} from "@changesets/types"; - -import { defaultConfig } from "@changesets/config"; -import * as git from "@changesets/git"; -import resolveFrom from "resolve-from"; -import { Packages } from "@manypkg/get-packages"; -import detectIndent from "detect-indent"; - -import fs from "fs-extra"; -import path from "path"; -import prettier from "prettier"; - -import versionPackage from "./version-package"; -import getChangelogEntry from "./get-changelog-entry"; - -function getPrettierInstance(cwd: string): typeof prettier { - try { - return require(require.resolve("prettier", { paths: [cwd] })); - } catch (err) { - if (!err || (err as any).code !== "MODULE_NOT_FOUND") { - throw err; - } - return prettier; - } -} - -function stringDefined(s: string | undefined): s is string { - return !!s; -} -async function getCommitsThatAddChangesets( - changesetIds: string[], - cwd: string -) { - const paths = changesetIds.map((id) => `.changeset/${id}.md`); - const commits = await git.getCommitsThatAddFiles(paths, { cwd }); - - if (commits.every(stringDefined)) { - // We have commits for all files - return commits; - } - - // Some files didn't exist. Try legacy filenames instead - const missingIds = changesetIds - .map((id, i) => (commits[i] ? undefined : id)) - .filter(stringDefined); - - const legacyPaths = missingIds.map((id) => `.changeset/${id}/changes.json`); - const commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, { - cwd, - }); - - // Fill in the blanks in the array of commits - changesetIds.forEach((id, i) => { - if (!commits[i]) { - const missingIndex = missingIds.indexOf(id); - commits[i] = commitsForLegacyPaths[missingIndex]; - } - }); - - return commits; -} - -export default async function applyReleasePlan( - releasePlan: ReleasePlan, - packages: Packages, - config: Config = defaultConfig, - snapshot?: string | boolean -) { - let cwd = packages.root.dir; - - let touchedFiles = []; - - const packagesByName = new Map( - packages.packages.map((x) => [x.packageJson.name, x]) - ); - - let { releases, changesets } = releasePlan; - - let releasesWithPackage = releases.map((release) => { - let pkg = packagesByName.get(release.name); - if (!pkg) - throw new Error( - `Could not find matching package for release of: ${release.name}` - ); - return { - ...release, - ...pkg, - }; - }); - - // I think this might be the wrong place to do this, but gotta do it somewhere - add changelog entries to releases - let releaseWithChangelogs = await getNewChangelogEntry( - releasesWithPackage, - changesets, - config, - cwd - ); - - if (releasePlan.preState !== undefined && snapshot === undefined) { - if (releasePlan.preState.mode === "exit") { - await fs.remove(path.join(cwd, ".changeset", "pre.json")); - } else { - await fs.writeFile( - path.join(cwd, ".changeset", "pre.json"), - JSON.stringify(releasePlan.preState, null, 2) + "\n" - ); - } - } - - let versionsToUpdate = releases.map(({ name, newVersion, type }) => ({ - name, - version: newVersion, - type, - })); - - // iterate over releases updating packages - let finalisedRelease = releaseWithChangelogs.map((release) => { - return versionPackage(release, versionsToUpdate, { - updateInternalDependencies: config.updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange: - config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH - .onlyUpdatePeerDependentsWhenOutOfRange, - bumpVersionsWithWorkspaceProtocolOnly: - config.bumpVersionsWithWorkspaceProtocolOnly, - snapshot, - }); - }); - - let prettierInstance = getPrettierInstance(cwd); - let prettierConfig = await prettierInstance.resolveConfig(cwd); - - for (let release of finalisedRelease) { - let { changelog, packageJson, dir, name } = release; - - const pkgJSONPath = path.resolve(dir, "package.json"); - await updatePackageJson(pkgJSONPath, packageJson); - touchedFiles.push(pkgJSONPath); - - if (changelog && changelog.length > 0) { - const changelogPath = path.resolve(dir, "CHANGELOG.md"); - await updateChangelog( - changelogPath, - changelog, - name, - prettierInstance, - prettierConfig - ); - touchedFiles.push(changelogPath); - } - } - - if ( - releasePlan.preState === undefined || - releasePlan.preState.mode === "exit" - ) { - let changesetFolder = path.resolve(cwd, ".changeset"); - await Promise.all( - changesets.map(async (changeset) => { - let changesetPath = path.resolve(changesetFolder, `${changeset.id}.md`); - let changesetFolderPath = path.resolve(changesetFolder, changeset.id); - if (await fs.pathExists(changesetPath)) { - // DO NOT remove changeset for ignored packages - // Mixed changeset that contains both ignored packages and not ignored packages are disallowed - // At this point, we know there is no such changeset, because otherwise the program would've already failed, - // so we just check if any ignored package exists in this changeset, and only remove it if none exists - // Ignored list is added in v2, so we don't need to do it for v1 changesets - if ( - !changeset.releases.find((release) => - config.ignore.includes(release.name) - ) - ) { - touchedFiles.push(changesetPath); - await fs.remove(changesetPath); - } - // TO REMOVE LOGIC - this works to remove v1 changesets. We should be removed in the future - } else if (await fs.pathExists(changesetFolderPath)) { - touchedFiles.push(changesetFolderPath); - await fs.remove(changesetFolderPath); - } - }) - ); - } - - // We return the touched files to be committed in the cli - return touchedFiles; -} - -async function getNewChangelogEntry( - releasesWithPackage: ModCompWithPackage[], - changesets: NewChangeset[], - config: Config, - cwd: string -) { - if (!config.changelog) { - return Promise.resolve( - releasesWithPackage.map((release) => ({ - ...release, - changelog: null, - })) - ); - } - - let getChangelogFuncs: ChangelogFunctions = { - getReleaseLine: () => Promise.resolve(""), - getDependencyReleaseLine: () => Promise.resolve(""), - }; - - const changelogOpts = config.changelog[1]; - let changesetPath = path.join(cwd, ".changeset"); - let changelogPath = resolveFrom(changesetPath, config.changelog[0]); - - let possibleChangelogFunc = require(changelogPath); - if (possibleChangelogFunc.default) { - possibleChangelogFunc = possibleChangelogFunc.default; - } - if ( - typeof possibleChangelogFunc.getReleaseLine === "function" && - typeof possibleChangelogFunc.getDependencyReleaseLine === "function" - ) { - getChangelogFuncs = possibleChangelogFunc; - } else { - throw new Error("Could not resolve changelog generation functions"); - } - - let commits = await getCommitsThatAddChangesets( - changesets.map((cs) => cs.id), - cwd - ); - let moddedChangesets = changesets.map((cs, i) => ({ - ...cs, - commit: commits[i], - })); - - return Promise.all( - releasesWithPackage.map(async (release) => { - let changelog = await getChangelogEntry( - release, - releasesWithPackage, - moddedChangesets, - getChangelogFuncs, - changelogOpts, - { - updateInternalDependencies: config.updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange: - config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH - .onlyUpdatePeerDependentsWhenOutOfRange, - } - ); - - return { - ...release, - changelog, - }; - }) - ).catch((e) => { - console.error( - "The following error was encountered while generating changelog entries" - ); - console.error( - "We have escaped applying the changesets, and no files should have been affected" - ); - throw e; - }); -} - -async function updateChangelog( - changelogPath: string, - changelog: string, - name: string, - prettierInstance: typeof prettier, - prettierConfig: prettier.Options | null -) { - let templateString = `\n\n${changelog.trim()}\n`; - - try { - if (fs.existsSync(changelogPath)) { - await prependFile( - changelogPath, - templateString, - name, - prettierInstance, - prettierConfig - ); - } else { - await writeFormattedMarkdownFile( - changelogPath, - `# ${name}${templateString}`, - prettierInstance, - prettierConfig - ); - } - } catch (e) { - console.warn(e); - } -} - -async function updatePackageJson( - pkgJsonPath: string, - pkgJson: any -): Promise { - const pkgRaw = await fs.readFile(pkgJsonPath, "utf-8"); - const indent = detectIndent(pkgRaw).indent || " "; - const stringified = - JSON.stringify(pkgJson, null, indent) + (pkgRaw.endsWith("\n") ? "\n" : ""); - - return fs.writeFile(pkgJsonPath, stringified); -} - -async function prependFile( - filePath: string, - data: string, - name: string, - prettierInstance: typeof prettier, - prettierConfig: prettier.Options | null -) { - const fileData = fs.readFileSync(filePath).toString(); - // if the file exists but doesn't have the header, we'll add it in - if (!fileData) { - const completelyNewChangelog = `# ${name}${data}`; - await writeFormattedMarkdownFile( - filePath, - completelyNewChangelog, - prettierInstance, - prettierConfig - ); - return; - } - const newChangelog = fileData.replace("\n", data); - - await writeFormattedMarkdownFile( - filePath, - newChangelog, - prettierInstance, - prettierConfig - ); -} - -async function writeFormattedMarkdownFile( - filePath: string, - content: string, - prettierInstance: typeof prettier, - prettierConfig: prettier.Options | null -) { - await fs.writeFile( - filePath, - // Prettier v3 returns a promise - await prettierInstance.format(content, { - ...prettierConfig, - filepath: filePath, - parser: "markdown", - }) - ); -} diff --git a/node_modules/@changesets/apply-release-plan/src/test-utils/failing-functions.ts b/node_modules/@changesets/apply-release-plan/src/test-utils/failing-functions.ts deleted file mode 100644 index f208a4be..00000000 --- a/node_modules/@changesets/apply-release-plan/src/test-utils/failing-functions.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default { - getReleaseLine: () => { - throw new Error("no chance"); - }, - getDependencyReleaseLine: () => { - throw new Error("no chance"); - }, -}; diff --git a/node_modules/@changesets/apply-release-plan/src/test-utils/get-changelog-dep-updated.ts b/node_modules/@changesets/apply-release-plan/src/test-utils/get-changelog-dep-updated.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/node_modules/@changesets/apply-release-plan/src/test-utils/get-changelog-entry-with-git-hash.ts b/node_modules/@changesets/apply-release-plan/src/test-utils/get-changelog-entry-with-git-hash.ts deleted file mode 100644 index d9bb2f0c..00000000 --- a/node_modules/@changesets/apply-release-plan/src/test-utils/get-changelog-entry-with-git-hash.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* eslint-disable import/no-extraneous-dependencies */ -import startCase from "lodash.startcase"; -import { getCommitsThatAddFiles } from "@changesets/git"; -import { ComprehensiveRelease, NewChangeset } from "@changesets/types"; - -import { RelevantChangesets } from "../types"; - -async function getReleaseLine(changeset: NewChangeset, cwd: string) { - const [firstLine, ...futureLines] = changeset.summary - .split("\n") - .map((l) => l.trimRight()); - - const [commitThatAddsFile] = await getCommitsThatAddFiles( - [`.changeset/${changeset.id}.md`], - { cwd } - ); - - return `- [${commitThatAddsFile}] ${firstLine}\n${futureLines - .map((l) => ` ${l}`) - .join("\n")}`; -} - -async function getReleaseLines( - obj: RelevantChangesets, - type: keyof RelevantChangesets, - cwd: string -) { - const releaseLines = obj[type].map((changeset) => - getReleaseLine(changeset, cwd) - ); - if (!releaseLines.length) return ""; - const resolvedLines = await Promise.all(releaseLines); - - return `### ${startCase(type)} Changes\n\n${resolvedLines.join("")}`; -} - -export default async function defaultChangelogGetter( - release: ComprehensiveRelease, - relevantChangesets: RelevantChangesets, - options: { cwd: string } -) { - let { cwd } = options; - - // First, we construct the release lines, summaries of changesets that caused us to be released - let majorReleaseLines = await getReleaseLines( - relevantChangesets, - "major", - cwd - ); - let minorReleaseLines = await getReleaseLines( - relevantChangesets, - "minor", - cwd - ); - let patchReleaseLines = await getReleaseLines( - relevantChangesets, - "patch", - cwd - ); - - return [ - `## ${release.newVersion}`, - majorReleaseLines, - minorReleaseLines, - patchReleaseLines, - ] - .filter((line) => line) - .join("\n"); -} diff --git a/node_modules/@changesets/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts b/node_modules/@changesets/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts deleted file mode 100644 index 14631450..00000000 --- a/node_modules/@changesets/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts +++ /dev/null @@ -1,4 +0,0 @@ -// We are doing it here to avoide adding a circular dependency and as this is only used in testing. -// This is wicked, and please don't copy us. -// eslint-disable-next-line import/no-extraneous-dependencies -export { default } from "@changesets/cli/changelog"; diff --git a/node_modules/@changesets/apply-release-plan/src/test-utils/simple-get-commit-entry.ts b/node_modules/@changesets/apply-release-plan/src/test-utils/simple-get-commit-entry.ts deleted file mode 100644 index e02e5e36..00000000 --- a/node_modules/@changesets/apply-release-plan/src/test-utils/simple-get-commit-entry.ts +++ /dev/null @@ -1,4 +0,0 @@ -// We are doing it here to avoide adding a circular dependency and as this is only used in testing. -// This is wicked, and please don't copy us. -// eslint-disable-next-line import/no-extraneous-dependencies -export { default } from "@changesets/cli/commit"; diff --git a/node_modules/@changesets/apply-release-plan/src/types.ts b/node_modules/@changesets/apply-release-plan/src/types.ts deleted file mode 100644 index d87214bb..00000000 --- a/node_modules/@changesets/apply-release-plan/src/types.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { NewChangeset } from "@changesets/types"; - -export type RelevantChangesets = { - major: NewChangeset[]; - minor: NewChangeset[]; - patch: NewChangeset[]; -}; diff --git a/node_modules/@changesets/apply-release-plan/src/utils.ts b/node_modules/@changesets/apply-release-plan/src/utils.ts deleted file mode 100644 index d796c206..00000000 --- a/node_modules/@changesets/apply-release-plan/src/utils.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Shared utility functions and business logic - */ -import semverSatisfies from "semver/functions/satisfies"; -import { VersionType } from "@changesets/types"; - -const bumpTypes = ["none", "patch", "minor", "major"]; - -/* Converts a bump type into a numeric level to indicate order */ -function getBumpLevel(type: VersionType) { - const level = bumpTypes.indexOf(type); - if (level < 0) { - throw new Error(`Unrecognised bump type ${type}`); - } - return level; -} - -export function shouldUpdateDependencyBasedOnConfig( - release: { version: string; type: VersionType }, - { - depVersionRange, - depType, - }: { - depVersionRange: string; - depType: - | "dependencies" - | "devDependencies" - | "peerDependencies" - | "optionalDependencies"; - }, - { - minReleaseType, - onlyUpdatePeerDependentsWhenOutOfRange, - }: { - minReleaseType: "patch" | "minor"; - onlyUpdatePeerDependentsWhenOutOfRange: boolean; - } -): boolean { - if (!semverSatisfies(release.version, depVersionRange)) { - // Dependencies leaving semver range should always be updated - return true; - } - - const minLevel = getBumpLevel(minReleaseType); - let shouldUpdate = getBumpLevel(release.type) >= minLevel; - - if (depType === "peerDependencies") { - shouldUpdate = !onlyUpdatePeerDependentsWhenOutOfRange; - } - return shouldUpdate; -} diff --git a/node_modules/@changesets/apply-release-plan/src/version-package.ts b/node_modules/@changesets/apply-release-plan/src/version-package.ts deleted file mode 100644 index 5da8ff22..00000000 --- a/node_modules/@changesets/apply-release-plan/src/version-package.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { - ComprehensiveRelease, - PackageJSON, - VersionType, -} from "@changesets/types"; -import getVersionRangeType from "@changesets/get-version-range-type"; -import Range from "semver/classes/range"; -import semverPrerelease from "semver/functions/prerelease"; -import { shouldUpdateDependencyBasedOnConfig } from "./utils"; - -const DEPENDENCY_TYPES = [ - "dependencies", - "devDependencies", - "peerDependencies", - "optionalDependencies", -] as const; - -export default function versionPackage( - release: ComprehensiveRelease & { - changelog: string | null; - packageJson: PackageJSON; - dir: string; - }, - versionsToUpdate: Array<{ name: string; version: string; type: VersionType }>, - { - updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange, - bumpVersionsWithWorkspaceProtocolOnly, - snapshot, - }: { - updateInternalDependencies: "patch" | "minor"; - onlyUpdatePeerDependentsWhenOutOfRange: boolean; - bumpVersionsWithWorkspaceProtocolOnly?: boolean; - snapshot?: string | boolean | undefined; - } -) { - let { newVersion, packageJson } = release; - - packageJson.version = newVersion; - - for (let depType of DEPENDENCY_TYPES) { - let deps = packageJson[depType]; - if (deps) { - for (let { name, version, type } of versionsToUpdate) { - let depCurrentVersion = deps[name]; - if ( - !depCurrentVersion || - depCurrentVersion.startsWith("file:") || - depCurrentVersion.startsWith("link:") || - !shouldUpdateDependencyBasedOnConfig( - { version, type }, - { - depVersionRange: depCurrentVersion, - depType, - }, - { - minReleaseType: updateInternalDependencies, - onlyUpdatePeerDependentsWhenOutOfRange, - } - ) - ) { - continue; - } - const usesWorkspaceRange = depCurrentVersion.startsWith("workspace:"); - - if ( - !usesWorkspaceRange && - bumpVersionsWithWorkspaceProtocolOnly === true - ) { - continue; - } - - if (usesWorkspaceRange) { - const workspaceDepVersion = depCurrentVersion.replace( - /^workspace:/, - "" - ); - if ( - workspaceDepVersion === "*" || - workspaceDepVersion === "^" || - workspaceDepVersion === "~" - ) { - continue; - } - depCurrentVersion = workspaceDepVersion; - } - if ( - // an empty string is the normalised version of x/X/* - // we don't want to change these versions because they will match - // any version and if someone makes the range that - // they probably want it to stay like that... - new Range(depCurrentVersion).range !== "" || - // ...unless the current version of a dependency is a prerelease (which doesn't satisfy x/X/*) - // leaving those as is would leave the package in a non-installable state (wrong dep versions would get installed) - semverPrerelease(version) !== null - ) { - let newNewRange = snapshot - ? version - : `${getVersionRangeType(depCurrentVersion)}${version}`; - if (usesWorkspaceRange) newNewRange = `workspace:${newNewRange}`; - deps[name] = newNewRange; - } - } - } - } - - return { ...release, packageJson }; -} diff --git a/node_modules/@changesets/assemble-release-plan/CHANGELOG.md b/node_modules/@changesets/assemble-release-plan/CHANGELOG.md deleted file mode 100644 index dbc02cb4..00000000 --- a/node_modules/@changesets/assemble-release-plan/CHANGELOG.md +++ /dev/null @@ -1,380 +0,0 @@ -# @changesets/assemble-release-plan - -## 6.0.0 - -### Major Changes - -- [#1185](https://github.com/changesets/changesets/pull/1185) [`a971652`](https://github.com/changesets/changesets/commit/a971652ec1403aab3fb89eb2f1640bd5012b895a) Thanks [@Andarist](https://github.com/Andarist)! - `package.json#exports` have been added to limit what (and how) code might be imported from the package. - -### Patch Changes - -- Updated dependencies [[`a971652`](https://github.com/changesets/changesets/commit/a971652ec1403aab3fb89eb2f1640bd5012b895a)]: - - @changesets/get-dependents-graph@2.0.0 - - @changesets/errors@0.2.0 - - @changesets/types@6.0.0 - -## 5.2.4 - -### Patch Changes - -- [#1176](https://github.com/changesets/changesets/pull/1176) [`41988ce`](https://github.com/changesets/changesets/commit/41988ceb8c1cedd3857c939448bf3965494ff0a4) Thanks [@joshwooding](https://github.com/joshwooding)! - Bump [`semver`](https://github.com/npm/node-semver) dependency to v7.5.3 - -- Updated dependencies [[`41988ce`](https://github.com/changesets/changesets/commit/41988ceb8c1cedd3857c939448bf3965494ff0a4)]: - - @changesets/get-dependents-graph@1.3.6 - -## 5.2.3 - -### Patch Changes - -- Updated dependencies [[`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2)]: - - @changesets/types@5.2.1 - - @changesets/get-dependents-graph@1.3.5 - -## 5.2.2 - -### Patch Changes - -- [#949](https://github.com/changesets/changesets/pull/949) [`64585ea`](https://github.com/changesets/changesets/commit/64585ea4323c4cf51a23b0635990b568d1f58b2b) Thanks [@Andarist](https://github.com/Andarist), [@BPScott](https://github.com/BPScott)! - Fixed the issue that caused transitive dependents of dev dependents to be bumped when a package got bumped and when using `___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.updateInternalDependents: "always"`. To illustrate this with an example: - - ``` - pkg-a - version: 1.0.0 - pkg-b - devDependencies['pkg-a']: 1.0.0 - pkg-c - dependencies['pkg-b']: 1.0.0 - ``` - - With a changeset for `pkg-a` the `pkg-c` could have been sometimes incorrectly released. - -- Updated dependencies [[`8c08469`](https://github.com/changesets/changesets/commit/8c0846977597ddaf51aaeb35f1f0f9428bf8ba14)]: - - @changesets/types@5.2.0 - - @changesets/get-dependents-graph@1.3.4 - -## 5.2.1 - -### Patch Changes - -- [#914](https://github.com/changesets/changesets/pull/914) [`b023e4b`](https://github.com/changesets/changesets/commit/b023e4b3d1ad793a5dd1187b720e8103cebfb937) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with the `assembleReleasePlan`'s signature not being compatible with the old shape of the `config` and `snapshot` parameters. This could have caused runtime errors during snapshot releases when only some of the Changesets transitive dependencies were updated without other ones. - -## 5.2.0 - -### Minor Changes - -- [#858](https://github.com/changesets/changesets/pull/858) [`dd9b76f`](https://github.com/changesets/changesets/commit/dd9b76f162a546ae8b412e0cb10277f971f3585e) Thanks [@dotansimha](https://github.com/dotansimha)! - Added a new config option: `snapshot.prereleaseTemplate` for customizing the way snapshot release numbers are being composed. - -### Patch Changes - -- Updated dependencies [[`dd9b76f`](https://github.com/changesets/changesets/commit/dd9b76f162a546ae8b412e0cb10277f971f3585e)]: - - @changesets/types@5.1.0 - - @changesets/get-dependents-graph@1.3.3 - -## 5.1.3 - -### Patch Changes - -- [#767](https://github.com/changesets/changesets/pull/767) [`d6bfcc5`](https://github.com/changesets/changesets/commit/d6bfcc5052dcba18c521a20d62e2e67a81819112) Thanks [@Andarist](https://github.com/Andarist)! - Improve the error message when a package referenced in a changeset can't be found. The message will now also include the changeset's ID. - -## 5.1.2 - -### Patch Changes - -- Updated dependencies [[`c87eba6`](https://github.com/changesets/changesets/commit/c87eba6f80a34563b7382f87472c29f6dafb546c)]: - - @changesets/types@5.0.0 - - @changesets/get-dependents-graph@1.3.2 - -## 5.1.1 - -### Patch Changes - -- [#769](https://github.com/changesets/changesets/pull/769) [`3e8e672`](https://github.com/changesets/changesets/commit/3e8e6721d31f80fff28826e0fad2c14216c3d94f) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an infinite loop involving a fixed group of packages and a package within that group that was both ignored and dependent on another package from that group. - -## 5.1.0 - -### Minor Changes - -- [#690](https://github.com/changesets/changesets/pull/690) [`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15) Thanks [@Andarist](https://github.com/Andarist)! - Added handling of the `fixed` config option. This adds all the packages from the `fixed` group to the assembled release and added releases end up having the same version. - -### Patch Changes - -- [#706](https://github.com/changesets/changesets/pull/706) [`0812858`](https://github.com/changesets/changesets/commit/0812858996045e602d22f2b7dd13e8673e3b36b0) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with `"none"` releases causing package versions being bumped during snapshot releases. In addition to when you create `"none"` release types explicitly Changesets might create them implicitly in some situations, for example under some circumstances this issue caused snapshot releases to be created sometimes for ignored packages. - -- [#751](https://github.com/changesets/changesets/pull/751) [`59c7ebc`](https://github.com/changesets/changesets/commit/59c7ebc7a5e75f69f5487e95a85cd1b7062ac39d) Thanks [@Rugvip](https://github.com/Rugvip)! - Fixed an issue where dependent packages would sometimes not get bumped properly when exiting prerelease mode. - -- [#703](https://github.com/changesets/changesets/pull/703) [`15c461d`](https://github.com/changesets/changesets/commit/15c461d5de94a274ccc8b33755a133a513339b0a) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with dependant packages being always bumped when their `*` dependency was bumped. - -- Updated dependencies [[`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15)]: - - @changesets/types@4.1.0 - - @changesets/get-dependents-graph@1.3.1 - -## 5.0.5 - -### Patch Changes - -- [#693](https://github.com/changesets/changesets/pull/693) [`1be201f`](https://github.com/changesets/changesets/commit/1be201fc27903cb2f42137400b5484c4ccad3812) Thanks [@luciaquirke](https://github.com/luciaquirke)! - Fixed an issue with `none` release type sometimes overriding other release types and thus preventing a release from happening. - -- Updated dependencies [[`6f9c9d6`](https://github.com/changesets/changesets/commit/6f9c9d60c0e02c79d555c48deb01559057f1d252)]: - - @changesets/get-dependents-graph@1.3.0 - -## 5.0.4 - -### Patch Changes - -- [#692](https://github.com/changesets/changesets/pull/692) [`e4c4b29`](https://github.com/changesets/changesets/commit/e4c4b2934beee9b25a927b4ae1b7280f4323d4ff) Thanks [@jakubmazanec](https://github.com/jakubmazanec)! - Fix snapshot timestamp so its date part contains the correct date and the timestamp can be used for collation. - -## 5.0.3 - -### Patch Changes - -- [#667](https://github.com/changesets/changesets/pull/667) [`fe8db75`](https://github.com/changesets/changesets/commit/fe8db7500f81caea9064f8bec02bcb77e0fd8fce) Thanks [@fz6m](https://github.com/fz6m)! - Upgraded `@manypkg/get-packages` dependency to fix getting correct packages in pnpm workspaces with exclude rules. - -- Updated dependencies [[`fe8db75`](https://github.com/changesets/changesets/commit/fe8db7500f81caea9064f8bec02bcb77e0fd8fce), [`9a993ba`](https://github.com/changesets/changesets/commit/9a993ba09629c1620d749432520470cec49d3a96)]: - - @changesets/get-dependents-graph@1.2.4 - - @changesets/types@4.0.2 - -## 5.0.2 - -### Patch Changes - -- Updated dependencies [[`74dda8c`](https://github.com/changesets/changesets/commit/74dda8c0d8bd1741ca7b19f0ccb37b2330dc9549)]: - - @changesets/get-dependents-graph@1.2.3 - -## 5.0.1 - -### Patch Changes - -- Updated dependencies [[`e89e28a`](https://github.com/changesets/changesets/commit/e89e28a05f5fa43307db73812a6bcd269b62ddee)]: - - @changesets/types@4.0.1 - - @changesets/get-dependents-graph@1.2.2 - -## 5.0.0 - -### Major Changes - -- [#542](https://github.com/changesets/changesets/pull/542) [`de2b4a5`](https://github.com/changesets/changesets/commit/de2b4a5a7b244a37d94625bcb70ecde9dde5b612) Thanks [@Andarist](https://github.com/Andarist)! - The accepted `Config` type has been changed - a new experimental option (`updateInternalDependents`) was added to it. - -### Patch Changes - -- Updated dependencies [[`de2b4a5`](https://github.com/changesets/changesets/commit/de2b4a5a7b244a37d94625bcb70ecde9dde5b612)]: - - @changesets/types@4.0.0 - - @changesets/get-dependents-graph@1.2.1 - -## 4.1.1 - -### Patch Changes - -- [#441](https://github.com/changesets/changesets/pull/441) [`8b9ac07`](https://github.com/changesets/changesets/commit/8b9ac076a87eaf9556ec5ede0222a75182095662) Thanks [@joshlartz](https://github.com/joshlartz)! - Fixed an issue with including dependents in the release plan for dependencies using `workspace:` protocol that had a `none` changeset for them. - -## 4.1.0 - -### Minor Changes - -- [`12f9a43`](https://github.com/changesets/changesets/commit/12f9a433a6c3ac38f9405fcd77c9108c423d7101) [#507](https://github.com/changesets/changesets/pull/507) Thanks [@zkochan](https://github.com/zkochan)! - New setting added: bumpVersionsWithWorkspaceProtocolOnly. When it is set to `true`, versions are bumped in `dependencies`, only if those versions are prefixed by the workspace protocol. For instance, `"foo": "workspace:^1.0.0"`. - -### Patch Changes - -- Updated dependencies [[`12f9a43`](https://github.com/changesets/changesets/commit/12f9a433a6c3ac38f9405fcd77c9108c423d7101)]: - - @changesets/get-dependents-graph@1.2.0 - - @changesets/types@3.3.0 - -## 4.0.1 - -### Patch Changes - -- [`e92cc01`](https://github.com/changesets/changesets/commit/e92cc0138bfbc041c77e6c7d054f2aa101cece5a) [#482](https://github.com/changesets/changesets/pull/482) Thanks [@jonathanmorley](https://github.com/jonathanmorley)! - Fixed an issue with bumping a peer dependency using a `"none"` changeset type resulting in the dependent package being major bumped. - -## 4.0.0 - -### Major Changes - -- [`ab98fe3`](https://github.com/changesets/changesets/commit/ab98fe33814867ba740fc04733602be80771915c) [#454](https://github.com/changesets/changesets/pull/454) Thanks [@Andarist](https://github.com/Andarist)! - Returned releases in pre mode will have type of the highest bump type within the current release now, instead of having the highest bump type from among all changesets within this pre mode. So if you release a new prerelease including a major bump and later release the same package with a minor bump the assembled release will be of type minor - the final computed version will, of course, still be the next one for a major bump. - -### Patch Changes - -- [`d1d987c`](https://github.com/changesets/changesets/commit/d1d987c42cddff8be5d7f04d3ebb5a262779fa9f) [#455](https://github.com/changesets/changesets/pull/455) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with linked package being assigned a non-none release type when another package from the linked set has been added to current releases and the package had just a none release type. - -- [`9d99bd1`](https://github.com/changesets/changesets/commit/9d99bd16f2b6b3ab4fe820358d4c9f313cb2ae76) [#446](https://github.com/changesets/changesets/pull/446) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with dependent packages not being updated to their highest bump type in pre mode sometimes. This could happen when dependent packages were only versioned because of their dependencies being upgraded and not because of a dedicated changeset for those dependent packages. - - For the very same reason linked packages were also not always bumped correctly in pre mode to the highest bump type in a linked group. - -## 3.0.1 - -### Patch Changes - -- [`d531dbd`](https://github.com/changesets/changesets/commit/d531dbdc9ac22faccb20356e9ea1313e5095cf9d) [#412](https://github.com/changesets/changesets/pull/412) Thanks [@Feiyang1](https://github.com/Feiyang1)! - Fixed an issue with the same package specified as a different dependency type with different range types not being updated correctly for all of them. - -## 3.0.0 - -### Major Changes - -- [`addd725`](https://github.com/changesets/changesets/commit/addd7256d9251d999251a7c16c0a0b068d557b5d) [#383](https://github.com/changesets/changesets/pull/383) Thanks [@Feiyang1](https://github.com/Feiyang1)! - Added an experimental flag `onlyUpdatePeerDependentsWhenOutOfRange`. When set to `true`, we only bump peer dependents when peerDependencies are leaving range. - -### Minor Changes - -- [`9dcc364`](https://github.com/changesets/changesets/commit/9dcc364bf19e48f8f2824ebaf967d9ef41b6fc04) [#371](https://github.com/changesets/changesets/pull/371) Thanks [@Feiyang1](https://github.com/Feiyang1)! - Added support for ignoring packages in the `version` command. The version of ignored packages will not be bumped, but their dependencies will still be bumped normally. This is useful when you have private packages, e.g. packages under development. It allows you to make releases for the public packages without changing the version of your private packages. To use the feature, you can define the `ignore` array in the config file with the name of the packages: - - ``` - { - ... - "ignore": ["pkg-a", "pkg-b"] - ... - } - ``` - - or you can pass the package names to the `--ignore` flag when using cli: - - ``` - yarn changeset version --ignore pkg-a --ignore --pkg-b - ``` - -### Patch Changes - -- [`00e768e`](https://github.com/changesets/changesets/commit/00e768e4af921a894debb900f944d4c9a4e27997) [#382](https://github.com/changesets/changesets/pull/382) Thanks [@Feiyang1](https://github.com/Feiyang1)! - Fix a bug where packages that shouldn't get released get patch releases when the pre mode is exit - -- Updated dependencies [[`addd725`](https://github.com/changesets/changesets/commit/addd7256d9251d999251a7c16c0a0b068d557b5d), [`9dcc364`](https://github.com/changesets/changesets/commit/9dcc364bf19e48f8f2824ebaf967d9ef41b6fc04)]: - - @changesets/types@3.1.0 - -## 2.1.0 - -### Minor Changes - -- [`6d0790a`](https://github.com/changesets/changesets/commit/6d0790a7aa9f00e350e9394f419e4b3c7ee7ca6a) [#359](https://github.com/changesets/changesets/pull/359) Thanks [@ajaymathur](https://github.com/ajaymathur)! - Add support for snapshot flag to version command. Usage: `changeset version --snapshot [tag]`. The updated version of the packages looks like `0.0.0[-tag]-YYYYMMDDHHMMSS` where YYYY, MM, DD, HH, MM, and SS is the date and time of when the snapshot version is created. You can use this feature with the tag option in the publish command to publish packages under experimental tags from feature branches. To publish a snapshot version of a package under an experimental tag you can do: - - ``` - # Version packages to snapshot version - changeset version --snapshot - # Publish packages under experimental tag, keeping next and latest tag clean - changeset publish --tag experimental - ``` - -## 2.0.4 - -### Patch Changes - -- Updated dependencies [[`2b49d66`](https://github.com/changesets/changesets/commit/2b49d668ecaa1333bc5c7c5be4648dda1b11528d)]: - - @changesets/types@3.0.0 - - @changesets/get-dependents-graph@1.1.3 - -## 2.0.3 - -### Patch Changes - -- [`8469636`](https://github.com/changesets/changesets/commit/8469636414cb2475547bba3140e3df1927b5926b) [#344](https://github.com/changesets/changesets/pull/344) Thanks [@zkochan](https://github.com/zkochan)! - When both a dev dep and a prod dep of a dependent package are published, the version of the dependent package should be bumped. This fixes a regression introduced by #313. - -## 2.0.2 - -### Patch Changes - -- [`d678da5`](https://github.com/changesets/changesets/commit/d678da5e9936862bb66e5edb538c5b8be23d4ffe) [#324](https://github.com/changesets/changesets/pull/324) Thanks [@zkochan](https://github.com/zkochan)! - Dev dependencies that are installed via the link or file protocol are ignored. - -- Updated dependencies [[`d678da5`](https://github.com/changesets/changesets/commit/d678da5e9936862bb66e5edb538c5b8be23d4ffe)]: - - @changesets/get-dependents-graph@1.1.2 - -## 2.0.1 - -### Patch Changes - -- [`1706fb7`](https://github.com/changesets/changesets/commit/1706fb751ecc2f5a792c42f467b2063078d58716) [#321](https://github.com/changesets/changesets/pull/321) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fix TypeScript declarations - -- Updated dependencies [[`1706fb7`](https://github.com/changesets/changesets/commit/1706fb751ecc2f5a792c42f467b2063078d58716)]: - - @changesets/errors@0.1.4 - - @changesets/get-dependents-graph@1.1.1 - - @changesets/types@2.0.1 - -## 2.0.0 - -### Major Changes - -- [`011d57f`](https://github.com/changesets/changesets/commit/011d57f1edf9e37f75a8bef4f918e72166af096e) [#313](https://github.com/changesets/changesets/pull/313) Thanks [@zkochan](https://github.com/zkochan)! - When the released package is only used as a dev dependency, the dependent package's version should not be bumped. - -### Patch Changes - -- Updated dependencies [[`c3cc232`](https://github.com/changesets/changesets/commit/c3cc23204c6cb80487aced1b37ebe8ffde0e2111), [`011d57f`](https://github.com/changesets/changesets/commit/011d57f1edf9e37f75a8bef4f918e72166af096e)]: - - @changesets/get-dependents-graph@1.1.0 - - @changesets/types@2.0.0 - -## 1.0.1 - -### Patch Changes - -- [`04ddfd7`](https://github.com/changesets/changesets/commit/04ddfd7c3acbfb84ef9c92873fe7f9dea1f5145c) [#305](https://github.com/changesets/changesets/pull/305) Thanks [@Noviny](https://github.com/Noviny)! - Add link to changelog in readme - -- [`b49e1cf`](https://github.com/changesets/changesets/commit/b49e1cff65dca7fe9e341a35aa91704aa0e51cb3) [#306](https://github.com/changesets/changesets/pull/306) Thanks [@Andarist](https://github.com/Andarist)! - Ignore `node_modules` when glob searching for packages. This fixes an issue with package cycles. - -- Updated dependencies [[`04ddfd7`](https://github.com/changesets/changesets/commit/04ddfd7c3acbfb84ef9c92873fe7f9dea1f5145c), [`e56928b`](https://github.com/changesets/changesets/commit/e56928bbd6f9096def06ac37487bdbf28efec9d1), [`b49e1cf`](https://github.com/changesets/changesets/commit/b49e1cff65dca7fe9e341a35aa91704aa0e51cb3)]: - - @changesets/config@1.0.1 - - @changesets/errors@0.1.3 - - @changesets/get-dependents-graph@1.0.1 - - @changesets/types@1.0.1 - -## 1.0.0 - -### Major Changes - -- [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20) [#290](https://github.com/changesets/changesets/pull/290) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Accept `Packages` object instead of `Workspace[]` and remove `dependentsGraph` argument - -### Patch Changes - -- Updated dependencies [[`41e2e3d`](https://github.com/changesets/changesets/commit/41e2e3dd1053ff2f35a1a07e60793c9099f26997), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20), [`2363366`](https://github.com/changesets/changesets/commit/2363366756d1b15bddf6d803911baccfca03cbdf), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20), [`cc8c921`](https://github.com/changesets/changesets/commit/cc8c92143d4c4b7cca8b9917dfc830a40b5cda20)]: - - @changesets/types@1.0.0 - - @changesets/get-dependents-graph@1.0.0 - - @changesets/config@1.0.0 - -## 0.3.1 - -### Patch Changes - -- [`1282ef6`](https://github.com/changesets/changesets/commit/1282ef698761c1f634fb409842cc7de6b4d03da4) [#263](https://github.com/changesets/changesets/pull/263) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fixed a bug where only the unreleased pre-release changesets were taken into account when calculating the new version, not previously released changesets. - -## 0.3.0 - -### Minor Changes - -- [`8f0a1ef`](https://github.com/changesets/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0) [#183](https://github.com/changesets/changesets/pull/183) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Add support for prereleases. For more information, see [the docs on prereleases](https://github.com/changesets/changesets/blob/main/docs/prereleases.md). - -### Patch Changes - -- Updated dependencies [[`8f0a1ef`](https://github.com/changesets/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0), [`8f0a1ef`](https://github.com/changesets/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0), [`8f0a1ef`](https://github.com/changesets/changesets/commit/8f0a1ef327563512f471677ef0ca99d30da009c0)]: - - @changesets/types@0.4.0 - - @changesets/errors@0.1.2 - - @changesets/config@0.2.3 - -## 0.2.1 - -### Patch Changes - -- [8c43fa0](https://github.com/changesets/changesets/commit/8c43fa061e2a5a01e4f32504ed351d261761c8dc) [#155](https://github.com/changesets/changesets/pull/155) Thanks [@Noviny](https://github.com/Noviny)! - Add Readme - -- Updated dependencies [8c43fa0, 1ff73b7]: - - @changesets/types@0.3.0 - - @changesets/config@0.2.1 - -## 0.2.0 - -### Minor Changes - -- [296a6731](https://github.com/changesets/changesets/commit/296a6731) - Safety bump: Towards the end of preparing changesets v2, there was a lot of chaos - this bump is to ensure every package on npm matches what is found in the repository. - -### Patch Changes - -- Updated dependencies [296a6731]: - - @changesets/config@0.2.0 - - @changesets/types@0.2.0 - -## 0.1.2 - -### Patch Changes - -- [a15abbf9](https://github.com/changesets/changesets/commit/a15abbf9) - Previous release shipped unbuilt code - fixing that - -## 0.1.0 - -### Minor Changes - -- [84aeb37f](https://github.com/changesets/changesets/commit/84aeb37f) - Initial release - -### Patch Changes - -- [519b4218](https://github.com/changesets/changesets/commit/519b4218) - Use new Config type which makes linked required - -- Updated dependencies [519b4218]: -- Updated dependencies [519b4218]: - - @changesets/config@0.1.0 - - @changesets/types@0.1.0 diff --git a/node_modules/@changesets/assemble-release-plan/README.md b/node_modules/@changesets/assemble-release-plan/README.md deleted file mode 100644 index 60e003ea..00000000 --- a/node_modules/@changesets/assemble-release-plan/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# Assemble Release Plan - -[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@changesets/assemble-release-plan) - -Assemble a release plan for changesets from data about a repository. - -Usage - -```ts -import assembleReleasePlan from "@changesets/assemble-release-plan"; -import readChangesets from "@changesets/read"; -import { read } from "@changesets/config"; -import { getPackages } from "@manypkg/get-packages"; -import { readPreState } from "@changesets/pre"; - -const packages = await getPackages(cwd); -const preState = await readPreState(cwd); -const config = await read(cwd, packages); -const changesets = await readChangesets(cwd, sinceRef); - -const releasePlan = assembleReleasePlan(changesets, packages, config, preState); -``` - -Signature - -```ts -import { NewChangeset, Config, ReleasePlan } from "@changesets/types"; -import { Packages } from "@manypkg/get-packages"; - -assembleReleasePlan = ( - changesets: NewChangeset[], - packages: Packages, - config: Config -) => ReleasePlan; -``` - -This package exists so assembling a release plan can be done without reading from disc. -This is useful primarily for testing within the changesets project, and when you cannot -run commands within the repository you want a release plan for (some CI cases). - -For most cases, you should use `@changesets/get-release-plan` which will read local changeset -files, config, and workspaces, to assemble the release plan from. diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.mts b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.mts deleted file mode 100644 index faf66488..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.mts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./declarations/src/index.js"; -export { _default as default } from "./changesets-assemble-release-plan.cjs.default.js"; -//# sourceMappingURL=changesets-assemble-release-plan.cjs.d.mts.map diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.mts.map b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.mts.map deleted file mode 100644 index ccc6257c..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"changesets-assemble-release-plan.cjs.d.mts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"} diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.ts b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.ts deleted file mode 100644 index b95fa82f..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./declarations/src/index"; -export { default } from "./declarations/src/index"; -//# sourceMappingURL=changesets-assemble-release-plan.cjs.d.ts.map diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.ts.map b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.ts.map deleted file mode 100644 index 24a531f8..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"changesets-assemble-release-plan.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"} diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.default.d.ts b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.default.d.ts deleted file mode 100644 index 922ab3aa..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.default.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as _default } from "./declarations/src/index.js" diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.default.js b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.default.js deleted file mode 100644 index f599a0f3..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.default.js +++ /dev/null @@ -1 +0,0 @@ -exports._default = require("./changesets-assemble-release-plan.cjs.js").default; diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.js b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.js deleted file mode 100644 index ee5c0f67..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.js +++ /dev/null @@ -1,625 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); -var semverSatisfies = require('semver/functions/satisfies'); -var semverInc = require('semver/functions/inc'); -var errors = require('@changesets/errors'); -var semverGt = require('semver/functions/gt'); -var semverParse = require('semver/functions/parse'); -var getDependentsGraph = require('@changesets/get-dependents-graph'); - -function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } - -var semverSatisfies__default = /*#__PURE__*/_interopDefault(semverSatisfies); -var semverInc__default = /*#__PURE__*/_interopDefault(semverInc); -var semverGt__default = /*#__PURE__*/_interopDefault(semverGt); -var semverParse__default = /*#__PURE__*/_interopDefault(semverParse); - -function incrementVersion(release, preInfo) { - if (release.type === "none") { - return release.oldVersion; - } - - let version = semverInc__default["default"](release.oldVersion, release.type); - - if (preInfo !== undefined && preInfo.state.mode !== "exit") { - let preVersion = preInfo.preVersions.get(release.name); - - if (preVersion === undefined) { - throw new errors.InternalError(`preVersion for ${release.name} does not exist when preState is defined`); - } // why are we adding this ourselves rather than passing 'pre' + versionType to semver.inc? - // because semver.inc with prereleases is confusing and this seems easier - - - version += `-${preInfo.state.tag}.${preVersion}`; - } - - return version; -} - -/* - WARNING: - Important note for understanding how this package works: - - We are doing some kind of wacky things with manipulating the objects within the - releases array, despite the fact that this was passed to us as an argument. We are - aware that this is generally bad practice, but have decided to to this here as - we control the entire flow of releases. - - We could solve this by inlining this function, or by returning a deep-cloned then - modified array, but we decided both of those are worse than this solution. -*/ - -function determineDependents({ - releases, - packagesByName, - dependencyGraph, - preInfo, - config -}) { - let updated = false; // NOTE this is intended to be called recursively - - let pkgsToSearch = [...releases.values()]; - - while (pkgsToSearch.length > 0) { - // nextRelease is our dependency, think of it as "avatar" - const nextRelease = pkgsToSearch.shift(); - if (!nextRelease) continue; // pkgDependents will be a list of packages that depend on nextRelease ie. ['avatar-group', 'comment'] - - const pkgDependents = dependencyGraph.get(nextRelease.name); - - if (!pkgDependents) { - throw new Error(`Error in determining dependents - could not find package in repository: ${nextRelease.name}`); - } - - pkgDependents.map(dependent => { - let type; - const dependentPackage = packagesByName.get(dependent); - if (!dependentPackage) throw new Error("Dependency map is incorrect"); - - if (config.ignore.includes(dependent)) { - type = "none"; - } else { - const dependencyVersionRanges = getDependencyVersionRanges(dependentPackage.packageJson, nextRelease); - - for (const { - depType, - versionRange - } of dependencyVersionRanges) { - if (nextRelease.type === "none") { - continue; - } else if (shouldBumpMajor({ - dependent, - depType, - versionRange, - releases, - nextRelease, - preInfo, - onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange - })) { - type = "major"; - } else if ((!releases.has(dependent) || releases.get(dependent).type === "none") && (config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.updateInternalDependents === "always" || !semverSatisfies__default["default"](incrementVersion(nextRelease, preInfo), versionRange))) { - switch (depType) { - case "dependencies": - case "optionalDependencies": - case "peerDependencies": - if (type !== "major" && type !== "minor") { - type = "patch"; - } - - break; - - case "devDependencies": - { - // We don't need a version bump if the package is only in the devDependencies of the dependent package - if (type !== "major" && type !== "minor" && type !== "patch") { - type = "none"; - } - } - } - } - } - } - - if (releases.has(dependent) && releases.get(dependent).type === type) { - type = undefined; - } - - return { - name: dependent, - type, - pkgJSON: dependentPackage.packageJson - }; - }).filter(dependentItem => !!dependentItem.type).forEach(({ - name, - type, - pkgJSON - }) => { - // At this point, we know if we are making a change - updated = true; - const existing = releases.get(name); // For things that are being given a major bump, we check if we have already - // added them here. If we have, we update the existing item instead of pushing it on to search. - // It is safe to not add it to pkgsToSearch because it should have already been searched at the - // largest possible bump type. - - if (existing && type === "major" && existing.type !== "major") { - existing.type = "major"; - pkgsToSearch.push(existing); - } else { - let newDependent = { - name, - type, - oldVersion: pkgJSON.version, - changesets: [] - }; - pkgsToSearch.push(newDependent); - releases.set(name, newDependent); - } - }); - } - - return updated; -} -/* - Returns an array of objects in the shape { depType: DependencyType, versionRange: string } - The array can contain more than one elements in case a dependency appears in multiple - dependency lists. For example, a package that is both a peerDepenency and a devDependency. -*/ - -function getDependencyVersionRanges(dependentPkgJSON, dependencyRelease) { - const DEPENDENCY_TYPES = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; - const dependencyVersionRanges = []; - - for (const type of DEPENDENCY_TYPES) { - var _dependentPkgJSON$typ; - - const versionRange = (_dependentPkgJSON$typ = dependentPkgJSON[type]) === null || _dependentPkgJSON$typ === void 0 ? void 0 : _dependentPkgJSON$typ[dependencyRelease.name]; - if (!versionRange) continue; - - if (versionRange.startsWith("workspace:")) { - dependencyVersionRanges.push({ - depType: type, - versionRange: // intentionally keep other workspace ranges untouched - // this has to be fixed but this should only be done when adding appropriate tests - versionRange === "workspace:*" ? // workspace:* actually means the current exact version, and not a wildcard similar to a reguler * range - dependencyRelease.oldVersion : versionRange.replace(/^workspace:/, "") - }); - } else { - dependencyVersionRanges.push({ - depType: type, - versionRange - }); - } - } - - return dependencyVersionRanges; -} - -function shouldBumpMajor({ - dependent, - depType, - versionRange, - releases, - nextRelease, - preInfo, - onlyUpdatePeerDependentsWhenOutOfRange -}) { - // we check if it is a peerDependency because if it is, our dependent bump type might need to be major. - return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. - // 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range. - !onlyUpdatePeerDependentsWhenOutOfRange || !semverSatisfies__default["default"](incrementVersion(nextRelease, preInfo), versionRange)) && ( // bump major only if the dependent doesn't already has a major release. - !releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major"); -} - -// This function takes in changesets and returns one release per -// package listed in the changesets -function flattenReleases(changesets, packagesByName, ignoredPackages) { - let releases = new Map(); - changesets.forEach(changeset => { - changeset.releases // Filter out ignored packages because they should not trigger a release - // If their dependencies need updates, they will be added to releases by `determineDependents()` with release type `none` - .filter(({ - name - }) => !ignoredPackages.includes(name)).forEach(({ - name, - type - }) => { - let release = releases.get(name); - let pkg = packagesByName.get(name); - - if (!pkg) { - throw new Error(`"${changeset.id}" changeset mentions a release for a package "${name}" but such a package could not be found.`); - } - - if (!release) { - release = { - name, - type, - oldVersion: pkg.packageJson.version, - changesets: [changeset.id] - }; - } else { - if (type === "major" || (release.type === "patch" || release.type === "none") && (type === "minor" || type === "patch")) { - release.type = type; - } // Check whether the bumpType will change - // If the bumpType has changed recalc newVersion - // push new changeset to releases - - - release.changesets.push(changeset.id); - } - - releases.set(name, release); - }); - }); - return releases; -} - -function getHighestReleaseType(releases) { - if (releases.length === 0) { - throw new Error(`Large internal Changesets error when calculating highest release type in the set of releases. Please contact the maintainers`); - } - - let highestReleaseType = "none"; - - for (let release of releases) { - switch (release.type) { - case "major": - return "major"; - - case "minor": - highestReleaseType = "minor"; - break; - - case "patch": - if (highestReleaseType === "none") { - highestReleaseType = "patch"; - } - - break; - } - } - - return highestReleaseType; -} -function getCurrentHighestVersion(packageGroup, packagesByName) { - let highestVersion; - - for (let pkgName of packageGroup) { - let pkg = packagesByName.get(pkgName); - - if (!pkg) { - console.error(`FATAL ERROR IN CHANGESETS! We were unable to version for package group: ${pkgName} in package group: ${packageGroup.toString()}`); - throw new Error(`fatal: could not resolve linked packages`); - } - - if (highestVersion === undefined || semverGt__default["default"](pkg.packageJson.version, highestVersion)) { - highestVersion = pkg.packageJson.version; - } - } - - return highestVersion; -} - -function matchFixedConstraint(releases, packagesByName, config) { - let updated = false; - - for (let fixedPackages of config.fixed) { - let releasingFixedPackages = [...releases.values()].filter(release => fixedPackages.includes(release.name) && release.type !== "none"); - if (releasingFixedPackages.length === 0) continue; - let highestReleaseType = getHighestReleaseType(releasingFixedPackages); - let highestVersion = getCurrentHighestVersion(fixedPackages, packagesByName); // Finally, we update the packages so all of them are on the highest version - - for (let pkgName of fixedPackages) { - if (config.ignore.includes(pkgName)) { - continue; - } - - let release = releases.get(pkgName); - - if (!release) { - updated = true; - releases.set(pkgName, { - name: pkgName, - type: highestReleaseType, - oldVersion: highestVersion, - changesets: [] - }); - continue; - } - - if (release.type !== highestReleaseType) { - updated = true; - release.type = highestReleaseType; - } - - if (release.oldVersion !== highestVersion) { - updated = true; - release.oldVersion = highestVersion; - } - } - } - - return updated; -} - -/* - WARNING: - Important note for understanding how this package works: - - We are doing some kind of wacky things with manipulating the objects within the - releases array, despite the fact that this was passed to us as an argument. We are - aware that this is generally bad practice, but have decided to to this here as - we control the entire flow of releases. - - We could solve this by inlining this function, or by returning a deep-cloned then - modified array, but we decided both of those are worse than this solution. -*/ - -function applyLinks(releases, packagesByName, linked) { - let updated = false; // We do this for each set of linked packages - - for (let linkedPackages of linked) { - // First we filter down to all the relevant releases for one set of linked packages - let releasingLinkedPackages = [...releases.values()].filter(release => linkedPackages.includes(release.name) && release.type !== "none"); // If we proceed any further we do extra work with calculating highestVersion for things that might - // not need one, as they only have workspace based packages - - if (releasingLinkedPackages.length === 0) continue; - let highestReleaseType = getHighestReleaseType(releasingLinkedPackages); - let highestVersion = getCurrentHighestVersion(linkedPackages, packagesByName); // Finally, we update the packages so all of them are on the highest version - - for (let linkedPackage of releasingLinkedPackages) { - if (linkedPackage.type !== highestReleaseType) { - updated = true; - linkedPackage.type = highestReleaseType; - } - - if (linkedPackage.oldVersion !== highestVersion) { - updated = true; - linkedPackage.oldVersion = highestVersion; - } - } - } - - return updated; -} - -function getPreVersion(version) { - let parsed = semverParse__default["default"](version); - let preVersion = parsed.prerelease[1] === undefined ? -1 : parsed.prerelease[1]; - - if (typeof preVersion !== "number") { - throw new errors.InternalError("preVersion is not a number"); - } - - preVersion++; - return preVersion; -} - -function getSnapshotSuffix(template, snapshotParameters) { - let snapshotRefDate = new Date(); - const placeholderValues = { - commit: snapshotParameters.commit, - tag: snapshotParameters.tag, - timestamp: snapshotRefDate.getTime().toString(), - datetime: snapshotRefDate.toISOString().replace(/\.\d{3}Z$/, "").replace(/[^\d]/g, "") - }; // We need a special handling because we need to handle a case where `--snapshot` is used without any template, - // and the resulting version needs to be composed without a tag. - - if (!template) { - return [placeholderValues.tag, placeholderValues.datetime].filter(Boolean).join("-"); - } - - const placeholders = Object.keys(placeholderValues); - - if (!template.includes(`{tag}`) && placeholderValues.tag !== undefined) { - throw new Error(`Failed to compose snapshot version: "{tag}" placeholder is missing, but the snapshot parameter is defined (value: '${placeholderValues.tag}')`); - } - - return placeholders.reduce((prev, key) => { - return prev.replace(new RegExp(`\\{${key}\\}`, "g"), () => { - const value = placeholderValues[key]; - - if (value === undefined) { - throw new Error(`Failed to compose snapshot version: "{${key}}" placeholder is used without having a value defined!`); - } - - return value; - }); - }, template); -} - -function getSnapshotVersion(release, preInfo, useCalculatedVersion, snapshotSuffix) { - if (release.type === "none") { - return release.oldVersion; - } - /** - * Using version as 0.0.0 so that it does not hinder with other version release - * For example; - * if user has a regular pre-release at 1.0.0-beta.0 and then you had a snapshot pre-release at 1.0.0-canary-git-hash - * and a consumer is using the range ^1.0.0-beta, most people would expect that range to resolve to 1.0.0-beta.0 - * but it'll actually resolve to 1.0.0-canary-hash. Using 0.0.0 solves this problem because it won't conflict with other versions. - * - * You can set `snapshot.useCalculatedVersion` flag to true to use calculated versions if you don't care about the above problem. - */ - - - const baseVersion = useCalculatedVersion ? incrementVersion(release, preInfo) : `0.0.0`; - return `${baseVersion}-${snapshotSuffix}`; -} - -function getNewVersion(release, preInfo) { - if (release.type === "none") { - return release.oldVersion; - } - - return incrementVersion(release, preInfo); -} - -function assembleReleasePlan(changesets, packages, config, // intentionally not using an optional parameter here so the result of `readPreState` has to be passed in here -preState, // snapshot: undefined -> not using snaphot -// snapshot: { tag: undefined } -> --snapshot (empty tag) -// snapshot: { tag: "canary" } -> --snapshot canary -snapshot) { - // TODO: remove `refined*` in the next major version of this package - // just use `config` and `snapshot` parameters directly, typed as: `config: Config, snapshot?: SnapshotReleaseParameters` - const refinedConfig = config.snapshot ? config : _objectSpread(_objectSpread({}, config), {}, { - snapshot: { - prereleaseTemplate: null, - useCalculatedVersion: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.useCalculatedVersionForSnapshots - } - }); - const refinedSnapshot = typeof snapshot === "string" ? { - tag: snapshot - } : typeof snapshot === "boolean" ? { - tag: undefined - } : snapshot; - let packagesByName = new Map(packages.packages.map(x => [x.packageJson.name, x])); - const relevantChangesets = getRelevantChangesets(changesets, refinedConfig.ignore, preState); - const preInfo = getPreInfo(changesets, packagesByName, refinedConfig, preState); // releases is, at this point a list of all packages we are going to releases, - // flattened down to one release per package, having a reference back to their - // changesets, and with a calculated new versions - - let releases = flattenReleases(relevantChangesets, packagesByName, refinedConfig.ignore); - let dependencyGraph = getDependentsGraph.getDependentsGraph(packages, { - bumpVersionsWithWorkspaceProtocolOnly: refinedConfig.bumpVersionsWithWorkspaceProtocolOnly - }); - let releasesValidated = false; - - while (releasesValidated === false) { - // The map passed in to determineDependents will be mutated - let dependentAdded = determineDependents({ - releases, - packagesByName, - dependencyGraph, - preInfo, - config: refinedConfig - }); // `releases` might get mutated here - - let fixedConstraintUpdated = matchFixedConstraint(releases, packagesByName, refinedConfig); - let linksUpdated = applyLinks(releases, packagesByName, refinedConfig.linked); - releasesValidated = !linksUpdated && !dependentAdded && !fixedConstraintUpdated; - } - - if ((preInfo === null || preInfo === void 0 ? void 0 : preInfo.state.mode) === "exit") { - for (let pkg of packages.packages) { - // If a package had a prerelease, but didn't trigger a version bump in the regular release, - // we want to give it a patch release. - // Detailed explanation at https://github.com/changesets/changesets/pull/382#discussion_r434434182 - if (preInfo.preVersions.get(pkg.packageJson.name) !== 0) { - const existingRelease = releases.get(pkg.packageJson.name); - - if (!existingRelease) { - releases.set(pkg.packageJson.name, { - name: pkg.packageJson.name, - type: "patch", - oldVersion: pkg.packageJson.version, - changesets: [] - }); - } else if (existingRelease.type === "none" && !refinedConfig.ignore.includes(pkg.packageJson.name)) { - existingRelease.type = "patch"; - } - } - } - } // Caching the snapshot version here and use this if it is snapshot release - - - const snapshotSuffix = refinedSnapshot && getSnapshotSuffix(refinedConfig.snapshot.prereleaseTemplate, refinedSnapshot); - return { - changesets: relevantChangesets, - releases: [...releases.values()].map(incompleteRelease => { - return _objectSpread(_objectSpread({}, incompleteRelease), {}, { - newVersion: snapshotSuffix ? getSnapshotVersion(incompleteRelease, preInfo, refinedConfig.snapshot.useCalculatedVersion, snapshotSuffix) : getNewVersion(incompleteRelease, preInfo) - }); - }), - preState: preInfo === null || preInfo === void 0 ? void 0 : preInfo.state - }; -} - -function getRelevantChangesets(changesets, ignored, preState) { - for (const changeset of changesets) { - // Using the following 2 arrays to decide whether a changeset - // contains both ignored and not ignored packages - const ignoredPackages = []; - const notIgnoredPackages = []; - - for (const release of changeset.releases) { - if (ignored.find(ignoredPackageName => ignoredPackageName === release.name)) { - ignoredPackages.push(release.name); - } else { - notIgnoredPackages.push(release.name); - } - } - - if (ignoredPackages.length > 0 && notIgnoredPackages.length > 0) { - throw new Error(`Found mixed changeset ${changeset.id}\n` + `Found ignored packages: ${ignoredPackages.join(" ")}\n` + `Found not ignored packages: ${notIgnoredPackages.join(" ")}\n` + "Mixed changesets that contain both ignored and not ignored packages are not allowed"); - } - } - - if (preState && preState.mode !== "exit") { - let usedChangesetIds = new Set(preState.changesets); - return changesets.filter(changeset => !usedChangesetIds.has(changeset.id)); - } - - return changesets; -} - -function getHighestPreVersion(packageGroup, packagesByName) { - let highestPreVersion = 0; - - for (let pkg of packageGroup) { - highestPreVersion = Math.max(getPreVersion(packagesByName.get(pkg).packageJson.version), highestPreVersion); - } - - return highestPreVersion; -} - -function getPreInfo(changesets, packagesByName, config, preState) { - if (preState === undefined) { - return; - } - - let updatedPreState = _objectSpread(_objectSpread({}, preState), {}, { - changesets: changesets.map(changeset => changeset.id), - initialVersions: _objectSpread({}, preState.initialVersions) - }); - - for (const [, pkg] of packagesByName) { - if (updatedPreState.initialVersions[pkg.packageJson.name] === undefined) { - updatedPreState.initialVersions[pkg.packageJson.name] = pkg.packageJson.version; - } - } // Populate preVersion - // preVersion is the map between package name and its next pre version number. - - - let preVersions = new Map(); - - for (const [, pkg] of packagesByName) { - preVersions.set(pkg.packageJson.name, getPreVersion(pkg.packageJson.version)); - } - - for (let fixedGroup of config.fixed) { - let highestPreVersion = getHighestPreVersion(fixedGroup, packagesByName); - - for (let fixedPackage of fixedGroup) { - preVersions.set(fixedPackage, highestPreVersion); - } - } - - for (let linkedGroup of config.linked) { - let highestPreVersion = getHighestPreVersion(linkedGroup, packagesByName); - - for (let linkedPackage of linkedGroup) { - preVersions.set(linkedPackage, highestPreVersion); - } - } - - return { - state: updatedPreState, - preVersions - }; -} - -exports["default"] = assembleReleasePlan; diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.mjs b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.mjs deleted file mode 100644 index e9f433fa..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.mjs +++ /dev/null @@ -1,2 +0,0 @@ -import "./changesets-assemble-release-plan.cjs.js"; -export { _default as default } from "./changesets-assemble-release-plan.cjs.default.js"; diff --git a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.esm.js b/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.esm.js deleted file mode 100644 index bf520262..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.esm.js +++ /dev/null @@ -1,614 +0,0 @@ -import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2'; -import semverSatisfies from 'semver/functions/satisfies'; -import semverInc from 'semver/functions/inc'; -import { InternalError } from '@changesets/errors'; -import semverGt from 'semver/functions/gt'; -import semverParse from 'semver/functions/parse'; -import { getDependentsGraph } from '@changesets/get-dependents-graph'; - -function incrementVersion(release, preInfo) { - if (release.type === "none") { - return release.oldVersion; - } - - let version = semverInc(release.oldVersion, release.type); - - if (preInfo !== undefined && preInfo.state.mode !== "exit") { - let preVersion = preInfo.preVersions.get(release.name); - - if (preVersion === undefined) { - throw new InternalError(`preVersion for ${release.name} does not exist when preState is defined`); - } // why are we adding this ourselves rather than passing 'pre' + versionType to semver.inc? - // because semver.inc with prereleases is confusing and this seems easier - - - version += `-${preInfo.state.tag}.${preVersion}`; - } - - return version; -} - -/* - WARNING: - Important note for understanding how this package works: - - We are doing some kind of wacky things with manipulating the objects within the - releases array, despite the fact that this was passed to us as an argument. We are - aware that this is generally bad practice, but have decided to to this here as - we control the entire flow of releases. - - We could solve this by inlining this function, or by returning a deep-cloned then - modified array, but we decided both of those are worse than this solution. -*/ - -function determineDependents({ - releases, - packagesByName, - dependencyGraph, - preInfo, - config -}) { - let updated = false; // NOTE this is intended to be called recursively - - let pkgsToSearch = [...releases.values()]; - - while (pkgsToSearch.length > 0) { - // nextRelease is our dependency, think of it as "avatar" - const nextRelease = pkgsToSearch.shift(); - if (!nextRelease) continue; // pkgDependents will be a list of packages that depend on nextRelease ie. ['avatar-group', 'comment'] - - const pkgDependents = dependencyGraph.get(nextRelease.name); - - if (!pkgDependents) { - throw new Error(`Error in determining dependents - could not find package in repository: ${nextRelease.name}`); - } - - pkgDependents.map(dependent => { - let type; - const dependentPackage = packagesByName.get(dependent); - if (!dependentPackage) throw new Error("Dependency map is incorrect"); - - if (config.ignore.includes(dependent)) { - type = "none"; - } else { - const dependencyVersionRanges = getDependencyVersionRanges(dependentPackage.packageJson, nextRelease); - - for (const { - depType, - versionRange - } of dependencyVersionRanges) { - if (nextRelease.type === "none") { - continue; - } else if (shouldBumpMajor({ - dependent, - depType, - versionRange, - releases, - nextRelease, - preInfo, - onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange - })) { - type = "major"; - } else if ((!releases.has(dependent) || releases.get(dependent).type === "none") && (config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.updateInternalDependents === "always" || !semverSatisfies(incrementVersion(nextRelease, preInfo), versionRange))) { - switch (depType) { - case "dependencies": - case "optionalDependencies": - case "peerDependencies": - if (type !== "major" && type !== "minor") { - type = "patch"; - } - - break; - - case "devDependencies": - { - // We don't need a version bump if the package is only in the devDependencies of the dependent package - if (type !== "major" && type !== "minor" && type !== "patch") { - type = "none"; - } - } - } - } - } - } - - if (releases.has(dependent) && releases.get(dependent).type === type) { - type = undefined; - } - - return { - name: dependent, - type, - pkgJSON: dependentPackage.packageJson - }; - }).filter(dependentItem => !!dependentItem.type).forEach(({ - name, - type, - pkgJSON - }) => { - // At this point, we know if we are making a change - updated = true; - const existing = releases.get(name); // For things that are being given a major bump, we check if we have already - // added them here. If we have, we update the existing item instead of pushing it on to search. - // It is safe to not add it to pkgsToSearch because it should have already been searched at the - // largest possible bump type. - - if (existing && type === "major" && existing.type !== "major") { - existing.type = "major"; - pkgsToSearch.push(existing); - } else { - let newDependent = { - name, - type, - oldVersion: pkgJSON.version, - changesets: [] - }; - pkgsToSearch.push(newDependent); - releases.set(name, newDependent); - } - }); - } - - return updated; -} -/* - Returns an array of objects in the shape { depType: DependencyType, versionRange: string } - The array can contain more than one elements in case a dependency appears in multiple - dependency lists. For example, a package that is both a peerDepenency and a devDependency. -*/ - -function getDependencyVersionRanges(dependentPkgJSON, dependencyRelease) { - const DEPENDENCY_TYPES = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; - const dependencyVersionRanges = []; - - for (const type of DEPENDENCY_TYPES) { - var _dependentPkgJSON$typ; - - const versionRange = (_dependentPkgJSON$typ = dependentPkgJSON[type]) === null || _dependentPkgJSON$typ === void 0 ? void 0 : _dependentPkgJSON$typ[dependencyRelease.name]; - if (!versionRange) continue; - - if (versionRange.startsWith("workspace:")) { - dependencyVersionRanges.push({ - depType: type, - versionRange: // intentionally keep other workspace ranges untouched - // this has to be fixed but this should only be done when adding appropriate tests - versionRange === "workspace:*" ? // workspace:* actually means the current exact version, and not a wildcard similar to a reguler * range - dependencyRelease.oldVersion : versionRange.replace(/^workspace:/, "") - }); - } else { - dependencyVersionRanges.push({ - depType: type, - versionRange - }); - } - } - - return dependencyVersionRanges; -} - -function shouldBumpMajor({ - dependent, - depType, - versionRange, - releases, - nextRelease, - preInfo, - onlyUpdatePeerDependentsWhenOutOfRange -}) { - // we check if it is a peerDependency because if it is, our dependent bump type might need to be major. - return depType === "peerDependencies" && nextRelease.type !== "none" && nextRelease.type !== "patch" && ( // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. - // 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range. - !onlyUpdatePeerDependentsWhenOutOfRange || !semverSatisfies(incrementVersion(nextRelease, preInfo), versionRange)) && ( // bump major only if the dependent doesn't already has a major release. - !releases.has(dependent) || releases.has(dependent) && releases.get(dependent).type !== "major"); -} - -// This function takes in changesets and returns one release per -// package listed in the changesets -function flattenReleases(changesets, packagesByName, ignoredPackages) { - let releases = new Map(); - changesets.forEach(changeset => { - changeset.releases // Filter out ignored packages because they should not trigger a release - // If their dependencies need updates, they will be added to releases by `determineDependents()` with release type `none` - .filter(({ - name - }) => !ignoredPackages.includes(name)).forEach(({ - name, - type - }) => { - let release = releases.get(name); - let pkg = packagesByName.get(name); - - if (!pkg) { - throw new Error(`"${changeset.id}" changeset mentions a release for a package "${name}" but such a package could not be found.`); - } - - if (!release) { - release = { - name, - type, - oldVersion: pkg.packageJson.version, - changesets: [changeset.id] - }; - } else { - if (type === "major" || (release.type === "patch" || release.type === "none") && (type === "minor" || type === "patch")) { - release.type = type; - } // Check whether the bumpType will change - // If the bumpType has changed recalc newVersion - // push new changeset to releases - - - release.changesets.push(changeset.id); - } - - releases.set(name, release); - }); - }); - return releases; -} - -function getHighestReleaseType(releases) { - if (releases.length === 0) { - throw new Error(`Large internal Changesets error when calculating highest release type in the set of releases. Please contact the maintainers`); - } - - let highestReleaseType = "none"; - - for (let release of releases) { - switch (release.type) { - case "major": - return "major"; - - case "minor": - highestReleaseType = "minor"; - break; - - case "patch": - if (highestReleaseType === "none") { - highestReleaseType = "patch"; - } - - break; - } - } - - return highestReleaseType; -} -function getCurrentHighestVersion(packageGroup, packagesByName) { - let highestVersion; - - for (let pkgName of packageGroup) { - let pkg = packagesByName.get(pkgName); - - if (!pkg) { - console.error(`FATAL ERROR IN CHANGESETS! We were unable to version for package group: ${pkgName} in package group: ${packageGroup.toString()}`); - throw new Error(`fatal: could not resolve linked packages`); - } - - if (highestVersion === undefined || semverGt(pkg.packageJson.version, highestVersion)) { - highestVersion = pkg.packageJson.version; - } - } - - return highestVersion; -} - -function matchFixedConstraint(releases, packagesByName, config) { - let updated = false; - - for (let fixedPackages of config.fixed) { - let releasingFixedPackages = [...releases.values()].filter(release => fixedPackages.includes(release.name) && release.type !== "none"); - if (releasingFixedPackages.length === 0) continue; - let highestReleaseType = getHighestReleaseType(releasingFixedPackages); - let highestVersion = getCurrentHighestVersion(fixedPackages, packagesByName); // Finally, we update the packages so all of them are on the highest version - - for (let pkgName of fixedPackages) { - if (config.ignore.includes(pkgName)) { - continue; - } - - let release = releases.get(pkgName); - - if (!release) { - updated = true; - releases.set(pkgName, { - name: pkgName, - type: highestReleaseType, - oldVersion: highestVersion, - changesets: [] - }); - continue; - } - - if (release.type !== highestReleaseType) { - updated = true; - release.type = highestReleaseType; - } - - if (release.oldVersion !== highestVersion) { - updated = true; - release.oldVersion = highestVersion; - } - } - } - - return updated; -} - -/* - WARNING: - Important note for understanding how this package works: - - We are doing some kind of wacky things with manipulating the objects within the - releases array, despite the fact that this was passed to us as an argument. We are - aware that this is generally bad practice, but have decided to to this here as - we control the entire flow of releases. - - We could solve this by inlining this function, or by returning a deep-cloned then - modified array, but we decided both of those are worse than this solution. -*/ - -function applyLinks(releases, packagesByName, linked) { - let updated = false; // We do this for each set of linked packages - - for (let linkedPackages of linked) { - // First we filter down to all the relevant releases for one set of linked packages - let releasingLinkedPackages = [...releases.values()].filter(release => linkedPackages.includes(release.name) && release.type !== "none"); // If we proceed any further we do extra work with calculating highestVersion for things that might - // not need one, as they only have workspace based packages - - if (releasingLinkedPackages.length === 0) continue; - let highestReleaseType = getHighestReleaseType(releasingLinkedPackages); - let highestVersion = getCurrentHighestVersion(linkedPackages, packagesByName); // Finally, we update the packages so all of them are on the highest version - - for (let linkedPackage of releasingLinkedPackages) { - if (linkedPackage.type !== highestReleaseType) { - updated = true; - linkedPackage.type = highestReleaseType; - } - - if (linkedPackage.oldVersion !== highestVersion) { - updated = true; - linkedPackage.oldVersion = highestVersion; - } - } - } - - return updated; -} - -function getPreVersion(version) { - let parsed = semverParse(version); - let preVersion = parsed.prerelease[1] === undefined ? -1 : parsed.prerelease[1]; - - if (typeof preVersion !== "number") { - throw new InternalError("preVersion is not a number"); - } - - preVersion++; - return preVersion; -} - -function getSnapshotSuffix(template, snapshotParameters) { - let snapshotRefDate = new Date(); - const placeholderValues = { - commit: snapshotParameters.commit, - tag: snapshotParameters.tag, - timestamp: snapshotRefDate.getTime().toString(), - datetime: snapshotRefDate.toISOString().replace(/\.\d{3}Z$/, "").replace(/[^\d]/g, "") - }; // We need a special handling because we need to handle a case where `--snapshot` is used without any template, - // and the resulting version needs to be composed without a tag. - - if (!template) { - return [placeholderValues.tag, placeholderValues.datetime].filter(Boolean).join("-"); - } - - const placeholders = Object.keys(placeholderValues); - - if (!template.includes(`{tag}`) && placeholderValues.tag !== undefined) { - throw new Error(`Failed to compose snapshot version: "{tag}" placeholder is missing, but the snapshot parameter is defined (value: '${placeholderValues.tag}')`); - } - - return placeholders.reduce((prev, key) => { - return prev.replace(new RegExp(`\\{${key}\\}`, "g"), () => { - const value = placeholderValues[key]; - - if (value === undefined) { - throw new Error(`Failed to compose snapshot version: "{${key}}" placeholder is used without having a value defined!`); - } - - return value; - }); - }, template); -} - -function getSnapshotVersion(release, preInfo, useCalculatedVersion, snapshotSuffix) { - if (release.type === "none") { - return release.oldVersion; - } - /** - * Using version as 0.0.0 so that it does not hinder with other version release - * For example; - * if user has a regular pre-release at 1.0.0-beta.0 and then you had a snapshot pre-release at 1.0.0-canary-git-hash - * and a consumer is using the range ^1.0.0-beta, most people would expect that range to resolve to 1.0.0-beta.0 - * but it'll actually resolve to 1.0.0-canary-hash. Using 0.0.0 solves this problem because it won't conflict with other versions. - * - * You can set `snapshot.useCalculatedVersion` flag to true to use calculated versions if you don't care about the above problem. - */ - - - const baseVersion = useCalculatedVersion ? incrementVersion(release, preInfo) : `0.0.0`; - return `${baseVersion}-${snapshotSuffix}`; -} - -function getNewVersion(release, preInfo) { - if (release.type === "none") { - return release.oldVersion; - } - - return incrementVersion(release, preInfo); -} - -function assembleReleasePlan(changesets, packages, config, // intentionally not using an optional parameter here so the result of `readPreState` has to be passed in here -preState, // snapshot: undefined -> not using snaphot -// snapshot: { tag: undefined } -> --snapshot (empty tag) -// snapshot: { tag: "canary" } -> --snapshot canary -snapshot) { - // TODO: remove `refined*` in the next major version of this package - // just use `config` and `snapshot` parameters directly, typed as: `config: Config, snapshot?: SnapshotReleaseParameters` - const refinedConfig = config.snapshot ? config : _objectSpread(_objectSpread({}, config), {}, { - snapshot: { - prereleaseTemplate: null, - useCalculatedVersion: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.useCalculatedVersionForSnapshots - } - }); - const refinedSnapshot = typeof snapshot === "string" ? { - tag: snapshot - } : typeof snapshot === "boolean" ? { - tag: undefined - } : snapshot; - let packagesByName = new Map(packages.packages.map(x => [x.packageJson.name, x])); - const relevantChangesets = getRelevantChangesets(changesets, refinedConfig.ignore, preState); - const preInfo = getPreInfo(changesets, packagesByName, refinedConfig, preState); // releases is, at this point a list of all packages we are going to releases, - // flattened down to one release per package, having a reference back to their - // changesets, and with a calculated new versions - - let releases = flattenReleases(relevantChangesets, packagesByName, refinedConfig.ignore); - let dependencyGraph = getDependentsGraph(packages, { - bumpVersionsWithWorkspaceProtocolOnly: refinedConfig.bumpVersionsWithWorkspaceProtocolOnly - }); - let releasesValidated = false; - - while (releasesValidated === false) { - // The map passed in to determineDependents will be mutated - let dependentAdded = determineDependents({ - releases, - packagesByName, - dependencyGraph, - preInfo, - config: refinedConfig - }); // `releases` might get mutated here - - let fixedConstraintUpdated = matchFixedConstraint(releases, packagesByName, refinedConfig); - let linksUpdated = applyLinks(releases, packagesByName, refinedConfig.linked); - releasesValidated = !linksUpdated && !dependentAdded && !fixedConstraintUpdated; - } - - if ((preInfo === null || preInfo === void 0 ? void 0 : preInfo.state.mode) === "exit") { - for (let pkg of packages.packages) { - // If a package had a prerelease, but didn't trigger a version bump in the regular release, - // we want to give it a patch release. - // Detailed explanation at https://github.com/changesets/changesets/pull/382#discussion_r434434182 - if (preInfo.preVersions.get(pkg.packageJson.name) !== 0) { - const existingRelease = releases.get(pkg.packageJson.name); - - if (!existingRelease) { - releases.set(pkg.packageJson.name, { - name: pkg.packageJson.name, - type: "patch", - oldVersion: pkg.packageJson.version, - changesets: [] - }); - } else if (existingRelease.type === "none" && !refinedConfig.ignore.includes(pkg.packageJson.name)) { - existingRelease.type = "patch"; - } - } - } - } // Caching the snapshot version here and use this if it is snapshot release - - - const snapshotSuffix = refinedSnapshot && getSnapshotSuffix(refinedConfig.snapshot.prereleaseTemplate, refinedSnapshot); - return { - changesets: relevantChangesets, - releases: [...releases.values()].map(incompleteRelease => { - return _objectSpread(_objectSpread({}, incompleteRelease), {}, { - newVersion: snapshotSuffix ? getSnapshotVersion(incompleteRelease, preInfo, refinedConfig.snapshot.useCalculatedVersion, snapshotSuffix) : getNewVersion(incompleteRelease, preInfo) - }); - }), - preState: preInfo === null || preInfo === void 0 ? void 0 : preInfo.state - }; -} - -function getRelevantChangesets(changesets, ignored, preState) { - for (const changeset of changesets) { - // Using the following 2 arrays to decide whether a changeset - // contains both ignored and not ignored packages - const ignoredPackages = []; - const notIgnoredPackages = []; - - for (const release of changeset.releases) { - if (ignored.find(ignoredPackageName => ignoredPackageName === release.name)) { - ignoredPackages.push(release.name); - } else { - notIgnoredPackages.push(release.name); - } - } - - if (ignoredPackages.length > 0 && notIgnoredPackages.length > 0) { - throw new Error(`Found mixed changeset ${changeset.id}\n` + `Found ignored packages: ${ignoredPackages.join(" ")}\n` + `Found not ignored packages: ${notIgnoredPackages.join(" ")}\n` + "Mixed changesets that contain both ignored and not ignored packages are not allowed"); - } - } - - if (preState && preState.mode !== "exit") { - let usedChangesetIds = new Set(preState.changesets); - return changesets.filter(changeset => !usedChangesetIds.has(changeset.id)); - } - - return changesets; -} - -function getHighestPreVersion(packageGroup, packagesByName) { - let highestPreVersion = 0; - - for (let pkg of packageGroup) { - highestPreVersion = Math.max(getPreVersion(packagesByName.get(pkg).packageJson.version), highestPreVersion); - } - - return highestPreVersion; -} - -function getPreInfo(changesets, packagesByName, config, preState) { - if (preState === undefined) { - return; - } - - let updatedPreState = _objectSpread(_objectSpread({}, preState), {}, { - changesets: changesets.map(changeset => changeset.id), - initialVersions: _objectSpread({}, preState.initialVersions) - }); - - for (const [, pkg] of packagesByName) { - if (updatedPreState.initialVersions[pkg.packageJson.name] === undefined) { - updatedPreState.initialVersions[pkg.packageJson.name] = pkg.packageJson.version; - } - } // Populate preVersion - // preVersion is the map between package name and its next pre version number. - - - let preVersions = new Map(); - - for (const [, pkg] of packagesByName) { - preVersions.set(pkg.packageJson.name, getPreVersion(pkg.packageJson.version)); - } - - for (let fixedGroup of config.fixed) { - let highestPreVersion = getHighestPreVersion(fixedGroup, packagesByName); - - for (let fixedPackage of fixedGroup) { - preVersions.set(fixedPackage, highestPreVersion); - } - } - - for (let linkedGroup of config.linked) { - let highestPreVersion = getHighestPreVersion(linkedGroup, packagesByName); - - for (let linkedPackage of linkedGroup) { - preVersions.set(linkedPackage, highestPreVersion); - } - } - - return { - state: updatedPreState, - preVersions - }; -} - -export { assembleReleasePlan as default }; diff --git a/node_modules/@changesets/assemble-release-plan/dist/declarations/src/index.d.ts b/node_modules/@changesets/assemble-release-plan/dist/declarations/src/index.d.ts deleted file mode 100644 index 044913fe..00000000 --- a/node_modules/@changesets/assemble-release-plan/dist/declarations/src/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ReleasePlan, Config, NewChangeset, PreState } from "@changesets/types"; -import { Packages } from "@manypkg/get-packages"; -type SnapshotReleaseParameters = { - tag?: string | undefined; - commit?: string | undefined; -}; -type OptionalProp = Omit & Partial>; -declare function assembleReleasePlan(changesets: NewChangeset[], packages: Packages, config: OptionalProp, preState: PreState | undefined, snapshot?: SnapshotReleaseParameters | string | boolean): ReleasePlan; -export default assembleReleasePlan; diff --git a/node_modules/@changesets/assemble-release-plan/node_modules/.bin/semver b/node_modules/@changesets/assemble-release-plan/node_modules/.bin/semver deleted file mode 120000 index 501bb2f5..00000000 --- a/node_modules/@changesets/assemble-release-plan/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../../../../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/@changesets/assemble-release-plan/package.json b/node_modules/@changesets/assemble-release-plan/package.json deleted file mode 100644 index cfed6f74..00000000 --- a/node_modules/@changesets/assemble-release-plan/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@changesets/assemble-release-plan", - "version": "6.0.0", - "description": "Reads changesets and adds information on dependents that need bumping", - "main": "dist/changesets-assemble-release-plan.cjs.js", - "module": "dist/changesets-assemble-release-plan.esm.js", - "exports": { - ".": { - "types": { - "import": "./dist/changesets-assemble-release-plan.cjs.mjs", - "default": "./dist/changesets-assemble-release-plan.cjs.js" - }, - "module": "./dist/changesets-assemble-release-plan.esm.js", - "import": "./dist/changesets-assemble-release-plan.cjs.mjs", - "default": "./dist/changesets-assemble-release-plan.cjs.js" - }, - "./package.json": "./package.json" - }, - "license": "MIT", - "repository": "https://github.com/changesets/changesets/tree/main/packages/assemble-release-plan", - "dependencies": { - "@babel/runtime": "^7.20.1", - "@changesets/errors": "^0.2.0", - "@changesets/get-dependents-graph": "^2.0.0", - "@changesets/types": "^6.0.0", - "@manypkg/get-packages": "^1.1.3", - "semver": "^7.5.3" - }, - "devDependencies": { - "@changesets/config": "*" - } -} diff --git a/node_modules/@changesets/assemble-release-plan/src/README.md b/node_modules/@changesets/assemble-release-plan/src/README.md deleted file mode 100644 index e4308f93..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Get Release Info - -This package does the end-to-end work of reading in the current set of changesets, and generating a release plan -based on them. diff --git a/node_modules/@changesets/assemble-release-plan/src/apply-links.ts b/node_modules/@changesets/assemble-release-plan/src/apply-links.ts deleted file mode 100644 index e954f65e..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/apply-links.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { Linked } from "@changesets/types"; -import { Package } from "@manypkg/get-packages"; -import { InternalRelease } from "./types"; -import { getCurrentHighestVersion, getHighestReleaseType } from "./utils"; - -/* - WARNING: - Important note for understanding how this package works: - - We are doing some kind of wacky things with manipulating the objects within the - releases array, despite the fact that this was passed to us as an argument. We are - aware that this is generally bad practice, but have decided to to this here as - we control the entire flow of releases. - - We could solve this by inlining this function, or by returning a deep-cloned then - modified array, but we decided both of those are worse than this solution. -*/ -export default function applyLinks( - releases: Map, - packagesByName: Map, - linked: Linked -): boolean { - let updated = false; - - // We do this for each set of linked packages - for (let linkedPackages of linked) { - // First we filter down to all the relevant releases for one set of linked packages - let releasingLinkedPackages = [...releases.values()].filter( - (release) => - linkedPackages.includes(release.name) && release.type !== "none" - ); - - // If we proceed any further we do extra work with calculating highestVersion for things that might - // not need one, as they only have workspace based packages - if (releasingLinkedPackages.length === 0) continue; - - let highestReleaseType = getHighestReleaseType(releasingLinkedPackages); - let highestVersion = getCurrentHighestVersion( - linkedPackages, - packagesByName - ); - - // Finally, we update the packages so all of them are on the highest version - for (let linkedPackage of releasingLinkedPackages) { - if (linkedPackage.type !== highestReleaseType) { - updated = true; - linkedPackage.type = highestReleaseType; - } - if (linkedPackage.oldVersion !== highestVersion) { - updated = true; - linkedPackage.oldVersion = highestVersion; - } - } - } - - return updated; -} diff --git a/node_modules/@changesets/assemble-release-plan/src/determine-dependents.ts b/node_modules/@changesets/assemble-release-plan/src/determine-dependents.ts deleted file mode 100644 index 08c08127..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/determine-dependents.ts +++ /dev/null @@ -1,239 +0,0 @@ -import semverSatisfies from "semver/functions/satisfies"; -import { - DependencyType, - PackageJSON, - VersionType, - Config, -} from "@changesets/types"; -import { Package } from "@manypkg/get-packages"; -import { InternalRelease, PreInfo } from "./types"; -import { incrementVersion } from "./increment"; - -/* - WARNING: - Important note for understanding how this package works: - - We are doing some kind of wacky things with manipulating the objects within the - releases array, despite the fact that this was passed to us as an argument. We are - aware that this is generally bad practice, but have decided to to this here as - we control the entire flow of releases. - - We could solve this by inlining this function, or by returning a deep-cloned then - modified array, but we decided both of those are worse than this solution. -*/ -export default function determineDependents({ - releases, - packagesByName, - dependencyGraph, - preInfo, - config, -}: { - releases: Map; - packagesByName: Map; - dependencyGraph: Map; - preInfo: PreInfo | undefined; - config: Config; -}): boolean { - let updated = false; - // NOTE this is intended to be called recursively - let pkgsToSearch = [...releases.values()]; - - while (pkgsToSearch.length > 0) { - // nextRelease is our dependency, think of it as "avatar" - const nextRelease = pkgsToSearch.shift(); - if (!nextRelease) continue; - // pkgDependents will be a list of packages that depend on nextRelease ie. ['avatar-group', 'comment'] - const pkgDependents = dependencyGraph.get(nextRelease.name); - if (!pkgDependents) { - throw new Error( - `Error in determining dependents - could not find package in repository: ${nextRelease.name}` - ); - } - pkgDependents - .map((dependent) => { - let type: VersionType | undefined; - - const dependentPackage = packagesByName.get(dependent); - if (!dependentPackage) throw new Error("Dependency map is incorrect"); - - if (config.ignore.includes(dependent)) { - type = "none"; - } else { - const dependencyVersionRanges = getDependencyVersionRanges( - dependentPackage.packageJson, - nextRelease - ); - - for (const { depType, versionRange } of dependencyVersionRanges) { - if (nextRelease.type === "none") { - continue; - } else if ( - shouldBumpMajor({ - dependent, - depType, - versionRange, - releases, - nextRelease, - preInfo, - onlyUpdatePeerDependentsWhenOutOfRange: - config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH - .onlyUpdatePeerDependentsWhenOutOfRange, - }) - ) { - type = "major"; - } else if ( - (!releases.has(dependent) || - releases.get(dependent)!.type === "none") && - (config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH - .updateInternalDependents === "always" || - !semverSatisfies( - incrementVersion(nextRelease, preInfo), - versionRange - )) - ) { - switch (depType) { - case "dependencies": - case "optionalDependencies": - case "peerDependencies": - if (type !== "major" && type !== "minor") { - type = "patch"; - } - break; - case "devDependencies": { - // We don't need a version bump if the package is only in the devDependencies of the dependent package - if ( - type !== "major" && - type !== "minor" && - type !== "patch" - ) { - type = "none"; - } - } - } - } - } - } - if (releases.has(dependent) && releases.get(dependent)!.type === type) { - type = undefined; - } - return { - name: dependent, - type, - pkgJSON: dependentPackage.packageJson, - }; - }) - .filter( - ( - dependentItem - ): dependentItem is typeof dependentItem & { type: VersionType } => - !!dependentItem.type - ) - .forEach(({ name, type, pkgJSON }) => { - // At this point, we know if we are making a change - updated = true; - - const existing = releases.get(name); - // For things that are being given a major bump, we check if we have already - // added them here. If we have, we update the existing item instead of pushing it on to search. - // It is safe to not add it to pkgsToSearch because it should have already been searched at the - // largest possible bump type. - - if (existing && type === "major" && existing.type !== "major") { - existing.type = "major"; - - pkgsToSearch.push(existing); - } else { - let newDependent: InternalRelease = { - name, - type, - oldVersion: pkgJSON.version, - changesets: [], - }; - - pkgsToSearch.push(newDependent); - releases.set(name, newDependent); - } - }); - } - - return updated; -} - -/* - Returns an array of objects in the shape { depType: DependencyType, versionRange: string } - The array can contain more than one elements in case a dependency appears in multiple - dependency lists. For example, a package that is both a peerDepenency and a devDependency. -*/ -function getDependencyVersionRanges( - dependentPkgJSON: PackageJSON, - dependencyRelease: InternalRelease -): { - depType: DependencyType; - versionRange: string; -}[] { - const DEPENDENCY_TYPES = [ - "dependencies", - "devDependencies", - "peerDependencies", - "optionalDependencies", - ] as const; - const dependencyVersionRanges: { - depType: DependencyType; - versionRange: string; - }[] = []; - for (const type of DEPENDENCY_TYPES) { - const versionRange = dependentPkgJSON[type]?.[dependencyRelease.name]; - if (!versionRange) continue; - - if (versionRange.startsWith("workspace:")) { - dependencyVersionRanges.push({ - depType: type, - versionRange: - // intentionally keep other workspace ranges untouched - // this has to be fixed but this should only be done when adding appropriate tests - versionRange === "workspace:*" - ? // workspace:* actually means the current exact version, and not a wildcard similar to a reguler * range - dependencyRelease.oldVersion - : versionRange.replace(/^workspace:/, ""), - }); - } else { - dependencyVersionRanges.push({ - depType: type, - versionRange, - }); - } - } - return dependencyVersionRanges; -} - -function shouldBumpMajor({ - dependent, - depType, - versionRange, - releases, - nextRelease, - preInfo, - onlyUpdatePeerDependentsWhenOutOfRange, -}: { - dependent: string; - depType: DependencyType; - versionRange: string; - releases: Map; - nextRelease: InternalRelease; - preInfo: PreInfo | undefined; - onlyUpdatePeerDependentsWhenOutOfRange: boolean; -}) { - // we check if it is a peerDependency because if it is, our dependent bump type might need to be major. - return ( - depType === "peerDependencies" && - nextRelease.type !== "none" && - nextRelease.type !== "patch" && - // 1. If onlyUpdatePeerDependentsWhenOutOfRange set to true, bump major if the version is leaving the range. - // 2. If onlyUpdatePeerDependentsWhenOutOfRange set to false, bump major regardless whether or not the version is leaving the range. - (!onlyUpdatePeerDependentsWhenOutOfRange || - !semverSatisfies(incrementVersion(nextRelease, preInfo), versionRange)) && - // bump major only if the dependent doesn't already has a major release. - (!releases.has(dependent) || - (releases.has(dependent) && releases.get(dependent)!.type !== "major")) - ); -} diff --git a/node_modules/@changesets/assemble-release-plan/src/flatten-releases.ts b/node_modules/@changesets/assemble-release-plan/src/flatten-releases.ts deleted file mode 100644 index 0055c127..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/flatten-releases.ts +++ /dev/null @@ -1,54 +0,0 @@ -// This function takes in changesets and returns one release per -// package listed in the changesets - -import { NewChangeset } from "@changesets/types"; -import { Package } from "@manypkg/get-packages"; -import { InternalRelease } from "./types"; - -export default function flattenReleases( - changesets: NewChangeset[], - packagesByName: Map, - ignoredPackages: Readonly -): Map { - let releases: Map = new Map(); - - changesets.forEach((changeset) => { - changeset.releases - // Filter out ignored packages because they should not trigger a release - // If their dependencies need updates, they will be added to releases by `determineDependents()` with release type `none` - .filter(({ name }) => !ignoredPackages.includes(name)) - .forEach(({ name, type }) => { - let release = releases.get(name); - let pkg = packagesByName.get(name); - if (!pkg) { - throw new Error( - `"${changeset.id}" changeset mentions a release for a package "${name}" but such a package could not be found.` - ); - } - if (!release) { - release = { - name, - type, - oldVersion: pkg.packageJson.version, - changesets: [changeset.id], - }; - } else { - if ( - type === "major" || - ((release.type === "patch" || release.type === "none") && - (type === "minor" || type === "patch")) - ) { - release.type = type; - } - // Check whether the bumpType will change - // If the bumpType has changed recalc newVersion - // push new changeset to releases - release.changesets.push(changeset.id); - } - - releases.set(name, release); - }); - }); - - return releases; -} diff --git a/node_modules/@changesets/assemble-release-plan/src/increment.test.ts b/node_modules/@changesets/assemble-release-plan/src/increment.test.ts deleted file mode 100644 index 13087811..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/increment.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { incrementVersion } from "./increment"; -import { InternalRelease, PreInfo } from "./types"; - -describe("incrementVersion", () => { - describe("pre mode", () => { - it("should not bump version for releases with release type 'none'", () => { - const fakeRelease: InternalRelease = { - name: "pkg-a", - type: "none", - changesets: [], - oldVersion: "1.0.0", - }; - - const fakePreInfo: PreInfo = { - preVersions: new Map(), - state: { - mode: "pre", - tag: "next", - initialVersions: {}, - changesets: [], - }, - }; - - const nextVersion = incrementVersion(fakeRelease, fakePreInfo); - expect(nextVersion).toBe("1.0.0"); - }); - }); -}); diff --git a/node_modules/@changesets/assemble-release-plan/src/increment.ts b/node_modules/@changesets/assemble-release-plan/src/increment.ts deleted file mode 100644 index 3c1c735a..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/increment.ts +++ /dev/null @@ -1,26 +0,0 @@ -import semverInc from "semver/functions/inc"; -import { InternalRelease, PreInfo } from "./types"; -import { InternalError } from "@changesets/errors"; - -export function incrementVersion( - release: InternalRelease, - preInfo: PreInfo | undefined -) { - if (release.type === "none") { - return release.oldVersion; - } - - let version = semverInc(release.oldVersion, release.type)!; - if (preInfo !== undefined && preInfo.state.mode !== "exit") { - let preVersion = preInfo.preVersions.get(release.name); - if (preVersion === undefined) { - throw new InternalError( - `preVersion for ${release.name} does not exist when preState is defined` - ); - } - // why are we adding this ourselves rather than passing 'pre' + versionType to semver.inc? - // because semver.inc with prereleases is confusing and this seems easier - version += `-${preInfo.state.tag}.${preVersion}`; - } - return version; -} diff --git a/node_modules/@changesets/assemble-release-plan/src/index.test.ts b/node_modules/@changesets/assemble-release-plan/src/index.test.ts deleted file mode 100644 index 24d95837..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/index.test.ts +++ /dev/null @@ -1,1494 +0,0 @@ -import { defaultConfig } from "@changesets/config"; -import assembleReleasePlan from "./"; -import FakeFullState from "./test-utils"; - -describe("assemble-release-plan", () => { - let setup: FakeFullState; - - beforeEach(() => { - setup = new FakeFullState(); - - setup.addPackage("pkg-b", "1.0.0"); - setup.addPackage("pkg-c", "1.0.0"); - setup.addPackage("pkg-d", "1.0.0"); - }); - - it("should assemble release plan for basic setup", () => { - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(1); - expect(releases[0]).toEqual({ - name: "pkg-a", - type: "patch", - newVersion: "1.0.1", - oldVersion: "1.0.0", - changesets: ["strange-words-combine"], - }); - }); - - it("should assemble release plan for basic setup with snapshot", () => { - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined, - { - tag: undefined, - } - ); - - expect(releases.length).toBe(1); - expect(/0\.0\.0-\d{14}/.test(releases[0].newVersion)).toBeTruthy(); - }); - - it("should assemble release plan for basic setup with snapshot and tag", () => { - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined, - { - tag: "foo", - } - ); - - expect(releases.length).toBe(1); - expect(/0\.0\.0-foo-\d{14}/.test(releases[0].newVersion)).toBeTruthy(); - }); - - it("should assemble release plan with multiple packages", () => { - setup.addChangeset({ - id: "big-cats-delight", - releases: [ - { name: "pkg-b", type: "patch" }, - { name: "pkg-c", type: "patch" }, - { name: "pkg-d", type: "major" }, - ], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(4); - expect(releases[0].name).toBe("pkg-a"); - expect(releases[0].newVersion).toBe("1.0.1"); - expect(releases[1].name).toBe("pkg-b"); - expect(releases[1].newVersion).toBe("1.0.1"); - expect(releases[2].name).toBe("pkg-c"); - expect(releases[2].newVersion).toBe("1.0.1"); - expect(releases[3].name).toBe("pkg-d"); - expect(releases[3].newVersion).toBe("2.0.0"); - }); - it("should handle two changesets for a package", () => { - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].type).toEqual("major"); - expect(releases[0].newVersion).toEqual("2.0.0"); - }); - it("`none` changeset should not override other release types", () => { - setup.addChangeset({ - id: "big-cats-delight", - releases: [ - { name: "pkg-a", type: "none" }, - { name: "pkg-b", type: "none" }, - { name: "pkg-c", type: "none" }, - ], - }); - setup.addChangeset({ - id: "big-cats-wonder", - releases: [ - { name: "pkg-a", type: "patch" }, - { name: "pkg-b", type: "minor" }, - { name: "pkg-c", type: "major" }, - ], - }); - setup.addChangeset({ - id: "big-cats-yelp", - releases: [ - { name: "pkg-a", type: "none" }, - { name: "pkg-b", type: "none" }, - { name: "pkg-c", type: "none" }, - ], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(3); - - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].type).toEqual("patch"); - expect(releases[0].newVersion).toEqual("1.0.1"); - - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].type).toEqual("minor"); - expect(releases[1].newVersion).toEqual("1.1.0"); - - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].type).toEqual("major"); - expect(releases[2].newVersion).toEqual("2.0.0"); - }); - it("should assemble release plan with dependents", () => { - setup.updateDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[1].changesets).toEqual([]); - }); - it("should update multiple dependents of a single package", () => { - setup.updateDependency("pkg-b", "pkg-a", "1.0.0"); - setup.updateDependency("pkg-c", "pkg-a", "1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(3); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].newVersion).toEqual("1.0.1"); - }); - it("should update a second dependent based on updating a first dependent", () => { - setup.updateDependency("pkg-b", "pkg-a", "1.0.0"); - setup.updateDependency("pkg-c", "pkg-b", "1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(3); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].newVersion).toEqual("1.0.1"); - }); - it("should assemble release plan with without a wildcard dependent", () => { - setup.updateDependency("pkg-b", "pkg-a", "*"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - }); - - it("should assemble the release plan only with workspace protocol dependents when using bumpVersionsWithWorkspaceProtocolOnly", () => { - setup.updateDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.updateDependency("pkg-c", "pkg-a", "workspace:^1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - bumpVersionsWithWorkspaceProtocolOnly: true, - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-c"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[1].changesets).toEqual([]); - }); - it("should assemble the release plan with workspace:^ and workspace:~ dependents", () => { - setup.updateDependency("pkg-b", "pkg-a", "workspace:~"); - setup.updateDependency("pkg-c", "pkg-a", "workspace:^"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - bumpVersionsWithWorkspaceProtocolOnly: true, - }, - undefined - ); - - expect(releases.length).toEqual(3); - - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[1].changesets).toEqual([]); - - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].newVersion).toEqual("1.0.1"); - expect(releases[2].changesets).toEqual([]); - }); - it("should assemble release plan without dependent through dev dependency", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - it("should assemble release plan with dependent when the dependent has both a changed prod and dev dependency", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.updateDependency("pkg-b", "pkg-c", "^1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [ - { name: "pkg-a", type: "major" }, - { name: "pkg-c", type: "major" }, - ], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(3); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-c"); - expect(releases[1].newVersion).toEqual("2.0.0"); - expect(releases[2].name).toEqual("pkg-b"); - expect(releases[2].oldVersion).toEqual("1.0.0"); - expect(releases[2].newVersion).toEqual("1.0.1"); - }); - it("should assemble release plan without dependencies when the dependent has a changeset type of none", () => { - setup.updateDependency("pkg-c", "pkg-b", "^1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-b", type: "none" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].oldVersion).toEqual("1.0.0"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - it("should assemble release plan without dependent through the link protocol", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "link:../pkg-a"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - }); - it("should assemble release plan without dependent through the file protocol", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "file:../pkg-a"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - }); - it("should update a peerDep by a major bump", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "~1.0.0"); - setup.addChangeset({ - id: "nonsense-words-combine", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.1.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - it("should assemble release plan without ignored packages", () => { - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - setup.addChangeset({ - id: "small-dogs-sad", - releases: [{ name: "pkg-b", type: "minor" }], - }); - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ignore: ["pkg-b"], - }, - undefined - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - }); - it("should generate releases with 'none' release type for ignored packages through dependencies", () => { - setup.updateDependency("pkg-b", "pkg-a", "1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - setup.addChangeset({ - id: "small-dogs-sad", - releases: [{ name: "pkg-b", type: "minor" }], - }); - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ignore: ["pkg-b"], - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].type).toEqual("none"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - it("should generate releases with 'none' release type for ignored packages through peerDependencies", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - setup.addChangeset({ - id: "small-dogs-sad", - releases: [{ name: "pkg-b", type: "minor" }], - }); - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ignore: ["pkg-b"], - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].type).toEqual("none"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - it("should generate releases with 'none' release type for ignored packages through devDependencies", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-a", type: "major" }], - }); - setup.addChangeset({ - id: "small-dogs-sad", - releases: [{ name: "pkg-b", type: "minor" }], - }); - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ignore: ["pkg-b"], - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].type).toEqual("none"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - // Mixed changesets are the ones that contains both ignored packages and not ignored packages - it("should throw for mixed changesets", () => { - setup.addChangeset({ - id: "big-cats-delight", - releases: [ - { name: "pkg-a", type: "major" }, - { name: "pkg-b", type: "minor" }, - ], - }); - - expect(() => - assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ignore: ["pkg-b"], - }, - undefined - ) - ).toThrowErrorMatchingInlineSnapshot(` -"Found mixed changeset big-cats-delight -Found ignored packages: pkg-b -Found not ignored packages: pkg-a -Mixed changesets that contain both ignored and not ignored packages are not allowed" -`); - }); - - it("should not bump a dev dependent nor its dependent when a package gets bumped", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "1.0.0"); - setup.updateDependency("pkg-c", "pkg-b", "1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - - describe("fixed packages", () => { - it("should assemble release plan for fixed packages", () => { - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - fixed: [["pkg-a", "pkg-b"]], - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].newVersion).toEqual("1.1.0"); - expect(releases[1].newVersion).toEqual("1.1.0"); - }); - it("should assemble a release plan where new highest version is set by an unreleased package", () => { - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [ - { name: "pkg-b", type: "minor" }, - { name: "pkg-a", type: "patch" }, - ], - }); - - setup.updatePackage("pkg-c", "2.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - fixed: [["pkg-a", "pkg-b", "pkg-c"]], - }, - undefined - ); - - expect(releases.length).toEqual(3); - expect(releases[0].newVersion).toEqual("2.1.0"); - expect(releases[1].newVersion).toEqual("2.1.0"); - expect(releases[2].newVersion).toEqual("2.1.0"); - }); - - it("should assemble release plan where a fixed constraint causes a dependency to need changing which causes a second fixed group to update", () => { - // Expected events: - // - dependencies are checked, nothing leaves semver, nothing changes - // - fixed are checked, pkg-a is aligned with pkg-b - // - depencencies are checked, in pkg-c the dependency range for pkg-a is not satisfied, so a patch bump is given to it - // - fixed are checked, pkg-c is aligned with pkg-d - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [{ name: "pkg-b", type: "major" }], - }); - setup.addChangeset({ - id: "totally-average-verbiage", - releases: [{ name: "pkg-d", type: "minor" }], - }); - - setup.updateDependency("pkg-c", "pkg-a", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - fixed: [ - ["pkg-a", "pkg-b"], - ["pkg-c", "pkg-d"], - ], - }, - undefined - ); - - expect(releases.length).toEqual(4); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - expect(releases[2].name).toEqual("pkg-d"); - expect(releases[2].newVersion).toEqual("1.1.0"); - expect(releases[3].name).toEqual("pkg-c"); - expect(releases[3].newVersion).toEqual("1.1.0"); - }); - it("should assemble release plan where a fixed constraint causes a dependency to need changing which causes a second fixed group to update 2", () => { - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [{ name: "pkg-a", type: "major" }], - }); - setup.addChangeset({ - id: "totally-average-verbiage", - releases: [{ name: "pkg-d", type: "minor" }], - }); - - setup.updateDependency("pkg-c", "pkg-b", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - fixed: [ - ["pkg-a", "pkg-b"], - ["pkg-c", "pkg-d"], - ], - }, - undefined - ); - - expect(releases.length).toEqual(4); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-d"); - expect(releases[1].newVersion).toEqual("1.1.0"); - expect(releases[2].name).toEqual("pkg-b"); - expect(releases[2].newVersion).toEqual("2.0.0"); - expect(releases[3].name).toEqual("pkg-c"); - expect(releases[3].newVersion).toEqual("1.1.0"); - }); - it("should return an empty release array when no changes will occur", () => { - let { releases } = assembleReleasePlan( - [], - setup.packages, - { - ...defaultConfig, - fixed: [ - ["pkg-a", "pkg-b"], - ["pkg-c", "pkg-d"], - ], - }, - undefined - ); - - expect(releases).toEqual([]); - }); - - it("should bump peer dependents where the version is updated because of fixed", () => { - setup.updatePeerDependency("pkg-b", "pkg-c", "1.0.0"); - - setup.addChangeset({ - id: "some-id", - releases: [{ type: "minor", name: "pkg-a" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - fixed: [["pkg-a", "pkg-c"]], - }, - undefined - ); - - expect(releases).toMatchObject([ - { - name: "pkg-a", - newVersion: "1.1.0", - }, - { - name: "pkg-c", - newVersion: "1.1.0", - }, - { - name: "pkg-b", - newVersion: "2.0.0", - }, - ]); - }); - }); - - describe("linked packages", () => { - it("should assemble release plan for linked packages", () => { - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [{ name: "pkg-b", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - linked: [["pkg-a", "pkg-b"]], - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - it("should assemble a release plan where new highest version is set by an unreleased package", () => { - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [ - { name: "pkg-b", type: "minor" }, - { name: "pkg-a", type: "patch" }, - ], - }); - - setup.updatePackage("pkg-c", "2.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - linked: [["pkg-a", "pkg-b", "pkg-c"]], - }, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].newVersion).toEqual("2.1.0"); - expect(releases[1].newVersion).toEqual("2.1.0"); - }); - it("should assemble release plan where a link causes a dependency to need changing which causes a second link to update", () => { - /* - Expected events: - - dependencies are checked, nothing leaves semver, nothing changes - - linked are checked, pkg-a is aligned with pkg-b - - dependencies are checked, pkg-c is now outside its dependency on pkg-a, and is given a patch - - linked is checked, pkg-c is aligned with pkg-d - */ - setup.addChangeset({ - id: "just-some-umbrellas", - releases: [{ name: "pkg-b", type: "major" }], - }); - setup.addChangeset({ - id: "totally-average-verbiage", - releases: [{ name: "pkg-d", type: "minor" }], - }); - - setup.updateDependency("pkg-c", "pkg-a", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - linked: [ - ["pkg-a", "pkg-b"], - ["pkg-c", "pkg-d"], - ], - }, - undefined - ); - - expect(releases.length).toEqual(4); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].newVersion).toEqual("2.0.0"); - expect(releases[2].newVersion).toEqual("1.1.0"); - expect(releases[3].newVersion).toEqual("1.1.0"); - }); - it("should return an empty release array when no changes will occur", () => { - let { releases } = assembleReleasePlan( - [], - setup.packages, - { - ...defaultConfig, - linked: [ - ["pkg-a", "pkg-b"], - ["pkg-c", "pkg-d"], - ], - }, - undefined - ); - - expect(releases).toEqual([]); - }); - it("should bump peer dependents where the version is updated because of linked", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "1.0.0"); - - setup.addChangeset({ - id: "some-id", - releases: [{ type: "minor", name: "pkg-c" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - linked: [["pkg-a", "pkg-c"]], - }, - undefined - ); - - expect(releases).toMatchObject([ - { - name: "pkg-a", - newVersion: "1.1.0", - }, - { - name: "pkg-c", - newVersion: "1.1.0", - }, - { - name: "pkg-b", - newVersion: "2.0.0", - }, - ]); - }); - }); - - describe("pre mode", () => { - it("should not generate a release for package that has no changesets and is not a dependent of any packages being released when exiting pre mode", () => { - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - }, - { - changesets: [], - tag: "next", - initialVersions: {}, - mode: "exit", - } - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - }); - - it("should bump dev dependents when exiting pre-release mode", () => { - setup.updatePackage("pkg-a", "1.0.1-next.0"); - setup.updatePackage("pkg-b", "1.0.1-next.0"); - setup.updateDevDependency("pkg-b", "pkg-a", "1.0.1-next.0"); - - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - }, - { - changesets: ["strange-words-combine"], - tag: "next", - initialVersions: { - "pkg-a": "1.0.0", - "pkg-b": "1.0.0", - }, - mode: "exit", - } - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - }); - - it("should not bump ignored dev dependents when exiting pre-release mode", () => { - setup.updatePackage("pkg-a", "1.0.1-next.0"); - setup.updatePackage("pkg-b", "1.0.1-next.0"); - setup.updateDevDependency("pkg-b", "pkg-a", "1.0.1-next.0"); - - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ignore: ["pkg-b"], - }, - { - changesets: ["strange-words-combine"], - tag: "next", - initialVersions: { - "pkg-a": "1.0.0", - "pkg-b": "1.0.0", - }, - mode: "exit", - } - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1-next.0"); - }); - - it("should return a release with the highest bump type within the current release despite of having a higher release among previous prereleases", () => { - // previous release - setup.addChangeset({ - id: "major-bumping-one", - releases: [ - { - name: "pkg-a", - type: "major", - }, - ], - }); - setup.updatePackage("pkg-a", "2.0.0-next.0"); - - // current release - setup.addChangeset({ - id: "minor-bumping-one", - releases: [ - { - name: "pkg-a", - type: "minor", - }, - ], - }); - const { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - }, - { - changesets: ["major-bumping-one"], - tag: "next", - initialVersions: { - "pkg-a": "1.0.0", - "pkg-b": "1.0.0", - "pkg-c": "1.0.0", - }, - mode: "pre", - } - ); - - expect(releases.length).toEqual(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0-next.1"); - expect(releases[0].type).toEqual("minor"); - }); - }); - - describe("workspace protocol", () => { - it("should assemble release plan without workspace dependencies when the dependent has a changeset type of none", () => { - setup.updateDependency("pkg-c", "pkg-b", "workspace:^1.0.0"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-b", type: "none" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].oldVersion).toEqual("1.0.0"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - it("should assemble release plan without workspace:* dependencies when the dependent has a changeset type of none", () => { - setup.updateDependency("pkg-c", "pkg-b", "workspace:*"); - setup.addChangeset({ - id: "big-cats-delight", - releases: [{ name: "pkg-b", type: "none" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].oldVersion).toEqual("1.0.0"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - it("should assemble release plan with workspace:* dependencies", () => { - setup.updateDependency("pkg-b", "pkg-a", "workspace:*"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].oldVersion).toEqual("1.0.0"); - expect(releases[1].newVersion).toEqual("1.0.1"); - }); - }); - - describe("updateInternalDependents: always", () => { - it("should bump a direct dependent when a dependency package gets bumped", () => { - setup.updateDependency("pkg-b", "pkg-a", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - ...defaultConfig.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH, - updateInternalDependents: "always", - }, - }, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - }); - - it("should bump a transitive dependent when a dependency package gets bumped", () => { - setup.updateDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.updateDependency("pkg-c", "pkg-b", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - ...defaultConfig.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH, - updateInternalDependents: "always", - }, - }, - undefined - ); - - expect(releases.length).toBe(3); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].newVersion).toEqual("1.0.1"); - }); - - it("not bump a dependent package when a dependency has `none` changeset", () => { - setup.updateDependency("pkg-b", "pkg-c", "^1.0.0"); - setup.addChangeset({ - id: "stuff-and-nonsense", - releases: [{ name: "pkg-c", type: "none" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - ...defaultConfig.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH, - updateInternalDependents: "always", - }, - }, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-c"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - - it("should not bump a dev dependent nor its dependent when a package gets bumped", () => { - setup.updateDevDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.updateDependency("pkg-c", "pkg-b", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - ...defaultConfig.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH, - updateInternalDependents: "always", - }, - }, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.0"); - }); - }); -}); - -describe("version update thoroughness", () => { - let setup: FakeFullState; - beforeEach(() => { - setup = new FakeFullState(); - - setup.addPackage("pkg-b", "1.0.0"); - setup.addPackage("pkg-c", "1.0.0"); - setup.addPackage("pkg-d", "1.0.0"); - setup.updateDependency("pkg-b", "pkg-a", "1.0.0"); - setup.updateDependency("pkg-c", "pkg-a", "~1.0.0"); - setup.updateDependency("pkg-d", "pkg-a", "^1.0.0"); - }); - - it("should patch a single pinned dependent", () => { - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - expect(releases.length).toEqual(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - }); - it("should path a pinned and tilde dependents when minor versioning", () => { - setup.addChangeset({ - id: "stuff-and-nonsense", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(3); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.1.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].newVersion).toEqual("1.0.1"); - }); - it("should patch pinned, tilde and caret dependents when a major versioning", () => { - setup.addChangeset({ - id: "stuff-and-nonsense", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toEqual(4); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - expect(releases[2].name).toEqual("pkg-c"); - expect(releases[2].newVersion).toEqual("1.0.1"); - expect(releases[3].name).toEqual("pkg-d"); - expect(releases[3].newVersion).toEqual("1.0.1"); - }); -}); - -describe("bumping peerDeps", () => { - let setup: FakeFullState; - beforeEach(() => { - setup = new FakeFullState(); - setup.addPackage("pkg-b", "1.0.0"); - }); - - it("should patch a pinned peerDep", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("1.0.1"); - }); - it("should not bump the dependent when bumping a tilde peerDep by none", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "~1.0.0"); - setup.changesets = []; - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "none" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.0"); - }); - it("should not bump the dependent when bumping a tilde peerDep by a patch", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "~1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - }); - it("should major bump dependent when bumping a tilde peerDep by minor", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "~1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.1.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - it("should major bump dependent when bumping a tilde peerDep by major", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "~1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - it("should not bump dependent when bumping caret peerDep by none", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.changesets = []; - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "none" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.0"); - }); - it("should not bump dependent when bumping caret peerDep by patch", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "^1.0.0"); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.0.1"); - }); - it("should major bump dependent when bumping caret peerDep by minor", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.1.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - it("should major bump dependent when bumping caret peerDep by major", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "major" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("2.0.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - it("should patch bump transitive dep that is only affected by peerDep bump", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.addPackage("pkg-c", "1.0.0"); - setup.updateDependency("pkg-c", "pkg-b", "^1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - defaultConfig, - undefined - ); - - expect(releases.length).toBe(3); - expect(releases[0]).toMatchObject({ - name: "pkg-a", - newVersion: "1.1.0", - }); - expect(releases[1]).toMatchObject({ - name: "pkg-b", - newVersion: "2.0.0", - }); - expect(releases[2]).toMatchObject({ - name: "pkg-c", - newVersion: "1.0.1", - }); - }); - - describe("onlyUpdatePeerDependentsWhenOutOfRange: true", () => { - it("should not bump dependent when still in range", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "^1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "minor" }], - }); - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - ...defaultConfig.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH, - onlyUpdatePeerDependentsWhenOutOfRange: true, - }, - }, - undefined - ); - expect(releases.length).toBe(1); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.1.0"); - }); - - it("should major bump dependent when leaving range", () => { - setup.updatePeerDependency("pkg-b", "pkg-a", "~1.0.0"); - setup.addChangeset({ - id: "anyway-the-windblows", - releases: [{ name: "pkg-a", type: "minor" }], - }); - - let { releases } = assembleReleasePlan( - setup.changesets, - setup.packages, - { - ...defaultConfig, - ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: { - ...defaultConfig.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH, - onlyUpdatePeerDependentsWhenOutOfRange: true, - }, - }, - undefined - ); - - expect(releases.length).toBe(2); - expect(releases[0].name).toEqual("pkg-a"); - expect(releases[0].newVersion).toEqual("1.1.0"); - expect(releases[1].name).toEqual("pkg-b"); - expect(releases[1].newVersion).toEqual("2.0.0"); - }); - }); -}); - -/* - Bumping peerDeps is a tricky issue, so we are testing every single combination here so that - we can have absolute certainty when changing anything to do with them. - In general the rule for bumping peerDeps is that: - * All MINOR or MAJOR peerDep bumps must MAJOR bump all dependents - regardless of ranges - * Otherwise - normal patching rules apply - */ diff --git a/node_modules/@changesets/assemble-release-plan/src/index.ts b/node_modules/@changesets/assemble-release-plan/src/index.ts deleted file mode 100644 index c2808fcd..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/index.ts +++ /dev/null @@ -1,370 +0,0 @@ -import { - ReleasePlan, - Config, - NewChangeset, - PreState, - PackageGroup, -} from "@changesets/types"; -import determineDependents from "./determine-dependents"; -import flattenReleases from "./flatten-releases"; -import matchFixedConstraint from "./match-fixed-constraint"; -import applyLinks from "./apply-links"; -import { incrementVersion } from "./increment"; -import semverParse from "semver/functions/parse"; -import { InternalError } from "@changesets/errors"; -import { Packages, Package } from "@manypkg/get-packages"; -import { getDependentsGraph } from "@changesets/get-dependents-graph"; -import { PreInfo, InternalRelease } from "./types"; - -type SnapshotReleaseParameters = { - tag?: string | undefined; - commit?: string | undefined; -}; - -function getPreVersion(version: string) { - let parsed = semverParse(version)!; - let preVersion = - parsed.prerelease[1] === undefined ? -1 : parsed.prerelease[1]; - if (typeof preVersion !== "number") { - throw new InternalError("preVersion is not a number"); - } - preVersion++; - return preVersion; -} - -function getSnapshotSuffix( - template: Config["snapshot"]["prereleaseTemplate"], - snapshotParameters: SnapshotReleaseParameters -): string { - let snapshotRefDate = new Date(); - - const placeholderValues = { - commit: snapshotParameters.commit, - tag: snapshotParameters.tag, - timestamp: snapshotRefDate.getTime().toString(), - datetime: snapshotRefDate - .toISOString() - .replace(/\.\d{3}Z$/, "") - .replace(/[^\d]/g, ""), - }; - - // We need a special handling because we need to handle a case where `--snapshot` is used without any template, - // and the resulting version needs to be composed without a tag. - if (!template) { - return [placeholderValues.tag, placeholderValues.datetime] - .filter(Boolean) - .join("-"); - } - - const placeholders = Object.keys(placeholderValues) as Array< - keyof typeof placeholderValues - >; - - if (!template.includes(`{tag}`) && placeholderValues.tag !== undefined) { - throw new Error( - `Failed to compose snapshot version: "{tag}" placeholder is missing, but the snapshot parameter is defined (value: '${placeholderValues.tag}')` - ); - } - - return placeholders.reduce((prev, key) => { - return prev.replace(new RegExp(`\\{${key}\\}`, "g"), () => { - const value = placeholderValues[key]; - if (value === undefined) { - throw new Error( - `Failed to compose snapshot version: "{${key}}" placeholder is used without having a value defined!` - ); - } - - return value; - }); - }, template); -} - -function getSnapshotVersion( - release: InternalRelease, - preInfo: PreInfo | undefined, - useCalculatedVersion: boolean, - snapshotSuffix: string -): string { - if (release.type === "none") { - return release.oldVersion; - } - - /** - * Using version as 0.0.0 so that it does not hinder with other version release - * For example; - * if user has a regular pre-release at 1.0.0-beta.0 and then you had a snapshot pre-release at 1.0.0-canary-git-hash - * and a consumer is using the range ^1.0.0-beta, most people would expect that range to resolve to 1.0.0-beta.0 - * but it'll actually resolve to 1.0.0-canary-hash. Using 0.0.0 solves this problem because it won't conflict with other versions. - * - * You can set `snapshot.useCalculatedVersion` flag to true to use calculated versions if you don't care about the above problem. - */ - const baseVersion = useCalculatedVersion - ? incrementVersion(release, preInfo) - : `0.0.0`; - - return `${baseVersion}-${snapshotSuffix}`; -} - -function getNewVersion( - release: InternalRelease, - preInfo: PreInfo | undefined -): string { - if (release.type === "none") { - return release.oldVersion; - } - - return incrementVersion(release, preInfo); -} - -type OptionalProp = Omit & Partial>; - -function assembleReleasePlan( - changesets: NewChangeset[], - packages: Packages, - config: OptionalProp, - // intentionally not using an optional parameter here so the result of `readPreState` has to be passed in here - preState: PreState | undefined, - // snapshot: undefined -> not using snaphot - // snapshot: { tag: undefined } -> --snapshot (empty tag) - // snapshot: { tag: "canary" } -> --snapshot canary - snapshot?: SnapshotReleaseParameters | string | boolean -): ReleasePlan { - // TODO: remove `refined*` in the next major version of this package - // just use `config` and `snapshot` parameters directly, typed as: `config: Config, snapshot?: SnapshotReleaseParameters` - const refinedConfig: Config = config.snapshot - ? (config as Config) - : { - ...config, - snapshot: { - prereleaseTemplate: null, - useCalculatedVersion: ( - config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH as any - ).useCalculatedVersionForSnapshots, - }, - }; - const refinedSnapshot: SnapshotReleaseParameters | undefined = - typeof snapshot === "string" - ? { tag: snapshot } - : typeof snapshot === "boolean" - ? { tag: undefined } - : snapshot; - - let packagesByName = new Map( - packages.packages.map((x) => [x.packageJson.name, x]) - ); - - const relevantChangesets = getRelevantChangesets( - changesets, - refinedConfig.ignore, - preState - ); - - const preInfo = getPreInfo( - changesets, - packagesByName, - refinedConfig, - preState - ); - - // releases is, at this point a list of all packages we are going to releases, - // flattened down to one release per package, having a reference back to their - // changesets, and with a calculated new versions - let releases = flattenReleases( - relevantChangesets, - packagesByName, - refinedConfig.ignore - ); - - let dependencyGraph = getDependentsGraph(packages, { - bumpVersionsWithWorkspaceProtocolOnly: - refinedConfig.bumpVersionsWithWorkspaceProtocolOnly, - }); - - let releasesValidated = false; - while (releasesValidated === false) { - // The map passed in to determineDependents will be mutated - let dependentAdded = determineDependents({ - releases, - packagesByName, - dependencyGraph, - preInfo, - config: refinedConfig, - }); - - // `releases` might get mutated here - let fixedConstraintUpdated = matchFixedConstraint( - releases, - packagesByName, - refinedConfig - ); - let linksUpdated = applyLinks( - releases, - packagesByName, - refinedConfig.linked - ); - - releasesValidated = - !linksUpdated && !dependentAdded && !fixedConstraintUpdated; - } - - if (preInfo?.state.mode === "exit") { - for (let pkg of packages.packages) { - // If a package had a prerelease, but didn't trigger a version bump in the regular release, - // we want to give it a patch release. - // Detailed explanation at https://github.com/changesets/changesets/pull/382#discussion_r434434182 - if (preInfo.preVersions.get(pkg.packageJson.name) !== 0) { - const existingRelease = releases.get(pkg.packageJson.name); - if (!existingRelease) { - releases.set(pkg.packageJson.name, { - name: pkg.packageJson.name, - type: "patch", - oldVersion: pkg.packageJson.version, - changesets: [], - }); - } else if ( - existingRelease.type === "none" && - !refinedConfig.ignore.includes(pkg.packageJson.name) - ) { - existingRelease.type = "patch"; - } - } - } - } - - // Caching the snapshot version here and use this if it is snapshot release - const snapshotSuffix = - refinedSnapshot && - getSnapshotSuffix( - refinedConfig.snapshot.prereleaseTemplate, - refinedSnapshot - ); - - return { - changesets: relevantChangesets, - releases: [...releases.values()].map((incompleteRelease) => { - return { - ...incompleteRelease, - newVersion: snapshotSuffix - ? getSnapshotVersion( - incompleteRelease, - preInfo, - refinedConfig.snapshot.useCalculatedVersion, - snapshotSuffix - ) - : getNewVersion(incompleteRelease, preInfo), - }; - }), - preState: preInfo?.state, - }; -} - -function getRelevantChangesets( - changesets: NewChangeset[], - ignored: Readonly, - preState: PreState | undefined -): NewChangeset[] { - for (const changeset of changesets) { - // Using the following 2 arrays to decide whether a changeset - // contains both ignored and not ignored packages - const ignoredPackages = []; - const notIgnoredPackages = []; - for (const release of changeset.releases) { - if ( - ignored.find( - (ignoredPackageName) => ignoredPackageName === release.name - ) - ) { - ignoredPackages.push(release.name); - } else { - notIgnoredPackages.push(release.name); - } - } - - if (ignoredPackages.length > 0 && notIgnoredPackages.length > 0) { - throw new Error( - `Found mixed changeset ${changeset.id}\n` + - `Found ignored packages: ${ignoredPackages.join(" ")}\n` + - `Found not ignored packages: ${notIgnoredPackages.join(" ")}\n` + - "Mixed changesets that contain both ignored and not ignored packages are not allowed" - ); - } - } - - if (preState && preState.mode !== "exit") { - let usedChangesetIds = new Set(preState.changesets); - return changesets.filter( - (changeset) => !usedChangesetIds.has(changeset.id) - ); - } - - return changesets; -} - -function getHighestPreVersion( - packageGroup: PackageGroup, - packagesByName: Map -): number { - let highestPreVersion = 0; - for (let pkg of packageGroup) { - highestPreVersion = Math.max( - getPreVersion(packagesByName.get(pkg)!.packageJson.version), - highestPreVersion - ); - } - return highestPreVersion; -} - -function getPreInfo( - changesets: NewChangeset[], - packagesByName: Map, - config: Config, - preState: PreState | undefined -): PreInfo | undefined { - if (preState === undefined) { - return; - } - - let updatedPreState = { - ...preState, - changesets: changesets.map((changeset) => changeset.id), - initialVersions: { - ...preState.initialVersions, - }, - }; - - for (const [, pkg] of packagesByName) { - if (updatedPreState.initialVersions[pkg.packageJson.name] === undefined) { - updatedPreState.initialVersions[pkg.packageJson.name] = - pkg.packageJson.version; - } - } - // Populate preVersion - // preVersion is the map between package name and its next pre version number. - let preVersions = new Map(); - for (const [, pkg] of packagesByName) { - preVersions.set( - pkg.packageJson.name, - getPreVersion(pkg.packageJson.version) - ); - } - for (let fixedGroup of config.fixed) { - let highestPreVersion = getHighestPreVersion(fixedGroup, packagesByName); - for (let fixedPackage of fixedGroup) { - preVersions.set(fixedPackage, highestPreVersion); - } - } - for (let linkedGroup of config.linked) { - let highestPreVersion = getHighestPreVersion(linkedGroup, packagesByName); - for (let linkedPackage of linkedGroup) { - preVersions.set(linkedPackage, highestPreVersion); - } - } - - return { - state: updatedPreState, - preVersions, - }; -} - -export default assembleReleasePlan; diff --git a/node_modules/@changesets/assemble-release-plan/src/match-fixed-constraint.ts b/node_modules/@changesets/assemble-release-plan/src/match-fixed-constraint.ts deleted file mode 100644 index 40ea445b..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/match-fixed-constraint.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { Config } from "@changesets/types"; -import { Package } from "@manypkg/get-packages"; -import { InternalRelease } from "./types"; -import { getCurrentHighestVersion, getHighestReleaseType } from "./utils"; - -export default function matchFixedConstraint( - releases: Map, - packagesByName: Map, - config: Config -): boolean { - let updated = false; - - for (let fixedPackages of config.fixed) { - let releasingFixedPackages = [...releases.values()].filter( - (release) => - fixedPackages.includes(release.name) && release.type !== "none" - ); - - if (releasingFixedPackages.length === 0) continue; - - let highestReleaseType = getHighestReleaseType(releasingFixedPackages); - let highestVersion = getCurrentHighestVersion( - fixedPackages, - packagesByName - ); - - // Finally, we update the packages so all of them are on the highest version - for (let pkgName of fixedPackages) { - if (config.ignore.includes(pkgName)) { - continue; - } - let release = releases.get(pkgName); - - if (!release) { - updated = true; - releases.set(pkgName, { - name: pkgName, - type: highestReleaseType, - oldVersion: highestVersion, - changesets: [], - }); - continue; - } - - if (release.type !== highestReleaseType) { - updated = true; - release.type = highestReleaseType; - } - if (release.oldVersion !== highestVersion) { - updated = true; - release.oldVersion = highestVersion; - } - } - } - - return updated; -} diff --git a/node_modules/@changesets/assemble-release-plan/src/test-utils.ts b/node_modules/@changesets/assemble-release-plan/src/test-utils.ts deleted file mode 100644 index 2bd16710..00000000 --- a/node_modules/@changesets/assemble-release-plan/src/test-utils.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { NewChangeset, Release, VersionType } from "@changesets/types"; -import { Package, Packages } from "@manypkg/get-packages"; - -function getPackage({ - name, - version, -}: { - name: string; - version: string; -}): Package { - return { - packageJson: { - name, - version, - }, - dir: "this-shouldn't-matter", - }; -} - -function getChangeset( - data: { - id?: string; - summary?: string; - releases?: Array; - } = {} -): NewChangeset { - let id = data.id || "strange-words-combine"; - let summary = data.summary || "base summary whatever"; - let releases = data.releases || []; - return { - id, - summary, - releases, - }; -} - -function getRelease({ - name, - type, -}: { - name: string; - type: VersionType; -}): Release { - return { name, type }; -} - -let getSimpleSetup = () => ({ - packages: { - root: { - packageJson: { - name: "root", - version: "0.0.0", - }, - dir: "/", - }, - packages: [getPackage({ name: "pkg-a", version: "1.0.0" })], - tool: "yarn" as const, - }, - changesets: [ - getChangeset({ releases: [getRelease({ name: "pkg-a", type: "patch" })] }), - ], -}); - -class FakeFullState { - packages: Packages; - changesets: NewChangeset[]; - - constructor(custom?: { packages?: Packages; changesets?: NewChangeset[] }) { - let { packages, changesets } = { ...getSimpleSetup(), ...custom }; - this.packages = packages; - this.changesets = changesets; - } - - addChangeset( - data: { - id?: string; - summary?: string; - releases?: Array; - } = {} - ) { - let changeset = getChangeset(data); - if (this.changesets.find((c) => c.id === changeset.id)) { - throw new Error( - `tried to add a second changeset with same id: ${changeset.id}` - ); - } - this.changesets.push(changeset); - } - - updateDependency(pkgA: string, pkgB: string, versionRange: string) { - let pkg = this.packages.packages.find((a) => a.packageJson.name === pkgA); - if (!pkg) throw new Error(`No "${pkgA}" package`); - if (!pkg.packageJson.dependencies) { - pkg.packageJson.dependencies = {}; - } - pkg.packageJson.dependencies[pkgB] = versionRange; - } - updateDevDependency(pkgA: string, pkgB: string, versionRange: string) { - let pkg = this.packages.packages.find((a) => a.packageJson.name === pkgA); - if (!pkg) throw new Error(`No "${pkgA}" package`); - if (!pkg.packageJson.devDependencies) { - pkg.packageJson.devDependencies = {}; - } - pkg.packageJson.devDependencies[pkgB] = versionRange; - } - updatePeerDependency(pkgA: string, pkgB: string, versionRange: string) { - let pkg = this.packages.packages.find((a) => a.packageJson.name === pkgA); - if (!pkg) throw new Error(`No "${pkgA}" package`); - if (!pkg.packageJson.peerDependencies) { - pkg.packageJson.peerDependencies = {}; - } - pkg.packageJson.peerDependencies[pkgB] = versionRange; - } - - addPackage(name: string, version: string) { - let pkg = getPackage({ name, version }); - if ( - this.packages.packages.find( - (c) => c.packageJson.name === pkg.packageJson.name - ) - ) { - throw new Error( - `tried to add a second package with same name': ${pkg.packageJson.name}` - ); - } - this.packages.packages.push(pkg); - } - updatePackage(name: string, version: string) { - let pkg = this.packages.packages.find((c) => c.packageJson.name === name); - if (!pkg) { - throw new Error( - `could not update package ${name} because it doesn't exist - try addWorskpace` - ); - } - pkg.packageJson.version = version; - } -} - -export default FakeFullState; diff --git a/node_modules/@changesets/cli/node_modules/.bin/semver b/node_modules/@changesets/cli/node_modules/.bin/semver deleted file mode 120000 index 501bb2f5..00000000 --- a/node_modules/@changesets/cli/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../../../../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/@changesets/cli/node_modules/.bin/tty-table b/node_modules/@changesets/cli/node_modules/.bin/tty-table deleted file mode 120000 index ab047a44..00000000 --- a/node_modules/@changesets/cli/node_modules/.bin/tty-table +++ /dev/null @@ -1 +0,0 @@ -../../../../tty-table/adapters/terminal-adapter.js \ No newline at end of file diff --git a/node_modules/@changesets/get-dependents-graph/node_modules/.bin/semver b/node_modules/@changesets/get-dependents-graph/node_modules/.bin/semver deleted file mode 120000 index 501bb2f5..00000000 --- a/node_modules/@changesets/get-dependents-graph/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../../../../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/@changesets/parse/node_modules/.bin/js-yaml b/node_modules/@changesets/parse/node_modules/.bin/js-yaml deleted file mode 120000 index a56dcf39..00000000 --- a/node_modules/@changesets/parse/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../../../../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/node_modules/@changesets/write/node_modules/.bin/prettier b/node_modules/@changesets/write/node_modules/.bin/prettier deleted file mode 120000 index 5b834da5..00000000 --- a/node_modules/@changesets/write/node_modules/.bin/prettier +++ /dev/null @@ -1 +0,0 @@ -../../../../prettier/bin-prettier.js \ No newline at end of file diff --git a/node_modules/@colyseus/core/node_modules/.bin/schema-codegen b/node_modules/@colyseus/core/node_modules/.bin/schema-codegen deleted file mode 120000 index 075e5fd9..00000000 --- a/node_modules/@colyseus/core/node_modules/.bin/schema-codegen +++ /dev/null @@ -1 +0,0 @@ -../../../schema/bin/schema-codegen \ No newline at end of file diff --git a/node_modules/@gamestdio/timer/node_modules/.bin/changeset b/node_modules/@gamestdio/timer/node_modules/.bin/changeset deleted file mode 120000 index d4f7b3eb..00000000 --- a/node_modules/@gamestdio/timer/node_modules/.bin/changeset +++ /dev/null @@ -1 +0,0 @@ -../../../../@changesets/cli/bin.js \ No newline at end of file diff --git a/node_modules/aws-sdk/node_modules/.bin/uuid b/node_modules/aws-sdk/node_modules/.bin/uuid deleted file mode 120000 index 232e7a1d..00000000 --- a/node_modules/aws-sdk/node_modules/.bin/uuid +++ /dev/null @@ -1 +0,0 @@ -../../../uuid/dist/bin/uuid \ No newline at end of file diff --git a/node_modules/chalk/index.js b/node_modules/chalk/index.js deleted file mode 100644 index 1cc5fa89..00000000 --- a/node_modules/chalk/index.js +++ /dev/null @@ -1,228 +0,0 @@ -'use strict'; -const escapeStringRegexp = require('escape-string-regexp'); -const ansiStyles = require('ansi-styles'); -const stdoutColor = require('supports-color').stdout; - -const template = require('./templates.js'); - -const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); - -// `supportsColor.level` → `ansiStyles.color[name]` mapping -const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; - -// `color-convert` models to exclude from the Chalk API due to conflicts and such -const skipModels = new Set(['gray']); - -const styles = Object.create(null); - -function applyOptions(obj, options) { - options = options || {}; - - // Detect level if not set manually - const scLevel = stdoutColor ? stdoutColor.level : 0; - obj.level = options.level === undefined ? scLevel : options.level; - obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; -} - -function Chalk(options) { - // We check for this.template here since calling `chalk.constructor()` - // by itself will have a `this` of a previously constructed chalk object - if (!this || !(this instanceof Chalk) || this.template) { - const chalk = {}; - applyOptions(chalk, options); - - chalk.template = function () { - const args = [].slice.call(arguments); - return chalkTag.apply(null, [chalk.template].concat(args)); - }; - - Object.setPrototypeOf(chalk, Chalk.prototype); - Object.setPrototypeOf(chalk.template, chalk); - - chalk.template.constructor = Chalk; - - return chalk.template; - } - - applyOptions(this, options); -} - -// Use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001B[94m'; -} - -for (const key of Object.keys(ansiStyles)) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - styles[key] = { - get() { - const codes = ansiStyles[key]; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key); - } - }; -} - -styles.visible = { - get() { - return build.call(this, this._styles || [], true, 'visible'); - } -}; - -ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); -for (const model of Object.keys(ansiStyles.color.ansi)) { - if (skipModels.has(model)) { - continue; - } - - styles[model] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.color.close, - closeRe: ansiStyles.color.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g'); -for (const model of Object.keys(ansiStyles.bgColor.ansi)) { - if (skipModels.has(model)) { - continue; - } - - const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); - styles[bgModel] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.bgColor.close, - closeRe: ansiStyles.bgColor.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -const proto = Object.defineProperties(() => {}, styles); - -function build(_styles, _empty, key) { - const builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder._empty = _empty; - - const self = this; - - Object.defineProperty(builder, 'level', { - enumerable: true, - get() { - return self.level; - }, - set(level) { - self.level = level; - } - }); - - Object.defineProperty(builder, 'enabled', { - enumerable: true, - get() { - return self.enabled; - }, - set(enabled) { - self.enabled = enabled; - } - }); - - // See below for fix regarding invisible grey/dim combination on Windows - builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; - - // `__proto__` is used because we must return a function, but there is - // no way to create a function with a different prototype - builder.__proto__ = proto; // eslint-disable-line no-proto - - return builder; -} - -function applyStyle() { - // Support varags, but simply cast to string in case there's only one arg - const args = arguments; - const argsLen = args.length; - let str = String(arguments[0]); - - if (argsLen === 0) { - return ''; - } - - if (argsLen > 1) { - // Don't slice `arguments`, it prevents V8 optimizations - for (let a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || this.level <= 0 || !str) { - return this._empty ? '' : str; - } - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - const originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && this.hasGrey) { - ansiStyles.dim.open = ''; - } - - for (const code of this._styles.slice().reverse()) { - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - - // Close the styling before a linebreak and reopen - // after next line to fix a bleed issue on macOS - // https://github.com/chalk/chalk/pull/92 - str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); - } - - // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue - ansiStyles.dim.open = originalDim; - - return str; -} - -function chalkTag(chalk, strings) { - if (!Array.isArray(strings)) { - // If chalk() was called by itself or with a string, - // return the string itself as a string. - return [].slice.call(arguments, 1).join(' '); - } - - const args = [].slice.call(arguments, 2); - const parts = [strings.raw[0]]; - - for (let i = 1; i < strings.length; i++) { - parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&')); - parts.push(String(strings.raw[i])); - } - - return template(chalk, parts.join('')); -} - -Object.defineProperties(Chalk.prototype, styles); - -module.exports = Chalk(); // eslint-disable-line new-cap -module.exports.supportsColor = stdoutColor; -module.exports.default = module.exports; // For TypeScript diff --git a/node_modules/chalk/index.js.flow b/node_modules/chalk/index.js.flow deleted file mode 100644 index 622caaa2..00000000 --- a/node_modules/chalk/index.js.flow +++ /dev/null @@ -1,93 +0,0 @@ -// @flow strict - -type TemplateStringsArray = $ReadOnlyArray; - -export type Level = $Values<{ - None: 0, - Basic: 1, - Ansi256: 2, - TrueColor: 3 -}>; - -export type ChalkOptions = {| - enabled?: boolean, - level?: Level -|}; - -export type ColorSupport = {| - level: Level, - hasBasic: boolean, - has256: boolean, - has16m: boolean -|}; - -export interface Chalk { - (...text: string[]): string, - (text: TemplateStringsArray, ...placeholders: string[]): string, - constructor(options?: ChalkOptions): Chalk, - enabled: boolean, - level: Level, - rgb(r: number, g: number, b: number): Chalk, - hsl(h: number, s: number, l: number): Chalk, - hsv(h: number, s: number, v: number): Chalk, - hwb(h: number, w: number, b: number): Chalk, - bgHex(color: string): Chalk, - bgKeyword(color: string): Chalk, - bgRgb(r: number, g: number, b: number): Chalk, - bgHsl(h: number, s: number, l: number): Chalk, - bgHsv(h: number, s: number, v: number): Chalk, - bgHwb(h: number, w: number, b: number): Chalk, - hex(color: string): Chalk, - keyword(color: string): Chalk, - - +reset: Chalk, - +bold: Chalk, - +dim: Chalk, - +italic: Chalk, - +underline: Chalk, - +inverse: Chalk, - +hidden: Chalk, - +strikethrough: Chalk, - - +visible: Chalk, - - +black: Chalk, - +red: Chalk, - +green: Chalk, - +yellow: Chalk, - +blue: Chalk, - +magenta: Chalk, - +cyan: Chalk, - +white: Chalk, - +gray: Chalk, - +grey: Chalk, - +blackBright: Chalk, - +redBright: Chalk, - +greenBright: Chalk, - +yellowBright: Chalk, - +blueBright: Chalk, - +magentaBright: Chalk, - +cyanBright: Chalk, - +whiteBright: Chalk, - - +bgBlack: Chalk, - +bgRed: Chalk, - +bgGreen: Chalk, - +bgYellow: Chalk, - +bgBlue: Chalk, - +bgMagenta: Chalk, - +bgCyan: Chalk, - +bgWhite: Chalk, - +bgBlackBright: Chalk, - +bgRedBright: Chalk, - +bgGreenBright: Chalk, - +bgYellowBright: Chalk, - +bgBlueBright: Chalk, - +bgMagentaBright: Chalk, - +bgCyanBright: Chalk, - +bgWhiteBrigh: Chalk, - - supportsColor: ColorSupport -}; - -declare module.exports: Chalk; diff --git a/node_modules/chalk/node_modules/ansi-styles/index.js b/node_modules/chalk/node_modules/ansi-styles/index.js deleted file mode 100644 index 90a871c4..00000000 --- a/node_modules/chalk/node_modules/ansi-styles/index.js +++ /dev/null @@ -1,165 +0,0 @@ -'use strict'; -const colorConvert = require('color-convert'); - -const wrapAnsi16 = (fn, offset) => function () { - const code = fn.apply(colorConvert, arguments); - return `\u001B[${code + offset}m`; -}; - -const wrapAnsi256 = (fn, offset) => function () { - const code = fn.apply(colorConvert, arguments); - return `\u001B[${38 + offset};5;${code}m`; -}; - -const wrapAnsi16m = (fn, offset) => function () { - const rgb = fn.apply(colorConvert, arguments); - return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; -}; - -function assembleStyles() { - const codes = new Map(); - const styles = { - modifier: { - reset: [0, 0], - // 21 isn't widely supported and 22 does the same thing - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - color: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39], - - // Bright color - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39] - }, - bgColor: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - - // Bright color - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] - } - }; - - // Fix humans - styles.color.grey = styles.color.gray; - - for (const groupName of Object.keys(styles)) { - const group = styles[groupName]; - - for (const styleName of Object.keys(group)) { - const style = group[styleName]; - - styles[styleName] = { - open: `\u001B[${style[0]}m`, - close: `\u001B[${style[1]}m` - }; - - group[styleName] = styles[styleName]; - - codes.set(style[0], style[1]); - } - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - - Object.defineProperty(styles, 'codes', { - value: codes, - enumerable: false - }); - } - - const ansi2ansi = n => n; - const rgb2rgb = (r, g, b) => [r, g, b]; - - styles.color.close = '\u001B[39m'; - styles.bgColor.close = '\u001B[49m'; - - styles.color.ansi = { - ansi: wrapAnsi16(ansi2ansi, 0) - }; - styles.color.ansi256 = { - ansi256: wrapAnsi256(ansi2ansi, 0) - }; - styles.color.ansi16m = { - rgb: wrapAnsi16m(rgb2rgb, 0) - }; - - styles.bgColor.ansi = { - ansi: wrapAnsi16(ansi2ansi, 10) - }; - styles.bgColor.ansi256 = { - ansi256: wrapAnsi256(ansi2ansi, 10) - }; - styles.bgColor.ansi16m = { - rgb: wrapAnsi16m(rgb2rgb, 10) - }; - - for (let key of Object.keys(colorConvert)) { - if (typeof colorConvert[key] !== 'object') { - continue; - } - - const suite = colorConvert[key]; - - if (key === 'ansi16') { - key = 'ansi'; - } - - if ('ansi16' in suite) { - styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0); - styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10); - } - - if ('ansi256' in suite) { - styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0); - styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10); - } - - if ('rgb' in suite) { - styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0); - styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10); - } - } - - return styles; -} - -// Make the export immutable -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); diff --git a/node_modules/chalk/node_modules/ansi-styles/license b/node_modules/chalk/node_modules/ansi-styles/license deleted file mode 100644 index e7af2f77..00000000 --- a/node_modules/chalk/node_modules/ansi-styles/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/chalk/node_modules/ansi-styles/package.json b/node_modules/chalk/node_modules/ansi-styles/package.json deleted file mode 100644 index 65edb48c..00000000 --- a/node_modules/chalk/node_modules/ansi-styles/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "ansi-styles", - "version": "3.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "color-convert": "^1.9.0" - }, - "devDependencies": { - "ava": "*", - "babel-polyfill": "^6.23.0", - "svg-term-cli": "^2.1.1", - "xo": "*" - }, - "ava": { - "require": "babel-polyfill" - } -} diff --git a/node_modules/chalk/node_modules/ansi-styles/readme.md b/node_modules/chalk/node_modules/ansi-styles/readme.md deleted file mode 100644 index 3158e2df..00000000 --- a/node_modules/chalk/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,147 +0,0 @@ -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) - -> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal - -You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. - - - - -## Install - -``` -$ npm install ansi-styles -``` - - -## Usage - -```js -const style = require('ansi-styles'); - -console.log(`${style.green.open}Hello world!${style.green.close}`); - - -// Color conversion between 16/256/truecolor -// NOTE: If conversion goes to 16 colors or 256 colors, the original color -// may be degraded to fit that color palette. This means terminals -// that do not support 16 million colors will best-match the -// original color. -console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); -console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); -console.log(style.color.ansi16m.hex('#ABCDEF') + 'Hello world!' + style.color.close); -``` - -## API - -Each style has an `open` and `close` property. - - -## Styles - -### Modifiers - -- `reset` -- `bold` -- `dim` -- `italic` *(Not widely supported)* -- `underline` -- `inverse` -- `hidden` -- `strikethrough` *(Not widely supported)* - -### Colors - -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `magenta` -- `cyan` -- `white` -- `gray` ("bright black") -- `redBright` -- `greenBright` -- `yellowBright` -- `blueBright` -- `magentaBright` -- `cyanBright` -- `whiteBright` - -### Background colors - -- `bgBlack` -- `bgRed` -- `bgGreen` -- `bgYellow` -- `bgBlue` -- `bgMagenta` -- `bgCyan` -- `bgWhite` -- `bgBlackBright` -- `bgRedBright` -- `bgGreenBright` -- `bgYellowBright` -- `bgBlueBright` -- `bgMagentaBright` -- `bgCyanBright` -- `bgWhiteBright` - - -## Advanced usage - -By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. - -- `style.modifier` -- `style.color` -- `style.bgColor` - -###### Example - -```js -console.log(style.color.green.open); -``` - -Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. - -###### Example - -```js -console.log(style.codes.get(36)); -//=> 39 -``` - - -## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) - -`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. - -To use these, call the associated conversion function with the intended output, for example: - -```js -style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code -style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code - -style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code -style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code - -style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code -style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code -``` - - -## Related - -- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - -## License - -MIT diff --git a/node_modules/chalk/node_modules/color-convert/CHANGELOG.md b/node_modules/chalk/node_modules/color-convert/CHANGELOG.md deleted file mode 100644 index 0a7bce4f..00000000 --- a/node_modules/chalk/node_modules/color-convert/CHANGELOG.md +++ /dev/null @@ -1,54 +0,0 @@ -# 1.0.0 - 2016-01-07 - -- Removed: unused speed test -- Added: Automatic routing between previously unsupported conversions -([#27](https://github.com/Qix-/color-convert/pull/27)) -- Removed: `xxx2xxx()` and `xxx2xxxRaw()` functions -([#27](https://github.com/Qix-/color-convert/pull/27)) -- Removed: `convert()` class -([#27](https://github.com/Qix-/color-convert/pull/27)) -- Changed: all functions to lookup dictionary -([#27](https://github.com/Qix-/color-convert/pull/27)) -- Changed: `ansi` to `ansi256` -([#27](https://github.com/Qix-/color-convert/pull/27)) -- Fixed: argument grouping for functions requiring only one argument -([#27](https://github.com/Qix-/color-convert/pull/27)) - -# 0.6.0 - 2015-07-23 - -- Added: methods to handle -[ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) 16/256 colors: - - rgb2ansi16 - - rgb2ansi - - hsl2ansi16 - - hsl2ansi - - hsv2ansi16 - - hsv2ansi - - hwb2ansi16 - - hwb2ansi - - cmyk2ansi16 - - cmyk2ansi - - keyword2ansi16 - - keyword2ansi - - ansi162rgb - - ansi162hsl - - ansi162hsv - - ansi162hwb - - ansi162cmyk - - ansi162keyword - - ansi2rgb - - ansi2hsl - - ansi2hsv - - ansi2hwb - - ansi2cmyk - - ansi2keyword -([#18](https://github.com/harthur/color-convert/pull/18)) - -# 0.5.3 - 2015-06-02 - -- Fixed: hsl2hsv does not return `NaN` anymore when using `[0,0,0]` -([#15](https://github.com/harthur/color-convert/issues/15)) - ---- - -Check out commit logs for older releases diff --git a/node_modules/chalk/node_modules/color-convert/LICENSE b/node_modules/chalk/node_modules/color-convert/LICENSE deleted file mode 100644 index 5b4c386f..00000000 --- a/node_modules/chalk/node_modules/color-convert/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2011-2016 Heather Arthur - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/node_modules/chalk/node_modules/color-convert/README.md b/node_modules/chalk/node_modules/color-convert/README.md deleted file mode 100644 index d4b08fc3..00000000 --- a/node_modules/chalk/node_modules/color-convert/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# color-convert - -[![Build Status](https://travis-ci.org/Qix-/color-convert.svg?branch=master)](https://travis-ci.org/Qix-/color-convert) - -Color-convert is a color conversion library for JavaScript and node. -It converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, `ansi`, `ansi16`, `hex` strings, and CSS `keyword`s (will round to closest): - -```js -var convert = require('color-convert'); - -convert.rgb.hsl(140, 200, 100); // [96, 48, 59] -convert.keyword.rgb('blue'); // [0, 0, 255] - -var rgbChannels = convert.rgb.channels; // 3 -var cmykChannels = convert.cmyk.channels; // 4 -var ansiChannels = convert.ansi16.channels; // 1 -``` - -# Install - -```console -$ npm install color-convert -``` - -# API - -Simply get the property of the _from_ and _to_ conversion that you're looking for. - -All functions have a rounded and unrounded variant. By default, return values are rounded. To get the unrounded (raw) results, simply tack on `.raw` to the function. - -All 'from' functions have a hidden property called `.channels` that indicates the number of channels the function expects (not including alpha). - -```js -var convert = require('color-convert'); - -// Hex to LAB -convert.hex.lab('DEADBF'); // [ 76, 21, -2 ] -convert.hex.lab.raw('DEADBF'); // [ 75.56213190997677, 20.653827952644754, -2.290532499330533 ] - -// RGB to CMYK -convert.rgb.cmyk(167, 255, 4); // [ 35, 0, 98, 0 ] -convert.rgb.cmyk.raw(167, 255, 4); // [ 34.509803921568626, 0, 98.43137254901961, 0 ] -``` - -### Arrays -All functions that accept multiple arguments also support passing an array. - -Note that this does **not** apply to functions that convert from a color that only requires one value (e.g. `keyword`, `ansi256`, `hex`, etc.) - -```js -var convert = require('color-convert'); - -convert.rgb.hex(123, 45, 67); // '7B2D43' -convert.rgb.hex([123, 45, 67]); // '7B2D43' -``` - -## Routing - -Conversions that don't have an _explicitly_ defined conversion (in [conversions.js](conversions.js)), but can be converted by means of sub-conversions (e.g. XYZ -> **RGB** -> CMYK), are automatically routed together. This allows just about any color model supported by `color-convert` to be converted to any other model, so long as a sub-conversion path exists. This is also true for conversions requiring more than one step in between (e.g. LCH -> **LAB** -> **XYZ** -> **RGB** -> Hex). - -Keep in mind that extensive conversions _may_ result in a loss of precision, and exist only to be complete. For a list of "direct" (single-step) conversions, see [conversions.js](conversions.js). - -# Contribute - -If there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request. - -# License -Copyright © 2011-2016, Heather Arthur and Josh Junon. Licensed under the [MIT License](LICENSE). diff --git a/node_modules/chalk/node_modules/color-convert/conversions.js b/node_modules/chalk/node_modules/color-convert/conversions.js deleted file mode 100644 index 32172007..00000000 --- a/node_modules/chalk/node_modules/color-convert/conversions.js +++ /dev/null @@ -1,868 +0,0 @@ -/* MIT license */ -var cssKeywords = require('color-name'); - -// NOTE: conversions should only return primitive values (i.e. arrays, or -// values that give correct `typeof` results). -// do not use box values types (i.e. Number(), String(), etc.) - -var reverseKeywords = {}; -for (var key in cssKeywords) { - if (cssKeywords.hasOwnProperty(key)) { - reverseKeywords[cssKeywords[key]] = key; - } -} - -var convert = module.exports = { - rgb: {channels: 3, labels: 'rgb'}, - hsl: {channels: 3, labels: 'hsl'}, - hsv: {channels: 3, labels: 'hsv'}, - hwb: {channels: 3, labels: 'hwb'}, - cmyk: {channels: 4, labels: 'cmyk'}, - xyz: {channels: 3, labels: 'xyz'}, - lab: {channels: 3, labels: 'lab'}, - lch: {channels: 3, labels: 'lch'}, - hex: {channels: 1, labels: ['hex']}, - keyword: {channels: 1, labels: ['keyword']}, - ansi16: {channels: 1, labels: ['ansi16']}, - ansi256: {channels: 1, labels: ['ansi256']}, - hcg: {channels: 3, labels: ['h', 'c', 'g']}, - apple: {channels: 3, labels: ['r16', 'g16', 'b16']}, - gray: {channels: 1, labels: ['gray']} -}; - -// hide .channels and .labels properties -for (var model in convert) { - if (convert.hasOwnProperty(model)) { - if (!('channels' in convert[model])) { - throw new Error('missing channels property: ' + model); - } - - if (!('labels' in convert[model])) { - throw new Error('missing channel labels property: ' + model); - } - - if (convert[model].labels.length !== convert[model].channels) { - throw new Error('channel and label counts mismatch: ' + model); - } - - var channels = convert[model].channels; - var labels = convert[model].labels; - delete convert[model].channels; - delete convert[model].labels; - Object.defineProperty(convert[model], 'channels', {value: channels}); - Object.defineProperty(convert[model], 'labels', {value: labels}); - } -} - -convert.rgb.hsl = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var min = Math.min(r, g, b); - var max = Math.max(r, g, b); - var delta = max - min; - var h; - var s; - var l; - - if (max === min) { - h = 0; - } else if (r === max) { - h = (g - b) / delta; - } else if (g === max) { - h = 2 + (b - r) / delta; - } else if (b === max) { - h = 4 + (r - g) / delta; - } - - h = Math.min(h * 60, 360); - - if (h < 0) { - h += 360; - } - - l = (min + max) / 2; - - if (max === min) { - s = 0; - } else if (l <= 0.5) { - s = delta / (max + min); - } else { - s = delta / (2 - max - min); - } - - return [h, s * 100, l * 100]; -}; - -convert.rgb.hsv = function (rgb) { - var rdif; - var gdif; - var bdif; - var h; - var s; - - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var v = Math.max(r, g, b); - var diff = v - Math.min(r, g, b); - var diffc = function (c) { - return (v - c) / 6 / diff + 1 / 2; - }; - - if (diff === 0) { - h = s = 0; - } else { - s = diff / v; - rdif = diffc(r); - gdif = diffc(g); - bdif = diffc(b); - - if (r === v) { - h = bdif - gdif; - } else if (g === v) { - h = (1 / 3) + rdif - bdif; - } else if (b === v) { - h = (2 / 3) + gdif - rdif; - } - if (h < 0) { - h += 1; - } else if (h > 1) { - h -= 1; - } - } - - return [ - h * 360, - s * 100, - v * 100 - ]; -}; - -convert.rgb.hwb = function (rgb) { - var r = rgb[0]; - var g = rgb[1]; - var b = rgb[2]; - var h = convert.rgb.hsl(rgb)[0]; - var w = 1 / 255 * Math.min(r, Math.min(g, b)); - - b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); - - return [h, w * 100, b * 100]; -}; - -convert.rgb.cmyk = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var c; - var m; - var y; - var k; - - k = Math.min(1 - r, 1 - g, 1 - b); - c = (1 - r - k) / (1 - k) || 0; - m = (1 - g - k) / (1 - k) || 0; - y = (1 - b - k) / (1 - k) || 0; - - return [c * 100, m * 100, y * 100, k * 100]; -}; - -/** - * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance - * */ -function comparativeDistance(x, y) { - return ( - Math.pow(x[0] - y[0], 2) + - Math.pow(x[1] - y[1], 2) + - Math.pow(x[2] - y[2], 2) - ); -} - -convert.rgb.keyword = function (rgb) { - var reversed = reverseKeywords[rgb]; - if (reversed) { - return reversed; - } - - var currentClosestDistance = Infinity; - var currentClosestKeyword; - - for (var keyword in cssKeywords) { - if (cssKeywords.hasOwnProperty(keyword)) { - var value = cssKeywords[keyword]; - - // Compute comparative distance - var distance = comparativeDistance(rgb, value); - - // Check if its less, if so set as closest - if (distance < currentClosestDistance) { - currentClosestDistance = distance; - currentClosestKeyword = keyword; - } - } - } - - return currentClosestKeyword; -}; - -convert.keyword.rgb = function (keyword) { - return cssKeywords[keyword]; -}; - -convert.rgb.xyz = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - - // assume sRGB - r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92); - g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92); - b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92); - - var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805); - var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722); - var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505); - - return [x * 100, y * 100, z * 100]; -}; - -convert.rgb.lab = function (rgb) { - var xyz = convert.rgb.xyz(rgb); - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - - x /= 95.047; - y /= 100; - z /= 108.883; - - x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); - y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); - z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); - - l = (116 * y) - 16; - a = 500 * (x - y); - b = 200 * (y - z); - - return [l, a, b]; -}; - -convert.hsl.rgb = function (hsl) { - var h = hsl[0] / 360; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var t1; - var t2; - var t3; - var rgb; - var val; - - if (s === 0) { - val = l * 255; - return [val, val, val]; - } - - if (l < 0.5) { - t2 = l * (1 + s); - } else { - t2 = l + s - l * s; - } - - t1 = 2 * l - t2; - - rgb = [0, 0, 0]; - for (var i = 0; i < 3; i++) { - t3 = h + 1 / 3 * -(i - 1); - if (t3 < 0) { - t3++; - } - if (t3 > 1) { - t3--; - } - - if (6 * t3 < 1) { - val = t1 + (t2 - t1) * 6 * t3; - } else if (2 * t3 < 1) { - val = t2; - } else if (3 * t3 < 2) { - val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; - } else { - val = t1; - } - - rgb[i] = val * 255; - } - - return rgb; -}; - -convert.hsl.hsv = function (hsl) { - var h = hsl[0]; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var smin = s; - var lmin = Math.max(l, 0.01); - var sv; - var v; - - l *= 2; - s *= (l <= 1) ? l : 2 - l; - smin *= lmin <= 1 ? lmin : 2 - lmin; - v = (l + s) / 2; - sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s); - - return [h, sv * 100, v * 100]; -}; - -convert.hsv.rgb = function (hsv) { - var h = hsv[0] / 60; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var hi = Math.floor(h) % 6; - - var f = h - Math.floor(h); - var p = 255 * v * (1 - s); - var q = 255 * v * (1 - (s * f)); - var t = 255 * v * (1 - (s * (1 - f))); - v *= 255; - - switch (hi) { - case 0: - return [v, t, p]; - case 1: - return [q, v, p]; - case 2: - return [p, v, t]; - case 3: - return [p, q, v]; - case 4: - return [t, p, v]; - case 5: - return [v, p, q]; - } -}; - -convert.hsv.hsl = function (hsv) { - var h = hsv[0]; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var vmin = Math.max(v, 0.01); - var lmin; - var sl; - var l; - - l = (2 - s) * v; - lmin = (2 - s) * vmin; - sl = s * vmin; - sl /= (lmin <= 1) ? lmin : 2 - lmin; - sl = sl || 0; - l /= 2; - - return [h, sl * 100, l * 100]; -}; - -// http://dev.w3.org/csswg/css-color/#hwb-to-rgb -convert.hwb.rgb = function (hwb) { - var h = hwb[0] / 360; - var wh = hwb[1] / 100; - var bl = hwb[2] / 100; - var ratio = wh + bl; - var i; - var v; - var f; - var n; - - // wh + bl cant be > 1 - if (ratio > 1) { - wh /= ratio; - bl /= ratio; - } - - i = Math.floor(6 * h); - v = 1 - bl; - f = 6 * h - i; - - if ((i & 0x01) !== 0) { - f = 1 - f; - } - - n = wh + f * (v - wh); // linear interpolation - - var r; - var g; - var b; - switch (i) { - default: - case 6: - case 0: r = v; g = n; b = wh; break; - case 1: r = n; g = v; b = wh; break; - case 2: r = wh; g = v; b = n; break; - case 3: r = wh; g = n; b = v; break; - case 4: r = n; g = wh; b = v; break; - case 5: r = v; g = wh; b = n; break; - } - - return [r * 255, g * 255, b * 255]; -}; - -convert.cmyk.rgb = function (cmyk) { - var c = cmyk[0] / 100; - var m = cmyk[1] / 100; - var y = cmyk[2] / 100; - var k = cmyk[3] / 100; - var r; - var g; - var b; - - r = 1 - Math.min(1, c * (1 - k) + k); - g = 1 - Math.min(1, m * (1 - k) + k); - b = 1 - Math.min(1, y * (1 - k) + k); - - return [r * 255, g * 255, b * 255]; -}; - -convert.xyz.rgb = function (xyz) { - var x = xyz[0] / 100; - var y = xyz[1] / 100; - var z = xyz[2] / 100; - var r; - var g; - var b; - - r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986); - g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415); - b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570); - - // assume sRGB - r = r > 0.0031308 - ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055) - : r * 12.92; - - g = g > 0.0031308 - ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055) - : g * 12.92; - - b = b > 0.0031308 - ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055) - : b * 12.92; - - r = Math.min(Math.max(0, r), 1); - g = Math.min(Math.max(0, g), 1); - b = Math.min(Math.max(0, b), 1); - - return [r * 255, g * 255, b * 255]; -}; - -convert.xyz.lab = function (xyz) { - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - - x /= 95.047; - y /= 100; - z /= 108.883; - - x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); - y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); - z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); - - l = (116 * y) - 16; - a = 500 * (x - y); - b = 200 * (y - z); - - return [l, a, b]; -}; - -convert.lab.xyz = function (lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var x; - var y; - var z; - - y = (l + 16) / 116; - x = a / 500 + y; - z = y - b / 200; - - var y2 = Math.pow(y, 3); - var x2 = Math.pow(x, 3); - var z2 = Math.pow(z, 3); - y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; - x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; - z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; - - x *= 95.047; - y *= 100; - z *= 108.883; - - return [x, y, z]; -}; - -convert.lab.lch = function (lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var hr; - var h; - var c; - - hr = Math.atan2(b, a); - h = hr * 360 / 2 / Math.PI; - - if (h < 0) { - h += 360; - } - - c = Math.sqrt(a * a + b * b); - - return [l, c, h]; -}; - -convert.lch.lab = function (lch) { - var l = lch[0]; - var c = lch[1]; - var h = lch[2]; - var a; - var b; - var hr; - - hr = h / 360 * 2 * Math.PI; - a = c * Math.cos(hr); - b = c * Math.sin(hr); - - return [l, a, b]; -}; - -convert.rgb.ansi16 = function (args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization - - value = Math.round(value / 50); - - if (value === 0) { - return 30; - } - - var ansi = 30 - + ((Math.round(b / 255) << 2) - | (Math.round(g / 255) << 1) - | Math.round(r / 255)); - - if (value === 2) { - ansi += 60; - } - - return ansi; -}; - -convert.hsv.ansi16 = function (args) { - // optimization here; we already know the value and don't need to get - // it converted for us. - return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); -}; - -convert.rgb.ansi256 = function (args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - - // we use the extended greyscale palette here, with the exception of - // black and white. normal palette only has 4 greyscale shades. - if (r === g && g === b) { - if (r < 8) { - return 16; - } - - if (r > 248) { - return 231; - } - - return Math.round(((r - 8) / 247) * 24) + 232; - } - - var ansi = 16 - + (36 * Math.round(r / 255 * 5)) - + (6 * Math.round(g / 255 * 5)) - + Math.round(b / 255 * 5); - - return ansi; -}; - -convert.ansi16.rgb = function (args) { - var color = args % 10; - - // handle greyscale - if (color === 0 || color === 7) { - if (args > 50) { - color += 3.5; - } - - color = color / 10.5 * 255; - - return [color, color, color]; - } - - var mult = (~~(args > 50) + 1) * 0.5; - var r = ((color & 1) * mult) * 255; - var g = (((color >> 1) & 1) * mult) * 255; - var b = (((color >> 2) & 1) * mult) * 255; - - return [r, g, b]; -}; - -convert.ansi256.rgb = function (args) { - // handle greyscale - if (args >= 232) { - var c = (args - 232) * 10 + 8; - return [c, c, c]; - } - - args -= 16; - - var rem; - var r = Math.floor(args / 36) / 5 * 255; - var g = Math.floor((rem = args % 36) / 6) / 5 * 255; - var b = (rem % 6) / 5 * 255; - - return [r, g, b]; -}; - -convert.rgb.hex = function (args) { - var integer = ((Math.round(args[0]) & 0xFF) << 16) - + ((Math.round(args[1]) & 0xFF) << 8) - + (Math.round(args[2]) & 0xFF); - - var string = integer.toString(16).toUpperCase(); - return '000000'.substring(string.length) + string; -}; - -convert.hex.rgb = function (args) { - var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); - if (!match) { - return [0, 0, 0]; - } - - var colorString = match[0]; - - if (match[0].length === 3) { - colorString = colorString.split('').map(function (char) { - return char + char; - }).join(''); - } - - var integer = parseInt(colorString, 16); - var r = (integer >> 16) & 0xFF; - var g = (integer >> 8) & 0xFF; - var b = integer & 0xFF; - - return [r, g, b]; -}; - -convert.rgb.hcg = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var max = Math.max(Math.max(r, g), b); - var min = Math.min(Math.min(r, g), b); - var chroma = (max - min); - var grayscale; - var hue; - - if (chroma < 1) { - grayscale = min / (1 - chroma); - } else { - grayscale = 0; - } - - if (chroma <= 0) { - hue = 0; - } else - if (max === r) { - hue = ((g - b) / chroma) % 6; - } else - if (max === g) { - hue = 2 + (b - r) / chroma; - } else { - hue = 4 + (r - g) / chroma + 4; - } - - hue /= 6; - hue %= 1; - - return [hue * 360, chroma * 100, grayscale * 100]; -}; - -convert.hsl.hcg = function (hsl) { - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var c = 1; - var f = 0; - - if (l < 0.5) { - c = 2.0 * s * l; - } else { - c = 2.0 * s * (1.0 - l); - } - - if (c < 1.0) { - f = (l - 0.5 * c) / (1.0 - c); - } - - return [hsl[0], c * 100, f * 100]; -}; - -convert.hsv.hcg = function (hsv) { - var s = hsv[1] / 100; - var v = hsv[2] / 100; - - var c = s * v; - var f = 0; - - if (c < 1.0) { - f = (v - c) / (1 - c); - } - - return [hsv[0], c * 100, f * 100]; -}; - -convert.hcg.rgb = function (hcg) { - var h = hcg[0] / 360; - var c = hcg[1] / 100; - var g = hcg[2] / 100; - - if (c === 0.0) { - return [g * 255, g * 255, g * 255]; - } - - var pure = [0, 0, 0]; - var hi = (h % 1) * 6; - var v = hi % 1; - var w = 1 - v; - var mg = 0; - - switch (Math.floor(hi)) { - case 0: - pure[0] = 1; pure[1] = v; pure[2] = 0; break; - case 1: - pure[0] = w; pure[1] = 1; pure[2] = 0; break; - case 2: - pure[0] = 0; pure[1] = 1; pure[2] = v; break; - case 3: - pure[0] = 0; pure[1] = w; pure[2] = 1; break; - case 4: - pure[0] = v; pure[1] = 0; pure[2] = 1; break; - default: - pure[0] = 1; pure[1] = 0; pure[2] = w; - } - - mg = (1.0 - c) * g; - - return [ - (c * pure[0] + mg) * 255, - (c * pure[1] + mg) * 255, - (c * pure[2] + mg) * 255 - ]; -}; - -convert.hcg.hsv = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - - var v = c + g * (1.0 - c); - var f = 0; - - if (v > 0.0) { - f = c / v; - } - - return [hcg[0], f * 100, v * 100]; -}; - -convert.hcg.hsl = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - - var l = g * (1.0 - c) + 0.5 * c; - var s = 0; - - if (l > 0.0 && l < 0.5) { - s = c / (2 * l); - } else - if (l >= 0.5 && l < 1.0) { - s = c / (2 * (1 - l)); - } - - return [hcg[0], s * 100, l * 100]; -}; - -convert.hcg.hwb = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - var v = c + g * (1.0 - c); - return [hcg[0], (v - c) * 100, (1 - v) * 100]; -}; - -convert.hwb.hcg = function (hwb) { - var w = hwb[1] / 100; - var b = hwb[2] / 100; - var v = 1 - b; - var c = v - w; - var g = 0; - - if (c < 1) { - g = (v - c) / (1 - c); - } - - return [hwb[0], c * 100, g * 100]; -}; - -convert.apple.rgb = function (apple) { - return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255]; -}; - -convert.rgb.apple = function (rgb) { - return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535]; -}; - -convert.gray.rgb = function (args) { - return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; -}; - -convert.gray.hsl = convert.gray.hsv = function (args) { - return [0, 0, args[0]]; -}; - -convert.gray.hwb = function (gray) { - return [0, 100, gray[0]]; -}; - -convert.gray.cmyk = function (gray) { - return [0, 0, 0, gray[0]]; -}; - -convert.gray.lab = function (gray) { - return [gray[0], 0, 0]; -}; - -convert.gray.hex = function (gray) { - var val = Math.round(gray[0] / 100 * 255) & 0xFF; - var integer = (val << 16) + (val << 8) + val; - - var string = integer.toString(16).toUpperCase(); - return '000000'.substring(string.length) + string; -}; - -convert.rgb.gray = function (rgb) { - var val = (rgb[0] + rgb[1] + rgb[2]) / 3; - return [val / 255 * 100]; -}; diff --git a/node_modules/chalk/node_modules/color-convert/index.js b/node_modules/chalk/node_modules/color-convert/index.js deleted file mode 100644 index e65b5d77..00000000 --- a/node_modules/chalk/node_modules/color-convert/index.js +++ /dev/null @@ -1,78 +0,0 @@ -var conversions = require('./conversions'); -var route = require('./route'); - -var convert = {}; - -var models = Object.keys(conversions); - -function wrapRaw(fn) { - var wrappedFn = function (args) { - if (args === undefined || args === null) { - return args; - } - - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); - } - - return fn(args); - }; - - // preserve .conversion property if there is one - if ('conversion' in fn) { - wrappedFn.conversion = fn.conversion; - } - - return wrappedFn; -} - -function wrapRounded(fn) { - var wrappedFn = function (args) { - if (args === undefined || args === null) { - return args; - } - - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); - } - - var result = fn(args); - - // we're assuming the result is an array here. - // see notice in conversions.js; don't use box types - // in conversion functions. - if (typeof result === 'object') { - for (var len = result.length, i = 0; i < len; i++) { - result[i] = Math.round(result[i]); - } - } - - return result; - }; - - // preserve .conversion property if there is one - if ('conversion' in fn) { - wrappedFn.conversion = fn.conversion; - } - - return wrappedFn; -} - -models.forEach(function (fromModel) { - convert[fromModel] = {}; - - Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels}); - Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels}); - - var routes = route(fromModel); - var routeModels = Object.keys(routes); - - routeModels.forEach(function (toModel) { - var fn = routes[toModel]; - - convert[fromModel][toModel] = wrapRounded(fn); - convert[fromModel][toModel].raw = wrapRaw(fn); - }); -}); - -module.exports = convert; diff --git a/node_modules/chalk/node_modules/color-convert/package.json b/node_modules/chalk/node_modules/color-convert/package.json deleted file mode 100644 index dfbc4714..00000000 --- a/node_modules/chalk/node_modules/color-convert/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "color-convert", - "description": "Plain color conversion functions", - "version": "1.9.3", - "author": "Heather Arthur ", - "license": "MIT", - "repository": "Qix-/color-convert", - "scripts": { - "pretest": "xo", - "test": "node test/basic.js" - }, - "keywords": [ - "color", - "colour", - "convert", - "converter", - "conversion", - "rgb", - "hsl", - "hsv", - "hwb", - "cmyk", - "ansi", - "ansi16" - ], - "files": [ - "index.js", - "conversions.js", - "css-keywords.js", - "route.js" - ], - "xo": { - "rules": { - "default-case": 0, - "no-inline-comments": 0, - "operator-linebreak": 0 - } - }, - "devDependencies": { - "chalk": "1.1.1", - "xo": "0.11.2" - }, - "dependencies": { - "color-name": "1.1.3" - } -} diff --git a/node_modules/chalk/node_modules/color-convert/route.js b/node_modules/chalk/node_modules/color-convert/route.js deleted file mode 100644 index 0a1fdea6..00000000 --- a/node_modules/chalk/node_modules/color-convert/route.js +++ /dev/null @@ -1,97 +0,0 @@ -var conversions = require('./conversions'); - -/* - this function routes a model to all other models. - - all functions that are routed have a property `.conversion` attached - to the returned synthetic function. This property is an array - of strings, each with the steps in between the 'from' and 'to' - color models (inclusive). - - conversions that are not possible simply are not included. -*/ - -function buildGraph() { - var graph = {}; - // https://jsperf.com/object-keys-vs-for-in-with-closure/3 - var models = Object.keys(conversions); - - for (var len = models.length, i = 0; i < len; i++) { - graph[models[i]] = { - // http://jsperf.com/1-vs-infinity - // micro-opt, but this is simple. - distance: -1, - parent: null - }; - } - - return graph; -} - -// https://en.wikipedia.org/wiki/Breadth-first_search -function deriveBFS(fromModel) { - var graph = buildGraph(); - var queue = [fromModel]; // unshift -> queue -> pop - - graph[fromModel].distance = 0; - - while (queue.length) { - var current = queue.pop(); - var adjacents = Object.keys(conversions[current]); - - for (var len = adjacents.length, i = 0; i < len; i++) { - var adjacent = adjacents[i]; - var node = graph[adjacent]; - - if (node.distance === -1) { - node.distance = graph[current].distance + 1; - node.parent = current; - queue.unshift(adjacent); - } - } - } - - return graph; -} - -function link(from, to) { - return function (args) { - return to(from(args)); - }; -} - -function wrapConversion(toModel, graph) { - var path = [graph[toModel].parent, toModel]; - var fn = conversions[graph[toModel].parent][toModel]; - - var cur = graph[toModel].parent; - while (graph[cur].parent) { - path.unshift(graph[cur].parent); - fn = link(conversions[graph[cur].parent][cur], fn); - cur = graph[cur].parent; - } - - fn.conversion = path; - return fn; -} - -module.exports = function (fromModel) { - var graph = deriveBFS(fromModel); - var conversion = {}; - - var models = Object.keys(graph); - for (var len = models.length, i = 0; i < len; i++) { - var toModel = models[i]; - var node = graph[toModel]; - - if (node.parent === null) { - // no possible conversion, or this node is the source model. - continue; - } - - conversion[toModel] = wrapConversion(toModel, graph); - } - - return conversion; -}; - diff --git a/node_modules/chalk/node_modules/color-name/.eslintrc.json b/node_modules/chalk/node_modules/color-name/.eslintrc.json deleted file mode 100644 index c50c2504..00000000 --- a/node_modules/chalk/node_modules/color-name/.eslintrc.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "env": { - "browser": true, - "node": true, - "commonjs": true, - "es6": true - }, - "extends": "eslint:recommended", - "rules": { - "strict": 2, - "indent": 0, - "linebreak-style": 0, - "quotes": 0, - "semi": 0, - "no-cond-assign": 1, - "no-constant-condition": 1, - "no-duplicate-case": 1, - "no-empty": 1, - "no-ex-assign": 1, - "no-extra-boolean-cast": 1, - "no-extra-semi": 1, - "no-fallthrough": 1, - "no-func-assign": 1, - "no-global-assign": 1, - "no-implicit-globals": 2, - "no-inner-declarations": ["error", "functions"], - "no-irregular-whitespace": 2, - "no-loop-func": 1, - "no-multi-str": 1, - "no-mixed-spaces-and-tabs": 1, - "no-proto": 1, - "no-sequences": 1, - "no-throw-literal": 1, - "no-unmodified-loop-condition": 1, - "no-useless-call": 1, - "no-void": 1, - "no-with": 2, - "wrap-iife": 1, - "no-redeclare": 1, - "no-unused-vars": ["error", { "vars": "all", "args": "none" }], - "no-sparse-arrays": 1 - } -} diff --git a/node_modules/chalk/node_modules/color-name/.npmignore b/node_modules/chalk/node_modules/color-name/.npmignore deleted file mode 100644 index f9f28164..00000000 --- a/node_modules/chalk/node_modules/color-name/.npmignore +++ /dev/null @@ -1,107 +0,0 @@ -//this will affect all the git repos -git config --global core.excludesfile ~/.gitignore - - -//update files since .ignore won't if already tracked -git rm --cached - -# Compiled source # -################### -*.com -*.class -*.dll -*.exe -*.o -*.so - -# Packages # -############ -# it's better to unpack these files and commit the raw source -# git has its own built in compression methods -*.7z -*.dmg -*.gz -*.iso -*.jar -*.rar -*.tar -*.zip - -# Logs and databases # -###################### -*.log -*.sql -*.sqlite - -# OS generated files # -###################### -.DS_Store -.DS_Store? -._* -.Spotlight-V100 -.Trashes -# Icon? -ehthumbs.db -Thumbs.db -.cache -.project -.settings -.tmproj -*.esproj -nbproject - -# Numerous always-ignore extensions # -##################################### -*.diff -*.err -*.orig -*.rej -*.swn -*.swo -*.swp -*.vi -*~ -*.sass-cache -*.grunt -*.tmp - -# Dreamweaver added files # -########################### -_notes -dwsync.xml - -# Komodo # -########################### -*.komodoproject -.komodotools - -# Node # -##################### -node_modules - -# Bower # -##################### -bower_components - -# Folders to ignore # -##################### -.hg -.svn -.CVS -intermediate -publish -.idea -.graphics -_test -_archive -uploads -tmp - -# Vim files to ignore # -####################### -.VimballRecord -.netrwhist - -bundle.* - -_demo \ No newline at end of file diff --git a/node_modules/chalk/node_modules/color-name/LICENSE b/node_modules/chalk/node_modules/color-name/LICENSE deleted file mode 100644 index c6b10012..00000000 --- a/node_modules/chalk/node_modules/color-name/LICENSE +++ /dev/null @@ -1,8 +0,0 @@ -The MIT License (MIT) -Copyright (c) 2015 Dmitry Ivanov - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/chalk/node_modules/color-name/README.md b/node_modules/chalk/node_modules/color-name/README.md deleted file mode 100644 index 932b9791..00000000 --- a/node_modules/chalk/node_modules/color-name/README.md +++ /dev/null @@ -1,11 +0,0 @@ -A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. - -[![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) - - -```js -var colors = require('color-name'); -colors.red //[255,0,0] -``` - - diff --git a/node_modules/chalk/node_modules/color-name/index.js b/node_modules/chalk/node_modules/color-name/index.js deleted file mode 100644 index b7c198a6..00000000 --- a/node_modules/chalk/node_modules/color-name/index.js +++ /dev/null @@ -1,152 +0,0 @@ -'use strict' - -module.exports = { - "aliceblue": [240, 248, 255], - "antiquewhite": [250, 235, 215], - "aqua": [0, 255, 255], - "aquamarine": [127, 255, 212], - "azure": [240, 255, 255], - "beige": [245, 245, 220], - "bisque": [255, 228, 196], - "black": [0, 0, 0], - "blanchedalmond": [255, 235, 205], - "blue": [0, 0, 255], - "blueviolet": [138, 43, 226], - "brown": [165, 42, 42], - "burlywood": [222, 184, 135], - "cadetblue": [95, 158, 160], - "chartreuse": [127, 255, 0], - "chocolate": [210, 105, 30], - "coral": [255, 127, 80], - "cornflowerblue": [100, 149, 237], - "cornsilk": [255, 248, 220], - "crimson": [220, 20, 60], - "cyan": [0, 255, 255], - "darkblue": [0, 0, 139], - "darkcyan": [0, 139, 139], - "darkgoldenrod": [184, 134, 11], - "darkgray": [169, 169, 169], - "darkgreen": [0, 100, 0], - "darkgrey": [169, 169, 169], - "darkkhaki": [189, 183, 107], - "darkmagenta": [139, 0, 139], - "darkolivegreen": [85, 107, 47], - "darkorange": [255, 140, 0], - "darkorchid": [153, 50, 204], - "darkred": [139, 0, 0], - "darksalmon": [233, 150, 122], - "darkseagreen": [143, 188, 143], - "darkslateblue": [72, 61, 139], - "darkslategray": [47, 79, 79], - "darkslategrey": [47, 79, 79], - "darkturquoise": [0, 206, 209], - "darkviolet": [148, 0, 211], - "deeppink": [255, 20, 147], - "deepskyblue": [0, 191, 255], - "dimgray": [105, 105, 105], - "dimgrey": [105, 105, 105], - "dodgerblue": [30, 144, 255], - "firebrick": [178, 34, 34], - "floralwhite": [255, 250, 240], - "forestgreen": [34, 139, 34], - "fuchsia": [255, 0, 255], - "gainsboro": [220, 220, 220], - "ghostwhite": [248, 248, 255], - "gold": [255, 215, 0], - "goldenrod": [218, 165, 32], - "gray": [128, 128, 128], - "green": [0, 128, 0], - "greenyellow": [173, 255, 47], - "grey": [128, 128, 128], - "honeydew": [240, 255, 240], - "hotpink": [255, 105, 180], - "indianred": [205, 92, 92], - "indigo": [75, 0, 130], - "ivory": [255, 255, 240], - "khaki": [240, 230, 140], - "lavender": [230, 230, 250], - "lavenderblush": [255, 240, 245], - "lawngreen": [124, 252, 0], - "lemonchiffon": [255, 250, 205], - "lightblue": [173, 216, 230], - "lightcoral": [240, 128, 128], - "lightcyan": [224, 255, 255], - "lightgoldenrodyellow": [250, 250, 210], - "lightgray": [211, 211, 211], - "lightgreen": [144, 238, 144], - "lightgrey": [211, 211, 211], - "lightpink": [255, 182, 193], - "lightsalmon": [255, 160, 122], - "lightseagreen": [32, 178, 170], - "lightskyblue": [135, 206, 250], - "lightslategray": [119, 136, 153], - "lightslategrey": [119, 136, 153], - "lightsteelblue": [176, 196, 222], - "lightyellow": [255, 255, 224], - "lime": [0, 255, 0], - "limegreen": [50, 205, 50], - "linen": [250, 240, 230], - "magenta": [255, 0, 255], - "maroon": [128, 0, 0], - "mediumaquamarine": [102, 205, 170], - "mediumblue": [0, 0, 205], - "mediumorchid": [186, 85, 211], - "mediumpurple": [147, 112, 219], - "mediumseagreen": [60, 179, 113], - "mediumslateblue": [123, 104, 238], - "mediumspringgreen": [0, 250, 154], - "mediumturquoise": [72, 209, 204], - "mediumvioletred": [199, 21, 133], - "midnightblue": [25, 25, 112], - "mintcream": [245, 255, 250], - "mistyrose": [255, 228, 225], - "moccasin": [255, 228, 181], - "navajowhite": [255, 222, 173], - "navy": [0, 0, 128], - "oldlace": [253, 245, 230], - "olive": [128, 128, 0], - "olivedrab": [107, 142, 35], - "orange": [255, 165, 0], - "orangered": [255, 69, 0], - "orchid": [218, 112, 214], - "palegoldenrod": [238, 232, 170], - "palegreen": [152, 251, 152], - "paleturquoise": [175, 238, 238], - "palevioletred": [219, 112, 147], - "papayawhip": [255, 239, 213], - "peachpuff": [255, 218, 185], - "peru": [205, 133, 63], - "pink": [255, 192, 203], - "plum": [221, 160, 221], - "powderblue": [176, 224, 230], - "purple": [128, 0, 128], - "rebeccapurple": [102, 51, 153], - "red": [255, 0, 0], - "rosybrown": [188, 143, 143], - "royalblue": [65, 105, 225], - "saddlebrown": [139, 69, 19], - "salmon": [250, 128, 114], - "sandybrown": [244, 164, 96], - "seagreen": [46, 139, 87], - "seashell": [255, 245, 238], - "sienna": [160, 82, 45], - "silver": [192, 192, 192], - "skyblue": [135, 206, 235], - "slateblue": [106, 90, 205], - "slategray": [112, 128, 144], - "slategrey": [112, 128, 144], - "snow": [255, 250, 250], - "springgreen": [0, 255, 127], - "steelblue": [70, 130, 180], - "tan": [210, 180, 140], - "teal": [0, 128, 128], - "thistle": [216, 191, 216], - "tomato": [255, 99, 71], - "turquoise": [64, 224, 208], - "violet": [238, 130, 238], - "wheat": [245, 222, 179], - "white": [255, 255, 255], - "whitesmoke": [245, 245, 245], - "yellow": [255, 255, 0], - "yellowgreen": [154, 205, 50] -}; diff --git a/node_modules/chalk/node_modules/color-name/package.json b/node_modules/chalk/node_modules/color-name/package.json deleted file mode 100644 index d061123e..00000000 --- a/node_modules/chalk/node_modules/color-name/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "color-name", - "version": "1.1.3", - "description": "A list of color names and its values", - "main": "index.js", - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:dfcreative/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/dfcreative/color-name/issues" - }, - "homepage": "https://github.com/dfcreative/color-name" -} diff --git a/node_modules/chalk/node_modules/color-name/test.js b/node_modules/chalk/node_modules/color-name/test.js deleted file mode 100644 index 6e6bf30b..00000000 --- a/node_modules/chalk/node_modules/color-name/test.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -var names = require('./'); -var assert = require('assert'); - -assert.deepEqual(names.red, [255,0,0]); -assert.deepEqual(names.aliceblue, [240,248,255]); diff --git a/node_modules/chalk/templates.js b/node_modules/chalk/templates.js deleted file mode 100644 index dbdf9b22..00000000 --- a/node_modules/chalk/templates.js +++ /dev/null @@ -1,128 +0,0 @@ -'use strict'; -const TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi; -const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g; -const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/; -const ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi; - -const ESCAPES = new Map([ - ['n', '\n'], - ['r', '\r'], - ['t', '\t'], - ['b', '\b'], - ['f', '\f'], - ['v', '\v'], - ['0', '\0'], - ['\\', '\\'], - ['e', '\u001B'], - ['a', '\u0007'] -]); - -function unescape(c) { - if ((c[0] === 'u' && c.length === 5) || (c[0] === 'x' && c.length === 3)) { - return String.fromCharCode(parseInt(c.slice(1), 16)); - } - - return ESCAPES.get(c) || c; -} - -function parseArguments(name, args) { - const results = []; - const chunks = args.trim().split(/\s*,\s*/g); - let matches; - - for (const chunk of chunks) { - if (!isNaN(chunk)) { - results.push(Number(chunk)); - } else if ((matches = chunk.match(STRING_REGEX))) { - results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, chr) => escape ? unescape(escape) : chr)); - } else { - throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`); - } - } - - return results; -} - -function parseStyle(style) { - STYLE_REGEX.lastIndex = 0; - - const results = []; - let matches; - - while ((matches = STYLE_REGEX.exec(style)) !== null) { - const name = matches[1]; - - if (matches[2]) { - const args = parseArguments(name, matches[2]); - results.push([name].concat(args)); - } else { - results.push([name]); - } - } - - return results; -} - -function buildStyle(chalk, styles) { - const enabled = {}; - - for (const layer of styles) { - for (const style of layer.styles) { - enabled[style[0]] = layer.inverse ? null : style.slice(1); - } - } - - let current = chalk; - for (const styleName of Object.keys(enabled)) { - if (Array.isArray(enabled[styleName])) { - if (!(styleName in current)) { - throw new Error(`Unknown Chalk style: ${styleName}`); - } - - if (enabled[styleName].length > 0) { - current = current[styleName].apply(current, enabled[styleName]); - } else { - current = current[styleName]; - } - } - } - - return current; -} - -module.exports = (chalk, tmp) => { - const styles = []; - const chunks = []; - let chunk = []; - - // eslint-disable-next-line max-params - tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => { - if (escapeChar) { - chunk.push(unescape(escapeChar)); - } else if (style) { - const str = chunk.join(''); - chunk = []; - chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str)); - styles.push({inverse, styles: parseStyle(style)}); - } else if (close) { - if (styles.length === 0) { - throw new Error('Found extraneous } in Chalk template literal'); - } - - chunks.push(buildStyle(chalk, styles)(chunk.join(''))); - chunk = []; - styles.pop(); - } else { - chunk.push(chr); - } - }); - - chunks.push(chunk.join('')); - - if (styles.length > 0) { - const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`; - throw new Error(errMsg); - } - - return chunks.join(''); -}; diff --git a/node_modules/chalk/types/index.d.ts b/node_modules/chalk/types/index.d.ts deleted file mode 100644 index b4e4dc57..00000000 --- a/node_modules/chalk/types/index.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -// Type definitions for Chalk -// Definitions by: Thomas Sauer - -export const enum Level { - None = 0, - Basic = 1, - Ansi256 = 2, - TrueColor = 3 -} - -export interface ChalkOptions { - enabled?: boolean; - level?: Level; -} - -export interface ChalkConstructor { - new (options?: ChalkOptions): Chalk; - (options?: ChalkOptions): Chalk; -} - -export interface ColorSupport { - level: Level; - hasBasic: boolean; - has256: boolean; - has16m: boolean; -} - -export interface Chalk { - (...text: string[]): string; - (text: TemplateStringsArray, ...placeholders: string[]): string; - constructor: ChalkConstructor; - enabled: boolean; - level: Level; - rgb(r: number, g: number, b: number): this; - hsl(h: number, s: number, l: number): this; - hsv(h: number, s: number, v: number): this; - hwb(h: number, w: number, b: number): this; - bgHex(color: string): this; - bgKeyword(color: string): this; - bgRgb(r: number, g: number, b: number): this; - bgHsl(h: number, s: number, l: number): this; - bgHsv(h: number, s: number, v: number): this; - bgHwb(h: number, w: number, b: number): this; - hex(color: string): this; - keyword(color: string): this; - - readonly reset: this; - readonly bold: this; - readonly dim: this; - readonly italic: this; - readonly underline: this; - readonly inverse: this; - readonly hidden: this; - readonly strikethrough: this; - - readonly visible: this; - - readonly black: this; - readonly red: this; - readonly green: this; - readonly yellow: this; - readonly blue: this; - readonly magenta: this; - readonly cyan: this; - readonly white: this; - readonly gray: this; - readonly grey: this; - readonly blackBright: this; - readonly redBright: this; - readonly greenBright: this; - readonly yellowBright: this; - readonly blueBright: this; - readonly magentaBright: this; - readonly cyanBright: this; - readonly whiteBright: this; - - readonly bgBlack: this; - readonly bgRed: this; - readonly bgGreen: this; - readonly bgYellow: this; - readonly bgBlue: this; - readonly bgMagenta: this; - readonly bgCyan: this; - readonly bgWhite: this; - readonly bgBlackBright: this; - readonly bgRedBright: this; - readonly bgGreenBright: this; - readonly bgYellowBright: this; - readonly bgBlueBright: this; - readonly bgMagentaBright: this; - readonly bgCyanBright: this; - readonly bgWhiteBright: this; -} - -declare const chalk: Chalk & { supportsColor: ColorSupport }; - -export default chalk diff --git a/node_modules/cross-spawn/lib/util/escapeArgument.js b/node_modules/cross-spawn/lib/util/escapeArgument.js deleted file mode 100644 index 367263f6..00000000 --- a/node_modules/cross-spawn/lib/util/escapeArgument.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -function escapeArgument(arg, quote) { - // Convert to string - arg = '' + arg; - - // If we are not going to quote the argument, - // escape shell metacharacters, including double and single quotes: - if (!quote) { - arg = arg.replace(/([()%!^<>&|;,"'\s])/g, '^$1'); - } else { - // Sequence of backslashes followed by a double quote: - // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - - // Sequence of backslashes followed by the end of the string - // (which will become a double quote later): - // double up all the backslashes - arg = arg.replace(/(\\*)$/, '$1$1'); - - // All other backslashes occur literally - - // Quote the whole thing: - arg = '"' + arg + '"'; - } - - return arg; -} - -module.exports = escapeArgument; diff --git a/node_modules/cross-spawn/lib/util/escapeCommand.js b/node_modules/cross-spawn/lib/util/escapeCommand.js deleted file mode 100644 index d9c25b26..00000000 --- a/node_modules/cross-spawn/lib/util/escapeCommand.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var escapeArgument = require('./escapeArgument'); - -function escapeCommand(command) { - // Do not escape if this command is not dangerous.. - // We do this so that commands like "echo" or "ifconfig" work - // Quoting them, will make them unaccessible - return /^[a-z0-9_-]+$/i.test(command) ? command : escapeArgument(command, true); -} - -module.exports = escapeCommand; diff --git a/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js b/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js deleted file mode 100644 index 9f2eba63..00000000 --- a/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -// See: https://github.com/IndigoUnited/node-cross-spawn/pull/34#issuecomment-221623455 -function hasEmptyArgumentBug() { - var nodeVer; - - if (process.platform !== 'win32') { - return false; - } - - nodeVer = process.version.substr(1).split('.').map(function (num) { - return parseInt(num, 10); - }); - - return (nodeVer[0] === 0 && nodeVer[1] < 12); -} - -module.exports = hasEmptyArgumentBug(); diff --git a/node_modules/cross-spawn/node_modules/.bin/which b/node_modules/cross-spawn/node_modules/.bin/which deleted file mode 120000 index 091d52ad..00000000 --- a/node_modules/cross-spawn/node_modules/.bin/which +++ /dev/null @@ -1 +0,0 @@ -../../../which/bin/which \ No newline at end of file diff --git a/node_modules/cross-spawn/node_modules/lru-cache/LICENSE b/node_modules/cross-spawn/node_modules/lru-cache/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/node_modules/cross-spawn/node_modules/lru-cache/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/cross-spawn/node_modules/lru-cache/README.md b/node_modules/cross-spawn/node_modules/lru-cache/README.md deleted file mode 100644 index d660dd57..00000000 --- a/node_modules/cross-spawn/node_modules/lru-cache/README.md +++ /dev/null @@ -1,158 +0,0 @@ -# lru cache - -A cache object that deletes the least-recently-used items. - -[![Build Status](https://travis-ci.org/isaacs/node-lru-cache.svg?branch=master)](https://travis-ci.org/isaacs/node-lru-cache) [![Coverage Status](https://coveralls.io/repos/isaacs/node-lru-cache/badge.svg?service=github)](https://coveralls.io/github/isaacs/node-lru-cache) - -## Installation: - -```javascript -npm install lru-cache --save -``` - -## Usage: - -```javascript -var LRU = require("lru-cache") - , options = { max: 500 - , length: function (n, key) { return n * 2 + key.length } - , dispose: function (key, n) { n.close() } - , maxAge: 1000 * 60 * 60 } - , cache = LRU(options) - , otherCache = LRU(50) // sets just the max size - -cache.set("key", "value") -cache.get("key") // "value" - -// non-string keys ARE fully supported -// but note that it must be THE SAME object, not -// just a JSON-equivalent object. -var someObject = { a: 1 } -cache.set(someObject, 'a value') -// Object keys are not toString()-ed -cache.set('[object Object]', 'a different value') -assert.equal(cache.get(someObject), 'a value') -// A similar object with same keys/values won't work, -// because it's a different object identity -assert.equal(cache.get({ a: 1 }), undefined) - -cache.reset() // empty the cache -``` - -If you put more stuff in it, then items will fall out. - -If you try to put an oversized thing in it, then it'll fall out right -away. - -## Options - -* `max` The maximum size of the cache, checked by applying the length - function to all values in the cache. Not setting this is kind of - silly, since that's the whole purpose of this lib, but it defaults - to `Infinity`. -* `maxAge` Maximum age in ms. Items are not pro-actively pruned out - as they age, but if you try to get an item that is too old, it'll - drop it and return undefined instead of giving it to you. -* `length` Function that is used to calculate the length of stored - items. If you're storing strings or buffers, then you probably want - to do something like `function(n, key){return n.length}`. The default is - `function(){return 1}`, which is fine if you want to store `max` - like-sized things. The item is passed as the first argument, and - the key is passed as the second argumnet. -* `dispose` Function that is called on items when they are dropped - from the cache. This can be handy if you want to close file - descriptors or do other cleanup tasks when items are no longer - accessible. Called with `key, value`. It's called *before* - actually removing the item from the internal cache, so if you want - to immediately put it back in, you'll have to do that in a - `nextTick` or `setTimeout` callback or it won't do anything. -* `stale` By default, if you set a `maxAge`, it'll only actually pull - stale items out of the cache when you `get(key)`. (That is, it's - not pre-emptively doing a `setTimeout` or anything.) If you set - `stale:true`, it'll return the stale value before deleting it. If - you don't set this, then it'll return `undefined` when you try to - get a stale entry, as if it had already been deleted. -* `noDisposeOnSet` By default, if you set a `dispose()` method, then - it'll be called whenever a `set()` operation overwrites an existing - key. If you set this option, `dispose()` will only be called when a - key falls out of the cache, not when it is overwritten. - -## API - -* `set(key, value, maxAge)` -* `get(key) => value` - - Both of these will update the "recently used"-ness of the key. - They do what you think. `maxAge` is optional and overrides the - cache `maxAge` option if provided. - - If the key is not found, `get()` will return `undefined`. - - The key and val can be any value. - -* `peek(key)` - - Returns the key value (or `undefined` if not found) without - updating the "recently used"-ness of the key. - - (If you find yourself using this a lot, you *might* be using the - wrong sort of data structure, but there are some use cases where - it's handy.) - -* `del(key)` - - Deletes a key out of the cache. - -* `reset()` - - Clear the cache entirely, throwing away all values. - -* `has(key)` - - Check if a key is in the cache, without updating the recent-ness - or deleting it for being stale. - -* `forEach(function(value,key,cache), [thisp])` - - Just like `Array.prototype.forEach`. Iterates over all the keys - in the cache, in order of recent-ness. (Ie, more recently used - items are iterated over first.) - -* `rforEach(function(value,key,cache), [thisp])` - - The same as `cache.forEach(...)` but items are iterated over in - reverse order. (ie, less recently used items are iterated over - first.) - -* `keys()` - - Return an array of the keys in the cache. - -* `values()` - - Return an array of the values in the cache. - -* `length` - - Return total length of objects in cache taking into account - `length` options function. - -* `itemCount` - - Return total quantity of objects currently in cache. Note, that - `stale` (see options) items are returned as part of this item - count. - -* `dump()` - - Return an array of the cache entries ready for serialization and usage - with 'destinationCache.load(arr)`. - -* `load(cacheEntriesArray)` - - Loads another cache entries array, obtained with `sourceCache.dump()`, - into the cache. The destination cache is reset before loading new entries - -* `prune()` - - Manually iterates over the entire cache proactively pruning old entries diff --git a/node_modules/cross-spawn/node_modules/lru-cache/index.js b/node_modules/cross-spawn/node_modules/lru-cache/index.js deleted file mode 100644 index bd35b535..00000000 --- a/node_modules/cross-spawn/node_modules/lru-cache/index.js +++ /dev/null @@ -1,468 +0,0 @@ -'use strict' - -module.exports = LRUCache - -// This will be a proper iterable 'Map' in engines that support it, -// or a fakey-fake PseudoMap in older versions. -var Map = require('pseudomap') -var util = require('util') - -// A linked list to keep track of recently-used-ness -var Yallist = require('yallist') - -// use symbols if possible, otherwise just _props -var hasSymbol = typeof Symbol === 'function' && process.env._nodeLRUCacheForceNoSymbol !== '1' -var makeSymbol -if (hasSymbol) { - makeSymbol = function (key) { - return Symbol(key) - } -} else { - makeSymbol = function (key) { - return '_' + key - } -} - -var MAX = makeSymbol('max') -var LENGTH = makeSymbol('length') -var LENGTH_CALCULATOR = makeSymbol('lengthCalculator') -var ALLOW_STALE = makeSymbol('allowStale') -var MAX_AGE = makeSymbol('maxAge') -var DISPOSE = makeSymbol('dispose') -var NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet') -var LRU_LIST = makeSymbol('lruList') -var CACHE = makeSymbol('cache') - -function naiveLength () { return 1 } - -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -function LRUCache (options) { - if (!(this instanceof LRUCache)) { - return new LRUCache(options) - } - - if (typeof options === 'number') { - options = { max: options } - } - - if (!options) { - options = {} - } - - var max = this[MAX] = options.max - // Kind of weird to have a default max of Infinity, but oh well. - if (!max || - !(typeof max === 'number') || - max <= 0) { - this[MAX] = Infinity - } - - var lc = options.length || naiveLength - if (typeof lc !== 'function') { - lc = naiveLength - } - this[LENGTH_CALCULATOR] = lc - - this[ALLOW_STALE] = options.stale || false - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this.reset() -} - -// resize the cache when the max changes. -Object.defineProperty(LRUCache.prototype, 'max', { - set: function (mL) { - if (!mL || !(typeof mL === 'number') || mL <= 0) { - mL = Infinity - } - this[MAX] = mL - trim(this) - }, - get: function () { - return this[MAX] - }, - enumerable: true -}) - -Object.defineProperty(LRUCache.prototype, 'allowStale', { - set: function (allowStale) { - this[ALLOW_STALE] = !!allowStale - }, - get: function () { - return this[ALLOW_STALE] - }, - enumerable: true -}) - -Object.defineProperty(LRUCache.prototype, 'maxAge', { - set: function (mA) { - if (!mA || !(typeof mA === 'number') || mA < 0) { - mA = 0 - } - this[MAX_AGE] = mA - trim(this) - }, - get: function () { - return this[MAX_AGE] - }, - enumerable: true -}) - -// resize the cache when the lengthCalculator changes. -Object.defineProperty(LRUCache.prototype, 'lengthCalculator', { - set: function (lC) { - if (typeof lC !== 'function') { - lC = naiveLength - } - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(function (hit) { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }, this) - } - trim(this) - }, - get: function () { return this[LENGTH_CALCULATOR] }, - enumerable: true -}) - -Object.defineProperty(LRUCache.prototype, 'length', { - get: function () { return this[LENGTH] }, - enumerable: true -}) - -Object.defineProperty(LRUCache.prototype, 'itemCount', { - get: function () { return this[LRU_LIST].length }, - enumerable: true -}) - -LRUCache.prototype.rforEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this[LRU_LIST].tail; walker !== null;) { - var prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } -} - -function forEachStep (self, fn, node, thisp) { - var hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) { - hit = undefined - } - } - if (hit) { - fn.call(thisp, hit.value, hit.key, self) - } -} - -LRUCache.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this[LRU_LIST].head; walker !== null;) { - var next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } -} - -LRUCache.prototype.keys = function () { - return this[LRU_LIST].toArray().map(function (k) { - return k.key - }, this) -} - -LRUCache.prototype.values = function () { - return this[LRU_LIST].toArray().map(function (k) { - return k.value - }, this) -} - -LRUCache.prototype.reset = function () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(function (hit) { - this[DISPOSE](hit.key, hit.value) - }, this) - } - - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list -} - -LRUCache.prototype.dump = function () { - return this[LRU_LIST].map(function (hit) { - if (!isStale(this, hit)) { - return { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - } - } - }, this).toArray().filter(function (h) { - return h - }) -} - -LRUCache.prototype.dumpLru = function () { - return this[LRU_LIST] -} - -/* istanbul ignore next */ -LRUCache.prototype.inspect = function (n, opts) { - var str = 'LRUCache {' - var extras = false - - var as = this[ALLOW_STALE] - if (as) { - str += '\n allowStale: true' - extras = true - } - - var max = this[MAX] - if (max && max !== Infinity) { - if (extras) { - str += ',' - } - str += '\n max: ' + util.inspect(max, opts) - extras = true - } - - var maxAge = this[MAX_AGE] - if (maxAge) { - if (extras) { - str += ',' - } - str += '\n maxAge: ' + util.inspect(maxAge, opts) - extras = true - } - - var lc = this[LENGTH_CALCULATOR] - if (lc && lc !== naiveLength) { - if (extras) { - str += ',' - } - str += '\n length: ' + util.inspect(this[LENGTH], opts) - extras = true - } - - var didFirst = false - this[LRU_LIST].forEach(function (item) { - if (didFirst) { - str += ',\n ' - } else { - if (extras) { - str += ',\n' - } - didFirst = true - str += '\n ' - } - var key = util.inspect(item.key).split('\n').join('\n ') - var val = { value: item.value } - if (item.maxAge !== maxAge) { - val.maxAge = item.maxAge - } - if (lc !== naiveLength) { - val.length = item.length - } - if (isStale(this, item)) { - val.stale = true - } - - val = util.inspect(val, opts).split('\n').join('\n ') - str += key + ' => ' + val - }) - - if (didFirst || extras) { - str += '\n' - } - str += '}' - - return str -} - -LRUCache.prototype.set = function (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] - - var now = maxAge ? Date.now() : 0 - var len = this[LENGTH_CALCULATOR](value, key) - - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } - - var node = this[CACHE].get(key) - var item = node.value - - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) { - this[DISPOSE](key, item.value) - } - } - - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true - } - - var hit = new Entry(key, value, len, now, maxAge) - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) { - this[DISPOSE](key, value) - } - return false - } - - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true -} - -LRUCache.prototype.has = function (key) { - if (!this[CACHE].has(key)) return false - var hit = this[CACHE].get(key).value - if (isStale(this, hit)) { - return false - } - return true -} - -LRUCache.prototype.get = function (key) { - return get(this, key, true) -} - -LRUCache.prototype.peek = function (key) { - return get(this, key, false) -} - -LRUCache.prototype.pop = function () { - var node = this[LRU_LIST].tail - if (!node) return null - del(this, node) - return node.value -} - -LRUCache.prototype.del = function (key) { - del(this, this[CACHE].get(key)) -} - -LRUCache.prototype.load = function (arr) { - // reset the cache - this.reset() - - var now = Date.now() - // A previous serialized cache has the most recent items first - for (var l = arr.length - 1; l >= 0; l--) { - var hit = arr[l] - var expiresAt = hit.e || 0 - if (expiresAt === 0) { - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - } else { - var maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } -} - -LRUCache.prototype.prune = function () { - var self = this - this[CACHE].forEach(function (value, key) { - get(self, key, false) - }) -} - -function get (self, key, doUse) { - var node = self[CACHE].get(key) - if (node) { - var hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) hit = undefined - } else { - if (doUse) { - self[LRU_LIST].unshiftNode(node) - } - } - if (hit) hit = hit.value - } - return hit -} - -function isStale (self, hit) { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) { - return false - } - var stale = false - var diff = Date.now() - hit.now - if (hit.maxAge) { - stale = diff > hit.maxAge - } else { - stale = self[MAX_AGE] && (diff > self[MAX_AGE]) - } - return stale -} - -function trim (self) { - if (self[LENGTH] > self[MAX]) { - for (var walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - var prev = walker.prev - del(self, walker) - walker = prev - } - } -} - -function del (self, node) { - if (node) { - var hit = node.value - if (self[DISPOSE]) { - self[DISPOSE](hit.key, hit.value) - } - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} - -// classy, since V8 prefers predictable objects. -function Entry (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 -} diff --git a/node_modules/cross-spawn/node_modules/lru-cache/package.json b/node_modules/cross-spawn/node_modules/lru-cache/package.json deleted file mode 100644 index bf7a06dc..00000000 --- a/node_modules/cross-spawn/node_modules/lru-cache/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "lru-cache", - "description": "A cache object that deletes the least-recently-used items.", - "version": "4.1.5", - "author": "Isaac Z. Schlueter ", - "keywords": [ - "mru", - "lru", - "cache" - ], - "scripts": { - "test": "tap test/*.js --100 -J", - "snap": "TAP_SNAPSHOT=1 tap test/*.js -J", - "posttest": "standard test/*.js index.js", - "coveragerport": "tap --coverage-report=html", - "lintfix": "standard --fix test/*.js index.js", - "preversion": "npm test", - "postversion": "npm publish --tag=legacy", - "postpublish": "git push origin --all; git push origin --tags" - }, - "main": "index.js", - "repository": "git://github.com/isaacs/node-lru-cache.git", - "devDependencies": { - "benchmark": "^2.1.4", - "standard": "^12.0.1", - "tap": "^12.1.0" - }, - "license": "ISC", - "dependencies": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - }, - "files": [ - "index.js" - ] -} diff --git a/node_modules/cross-spawn/node_modules/yallist/LICENSE b/node_modules/cross-spawn/node_modules/yallist/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/node_modules/cross-spawn/node_modules/yallist/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/cross-spawn/node_modules/yallist/README.md b/node_modules/cross-spawn/node_modules/yallist/README.md deleted file mode 100644 index f5861018..00000000 --- a/node_modules/cross-spawn/node_modules/yallist/README.md +++ /dev/null @@ -1,204 +0,0 @@ -# yallist - -Yet Another Linked List - -There are many doubly-linked list implementations like it, but this -one is mine. - -For when an array would be too big, and a Map can't be iterated in -reverse order. - - -[![Build Status](https://travis-ci.org/isaacs/yallist.svg?branch=master)](https://travis-ci.org/isaacs/yallist) [![Coverage Status](https://coveralls.io/repos/isaacs/yallist/badge.svg?service=github)](https://coveralls.io/github/isaacs/yallist) - -## basic usage - -```javascript -var yallist = require('yallist') -var myList = yallist.create([1, 2, 3]) -myList.push('foo') -myList.unshift('bar') -// of course pop() and shift() are there, too -console.log(myList.toArray()) // ['bar', 1, 2, 3, 'foo'] -myList.forEach(function (k) { - // walk the list head to tail -}) -myList.forEachReverse(function (k, index, list) { - // walk the list tail to head -}) -var myDoubledList = myList.map(function (k) { - return k + k -}) -// now myDoubledList contains ['barbar', 2, 4, 6, 'foofoo'] -// mapReverse is also a thing -var myDoubledListReverse = myList.mapReverse(function (k) { - return k + k -}) // ['foofoo', 6, 4, 2, 'barbar'] - -var reduced = myList.reduce(function (set, entry) { - set += entry - return set -}, 'start') -console.log(reduced) // 'startfoo123bar' -``` - -## api - -The whole API is considered "public". - -Functions with the same name as an Array method work more or less the -same way. - -There's reverse versions of most things because that's the point. - -### Yallist - -Default export, the class that holds and manages a list. - -Call it with either a forEach-able (like an array) or a set of -arguments, to initialize the list. - -The Array-ish methods all act like you'd expect. No magic length, -though, so if you change that it won't automatically prune or add -empty spots. - -### Yallist.create(..) - -Alias for Yallist function. Some people like factories. - -#### yallist.head - -The first node in the list - -#### yallist.tail - -The last node in the list - -#### yallist.length - -The number of nodes in the list. (Change this at your peril. It is -not magic like Array length.) - -#### yallist.toArray() - -Convert the list to an array. - -#### yallist.forEach(fn, [thisp]) - -Call a function on each item in the list. - -#### yallist.forEachReverse(fn, [thisp]) - -Call a function on each item in the list, in reverse order. - -#### yallist.get(n) - -Get the data at position `n` in the list. If you use this a lot, -probably better off just using an Array. - -#### yallist.getReverse(n) - -Get the data at position `n`, counting from the tail. - -#### yallist.map(fn, thisp) - -Create a new Yallist with the result of calling the function on each -item. - -#### yallist.mapReverse(fn, thisp) - -Same as `map`, but in reverse. - -#### yallist.pop() - -Get the data from the list tail, and remove the tail from the list. - -#### yallist.push(item, ...) - -Insert one or more items to the tail of the list. - -#### yallist.reduce(fn, initialValue) - -Like Array.reduce. - -#### yallist.reduceReverse - -Like Array.reduce, but in reverse. - -#### yallist.reverse - -Reverse the list in place. - -#### yallist.shift() - -Get the data from the list head, and remove the head from the list. - -#### yallist.slice([from], [to]) - -Just like Array.slice, but returns a new Yallist. - -#### yallist.sliceReverse([from], [to]) - -Just like yallist.slice, but the result is returned in reverse. - -#### yallist.toArray() - -Create an array representation of the list. - -#### yallist.toArrayReverse() - -Create a reversed array representation of the list. - -#### yallist.unshift(item, ...) - -Insert one or more items to the head of the list. - -#### yallist.unshiftNode(node) - -Move a Node object to the front of the list. (That is, pull it out of -wherever it lives, and make it the new head.) - -If the node belongs to a different list, then that list will remove it -first. - -#### yallist.pushNode(node) - -Move a Node object to the end of the list. (That is, pull it out of -wherever it lives, and make it the new tail.) - -If the node belongs to a list already, then that list will remove it -first. - -#### yallist.removeNode(node) - -Remove a node from the list, preserving referential integrity of head -and tail and other nodes. - -Will throw an error if you try to have a list remove a node that -doesn't belong to it. - -### Yallist.Node - -The class that holds the data and is actually the list. - -Call with `var n = new Node(value, previousNode, nextNode)` - -Note that if you do direct operations on Nodes themselves, it's very -easy to get into weird states where the list is broken. Be careful :) - -#### node.next - -The next node in the list. - -#### node.prev - -The previous node in the list. - -#### node.value - -The data the node contains. - -#### node.list - -The list to which this node belongs. (Null if it does not belong to -any list.) diff --git a/node_modules/cross-spawn/node_modules/yallist/iterator.js b/node_modules/cross-spawn/node_modules/yallist/iterator.js deleted file mode 100644 index 4a15bf22..00000000 --- a/node_modules/cross-spawn/node_modules/yallist/iterator.js +++ /dev/null @@ -1,7 +0,0 @@ -var Yallist = require('./yallist.js') - -Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value - } -} diff --git a/node_modules/cross-spawn/node_modules/yallist/package.json b/node_modules/cross-spawn/node_modules/yallist/package.json deleted file mode 100644 index 17a13d1c..00000000 --- a/node_modules/cross-spawn/node_modules/yallist/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "yallist", - "version": "2.1.2", - "description": "Yet Another Linked List", - "main": "yallist.js", - "directories": { - "test": "test" - }, - "files": [ - "yallist.js", - "iterator.js" - ], - "dependencies": {}, - "devDependencies": { - "tap": "^10.3.0" - }, - "scripts": { - "test": "tap test/*.js --100", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/yallist.git" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC" -} diff --git a/node_modules/cross-spawn/node_modules/yallist/yallist.js b/node_modules/cross-spawn/node_modules/yallist/yallist.js deleted file mode 100644 index 518d2333..00000000 --- a/node_modules/cross-spawn/node_modules/yallist/yallist.js +++ /dev/null @@ -1,370 +0,0 @@ -module.exports = Yallist - -Yallist.Node = Node -Yallist.create = Yallist - -function Yallist (list) { - var self = this - if (!(self instanceof Yallist)) { - self = new Yallist() - } - - self.tail = null - self.head = null - self.length = 0 - - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item) - }) - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]) - } - } - - return self -} - -Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } - - var next = node.next - var prev = node.prev - - if (next) { - next.prev = prev - } - - if (prev) { - prev.next = next - } - - if (node === this.head) { - this.head = next - } - if (node === this.tail) { - this.tail = prev - } - - node.list.length-- - node.next = null - node.prev = null - node.list = null -} - -Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var head = this.head - node.list = this - node.next = head - if (head) { - head.prev = node - } - - this.head = node - if (!this.tail) { - this.tail = node - } - this.length++ -} - -Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var tail = this.tail - node.list = this - node.prev = tail - if (tail) { - tail.next = node - } - - this.tail = node - if (!this.head) { - this.head = node - } - this.length++ -} - -Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } - - var res = this.tail.value - this.tail = this.tail.prev - if (this.tail) { - this.tail.next = null - } else { - this.head = null - } - this.length-- - return res -} - -Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } - - var res = this.head.value - this.head = this.head.next - if (this.head) { - this.head.prev = null - } else { - this.tail = null - } - this.length-- - return res -} - -Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this) - walker = walker.next - } -} - -Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this) - walker = walker.prev - } -} - -Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.next - } - return res -} - -Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.prev - } - return res -} - -Yallist.prototype.reduce = function (fn, initial) { - var acc - var walker = this.head - if (arguments.length > 1) { - acc = initial - } else if (this.head) { - walker = this.head.next - acc = this.head.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i) - walker = walker.next - } - - return acc -} - -Yallist.prototype.reduceReverse = function (fn, initial) { - var acc - var walker = this.tail - if (arguments.length > 1) { - acc = initial - } else if (this.tail) { - walker = this.tail.prev - acc = this.tail.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i) - walker = walker.prev - } - - return acc -} - -Yallist.prototype.toArray = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value - walker = walker.next - } - return arr -} - -Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value - walker = walker.prev - } - return arr -} - -Yallist.prototype.slice = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.reverse = function () { - var head = this.head - var tail = this.tail - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev - walker.prev = walker.next - walker.next = p - } - this.head = tail - this.tail = head - return this -} - -function push (self, item) { - self.tail = new Node(item, self.tail, null, self) - if (!self.head) { - self.head = self.tail - } - self.length++ -} - -function unshift (self, item) { - self.head = new Node(item, null, self.head, self) - if (!self.tail) { - self.tail = self.head - } - self.length++ -} - -function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } - - this.list = list - this.value = value - - if (prev) { - prev.next = this - this.prev = prev - } else { - this.prev = null - } - - if (next) { - next.prev = this - this.next = next - } else { - this.next = null - } -} diff --git a/node_modules/jsonwebtoken/node_modules/.bin/semver b/node_modules/jsonwebtoken/node_modules/.bin/semver deleted file mode 120000 index c3277a7a..00000000 --- a/node_modules/jsonwebtoken/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../../../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/kleur/colors.d.ts b/node_modules/kleur/colors.d.ts deleted file mode 100644 index cab25c66..00000000 --- a/node_modules/kleur/colors.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -declare function print(input: string | boolean | number): string; -declare function print(input: undefined | void): undefined; -declare function print(input: null): null; -type Colorize = typeof print; - -export declare const $: { enabled: boolean }; - -// Colors -export declare const black: Colorize; -export declare const red: Colorize; -export declare const green: Colorize; -export declare const yellow: Colorize; -export declare const blue: Colorize; -export declare const magenta: Colorize; -export declare const cyan: Colorize; -export declare const white: Colorize; -export declare const gray: Colorize; -export declare const grey: Colorize; - -// Backgrounds -export declare const bgBlack: Colorize; -export declare const bgRed: Colorize; -export declare const bgGreen: Colorize; -export declare const bgYellow: Colorize; -export declare const bgBlue: Colorize; -export declare const bgMagenta: Colorize; -export declare const bgCyan: Colorize; -export declare const bgWhite: Colorize; - -// Modifiers -export declare const reset: Colorize; -export declare const bold: Colorize; -export declare const dim: Colorize; -export declare const italic: Colorize; -export declare const underline: Colorize; -export declare const inverse: Colorize; -export declare const hidden: Colorize; -export declare const strikethrough: Colorize; diff --git a/node_modules/kleur/colors.js b/node_modules/kleur/colors.js deleted file mode 100644 index 89fb012d..00000000 --- a/node_modules/kleur/colors.js +++ /dev/null @@ -1,53 +0,0 @@ -let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; -if (typeof process !== 'undefined') { - ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); - isTTY = process.stdout && process.stdout.isTTY; -} - -const $ = exports.$ = { - enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== 'dumb' && ( - FORCE_COLOR != null && FORCE_COLOR !== '0' || isTTY - ) -} - -function init(x, y) { - let rgx = new RegExp(`\\x1b\\[${y}m`, 'g'); - let open = `\x1b[${x}m`, close = `\x1b[${y}m`; - - return function (txt) { - if (!$.enabled || txt == null) return txt; - return open + (!!~(''+txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close; - }; -} - -// modifiers -exports.reset = init(0, 0); -exports.bold = init(1, 22); -exports.dim = init(2, 22); -exports.italic = init(3, 23); -exports.underline = init(4, 24); -exports.inverse = init(7, 27); -exports.hidden = init(8, 28); -exports.strikethrough = init(9, 29); - -// colors -exports.black = init(30, 39); -exports.red = init(31, 39); -exports.green = init(32, 39); -exports.yellow = init(33, 39); -exports.blue = init(34, 39); -exports.magenta = init(35, 39); -exports.cyan = init(36, 39); -exports.white = init(37, 39); -exports.gray = init(90, 39); -exports.grey = init(90, 39); - -// background colors -exports.bgBlack = init(40, 49); -exports.bgRed = init(41, 49); -exports.bgGreen = init(42, 49); -exports.bgYellow = init(43, 49); -exports.bgBlue = init(44, 49); -exports.bgMagenta = init(45, 49); -exports.bgCyan = init(46, 49); -exports.bgWhite = init(47, 49); diff --git a/node_modules/kleur/colors.mjs b/node_modules/kleur/colors.mjs deleted file mode 100644 index e9feb83e..00000000 --- a/node_modules/kleur/colors.mjs +++ /dev/null @@ -1,53 +0,0 @@ -let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; -if (typeof process !== 'undefined') { - ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); - isTTY = process.stdout && process.stdout.isTTY; -} - -export const $ = { - enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== 'dumb' && ( - FORCE_COLOR != null && FORCE_COLOR !== '0' || isTTY - ) -} - -function init(x, y) { - let rgx = new RegExp(`\\x1b\\[${y}m`, 'g'); - let open = `\x1b[${x}m`, close = `\x1b[${y}m`; - - return function (txt) { - if (!$.enabled || txt == null) return txt; - return open + (!!~(''+txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close; - }; -} - -// modifiers -export const reset = init(0, 0); -export const bold = init(1, 22); -export const dim = init(2, 22); -export const italic = init(3, 23); -export const underline = init(4, 24); -export const inverse = init(7, 27); -export const hidden = init(8, 28); -export const strikethrough = init(9, 29); - -// colors -export const black = init(30, 39); -export const red = init(31, 39); -export const green = init(32, 39); -export const yellow = init(33, 39); -export const blue = init(34, 39); -export const magenta = init(35, 39); -export const cyan = init(36, 39); -export const white = init(37, 39); -export const gray = init(90, 39); -export const grey = init(90, 39); - -// background colors -export const bgBlack = init(40, 49); -export const bgRed = init(41, 49); -export const bgGreen = init(42, 49); -export const bgYellow = init(43, 49); -export const bgBlue = init(44, 49); -export const bgMagenta = init(45, 49); -export const bgCyan = init(46, 49); -export const bgWhite = init(47, 49); diff --git a/node_modules/kleur/index.d.ts b/node_modules/kleur/index.d.ts deleted file mode 100644 index fdc26ca9..00000000 --- a/node_modules/kleur/index.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -// Originally by: Rogier Schouten -// Adapted by: Madhav Varshney -declare namespace kleur { - interface Color { - (x: string | number): string; - (): Kleur; - } - - interface Kleur { - // Colors - black: Color; - red: Color; - green: Color; - yellow: Color; - blue: Color; - magenta: Color; - cyan: Color; - white: Color; - gray: Color; - grey: Color; - - // Backgrounds - bgBlack: Color; - bgRed: Color; - bgGreen: Color; - bgYellow: Color; - bgBlue: Color; - bgMagenta: Color; - bgCyan: Color; - bgWhite: Color; - - // Modifiers - reset: Color; - bold: Color; - dim: Color; - italic: Color; - underline: Color; - inverse: Color; - hidden: Color; - strikethrough: Color; - } -} - -declare let kleur: kleur.Kleur & { enabled: boolean }; -export = kleur; diff --git a/node_modules/kleur/index.mjs b/node_modules/kleur/index.mjs deleted file mode 100644 index 96dadad2..00000000 --- a/node_modules/kleur/index.mjs +++ /dev/null @@ -1,110 +0,0 @@ -'use strict'; - -let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; -if (typeof process !== 'undefined') { - ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); - isTTY = process.stdout && process.stdout.isTTY; -} - -const $ = { - enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== 'dumb' && ( - FORCE_COLOR != null && FORCE_COLOR !== '0' || isTTY - ), - - // modifiers - reset: init(0, 0), - bold: init(1, 22), - dim: init(2, 22), - italic: init(3, 23), - underline: init(4, 24), - inverse: init(7, 27), - hidden: init(8, 28), - strikethrough: init(9, 29), - - // colors - black: init(30, 39), - red: init(31, 39), - green: init(32, 39), - yellow: init(33, 39), - blue: init(34, 39), - magenta: init(35, 39), - cyan: init(36, 39), - white: init(37, 39), - gray: init(90, 39), - grey: init(90, 39), - - // background colors - bgBlack: init(40, 49), - bgRed: init(41, 49), - bgGreen: init(42, 49), - bgYellow: init(43, 49), - bgBlue: init(44, 49), - bgMagenta: init(45, 49), - bgCyan: init(46, 49), - bgWhite: init(47, 49) -}; - -function run(arr, str) { - let i=0, tmp, beg='', end=''; - for (; i < arr.length; i++) { - tmp = arr[i]; - beg += tmp.open; - end += tmp.close; - if (!!~str.indexOf(tmp.close)) { - str = str.replace(tmp.rgx, tmp.close + tmp.open); - } - } - return beg + str + end; -} - -function chain(has, keys) { - let ctx = { has, keys }; - - ctx.reset = $.reset.bind(ctx); - ctx.bold = $.bold.bind(ctx); - ctx.dim = $.dim.bind(ctx); - ctx.italic = $.italic.bind(ctx); - ctx.underline = $.underline.bind(ctx); - ctx.inverse = $.inverse.bind(ctx); - ctx.hidden = $.hidden.bind(ctx); - ctx.strikethrough = $.strikethrough.bind(ctx); - - ctx.black = $.black.bind(ctx); - ctx.red = $.red.bind(ctx); - ctx.green = $.green.bind(ctx); - ctx.yellow = $.yellow.bind(ctx); - ctx.blue = $.blue.bind(ctx); - ctx.magenta = $.magenta.bind(ctx); - ctx.cyan = $.cyan.bind(ctx); - ctx.white = $.white.bind(ctx); - ctx.gray = $.gray.bind(ctx); - ctx.grey = $.grey.bind(ctx); - - ctx.bgBlack = $.bgBlack.bind(ctx); - ctx.bgRed = $.bgRed.bind(ctx); - ctx.bgGreen = $.bgGreen.bind(ctx); - ctx.bgYellow = $.bgYellow.bind(ctx); - ctx.bgBlue = $.bgBlue.bind(ctx); - ctx.bgMagenta = $.bgMagenta.bind(ctx); - ctx.bgCyan = $.bgCyan.bind(ctx); - ctx.bgWhite = $.bgWhite.bind(ctx); - - return ctx; -} - -function init(open, close) { - let blk = { - open: `\x1b[${open}m`, - close: `\x1b[${close}m`, - rgx: new RegExp(`\\x1b\\[${close}m`, 'g') - }; - return function (txt) { - if (this !== void 0 && this.has !== void 0) { - !!~this.has.indexOf(open) || (this.has.push(open),this.keys.push(blk)); - return txt === void 0 ? this : $.enabled ? run(this.keys, txt+'') : txt+''; - } - return txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt+'') : txt+''; - }; -} - -export default $; diff --git a/node_modules/load-yaml-file/node_modules/.bin/js-yaml b/node_modules/load-yaml-file/node_modules/.bin/js-yaml deleted file mode 120000 index daf9f115..00000000 --- a/node_modules/load-yaml-file/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../../../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/node_modules/normalize-package-data/node_modules/.bin/resolve b/node_modules/normalize-package-data/node_modules/.bin/resolve deleted file mode 120000 index c036aa3a..00000000 --- a/node_modules/normalize-package-data/node_modules/.bin/resolve +++ /dev/null @@ -1 +0,0 @@ -../../../resolve/bin/resolve \ No newline at end of file diff --git a/node_modules/normalize-package-data/node_modules/.bin/semver b/node_modules/normalize-package-data/node_modules/.bin/semver deleted file mode 120000 index 317eb293..00000000 --- a/node_modules/normalize-package-data/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver \ No newline at end of file diff --git a/node_modules/postcss/node_modules/.bin/nanoid b/node_modules/postcss/node_modules/.bin/nanoid deleted file mode 120000 index e2be547b..00000000 --- a/node_modules/postcss/node_modules/.bin/nanoid +++ /dev/null @@ -1 +0,0 @@ -../nanoid/bin/nanoid.cjs \ No newline at end of file diff --git a/node_modules/preferred-pm/node_modules/p-limit/index.d.ts b/node_modules/preferred-pm/node_modules/p-limit/index.d.ts deleted file mode 100644 index f348d7f1..00000000 --- a/node_modules/preferred-pm/node_modules/p-limit/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -declare namespace pLimit { - interface Limit { - /** - The number of promises that are currently running. - */ - readonly activeCount: number; - - /** - The number of promises that are waiting to run (i.e. their internal `fn` was not called yet). - */ - readonly pendingCount: number; - - /** - Discard pending promises that are waiting to run. - - This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. - - Note: This does not cancel promises that are already running. - */ - clearQueue: () => void; - - /** - @param fn - Promise-returning/async function. - @param arguments - Any arguments to pass through to `fn`. Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a lot of functions. - @returns The promise returned by calling `fn(...arguments)`. - */ - ( - fn: (...arguments: Arguments) => PromiseLike | ReturnType, - ...arguments: Arguments - ): Promise; - } -} - -/** -Run multiple promise-returning & async functions with limited concurrency. - -@param concurrency - Concurrency limit. Minimum: `1`. -@returns A `limit` function. -*/ -declare function pLimit(concurrency: number): pLimit.Limit; - -export = pLimit; diff --git a/node_modules/preferred-pm/node_modules/p-limit/index.js b/node_modules/preferred-pm/node_modules/p-limit/index.js deleted file mode 100644 index c2ae52d9..00000000 --- a/node_modules/preferred-pm/node_modules/p-limit/index.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; -const Queue = require('yocto-queue'); - -const pLimit = concurrency => { - if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) { - throw new TypeError('Expected `concurrency` to be a number from 1 and up'); - } - - const queue = new Queue(); - let activeCount = 0; - - const next = () => { - activeCount--; - - if (queue.size > 0) { - queue.dequeue()(); - } - }; - - const run = async (fn, resolve, ...args) => { - activeCount++; - - const result = (async () => fn(...args))(); - - resolve(result); - - try { - await result; - } catch {} - - next(); - }; - - const enqueue = (fn, resolve, ...args) => { - queue.enqueue(run.bind(null, fn, resolve, ...args)); - - (async () => { - // This function needs to wait until the next microtask before comparing - // `activeCount` to `concurrency`, because `activeCount` is updated asynchronously - // when the run function is dequeued and called. The comparison in the if-statement - // needs to happen asynchronously as well to get an up-to-date value for `activeCount`. - await Promise.resolve(); - - if (activeCount < concurrency && queue.size > 0) { - queue.dequeue()(); - } - })(); - }; - - const generator = (fn, ...args) => new Promise(resolve => { - enqueue(fn, resolve, ...args); - }); - - Object.defineProperties(generator, { - activeCount: { - get: () => activeCount - }, - pendingCount: { - get: () => queue.size - }, - clearQueue: { - value: () => { - queue.clear(); - } - } - }); - - return generator; -}; - -module.exports = pLimit; diff --git a/node_modules/preferred-pm/node_modules/p-limit/license b/node_modules/preferred-pm/node_modules/p-limit/license deleted file mode 100644 index fa7ceba3..00000000 --- a/node_modules/preferred-pm/node_modules/p-limit/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/preferred-pm/node_modules/p-limit/package.json b/node_modules/preferred-pm/node_modules/p-limit/package.json deleted file mode 100644 index 76514736..00000000 --- a/node_modules/preferred-pm/node_modules/p-limit/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "p-limit", - "version": "3.1.0", - "description": "Run multiple promise-returning & async functions with limited concurrency", - "license": "MIT", - "repository": "sindresorhus/p-limit", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "limit", - "limited", - "concurrency", - "throttle", - "throat", - "rate", - "batch", - "ratelimit", - "task", - "queue", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "delay": "^4.4.0", - "in-range": "^2.0.0", - "random-int": "^2.0.1", - "time-span": "^4.0.0", - "tsd": "^0.13.1", - "xo": "^0.35.0" - } -} diff --git a/node_modules/preferred-pm/node_modules/p-limit/readme.md b/node_modules/preferred-pm/node_modules/p-limit/readme.md deleted file mode 100644 index b283c1e6..00000000 --- a/node_modules/preferred-pm/node_modules/p-limit/readme.md +++ /dev/null @@ -1,101 +0,0 @@ -# p-limit - -> Run multiple promise-returning & async functions with limited concurrency - -## Install - -``` -$ npm install p-limit -``` - -## Usage - -```js -const pLimit = require('p-limit'); - -const limit = pLimit(1); - -const input = [ - limit(() => fetchSomething('foo')), - limit(() => fetchSomething('bar')), - limit(() => doSomething()) -]; - -(async () => { - // Only one promise is run at once - const result = await Promise.all(input); - console.log(result); -})(); -``` - -## API - -### pLimit(concurrency) - -Returns a `limit` function. - -#### concurrency - -Type: `number`\ -Minimum: `1`\ -Default: `Infinity` - -Concurrency limit. - -### limit(fn, ...args) - -Returns the promise returned by calling `fn(...args)`. - -#### fn - -Type: `Function` - -Promise-returning/async function. - -#### args - -Any arguments to pass through to `fn`. - -Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions. - -### limit.activeCount - -The number of promises that are currently running. - -### limit.pendingCount - -The number of promises that are waiting to run (i.e. their internal `fn` was not called yet). - -### limit.clearQueue() - -Discard pending promises that are waiting to run. - -This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. - -Note: This does not cancel promises that are already running. - -## FAQ - -### How is this different from the [`p-queue`](https://github.com/sindresorhus/p-queue) package? - -This package is only about limiting the number of concurrent executions, while `p-queue` is a fully featured queue implementation with lots of different options, introspection, and ability to pause the queue. - -## Related - -- [p-queue](https://github.com/sindresorhus/p-queue) - Promise queue with concurrency control -- [p-throttle](https://github.com/sindresorhus/p-throttle) - Throttle promise-returning & async functions -- [p-debounce](https://github.com/sindresorhus/p-debounce) - Debounce promise-returning & async functions -- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency -- [More…](https://github.com/sindresorhus/promise-fun) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/read-yaml-file/node_modules/.bin/js-yaml b/node_modules/read-yaml-file/node_modules/.bin/js-yaml deleted file mode 120000 index daf9f115..00000000 --- a/node_modules/read-yaml-file/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../../../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/node_modules/request-oauth/node_modules/.bin/uuid b/node_modules/request-oauth/node_modules/.bin/uuid deleted file mode 120000 index 588f70ec..00000000 --- a/node_modules/request-oauth/node_modules/.bin/uuid +++ /dev/null @@ -1 +0,0 @@ -../uuid/dist/bin/uuid \ No newline at end of file diff --git a/node_modules/tty-table/node_modules/.bin/smartwrap b/node_modules/tty-table/node_modules/.bin/smartwrap deleted file mode 120000 index 5f336e8c..00000000 --- a/node_modules/tty-table/node_modules/.bin/smartwrap +++ /dev/null @@ -1 +0,0 @@ -../../../smartwrap/src/terminal-adapter.js \ No newline at end of file diff --git a/node_modules/tty-table/node_modules/chalk/index.d.ts b/node_modules/tty-table/node_modules/chalk/index.d.ts deleted file mode 100644 index 9cd88f38..00000000 --- a/node_modules/tty-table/node_modules/chalk/index.d.ts +++ /dev/null @@ -1,415 +0,0 @@ -/** -Basic foreground colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type ForegroundColor = - | 'black' - | 'red' - | 'green' - | 'yellow' - | 'blue' - | 'magenta' - | 'cyan' - | 'white' - | 'gray' - | 'grey' - | 'blackBright' - | 'redBright' - | 'greenBright' - | 'yellowBright' - | 'blueBright' - | 'magentaBright' - | 'cyanBright' - | 'whiteBright'; - -/** -Basic background colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type BackgroundColor = - | 'bgBlack' - | 'bgRed' - | 'bgGreen' - | 'bgYellow' - | 'bgBlue' - | 'bgMagenta' - | 'bgCyan' - | 'bgWhite' - | 'bgGray' - | 'bgGrey' - | 'bgBlackBright' - | 'bgRedBright' - | 'bgGreenBright' - | 'bgYellowBright' - | 'bgBlueBright' - | 'bgMagentaBright' - | 'bgCyanBright' - | 'bgWhiteBright'; - -/** -Basic colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type Color = ForegroundColor | BackgroundColor; - -declare type Modifiers = - | 'reset' - | 'bold' - | 'dim' - | 'italic' - | 'underline' - | 'inverse' - | 'hidden' - | 'strikethrough' - | 'visible'; - -declare namespace chalk { - /** - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - type Level = 0 | 1 | 2 | 3; - - interface Options { - /** - Specify the color support for Chalk. - - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - level?: Level; - } - - /** - Return a new Chalk instance. - */ - type Instance = new (options?: Options) => Chalk; - - /** - Detect whether the terminal supports color. - */ - interface ColorSupport { - /** - The color level used by Chalk. - */ - level: Level; - - /** - Return whether Chalk supports basic 16 colors. - */ - hasBasic: boolean; - - /** - Return whether Chalk supports ANSI 256 colors. - */ - has256: boolean; - - /** - Return whether Chalk supports Truecolor 16 million colors. - */ - has16m: boolean; - } - - interface ChalkFunction { - /** - Use a template string. - - @remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341)) - - @example - ``` - import chalk = require('chalk'); - - log(chalk` - CPU: {red ${cpu.totalPercent}%} - RAM: {green ${ram.used / ram.total * 100}%} - DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} - `); - ``` - - @example - ``` - import chalk = require('chalk'); - - log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`) - ``` - */ - (text: TemplateStringsArray, ...placeholders: unknown[]): string; - - (...text: unknown[]): string; - } - - interface Chalk extends ChalkFunction { - /** - Return a new Chalk instance. - */ - Instance: Instance; - - /** - The color support for Chalk. - - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - level: Level; - - /** - Use HEX value to set text color. - - @param color - Hexadecimal value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.hex('#DEADED'); - ``` - */ - hex(color: string): Chalk; - - /** - Use keyword color value to set text color. - - @param color - Keyword value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.keyword('orange'); - ``` - */ - keyword(color: string): Chalk; - - /** - Use RGB values to set text color. - */ - rgb(red: number, green: number, blue: number): Chalk; - - /** - Use HSL values to set text color. - */ - hsl(hue: number, saturation: number, lightness: number): Chalk; - - /** - Use HSV values to set text color. - */ - hsv(hue: number, saturation: number, value: number): Chalk; - - /** - Use HWB values to set text color. - */ - hwb(hue: number, whiteness: number, blackness: number): Chalk; - - /** - Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color. - - 30 <= code && code < 38 || 90 <= code && code < 98 - For example, 31 for red, 91 for redBright. - */ - ansi(code: number): Chalk; - - /** - Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. - */ - ansi256(index: number): Chalk; - - /** - Use HEX value to set background color. - - @param color - Hexadecimal value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.bgHex('#DEADED'); - ``` - */ - bgHex(color: string): Chalk; - - /** - Use keyword color value to set background color. - - @param color - Keyword value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.bgKeyword('orange'); - ``` - */ - bgKeyword(color: string): Chalk; - - /** - Use RGB values to set background color. - */ - bgRgb(red: number, green: number, blue: number): Chalk; - - /** - Use HSL values to set background color. - */ - bgHsl(hue: number, saturation: number, lightness: number): Chalk; - - /** - Use HSV values to set background color. - */ - bgHsv(hue: number, saturation: number, value: number): Chalk; - - /** - Use HWB values to set background color. - */ - bgHwb(hue: number, whiteness: number, blackness: number): Chalk; - - /** - Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color. - - 30 <= code && code < 38 || 90 <= code && code < 98 - For example, 31 for red, 91 for redBright. - Use the foreground code, not the background code (for example, not 41, nor 101). - */ - bgAnsi(code: number): Chalk; - - /** - Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. - */ - bgAnsi256(index: number): Chalk; - - /** - Modifier: Resets the current color chain. - */ - readonly reset: Chalk; - - /** - Modifier: Make text bold. - */ - readonly bold: Chalk; - - /** - Modifier: Emitting only a small amount of light. - */ - readonly dim: Chalk; - - /** - Modifier: Make text italic. (Not widely supported) - */ - readonly italic: Chalk; - - /** - Modifier: Make text underline. (Not widely supported) - */ - readonly underline: Chalk; - - /** - Modifier: Inverse background and foreground colors. - */ - readonly inverse: Chalk; - - /** - Modifier: Prints the text, but makes it invisible. - */ - readonly hidden: Chalk; - - /** - Modifier: Puts a horizontal line through the center of the text. (Not widely supported) - */ - readonly strikethrough: Chalk; - - /** - Modifier: Prints the text only when Chalk has a color support level > 0. - Can be useful for things that are purely cosmetic. - */ - readonly visible: Chalk; - - readonly black: Chalk; - readonly red: Chalk; - readonly green: Chalk; - readonly yellow: Chalk; - readonly blue: Chalk; - readonly magenta: Chalk; - readonly cyan: Chalk; - readonly white: Chalk; - - /* - Alias for `blackBright`. - */ - readonly gray: Chalk; - - /* - Alias for `blackBright`. - */ - readonly grey: Chalk; - - readonly blackBright: Chalk; - readonly redBright: Chalk; - readonly greenBright: Chalk; - readonly yellowBright: Chalk; - readonly blueBright: Chalk; - readonly magentaBright: Chalk; - readonly cyanBright: Chalk; - readonly whiteBright: Chalk; - - readonly bgBlack: Chalk; - readonly bgRed: Chalk; - readonly bgGreen: Chalk; - readonly bgYellow: Chalk; - readonly bgBlue: Chalk; - readonly bgMagenta: Chalk; - readonly bgCyan: Chalk; - readonly bgWhite: Chalk; - - /* - Alias for `bgBlackBright`. - */ - readonly bgGray: Chalk; - - /* - Alias for `bgBlackBright`. - */ - readonly bgGrey: Chalk; - - readonly bgBlackBright: Chalk; - readonly bgRedBright: Chalk; - readonly bgGreenBright: Chalk; - readonly bgYellowBright: Chalk; - readonly bgBlueBright: Chalk; - readonly bgMagentaBright: Chalk; - readonly bgCyanBright: Chalk; - readonly bgWhiteBright: Chalk; - } -} - -/** -Main Chalk object that allows to chain styles together. -Call the last one as a method with a string argument. -Order doesn't matter, and later styles take precedent in case of a conflict. -This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. -*/ -declare const chalk: chalk.Chalk & chalk.ChalkFunction & { - supportsColor: chalk.ColorSupport | false; - Level: chalk.Level; - Color: Color; - ForegroundColor: ForegroundColor; - BackgroundColor: BackgroundColor; - Modifiers: Modifiers; - stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false}; -}; - -export = chalk; diff --git a/node_modules/tty-table/node_modules/chalk/license b/node_modules/tty-table/node_modules/chalk/license deleted file mode 100644 index e7af2f77..00000000 --- a/node_modules/tty-table/node_modules/chalk/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/tty-table/node_modules/chalk/package.json b/node_modules/tty-table/node_modules/chalk/package.json deleted file mode 100644 index 47c23f29..00000000 --- a/node_modules/tty-table/node_modules/chalk/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "chalk", - "version": "4.1.2", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "funding": "https://github.com/chalk/chalk?sponsor=1", - "main": "source", - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^4.0.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^15.0.0", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.28.2" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off", - "@typescript-eslint/member-ordering": "off", - "no-redeclare": "off", - "unicorn/string-content": "off", - "unicorn/better-regex": "off" - } - } -} diff --git a/node_modules/tty-table/node_modules/chalk/readme.md b/node_modules/tty-table/node_modules/chalk/readme.md deleted file mode 100644 index a055d21c..00000000 --- a/node_modules/tty-table/node_modules/chalk/readme.md +++ /dev/null @@ -1,341 +0,0 @@ -

-
-
- Chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk) - - - -
- ---- - - - ---- - -
- -## Highlights - -- Expressive API -- Highly performant -- Ability to nest styles -- [256/Truecolor color support](#256-and-truecolor-color-support) -- Auto-detects color support -- Doesn't extend `String.prototype` -- Clean and focused -- Actively maintained -- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 - -## Install - -```console -$ npm install chalk -``` - -## Usage - -```js -const chalk = require('chalk'); - -console.log(chalk.blue('Hello world!')); -``` - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -const chalk = require('chalk'); -const log = console.log; - -// Combine styled and normal strings -log(chalk.blue('Hello') + ' World' + chalk.red('!')); - -// Compose multiple styles using the chainable API -log(chalk.blue.bgRed.bold('Hello world!')); - -// Pass in multiple arguments -log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); - -// Nest styles -log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); - -// Nest styles of the same type even (color, underline, background) -log(chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -)); - -// ES2015 template literal -log(` -CPU: ${chalk.red('90%')} -RAM: ${chalk.green('40%')} -DISK: ${chalk.yellow('70%')} -`); - -// ES2015 tagged template literal -log(chalk` -CPU: {red ${cpu.totalPercent}%} -RAM: {green ${ram.used / ram.total * 100}%} -DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} -`); - -// Use RGB colors in terminal emulators that support it. -log(chalk.keyword('orange')('Yay for orange colored text!')); -log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); -log(chalk.hex('#DEADED').bold('Bold gray!')); -``` - -Easily define your own themes: - -```js -const chalk = require('chalk'); - -const error = chalk.bold.red; -const warning = chalk.keyword('orange'); - -console.log(error('Error!')); -console.log(warning('Warning!')); -``` - -Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): - -```js -const name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> 'Hello Sindre' -``` - -## API - -### chalk.`