@golemio/core 1.2.18-dev.638541239 → 1.2.18-dev.641319952
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/dist/helpers/data-access/storage/AzureBlobStorageService.js +2 -1
- package/dist/helpers/data-access/storage/AzureBlobStorageService.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStreamManager.d.ts +4 -0
- package/dist/integration-engine/datasources/DataSourceStreamManager.js +33 -0
- package/dist/integration-engine/datasources/DataSourceStreamManager.js.map +1 -0
- package/dist/integration-engine/datasources/index.d.ts +1 -0
- package/dist/integration-engine/datasources/index.js +1 -0
- package/dist/integration-engine/datasources/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,8 @@ class AzureBlobStorageService extends AbstractStorageService_1.AbstractStorageSe
|
|
|
19
19
|
const blobServiceClient = storage_blob_1.BlobServiceClient.fromConnectionString(config.connectionString);
|
|
20
20
|
this.containerClient = blobServiceClient.getContainerClient(config.containerName);
|
|
21
21
|
this.containerClient.createIfNotExists().catch((err) => {
|
|
22
|
-
|
|
22
|
+
// This is fine in the production environment
|
|
23
|
+
log.debug(`[${this.constructor.name}] Could not initialize container "${config.containerName}"`, err);
|
|
23
24
|
});
|
|
24
25
|
this.log = log;
|
|
25
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureBlobStorageService.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/storage/AzureBlobStorageService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAyG;AAEzG,iCAAiC;AAEjC,qEAAkE;AAOlE,MAAa,uBAAwB,SAAQ,+CAAsB;IAI/D,YAAY,MAA+B,EAAE,GAAY;QACrD,KAAK,EAAE,CAAC;QAER,MAAM,iBAAiB,GAAG,gCAAiB,CAAC,oBAAoB,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAC1F,IAAI,CAAC,eAAe,GAAG,iBAAiB,CAAC,kBAAkB,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, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var _a;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
const errors_1 = require("@golemio/errors");
|
|
14
|
+
class DataSourceStreamManager {
|
|
15
|
+
}
|
|
16
|
+
exports.default = DataSourceStreamManager;
|
|
17
|
+
_a = DataSourceStreamManager;
|
|
18
|
+
DataSourceStreamManager.processDataStream = (dataSourceStream, onDataFunction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
let dataStream;
|
|
20
|
+
try {
|
|
21
|
+
dataStream = yield dataSourceStream;
|
|
22
|
+
}
|
|
23
|
+
catch (err) {
|
|
24
|
+
throw new errors_1.CustomError("Error while getting data", true, _a.constructor.name, 2005, err);
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
yield dataStream.setDataProcessor(onDataFunction).proceed();
|
|
28
|
+
}
|
|
29
|
+
catch (err) {
|
|
30
|
+
throw new errors_1.CustomError("Error while processing data", true, _a.constructor.name, 2006, err);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=DataSourceStreamManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSourceStreamManager.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/DataSourceStreamManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA8C;AAG9C,MAAqB,uBAAuB;;AAA5C,0CAmBC;;AAlBiB,yCAAiB,GAAG,CAC9B,gBAA2C,EAC3C,cAA4C,EAC/B,EAAE;IACf,IAAI,UAA4B,CAAC;IAEjC,IAAI;QACA,UAAU,GAAG,MAAM,gBAAgB,CAAC;KACvC;IAAC,OAAO,GAAG,EAAE;QACV,MAAM,IAAI,oBAAW,CAAC,0BAA0B,EAAE,IAAI,EAAE,EAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;KAC7F;IAED,IAAI;QACA,MAAM,UAAU,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,EAAE,CAAC;KAC/D;IAAC,OAAO,GAAG,EAAE;QACV,MAAM,IAAI,oBAAW,CAAC,6BAA6B,EAAE,IAAI,EAAE,EAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;KAChG;AACL,CAAC,CAAC,CAAA"}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* ie/datasources/index.ts */
|
|
18
18
|
__exportStar(require("./DataSource"), exports);
|
|
19
19
|
__exportStar(require("./DataSourceStream"), exports);
|
|
20
|
+
__exportStar(require("./DataSourceStreamManager"), exports);
|
|
20
21
|
__exportStar(require("./DataSourceStreamed"), exports);
|
|
21
22
|
__exportStar(require("./IDataSource"), exports);
|
|
22
23
|
__exportStar(require("./datatype-strategy/CSVDataTypeStrategy"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6BAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,gDAA8B;AAC9B,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,yFAAuE;AACvE,2EAAyD;AACzD,mFAAiE;AACjE,wEAAsD;AACtD,+EAA6D;AAC7D,uFAAqE;AACrE,uEAAqD;AACrD,2EAAyD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6BAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,4DAA0C;AAC1C,uDAAqC;AACrC,gDAA8B;AAC9B,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,yFAAuE;AACvE,2EAAyD;AACzD,mFAAiE;AACjE,wEAAsD;AACtD,+EAA6D;AAC7D,uFAAqE;AACrE,uEAAqD;AACrD,2EAAyD"}
|