eddev 2.0.0-beta.120 → 2.0.0-beta.122

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.
@@ -27,6 +27,8 @@ export function installFieldTypes() {
27
27
  const input = $el.find("input[type='hidden']");
28
28
  const container = document.createElement("div");
29
29
  $el.append(container);
30
+ $el.find(".ed-acf-field").remove();
31
+ container.classList.add("ed-acf-field");
30
32
  ReactDOM.createRoot(container).render(_jsx(FieldInstance, { field: data, input: input[0], settings: input.data("settings") }));
31
33
  };
32
34
  // Register with ACF
@@ -123,7 +123,7 @@ export class ServerContext {
123
123
  prefix = chalk.yellow("PHP Notice:");
124
124
  }
125
125
  else if (item.type === "GRAPHQL_DEBUG") {
126
- prefix = chalk.cyan("Debug:");
126
+ prefix = chalk.cyan("debug:");
127
127
  }
128
128
  else if (item.type === "error" && item.extensions?.category === "user") {
129
129
  prefix = chalk.red("UserError:");
@@ -134,6 +134,9 @@ export class ServerContext {
134
134
  if (typeof message !== "string") {
135
135
  message = inspect(message, { depth: 4 });
136
136
  }
137
+ if (item.debugMessage) {
138
+ message += "\n" + chalk.gray(item.debugMessage);
139
+ }
137
140
  output += prefix + " " + message;
138
141
  if (item.path) {
139
142
  stack.push(chalk.gray(" at path " + JSON.stringify(item.path)));
@@ -13,6 +13,7 @@ export declare namespace QueryMonitor {
13
13
  extensions?: {
14
14
  category?: string;
15
15
  };
16
+ debugMessage?: string;
16
17
  };
17
18
  type Entry = {
18
19
  file: string;
@@ -1 +1 @@
1
- export declare const VERSION = "2.0.0-beta.118";
1
+ export declare const VERSION = "2.0.0-beta.122";
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.118";
1
+ export const VERSION = "2.0.0-beta.122";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.120",
3
+ "version": "2.0.0-beta.122",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",