@platforma-sdk/block-tools 2.1.10 → 2.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var v=Object.defineProperty;var E=(i,e,t)=>e in i?v(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>E(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@oclif/core"),c=require("node:path"),u=require("node:fs"),l=require("./config-B8NlJ02C.js"),P=require("yaml"),A=require("@milaboratories/ts-helpers-oclif"),f=class f extends a.Command{async run(){const{flags:e}=await this.parse(f),t=c.resolve(e.modulePath),s=await l.loadPackDescriptionRaw(t),d=await l.BlockPackMetaEmbed.parseAsync(l.BlockPackMetaDescription(t).parse(s.meta));await u.promises.writeFile(c.resolve(e.destination),JSON.stringify(d))}};n(f,"description","Extracts meta information from blocks package.json and outputs meta.json with embedded binary and textual information linked from the meta section."),n(f,"flags",{modulePath:a.Flags.string({char:"i",summary:"input module path",helpValue:"<path>",default:"."}),destination:a.Flags.string({char:"o",summary:"output meta.json file",helpValue:"<path>",required:!0})});let w=f;async function O(i){try{return await u.promises.readFile(i,"utf8")}catch(e){if(e.code==="ENOENT")return;throw e}}const p=class p extends a.Command{async run(){const{flags:e}=await this.parse(p),t=c.resolve(e.modulePath);let{model:s,platforma:d}=require(t);if(s||(s=d),!s)throw new Error('"model" export not found');const{config:r}=s;if(!r)throw new Error('Malformed "model" object, check it is created with "BlockModel" and ".done()" is executed as the call in the chain.');if(!("canRun"in r||"inputsValid"in r)||!("outputs"in r)||!("sections"in r))throw new Error('"config" has unexpected structure');const m=await O(e.sourceBundle);m!==void 0&&(r.code={type:"plain",content:m}),await u.promises.writeFile(c.resolve(e.destination),JSON.stringify(r))}};n(p,"description","Extracts and outputs block model JSON from pre-built block model module"),n(p,"flags",{modulePath:a.Flags.string({char:"i",summary:"input module path",helpValue:"<path>",default:"."}),sourceBundle:a.Flags.string({char:"b",summary:"bundled model code to embed into the model for callback-based rendering to work",helpValue:"<path>",default:"./dist/bundle.js"}),destination:a.Flags.string({char:"o",summary:"output model file",helpValue:"<path>",default:"./dist/model.json"})});let y=p;const g=class g extends a.Command{async run(){const{flags:e}=await this.parse(g),t=await l.loadPackDescription(c.resolve(e.modulePath));await l.buildBlockPackDist(t,c.resolve(e.destinationPath))}};n(g,"description","Builds block pack and outputs a block pack manifest consolidating all references assets into a single folder"),n(g,"flags",{modulePath:a.Flags.string({char:"i",summary:"input module path",helpValue:"<path>",default:"."}),destinationPath:a.Flags.string({char:"o",summary:"output folder",helpValue:"<path>",default:"./block-pack"})});let F=g;function C(i){const e=i.match(/(?<destName>[^\/\\]+)=(?<src>.*)/);if(e){const{src:t,destName:s}=e.groups;return{src:t,destName:s}}else return{src:i,destName:c.basename(i)}}const R=a.Flags.custom({summary:"target files to upload",helpValue:"file_path | package_name=file_path",parse:async i=>C(i)}),S=["registry","organization","package","version"],h=class h extends a.Command{async run(){const{flags:e}=await this.parse(h),t=l.PlRegPackageConfigDataShard.parse({});for(const o of S)e[o]&&(t[o]=e[o]);e.meta&&(e.meta.endsWith(".json")?t.meta=JSON.parse(await u.promises.readFile(e.meta,{encoding:"utf-8"})):e.meta.endsWith(".yaml")&&(t.meta=P.parse(await u.promises.readFile(e.meta,{encoding:"utf-8"}))));for(const o of e.file)t.files[o.destName]=o.src;const s=await l.getConfig(t);this.log(P.stringify(s.conf));const d=s.createRegistry(new A.OclifLoggerAdapter(this)),r=s.fullPackageName,m=d.constructNewPackage(r);for(const[o,k]of Object.entries(s.conf.files)){this.log(`Uploading ${k} -> ${o} ...`);const N=await u.promises.readFile(k);await m.addFile(o,N)}this.log("Uploading meta information..."),await m.writeMeta(s.conf.meta),await m.finish(),e.refresh&&await d.updateIfNeeded()}};n(h,"description","Uploads V1 package and refreshes the registry"),n(h,"flags",{registry:a.Flags.string({char:"r",summary:"full address of the registry or alias from .pl.reg",helpValue:"<address|alias>",env:"PL_REGISTRY"}),organization:a.Flags.string({char:"o",summary:"target organisation",env:"PL_PACKAGE_ORGANIZATION"}),package:a.Flags.string({char:"p",summary:"target package",env:"PL_PACKAGE_NAME"}),version:a.Flags.string({char:"v",summary:"target version",env:"PL_PACKAGE_VERSION"}),meta:a.Flags.file({char:"m",summary:"json file containing meta information to associate with tha package",exists:!0}),file:R({char:"f",summary:"package files",multiple:!0,default:[]}),refresh:a.Flags.boolean({summary:"refresh repository after adding the package",default:!0,allowNo:!0,env:"PL_REGISTRY_REFRESH"})});let b=h;const x={"upload-package-v1":b,pack:F,"build-model":y,"build-meta":w};exports.COMMANDS=x;
1
+ "use strict";var v=Object.defineProperty;var E=(i,e,t)=>e in i?v(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>E(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@oclif/core"),c=require("node:path"),u=require("node:fs"),l=require("./config-DMAm68Pm.js"),P=require("yaml"),A=require("@milaboratories/ts-helpers-oclif"),f=class f extends a.Command{async run(){const{flags:e}=await this.parse(f),t=c.resolve(e.modulePath),s=await l.loadPackDescriptionRaw(t),d=await l.BlockPackMetaEmbed.parseAsync(l.BlockPackMetaDescription(t).parse(s.meta));await u.promises.writeFile(c.resolve(e.destination),JSON.stringify(d))}};n(f,"description","Extracts meta information from blocks package.json and outputs meta.json with embedded binary and textual information linked from the meta section."),n(f,"flags",{modulePath:a.Flags.string({char:"i",summary:"input module path",helpValue:"<path>",default:"."}),destination:a.Flags.string({char:"o",summary:"output meta.json file",helpValue:"<path>",required:!0})});let w=f;async function O(i){try{return await u.promises.readFile(i,"utf8")}catch(e){if(e.code==="ENOENT")return;throw e}}const p=class p extends a.Command{async run(){const{flags:e}=await this.parse(p),t=c.resolve(e.modulePath);let{model:s,platforma:d}=require(t);if(s||(s=d),!s)throw new Error('"model" export not found');const{config:r}=s;if(!r)throw new Error('Malformed "model" object, check it is created with "BlockModel" and ".done()" is executed as the call in the chain.');if(!("canRun"in r||"inputsValid"in r)||!("outputs"in r)||!("sections"in r))throw new Error('"config" has unexpected structure');const m=await O(e.sourceBundle);m!==void 0&&(r.code={type:"plain",content:m}),await u.promises.writeFile(c.resolve(e.destination),JSON.stringify(r))}};n(p,"description","Extracts and outputs block model JSON from pre-built block model module"),n(p,"flags",{modulePath:a.Flags.string({char:"i",summary:"input module path",helpValue:"<path>",default:"."}),sourceBundle:a.Flags.string({char:"b",summary:"bundled model code to embed into the model for callback-based rendering to work",helpValue:"<path>",default:"./dist/bundle.js"}),destination:a.Flags.string({char:"o",summary:"output model file",helpValue:"<path>",default:"./dist/model.json"})});let y=p;const g=class g extends a.Command{async run(){const{flags:e}=await this.parse(g),t=await l.loadPackDescription(c.resolve(e.modulePath));await l.buildBlockPackDist(t,c.resolve(e.destinationPath))}};n(g,"description","Builds block pack and outputs a block pack manifest consolidating all references assets into a single folder"),n(g,"flags",{modulePath:a.Flags.string({char:"i",summary:"input module path",helpValue:"<path>",default:"."}),destinationPath:a.Flags.string({char:"o",summary:"output folder",helpValue:"<path>",default:"./block-pack"})});let F=g;function C(i){const e=i.match(/(?<destName>[^\/\\]+)=(?<src>.*)/);if(e){const{src:t,destName:s}=e.groups;return{src:t,destName:s}}else return{src:i,destName:c.basename(i)}}const R=a.Flags.custom({summary:"target files to upload",helpValue:"file_path | package_name=file_path",parse:async i=>C(i)}),S=["registry","organization","package","version"],h=class h extends a.Command{async run(){const{flags:e}=await this.parse(h),t=l.PlRegPackageConfigDataShard.parse({});for(const o of S)e[o]&&(t[o]=e[o]);e.meta&&(e.meta.endsWith(".json")?t.meta=JSON.parse(await u.promises.readFile(e.meta,{encoding:"utf-8"})):e.meta.endsWith(".yaml")&&(t.meta=P.parse(await u.promises.readFile(e.meta,{encoding:"utf-8"}))));for(const o of e.file)t.files[o.destName]=o.src;const s=await l.getConfig(t);this.log(P.stringify(s.conf));const d=s.createRegistry(new A.OclifLoggerAdapter(this)),r=s.fullPackageName,m=d.constructNewPackage(r);for(const[o,k]of Object.entries(s.conf.files)){this.log(`Uploading ${k} -> ${o} ...`);const N=await u.promises.readFile(k);await m.addFile(o,N)}this.log("Uploading meta information..."),await m.writeMeta(s.conf.meta),await m.finish(),e.refresh&&await d.updateIfNeeded()}};n(h,"description","Uploads V1 package and refreshes the registry"),n(h,"flags",{registry:a.Flags.string({char:"r",summary:"full address of the registry or alias from .pl.reg",helpValue:"<address|alias>",env:"PL_REGISTRY"}),organization:a.Flags.string({char:"o",summary:"target organisation",env:"PL_PACKAGE_ORGANIZATION"}),package:a.Flags.string({char:"p",summary:"target package",env:"PL_PACKAGE_NAME"}),version:a.Flags.string({char:"v",summary:"target version",env:"PL_PACKAGE_VERSION"}),meta:a.Flags.file({char:"m",summary:"json file containing meta information to associate with tha package",exists:!0}),file:R({char:"f",summary:"package files",multiple:!0,default:[]}),refresh:a.Flags.boolean({summary:"refresh repository after adding the package",default:!0,allowNo:!0,env:"PL_REGISTRY_REFRESH"})});let b=h;const x={"upload-package-v1":b,pack:F,"build-model":y,"build-meta":w};exports.COMMANDS=x;
2
2
  //# sourceMappingURL=cli.js.map
package/dist/cli.mjs CHANGED
@@ -4,7 +4,7 @@ var n = (i, e, t) => F(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { Command as g, Flags as s } from "@oclif/core";
5
5
  import c from "node:path";
6
6
  import d from "node:fs";
7
- import { l as A, B as R, a as x, b as O, c as S, P as j, g as C } from "./config-jteHItEq.mjs";
7
+ import { l as A, B as R, a as x, b as O, c as S, P as j, g as C } from "./config-Br5DwFuM.mjs";
8
8
  import N from "yaml";
9
9
  import { OclifLoggerAdapter as V } from "@milaboratories/ts-helpers-oclif";
10
10
  const u = class u extends g {
@@ -1,31 +1,23 @@
1
1
  var Ft = Object.defineProperty;
2
2
  var Dt = (r, e, t) => e in r ? Ft(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var W = (r, e, t) => Dt(r, typeof e != "symbol" ? e + "" : e, t);
3
+ var q = (r, e, t) => Dt(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import B from "node:fs/promises";
5
5
  import k from "node:path";
6
6
  import { z as P } from "zod";
7
- import * as _t from "mime-types";
8
- import * as jt from "tar";
9
- import { BlockComponents as ge, ContentAbsoluteBinaryLocal as Re, ContentAbsoluteFolder as bt, BlockComponentsManifest as at, ContentRelativeBinary as Fe, BlockPackMeta as ve, ContentAbsoluteTextLocal as ot, BlockPackMetaEmbeddedContent as Gt, DescriptionContentText as Ut, DescriptionContentBinary as Bt, CreateBlockPackDescriptionSchema as we, BlockPackMetaManifest as Vt, BlockPackDescriptionFromPackageJsonRaw as ct, SemVer as Ie } from "@milaboratories/pl-model-middle-layer";
10
- import { notEmpty as lt } from "@milaboratories/ts-helpers";
7
+ import * as jt from "mime-types";
8
+ import * as _t from "tar";
9
+ import { tryResolve as at } from "@milaboratories/resolve-helper";
10
+ import { BlockComponents as ge, ContentAbsoluteBinaryLocal as Re, ContentAbsoluteFolder as bt, BlockComponentsManifest as ot, ContentRelativeBinary as Fe, BlockPackMeta as ve, ContentAbsoluteTextLocal as ct, BlockPackMetaEmbeddedContent as Gt, DescriptionContentText as Ut, DescriptionContentBinary as Bt, CreateBlockPackDescriptionSchema as we, BlockPackMetaManifest as Vt, BlockPackDescriptionFromPackageJsonRaw as lt, SemVer as Ie } from "@milaboratories/pl-model-middle-layer";
11
+ import { notEmpty as ft } from "@milaboratories/ts-helpers";
11
12
  import xt from "yaml";
12
13
  import * as De from "node:os";
13
14
  import { randomUUID as Xt } from "node:crypto";
14
15
  import G from "node:path/posix";
15
16
  import { S3 as Mt, paginateListObjectsV2 as zt } from "@aws-sdk/client-s3";
16
17
  import * as H from "node:fs";
17
- function ft(r, e) {
18
- try {
19
- return require.resolve(e, {
20
- paths: [r]
21
- });
22
- } catch (t) {
23
- if (t.code !== "MODULE_NOT_FOUND") throw t;
24
- }
25
- }
26
18
  function Ht(r) {
27
19
  return P.string().transform((e, t) => {
28
- const s = ft(r, e);
20
+ const s = at(r, e);
29
21
  return s === void 0 ? (t.addIssue({
30
22
  code: P.ZodIssueCode.custom,
31
23
  message: `Can't resolve ${e} against ${r}`
@@ -35,11 +27,11 @@ function Ht(r) {
35
27
  };
36
28
  });
37
29
  }
38
- function qt(r, ...e) {
30
+ function Jt(r, ...e) {
39
31
  return P.string().transform((t, s) => {
40
32
  const a = t.endsWith("/") ? t : `${t}/`;
41
33
  for (const o of e) {
42
- const c = ft(r, a + o);
34
+ const c = at(r, a + o);
43
35
  if (c !== void 0) {
44
36
  if (!c.endsWith(o))
45
37
  throw new Error(`Unexpected resolve result ${c} with index file ${o}`);
@@ -55,16 +47,16 @@ function qt(r, ...e) {
55
47
  }), P.NEVER;
56
48
  });
57
49
  }
58
- function _e(r) {
50
+ function je(r) {
59
51
  return (e) => e.type === "relative" ? { type: "absolute-file", file: k.resolve(r, e.path) } : e;
60
52
  }
61
- function Jt() {
53
+ function Wt() {
62
54
  return async (r) => r.type === "absolute-file" ? await B.readFile(r.file, { encoding: "utf-8" }) : r.content;
63
55
  }
64
- function Wt() {
56
+ function qt() {
65
57
  return async (r) => {
66
58
  if (r.type === "absolute-file") {
67
- const e = _t.lookup(r.file);
59
+ const e = jt.lookup(r.file);
68
60
  if (!e) throw new Error(`Can't recognize mime type of the file: ${r.file}.`);
69
61
  return {
70
62
  type: "explicit-base64",
@@ -86,7 +78,7 @@ function Yt(r, e, t) {
86
78
  if (!e.endsWith(".tgz")) throw new Error(`Unexpected tgz file name: ${e}`);
87
79
  return async (s) => {
88
80
  const a = k.resolve(r, e);
89
- return await jt.create(
81
+ return await _t.create(
90
82
  {
91
83
  gzip: !0,
92
84
  file: a,
@@ -96,43 +88,43 @@ function Yt(r, e, t) {
96
88
  ), t == null || t.push(e), { type: "relative", path: e };
97
89
  };
98
90
  }
99
- function je(r) {
91
+ function _e(r) {
100
92
  const e = r.endsWith("/") ? r : `${r}/`;
101
93
  return (t) => t.type === "relative" ? { type: "absolute-url", url: e + t.path } : t;
102
94
  }
103
95
  function Kt(r) {
104
96
  return ge(
105
97
  Ht(r),
106
- qt(r, "index.html")
98
+ Jt(r, "index.html")
107
99
  );
108
100
  }
109
101
  function Zt(r, e) {
110
102
  return ge(
111
103
  Re.transform(Ee(r, e)),
112
104
  bt.transform(Yt(r, "ui.tgz", e))
113
- ).pipe(at);
105
+ ).pipe(ot);
114
106
  }
115
107
  function Li(r) {
116
108
  return ge(
117
- Fe.transform(je(r)),
118
- Fe.transform(je(r))
109
+ Fe.transform(_e(r)),
110
+ Fe.transform(_e(r))
119
111
  );
120
112
  }
121
113
  function Qt(r) {
122
114
  return ve(
123
- Ut.transform(_e(r)),
124
- Bt.transform(_e(r))
115
+ Ut.transform(je(r)),
116
+ Bt.transform(je(r))
125
117
  );
126
118
  }
127
119
  function er(r, e) {
128
120
  return ve(
129
- ot.transform(Ee(r, e)),
121
+ ct.transform(Ee(r, e)),
130
122
  Re.transform(Ee(r, e))
131
123
  );
132
124
  }
133
125
  const Pi = ve(
134
- ot.transform(Jt()),
135
- Re.transform(Wt())
126
+ ct.transform(Wt()),
127
+ Re.transform(qt())
136
128
  ).pipe(Gt);
137
129
  function ut(r) {
138
130
  return we(
@@ -148,7 +140,7 @@ function tr(r, e) {
148
140
  ).pipe(ht);
149
141
  }
150
142
  const ht = we(
151
- at,
143
+ ot,
152
144
  Vt
153
145
  ), rr = ht.extend({
154
146
  schema: P.literal("v1"),
@@ -194,10 +186,10 @@ async function Ti(r) {
194
186
  const s = t[$e];
195
187
  if (s === void 0) return;
196
188
  const a = {
197
- ...ct.parse(s),
189
+ ...lt.parse(s),
198
190
  id: {
199
191
  ...pt(
200
- lt(t.name, `"name" not found in ${e}`)
192
+ ft(t.name, `"name" not found in ${e}`)
201
193
  ),
202
194
  version: Ie.parse(t.version)
203
195
  }
@@ -214,10 +206,10 @@ async function ir(r) {
214
206
  `Block description (field ${$e}) not found in ${e}.`
215
207
  );
216
208
  return {
217
- ...ct.parse(s),
209
+ ...lt.parse(s),
218
210
  id: {
219
211
  ...pt(
220
- lt(t.name, `"name" not found in ${e}`)
212
+ ft(t.name, `"name" not found in ${e}`)
221
213
  ),
222
214
  version: Ie.parse(t.version)
223
215
  }
@@ -292,7 +284,7 @@ var te = dr;
292
284
  };
293
285
  u("NUMERICIDENTIFIER", "0|[1-9]\\d*"), u("NUMERICIDENTIFIERLOOSE", "\\d+"), u("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${p}*`), u("MAINVERSION", `(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`), u("MAINVERSIONLOOSE", `(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`), u("PRERELEASEIDENTIFIER", `(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`), u("PRERELEASEIDENTIFIERLOOSE", `(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`), u("PRERELEASE", `(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`), u("PRERELEASELOOSE", `(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`), u("BUILDIDENTIFIER", `${p}+`), u("BUILD", `(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`), u("FULLPLAIN", `v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`), u("FULL", `^${n[i.FULLPLAIN]}$`), u("LOOSEPLAIN", `[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`), u("LOOSE", `^${n[i.LOOSEPLAIN]}$`), u("GTLT", "((?:<|>)?=?)"), u("XRANGEIDENTIFIERLOOSE", `${n[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), u("XRANGEIDENTIFIER", `${n[i.NUMERICIDENTIFIER]}|x|X|\\*`), u("XRANGEPLAIN", `[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`), u("XRANGEPLAINLOOSE", `[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`), u("XRANGE", `^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`), u("XRANGELOOSE", `^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`), u("COERCEPLAIN", `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`), u("COERCE", `${n[i.COERCEPLAIN]}(?:$|[^\\d])`), u("COERCEFULL", n[i.COERCEPLAIN] + `(?:${n[i.PRERELEASE]})?(?:${n[i.BUILD]})?(?:$|[^\\d])`), u("COERCERTL", n[i.COERCE], !0), u("COERCERTLFULL", n[i.COERCEFULL], !0), u("LONETILDE", "(?:~>?)"), u("TILDETRIM", `(\\s*)${n[i.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", u("TILDE", `^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`), u("TILDELOOSE", `^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`), u("LONECARET", "(?:\\^)"), u("CARETTRIM", `(\\s*)${n[i.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", u("CARET", `^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`), u("CARETLOOSE", `^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`), u("COMPARATORLOOSE", `^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`), u("COMPARATOR", `^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`), u("COMPARATORTRIM", `(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", u("HYPHENRANGE", `^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`), u("HYPHENRANGELOOSE", `^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`), u("STAR", "(<|>)?=?\\s*\\*"), u("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), u("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
294
286
  })(me, me.exports);
295
- var J = me.exports;
287
+ var W = me.exports;
296
288
  const gr = Object.freeze({ loose: !0 }), Rr = Object.freeze({}), vr = (r) => r ? typeof r != "object" ? gr : r : Rr;
297
289
  var Oe = vr;
298
290
  const be = /^[0-9]+$/, mt = (r, e) => {
@@ -303,7 +295,7 @@ var dt = {
303
295
  compareIdentifiers: mt,
304
296
  rcompareIdentifiers: wr
305
297
  };
306
- const Y = te, { MAX_LENGTH: Ge, MAX_SAFE_INTEGER: K } = ee, { safeRe: Ue, t: Be } = J, Ir = Oe, { compareIdentifiers: V } = dt;
298
+ const Y = te, { MAX_LENGTH: Ge, MAX_SAFE_INTEGER: K } = ee, { safeRe: Ue, t: Be } = W, Ir = Oe, { compareIdentifiers: V } = dt;
307
299
  let Nr = class b {
308
300
  constructor(e, t) {
309
301
  if (t = Ir(t), e instanceof b) {
@@ -488,8 +480,8 @@ const Xe = x, Fr = (r, e) => {
488
480
  return t.major !== s.major ? f + "major" : t.minor !== s.minor ? f + "minor" : t.patch !== s.patch ? f + "patch" : "prerelease";
489
481
  };
490
482
  var Dr = Fr;
491
- const _r = F, jr = (r, e) => new _r(r, e).major;
492
- var br = jr;
483
+ const jr = F, _r = (r, e) => new jr(r, e).major;
484
+ var br = _r;
493
485
  const Gr = F, Ur = (r, e) => new Gr(r, e).minor;
494
486
  var Br = Ur;
495
487
  const Vr = F, xr = (r, e) => new Vr(r, e).patch;
@@ -499,11 +491,11 @@ const Mr = x, zr = (r, e) => {
499
491
  return t && t.prerelease.length ? t.prerelease : null;
500
492
  };
501
493
  var Hr = zr;
502
- const Me = F, qr = (r, e, t) => new Me(r, t).compare(new Me(e, t));
503
- var _ = qr;
504
- const Jr = _, Wr = (r, e, t) => Jr(e, r, t);
505
- var Yr = Wr;
506
- const Kr = _, Zr = (r, e) => Kr(r, e, !0);
494
+ const Me = F, Jr = (r, e, t) => new Me(r, t).compare(new Me(e, t));
495
+ var j = Jr;
496
+ const Wr = j, qr = (r, e, t) => Wr(e, r, t);
497
+ var Yr = qr;
498
+ const Kr = j, Zr = (r, e) => Kr(r, e, !0);
507
499
  var Qr = Zr;
508
500
  const ze = F, es = (r, e, t) => {
509
501
  const s = new ze(r, t), a = new ze(e, t);
@@ -514,17 +506,17 @@ const ts = Le, rs = (r, e) => r.sort((t, s) => ts(t, s, e));
514
506
  var ss = rs;
515
507
  const ns = Le, is = (r, e) => r.sort((t, s) => ns(s, t, e));
516
508
  var as = is;
517
- const os = _, cs = (r, e, t) => os(r, e, t) > 0;
509
+ const os = j, cs = (r, e, t) => os(r, e, t) > 0;
518
510
  var re = cs;
519
- const ls = _, fs = (r, e, t) => ls(r, e, t) < 0;
511
+ const ls = j, fs = (r, e, t) => ls(r, e, t) < 0;
520
512
  var Pe = fs;
521
- const us = _, hs = (r, e, t) => us(r, e, t) === 0;
513
+ const us = j, hs = (r, e, t) => us(r, e, t) === 0;
522
514
  var gt = hs;
523
- const ps = _, Es = (r, e, t) => ps(r, e, t) !== 0;
515
+ const ps = j, Es = (r, e, t) => ps(r, e, t) !== 0;
524
516
  var Rt = Es;
525
- const $s = _, ms = (r, e, t) => $s(r, e, t) >= 0;
517
+ const $s = j, ms = (r, e, t) => $s(r, e, t) >= 0;
526
518
  var Ae = ms;
527
- const ds = _, gs = (r, e, t) => ds(r, e, t) <= 0;
519
+ const ds = j, gs = (r, e, t) => ds(r, e, t) <= 0;
528
520
  var Te = gs;
529
521
  const Rs = gt, vs = Rt, ws = re, Is = Ae, Ns = Pe, Ss = Te, Os = (r, e, t, s) => {
530
522
  switch (e) {
@@ -551,7 +543,7 @@ const Rs = gt, vs = Rt, ws = re, Is = Ae, Ns = Pe, Ss = Te, Os = (r, e, t, s) =>
551
543
  }
552
544
  };
553
545
  var vt = Os;
554
- const Ls = F, Ps = x, { safeRe: Z, t: Q } = J, As = (r, e) => {
546
+ const Ls = F, Ps = x, { safeRe: Z, t: Q } = W, As = (r, e) => {
555
547
  if (r instanceof Ls)
556
548
  return r;
557
549
  if (typeof r == "number" && (r = String(r)), typeof r != "string")
@@ -597,7 +589,7 @@ class ys {
597
589
  }
598
590
  }
599
591
  var ks = ys, ae, He;
600
- function j() {
592
+ function _() {
601
593
  if (He) return ae;
602
594
  He = 1;
603
595
  const r = /\s+/g;
@@ -687,7 +679,7 @@ function j() {
687
679
  comparatorTrimReplace: f,
688
680
  tildeTrimReplace: p,
689
681
  caretTrimReplace: N
690
- } = J, { FLAG_INCLUDE_PRERELEASE: E, FLAG_LOOSE: u } = ee, C = (h) => h.value === "<0.0.0-0", T = (h) => h.value === "", L = (h, l) => {
682
+ } = W, { FLAG_INCLUDE_PRERELEASE: E, FLAG_LOOSE: u } = ee, C = (h) => h.value === "<0.0.0-0", T = (h) => h.value === "", L = (h, l) => {
691
683
  let d = !0;
692
684
  const $ = h.slice();
693
685
  let g = $.pop();
@@ -734,10 +726,10 @@ function j() {
734
726
  };
735
727
  return ae;
736
728
  }
737
- var oe, qe;
729
+ var oe, Je;
738
730
  function se() {
739
- if (qe) return oe;
740
- qe = 1;
731
+ if (Je) return oe;
732
+ Je = 1;
741
733
  const r = Symbol("SemVer ANY");
742
734
  class e {
743
735
  static get ANY() {
@@ -778,10 +770,10 @@ function se() {
778
770
  }
779
771
  }
780
772
  oe = e;
781
- const t = Oe, { safeRe: s, t: a } = J, o = vt, c = te, v = F, n = j();
773
+ const t = Oe, { safeRe: s, t: a } = W, o = vt, c = te, v = F, n = _();
782
774
  return oe;
783
775
  }
784
- const Cs = j(), Fs = (r, e, t) => {
776
+ const Cs = _(), Fs = (r, e, t) => {
785
777
  try {
786
778
  e = new Cs(e, t);
787
779
  } catch {
@@ -790,9 +782,9 @@ const Cs = j(), Fs = (r, e, t) => {
790
782
  return e.test(r);
791
783
  };
792
784
  var ne = Fs;
793
- const Ds = j(), _s = (r, e) => new Ds(r, e).set.map((t) => t.map((s) => s.value).join(" ").trim().split(" "));
794
- var js = _s;
795
- const bs = F, Gs = j(), Us = (r, e, t) => {
785
+ const Ds = _(), js = (r, e) => new Ds(r, e).set.map((t) => t.map((s) => s.value).join(" ").trim().split(" "));
786
+ var _s = js;
787
+ const bs = F, Gs = _(), Us = (r, e, t) => {
796
788
  let s = null, a = null, o = null;
797
789
  try {
798
790
  o = new Gs(e, t);
@@ -804,7 +796,7 @@ const bs = F, Gs = j(), Us = (r, e, t) => {
804
796
  }), s;
805
797
  };
806
798
  var Bs = Us;
807
- const Vs = F, xs = j(), Xs = (r, e, t) => {
799
+ const Vs = F, xs = _(), Xs = (r, e, t) => {
808
800
  let s = null, a = null, o = null;
809
801
  try {
810
802
  o = new xs(e, t);
@@ -816,7 +808,7 @@ const Vs = F, xs = j(), Xs = (r, e, t) => {
816
808
  }), s;
817
809
  };
818
810
  var Ms = Xs;
819
- const ce = F, zs = j(), Je = re, Hs = (r, e) => {
811
+ const ce = F, zs = _(), We = re, Hs = (r, e) => {
820
812
  r = new zs(r, e);
821
813
  let t = new ce("0.0.0");
822
814
  if (r.test(t) || (t = new ce("0.0.0-0"), r.test(t)))
@@ -832,7 +824,7 @@ const ce = F, zs = j(), Je = re, Hs = (r, e) => {
832
824
  v.prerelease.length === 0 ? v.patch++ : v.prerelease.push(0), v.raw = v.format();
833
825
  case "":
834
826
  case ">=":
835
- (!o || Je(v, o)) && (o = v);
827
+ (!o || We(v, o)) && (o = v);
836
828
  break;
837
829
  case "<":
838
830
  case "<=":
@@ -840,28 +832,28 @@ const ce = F, zs = j(), Je = re, Hs = (r, e) => {
840
832
  default:
841
833
  throw new Error(`Unexpected operation: ${c.operator}`);
842
834
  }
843
- }), o && (!t || Je(t, o)) && (t = o);
835
+ }), o && (!t || We(t, o)) && (t = o);
844
836
  }
845
837
  return t && r.test(t) ? t : null;
846
838
  };
847
- var qs = Hs;
848
- const Js = j(), Ws = (r, e) => {
839
+ var Js = Hs;
840
+ const Ws = _(), qs = (r, e) => {
849
841
  try {
850
- return new Js(r, e).range || "*";
842
+ return new Ws(r, e).range || "*";
851
843
  } catch {
852
844
  return null;
853
845
  }
854
846
  };
855
- var Ys = Ws;
856
- const Ks = F, wt = se(), { ANY: Zs } = wt, Qs = j(), en = ne, We = re, Ye = Pe, tn = Te, rn = Ae, sn = (r, e, t, s) => {
847
+ var Ys = qs;
848
+ const Ks = F, wt = se(), { ANY: Zs } = wt, Qs = _(), en = ne, qe = re, Ye = Pe, tn = Te, rn = Ae, sn = (r, e, t, s) => {
857
849
  r = new Ks(r, s), e = new Qs(e, s);
858
850
  let a, o, c, v, n;
859
851
  switch (t) {
860
852
  case ">":
861
- a = We, o = tn, c = Ye, v = ">", n = ">=";
853
+ a = qe, o = tn, c = Ye, v = ">", n = ">=";
862
854
  break;
863
855
  case "<":
864
- a = Ye, o = rn, c = We, v = "<", n = "<=";
856
+ a = Ye, o = rn, c = qe, v = "<", n = "<=";
865
857
  break;
866
858
  default:
867
859
  throw new TypeError('Must provide a hilo val of "<" or ">"');
@@ -885,9 +877,9 @@ const nn = ye, an = (r, e, t) => nn(r, e, ">", t);
885
877
  var on = an;
886
878
  const cn = ye, ln = (r, e, t) => cn(r, e, "<", t);
887
879
  var fn = ln;
888
- const Ke = j(), un = (r, e, t) => (r = new Ke(r, t), e = new Ke(e, t), r.intersects(e, t));
880
+ const Ke = _(), un = (r, e, t) => (r = new Ke(r, t), e = new Ke(e, t), r.intersects(e, t));
889
881
  var hn = un;
890
- const pn = ne, En = _;
882
+ const pn = ne, En = j;
891
883
  var $n = (r, e, t) => {
892
884
  const s = [];
893
885
  let a = null, o = null;
@@ -901,7 +893,7 @@ var $n = (r, e, t) => {
901
893
  const n = v.join(" || "), i = typeof e.raw == "string" ? e.raw : String(e);
902
894
  return n.length < i.length ? n : e;
903
895
  };
904
- const Ze = j(), ke = se(), { ANY: le } = ke, q = ne, Ce = _, mn = (r, e, t = {}) => {
896
+ const Ze = _(), ke = se(), { ANY: le } = ke, J = ne, Ce = j, mn = (r, e, t = {}) => {
905
897
  if (r === e)
906
898
  return !0;
907
899
  r = new Ze(r, t), e = new Ze(e, t);
@@ -943,10 +935,10 @@ const Ze = j(), ke = se(), { ANY: le } = ke, q = ne, Ce = _, mn = (r, e, t = {})
943
935
  return null;
944
936
  }
945
937
  for (const E of s) {
946
- if (a && !q(E, String(a), t) || o && !q(E, String(o), t))
938
+ if (a && !J(E, String(a), t) || o && !J(E, String(o), t))
947
939
  return null;
948
940
  for (const u of e)
949
- if (!q(E, String(u), t))
941
+ if (!J(E, String(u), t))
950
942
  return !1;
951
943
  return !0;
952
944
  }
@@ -957,14 +949,14 @@ const Ze = j(), ke = se(), { ANY: le } = ke, q = ne, Ce = _, mn = (r, e, t = {})
957
949
  if (N && E.semver.prerelease && E.semver.prerelease.length && E.semver.major === N.major && E.semver.minor === N.minor && E.semver.patch === N.patch && (N = !1), E.operator === ">" || E.operator === ">=") {
958
950
  if (v = et(a, E, t), v === E && v !== a)
959
951
  return !1;
960
- } else if (a.operator === ">=" && !q(a.semver, String(E), t))
952
+ } else if (a.operator === ">=" && !J(a.semver, String(E), t))
961
953
  return !1;
962
954
  }
963
955
  if (o) {
964
956
  if (p && E.semver.prerelease && E.semver.prerelease.length && E.semver.major === p.major && E.semver.minor === p.minor && E.semver.patch === p.patch && (p = !1), E.operator === "<" || E.operator === "<=") {
965
957
  if (n = tt(o, E, t), n === E && n !== o)
966
958
  return !1;
967
- } else if (o.operator === "<=" && !q(o.semver, String(E), t))
959
+ } else if (o.operator === "<=" && !J(o.semver, String(E), t))
968
960
  return !1;
969
961
  }
970
962
  if (!E.operator && (o || a) && c !== 0)
@@ -983,7 +975,7 @@ const Ze = j(), ke = se(), { ANY: le } = ke, q = ne, Ce = _, mn = (r, e, t = {})
983
975
  return s < 0 ? r : s > 0 || e.operator === "<" && r.operator === "<=" ? e : r;
984
976
  };
985
977
  var Rn = mn;
986
- const fe = J, rt = ee, vn = F, st = dt, wn = x, In = Pr, Nn = yr, Sn = Cr, On = Dr, Ln = br, Pn = Br, An = Xr, Tn = Hr, yn = _, kn = Yr, Cn = Qr, Fn = Le, Dn = ss, _n = as, jn = re, bn = Pe, Gn = gt, Un = Rt, Bn = Ae, Vn = Te, xn = vt, Xn = Ts, Mn = se(), zn = j(), Hn = ne, qn = js, Jn = Bs, Wn = Ms, Yn = qs, Kn = Ys, Zn = ye, Qn = on, ei = fn, ti = hn, ri = $n, si = Rn;
978
+ const fe = W, rt = ee, vn = F, st = dt, wn = x, In = Pr, Nn = yr, Sn = Cr, On = Dr, Ln = br, Pn = Br, An = Xr, Tn = Hr, yn = j, kn = Yr, Cn = Qr, Fn = Le, Dn = ss, jn = as, _n = re, bn = Pe, Gn = gt, Un = Rt, Bn = Ae, Vn = Te, xn = vt, Xn = Ts, Mn = se(), zn = _(), Hn = ne, Jn = _s, Wn = Bs, qn = Ms, Yn = Js, Kn = Ys, Zn = ye, Qn = on, ei = fn, ti = hn, ri = $n, si = Rn;
987
979
  var ni = {
988
980
  parse: wn,
989
981
  valid: In,
@@ -999,8 +991,8 @@ var ni = {
999
991
  compareLoose: Cn,
1000
992
  compareBuild: Fn,
1001
993
  sort: Dn,
1002
- rsort: _n,
1003
- gt: jn,
994
+ rsort: jn,
995
+ gt: _n,
1004
996
  lt: bn,
1005
997
  eq: Gn,
1006
998
  neq: Un,
@@ -1011,9 +1003,9 @@ var ni = {
1011
1003
  Comparator: Mn,
1012
1004
  Range: zn,
1013
1005
  satisfies: Hn,
1014
- toComparators: qn,
1015
- maxSatisfying: Jn,
1016
- minSatisfying: Wn,
1006
+ toComparators: Jn,
1007
+ maxSatisfying: Wn,
1008
+ minSatisfying: qn,
1017
1009
  minVersion: Yn,
1018
1010
  validRange: Kn,
1019
1011
  outside: Zn,
@@ -1030,8 +1022,8 @@ var ni = {
1030
1022
  RELEASE_TYPES: rt.RELEASE_TYPES,
1031
1023
  compareIdentifiers: st.compareIdentifiers,
1032
1024
  rcompareIdentifiers: st.rcompareIdentifiers
1033
- }, ii = ni;
1034
- const ai = /* @__PURE__ */ ur(ii), ie = "v1/";
1025
+ };
1026
+ const ii = /* @__PURE__ */ ur(ni), ie = "v1/";
1035
1027
  function ki(r) {
1036
1028
  return `${ie}${r.organization}/${r.package}/${r.version}`;
1037
1029
  }
@@ -1042,16 +1034,16 @@ function nt(r) {
1042
1034
  return `${ie}${r.organization}/${r.package}/overview.json`;
1043
1035
  }
1044
1036
  const ue = `${ie}overview.json`, Nt = "meta.json", de = "_updates_v1/per_package_version/";
1045
- function oi(r, e) {
1037
+ function ai(r, e) {
1046
1038
  return `${de}${r.organization}/${r.package}/${r.version}/${e}`;
1047
1039
  }
1048
- const ci = /(?<packageKeyWithoutVersion>(?<organization>[^\/]+)\/(?<pkg>[^\/]+))\/(?<version>[^\/]+)\/(?<seed>[^\/]+)$/, St = "_updates_v1/_global_update_in", it = "_updates_v1/_global_update_out";
1049
- class li {
1040
+ const oi = /(?<packageKeyWithoutVersion>(?<organization>[^\/]+)\/(?<pkg>[^\/]+))\/(?<version>[^\/]+)\/(?<seed>[^\/]+)$/, St = "_updates_v1/_global_update_in", it = "_updates_v1/_global_update_out";
1041
+ class ci {
1050
1042
  constructor(e, t) {
1051
1043
  this.storage = e, this.logger = t;
1052
1044
  }
1053
1045
  constructNewPackage(e) {
1054
- return new fi(this.storage, e);
1046
+ return new li(this.storage, e);
1055
1047
  }
1056
1048
  async updateRegistry() {
1057
1049
  var c, v, n, i, f, p, N, E;
@@ -1059,7 +1051,7 @@ class li {
1059
1051
  const e = /* @__PURE__ */ new Map(), t = [], s = await this.storage.listFiles(de);
1060
1052
  (v = this.logger) == null || v.info("Packages to be updated:");
1061
1053
  for (const u of s) {
1062
- const C = u.match(ci);
1054
+ const C = u.match(oi);
1063
1055
  if (!C) continue;
1064
1056
  t.push(u);
1065
1057
  const { packageKeyWithoutVersion: T, organization: L, pkg: y, version: I, seed: X } = C.groups;
@@ -1090,7 +1082,7 @@ class li {
1090
1082
  );
1091
1083
  X && L.push({ version: I, meta: JSON.parse(X.toString()) });
1092
1084
  }
1093
- L.sort((y, I) => ai.compare(I.version, y.version)), await this.storage.putFile(C, Buffer.from(JSON.stringify(L))), (p = this.logger) == null || p.info(`Done (${L.length} records)`), o = o.filter(
1085
+ L.sort((y, I) => ii.compare(I.version, y.version)), await this.storage.putFile(C, Buffer.from(JSON.stringify(L))), (p = this.logger) == null || p.info(`Done (${L.length} records)`), o = o.filter(
1094
1086
  (y) => y.organization !== u.package.organization || y.package !== u.package.package
1095
1087
  ), o.push({
1096
1088
  organization: u.package.organization,
@@ -1119,10 +1111,10 @@ class li {
1119
1111
  return JSON.parse(e.toString());
1120
1112
  }
1121
1113
  }
1122
- class fi {
1114
+ class li {
1123
1115
  constructor(e, t) {
1124
- W(this, "metaAdded", !1);
1125
- W(this, "seed", Xt());
1116
+ q(this, "metaAdded", !1);
1117
+ q(this, "seed", Xt());
1126
1118
  this.storage = e, this.name = t;
1127
1119
  }
1128
1120
  async addFile(e, t) {
@@ -1133,10 +1125,10 @@ class fi {
1133
1125
  }
1134
1126
  async finish() {
1135
1127
  if (!this.metaAdded) throw new Error("meta not added");
1136
- await this.storage.putFile(oi(this.name, this.seed), Buffer.of(0)), await this.storage.putFile(St, Buffer.from(this.seed));
1128
+ await this.storage.putFile(ai(this.name, this.seed), Buffer.of(0)), await this.storage.putFile(St, Buffer.from(this.seed));
1137
1129
  }
1138
1130
  }
1139
- class ui {
1131
+ class fi {
1140
1132
  constructor(e, t, s) {
1141
1133
  this.client = e, this.bucket = t, this.root = s;
1142
1134
  }
@@ -1186,10 +1178,10 @@ class ui {
1186
1178
  `)}`);
1187
1179
  }
1188
1180
  }
1189
- class hi {
1181
+ class ui {
1190
1182
  constructor(e) {
1191
1183
  /** Absolute path */
1192
- W(this, "root");
1184
+ q(this, "root");
1193
1185
  this.root = k.resolve(e);
1194
1186
  }
1195
1187
  toAbsolutePath(e) {
@@ -1223,17 +1215,17 @@ class hi {
1223
1215
  for (const t of e) await H.promises.rm(this.toAbsolutePath(t));
1224
1216
  }
1225
1217
  }
1226
- function pi(r) {
1218
+ function hi(r) {
1227
1219
  const e = new URL(r, `file:${k.resolve(".").split(k.sep).join(G.sep)}/`);
1228
1220
  switch (e.protocol) {
1229
1221
  case "file:":
1230
1222
  const t = k.resolve(e.pathname);
1231
- return new hi(t);
1223
+ return new ui(t);
1232
1224
  case "s3:":
1233
1225
  const s = {}, a = e.searchParams.get("region");
1234
1226
  a && (s.region = a);
1235
1227
  const o = e.hostname;
1236
- return new ui(new Mt(s), o, e.pathname.replace(/^\//, ""));
1228
+ return new fi(new Mt(s), o, e.pathname.replace(/^\//, ""));
1237
1229
  default:
1238
1230
  throw new Error(`Unknown protocol: ${e.protocol}`);
1239
1231
  }
@@ -1252,11 +1244,11 @@ async function he(r) {
1252
1244
  async function pe(r) {
1253
1245
  return Ne(r, (e) => Se.parse(xt.parse(e.toString())));
1254
1246
  }
1255
- async function Ei() {
1247
+ async function pi() {
1256
1248
  let r = Se.parse({});
1257
1249
  return r = U(r, await he("./.pl.reg.json")), r = U(r, await pe("./.pl.reg.yaml")), r = U(r, await he(`${De.homedir()}/.pl.reg.json`)), r = U(r, await pe(`${De.homedir()}/.pl.reg.yaml`)), r = U(r, await he(lr)), r = U(r, await pe(fr)), r;
1258
1250
  }
1259
- class $i {
1251
+ class Ei {
1260
1252
  constructor(e) {
1261
1253
  this.conf = e;
1262
1254
  }
@@ -1267,7 +1259,7 @@ class $i {
1267
1259
  if (!s) throw new Error(`Registry with alias "${t}" not found`);
1268
1260
  t = s;
1269
1261
  }
1270
- return new li(pi(t), e);
1262
+ return new ci(hi(t), e);
1271
1263
  }
1272
1264
  get fullPackageName() {
1273
1265
  return {
@@ -1278,8 +1270,8 @@ class $i {
1278
1270
  }
1279
1271
  }
1280
1272
  async function Ci(r) {
1281
- const e = await Ei();
1282
- return new $i(
1273
+ const e = await pi();
1274
+ return new Ei(
1283
1275
  Et.parse(U(e, r))
1284
1276
  );
1285
1277
  }
@@ -1287,7 +1279,7 @@ export {
1287
1279
  Ee as A,
1288
1280
  Pi as B,
1289
1281
  Yt as C,
1290
- je as D,
1282
+ _e as D,
1291
1283
  $e as E,
1292
1284
  pt as F,
1293
1285
  ue as G,
@@ -1304,7 +1296,7 @@ export {
1304
1296
  Ci as g,
1305
1297
  cr as h,
1306
1298
  Et as i,
1307
- $i as j,
1299
+ Ei as j,
1308
1300
  nt as k,
1309
1301
  ir as l,
1310
1302
  It as m,
@@ -1317,9 +1309,9 @@ export {
1317
1309
  Zt as t,
1318
1310
  Li as u,
1319
1311
  Ht as v,
1320
- qt as w,
1321
- _e as x,
1322
- Jt as y,
1323
- Wt as z
1312
+ Jt as w,
1313
+ je as x,
1314
+ Wt as y,
1315
+ qt as z
1324
1316
  };
1325
- //# sourceMappingURL=config-jteHItEq.mjs.map
1317
+ //# sourceMappingURL=config-Br5DwFuM.mjs.map