create-catalyst-app 1.0.2-canary.2 → 1.0.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-catalyst-app",
3
3
  "bin": "scripts/cli.cjs",
4
- "version": "1.0.2-canary.2",
4
+ "version": "1.0.2",
5
5
  "engines": {
6
6
  "node": ">=20.12.0"
7
7
  },
@@ -21,7 +21,7 @@
21
21
  "@clack/prompts": "^1.7.0",
22
22
  "ansis": "^4.3.1",
23
23
  "commander": "^8.2.0",
24
- "jscodeshift": "^0.16.0",
24
+ "jscodeshift": "^17.4.0",
25
25
  "prompts": "^2.4.0",
26
26
  "tar": "^7.5.22",
27
27
  "validate-npm-package-name": "^5.0.0"
package/scripts/cli.cjs CHANGED
@@ -109,6 +109,7 @@ const program = new Commander.Command()
109
109
  )
110
110
  process.exit(1)
111
111
  }
112
+ // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal - projectName is checked by validate-npm-package-name (no separators or ..) before use.
112
113
  let projectPath = path.join(process.cwd(), projectName)
113
114
  if (fs.existsSync(projectPath)) {
114
115
  cancelWithError(
@@ -184,7 +185,7 @@ const program = new Commander.Command()
184
185
  if (mcpSupport) {
185
186
  const newMcpDir = path.join(
186
187
  process.cwd(),
187
- projectName,
188
+ projectName, // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal - projectName is checked by validate-npm-package-name (no separators or ..) before use.
188
189
  "node_modules",
189
190
  "catalyst-core",
190
191
  "mcp_v2"
@@ -192,10 +193,13 @@ const program = new Commander.Command()
192
193
  // Same treatment as the install: the setup script's
193
194
  // own transcript (npm warnings, audit notices, DB
194
195
  // paths) only matters when it fails.
195
- const transcript = runStep("Setting up the MCP server", () =>
196
- runMcpSetup(newMcpDir, path.join(process.cwd(), projectName), { quiet: true })
196
+ const transcript = runStep(
197
+ "Setting up the MCP server",
198
+ () =>
199
+ runMcpSetup(newMcpDir, path.join(process.cwd(), projectName), { quiet: true }) // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal - projectName is checked by validate-npm-package-name (no separators or ..) before use.
197
200
  )
198
201
  for (const warning of mcpWarnings(transcript)) clack.log.warn(warning)
202
+ // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal - newMcpDir is built from the validated projectName.
199
203
  mcpEntry = path.join(newMcpDir, "mcp.js")
200
204
  }
201
205
 
@@ -480,6 +484,7 @@ async function promptProjectName() {
480
484
  if (!result.validForNewPackages) {
481
485
  return (result.errors || result.warnings || ["Invalid package name"])[0]
482
486
  }
487
+ // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal - projectName is checked by validate-npm-package-name (no separators or ..) before use.
483
488
  if (fs.existsSync(path.join(process.cwd(), name))) {
484
489
  return `${name} already exists in this directory`
485
490
  }
@@ -23,7 +23,7 @@
23
23
  "@routes": "src/js/routes/"
24
24
  },
25
25
  "dependencies": {
26
- "catalyst-core": "1.0.2-canary.2",
26
+ "catalyst-core": "1.0.2",
27
27
  "react": "19.0.0",
28
28
  "react-dom": "19.0.0",
29
29
  "react-router": "^7.18.2"
@@ -24,7 +24,7 @@
24
24
  "@routes": "src/js/routes/"
25
25
  },
26
26
  "dependencies": {
27
- "catalyst-core": "1.0.2-canary.2",
27
+ "catalyst-core": "1.0.2",
28
28
  "react": "19.0.0",
29
29
  "react-dom": "19.0.0",
30
30
  "react-router": "^7.18.2"
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@reduxjs/toolkit": "^2.9.0",
28
28
  "react-redux": "^9.2.0",
29
- "catalyst-core": "1.0.2-canary.2",
29
+ "catalyst-core": "1.0.2",
30
30
  "react": "19.0.0",
31
31
  "react-dom": "19.0.0",
32
32
  "react-router": "^7.18.2",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@reduxjs/toolkit": "^2.9.0",
29
29
  "react-redux": "^9.2.0",
30
- "catalyst-core": "1.0.2-canary.2",
30
+ "catalyst-core": "1.0.2",
31
31
  "react": "19.0.0",
32
32
  "react-dom": "19.0.0",
33
33
  "react-router": "^7.18.2",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@reduxjs/toolkit": "^2.9.0",
28
28
  "react-redux": "^9.2.0",
29
- "catalyst-core": "1.0.2-canary.2",
29
+ "catalyst-core": "1.0.2",
30
30
  "react": "19.0.0",
31
31
  "react-dom": "19.0.0",
32
32
  "react-router": "^7.18.2",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@reduxjs/toolkit": "^2.9.0",
29
29
  "react-redux": "^9.2.0",
30
- "catalyst-core": "1.0.2-canary.2",
30
+ "catalyst-core": "1.0.2",
31
31
  "react": "19.0.0",
32
32
  "react-dom": "19.0.0",
33
33
  "react-router": "^7.18.2",