@smartive/graphql-magic 23.7.0-next.5 → 23.7.0

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.
@@ -104,7 +104,6 @@ const initSetting = async (name: string) => {
104
104
  const { question, defaultValue, init } = DEFAULTS[name];
105
105
  const value = (await readLine(`${question} (${defaultValue})`)) || defaultValue;
106
106
  await init(value);
107
-
108
107
  return value;
109
108
  };
110
109
 
@@ -126,7 +125,6 @@ export const getSettings = async (): Promise<Settings> => {
126
125
  if (!existsSync(SETTINGS_PATH)) {
127
126
  await initSettings();
128
127
  }
129
-
130
128
  return JSON.parse(readFileSync(SETTINGS_PATH, 'utf8'));
131
129
  };
132
130
 
@@ -140,7 +138,6 @@ export const getSetting = async (name: keyof Settings): Promise<string> => {
140
138
  return DEFAULTS[name].defaultValue;
141
139
  }
142
140
  }
143
-
144
141
  return settings[name];
145
142
  };
146
143
 
@@ -154,7 +151,6 @@ export const ensureDirectoryExists = (dir: string) => {
154
151
  try {
155
152
  console.info(`Creating directory ${dir}`);
156
153
  mkdirSync(dir);
157
-
158
154
  return true;
159
155
  } catch (err) {
160
156
  if (err.code === 'EEXIST') {
@@ -8,7 +8,6 @@ export const generateFunctionsFromDatabase = async (knex: Knex): Promise<string>
8
8
  JOIN pg_namespace n ON p.pronamespace = n.oid
9
9
  WHERE n.nspname = 'public'
10
10
  AND NOT EXISTS (SELECT 1 FROM pg_aggregate a WHERE a.aggfnoid = p.oid)
11
- AND NOT EXISTS (SELECT 1 FROM pg_depend d WHERE d.objid = p.oid AND d.deptype = 'e')
12
11
  ORDER BY p.proname, pg_get_function_identity_arguments(p.oid)
13
12
  `);
14
13
 
@@ -24,7 +23,6 @@ export const generateFunctionsFromDatabase = async (knex: Knex): Promise<string>
24
23
  JOIN pg_aggregate a ON p.oid = a.aggfnoid
25
24
  JOIN pg_namespace n ON p.pronamespace = n.oid
26
25
  WHERE n.nspname = 'public'
27
- AND NOT EXISTS (SELECT 1 FROM pg_depend d WHERE d.objid = p.oid AND d.deptype = 'e')
28
26
  ORDER BY p.proname, pg_get_function_identity_arguments(p.oid)
29
27
  `);
30
28