@basemaps/shared 6.27.0 → 6.28.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 (49) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/{__test__ → __tests__}/api.path.test.d.ts +0 -0
  3. package/build/__tests__/api.path.test.d.ts.map +1 -0
  4. package/build/{__test__ → __tests__}/api.path.test.js +0 -0
  5. package/build/{__test__ → __tests__}/api.test.d.ts +0 -0
  6. package/build/{__test__ → __tests__}/api.test.d.ts.map +1 -1
  7. package/build/{__test__ → __tests__}/api.test.js +0 -0
  8. package/build/{__test__ → __tests__}/env.test.d.ts +0 -0
  9. package/build/{__test__ → __tests__}/env.test.d.ts.map +1 -1
  10. package/build/{__test__ → __tests__}/env.test.js +0 -0
  11. package/build/{__test__ → __tests__}/util.test.d.ts +0 -0
  12. package/build/{__test__ → __tests__}/util.test.d.ts.map +1 -1
  13. package/build/{__test__ → __tests__}/util.test.js +0 -0
  14. package/build/{__test__ → __tests__}/vdom.parse.test.d.ts +0 -0
  15. package/build/__tests__/vdom.parse.test.d.ts.map +1 -0
  16. package/build/{__test__ → __tests__}/vdom.parse.test.js +0 -0
  17. package/build/{__test__ → __tests__}/vdom.test.d.ts +0 -0
  18. package/build/{__test__ → __tests__}/vdom.test.d.ts.map +1 -1
  19. package/build/{__test__ → __tests__}/vdom.test.js +0 -0
  20. package/build/cli/{__test__ → __tests__}/git.tag.test.d.ts +0 -0
  21. package/build/cli/__tests__/git.tag.test.d.ts.map +1 -0
  22. package/build/cli/{__test__ → __tests__}/git.tag.test.js +0 -0
  23. package/build/cli/base.d.ts +18 -0
  24. package/build/cli/base.d.ts.map +1 -0
  25. package/build/cli/base.js +60 -0
  26. package/build/file/{__test__ → __tests__}/file.local.test.d.ts +0 -0
  27. package/build/file/__tests__/file.local.test.d.ts.map +1 -0
  28. package/build/file/{__test__ → __tests__}/file.local.test.js +0 -0
  29. package/build/file/{__test__ → __tests__}/file.operator.test.helper.d.ts +0 -0
  30. package/build/file/__tests__/file.operator.test.helper.d.ts.map +1 -0
  31. package/build/file/{__test__ → __tests__}/file.operator.test.helper.js +0 -0
  32. package/build/proj/{__test__ → __tests__}/projection.test.d.ts +0 -0
  33. package/build/proj/__tests__/projection.test.d.ts.map +1 -0
  34. package/build/proj/{__test__ → __tests__}/projection.test.js +0 -0
  35. package/build/proj/{__test__ → __tests__}/projection.tile.matrix.set.test.d.ts +0 -0
  36. package/build/proj/__tests__/projection.tile.matrix.set.test.d.ts.map +1 -0
  37. package/build/proj/{__test__ → __tests__}/projection.tile.matrix.set.test.js +0 -0
  38. package/build/proj/{__test__ → __tests__}/test.util.d.ts +0 -0
  39. package/build/proj/__tests__/test.util.d.ts.map +1 -0
  40. package/build/proj/{__test__ → __tests__}/test.util.js +0 -0
  41. package/package.json +5 -5
  42. package/build/__test__/api.path.test.d.ts.map +0 -1
  43. package/build/__test__/vdom.parse.test.d.ts.map +0 -1
  44. package/build/cli/__test__/git.tag.test.d.ts.map +0 -1
  45. package/build/file/__test__/file.local.test.d.ts.map +0 -1
  46. package/build/file/__test__/file.operator.test.helper.d.ts.map +0 -1
  47. package/build/proj/__test__/projection.test.d.ts.map +0 -1
  48. package/build/proj/__test__/projection.tile.matrix.set.test.d.ts.map +0 -1
  49. package/build/proj/__test__/test.util.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.28.0](https://github.com/linz/basemaps/compare/v6.27.0...v6.28.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **server:** bundle basemaps-server cli so its easier to install ([#2218](https://github.com/linz/basemaps/issues/2218)) ([8457b66](https://github.com/linz/basemaps/commit/8457b66be6d0f54decf43b515bb78853cefbc8ed))
12
+
13
+
14
+
15
+
16
+
6
17
  # [6.27.0](https://github.com/linz/basemaps/compare/v6.26.0...v6.27.0) (2022-05-29)
7
18
 
8
19
 
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.path.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/api.path.test.ts"],"names":[],"mappings":""}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../../src/__test__/api.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/api.test.ts"],"names":[],"mappings":""}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"env.test.d.ts","sourceRoot":"","sources":["../../src/__test__/env.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"env.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/env.test.ts"],"names":[],"mappings":""}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"util.test.d.ts","sourceRoot":"","sources":["../../src/__test__/util.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"util.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/util.test.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vdom.parse.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/vdom.parse.test.ts"],"names":[],"mappings":""}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"vdom.test.d.ts","sourceRoot":"","sources":["../../src/__test__/vdom.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"vdom.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/vdom.test.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.tag.test.d.ts","sourceRoot":"","sources":["../../../src/cli/__tests__/git.tag.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { CommandLineParser } from '@rushstack/ts-command-line';
2
+ import 'source-map-support/register.js';
3
+ /** Useful traceability information */
4
+ export declare const CliInfo: {
5
+ package: string;
6
+ version: string;
7
+ hash: string;
8
+ };
9
+ /** Unique Id for this instance of the cli being run */
10
+ export declare const CliId: string;
11
+ export declare abstract class BaseCommandLine extends CommandLineParser {
12
+ verbose: import("@rushstack/ts-command-line").CommandLineFlagParameter;
13
+ extraVerbose: import("@rushstack/ts-command-line").CommandLineFlagParameter;
14
+ protected onExecute(): Promise<void>;
15
+ protected onDefineParameters(): void;
16
+ run(): void;
17
+ }
18
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/cli/base.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,gCAAgC,CAAC;AAGxC,uCAAuC;AACvC,eAAO,MAAM,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAKrE,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,KAAK,QAAc,CAAC;AAEjC,8BAAsB,eAAgB,SAAQ,iBAAiB;IAC7D,OAAO,gEAIJ;IACH,YAAY,gEAIT;IAEH,SAAS,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAepC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAI7B,GAAG,IAAI,IAAI;CAUnB"}
@@ -0,0 +1,60 @@
1
+ var _a, _b;
2
+ import { LogConfig } from '../log.js';
3
+ import { LoggerFatalError } from '../logger.fatal.error.js';
4
+ import { GitTag } from './git.tag.js';
5
+ import { CommandLineParser } from '@rushstack/ts-command-line';
6
+ import 'source-map-support/register.js';
7
+ import * as ulid from 'ulid';
8
+ /** Useful traceability information */
9
+ export const CliInfo = {
10
+ // Detect unlinked packages looks for this string since its a package name, slightly work around it
11
+ package: '@' + 'basemaps/cli',
12
+ version: (_a = process.env.GIT_VERSION) !== null && _a !== void 0 ? _a : GitTag().version,
13
+ hash: (_b = process.env.GIT_HASH) !== null && _b !== void 0 ? _b : GitTag().hash,
14
+ };
15
+ /** Unique Id for this instance of the cli being run */
16
+ export const CliId = ulid.ulid();
17
+ export class BaseCommandLine extends CommandLineParser {
18
+ constructor() {
19
+ super(...arguments);
20
+ this.verbose = this.defineFlagParameter({
21
+ parameterLongName: '--verbose',
22
+ parameterShortName: '-v',
23
+ description: 'Show extra logging detail',
24
+ });
25
+ this.extraVerbose = this.defineFlagParameter({
26
+ parameterLongName: '--vv',
27
+ parameterShortName: '-V',
28
+ description: 'Show extra extra logging detail',
29
+ });
30
+ }
31
+ onExecute() {
32
+ if (this.verbose.value) {
33
+ LogConfig.get().level = 'debug';
34
+ }
35
+ else if (this.extraVerbose.value) {
36
+ LogConfig.get().level = 'trace';
37
+ }
38
+ else {
39
+ LogConfig.get().level = 'info';
40
+ }
41
+ const logger = LogConfig.get().child({ id: CliId });
42
+ logger.info(CliInfo, 'CliStart');
43
+ LogConfig.set(logger);
44
+ return super.onExecute();
45
+ }
46
+ onDefineParameters() {
47
+ // Nothing
48
+ }
49
+ run() {
50
+ this.executeWithoutErrorHandling().catch((err) => {
51
+ if (err instanceof LoggerFatalError) {
52
+ LogConfig.get().fatal(err.obj, err.message);
53
+ }
54
+ else {
55
+ LogConfig.get().fatal({ err }, 'Failed to run command');
56
+ }
57
+ process.exit(1);
58
+ });
59
+ }
60
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.local.test.d.ts","sourceRoot":"","sources":["../../../src/file/__tests__/file.local.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.operator.test.helper.d.ts","sourceRoot":"","sources":["../../../src/file/__tests__/file.operator.test.helper.ts"],"names":[],"mappings":";AAGA,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;IACzC,0CAA0C;IAC1C,KAAK,IAAI,IAAI,CAAC;IACd,4CAA4C;IAC5C,QAAQ,IAAI,IAAI,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgDzC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projection.test.d.ts","sourceRoot":"","sources":["../../../src/proj/__tests__/projection.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projection.tile.matrix.set.test.d.ts","sourceRoot":"","sources":["../../../src/proj/__tests__/projection.tile.matrix.set.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.util.d.ts","sourceRoot":"","sources":["../../../src/proj/__tests__/test.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,aAAa,EAAE,IAAI,EAAkB,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpG,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAGjE;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,gBAAsC,GAAG,WAAW,EAAE,CAEpH;AAED,wBAAgB,YAAY,CAC1B,WAAW,EAAE,IAAI,EACjB,MAAM,EAAE,MAAM,EACd,MAAM,SAAI,EACV,GAAG,gBAAsC,GACxC,WAAW,EAAE,CAef"}
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/shared",
3
- "version": "6.27.0",
3
+ "version": "6.28.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,11 +23,11 @@
23
23
  "test": "ospec --globs 'build/**/*.test.js'"
24
24
  },
25
25
  "dependencies": {
26
- "@basemaps/config": "^6.27.0",
26
+ "@basemaps/config": "^6.28.0",
27
27
  "@basemaps/geo": "^6.26.0",
28
- "@basemaps/tiler": "^6.26.0",
28
+ "@basemaps/tiler": "^6.28.0",
29
29
  "@chunkd/source-aws-v2": "^8.1.0",
30
- "@linzjs/geojson": "^6.21.1",
30
+ "@linzjs/geojson": "^6.28.0",
31
31
  "@linzjs/metrics": "^6.21.1",
32
32
  "aws-sdk": "^2.890.0",
33
33
  "pino": "^7.5.0",
@@ -48,5 +48,5 @@
48
48
  "files": [
49
49
  "build/"
50
50
  ],
51
- "gitHead": "c6aa61c20503cbc7f04cf31927f4e2b95aed34cb"
51
+ "gitHead": "c9e62ec8f9cf5aa1dd79305575fdd1708835e0d9"
52
52
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.path.test.d.ts","sourceRoot":"","sources":["../../src/__test__/api.path.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"vdom.parse.test.d.ts","sourceRoot":"","sources":["../../src/__test__/vdom.parse.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"git.tag.test.d.ts","sourceRoot":"","sources":["../../../src/cli/__test__/git.tag.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.local.test.d.ts","sourceRoot":"","sources":["../../../src/file/__test__/file.local.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.operator.test.helper.d.ts","sourceRoot":"","sources":["../../../src/file/__test__/file.operator.test.helper.ts"],"names":[],"mappings":";AAGA,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;IACzC,0CAA0C;IAC1C,KAAK,IAAI,IAAI,CAAC;IACd,4CAA4C;IAC5C,QAAQ,IAAI,IAAI,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgDzC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"projection.test.d.ts","sourceRoot":"","sources":["../../../src/proj/__test__/projection.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"projection.tile.matrix.set.test.d.ts","sourceRoot":"","sources":["../../../src/proj/__test__/projection.tile.matrix.set.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.util.d.ts","sourceRoot":"","sources":["../../../src/proj/__test__/test.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,aAAa,EAAE,IAAI,EAAkB,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpG,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAGjE;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,gBAAsC,GAAG,WAAW,EAAE,CAEpH;AAED,wBAAgB,YAAY,CAC1B,WAAW,EAAE,IAAI,EACjB,MAAM,EAAE,MAAM,EACd,MAAM,SAAI,EACV,GAAG,gBAAsC,GACxC,WAAW,EAAE,CAef"}