@resolveio/server-lib 1.0.0-rc25 → 1.0.0-rc26
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.
|
@@ -499,8 +499,8 @@ var MethodManager = /** @class */ (function () {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
else {
|
|
502
|
-
if (fs.existsSync(path.join(_this.clientDir, ('
|
|
503
|
-
fs.readFile(path.join(_this.clientDir, ('
|
|
502
|
+
if (fs.existsSync(path.join(_this.clientDir, ('./private/' + fileName)))) {
|
|
503
|
+
fs.readFile(path.join(_this.clientDir, ('./private/' + fileName)), 'utf-8', function (err, res) {
|
|
504
504
|
if (err) {
|
|
505
505
|
reject(err);
|
|
506
506
|
}
|
|
@@ -526,8 +526,8 @@ var MethodManager = /** @class */ (function () {
|
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
else {
|
|
529
|
-
if (fs.existsSync(path.join(_this.clientDir, ('
|
|
530
|
-
fs.readFile(path.join(_this.clientDir, ('
|
|
529
|
+
if (fs.existsSync(path.join(_this.clientDir, ('./private/' + fileName)))) {
|
|
530
|
+
fs.readFile(path.join(_this.clientDir, ('./private/' + fileName)), 'base64', function (err, res) {
|
|
531
531
|
if (err) {
|
|
532
532
|
reject(err);
|
|
533
533
|
}
|