@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.
Files changed (44) hide show
  1. package/dist/index.d.ts +829 -577
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +1877 -9909
  4. package/dist/index.js.map +1 -0
  5. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  6. package/dist/shared/metrics/index.d.ts +29 -0
  7. package/dist/shared/metrics/index.d.ts.map +1 -0
  8. package/dist/shared/metrics/index.js +131 -0
  9. package/dist/shared/metrics/index.js.map +1 -0
  10. package/package.json +12 -11
  11. package/dist/chunk-3OJNTHWB.js +0 -225
  12. package/dist/chunk-5LNMHOUT.js +0 -229
  13. package/dist/chunk-72FU6SG6.js +0 -236
  14. package/dist/chunk-7SYJ764U.js +0 -579
  15. package/dist/chunk-AZU6S4RC.js +0 -11
  16. package/dist/chunk-BGPI5BQ5.js +0 -27
  17. package/dist/chunk-DKQSWD3S.js +0 -46
  18. package/dist/chunk-H4ND7Z4R.js +0 -504
  19. package/dist/chunk-HVICRLMN.js +0 -742
  20. package/dist/chunk-ID7PWYSN.js +0 -12
  21. package/dist/chunk-KU245W3C.js +0 -16
  22. package/dist/chunk-L67CO4EG.js +0 -1038
  23. package/dist/chunk-MLKGABMK.js +0 -9
  24. package/dist/chunk-MQ4JUE6V.js +0 -447
  25. package/dist/chunk-N5AJP37P.js +0 -385
  26. package/dist/chunk-SIDCDO4Q.js +0 -1315
  27. package/dist/chunk-TDZF3WAT.js +0 -3824
  28. package/dist/chunk-VMBT3R2K.js +0 -0
  29. package/dist/chunk-WWHXKECU.js +0 -100
  30. package/dist/chunk-ZKH7AMP3.js +0 -42
  31. package/dist/chunk-ZOU3QHNL.js +0 -28
  32. package/dist/dist-es-CBFEDVZZ.js +0 -493
  33. package/dist/dist-es-ROXOWRKX.js +0 -22
  34. package/dist/dist-es-S3QCFNII.js +0 -327
  35. package/dist/dist-es-SQCUDQ4Y.js +0 -90
  36. package/dist/dist-es-UWOSB3KA.js +0 -72
  37. package/dist/dist-es-VXERFT35.js +0 -172
  38. package/dist/dist-es-Y44CAW7E.js +0 -385
  39. package/dist/event-streams-2IMLK3TK.js +0 -252
  40. package/dist/event-streams-NLZW3NHF.js +0 -1376
  41. package/dist/loadSso-T6VCDGCZ.js +0 -558
  42. package/dist/signin-BC6ZNJCV.js +0 -653
  43. package/dist/sso-oidc-PTS5E3NX.js +0 -793
  44. package/dist/sts-JSJ57UXB.js +0 -6108
