@omnigraph/sqlite 0.2.8 → 0.2.9-alpha-20240626143434-7cd2ddcf1e46bd3f52ea1e6276c1d9beeb5171a4
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/index.js +4 -5
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -23,13 +23,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.default = loadGraphQLSchemaFromSQLite;
|
|
27
|
+
exports.loadGraphQLSchemaFromOptions = loadGraphQLSchemaFromOptions;
|
|
28
|
+
exports.loadSQLiteSubgraph = loadSQLiteSubgraph;
|
|
29
|
+
exports.getSubgraphExecutor = getSubgraphExecutor;
|
|
27
30
|
const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
|
|
28
31
|
const delegate_1 = require("@graphql-tools/delegate");
|
|
29
32
|
function loadGraphQLSchemaFromSQLite(_name, opts) {
|
|
30
33
|
return loadGraphQLSchemaFromOptions(opts);
|
|
31
34
|
}
|
|
32
|
-
exports.default = loadGraphQLSchemaFromSQLite;
|
|
33
35
|
function loadGraphQLSchemaFromOptions(opts) {
|
|
34
36
|
const tuql$ = Promise.resolve().then(() => __importStar(require('tuql'))).catch(e => {
|
|
35
37
|
throw new Error('You need to install `tuql` package in order to use SQLite data source.');
|
|
@@ -45,7 +47,6 @@ function loadGraphQLSchemaFromOptions(opts) {
|
|
|
45
47
|
}
|
|
46
48
|
throw new Error('Invalid options');
|
|
47
49
|
}
|
|
48
|
-
exports.loadGraphQLSchemaFromOptions = loadGraphQLSchemaFromOptions;
|
|
49
50
|
function loadSQLiteSubgraph(name, opts) {
|
|
50
51
|
return ({ cwd }) => ({
|
|
51
52
|
name,
|
|
@@ -64,7 +65,6 @@ function loadSQLiteSubgraph(name, opts) {
|
|
|
64
65
|
}),
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
exports.loadSQLiteSubgraph = loadSQLiteSubgraph;
|
|
68
68
|
function getSubgraphExecutor(transportContext) {
|
|
69
69
|
const loaderOpts = {};
|
|
70
70
|
if (transportContext.transportEntry.options.type === 'infile') {
|
|
@@ -76,4 +76,3 @@ function getSubgraphExecutor(transportContext) {
|
|
|
76
76
|
loaderOpts.cwd = transportContext.cwd;
|
|
77
77
|
return loadGraphQLSchemaFromOptions(loaderOpts).then(schema => (0, delegate_1.createDefaultExecutor)(schema));
|
|
78
78
|
}
|
|
79
|
-
exports.getSubgraphExecutor = getSubgraphExecutor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnigraph/sqlite",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9-alpha-20240626143434-7cd2ddcf1e46bd3f52ea1e6276c1d9beeb5171a4",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-mesh/cross-helpers": "^0.4.3",
|
|
11
|
-
"@graphql-mesh/types": "
|
|
11
|
+
"@graphql-mesh/types": "0.98.9-alpha-20240626143434-7cd2ddcf1e46bd3f52ea1e6276c1d9beeb5171a4",
|
|
12
12
|
"@graphql-tools/delegate": "^10.0.11"
|
|
13
13
|
},
|
|
14
14
|
"optionalDependencies": {
|