@cedarjs/auth-dbauth-setup 6.0.0-rc.221 → 6.0.0-rc.241

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.
@@ -10,4 +10,5 @@ export declare const createUserModelTask: {
10
10
  export declare const notes: string[];
11
11
  export declare const notesCreatedUserModel: string[];
12
12
  export declare const noteGenerate: string[];
13
+ export declare const notePrivateSet: string[];
13
14
  //# sourceMappingURL=setupData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setupData.d.ts","sourceRoot":"","sources":["../src/setupData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM5D,eAAO,MAAM,SAAS;;;CAKrB,CAAA;AAED,eAAO,MAAM,mBAAmB;;gBAEZ,gBAAgB;CAoBnC,CAAA;AAGD,eAAO,MAAM,KAAK,UAsDjB,CAAA;AAED,eAAO,MAAM,qBAAqB,UAwBjC,CAAA;AAED,eAAO,MAAM,YAAY,UAMxB,CAAA"}
1
+ {"version":3,"file":"setupData.d.ts","sourceRoot":"","sources":["../src/setupData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM5D,eAAO,MAAM,SAAS;;;CAKrB,CAAA;AAED,eAAO,MAAM,mBAAmB;;gBAEZ,gBAAgB;CAoBnC,CAAA;AAGD,eAAO,MAAM,KAAK,UAsDjB,CAAA;AAED,eAAO,MAAM,qBAAqB,UAwBjC,CAAA;AAED,eAAO,MAAM,YAAY,UAMxB,CAAA;AAED,eAAO,MAAM,cAAc,UAO1B,CAAA"}
package/dist/setupData.js CHANGED
@@ -118,10 +118,19 @@ const noteGenerate = [
118
118
  "",
119
119
  " yarn cedar generate dbAuth"
120
120
  ];
121
+ const notePrivateSet = [
122
+ "",
123
+ "Ready to protect a route? Wrap it in `<PrivateSet>` in Routes.tsx:",
124
+ "",
125
+ ' <PrivateSet unauthenticated="login">',
126
+ ' <Route path="/admin" page={AdminPage} name="admin" />',
127
+ " </PrivateSet>"
128
+ ];
121
129
  export {
122
130
  createUserModelTask,
123
131
  extraTask,
124
132
  noteGenerate,
133
+ notePrivateSet,
125
134
  notes,
126
135
  notesCreatedUserModel
127
136
  };
@@ -1 +1 @@
1
- {"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAuBtC,wBAAsB,OAAO,CAAC,EAC5B,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,KAAK,EAAE,QAAQ,GAChB,EAAE,IAAI,iBAuEN;AAsED,eAAO,MAAM,yBAAyB;;;CAuCrC,CAAA"}
1
+ {"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAwBtC,wBAAsB,OAAO,CAAC,EAC5B,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,KAAK,EAAE,QAAQ,GAChB,EAAE,IAAI,iBAyEN;AAsED,eAAO,MAAM,yBAAyB;;;CAuCrC,CAAA"}
@@ -6,6 +6,7 @@ import {
6
6
  notes,
7
7
  noteGenerate,
8
8
  notesCreatedUserModel,
9
+ notePrivateSet,
9
10
  extraTask,
10
11
  createUserModelTask
11
12
  } from "./setupData.js";
@@ -58,6 +59,7 @@ async function handler({
58
59
  oneMoreThing.push(...noteGenerate);
59
60
  }
60
61
  }
62
+ oneMoreThing.push(...notePrivateSet);
61
63
  let createDbUserModelTask = void 0;
62
64
  if (createDbUserModel) {
63
65
  if (webAuthn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-dbauth-setup",
3
- "version": "6.0.0-rc.221",
3
+ "version": "6.0.0-rc.241",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -23,14 +23,14 @@
23
23
  "test:watch": "yarn test --watch"
24
24
  },
25
25
  "dependencies": {
26
- "@cedarjs/cli-helpers": "6.0.0-rc.221",
27
- "@cedarjs/project-config": "6.0.0-rc.221",
26
+ "@cedarjs/cli-helpers": "6.0.0-rc.241",
27
+ "@cedarjs/project-config": "6.0.0-rc.241",
28
28
  "@prisma/internals": "7.8.0",
29
29
  "prompts": "2.4.2",
30
30
  "termi-link": "1.1.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@cedarjs/framework-tools": "6.0.0-rc.221",
33
+ "@cedarjs/framework-tools": "6.0.0-rc.241",
34
34
  "@types/yargs": "17.0.35",
35
35
  "memfs": "4.64.0",
36
36
  "nodemon": "3.1.14",