@cedarjs/internal 0.1.1 → 0.1.2-next.95

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.
@@ -39,7 +39,7 @@ var import_load = require("@graphql-tools/load");
39
39
  var import_internals = require("@prisma/internals");
40
40
  var import_chalk = __toESM(require("chalk"));
41
41
  var import_graphql = require("graphql");
42
- var import_terminal_link = __toESM(require("terminal-link"));
42
+ var import_termi_link = require("termi-link");
43
43
  var import_graphql_server = require("@cedarjs/graphql-server");
44
44
  var import_project_config = require("@cedarjs/project-config");
45
45
  const generateGraphQLSchema = async () => {
@@ -114,7 +114,7 @@ const generateGraphQLSchema = async () => {
114
114
  ),
115
115
  "",
116
116
  import_chalk.default.yellow(
117
- ` See the ${(0, import_terminal_link.default)(
117
+ ` See the ${(0, import_termi_link.terminalLink)(
118
118
  "Troubleshooting Generators",
119
119
  "https://redwoodjs.com/docs/schema-relations#troubleshooting-generators"
120
120
  )} section in our docs for more help.`
@@ -7,10 +7,12 @@ export type InferredCurrentUser = Awaited<ReturnType<typeof getCurrentUser>>
7
7
 
8
8
  type UndefinedRoles = {
9
9
  /**
10
- * ⚠️ Heads-Up: This is undefined unless roles key is returned from {@link getCurrentUser()}
10
+ * ⚠️ Heads-Up: This is undefined unless a roles key is returned from
11
+ * {@link getCurrentUser()}
11
12
  *
12
- * You may take a look at https://redwoodjs.com/docs/tutorial/chapter7/rbac for a tutorial on
13
- * how to add fully-fledged RBAC (Role-based Access Control) to your database model.
13
+ * You may take a look at https://cedarjs.com/docs/tutorial/chapter7/rbac for
14
+ * a tutorial on how to add fully-fledged RBAC (Role-based Access Control) to
15
+ * your database model.
14
16
  */
15
17
  roles?: unknown | unknown[]
16
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"validateSchema.d.ts","sourceRoot":"","sources":["../src/validateSchema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,SAAS,CAAA;AAQrE,eAAO,MAAM,gCAAgC,0EAC4B,CAAA;AAEzE,eAAO,MAAM,0CAA0C,gFACwB,CAAA;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAS1B,CAAA;AAED,wBAAgB,cAAc,CAC5B,kBAAkB,EAAE,YAAY,EAChC,YAAY,GAAE,MAAM,EAA0B,QAmI/C;AAED,eAAO,MAAM,mBAAmB,qBAkC/B,CAAA"}
1
+ {"version":3,"file":"validateSchema.d.ts","sourceRoot":"","sources":["../src/validateSchema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,SAAS,CAAA;AAQrE,eAAO,MAAM,gCAAgC,0EAC4B,CAAA;AAEzE,eAAO,MAAM,0CAA0C,gFACwB,CAAA;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAS1B,CAAA;AAED,wBAAgB,cAAc,CAC5B,kBAAkB,EAAE,YAAY,EAChC,YAAY,GAAE,MAAM,EAA0B,QAqI/C;AAED,eAAO,MAAM,mBAAmB,qBAkC/B,CAAA"}
@@ -80,8 +80,9 @@ function validateSchema(schemaDocumentNode, typesToCheck = ["Query", "Mutation"]
80
80
  const fieldName = field.name.value;
81
81
  const fieldTypeName = typeNode.name.value;
82
82
  const isRedwoodQuery = fieldName === "redwood" && fieldTypeName === "Query";
83
+ const isCedarJsQuery = fieldName === "cedarjs" && fieldTypeName === "Query";
83
84
  const isCurrentUserQuery = fieldName === "currentUser" && fieldTypeName === "Query";
84
- if (!(isRedwoodQuery || isCurrentUserQuery)) {
85
+ if (!(isRedwoodQuery || isCedarJsQuery || isCurrentUserQuery)) {
85
86
  const hasDirective = field.directives?.length;
86
87
  if (!hasDirective) {
87
88
  validationOutput.push(`${fieldName} ${fieldTypeName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/internal",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-next.95+a711c9cda",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -75,15 +75,15 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@babel/core": "^7.26.10",
78
- "@babel/parser": "7.27.2",
78
+ "@babel/parser": "7.27.5",
79
79
  "@babel/plugin-transform-react-jsx": "7.27.1",
80
80
  "@babel/plugin-transform-typescript": "^7.26.8",
81
- "@babel/runtime-corejs3": "7.27.1",
82
- "@babel/traverse": "7.27.1",
83
- "@cedarjs/babel-config": "0.1.1",
84
- "@cedarjs/graphql-server": "0.1.1",
85
- "@cedarjs/project-config": "0.1.1",
86
- "@cedarjs/router": "0.1.1",
81
+ "@babel/runtime-corejs3": "7.27.6",
82
+ "@babel/traverse": "7.27.4",
83
+ "@cedarjs/babel-config": "0.1.2-next.95+a711c9cda",
84
+ "@cedarjs/graphql-server": "0.1.2-next.95+a711c9cda",
85
+ "@cedarjs/project-config": "0.1.2-next.95+a711c9cda",
86
+ "@cedarjs/router": "0.1.2-next.95+a711c9cda",
87
87
  "@graphql-codegen/add": "4.0.1",
88
88
  "@graphql-codegen/cli": "3.3.1",
89
89
  "@graphql-codegen/client-preset": "4.3.3",
@@ -101,7 +101,7 @@
101
101
  "core-js": "3.42.0",
102
102
  "deepmerge": "4.3.1",
103
103
  "esbuild": "0.25.0",
104
- "fast-glob": "3.3.2",
104
+ "fast-glob": "3.3.3",
105
105
  "fs-extra": "11.2.0",
106
106
  "graphql": "16.9.0",
107
107
  "kill-port": "1.6.1",
@@ -110,22 +110,22 @@
110
110
  "source-map": "0.7.4",
111
111
  "string-env-interpolation": "1.0.1",
112
112
  "systeminformation": "5.23.8",
113
- "terminal-link": "2.1.1",
113
+ "termi-link": "1.1.0",
114
114
  "ts-node": "10.9.2",
115
115
  "typescript": "5.6.2"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@arethetypeswrong/cli": "0.18.1",
119
- "@cedarjs/framework-tools": "0.1.1",
119
+ "@cedarjs/framework-tools": "0.1.2-next.95",
120
120
  "@types/fs-extra": "11.0.4",
121
121
  "concurrently": "8.2.2",
122
122
  "graphql-tag": "2.12.6",
123
123
  "publint": "0.3.12",
124
- "tsx": "4.19.3",
125
- "vitest": "2.1.9"
124
+ "tsx": "4.19.4",
125
+ "vitest": "3.2.4"
126
126
  },
127
127
  "publishConfig": {
128
128
  "access": "public"
129
129
  },
130
- "gitHead": "87e486de4e0bced95a0441f3bbe4977508b161e9"
130
+ "gitHead": "a711c9cda09da9444fb0f6ff5d9dae804d6ba72b"
131
131
  }