@junando/worker 0.16.1 → 0.16.3

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.
@@ -0,0 +1,100 @@
1
+ const require_rolldown_runtime = require('./rolldown-runtime-BDXX5GFZ.cjs');
2
+
3
+ //#region ../../node_modules/.pnpm/@smithy+types@4.18.0/node_modules/@smithy/types/dist-cjs/index.js
4
+ var require_dist_cjs = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
5
+ var HttpAuthLocation;
6
+ (function(HttpAuthLocation) {
7
+ HttpAuthLocation["HEADER"] = "header";
8
+ HttpAuthLocation["QUERY"] = "query";
9
+ })(HttpAuthLocation || (HttpAuthLocation = {}));
10
+ var HttpApiKeyAuthLocation;
11
+ (function(HttpApiKeyAuthLocation) {
12
+ HttpApiKeyAuthLocation["HEADER"] = "header";
13
+ HttpApiKeyAuthLocation["QUERY"] = "query";
14
+ })(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
15
+ var EndpointURLScheme;
16
+ (function(EndpointURLScheme) {
17
+ EndpointURLScheme["HTTP"] = "http";
18
+ EndpointURLScheme["HTTPS"] = "https";
19
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
20
+ var AlgorithmId;
21
+ (function(AlgorithmId) {
22
+ AlgorithmId["MD5"] = "md5";
23
+ AlgorithmId["CRC32"] = "crc32";
24
+ AlgorithmId["CRC32C"] = "crc32c";
25
+ AlgorithmId["SHA1"] = "sha1";
26
+ AlgorithmId["SHA256"] = "sha256";
27
+ })(AlgorithmId || (AlgorithmId = {}));
28
+ const getChecksumConfiguration = (runtimeConfig) => {
29
+ const checksumAlgorithms = [];
30
+ if (runtimeConfig.sha256 !== undefined) {
31
+ checksumAlgorithms.push({
32
+ algorithmId: () => AlgorithmId.SHA256,
33
+ checksumConstructor: () => runtimeConfig.sha256
34
+ });
35
+ }
36
+ if (runtimeConfig.md5 != undefined) {
37
+ checksumAlgorithms.push({
38
+ algorithmId: () => AlgorithmId.MD5,
39
+ checksumConstructor: () => runtimeConfig.md5
40
+ });
41
+ }
42
+ return {
43
+ addChecksumAlgorithm(algo) {
44
+ checksumAlgorithms.push(algo);
45
+ },
46
+ checksumAlgorithms() {
47
+ return checksumAlgorithms;
48
+ }
49
+ };
50
+ };
51
+ const resolveChecksumRuntimeConfig = (clientConfig) => {
52
+ const runtimeConfig = {};
53
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
54
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
55
+ });
56
+ return runtimeConfig;
57
+ };
58
+ const getDefaultClientConfiguration = (runtimeConfig) => {
59
+ return getChecksumConfiguration(runtimeConfig);
60
+ };
61
+ const resolveDefaultRuntimeConfig = (config) => {
62
+ return resolveChecksumRuntimeConfig(config);
63
+ };
64
+ var FieldPosition;
65
+ (function(FieldPosition) {
66
+ FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER";
67
+ FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER";
68
+ })(FieldPosition || (FieldPosition = {}));
69
+ const SMITHY_CONTEXT_KEY = "__smithy_context";
70
+ var IniSectionType;
71
+ (function(IniSectionType) {
72
+ IniSectionType["PROFILE"] = "profile";
73
+ IniSectionType["SSO_SESSION"] = "sso-session";
74
+ IniSectionType["SERVICES"] = "services";
75
+ })(IniSectionType || (IniSectionType = {}));
76
+ var RequestHandlerProtocol;
77
+ (function(RequestHandlerProtocol) {
78
+ RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
79
+ RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
80
+ RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
81
+ })(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
82
+ exports.AlgorithmId = AlgorithmId;
83
+ exports.EndpointURLScheme = EndpointURLScheme;
84
+ exports.FieldPosition = FieldPosition;
85
+ exports.HttpApiKeyAuthLocation = HttpApiKeyAuthLocation;
86
+ exports.HttpAuthLocation = HttpAuthLocation;
87
+ exports.IniSectionType = IniSectionType;
88
+ exports.RequestHandlerProtocol = RequestHandlerProtocol;
89
+ exports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY;
90
+ exports.getDefaultClientConfiguration = getDefaultClientConfiguration;
91
+ exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
92
+ }));
93
+
94
+ //#endregion
95
+ Object.defineProperty(exports, 'require_dist_cjs', {
96
+ enumerable: true,
97
+ get: function () {
98
+ return require_dist_cjs;
99
+ }
100
+ });