@golemio/municipal-authorities 1.0.4-dev.568966730 → 1.0.4-dev.622550712
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,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.municipalAuthoritiesRouter = exports.MunicipalAuthoritiesRouter = void 0;
|
|
22
|
-
const lodash_1 = require("lodash");
|
|
23
22
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
24
23
|
const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
|
|
25
24
|
const redis_1 = require("@golemio/core/dist/output-gateway/redis");
|
|
@@ -54,9 +53,9 @@ class MunicipalAuthoritiesRouter extends routes_1.GeoJsonRouter {
|
|
|
54
53
|
districts,
|
|
55
54
|
ids,
|
|
56
55
|
lat: coords.lat,
|
|
57
|
-
limit: (
|
|
56
|
+
limit: Number(req.query.limit) || undefined,
|
|
58
57
|
lng: coords.lng,
|
|
59
|
-
offset: (
|
|
58
|
+
offset: Number(req.query.offset) || undefined,
|
|
60
59
|
range: coords.range,
|
|
61
60
|
updatedSince: req.query.updatedSince,
|
|
62
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MunicipalAuthoritiesRouter.js","sourceRoot":"","sources":["../../src/output-gateway/MunicipalAuthoritiesRouter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MunicipalAuthoritiesRouter.js","sourceRoot":"","sources":["../../src/output-gateway/MunicipalAuthoritiesRouter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAGH,mFAA2E;AAC3E,+DAAyE;AACzE,mEAA6E;AAC7E,qEAAyE;AACzE,6EAAqG;AACrG,qCAAsF;AACtF,gGAA+D;AAE/D,MAAa,0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a,EAAE,CAAC,IAAA,yBAAK,EAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAA,0BAAkB,GAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACxG,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,GAAG,EACH,CAAC,IAAA,yBAAK,EAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,EACrC,IAAI,CAAC,cAAc,EACnB,uBAAU,EACV,IAAA,sCAAyB,EAAC,4BAA4B,CAAC,EACvD,IAAA,0BAAkB,GAAE,EACpB,IAAI,CAAC,MAAM,CACd,CAAC;IACN,CAAC;CAsDJ;AAvED,gEAuEC;AAED,MAAM,0BAA0B,GAAW,IAAI,0BAA0B,EAAE,CAAC,MAAM,CAAC;AAE1E,gEAA0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/municipal-authorities",
|
|
3
|
-
"version": "1.0.4-dev.
|
|
3
|
+
"version": "1.0.4-dev.622550712",
|
|
4
4
|
"description": "Golemio Municipal Authorities Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
14
14
|
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
15
15
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
16
|
-
"lint": "eslint
|
|
16
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"golemio"
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
33
33
|
"@types/chai": "4.2.3",
|
|
34
34
|
"@types/chai-as-promised": "7.1.2",
|
|
35
|
-
"@types/lodash": "^4.14.165",
|
|
36
35
|
"@types/mocha": "^8.2.0",
|
|
37
36
|
"@types/node": "^16.11.35",
|
|
38
37
|
"@types/sinon": "^9.0.10",
|
|
@@ -60,7 +59,5 @@
|
|
|
60
59
|
"peerDependencies": {
|
|
61
60
|
"@golemio/core": "^1.1.1"
|
|
62
61
|
},
|
|
63
|
-
"dependencies": {
|
|
64
|
-
"lodash": "^4.17.19"
|
|
65
|
-
}
|
|
62
|
+
"dependencies": {}
|
|
66
63
|
}
|