@basemaps/shared 6.18.0 → 6.22.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/CHANGELOG.md CHANGED
@@ -3,6 +3,43 @@
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.22.0](https://github.com/linz/basemaps/compare/v6.21.1...v6.22.0) (2022-03-20)
7
+
8
+ **Note:** Version bump only for package @basemaps/shared
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.21.1](https://github.com/linz/basemaps/compare/v6.21.0...v6.21.1) (2022-03-17)
15
+
16
+ **Note:** Version bump only for package @basemaps/shared
17
+
18
+
19
+
20
+
21
+
22
+ # [6.21.0](https://github.com/linz/basemaps/compare/v6.20.0...v6.21.0) (2022-03-17)
23
+
24
+
25
+ ### Reverts
26
+
27
+ * Revert "release: v6.21.0 (#2104)" (#2111) ([d07f8ab](https://github.com/linz/basemaps/commit/d07f8ab4037466b060bf7e83960737554ff064b4)), closes [#2104](https://github.com/linz/basemaps/issues/2104) [#2111](https://github.com/linz/basemaps/issues/2111)
28
+ * Revert "release: v6.22.0 (#2108)" (#2110) ([abcd2e4](https://github.com/linz/basemaps/commit/abcd2e4732a6d606eed865f526d6df2e4617aad3)), closes [#2108](https://github.com/linz/basemaps/issues/2108) [#2110](https://github.com/linz/basemaps/issues/2110)
29
+ * Revert "release: v6.21.0 (#2104)" (#2107) ([2c7e7f6](https://github.com/linz/basemaps/commit/2c7e7f6686a293995abdeb9604413808f2208bd6)), closes [#2104](https://github.com/linz/basemaps/issues/2104) [#2107](https://github.com/linz/basemaps/issues/2107)
30
+
31
+
32
+
33
+
34
+
35
+ # [6.20.0](https://github.com/linz/basemaps/compare/v6.19.0...v6.20.0) (2022-02-01)
36
+
37
+ **Note:** Version bump only for package @basemaps/shared
38
+
39
+
40
+
41
+
42
+
6
43
  # [6.18.0](https://github.com/linz/basemaps/compare/v6.17.0...v6.18.0) (2021-12-14)
7
44
 
8
45
  **Note:** Version bump only for package @basemaps/shared
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- Basemaps MIT Licence
1
+ MIT License
2
2
 
3
- Crown copyright (c) 2020, Land Information New Zealand on behalf of the New Zealand Government.
3
+ Crown copyright (c), Toitū Te Whenua Land Information New Zealand on behalf of the New Zealand Government.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,GAAG,IAAI,SAAS,EAAW,MAAM,YAAY,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAI9D,oBAAY,OAAO,GAAG,OAAO,SAAS,GAAG;IACvC,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,sCAAsC;IACtC,SAAS,CAAC,EAAE,EAAE,UAAU,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,GAAG,SAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,GAAG,IAAI,SAAS,EAAW,MAAM,YAAY,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAK9D,oBAAY,OAAO,GAAG,OAAO,SAAS,GAAG;IACvC,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,sCAAsC;IACtC,SAAS,CAAC,EAAE,EAAE,UAAU,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,GAAG,SAA8B,CAAC"}
@@ -3,6 +3,7 @@ import { fsa as fsaSource, FsAwsS3 } from '@chunkd/fs';
3
3
  import { promisify } from 'util';
4
4
  import { createGzip, gunzip } from 'zlib';
5
5
  import { isConfigS3Role } from './file.config.js';
6
+ import { AwsCredentials } from '@chunkd/source-aws-v2';
6
7
  const pGunzip = promisify(gunzip);
7
8
  export const fsa = fsaSource;
8
9
  fsa.readJson = async function readJson(filePath) {
@@ -32,7 +33,7 @@ fsa.configure = function configure(cfg) {
32
33
  return; // ignore configs which don't need role assumptions
33
34
  const { bucket } = FsAwsS3.parse(cfg.path);
34
35
  const bucketUri = `s3://${bucket}/`;
35
- this.register(bucketUri, FsAwsS3.fromRoleArn(cfg.roleArn, cfg.externalId));
36
+ this.register(bucketUri, AwsCredentials.fsFromRole(cfg.roleArn, cfg.externalId));
36
37
  };
37
38
  /**
38
39
  * Default to using the file handler useful for folders like
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/shared",
3
- "version": "6.18.0",
3
+ "version": "6.22.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,14 +23,14 @@
23
23
  "test": "ospec --globs 'build/**/*.test.js'"
24
24
  },
25
25
  "dependencies": {
26
- "@basemaps/config": "^6.18.0",
27
- "@basemaps/geo": "^6.10.0",
28
- "@basemaps/tiler": "^6.11.0",
29
- "@linzjs/geojson": "^6.10.0",
30
- "@linzjs/metrics": "^6.11.0",
26
+ "@basemaps/config": "^6.21.1",
27
+ "@basemaps/geo": "^6.21.1",
28
+ "@basemaps/tiler": "^6.21.1",
29
+ "@chunkd/source-aws-v2": "^8.1.0",
30
+ "@linzjs/geojson": "^6.21.1",
31
+ "@linzjs/metrics": "^6.21.1",
31
32
  "@linzjs/s3fs": "^6.9.1",
32
33
  "aws-sdk": "^2.890.0",
33
- "base-x": "^3.0.7",
34
34
  "pino": "^7.5.0",
35
35
  "proj4": "^2.6.2",
36
36
  "sax": "^1.2.4",
@@ -49,5 +49,5 @@
49
49
  "files": [
50
50
  "build/"
51
51
  ],
52
- "gitHead": "e87458ee8d0572780b9df074b718af0ecd72acc3"
52
+ "gitHead": "b85a4a628bcdfea657a37de97faa23dde5c34798"
53
53
  }
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=api.key.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.key.d.ts","sourceRoot":"","sources":["../../src/cli/api.key.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- import baseX from 'base-x';
3
- import { randomBytes } from 'crypto';
4
- const base58 = baseX('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');
5
- /** Generate 10 32 character base58 encoded strings */
6
- async function main() {
7
- for (let i = 0; i < 10; i++) {
8
- const bytes = randomBytes(32);
9
- const apiKey = base58.encode(bytes).slice(0, 32);
10
- console.log(apiKey);
11
- }
12
- }
13
- main();