retold-data-service 2.0.23 → 2.0.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retold-data-service",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "Serve up a whole model!",
5
5
  "main": "source/Retold-Data-Service.js",
6
6
  "bin": {
@@ -60,7 +60,7 @@
60
60
  "homepage": "https://github.com/stevenvelozo/retold-data-service",
61
61
  "devDependencies": {
62
62
  "meadow-connection-sqlite": "^1.0.18",
63
- "puppeteer": "^24.38.0",
63
+ "puppeteer": "^24.40.0",
64
64
  "quackage": "^1.0.65",
65
65
  "stricture": "^4.0.2",
66
66
  "supertest": "^7.2.2"
@@ -72,7 +72,7 @@
72
72
  "meadow": "^2.0.33",
73
73
  "meadow-connection-mysql": "^1.0.14",
74
74
  "meadow-endpoints": "^4.0.15",
75
- "meadow-integration": "^1.0.20",
75
+ "meadow-integration": "^1.0.21",
76
76
  "meadow-migrationmanager": "^0.0.4",
77
77
  "orator": "^6.0.4",
78
78
  "orator-http-proxy": "^1.0.5",
@@ -66,7 +66,30 @@ class IntegrationTelemetryStorageProviderBibliograph extends libIntegrationTelem
66
66
  return fCallback();
67
67
  }
68
68
 
69
- this.bibliograph.createSource(pSourceHash,
69
+ let tmpBibliograph = this.bibliograph;
70
+
71
+ // Bibliograph FS Storage must be initialized before any operations.
72
+ // The service is instantiated in the getter but initialize() is async
73
+ // and must complete before createSource/read/write will work.
74
+ if (tmpBibliograph.BibliographStorage && !tmpBibliograph.BibliographStorage.Initialized)
75
+ {
76
+ return tmpBibliograph.BibliographStorage.initialize(
77
+ (pInitError) =>
78
+ {
79
+ if (pInitError)
80
+ {
81
+ this.fable.log.warn(`IntegrationTelemetry Bibliograph: Storage initialization error: ${pInitError}`);
82
+ }
83
+ tmpBibliograph.createSource(pSourceHash,
84
+ (pError) =>
85
+ {
86
+ this._sourceInitialized[pSourceHash] = true;
87
+ return fCallback();
88
+ });
89
+ });
90
+ }
91
+
92
+ tmpBibliograph.createSource(pSourceHash,
70
93
  (pError) =>
71
94
  {
72
95
  // Ignore "already exists" style errors