@map-colonies/mc-utils 1.4.6 → 1.6.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.
Files changed (62) hide show
  1. package/README.md +67 -67
  2. package/dist/arrays/index.d.ts +1 -1
  3. package/dist/arrays/index.js +13 -13
  4. package/dist/arrays/subGroups.d.ts +8 -8
  5. package/dist/arrays/subGroups.js +138 -138
  6. package/dist/communication/http/httpClient.d.ts +26 -26
  7. package/dist/communication/http/httpClient.js +333 -333
  8. package/dist/communication/http/index.d.ts +1 -1
  9. package/dist/communication/http/index.js +13 -13
  10. package/dist/communication/index.d.ts +1 -1
  11. package/dist/communication/index.js +13 -13
  12. package/dist/dateTime/getUTCDate.d.ts +2 -0
  13. package/dist/dateTime/getUTCDate.d.ts.map +1 -0
  14. package/dist/dateTime/getUTCDate.js +11 -0
  15. package/dist/dateTime/getUTCDate.js.map +1 -0
  16. package/dist/dateTime/index.d.ts +2 -0
  17. package/dist/dateTime/index.d.ts.map +1 -0
  18. package/dist/dateTime/index.js +14 -0
  19. package/dist/dateTime/index.js.map +1 -0
  20. package/dist/geo/bboxUtils.d.ts +23 -23
  21. package/dist/geo/bboxUtils.d.ts.map +1 -1
  22. package/dist/geo/bboxUtils.js +89 -84
  23. package/dist/geo/bboxUtils.js.map +1 -1
  24. package/dist/geo/geoConvertor.d.ts +18 -18
  25. package/dist/geo/geoConvertor.js +51 -51
  26. package/dist/geo/geoHash.d.ts +24 -24
  27. package/dist/geo/geoHash.js +242 -242
  28. package/dist/geo/geoIntersection.d.ts +12 -12
  29. package/dist/geo/geoIntersection.js +27 -27
  30. package/dist/geo/index.d.ts +8 -8
  31. package/dist/geo/index.js +20 -20
  32. package/dist/geo/tileBatcher.d.ts +8 -8
  33. package/dist/geo/tileBatcher.js +167 -167
  34. package/dist/geo/tileRanger.d.ts +39 -39
  35. package/dist/geo/tileRanger.js +254 -254
  36. package/dist/geo/tiles.d.ts +32 -32
  37. package/dist/geo/tiles.js +65 -65
  38. package/dist/geo/tilesGenerator.d.ts +2 -2
  39. package/dist/geo/tilesGenerator.js +94 -94
  40. package/dist/index.d.ts +5 -4
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +17 -16
  43. package/dist/index.js.map +1 -1
  44. package/dist/models/enums/geo/index.d.ts +1 -1
  45. package/dist/models/enums/geo/index.js +13 -13
  46. package/dist/models/enums/geo/tileOrigin.d.ts +7 -7
  47. package/dist/models/enums/geo/tileOrigin.js +11 -11
  48. package/dist/models/enums/index.d.ts +1 -1
  49. package/dist/models/enums/index.js +13 -13
  50. package/dist/models/index.d.ts +2 -2
  51. package/dist/models/index.js +14 -14
  52. package/dist/models/interfaces/geo/iPoint.d.ts +7 -7
  53. package/dist/models/interfaces/geo/iPoint.js +2 -2
  54. package/dist/models/interfaces/geo/iTile.d.ts +15 -15
  55. package/dist/models/interfaces/geo/iTile.js +2 -2
  56. package/dist/models/interfaces/geo/index.d.ts +2 -2
  57. package/dist/models/interfaces/geo/index.js +14 -14
  58. package/dist/models/interfaces/iLogger.d.ts +6 -6
  59. package/dist/models/interfaces/iLogger.js +2 -2
  60. package/dist/models/interfaces/index.d.ts +2 -2
  61. package/dist/models/interfaces/index.js +14 -14
  62. package/package.json +76 -76
@@ -1,7 +1,7 @@
1
- export interface ILogger {
2
- error: (message: string) => void;
3
- warn: (message: string) => void;
4
- info: (message: string) => void;
5
- debug: (message: string) => void;
6
- }
1
+ export interface ILogger {
2
+ error: (message: string) => void;
3
+ warn: (message: string) => void;
4
+ info: (message: string) => void;
5
+ debug: (message: string) => void;
6
+ }
7
7
  //# sourceMappingURL=iLogger.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=iLogger.js.map
@@ -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.6",
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.6.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
+ }