effortless-aws 0.12.0 → 0.14.0
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/{chunk-C3OVOGFE.js → chunk-SSEPES5N.js} +8 -2
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +40 -23
- package/dist/index.js.map +1 -1
- package/dist/runtime/wrap-app.js +1 -1
- package/dist/runtime/wrap-bucket.js +1 -1
- package/dist/runtime/wrap-fifo-queue.js +1 -1
- package/dist/runtime/wrap-http.js +1 -1
- package/dist/runtime/wrap-table-stream.js +1 -1
- package/package.json +1 -1
|
@@ -330,7 +330,12 @@ var buildParams = async (params) => {
|
|
|
330
330
|
}
|
|
331
331
|
return result;
|
|
332
332
|
};
|
|
333
|
-
var
|
|
333
|
+
var resolvePath = (filePath) => join(process.cwd(), filePath);
|
|
334
|
+
var staticFiles = {
|
|
335
|
+
read: (filePath) => readFileSync(resolvePath(filePath), "utf-8"),
|
|
336
|
+
readBuffer: (filePath) => readFileSync(resolvePath(filePath)),
|
|
337
|
+
path: resolvePath
|
|
338
|
+
};
|
|
334
339
|
var createHandlerRuntime = (handler, handlerType, logLevel = "info", extraSetupArgs) => {
|
|
335
340
|
const handlerName = process.env.EFF_HANDLER ?? "unknown";
|
|
336
341
|
const rank = LOG_RANK[logLevel];
|
|
@@ -351,6 +356,7 @@ var createHandlerRuntime = (handler, handlerType, logLevel = "info", extraSetupA
|
|
|
351
356
|
const args = {};
|
|
352
357
|
if (params) args.config = params;
|
|
353
358
|
if (deps) args.deps = deps;
|
|
359
|
+
if (handler.static) args.files = staticFiles;
|
|
354
360
|
if (extraSetupArgs) Object.assign(args, extraSetupArgs());
|
|
355
361
|
ctx = await handler.setup(args);
|
|
356
362
|
}
|
|
@@ -363,7 +369,7 @@ var createHandlerRuntime = (handler, handlerType, logLevel = "info", extraSetupA
|
|
|
363
369
|
if (deps) args.deps = deps;
|
|
364
370
|
const params = await getParams();
|
|
365
371
|
if (params) args.config = params;
|
|
366
|
-
if (handler.static) args.
|
|
372
|
+
if (handler.static) args.files = staticFiles;
|
|
367
373
|
return args;
|
|
368
374
|
};
|
|
369
375
|
const logExecution = (startTime, input, output) => {
|
package/dist/cli/index.js
CHANGED
|
@@ -73356,7 +73356,7 @@ var deployStaticSite = (input) => Effect_exports.gen(function* () {
|
|
|
73356
73356
|
});
|
|
73357
73357
|
const oacName = `${project2}-${stage}-oac`;
|
|
73358
73358
|
const { oacId } = yield* ensureOAC({ name: oacName });
|
|
73359
|
-
const domain = config2.domain;
|
|
73359
|
+
const domain = typeof config2.domain === "string" ? config2.domain : config2.domain?.[stage];
|
|
73360
73360
|
let aliases;
|
|
73361
73361
|
let acmCertificateArn;
|
|
73362
73362
|
let wwwDomain;
|