@cedarjs/auth-dbauth-setup 7.0.0-canary.3083 → 7.0.0-canary.3086

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.
@@ -1,4 +1,4 @@
1
- import type { AuthGeneratorCtx } from '@cedarjs/cli-helpers';
1
+ import type { AuthGeneratorCtx } from '@cedarjs/cli-helpers/auth/setupHelpers';
2
2
  /**
3
3
  * The OAuth providers `cedar setup auth dbAuth --oauth` knows how to
4
4
  * configure out of the box. Anything else is served by implementing the
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.setupData.d.ts","sourceRoot":"","sources":["../src/oauth.setupData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,+BAAgC,CAAA;AAElE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA;AAMtE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,iBAAiB,EAAE,CAqCrB;AAGD,eAAO,MAAM,WAAW,UAAsB,CAAA;AAmB9C,eAAO,MAAM,mBAAmB;;gBAEZ,gBAAgB;CAqBnC,CAAA;AAED,eAAO,MAAM,2BAA2B;;gBAEpB,gBAAgB;CAgCnC,CAAA;AAOD,wBAAgB,WAAW,CAAC,SAAS,EAAE,iBAAiB,EAAE,YAWzD;AAuCD,wBAAgB,KAAK,aAkDpB;AAED,wBAAgB,kBAAkB,aAgEjC;AAED,eAAO,MAAM,YAAY,UAMxB,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,iBAAiB,EAAE,UA2B/B;AAMD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,iBAAiB,EAAE;;;EAsBzE"}
1
+ {"version":3,"file":"oauth.setupData.d.ts","sourceRoot":"","sources":["../src/oauth.setupData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAO9E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,+BAAgC,CAAA;AAElE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA;AAMtE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,iBAAiB,EAAE,CAqCrB;AAGD,eAAO,MAAM,WAAW,UAAsB,CAAA;AAmB9C,eAAO,MAAM,mBAAmB;;gBAEZ,gBAAgB;CAqBnC,CAAA;AAED,eAAO,MAAM,2BAA2B;;gBAEpB,gBAAgB;CAgCnC,CAAA;AAOD,wBAAgB,WAAW,CAAC,SAAS,EAAE,iBAAiB,EAAE,YAWzD;AAuCD,wBAAgB,KAAK,aAkDpB;AAED,wBAAgB,kBAAkB,aAgEjC;AAED,eAAO,MAAM,YAAY,UAMxB,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,iBAAiB,EAAE,UA2B/B;AAMD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,iBAAiB,EAAE;;;EAsBzE"}
@@ -1,6 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { getPaths, colors, isTypeScriptProject } from "@cedarjs/cli-helpers";
3
+ import { colors } from "@cedarjs/cli-helpers/colors";
4
+ import { getPaths } from "@cedarjs/cli-helpers/paths";
5
+ import { isTypeScriptProject } from "@cedarjs/cli-helpers/project";
4
6
  import { addModels, functionsPath, hasModel, libPath } from "./shared.js";
5
7
  const KNOWN_OAUTH_PROVIDERS = ["google", "github"];
6
8
  function isKnownOAuthProvider(value) {
@@ -1,4 +1,4 @@
1
- import type { AuthGeneratorCtx } from '@cedarjs/cli-helpers';
1
+ import type { AuthGeneratorCtx } from '@cedarjs/cli-helpers/auth/setupHelpers';
2
2
  export declare const extraTask: {
3
3
  title: string;
4
4
  task: () => void;
@@ -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;AAED,eAAO,MAAM,cAAc,UAO1B,CAAA"}
1
+ {"version":3,"file":"setupData.d.ts","sourceRoot":"","sources":["../src/setupData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAS9E,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
@@ -1,6 +1,8 @@
1
1
  import crypto from "node:crypto";
2
2
  import path from "node:path";
3
- import { getPaths, colors, addEnvVarTask } from "@cedarjs/cli-helpers";
3
+ import { colors } from "@cedarjs/cli-helpers/colors";
4
+ import { getPaths } from "@cedarjs/cli-helpers/paths";
5
+ import { addEnvVarTask } from "@cedarjs/cli-helpers/project";
4
6
  import { addModels, functionsPath, hasModel, libPath } from "./shared.js";
5
7
  const secret = crypto.randomBytes(32).toString("base64");
6
8
  const extraTask = addEnvVarTask(
@@ -1 +1 @@
1
- {"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAwBtC,wBAAsB,OAAO,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,KAAK,EAAE,QAAQ,GAChB,EAAE,IAAI,iBA0GN;AA4ED,eAAO,MAAM,yBAAyB;;;CAuCrC,CAAA"}
1
+ {"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAwBtC,wBAAsB,OAAO,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,KAAK,EAAE,QAAQ,GAChB,EAAE,IAAI,iBA0GN;AA4ED,eAAO,MAAM,yBAAyB;;;CAuCrC,CAAA"}
@@ -1,11 +1,9 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import prompts from "prompts";
4
- import {
5
- getGraphqlPath,
6
- requireTTYOrExit,
7
- standardAuthHandler
8
- } from "@cedarjs/cli-helpers";
4
+ import { standardAuthHandler } from "@cedarjs/cli-helpers/auth/setupHelpers";
5
+ import { getGraphqlPath } from "@cedarjs/cli-helpers/project";
6
+ import { requireTTYOrExit } from "@cedarjs/cli-helpers/tty";
9
7
  import {
10
8
  apiPackages as oauthApiPackages,
11
9
  configureOAuthProvidersTask,
package/dist/shared.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import prismaInternals from "@prisma/internals";
4
- import { getPaths } from "@cedarjs/cli-helpers";
5
4
  import { runBin } from "@cedarjs/cli-helpers/packageManager/exec";
5
+ import { getPaths } from "@cedarjs/cli-helpers/paths";
6
6
  import {
7
7
  processPagesDir,
8
8
  getSchemaPath,
@@ -1,4 +1,4 @@
1
- import type { AuthGeneratorCtx } from '@cedarjs/cli-helpers';
1
+ import type { AuthGeneratorCtx } from '@cedarjs/cli-helpers/auth/setupHelpers';
2
2
  export { extraTask } from './setupData.js';
3
3
  export declare const webPackages: string[];
4
4
  export declare const apiPackages: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"webAuthn.setupData.d.ts","sourceRoot":"","sources":["../src/webAuthn.setupData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAK5D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG1C,eAAO,MAAM,WAAW,UAAkC,CAAA;AAG1D,eAAO,MAAM,WAAW,UAAiC,CAAA;AAEzD,eAAO,MAAM,mBAAmB;;gBAEZ,gBAAgB;CA+BnC,CAAA;AAGD,eAAO,MAAM,KAAK,UAoEjB,CAAA;AAED,eAAO,MAAM,YAAY,UAMxB,CAAA"}
1
+ {"version":3,"file":"webAuthn.setupData.d.ts","sourceRoot":"","sources":["../src/webAuthn.setupData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAO9E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG1C,eAAO,MAAM,WAAW,UAAkC,CAAA;AAG1D,eAAO,MAAM,WAAW,UAAiC,CAAA;AAEzD,eAAO,MAAM,mBAAmB;;gBAEZ,gBAAgB;CA+BnC,CAAA;AAGD,eAAO,MAAM,KAAK,UAoEjB,CAAA;AAED,eAAO,MAAM,YAAY,UAMxB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import path from "node:path";
2
- import { getPaths, colors } from "@cedarjs/cli-helpers";
2
+ import { colors } from "@cedarjs/cli-helpers/colors";
3
+ import { getPaths } from "@cedarjs/cli-helpers/paths";
3
4
  import { addModels, functionsPath, hasModel, libPath } from "./shared.js";
4
5
  import { extraTask } from "./setupData.js";
5
6
  const webPackages = ["@simplewebauthn/browser@^13"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-dbauth-setup",
3
- "version": "7.0.0-canary.3083",
3
+ "version": "7.0.0-canary.3086",
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": "7.0.0-canary.3083",
27
- "@cedarjs/project-config": "7.0.0-canary.3083",
26
+ "@cedarjs/cli-helpers": "7.0.0-canary.3086",
27
+ "@cedarjs/project-config": "7.0.0-canary.3086",
28
28
  "@prisma/internals": "7.10.0",
29
29
  "prompts": "2.4.2",
30
30
  "termi-link": "1.1.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@cedarjs/framework-tools": "7.0.0-canary.3083",
33
+ "@cedarjs/framework-tools": "7.0.0-canary.3086",
34
34
  "@types/yargs": "17.0.35",
35
35
  "memfs": "4.68.2",
36
36
  "nodemon": "3.1.14",