@larkup/cli 0.3.0 → 0.3.2

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.
Files changed (39) hide show
  1. package/dist/{chunk-ODWAFTDP.js → chunk-2IVYLF4F.js} +1 -1
  2. package/dist/chunk-3GL3SZFJ.js +212 -0
  3. package/dist/chunk-5BX2UVG2.js +2352 -0
  4. package/dist/chunk-5RGEHTEF.js +646 -0
  5. package/dist/{chunk-YUC4VMEE.js → chunk-77BPWBHR.js} +2 -1
  6. package/dist/{chunk-65EVYGDT.js → chunk-7KURHXYU.js} +38 -38
  7. package/dist/chunk-A2PXF6Y7.js +1426 -0
  8. package/dist/{chunk-3EBUYTA7.js → chunk-ERDDY5EQ.js} +1 -1
  9. package/dist/{chunk-N6IF5QLH.js → chunk-HQPSE5ZU.js} +28 -36
  10. package/dist/chunk-IPKRK5UI.js +73 -0
  11. package/dist/{chunk-HAABLEPO.js → chunk-QAJSSODU.js} +1 -12
  12. package/dist/{chunk-BDMLJQRN.js → chunk-QKPH65NY.js} +1 -1
  13. package/dist/{chunk-S5DCG3CZ.js → chunk-RN25NOBI.js} +3 -3
  14. package/dist/{chunk-HOPZALAP.js → chunk-TJPYJ5TS.js} +1 -1
  15. package/dist/{chunk-FY7KWENQ.js → chunk-WVF2A44B.js} +11 -4
  16. package/dist/{chunk-4XN2IRCG.js → chunk-ZBGNJVTC.js} +3 -3
  17. package/dist/chunk-ZYHZIBTH.js +1272 -0
  18. package/dist/{dist-es-S5FAFKBD.js → dist-es-3L6W7F7P.js} +4 -4
  19. package/dist/{dist-es-YD724GH3.js → dist-es-6MPMKRLG.js} +21 -21
  20. package/dist/{dist-es-F6WXDZQY.js → dist-es-7LQAPSS6.js} +7 -7
  21. package/dist/{dist-es-NEADJWQM.js → dist-es-CVOBCRJ5.js} +9 -9
  22. package/dist/{dist-es-5DTOPEBY.js → dist-es-DAE2AYZV.js} +30 -23
  23. package/dist/{dist-es-BM4STLL5.js → dist-es-G4H4NZOY.js} +7 -7
  24. package/dist/{dist-es-LH5Y4P7D.js → dist-es-HV6ZWB2M.js} +8 -8
  25. package/dist/{dist-es-KMHWFNXI.js → dist-es-PQXH3VYE.js} +12 -9
  26. package/dist/{dist-es-3QFDPX44.js → dist-es-RGSF6JKX.js} +255 -231
  27. package/dist/{dist-es-DS5SFRTK.js → dist-es-UWL5EGDP.js} +1 -1
  28. package/dist/{chunk-FUTLPXFR.js → event-streams-NVY5IGD3.js} +31 -31
  29. package/dist/{event-streams-NPIZBVLJ.js → event-streams-RZ2JU5EF.js} +1 -2
  30. package/dist/index.js +43 -20
  31. package/dist/{loadSso-HXXA5UNF.js → loadSso-DEHYSFO4.js} +66 -62
  32. package/dist/{signin-7FUGJFG3.js → signin-CTAMN4QW.js} +70 -66
  33. package/dist/{sso-oidc-EPMF7LMF.js → sso-oidc-ZYLSPNAE.js} +69 -65
  34. package/dist/{sts-RBEOIBEJ.js → sts-EQDDSBAR.js} +75 -71
  35. package/dist/{tool-loader-2WHU3H77.js → tool-loader-UCLZNPMP.js} +2 -2
  36. package/dist/{tool-registry-JS5NUNN6.js → tool-registry-BNRTSH77.js} +3 -1
  37. package/package.json +13 -13
  38. package/dist/chunk-A7HMSODH.js +0 -126
  39. package/dist/chunk-MYOADNR2.js +0 -515
