@graphql-mesh/migrate-config-cli 1.2.1 → 1.2.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/cjs/bin.js +1 -0
- package/cjs/index.js +6 -1
- package/esm/bin.js +1 -0
- package/esm/index.js +6 -1
- package/package.json +1 -1
package/cjs/bin.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const index_js_1 = require("./index.js");
|
|
5
|
+
console.warn('This package is still in development, please use with caution, and report any issues if you have any.');
|
|
5
6
|
(0, index_js_1.run)().catch(e => {
|
|
6
7
|
console.error(e);
|
|
7
8
|
process.exit(1);
|
package/cjs/index.js
CHANGED
|
@@ -43,7 +43,7 @@ check Hive Gateway's docs to consume a supergraph.`);
|
|
|
43
43
|
const handlerConfig = legacySource.handler[handlerName];
|
|
44
44
|
const handlerInfo = handlerInfoMap[handlerName];
|
|
45
45
|
if (!handlerInfo) {
|
|
46
|
-
console.error(`Handler ${handlerName} is not supported in Mesh
|
|
46
|
+
console.error(`Handler ${handlerName} is not supported currently in Mesh Migrate CLI, please do the migration manually.`);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
addImport(importMap, handlerInfo.packageName, handlerInfo.importName);
|
|
@@ -365,6 +365,11 @@ const handlerInfoMap = {
|
|
|
365
365
|
oldPackageName: '@graphql-mesh/raml',
|
|
366
366
|
importName: 'loadRAMLSubgraph',
|
|
367
367
|
},
|
|
368
|
+
openapi: {
|
|
369
|
+
packageName: '@omnigraph/openapi',
|
|
370
|
+
oldPackageName: '@graphql-mesh/openapi',
|
|
371
|
+
importName: 'loadOpenAPISubgraph',
|
|
372
|
+
},
|
|
368
373
|
soap: {
|
|
369
374
|
packageName: '@omnigraph/soap',
|
|
370
375
|
oldPackageName: '@graphql-mesh/soap',
|
package/esm/bin.js
CHANGED
package/esm/index.js
CHANGED
|
@@ -39,7 +39,7 @@ check Hive Gateway's docs to consume a supergraph.`);
|
|
|
39
39
|
const handlerConfig = legacySource.handler[handlerName];
|
|
40
40
|
const handlerInfo = handlerInfoMap[handlerName];
|
|
41
41
|
if (!handlerInfo) {
|
|
42
|
-
console.error(`Handler ${handlerName} is not supported in Mesh
|
|
42
|
+
console.error(`Handler ${handlerName} is not supported currently in Mesh Migrate CLI, please do the migration manually.`);
|
|
43
43
|
process.exit(1);
|
|
44
44
|
}
|
|
45
45
|
addImport(importMap, handlerInfo.packageName, handlerInfo.importName);
|
|
@@ -361,6 +361,11 @@ const handlerInfoMap = {
|
|
|
361
361
|
oldPackageName: '@graphql-mesh/raml',
|
|
362
362
|
importName: 'loadRAMLSubgraph',
|
|
363
363
|
},
|
|
364
|
+
openapi: {
|
|
365
|
+
packageName: '@omnigraph/openapi',
|
|
366
|
+
oldPackageName: '@graphql-mesh/openapi',
|
|
367
|
+
importName: 'loadOpenAPISubgraph',
|
|
368
|
+
},
|
|
364
369
|
soap: {
|
|
365
370
|
packageName: '@omnigraph/soap',
|
|
366
371
|
oldPackageName: '@graphql-mesh/soap',
|