create-faas-app 8.0.0-beta.41 → 8.0.0-beta.43

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 (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6,13 +6,13 @@ import { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import enquirer from "enquirer";
8
8
  //#region package.json
9
- var version = "8.0.0-beta.40";
9
+ var version = "8.0.0-beta.42";
10
10
  //#endregion
11
11
  //#region src/action/index.ts
12
12
  const prompt = enquirer.prompt;
13
13
  const validateName = (input) => Validator.name(input);
14
14
  const templateRoot = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "template");
15
- const ignoredTemplateEntries = new Set(["node_modules"]);
15
+ const ignoredTemplateEntries = /* @__PURE__ */ new Set(["node_modules"]);
16
16
  const Validator = { name(input) {
17
17
  const match = /^[a-z0-9-_]+$/i.test(input) ? true : "Must be a-z, 0-9 or -_";
18
18
  if (match !== true) return match;
@@ -68,7 +68,7 @@ function scaffold(rootPath, replacements, templateName) {
68
68
  */
69
69
  async function action(options = {}) {
70
70
  const templateName = resolveTemplateName(options.template);
71
- const answers = Object.assign(options, {});
71
+ const answers = options;
72
72
  if (!options.name || Validator.name(options.name) !== true) answers.name = await prompt({
73
73
  type: "input",
74
74
  name: "value",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-faas-app",
3
- "version": "8.0.0-beta.41",
3
+ "version": "8.0.0-beta.43",
4
4
  "homepage": "https://faasjs.com/doc/create-faas-app",
5
5
  "bugs": {
6
6
  "url": "https://github.com/faasjs/faasjs/issues"