@better-auth/cli 1.2.8-beta.7 → 1.2.8

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.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -7
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -934,18 +934,18 @@ async function generateAuthConfig({
934
934
  }
935
935
  }
936
936
  };
937
- const common_indexs = {
937
+ const common_indexes = {
938
938
  START_OF_PLUGINS: _start_of_plugins_common_index.START_OF_PLUGINS,
939
939
  END_OF_PLUGINS: {
940
940
  type: "manual",
941
941
  getIndex: ({ content, additionalFields }) => {
942
- const clsoingBracketIndex = findClosingBracket(
942
+ const closingBracketIndex = findClosingBracket(
943
943
  content,
944
944
  additionalFields.start_of_plugins,
945
945
  "[",
946
946
  "]"
947
947
  );
948
- return clsoingBracketIndex;
948
+ return closingBracketIndex;
949
949
  }
950
950
  },
951
951
  START_OF_BETTERAUTH: {
@@ -960,7 +960,7 @@ async function generateAuthConfig({
960
960
  add_plugin: async (opts) => {
961
961
  let start_of_plugins = getGroupInfo(
962
962
  opts.config,
963
- common_indexs.START_OF_PLUGINS,
963
+ common_indexes.START_OF_PLUGINS,
964
964
  {}
965
965
  );
966
966
  if (!start_of_plugins) {
@@ -970,7 +970,7 @@ async function generateAuthConfig({
970
970
  }
971
971
  let end_of_plugins = getGroupInfo(
972
972
  opts.config,
973
- common_indexs.END_OF_PLUGINS,
973
+ common_indexes.END_OF_PLUGINS,
974
974
  { start_of_plugins: start_of_plugins.index }
975
975
  );
976
976
  if (!end_of_plugins) {
@@ -1052,7 +1052,7 @@ async function generateAuthConfig({
1052
1052
  if (code_before_betterAuth) {
1053
1053
  let start_of_betterauth2 = getGroupInfo(
1054
1054
  opts.config,
1055
- common_indexs.START_OF_BETTERAUTH,
1055
+ common_indexes.START_OF_BETTERAUTH,
1056
1056
  {}
1057
1057
  );
1058
1058
  if (!start_of_betterauth2) {
@@ -1275,7 +1275,7 @@ provider: "${opts.database.replace(
1275
1275
  }
1276
1276
  let start_of_betterauth = getGroupInfo(
1277
1277
  opts.config,
1278
- common_indexs.START_OF_BETTERAUTH,
1278
+ common_indexes.START_OF_BETTERAUTH,
1279
1279
  {}
1280
1280
  );
1281
1281
  if (!start_of_betterauth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/cli",
3
- "version": "1.2.8-beta.7",
3
+ "version": "1.2.8",
4
4
  "description": "The CLI for Better Auth",
5
5
  "module": "dist/index.mjs",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "tinyexec": "^0.3.1",
47
47
  "yocto-spinner": "^0.1.1",
48
48
  "zod": "^3.23.8",
49
- "better-auth": "1.2.8-beta.7"
49
+ "better-auth": "1.2.8"
50
50
  },
51
51
  "files": [
52
52
  "dist"