@datapos/datapos-shared 0.3.377 → 0.3.379

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.
@@ -1,11 +1,12 @@
1
1
  import { connectorConfigSchema as b } from "./datapos-shared.es.js";
2
- const e = (n) => {
3
- const o = Object.entries(n).filter((t) => typeof t[1] == "string");
2
+ const n = (e) => {
3
+ const o = Object.entries(e).filter((t) => typeof t[1] == "string");
4
4
  return new Map(o);
5
5
  };
6
- e({ "en-gb": "Application" }), e({ "en-gb": "Curated Dataset" }), e({ "en-gb": "Database" }), e({ "en-gb": "File Store" });
7
- async function c(n, o) {
8
- const t = `datapos-tool-${o}`, a = n.toolConfigs.find((s) => s.id === t);
6
+ n({ "en-gb": "Application" }), n({ "en-gb": "Curated Dataset" }), n({ "en-gb": "Database" }), n({ "en-gb": "File Store" });
7
+ async function c(e, o) {
8
+ console.log("loadToolForConnector", e, o);
9
+ const t = `datapos-tool-${o}`, a = e.toolConfigs.find((s) => s.id === t);
9
10
  if (!a) throw new Error(`Connector could not load unknown tool '${o}'.`);
10
11
  const l = await import(`https://engine-eu.datapos.app/tools/${o}_v${a.version}/${t}.es.js`);
11
12
  return new l.Tool();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.377",
3
+ "version": "0.3.379",
4
4
  "description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",