@constructive-io/cli 5.6.18 → 5.6.21

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.
@@ -19,7 +19,7 @@ Options:
19
19
  --simpleInflection Use simple inflection (default: true)
20
20
  --oppositeBaseNames Use opposite base names (default: false)
21
21
  --postgis Enable PostGIS extension (default: true)
22
- --metaApi Enable Meta API (default: true)
22
+ --servicesApi Enable Services API (default: true)
23
23
  --cwd <directory> Working directory (default: current directory)
24
24
 
25
25
  Examples:
@@ -54,8 +54,8 @@ const questions = [
54
54
  useDefault: true
55
55
  },
56
56
  {
57
- name: 'metaApi',
58
- message: 'Enable Meta API?',
57
+ name: 'servicesApi',
58
+ message: 'Enable Services API?',
59
59
  type: 'confirm',
60
60
  required: false,
61
61
  default: true,
@@ -106,7 +106,7 @@ exports.default = async (argv, prompter, _options) => {
106
106
  selectedDb = database;
107
107
  log.info(`📌 Using database: "${selectedDb}"`);
108
108
  }
109
- const { oppositeBaseNames, port, postgis, simpleInflection, metaApi, origin } = await prompter.prompt(argv, questions);
109
+ const { oppositeBaseNames, port, postgis, simpleInflection, servicesApi, origin } = await prompter.prompt(argv, questions);
110
110
  // Warn when passing CORS override via CLI, especially in production
111
111
  if (origin && origin.trim().length) {
112
112
  const env = (process.env.NODE_ENV || 'development').toLowerCase();
@@ -122,7 +122,7 @@ exports.default = async (argv, prompter, _options) => {
122
122
  let selectedSchemas = [];
123
123
  let authRole;
124
124
  let roleName;
125
- if (!metaApi) {
125
+ if (!servicesApi) {
126
126
  const db = await (0, pg_cache_1.getPgPool)({ database: selectedDb });
127
127
  const result = await db.query(`
128
128
  SELECT nspname
@@ -172,8 +172,8 @@ exports.default = async (argv, prompter, _options) => {
172
172
  postgis
173
173
  },
174
174
  api: {
175
- enableMetaApi: metaApi,
176
- ...(metaApi === false && { exposedSchemas: selectedSchemas, authRole, roleName })
175
+ enableServicesApi: servicesApi,
176
+ ...(servicesApi === false && { exposedSchemas: selectedSchemas, authRole, roleName })
177
177
  },
178
178
  server: {
179
179
  port,
@@ -17,7 +17,7 @@ Options:
17
17
  --simpleInflection Use simple inflection (default: true)
18
18
  --oppositeBaseNames Use opposite base names (default: false)
19
19
  --postgis Enable PostGIS extension (default: true)
20
- --metaApi Enable Meta API (default: true)
20
+ --servicesApi Enable Services API (default: true)
21
21
  --cwd <directory> Working directory (default: current directory)
22
22
 
23
23
  Examples:
@@ -52,8 +52,8 @@ const questions = [
52
52
  useDefault: true
53
53
  },
54
54
  {
55
- name: 'metaApi',
56
- message: 'Enable Meta API?',
55
+ name: 'servicesApi',
56
+ message: 'Enable Services API?',
57
57
  type: 'confirm',
58
58
  required: false,
59
59
  default: true,
@@ -104,7 +104,7 @@ export default async (argv, prompter, _options) => {
104
104
  selectedDb = database;
105
105
  log.info(`📌 Using database: "${selectedDb}"`);
106
106
  }
107
- const { oppositeBaseNames, port, postgis, simpleInflection, metaApi, origin } = await prompter.prompt(argv, questions);
107
+ const { oppositeBaseNames, port, postgis, simpleInflection, servicesApi, origin } = await prompter.prompt(argv, questions);
108
108
  // Warn when passing CORS override via CLI, especially in production
109
109
  if (origin && origin.trim().length) {
110
110
  const env = (process.env.NODE_ENV || 'development').toLowerCase();
@@ -120,7 +120,7 @@ export default async (argv, prompter, _options) => {
120
120
  let selectedSchemas = [];
121
121
  let authRole;
122
122
  let roleName;
123
- if (!metaApi) {
123
+ if (!servicesApi) {
124
124
  const db = await getPgPool({ database: selectedDb });
125
125
  const result = await db.query(`
126
126
  SELECT nspname
@@ -170,8 +170,8 @@ export default async (argv, prompter, _options) => {
170
170
  postgis
171
171
  },
172
172
  api: {
173
- enableMetaApi: metaApi,
174
- ...(metaApi === false && { exposedSchemas: selectedSchemas, authRole, roleName })
173
+ enableServicesApi: servicesApi,
174
+ ...(servicesApi === false && { exposedSchemas: selectedSchemas, authRole, roleName })
175
175
  },
176
176
  server: {
177
177
  port,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/cli",
3
- "version": "5.6.18",
3
+ "version": "5.6.21",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive CLI",
6
6
  "main": "index.js",
@@ -47,9 +47,9 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@constructive-io/graphql-codegen": "^2.23.3",
50
- "@constructive-io/graphql-env": "^2.8.18",
51
- "@constructive-io/graphql-explorer": "^2.13.14",
52
- "@constructive-io/graphql-server": "^2.15.5",
50
+ "@constructive-io/graphql-env": "^2.8.19",
51
+ "@constructive-io/graphql-explorer": "^2.13.15",
52
+ "@constructive-io/graphql-server": "^2.16.0",
53
53
  "@inquirerer/utils": "^3.1.3",
54
54
  "@pgpmjs/core": "^4.14.0",
55
55
  "@pgpmjs/logger": "^1.3.7",
@@ -61,7 +61,7 @@
61
61
  "minimist": "^1.2.8",
62
62
  "pg-cache": "^1.6.15",
63
63
  "pg-env": "^1.2.5",
64
- "pgpm": "^2.10.11",
64
+ "pgpm": "^2.10.13",
65
65
  "shelljs": "^0.10.0",
66
66
  "yanse": "^0.1.11"
67
67
  },
@@ -76,5 +76,5 @@
76
76
  "postgres",
77
77
  "graphile"
78
78
  ],
79
- "gitHead": "2e1a2f271c7f52864ff37065ecd20a3e6cc2dca2"
79
+ "gitHead": "049ab1b8c49c5711ede9a47c8e8dbb7bbbdf5a1f"
80
80
  }