@@ -1,385 +0,0 @@
1
- import {
2
- LazyJsonString,
3
- NormalizedSchema,
4
- NumericValue,
5
- SerdeContext,
6
- determineTimestampFormat
7
- } from "./chunk-TDZF3WAT.js";
8
- import {
9
- fromBase64
10
- } from "./chunk-H4ND7Z4R.js";
11
- import {
12
- toUtf8
13
- } from "./chunk-ZKH7AMP3.js";
14
-
15
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
16
- var NoAuthSigner = class {
17
- async sign(httpRequest, identity, signingProperties) {
18
- return httpRequest;
19
- }
20
- };
21
-
22
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/package.json
23
- var package_default = {
24
- name: "@aws-sdk/nested-clients",
25
- version: "3.997.6",
26
- description: "Nested clients for AWS SDK packages.",
27
- main: "./dist-cjs/index.js",
28
- module: "./dist-es/index.js",
29
- types: "./dist-types/index.d.ts",
30
- scripts: {
31
- build: "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
32
- "build:cjs": "node ../../scripts/compilation/inline nested-clients",
33
- "build:es": "tsc -p tsconfig.es.json",
34
- "build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
35
- "build:types": "tsc -p tsconfig.types.json",
36
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
37
- clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
38
- lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
39
- test: "yarn g:vitest run",
40
- "test:watch": "yarn g:vitest watch"
41
- },
42
- engines: {
43
- node: ">=20.0.0"
44
- },
45
- sideEffects: false,
46
- author: {
47
- name: "AWS SDK for JavaScript Team",
48
- url: "https://aws.amazon.com/javascript/"
49
- },
50
- license: "Apache-2.0",
51
- dependencies: {
52
- "@aws-crypto/sha256-browser": "5.2.0",
53
- "@aws-crypto/sha256-js": "5.2.0",
54
- "@aws-sdk/core": "^3.974.8",
55
- "@aws-sdk/middleware-host-header": "^3.972.10",
56
- "@aws-sdk/middleware-logger": "^3.972.10",
57
- "@aws-sdk/middleware-recursion-detection": "^3.972.11",
58
- "@aws-sdk/middleware-user-agent": "^3.972.38",
59
- "@aws-sdk/region-config-resolver": "^3.972.13",
60
- "@aws-sdk/signature-v4-multi-region": "^3.996.25",
61
- "@aws-sdk/types": "^3.973.8",
62
- "@aws-sdk/util-endpoints": "^3.996.8",
63
- "@aws-sdk/util-user-agent-browser": "^3.972.10",
64
- "@aws-sdk/util-user-agent-node": "^3.973.24",
65
- "@smithy/config-resolver": "^4.4.17",
66
- "@smithy/core": "^3.23.17",
67
- "@smithy/fetch-http-handler": "^5.3.17",
68
- "@smithy/hash-node": "^4.2.14",
69
- "@smithy/invalid-dependency": "^4.2.14",
70
- "@smithy/middleware-content-length": "^4.2.14",
71
- "@smithy/middleware-endpoint": "^4.4.32",
72
- "@smithy/middleware-retry": "^4.5.7",
73
- "@smithy/middleware-serde": "^4.2.20",
74
- "@smithy/middleware-stack": "^4.2.14",
75
- "@smithy/node-config-provider": "^4.3.14",
76
- "@smithy/node-http-handler": "^4.6.1",
77
- "@smithy/protocol-http": "^5.3.14",
78
- "@smithy/smithy-client": "^4.12.13",
79
- "@smithy/types": "^4.14.1",
80
- "@smithy/url-parser": "^4.2.14",
81
- "@smithy/util-base64": "^4.3.2",
82
- "@smithy/util-body-length-browser": "^4.2.2",
83
- "@smithy/util-body-length-node": "^4.2.3",
84
- "@smithy/util-defaults-mode-browser": "^4.3.49",
85
- "@smithy/util-defaults-mode-node": "^4.2.54",
86
- "@smithy/util-endpoints": "^3.4.2",
87
- "@smithy/util-middleware": "^4.2.14",
88
- "@smithy/util-retry": "^4.3.6",
89
- "@smithy/util-utf8": "^4.2.2",
90
- tslib: "^2.6.2"
91
- },
92
- devDependencies: {
93
- concurrently: "7.0.0",
94
- "downlevel-dts": "0.10.1",
95
- premove: "4.0.0",
96
- typescript: "~5.8.3"
97
- },
98
- typesVersions: {
99
- "<4.5": {
100
- "dist-types/*": [
101
- "dist-types/ts3.4/*"
102
- ]
103
- }
104
- },
105
- files: [
106
- "./cognito-identity.d.ts",
107
- "./cognito-identity.js",
108
- "./signin.d.ts",
109
- "./signin.js",
110
- "./sso-oidc.d.ts",
111
- "./sso-oidc.js",
112
- "./sso.d.ts",
113
- "./sso.js",
114
- "./sts.d.ts",
115
- "./sts.js",
116
- "dist-*/**"
117
- ],
118
- browser: {
119
- "./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser",
120
- "./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
121
- "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
122
- "./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser",
123
- "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
124
- },
125
- "react-native": {},
126
- homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
127
- repository: {
128
- type: "git",
129
- url: "https://github.com/aws/aws-sdk-js-v3.git",
130
- directory: "packages/nested-clients"
131
- },
132
- exports: {
133
- "./package.json": "./package.json",
134
- "./sso-oidc": {
135
- types: "./dist-types/submodules/sso-oidc/index.d.ts",
136
- module: "./dist-es/submodules/sso-oidc/index.js",
137
- node: "./dist-cjs/submodules/sso-oidc/index.js",
138
- import: "./dist-es/submodules/sso-oidc/index.js",
139
- require: "./dist-cjs/submodules/sso-oidc/index.js"
140
- },
141
- "./sts": {
142
- types: "./dist-types/submodules/sts/index.d.ts",
143
- module: "./dist-es/submodules/sts/index.js",
144
- node: "./dist-cjs/submodules/sts/index.js",
145
- import: "./dist-es/submodules/sts/index.js",
146
- require: "./dist-cjs/submodules/sts/index.js"
147
- },
148
- "./signin": {
149
- types: "./dist-types/submodules/signin/index.d.ts",
150
- module: "./dist-es/submodules/signin/index.js",
151
- node: "./dist-cjs/submodules/signin/index.js",
152
- import: "./dist-es/submodules/signin/index.js",
153
- require: "./dist-cjs/submodules/signin/index.js"
154
- },
155
- "./cognito-identity": {
156
- types: "./dist-types/submodules/cognito-identity/index.d.ts",
157
- module: "./dist-es/submodules/cognito-identity/index.js",
158
- node: "./dist-cjs/submodules/cognito-identity/index.js",
159
- import: "./dist-es/submodules/cognito-identity/index.js",
160
- require: "./dist-cjs/submodules/cognito-identity/index.js"
161
- },
162
- "./sso": {
163
- types: "./dist-types/submodules/sso/index.d.ts",
164
- module: "./dist-es/submodules/sso/index.js",
165
- node: "./dist-cjs/submodules/sso/index.js",
166
- import: "./dist-es/submodules/sso/index.js",
167
- require: "./dist-cjs/submodules/sso/index.js"
168
- }
169
- }
170
- };
171
-
172
- // ../../node_modules/.pnpm/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
173
- function extendedEncodeURIComponent(str) {
174
- return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
175
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
176
- });
177
- }
178
-
179
- // ../../node_modules/.pnpm/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
180
- var splitHeader = (value) => {
181
- const z = value.length;
182
- const values = [];
183
- let withinQuotes = false;
184
- let prevChar = void 0;
185
- let anchor = 0;
186
- for (let i = 0; i < z; ++i) {
187
- const char = value[i];
188
- switch (char) {
189
- case `"`:
190
- if (prevChar !== "\\") {
191
- withinQuotes = !withinQuotes;
192
- }
193
- break;
194
- case ",":
195
- if (!withinQuotes) {
196
- values.push(value.slice(anchor, i));
197
- anchor = i + 1;
198
- }
199
- break;
200
- default:
201
- }
202
- prevChar = char;
203
- }
204
- values.push(value.slice(anchor));
205
- return values.map((v) => {
206
- v = v.trim();
207
- const z2 = v.length;
208
- if (z2 < 2) {
209
- return v;
210
- }
211
- if (v[0] === `"` && v[z2 - 1] === `"`) {
212
- v = v.slice(1, z2 - 1);
213
- }
214
- return v.replace(/\\"/g, '"');
215
- });
216
- };
217
-
218
- // ../../node_modules/.pnpm/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js
219
- var ddd = `(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;
220
- var mmm = `(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;
221
- var time = `(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;
222
- var date = `(\\d?\\d)`;
223
- var year = `(\\d{4})`;
224
- var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);
225
- var IMF_FIXDATE = new RegExp(`^${ddd}, ${date} ${mmm} ${year} ${time} GMT$`);
226
- var RFC_850_DATE = new RegExp(`^${ddd}, ${date}-${mmm}-(\\d\\d) ${time} GMT$`);
227
- var ASC_TIME = new RegExp(`^${ddd} ${mmm} ( [1-9]|\\d\\d) ${time} ${year}$`);
228
- var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
229
- var _parseEpochTimestamp = (value) => {
230
- if (value == null) {
231
- return void 0;
232
- }
233
- let num = NaN;
234
- if (typeof value === "number") {
235
- num = value;
236
- } else if (typeof value === "string") {
237
- if (!/^-?\d*\.?\d+$/.test(value)) {
238
- throw new TypeError(`parseEpochTimestamp - numeric string invalid.`);
239
- }
240
- num = Number.parseFloat(value);
241
- } else if (typeof value === "object" && value.tag === 1) {
242
- num = value.value;
243
- }
244
- if (isNaN(num) || Math.abs(num) === Infinity) {
245
- throw new TypeError("Epoch timestamps must be valid finite numbers.");
246
- }
247
- return new Date(Math.round(num * 1e3));
248
- };
249
- var _parseRfc3339DateTimeWithOffset = (value) => {
250
- if (value == null) {
251
- return void 0;
252
- }
253
- if (typeof value !== "string") {
254
- throw new TypeError("RFC3339 timestamps must be strings");
255
- }
256
- const matches = RFC3339_WITH_OFFSET.exec(value);
257
- if (!matches) {
258
- throw new TypeError(`Invalid RFC3339 timestamp format ${value}`);
259
- }
260
- const [, yearStr, monthStr, dayStr, hours, minutes, seconds, , ms, offsetStr] = matches;
261
- range(monthStr, 1, 12);
262
- range(dayStr, 1, 31);
263
- range(hours, 0, 23);
264
- range(minutes, 0, 59);
265
- range(seconds, 0, 60);
266
- const date2 = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1e3) : 0));
267
- date2.setUTCFullYear(Number(yearStr));
268
- if (offsetStr.toUpperCase() != "Z") {
269
- const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0];
270
- const scalar = sign === "-" ? 1 : -1;
271
- date2.setTime(date2.getTime() + scalar * (Number(offsetH) * 60 * 60 * 1e3 + Number(offsetM) * 60 * 1e3));
272
- }
273
- return date2;
274
- };
275
- var _parseRfc7231DateTime = (value) => {
276
- if (value == null) {
277
- return void 0;
278
- }
279
- if (typeof value !== "string") {
280
- throw new TypeError("RFC7231 timestamps must be strings.");
281
- }
282
- let day;
283
- let month;
284
- let year2;
285
- let hour;
286
- let minute;
287
- let second;
288
- let fraction;
289
- let matches;
290
- if (matches = IMF_FIXDATE.exec(value)) {
291
- [, day, month, year2, hour, minute, second, fraction] = matches;
292
- } else if (matches = RFC_850_DATE.exec(value)) {
293
- [, day, month, year2, hour, minute, second, fraction] = matches;
294
- year2 = (Number(year2) + 1900).toString();
295
- } else if (matches = ASC_TIME.exec(value)) {
296
- [, month, day, hour, minute, second, fraction, year2] = matches;
297
- }
298
- if (year2 && second) {
299
- const timestamp = Date.UTC(Number(year2), months.indexOf(month), Number(day), Number(hour), Number(minute), Number(second), fraction ? Math.round(parseFloat(`0.${fraction}`) * 1e3) : 0);
300
- range(day, 1, 31);
301
- range(hour, 0, 23);
302
- range(minute, 0, 59);
303
- range(second, 0, 60);
304
- const date2 = new Date(timestamp);
305
- date2.setUTCFullYear(Number(year2));
306
- return date2;
307
- }
308
- throw new TypeError(`Invalid RFC7231 date-time value ${value}.`);
309
- };
310
- function range(v, min, max) {
311
- const _v = Number(v);
312
- if (_v < min || _v > max) {
313
- throw new Error(`Value ${_v} out of range [${min}, ${max}]`);
314
- }
315
- }
316
-
317
- // ../../node_modules/.pnpm/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
318
- var FromStringShapeDeserializer = class extends SerdeContext {
319
- settings;
320
- constructor(settings) {
321
- super();
322
- this.settings = settings;
323
- }
324
- read(_schema, data) {
325
- const ns = NormalizedSchema.of(_schema);
326
- if (ns.isListSchema()) {
327
- return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item));
328
- }
329
- if (ns.isBlobSchema()) {
330
- return (this.serdeContext?.base64Decoder ?? fromBase64)(data);
331
- }
332
- if (ns.isTimestampSchema()) {
333
- const format = determineTimestampFormat(ns, this.settings);
334
- switch (format) {
335
- case 5:
336
- return _parseRfc3339DateTimeWithOffset(data);
337
- case 6:
338
- return _parseRfc7231DateTime(data);
339
- case 7:
340
- return _parseEpochTimestamp(data);
341
- default:
342
- console.warn("Missing timestamp format, parsing value with Date constructor:", data);
343
- return new Date(data);
344
- }
345
- }
346
- if (ns.isStringSchema()) {
347
- const mediaType = ns.getMergedTraits().mediaType;
348
- let intermediateValue = data;
349
- if (mediaType) {
350
- if (ns.getMergedTraits().httpHeader) {
351
- intermediateValue = this.base64ToUtf8(intermediateValue);
352
- }
353
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
354
- if (isJson) {
355
- intermediateValue = LazyJsonString.from(intermediateValue);
356
- }
357
- return intermediateValue;
358
- }
359
- }
360
- if (ns.isNumericSchema()) {
361
- return Number(data);
362
- }
363
- if (ns.isBigIntegerSchema()) {
364
- return BigInt(data);
365
- }
366
- if (ns.isBigDecimalSchema()) {
367
- return new NumericValue(data, "bigDecimal");
368
- }
369
- if (ns.isBooleanSchema()) {
370
- return String(data).toLowerCase() === "true";
371
- }
372
- return data;
373
- }
374
- base64ToUtf8(base64String) {
375
- return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String));
376
- }
377
- };
378
-
379
- export {
380
- extendedEncodeURIComponent,
381
- splitHeader,
382
- FromStringShapeDeserializer,
383
- NoAuthSigner,
384
- package_default
385
- };