@gzl10/nexus-backend 0.16.1 → 0.16.2

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/dist/main.js CHANGED
@@ -106,7 +106,7 @@ var init_package = __esm({
106
106
  "package.json"() {
107
107
  package_default = {
108
108
  name: "@gzl10/nexus-backend",
109
- version: "0.16.1",
109
+ version: "0.16.2",
110
110
  description: "Backend as a Service (BaaS) with Express 5, Knex and CASL",
111
111
  type: "module",
112
112
  main: "./dist/index.js",
@@ -1102,7 +1102,9 @@ import { exec } from "child_process";
1102
1102
  import { promisify } from "util";
1103
1103
  function normalizePluginName(name) {
1104
1104
  if (name.startsWith("@gzl10/nexus-plugin-")) return name;
1105
+ if (name.startsWith("@gzl10/nexus-")) return name.replace("@gzl10/nexus-", PLUGIN_PREFIX);
1105
1106
  if (name.startsWith("nexus-plugin-")) return `@gzl10/${name}`;
1107
+ if (name.startsWith("nexus-")) return `${PLUGIN_PREFIX}${name.replace("nexus-", "")}`;
1106
1108
  return `${PLUGIN_PREFIX}${name}`;
1107
1109
  }
1108
1110
  function shortPluginName(name) {