@junando/core 0.10.1 → 0.11.1
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/index.d.ts +829 -577
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1877 -9909
- package/dist/index.js.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/shared/metrics/index.d.ts +29 -0
- package/dist/shared/metrics/index.d.ts.map +1 -0
- package/dist/shared/metrics/index.js +131 -0
- package/dist/shared/metrics/index.js.map +1 -0
- package/package.json +12 -11
- package/dist/chunk-3OJNTHWB.js +0 -225
- package/dist/chunk-5LNMHOUT.js +0 -229
- package/dist/chunk-72FU6SG6.js +0 -236
- package/dist/chunk-7SYJ764U.js +0 -579
- package/dist/chunk-AZU6S4RC.js +0 -11
- package/dist/chunk-BGPI5BQ5.js +0 -27
- package/dist/chunk-DKQSWD3S.js +0 -46
- package/dist/chunk-H4ND7Z4R.js +0 -504
- package/dist/chunk-HVICRLMN.js +0 -742
- package/dist/chunk-ID7PWYSN.js +0 -12
- package/dist/chunk-KU245W3C.js +0 -16
- package/dist/chunk-L67CO4EG.js +0 -1038
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/chunk-MQ4JUE6V.js +0 -447
- package/dist/chunk-N5AJP37P.js +0 -385
- package/dist/chunk-SIDCDO4Q.js +0 -1315
- package/dist/chunk-TDZF3WAT.js +0 -3824
- package/dist/chunk-VMBT3R2K.js +0 -0
- package/dist/chunk-WWHXKECU.js +0 -100
- package/dist/chunk-ZKH7AMP3.js +0 -42
- package/dist/chunk-ZOU3QHNL.js +0 -28
- package/dist/dist-es-CBFEDVZZ.js +0 -493
- package/dist/dist-es-ROXOWRKX.js +0 -22
- package/dist/dist-es-S3QCFNII.js +0 -327
- package/dist/dist-es-SQCUDQ4Y.js +0 -90
- package/dist/dist-es-UWOSB3KA.js +0 -72
- package/dist/dist-es-VXERFT35.js +0 -172
- package/dist/dist-es-Y44CAW7E.js +0 -385
- package/dist/event-streams-2IMLK3TK.js +0 -252
- package/dist/event-streams-NLZW3NHF.js +0 -1376
- package/dist/loadSso-T6VCDGCZ.js +0 -558
- package/dist/signin-BC6ZNJCV.js +0 -653
- package/dist/sso-oidc-PTS5E3NX.js +0 -793
- package/dist/sts-JSJ57UXB.js +0 -6108
package/dist/chunk-72FU6SG6.js
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IniSectionType
|
|
3
|
-
} from "./chunk-AZU6S4RC.js";
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js
|
|
6
|
-
var ENV_PROFILE = "AWS_PROFILE";
|
|
7
|
-
var DEFAULT_PROFILE = "default";
|
|
8
|
-
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
9
|
-
|
|
10
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
|
|
11
|
-
import { join } from "path";
|
|
12
|
-
|
|
13
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js
|
|
14
|
-
import { homedir } from "os";
|
|
15
|
-
import { sep } from "path";
|
|
16
|
-
var homeDirCache = {};
|
|
17
|
-
var getHomeDirCacheKey = () => {
|
|
18
|
-
if (process && process.geteuid) {
|
|
19
|
-
return `${process.geteuid()}`;
|
|
20
|
-
}
|
|
21
|
-
return "DEFAULT";
|
|
22
|
-
};
|
|
23
|
-
var getHomeDir = () => {
|
|
24
|
-
const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
|
|
25
|
-
if (HOME)
|
|
26
|
-
return HOME;
|
|
27
|
-
if (USERPROFILE)
|
|
28
|
-
return USERPROFILE;
|
|
29
|
-
if (HOMEPATH)
|
|
30
|
-
return `${HOMEDRIVE}${HOMEPATH}`;
|
|
31
|
-
const homeDirCacheKey = getHomeDirCacheKey();
|
|
32
|
-
if (!homeDirCache[homeDirCacheKey])
|
|
33
|
-
homeDirCache[homeDirCacheKey] = homedir();
|
|
34
|
-
return homeDirCache[homeDirCacheKey];
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
|
|
38
|
-
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
39
|
-
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
|
|
40
|
-
|
|
41
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
|
|
42
|
-
import { join as join3 } from "path";
|
|
43
|
-
|
|
44
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js
|
|
45
|
-
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
46
|
-
|
|
47
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js
|
|
48
|
-
var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
49
|
-
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
50
|
-
if (indexOfSeparator === -1) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
|
|
54
|
-
}).reduce((acc, [key, value]) => {
|
|
55
|
-
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
56
|
-
const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
|
|
57
|
-
acc[updatedKey] = value;
|
|
58
|
-
return acc;
|
|
59
|
-
}, {
|
|
60
|
-
...data.default && { default: data.default }
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js
|
|
64
|
-
import { join as join2 } from "path";
|
|
65
|
-
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
66
|
-
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
|
|
67
|
-
|
|
68
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js
|
|
69
|
-
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
70
|
-
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
71
|
-
var parseIni = (iniData) => {
|
|
72
|
-
const map = {};
|
|
73
|
-
let currentSection;
|
|
74
|
-
let currentSubSection;
|
|
75
|
-
for (const iniLine of iniData.split(/\r?\n/)) {
|
|
76
|
-
const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
|
|
77
|
-
const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
|
|
78
|
-
if (isSection) {
|
|
79
|
-
currentSection = void 0;
|
|
80
|
-
currentSubSection = void 0;
|
|
81
|
-
const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
|
|
82
|
-
const matches = prefixKeyRegex.exec(sectionName);
|
|
83
|
-
if (matches) {
|
|
84
|
-
const [, prefix, , name] = matches;
|
|
85
|
-
if (Object.values(IniSectionType).includes(prefix)) {
|
|
86
|
-
currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
currentSection = sectionName;
|
|
90
|
-
}
|
|
91
|
-
if (profileNameBlockList.includes(sectionName)) {
|
|
92
|
-
throw new Error(`Found invalid profile name "${sectionName}"`);
|
|
93
|
-
}
|
|
94
|
-
} else if (currentSection) {
|
|
95
|
-
const indexOfEqualsSign = trimmedLine.indexOf("=");
|
|
96
|
-
if (![0, -1].includes(indexOfEqualsSign)) {
|
|
97
|
-
const [name, value] = [
|
|
98
|
-
trimmedLine.substring(0, indexOfEqualsSign).trim(),
|
|
99
|
-
trimmedLine.substring(indexOfEqualsSign + 1).trim()
|
|
100
|
-
];
|
|
101
|
-
if (value === "") {
|
|
102
|
-
currentSubSection = name;
|
|
103
|
-
} else {
|
|
104
|
-
if (currentSubSection && iniLine.trimStart() === iniLine) {
|
|
105
|
-
currentSubSection = void 0;
|
|
106
|
-
}
|
|
107
|
-
map[currentSection] = map[currentSection] || {};
|
|
108
|
-
const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
|
|
109
|
-
map[currentSection][key] = value;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return map;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js
|
|
118
|
-
import { readFile as fsReadFile } from "fs/promises";
|
|
119
|
-
var filePromises = {};
|
|
120
|
-
var fileIntercept = {};
|
|
121
|
-
var readFile = (path, options) => {
|
|
122
|
-
if (fileIntercept[path] !== void 0) {
|
|
123
|
-
return fileIntercept[path];
|
|
124
|
-
}
|
|
125
|
-
if (!filePromises[path] || options?.ignoreCache) {
|
|
126
|
-
filePromises[path] = fsReadFile(path, "utf8");
|
|
127
|
-
}
|
|
128
|
-
return filePromises[path];
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
|
|
132
|
-
var swallowError = () => ({});
|
|
133
|
-
var loadSharedConfigFiles = async (init = {}) => {
|
|
134
|
-
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
135
|
-
const homeDir = getHomeDir();
|
|
136
|
-
const relativeHomeDirPrefix = "~/";
|
|
137
|
-
let resolvedFilepath = filepath;
|
|
138
|
-
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
139
|
-
resolvedFilepath = join3(homeDir, filepath.slice(2));
|
|
140
|
-
}
|
|
141
|
-
let resolvedConfigFilepath = configFilepath;
|
|
142
|
-
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
143
|
-
resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
|
|
144
|
-
}
|
|
145
|
-
const parsedFiles = await Promise.all([
|
|
146
|
-
readFile(resolvedConfigFilepath, {
|
|
147
|
-
ignoreCache: init.ignoreCache
|
|
148
|
-
}).then(parseIni).then(getConfigData).catch(swallowError),
|
|
149
|
-
readFile(resolvedFilepath, {
|
|
150
|
-
ignoreCache: init.ignoreCache
|
|
151
|
-
}).then(parseIni).catch(swallowError)
|
|
152
|
-
]);
|
|
153
|
-
return {
|
|
154
|
-
configFile: parsedFiles[0],
|
|
155
|
-
credentialsFile: parsedFiles[1]
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
|
|
160
|
-
var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
|
|
161
|
-
|
|
162
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js
|
|
163
|
-
var swallowError2 = () => ({});
|
|
164
|
-
var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
|
|
165
|
-
|
|
166
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js
|
|
167
|
-
var mergeConfigFiles = (...files) => {
|
|
168
|
-
const merged = {};
|
|
169
|
-
for (const file of files) {
|
|
170
|
-
for (const [key, values] of Object.entries(file)) {
|
|
171
|
-
if (merged[key] !== void 0) {
|
|
172
|
-
Object.assign(merged[key], values);
|
|
173
|
-
} else {
|
|
174
|
-
merged[key] = values;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
return merged;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js
|
|
182
|
-
var parseKnownFiles = async (init) => {
|
|
183
|
-
const parsedFiles = await loadSharedConfigFiles(init);
|
|
184
|
-
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
|
|
188
|
-
import { readFile as readFile2 } from "fs/promises";
|
|
189
|
-
|
|
190
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
|
|
191
|
-
import { createHash } from "crypto";
|
|
192
|
-
import { join as join4 } from "path";
|
|
193
|
-
var getSSOTokenFilepath = (id) => {
|
|
194
|
-
const hasher = createHash("sha1");
|
|
195
|
-
const cacheName = hasher.update(id).digest("hex");
|
|
196
|
-
return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
|
|
200
|
-
var tokenIntercept = {};
|
|
201
|
-
var getSSOTokenFromFile = async (id) => {
|
|
202
|
-
if (tokenIntercept[id]) {
|
|
203
|
-
return tokenIntercept[id];
|
|
204
|
-
}
|
|
205
|
-
const ssoTokenFilepath = getSSOTokenFilepath(id);
|
|
206
|
-
const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
|
|
207
|
-
return JSON.parse(ssoTokenText);
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
// ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js
|
|
211
|
-
var externalDataInterceptor = {
|
|
212
|
-
getFileRecord() {
|
|
213
|
-
return fileIntercept;
|
|
214
|
-
},
|
|
215
|
-
interceptFile(path, contents) {
|
|
216
|
-
fileIntercept[path] = Promise.resolve(contents);
|
|
217
|
-
},
|
|
218
|
-
getTokenRecord() {
|
|
219
|
-
return tokenIntercept;
|
|
220
|
-
},
|
|
221
|
-
interceptToken(id, contents) {
|
|
222
|
-
tokenIntercept[id] = contents;
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export {
|
|
227
|
-
ENV_PROFILE,
|
|
228
|
-
getProfileName,
|
|
229
|
-
getSSOTokenFilepath,
|
|
230
|
-
getSSOTokenFromFile,
|
|
231
|
-
readFile,
|
|
232
|
-
loadSharedConfigFiles,
|
|
233
|
-
loadSsoSessionData,
|
|
234
|
-
parseKnownFiles,
|
|
235
|
-
externalDataInterceptor
|
|
236
|
-
};
|