@@ -3,7 +3,7 @@ import {
3
3
  SelectorType,
4
4
  booleanSelector,
5
5
  loadConfig
6
- } from "./chunk-HAABLEPO.js";
6
+ } from "./chunk-QAJSSODU.js";
7
7
  import {
8
8
  AlgorithmId,
9
9
  EndpointURLScheme,
@@ -0,0 +1,212 @@
1
+ // ../../node_modules/.pnpm/@smithy+types@4.18.0/node_modules/@smithy/types/dist-es/extensions/checksum.js
2
+ var AlgorithmId;
3
+ (function(AlgorithmId2) {
4
+ AlgorithmId2["MD5"] = "md5";
5
+ AlgorithmId2["CRC32"] = "crc32";
6
+ AlgorithmId2["CRC32C"] = "crc32c";
7
+ AlgorithmId2["SHA1"] = "sha1";
8
+ AlgorithmId2["SHA256"] = "sha256";
9
+ })(AlgorithmId || (AlgorithmId = {}));
10
+
11
+ // ../../node_modules/.pnpm/@smithy+types@4.18.0/node_modules/@smithy/types/dist-es/middleware.js
12
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
13
+
14
+ // ../../node_modules/.pnpm/@smithy+types@4.18.0/node_modules/@smithy/types/dist-es/endpoint.js
15
+ var EndpointURLScheme;
16
+ (function(EndpointURLScheme2) {
17
+ EndpointURLScheme2["HTTP"] = "http";
18
+ EndpointURLScheme2["HTTPS"] = "https";
19
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
20
+
21
+ // ../../node_modules/.pnpm/@smithy+types@4.18.0/node_modules/@smithy/types/dist-es/profile.js
22
+ var IniSectionType;
23
+ (function(IniSectionType2) {
24
+ IniSectionType2["PROFILE"] = "profile";
25
+ IniSectionType2["SSO_SESSION"] = "sso-session";
26
+ IniSectionType2["SERVICES"] = "services";
27
+ })(IniSectionType || (IniSectionType = {}));
28
+
29
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js
30
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
31
+
32
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js
33
+ function hasOwn(o, k) {
34
+ return Object.prototype.hasOwnProperty.call(o, k);
35
+ }
36
+
37
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js
38
+ var normalizeProvider = (input) => {
39
+ if (typeof input === "function")
40
+ return input;
41
+ const promisified = Promise.resolve(input);
42
+ return () => promisified;
43
+ };
44
+
45
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/httpRequest.js
46
+ var HttpRequest = class _HttpRequest {
47
+ method;
48
+ protocol;
49
+ hostname;
50
+ port;
51
+ path;
52
+ query;
53
+ headers;
54
+ username;
55
+ password;
56
+ fragment;
57
+ body;
58
+ constructor(options) {
59
+ this.method = options.method || "GET";
60
+ this.hostname = options.hostname || "localhost";
61
+ this.port = options.port;
62
+ this.query = options.query || {};
63
+ this.headers = options.headers || {};
64
+ this.body = options.body;
65
+ this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
66
+ this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
67
+ this.username = options.username;
68
+ this.password = options.password;
69
+ this.fragment = options.fragment;
70
+ }
71
+ static clone(request) {
72
+ const cloned = new _HttpRequest({
73
+ ...request,
74
+ headers: { ...request.headers }
75
+ });
76
+ if (cloned.query) {
77
+ cloned.query = cloneQuery(cloned.query);
78
+ }
79
+ return cloned;
80
+ }
81
+ static isInstance(request) {
82
+ if (!request) {
83
+ return false;
84
+ }
85
+ const req = request;
86
+ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
87
+ }
88
+ clone() {
89
+ return _HttpRequest.clone(this);
90
+ }
91
+ };
92
+ function cloneQuery(query) {
93
+ return Object.keys(query).reduce((carry, paramName) => {
94
+ const param = query[paramName];
95
+ return {
96
+ ...carry,
97
+ [paramName]: Array.isArray(param) ? [...param] : param
98
+ };
99
+ }, {});
100
+ }
101
+
102
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js
103
+ var HttpResponse = class {
104
+ statusCode;
105
+ reason;
106
+ headers;
107
+ body;
108
+ constructor(options) {
109
+ this.statusCode = options.statusCode;
110
+ this.reason = options.reason;
111
+ this.headers = options.headers || {};
112
+ this.body = options.body;
113
+ }
114
+ static isInstance(response) {
115
+ if (!response)
116
+ return false;
117
+ const resp = response;
118
+ return typeof resp.statusCode === "number" && typeof resp.headers === "object";
119
+ }
120
+ };
121
+
122
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostLabel.js
123
+ var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
124
+ var isValidHostLabel = (value, allowSubDomains = false) => {
125
+ if (!allowSubDomains) {
126
+ return VALID_HOST_LABEL_REGEX.test(value);
127
+ }
128
+ const labels = value.split(".");
129
+ for (const label of labels) {
130
+ if (!isValidHostLabel(label)) {
131
+ return false;
132
+ }
133
+ }
134
+ return true;
135
+ };
136
+
137
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/parseQueryString.js
138
+ function parseQueryString(querystring) {
139
+ const query = {};
140
+ querystring = querystring.replace(/^\?/, "");
141
+ if (querystring) {
142
+ for (const pair of querystring.split("&")) {
143
+ let [key, value = null] = pair.split("=");
144
+ key = decodeURIComponent(key);
145
+ if (value) {
146
+ value = decodeURIComponent(value);
147
+ }
148
+ if (!(key in query)) {
149
+ query[key] = value;
150
+ } else if (Array.isArray(query[key])) {
151
+ query[key].push(value);
152
+ } else {
153
+ query[key] = [query[key], value];
154
+ }
155
+ }
156
+ }
157
+ return query;
158
+ }
159
+
160
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/parseUrl.js
161
+ var parseUrl = (url) => {
162
+ if (typeof url === "string") {
163
+ return parseUrl(new URL(url));
164
+ }
165
+ const { hostname, pathname, port, protocol, search } = url;
166
+ let query;
167
+ if (search) {
168
+ query = parseQueryString(search);
169
+ }
170
+ return {
171
+ hostname,
172
+ port: port ? parseInt(port) : void 0,
173
+ protocol,
174
+ path: pathname,
175
+ query
176
+ };
177
+ };
178
+
179
+ // ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js
180
+ var toEndpointV1 = (endpoint) => {
181
+ if (typeof endpoint === "object") {
182
+ if ("url" in endpoint) {
183
+ const v1Endpoint = parseUrl(endpoint.url);
184
+ if (endpoint.headers) {
185
+ v1Endpoint.headers = {};
186
+ for (const name in endpoint.headers) {
187
+ if (!hasOwn(endpoint.headers, name))
188
+ continue;
189
+ v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
190
+ }
191
+ }
192
+ return v1Endpoint;
193
+ }
194
+ return endpoint;
195
+ }
196
+ return parseUrl(endpoint);
197
+ };
198
+
199
+ export {
200
+ EndpointURLScheme,
201
+ AlgorithmId,
202
+ SMITHY_CONTEXT_KEY,
203
+ IniSectionType,
204
+ getSmithyContext,
205
+ hasOwn,
206
+ HttpRequest,
207
+ HttpResponse,
208
+ isValidHostLabel,
209
+ normalizeProvider,
210
+ parseUrl,
211
+ toEndpointV1
212
+ };