@basemaps/shared 6.26.0 → 6.28.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +31 -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/const.d.ts +4 -0
  27. package/build/const.d.ts.map +1 -1
  28. package/build/const.js +4 -0
  29. package/build/file/{__test__ → __tests__}/file.local.test.d.ts +0 -0
  30. package/build/file/__tests__/file.local.test.d.ts.map +1 -0
  31. package/build/file/{__test__ → __tests__}/file.local.test.js +0 -0
  32. package/build/file/{__test__ → __tests__}/file.operator.test.helper.d.ts +0 -0
  33. package/build/file/__tests__/file.operator.test.helper.d.ts.map +1 -0
  34. package/build/file/{__test__ → __tests__}/file.operator.test.helper.js +1 -1
  35. package/build/proj/{__test__ → __tests__}/projection.test.d.ts +0 -0
  36. package/build/proj/__tests__/projection.test.d.ts.map +1 -0
  37. package/build/proj/{__test__ → __tests__}/projection.test.js +0 -0
  38. package/build/proj/{__test__ → __tests__}/projection.tile.matrix.set.test.d.ts +0 -0
  39. package/build/proj/__tests__/projection.tile.matrix.set.test.d.ts.map +1 -0
  40. package/build/proj/{__test__ → __tests__}/projection.tile.matrix.set.test.js +0 -0
  41. package/build/proj/{__test__ → __tests__}/test.util.d.ts +0 -0
  42. package/build/proj/__tests__/test.util.d.ts.map +1 -0
  43. package/build/proj/{__test__ → __tests__}/test.util.js +0 -0
  44. package/package.json +7 -8
  45. package/build/__test__/api.path.test.d.ts.map +0 -1
  46. package/build/__test__/vdom.parse.test.d.ts.map +0 -1
  47. package/build/cli/__test__/git.tag.test.d.ts.map +0 -1
  48. package/build/file/__test__/file.local.test.d.ts.map +0 -1
  49. package/build/file/__test__/file.operator.test.helper.d.ts.map +0 -1
  50. package/build/proj/__test__/projection.test.d.ts.map +0 -1
  51. package/build/proj/__test__/projection.tile.matrix.set.test.d.ts.map +0 -1
  52. package/build/proj/__test__/test.util.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,37 @@
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.1](https://github.com/linz/basemaps/compare/v6.28.0...v6.28.1) (2022-06-07)
7
+
8
+ **Note:** Version bump only for package @basemaps/shared
9
+
10
+
11
+
12
+
13
+
14
+ # [6.28.0](https://github.com/linz/basemaps/compare/v6.27.0...v6.28.0) (2022-06-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
25
+ # [6.27.0](https://github.com/linz/basemaps/compare/v6.26.0...v6.27.0) (2022-05-29)
26
+
27
+
28
+ ### Features
29
+
30
+ * **infra:** Increase the import api size limitation to 1200GB. ([#2215](https://github.com/linz/basemaps/issues/2215)) ([94c4da8](https://github.com/linz/basemaps/commit/94c4da8eb0f07f03e46f5ac7a6759c486e56f5d4))
31
+ * **lambda-tiler:** Increase limit of total file size. ([#2205](https://github.com/linz/basemaps/issues/2205)) ([5246ea0](https://github.com/linz/basemaps/commit/5246ea0879a4bf6b20770fb633d63afac778d54d))
32
+
33
+
34
+
35
+
36
+
6
37
  # [6.26.0](https://github.com/linz/basemaps/compare/v6.25.0...v6.26.0) (2022-05-12)
7
38
 
8
39
  **Note:** Version bump only for package @basemaps/shared
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
+ }
package/build/const.d.ts CHANGED
@@ -27,6 +27,10 @@ export declare const Env: {
27
27
  AwsRoleConfigBucket: string;
28
28
  /** Import Imagery bucket */
29
29
  ImportImageryBucket: string;
30
+ /** Import Imagery files number limit */
31
+ ImportFilesNumberLimit: string;
32
+ /** Import Imagery files total size limit in GB */
33
+ ImportFilesSizeLimitGb: string;
30
34
  Gdal: {
31
35
  /** Should the gdal docker container be used? */
32
36
  UseDocker: string;
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAajB,CAAC;AAEF,eAAO,MAAM,GAAG;IACd,iDAAiD;;IAGjD,yCAAyC;;IAGzC,0DAA0D;;IAG1D,6DAA6D;;IAG7D,uDAAuD;;IAGvD,6BAA6B;;IAG7B,4BAA4B;;;QAI1B,gDAAgD;;QAEhD,2DAA2D;;;;;;;;;IAW7D,+EAA+E;iBAClE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIxC,gGAAgG;uBAC7E,MAAM,iBAAiB,MAAM,GAAG,MAAM;oBAazC,OAAO;CAGxB,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAajB,CAAC;AAEF,eAAO,MAAM,GAAG;IACd,iDAAiD;;IAGjD,yCAAyC;;IAGzC,0DAA0D;;IAG1D,6DAA6D;;IAG7D,uDAAuD;;IAGvD,6BAA6B;;IAG7B,4BAA4B;;IAG5B,wCAAwC;;IAGxC,kDAAkD;;;QAIhD,gDAAgD;;QAEhD,2DAA2D;;;;;;;;;IAW7D,+EAA+E;iBAClE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIxC,gGAAgG;uBAC7E,MAAM,iBAAiB,MAAM,GAAG,MAAM;oBAazC,OAAO;CAGxB,CAAC"}
package/build/const.js CHANGED
@@ -28,6 +28,10 @@ export const Env = {
28
28
  AwsRoleConfigBucket: 'ROLE_CONFIG_BUCKET',
29
29
  /** Import Imagery bucket */
30
30
  ImportImageryBucket: 'IMPORT_IMAGERY_BUCKET',
31
+ /** Import Imagery files number limit */
32
+ ImportFilesNumberLimit: 'FILES_NUMBER_LIMIT',
33
+ /** Import Imagery files total size limit in GB */
34
+ ImportFilesSizeLimitGb: 'FILES_SIZE_LIMIT_GB',
31
35
  Gdal: {
32
36
  /** Should the gdal docker container be used? */
33
37
  UseDocker: 'GDAL_DOCKER',
@@ -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"}
@@ -1,4 +1,4 @@
1
- import { CompositeError } from '@linzjs/s3fs';
1
+ import { CompositeError } from '../../composite.error.js';
2
2
  import { fsa } from '../index.js';
3
3
  /**
4
4
  * Create an interface for stubbing `FileOperator.read,write,readJson,writeJson`
@@ -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.26.0",
3
+ "version": "6.28.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,13 +23,12 @@
23
23
  "test": "ospec --globs 'build/**/*.test.js'"
24
24
  },
25
25
  "dependencies": {
26
- "@basemaps/config": "^6.26.0",
27
- "@basemaps/geo": "^6.26.0",
28
- "@basemaps/tiler": "^6.26.0",
26
+ "@basemaps/config": "^6.28.1",
27
+ "@basemaps/geo": "^6.28.1",
28
+ "@basemaps/tiler": "^6.28.1",
29
29
  "@chunkd/source-aws-v2": "^8.1.0",
30
- "@linzjs/geojson": "^6.21.1",
31
- "@linzjs/metrics": "^6.21.1",
32
- "@linzjs/s3fs": "^6.9.1",
30
+ "@linzjs/geojson": "^6.28.1",
31
+ "@linzjs/metrics": "^6.28.1",
33
32
  "aws-sdk": "^2.890.0",
34
33
  "pino": "^7.5.0",
35
34
  "proj4": "^2.6.2",
@@ -49,5 +48,5 @@
49
48
  "files": [
50
49
  "build/"
51
50
  ],
52
- "gitHead": "1b3a7eb8aad1e0c9bb2ca64e0dcfe13b16e08a50"
51
+ "gitHead": "f387e0365bcfc7391fd8d0665195b246c93532cf"
53
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"}