graphile-postgis 0.2.17 → 0.2.18
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.
|
@@ -38,7 +38,7 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
38
38
|
if (!GEOMETRY_TYPE || !GEOGRAPHY_TYPE) {
|
|
39
39
|
return input;
|
|
40
40
|
}
|
|
41
|
-
console.warn('PostGIS plugin enabled');
|
|
41
|
+
// console.warn('PostGIS plugin enabled');
|
|
42
42
|
const GeoJSON = getTypeByName(inflection.builtin('GeoJSON'));
|
|
43
43
|
if (!GeoJSON) {
|
|
44
44
|
throw new Error('GeoJSON type was not registered on the build');
|
|
@@ -126,7 +126,9 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
126
126
|
const typeId = type.id;
|
|
127
127
|
const typeDetails = (0, utils_1.getGISTypeDetails)(typeModifier);
|
|
128
128
|
const { subtype, hasZ, hasM, srid } = typeDetails;
|
|
129
|
-
console.warn(
|
|
129
|
+
// console.warn(
|
|
130
|
+
// `Getting ${type.name} type ${type.id}|${typeModifier}|${subtype}|${hasZ}|${hasM}|${srid}`
|
|
131
|
+
// );
|
|
130
132
|
if (!constructedTypes[typeId]) {
|
|
131
133
|
constructedTypes[typeId] = {};
|
|
132
134
|
}
|
|
@@ -200,7 +202,7 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
200
202
|
}
|
|
201
203
|
return constructedTypes[typeId][gisTypeKey];
|
|
202
204
|
};
|
|
203
|
-
console.warn(`Registering handler for ${GEOGRAPHY_TYPE.id}`);
|
|
205
|
+
// console.warn(`Registering handler for ${GEOGRAPHY_TYPE.id}`);
|
|
204
206
|
pgRegisterGqlInputTypeByTypeId(GEOGRAPHY_TYPE.id, () => GeoJSON);
|
|
205
207
|
pg2GqlMapper[GEOGRAPHY_TYPE.id] = {
|
|
206
208
|
map: identity,
|
|
@@ -209,7 +211,7 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
209
211
|
pgRegisterGqlTypeByTypeId(GEOGRAPHY_TYPE.id, (_set, typeModifier) => {
|
|
210
212
|
return getGisType(GEOGRAPHY_TYPE, typeModifier);
|
|
211
213
|
});
|
|
212
|
-
console.warn(`Registering handler for ${GEOMETRY_TYPE.id}`);
|
|
214
|
+
// console.warn(`Registering handler for ${GEOMETRY_TYPE.id}`);
|
|
213
215
|
pgRegisterGqlInputTypeByTypeId(GEOMETRY_TYPE.id, () => GeoJSON);
|
|
214
216
|
pg2GqlMapper[GEOMETRY_TYPE.id] = {
|
|
215
217
|
map: identity,
|
|
@@ -33,7 +33,7 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
33
33
|
if (!GEOMETRY_TYPE || !GEOGRAPHY_TYPE) {
|
|
34
34
|
return input;
|
|
35
35
|
}
|
|
36
|
-
console.warn('PostGIS plugin enabled');
|
|
36
|
+
// console.warn('PostGIS plugin enabled');
|
|
37
37
|
const GeoJSON = getTypeByName(inflection.builtin('GeoJSON'));
|
|
38
38
|
if (!GeoJSON) {
|
|
39
39
|
throw new Error('GeoJSON type was not registered on the build');
|
|
@@ -121,7 +121,9 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
121
121
|
const typeId = type.id;
|
|
122
122
|
const typeDetails = getGISTypeDetails(typeModifier);
|
|
123
123
|
const { subtype, hasZ, hasM, srid } = typeDetails;
|
|
124
|
-
console.warn(
|
|
124
|
+
// console.warn(
|
|
125
|
+
// `Getting ${type.name} type ${type.id}|${typeModifier}|${subtype}|${hasZ}|${hasM}|${srid}`
|
|
126
|
+
// );
|
|
125
127
|
if (!constructedTypes[typeId]) {
|
|
126
128
|
constructedTypes[typeId] = {};
|
|
127
129
|
}
|
|
@@ -195,7 +197,7 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
195
197
|
}
|
|
196
198
|
return constructedTypes[typeId][gisTypeKey];
|
|
197
199
|
};
|
|
198
|
-
console.warn(`Registering handler for ${GEOGRAPHY_TYPE.id}`);
|
|
200
|
+
// console.warn(`Registering handler for ${GEOGRAPHY_TYPE.id}`);
|
|
199
201
|
pgRegisterGqlInputTypeByTypeId(GEOGRAPHY_TYPE.id, () => GeoJSON);
|
|
200
202
|
pg2GqlMapper[GEOGRAPHY_TYPE.id] = {
|
|
201
203
|
map: identity,
|
|
@@ -204,7 +206,7 @@ const PostgisRegisterTypesPlugin = (builder) => {
|
|
|
204
206
|
pgRegisterGqlTypeByTypeId(GEOGRAPHY_TYPE.id, (_set, typeModifier) => {
|
|
205
207
|
return getGisType(GEOGRAPHY_TYPE, typeModifier);
|
|
206
208
|
});
|
|
207
|
-
console.warn(`Registering handler for ${GEOMETRY_TYPE.id}`);
|
|
209
|
+
// console.warn(`Registering handler for ${GEOMETRY_TYPE.id}`);
|
|
208
210
|
pgRegisterGqlInputTypeByTypeId(GEOMETRY_TYPE.id, () => GeoJSON);
|
|
209
211
|
pg2GqlMapper[GEOMETRY_TYPE.id] = {
|
|
210
212
|
map: identity,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-postgis",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "Graphile/PostGraphile PostGIS integration plugin",
|
|
5
5
|
"author": "Constructive <developers@constructive.io>",
|
|
6
6
|
"homepage": "https://github.com/constructive-io/constructive",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"graphql": "15.10.1",
|
|
53
53
|
"pg": "^8.16.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "455f218834841a1bbf60292846cfd92cf0827b0e"
|
|
56
56
|
}
|