graphile-plugin-connection-filter-postgis 1.1.1 → 1.1.3
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/esm/index.js +2 -1
- package/index.js +5 -4
- package/package.json +9 -8
package/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { findAndRequirePackageJson } from 'find-and-require-package-json';
|
|
1
2
|
import PostgisOperatorsPlugin from "./PgConnectionArgFilterPostgisOperatorsPlugin";
|
|
2
|
-
|
|
3
|
+
const pkg = findAndRequirePackageJson(__dirname);
|
|
3
4
|
const PostGraphileConnectionFilterPostgisPlugin = (builder, options) => {
|
|
4
5
|
builder.hook("build", (build) => {
|
|
5
6
|
if (!build.versions) {
|
package/index.js
CHANGED
|
@@ -4,23 +4,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PostGraphileConnectionFilterPostgisPlugin = void 0;
|
|
7
|
+
const find_and_require_package_json_1 = require("find-and-require-package-json");
|
|
7
8
|
const PgConnectionArgFilterPostgisOperatorsPlugin_1 = __importDefault(require("./PgConnectionArgFilterPostgisOperatorsPlugin"));
|
|
8
|
-
const
|
|
9
|
+
const pkg = (0, find_and_require_package_json_1.findAndRequirePackageJson)(__dirname);
|
|
9
10
|
const PostGraphileConnectionFilterPostgisPlugin = (builder, options) => {
|
|
10
11
|
builder.hook("build", (build) => {
|
|
11
12
|
if (!build.versions) {
|
|
12
|
-
throw new Error(`Plugin ${
|
|
13
|
+
throw new Error(`Plugin ${pkg.name}@${pkg.version} requires graphile-build@^4.1.0 in order to check dependencies (current version: ${build.graphileBuildVersion})`);
|
|
13
14
|
}
|
|
14
15
|
const depends = (name, range) => {
|
|
15
16
|
if (!build.hasVersion(name, range)) {
|
|
16
|
-
throw new Error(`Plugin ${
|
|
17
|
+
throw new Error(`Plugin ${pkg.name}@${pkg.version} requires ${name}@${range} (${build.versions[name]
|
|
17
18
|
? `current version: ${build.versions[name]}`
|
|
18
19
|
: "not found"})`);
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
depends("graphile-build-pg", "^4.5.0");
|
|
22
23
|
depends("graphile-plugin-connection-filter", "^2.0.0");
|
|
23
|
-
build.versions = build.extend(build.versions, { [
|
|
24
|
+
build.versions = build.extend(build.versions, { [pkg.name]: pkg.version });
|
|
24
25
|
return build;
|
|
25
26
|
});
|
|
26
27
|
(0, PgConnectionArgFilterPostgisOperatorsPlugin_1.default)(builder, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-plugin-connection-filter-postgis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "PostGIS filtering options in PostGraphile",
|
|
5
5
|
"author": "Matt Bretl",
|
|
6
6
|
"homepage": "https://github.com/constructive-io/constructive",
|
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
"launchql"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
+
"find-and-require-package-json": "^0.8.0",
|
|
43
44
|
"graphile-build": "^4.14.1",
|
|
44
45
|
"graphile-build-pg": "^4.14.1",
|
|
45
|
-
"graphile-plugin-connection-filter": "^2.4.
|
|
46
|
-
"graphile-postgis": "^0.2.
|
|
46
|
+
"graphile-plugin-connection-filter": "^2.4.3",
|
|
47
|
+
"graphile-postgis": "^0.2.3"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"graphile-plugin-connection-filter": "workspace:^",
|
|
@@ -51,14 +52,14 @@
|
|
|
51
52
|
"postgraphile": "^4.14.1"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@types/pg": "^8.
|
|
55
|
+
"@types/pg": "^8.16.0",
|
|
55
56
|
"graphile-plugin-connection-filter": "workspace:^",
|
|
56
|
-
"graphile-test": "^2.9.
|
|
57
|
+
"graphile-test": "^2.9.3",
|
|
57
58
|
"graphql": "15.10.1",
|
|
58
59
|
"makage": "^0.1.6",
|
|
59
|
-
"pg": "^8.16.
|
|
60
|
-
"pgsql-test": "^2.15.
|
|
60
|
+
"pg": "^8.16.3",
|
|
61
|
+
"pgsql-test": "^2.15.3",
|
|
61
62
|
"postgraphile": "^4.14.1"
|
|
62
63
|
},
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d20ccff8c779259574a23e93abbae51234695db5"
|
|
64
65
|
}
|