@wix/create-new 0.0.75 → 0.0.76

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/build/index.js CHANGED
@@ -82576,7 +82576,13 @@ function truncateName(name, maxLength) {
82576
82576
  return name;
82577
82577
  }
82578
82578
  var useCreateProject = (businessId) => {
82579
- const { updateOAuthApp: updateOAuthApp2, getAppSecret, createCompanionApp, installApp: installApp2 } = useDevCenterClient({
82579
+ const {
82580
+ updateOAuthApp: updateOAuthApp2,
82581
+ getAppSecret,
82582
+ createCompanionApp,
82583
+ installApp: installApp2,
82584
+ setNamespace: setNamespace2
82585
+ } = useDevCenterClient({
82580
82586
  siteId: businessId
82581
82587
  });
82582
82588
  const { createAppProject: createAppProject2, upsertAppEnvironment: upsertAppEnvironment2 } = useBackendAsAServiceClient();
@@ -82586,12 +82592,17 @@ var useCreateProject = (businessId) => {
82586
82592
  cloudProviders
82587
82593
  }) => {
82588
82594
  const { id: projectId } = await createCompanionApp();
82595
+ const slug = generateProjectSlug(businessName);
82596
+ await setNamespace2({
82597
+ appId: projectId,
82598
+ namespace: slug
82599
+ });
82589
82600
  const appInstall = await installApp2(businessId, projectId);
82590
82601
  const publicKeyAndSecret = await getAppSecret({ appId: projectId });
82591
82602
  const appProject = await createAppProject2({
82592
82603
  id: projectId,
82593
82604
  displayName: truncateName(businessName, 50),
82594
- slug: generateProjectSlug(businessName),
82605
+ slug,
82595
82606
  cloudProvider: cloudProviders?.[0],
82596
82607
  projectType: "HEADLESS"
82597
82608
  });
@@ -94177,7 +94188,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
94177
94188
  var package_default = {
94178
94189
  name: "@wix/create-new",
94179
94190
  description: "General entry point for creating Wix projects",
94180
- version: "0.0.75",
94191
+ version: "0.0.76",
94181
94192
  bin: "bin/index.cjs",
94182
94193
  devDependencies: {
94183
94194
  "@commander-js/extra-typings": "^13.0.0",