@stacksjs/actions 0.70.13 → 0.70.15
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/build.js +8 -8
- package/dist/{chunk-ghp9nh6b.js → chunk-1ntvvbhr.js} +25 -34
- package/dist/{chunk-hd6fdt5s.js → chunk-38cnnp2b.js} +4 -6
- package/dist/{chunk-h46e5ha3.js → chunk-4abmhfp5.js} +66 -68
- package/dist/{chunk-kbw02372.js → chunk-63btjfd6.js} +17 -21
- package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
- package/dist/{chunk-q3gghmwn.js → chunk-7a9vhs9s.js} +6 -6
- package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
- package/dist/{chunk-gdzs9jf4.js → chunk-9exgwfkw.js} +4 -5
- package/dist/{chunk-xt9exr2c.js → chunk-b5g5w1hh.js} +6 -5
- package/dist/{chunk-ad9b7jvj.js → chunk-f6a9g4qa.js} +4 -5
- package/dist/{chunk-030apzv1.js → chunk-p2ga6zq1.js} +8 -8
- package/dist/{chunk-6vn0j49q.js → chunk-q81mf99q.js} +10 -13
- package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
- package/dist/{chunk-hcfsx7e0.js → chunk-sd89e9y4.js} +17 -21
- package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
- package/dist/{chunk-0crtxf8d.js → chunk-veja9rez.js} +156 -19
- package/dist/{chunk-hcra1987.js → chunk-vn1pz0f4.js} +8 -8
- package/dist/{chunk-f48dj1dk.js → chunk-vyprc4qf.js} +3 -3
- package/dist/{chunk-f1cxwjkf.js → chunk-zsm2c35w.js} +5 -6
- package/dist/chunk-zzerxbrm.js +107 -0
- package/dist/database/seed.js +7 -7
- package/dist/generate/index.js +8 -8
- package/dist/index.js +8 -8
- package/dist/release.js +8 -8
- package/dist/upgrade.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2m04vhea.js +0 -145
package/dist/chunk-2m04vhea.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-9v6qtbez.js";
|
|
4
|
-
|
|
5
|
-
// ../../../../node_modules/@smithy/property-provider/dist-cjs/index.js
|
|
6
|
-
var require_dist_cjs = __commonJS((exports, module) => {
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
12
|
-
var __export = (target, all) => {
|
|
13
|
-
for (var name in all)
|
|
14
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
-
};
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
-
for (let key of __getOwnPropNames(from))
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
var src_exports = {};
|
|
26
|
-
__export(src_exports, {
|
|
27
|
-
CredentialsProviderError: () => CredentialsProviderError,
|
|
28
|
-
ProviderError: () => ProviderError,
|
|
29
|
-
TokenProviderError: () => TokenProviderError,
|
|
30
|
-
chain: () => chain,
|
|
31
|
-
fromStatic: () => fromStatic,
|
|
32
|
-
memoize: () => memoize
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(src_exports);
|
|
35
|
-
var ProviderError = class _ProviderError extends Error {
|
|
36
|
-
constructor(message, options = true) {
|
|
37
|
-
let logger;
|
|
38
|
-
let tryNextLink = true;
|
|
39
|
-
if (typeof options === "boolean") {
|
|
40
|
-
logger = undefined;
|
|
41
|
-
tryNextLink = options;
|
|
42
|
-
} else if (options != null && typeof options === "object") {
|
|
43
|
-
logger = options.logger;
|
|
44
|
-
tryNextLink = options.tryNextLink ?? true;
|
|
45
|
-
}
|
|
46
|
-
super(message);
|
|
47
|
-
this.name = "ProviderError";
|
|
48
|
-
this.tryNextLink = tryNextLink;
|
|
49
|
-
Object.setPrototypeOf(this, _ProviderError.prototype);
|
|
50
|
-
logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
|
|
51
|
-
}
|
|
52
|
-
static {
|
|
53
|
-
__name(this, "ProviderError");
|
|
54
|
-
}
|
|
55
|
-
static from(error, options = true) {
|
|
56
|
-
return Object.assign(new this(error.message, options), error);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
|
|
60
|
-
constructor(message, options = true) {
|
|
61
|
-
super(message, options);
|
|
62
|
-
this.name = "CredentialsProviderError";
|
|
63
|
-
Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
|
|
64
|
-
}
|
|
65
|
-
static {
|
|
66
|
-
__name(this, "CredentialsProviderError");
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
var TokenProviderError = class _TokenProviderError extends ProviderError {
|
|
70
|
-
constructor(message, options = true) {
|
|
71
|
-
super(message, options);
|
|
72
|
-
this.name = "TokenProviderError";
|
|
73
|
-
Object.setPrototypeOf(this, _TokenProviderError.prototype);
|
|
74
|
-
}
|
|
75
|
-
static {
|
|
76
|
-
__name(this, "TokenProviderError");
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
var chain = /* @__PURE__ */ __name((...providers) => async () => {
|
|
80
|
-
if (providers.length === 0) {
|
|
81
|
-
throw new ProviderError("No providers in chain");
|
|
82
|
-
}
|
|
83
|
-
let lastProviderError;
|
|
84
|
-
for (const provider of providers) {
|
|
85
|
-
try {
|
|
86
|
-
const credentials = await provider();
|
|
87
|
-
return credentials;
|
|
88
|
-
} catch (err) {
|
|
89
|
-
lastProviderError = err;
|
|
90
|
-
if (err?.tryNextLink) {
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
throw err;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
throw lastProviderError;
|
|
97
|
-
}, "chain");
|
|
98
|
-
var fromStatic = /* @__PURE__ */ __name((staticValue) => () => Promise.resolve(staticValue), "fromStatic");
|
|
99
|
-
var memoize = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {
|
|
100
|
-
let resolved;
|
|
101
|
-
let pending;
|
|
102
|
-
let hasResult;
|
|
103
|
-
let isConstant = false;
|
|
104
|
-
const coalesceProvider = /* @__PURE__ */ __name(async () => {
|
|
105
|
-
if (!pending) {
|
|
106
|
-
pending = provider();
|
|
107
|
-
}
|
|
108
|
-
try {
|
|
109
|
-
resolved = await pending;
|
|
110
|
-
hasResult = true;
|
|
111
|
-
isConstant = false;
|
|
112
|
-
} finally {
|
|
113
|
-
pending = undefined;
|
|
114
|
-
}
|
|
115
|
-
return resolved;
|
|
116
|
-
}, "coalesceProvider");
|
|
117
|
-
if (isExpired === undefined) {
|
|
118
|
-
return async (options) => {
|
|
119
|
-
if (!hasResult || options?.forceRefresh) {
|
|
120
|
-
resolved = await coalesceProvider();
|
|
121
|
-
}
|
|
122
|
-
return resolved;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return async (options) => {
|
|
126
|
-
if (!hasResult || options?.forceRefresh) {
|
|
127
|
-
resolved = await coalesceProvider();
|
|
128
|
-
}
|
|
129
|
-
if (isConstant) {
|
|
130
|
-
return resolved;
|
|
131
|
-
}
|
|
132
|
-
if (requiresRefresh && !requiresRefresh(resolved)) {
|
|
133
|
-
isConstant = true;
|
|
134
|
-
return resolved;
|
|
135
|
-
}
|
|
136
|
-
if (isExpired(resolved)) {
|
|
137
|
-
await coalesceProvider();
|
|
138
|
-
return resolved;
|
|
139
|
-
}
|
|
140
|
-
return resolved;
|
|
141
|
-
};
|
|
142
|
-
}, "memoize");
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
export { require_dist_cjs };
|