create-newt-app 0.22.1 → 0.22.2

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.js +4 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import chalk from "chalk";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "create-newt-app",
10
- version: "0.22.1",
10
+ version: "0.22.2",
11
11
  private: false,
12
12
  type: "module",
13
13
  bin: {
@@ -44,6 +44,7 @@ import * as p from "@clack/prompts";
44
44
  import { templates } from "@newt-app/templates";
45
45
 
46
46
  // src/tasks.ts
47
+ import { randomBytes } from "crypto";
47
48
  import { execa } from "execa";
48
49
 
49
50
  // src/utils.ts
@@ -167,7 +168,8 @@ async function scaffold(modules, options) {
167
168
  const templateData = {
168
169
  projectName: options.name,
169
170
  testing: options.testing,
170
- database: options.database
171
+ database: options.database,
172
+ authSecret: randomBytes(32).toString("base64url")
171
173
  };
172
174
  await renderTemplatesToDisk(modules, options.name, templateData);
173
175
  const packages = modules.map((mod) => mod.packages).filter((ele) => ele !== void 0).flat();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-newt-app",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "ejs": "^3.1.10",
17
17
  "execa": "^9.6.0",
18
18
  "zod": "^3.25.76",
19
- "@newt-app/templates": "0.22.1"
19
+ "@newt-app/templates": "0.22.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/ejs": "^3.1.5",