@map-colonies/mc-utils 1.4.4 → 1.5.0
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.js +333 -333
- 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/geo/bboxUtils.d.ts +23 -23
- package/dist/geo/bboxUtils.d.ts.map +1 -1
- package/dist/geo/bboxUtils.js +89 -84
- package/dist/geo/bboxUtils.js.map +1 -1
- 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 +4 -4
- package/dist/index.js +16 -16
- 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/iLogger.d.ts +6 -6
- package/dist/models/interfaces/iLogger.js +2 -2
- package/dist/models/interfaces/index.d.ts +2 -2
- package/dist/models/interfaces/index.js +14 -14
- package/package.json +76 -76
- package/CHANGELOG.md +0 -71
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './iLogger';
|
|
2
|
-
export * from './geo';
|
|
1
|
+
export * from './iLogger';
|
|
2
|
+
export * from './geo';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
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("./iLogger"), exports);
|
|
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("./iLogger"), exports);
|
|
14
|
+
__exportStar(require("./geo"), exports);
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
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.0",
|
|
69
|
-
"@turf/turf": "^6.5.0",
|
|
70
|
-
"axios": "^0.21.1",
|
|
71
|
-
"axios-retry": "^3.1.9",
|
|
72
|
-
"http-status-codes": "^2.1.4",
|
|
73
|
-
"lodash": "^4.17.21",
|
|
74
|
-
"ngeohash": "^0.6.3"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@map-colonies/mc-utils",
|
|
3
|
+
"version": "1.5.0",
|
|
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.0",
|
|
69
|
+
"@turf/turf": "^6.5.0",
|
|
70
|
+
"axios": "^0.21.1",
|
|
71
|
+
"axios-retry": "^3.1.9",
|
|
72
|
+
"http-status-codes": "^2.1.4",
|
|
73
|
+
"lodash": "^4.17.21",
|
|
74
|
+
"ngeohash": "^0.6.3"
|
|
75
|
+
}
|
|
76
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
### [1.4.4](https://github.com/MapColonies/mc-utils/compare/v1.4.3...v1.4.4) (2022-07-03)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* fixed axios option for requests ([#12](https://github.com/MapColonies/mc-utils/issues/12)) ([9ce0212](https://github.com/MapColonies/mc-utils/commit/9ce0212650ea62981e5c23578affef2a7fd83946))
|
|
11
|
-
|
|
12
|
-
### [1.4.3](https://github.com/MapColonies/mc-utils/compare/v1.4.1...v1.4.3) (2022-03-23)
|
|
13
|
-
|
|
14
|
-
### [1.4.2](https://github.com/MapColonies/mc-utils/compare/v1.4.1...v1.4.2) (2022-03-23)
|
|
15
|
-
|
|
16
|
-
### [1.4.1](https://github.com/MapColonies/mc-utils/compare/v1.4.0...v1.4.1) (2022-02-17)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Bug Fixes
|
|
20
|
-
|
|
21
|
-
* http client global config ([#10](https://github.com/MapColonies/mc-utils/issues/10)) ([55a94bc](https://github.com/MapColonies/mc-utils/commit/55a94bc38ebefaface019d8e2535728386734e88))
|
|
22
|
-
|
|
23
|
-
## [1.4.0](https://github.com/MapColonies/mc-utils/compare/v1.3.0...v1.4.0) (2022-01-17)
|
|
24
|
-
|
|
25
|
-
### [1.3.1](https://github.com/MapColonies/mc-utils/compare/v1.3.0...v1.3.1) (2022-01-17)
|
|
26
|
-
|
|
27
|
-
## [1.3.0](https://github.com/MapColonies/mc-utils/compare/v1.1.2...v1.3.0) (2021-12-30)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### Features
|
|
31
|
-
|
|
32
|
-
* support basic auth and external headers ([#7](https://github.com/MapColonies/mc-utils/issues/7)) ([26b0c5d](https://github.com/MapColonies/mc-utils/commit/26b0c5d79ab38c6346de611dd415cf9e64bf1123))
|
|
33
|
-
|
|
34
|
-
## [1.2.0](https://github.com/MapColonies/mc-utils/compare/v1.1.2...v1.2.0) (2021-12-01)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
### Features
|
|
38
|
-
|
|
39
|
-
* support basic auth and external headers ([#7](https://github.com/MapColonies/mc-utils/issues/7)) ([26b0c5d](https://github.com/MapColonies/mc-utils/commit/26b0c5d79ab38c6346de611dd415cf9e64bf1123))
|
|
40
|
-
|
|
41
|
-
### [1.1.2](https://github.com/MapColonies/mc-utils/compare/v1.1.0...v1.1.2) (2021-08-31)
|
|
42
|
-
|
|
43
|
-
### [1.1.1](https://github.com/MapColonies/mc-utils/compare/v1.1.0...v1.1.1) (2021-08-31)
|
|
44
|
-
|
|
45
|
-
## [1.1.0](https://github.com/MapColonies/mc-utils/compare/v1.0.2...v1.1.0) (2021-08-12)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Features
|
|
49
|
-
|
|
50
|
-
* Tile calculations ([#5](https://github.com/MapColonies/mc-utils/issues/5)) ([ea4c5ac](https://github.com/MapColonies/mc-utils/commit/ea4c5ac0941c7ee3d7c999e4034c0c44339db643))
|
|
51
|
-
|
|
52
|
-
### [1.0.2](https://github.com/MapColonies/mc-utils/compare/v1.0.1...v1.0.2) (2021-08-05)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### Bug Fixes
|
|
56
|
-
|
|
57
|
-
* prepublish for npm v7 ([#4](https://github.com/MapColonies/mc-utils/issues/4)) ([382bf72](https://github.com/MapColonies/mc-utils/commit/382bf7236622668fd213bfa86911288d33cb24da))
|
|
58
|
-
|
|
59
|
-
### [1.0.1](https://github.com/MapColonies/mc-utils/compare/v1.0.0...v1.0.1) (2021-08-05)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### Bug Fixes
|
|
63
|
-
|
|
64
|
-
* release command ([#2](https://github.com/MapColonies/mc-utils/issues/2)) ([8bad6a9](https://github.com/MapColonies/mc-utils/commit/8bad6a98de6359aa94ca22723a5ab7968e8b22a1))
|
|
65
|
-
|
|
66
|
-
## 1.0.0 (2021-07-28)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Features
|
|
70
|
-
|
|
71
|
-
* added http client ([#1](https://github.com/MapColonies/mc-utils/issues/1)) ([48ebf45](https://github.com/MapColonies/mc-utils/commit/48ebf45a62f07ae71cb1b23e8a6ad662da56590f))
|