@map-colonies/mc-utils 1.5.0 → 1.6.1
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/README.md +67 -67
- package/dist/arrays/index.d.ts +1 -1
- package/dist/arrays/index.js +13 -13
- package/dist/arrays/subGroups.d.ts +8 -8
- package/dist/arrays/subGroups.js +138 -138
- package/dist/communication/http/httpClient.d.ts +26 -26
- package/dist/communication/http/httpClient.d.ts.map +1 -1
- package/dist/communication/http/httpClient.js +333 -333
- package/dist/communication/http/httpClient.js.map +1 -1
- package/dist/communication/http/index.d.ts +1 -1
- package/dist/communication/http/index.js +13 -13
- package/dist/communication/index.d.ts +1 -1
- package/dist/communication/index.js +13 -13
- package/dist/dateTime/getUTCDate.d.ts +2 -0
- package/dist/dateTime/getUTCDate.d.ts.map +1 -0
- package/dist/dateTime/getUTCDate.js +11 -0
- package/dist/dateTime/getUTCDate.js.map +1 -0
- package/dist/dateTime/index.d.ts +2 -0
- package/dist/dateTime/index.d.ts.map +1 -0
- package/dist/dateTime/index.js +14 -0
- package/dist/dateTime/index.js.map +1 -0
- package/dist/geo/bboxUtils.d.ts +23 -23
- package/dist/geo/bboxUtils.js +89 -89
- package/dist/geo/geoConvertor.d.ts +18 -18
- package/dist/geo/geoConvertor.js +51 -51
- package/dist/geo/geoHash.d.ts +24 -24
- package/dist/geo/geoHash.js +242 -242
- package/dist/geo/geoIntersection.d.ts +12 -12
- package/dist/geo/geoIntersection.js +27 -27
- package/dist/geo/index.d.ts +8 -8
- package/dist/geo/index.js +20 -20
- package/dist/geo/tileBatcher.d.ts +8 -8
- package/dist/geo/tileBatcher.js +167 -167
- package/dist/geo/tileRanger.d.ts +39 -39
- package/dist/geo/tileRanger.js +254 -254
- package/dist/geo/tiles.d.ts +32 -32
- package/dist/geo/tiles.js +65 -65
- package/dist/geo/tilesGenerator.d.ts +2 -2
- package/dist/geo/tilesGenerator.js +94 -94
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -16
- package/dist/index.js.map +1 -1
- package/dist/models/enums/geo/index.d.ts +1 -1
- package/dist/models/enums/geo/index.js +13 -13
- package/dist/models/enums/geo/tileOrigin.d.ts +7 -7
- package/dist/models/enums/geo/tileOrigin.js +11 -11
- package/dist/models/enums/index.d.ts +1 -1
- package/dist/models/enums/index.js +13 -13
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +14 -14
- package/dist/models/interfaces/geo/iPoint.d.ts +7 -7
- package/dist/models/interfaces/geo/iPoint.js +2 -2
- package/dist/models/interfaces/geo/iTile.d.ts +15 -15
- package/dist/models/interfaces/geo/iTile.js +2 -2
- package/dist/models/interfaces/geo/index.d.ts +2 -2
- package/dist/models/interfaces/geo/index.js +14 -14
- package/dist/models/interfaces/index.d.ts +1 -2
- package/dist/models/interfaces/index.d.ts.map +1 -1
- package/dist/models/interfaces/index.js +13 -14
- package/dist/models/interfaces/index.js.map +1 -1
- package/package.json +77 -76
- package/dist/models/interfaces/iLogger.d.ts +0 -7
- package/dist/models/interfaces/iLogger.d.ts.map +0 -1
- package/dist/models/interfaces/iLogger.js +0 -3
- package/dist/models/interfaces/iLogger.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./
|
|
14
|
-
__exportStar(require("./geo"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./geo"), exports);
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAsB"}
|
package/package.json
CHANGED
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@map-colonies/mc-utils",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "This is template for map colonies typescript packages",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test:unit": "jest --config=./tests/configurations/unit/jest.config.js",
|
|
8
|
-
"test:integration": "jest --config=./tests/configurations/integration/jest.config.js",
|
|
9
|
-
"format": "prettier --check .",
|
|
10
|
-
"format:fix": "prettier --write .",
|
|
11
|
-
"prelint:fix": "npm run format:fix",
|
|
12
|
-
"prelint": "npm run format",
|
|
13
|
-
"lint": "eslint .",
|
|
14
|
-
"lint:fix": "eslint --fix .",
|
|
15
|
-
"release": "standard-version",
|
|
16
|
-
"test": "npm run test:unit && npm run test:integration",
|
|
17
|
-
"prebuild": "npm run clean",
|
|
18
|
-
"build": "tsc --project tsconfig.build.json",
|
|
19
|
-
"start": "npm run build && cd dist && node ./index.js",
|
|
20
|
-
"clean": "rimraf dist",
|
|
21
|
-
"prepack": "npm run build"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/MapColonies/mc-utils.git"
|
|
26
|
-
},
|
|
27
|
-
"author": "MapColonies",
|
|
28
|
-
"license": "ISC",
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/MapColonies/mc-utils/issues"
|
|
31
|
-
},
|
|
32
|
-
"husky": {
|
|
33
|
-
"hooks": {
|
|
34
|
-
"pre-commit": "pretty-quick --staged",
|
|
35
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"files": [
|
|
39
|
-
"dist/**/*"
|
|
40
|
-
],
|
|
41
|
-
"homepage": "https://github.com/MapColonies/mc-utils#readme",
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@commitlint/cli": "^11.0.0",
|
|
44
|
-
"@commitlint/config-conventional": "^11.0.0",
|
|
45
|
-
"@map-colonies/eslint-config": "^2.2.0",
|
|
46
|
-
"@map-colonies/prettier-config": "0.0.1",
|
|
47
|
-
"@types/express": "^4.17.13",
|
|
48
|
-
"@types/jest": "^26.0.19",
|
|
49
|
-
"@types/lodash": "^4.14.171",
|
|
50
|
-
"@types/ngeohash": "^0.6.3",
|
|
51
|
-
"@types/node": "^14.14.12",
|
|
52
|
-
"commitlint": "^11.0.0",
|
|
53
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
54
|
-
"eslint": "^7.8.1",
|
|
55
|
-
"husky": "^4.3.5",
|
|
56
|
-
"jest": "^26.6.3",
|
|
57
|
-
"jest-create-mock-instance": "^1.1.0",
|
|
58
|
-
"jest-html-reporters": "^2.1.2",
|
|
59
|
-
"prettier": "^2.2.1",
|
|
60
|
-
"pretty-quick": "^3.1.0",
|
|
61
|
-
"standard-version": "^9.3.0",
|
|
62
|
-
"ts-jest": "^26.4.4",
|
|
63
|
-
"ts-node": "^9.1.1",
|
|
64
|
-
"typedoc": "^0.22.10",
|
|
65
|
-
"typescript": "^4.2.4"
|
|
66
|
-
},
|
|
67
|
-
"dependencies": {
|
|
68
|
-
"@map-colonies/error-types": "^1.1.
|
|
69
|
-
"@
|
|
70
|
-
"
|
|
71
|
-
"axios
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@map-colonies/mc-utils",
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "This is template for map colonies typescript packages",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test:unit": "jest --config=./tests/configurations/unit/jest.config.js",
|
|
8
|
+
"test:integration": "jest --config=./tests/configurations/integration/jest.config.js",
|
|
9
|
+
"format": "prettier --check .",
|
|
10
|
+
"format:fix": "prettier --write .",
|
|
11
|
+
"prelint:fix": "npm run format:fix",
|
|
12
|
+
"prelint": "npm run format",
|
|
13
|
+
"lint": "eslint .",
|
|
14
|
+
"lint:fix": "eslint --fix .",
|
|
15
|
+
"release": "standard-version",
|
|
16
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
17
|
+
"prebuild": "npm run clean",
|
|
18
|
+
"build": "tsc --project tsconfig.build.json",
|
|
19
|
+
"start": "npm run build && cd dist && node ./index.js",
|
|
20
|
+
"clean": "rimraf dist",
|
|
21
|
+
"prepack": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/MapColonies/mc-utils.git"
|
|
26
|
+
},
|
|
27
|
+
"author": "MapColonies",
|
|
28
|
+
"license": "ISC",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/MapColonies/mc-utils/issues"
|
|
31
|
+
},
|
|
32
|
+
"husky": {
|
|
33
|
+
"hooks": {
|
|
34
|
+
"pre-commit": "pretty-quick --staged",
|
|
35
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist/**/*"
|
|
40
|
+
],
|
|
41
|
+
"homepage": "https://github.com/MapColonies/mc-utils#readme",
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@commitlint/cli": "^11.0.0",
|
|
44
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
45
|
+
"@map-colonies/eslint-config": "^2.2.0",
|
|
46
|
+
"@map-colonies/prettier-config": "0.0.1",
|
|
47
|
+
"@types/express": "^4.17.13",
|
|
48
|
+
"@types/jest": "^26.0.19",
|
|
49
|
+
"@types/lodash": "^4.14.171",
|
|
50
|
+
"@types/ngeohash": "^0.6.3",
|
|
51
|
+
"@types/node": "^14.14.12",
|
|
52
|
+
"commitlint": "^11.0.0",
|
|
53
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
54
|
+
"eslint": "^7.8.1",
|
|
55
|
+
"husky": "^4.3.5",
|
|
56
|
+
"jest": "^26.6.3",
|
|
57
|
+
"jest-create-mock-instance": "^1.1.0",
|
|
58
|
+
"jest-html-reporters": "^2.1.2",
|
|
59
|
+
"prettier": "^2.2.1",
|
|
60
|
+
"pretty-quick": "^3.1.0",
|
|
61
|
+
"standard-version": "^9.3.0",
|
|
62
|
+
"ts-jest": "^26.4.4",
|
|
63
|
+
"ts-node": "^9.1.1",
|
|
64
|
+
"typedoc": "^0.22.10",
|
|
65
|
+
"typescript": "^4.2.4"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@map-colonies/error-types": "^1.1.5",
|
|
69
|
+
"@map-colonies/js-logger": "^0.0.5",
|
|
70
|
+
"@turf/turf": "^6.5.0",
|
|
71
|
+
"axios": "^0.21.1",
|
|
72
|
+
"axios-retry": "^3.1.9",
|
|
73
|
+
"http-status-codes": "^2.1.4",
|
|
74
|
+
"lodash": "^4.17.21",
|
|
75
|
+
"ngeohash": "^0.6.3"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iLogger.d.ts","sourceRoot":"","sources":["../../../src/models/interfaces/iLogger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iLogger.js","sourceRoot":"","sources":["../../../src/models/interfaces/iLogger.ts"],"names":[],"mappings":""}
|