@hahnpro/hpc-api 2025.2.8 → 2025.2.9
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
|
@@ -62,9 +62,7 @@ class ContentMockService extends BaseService {
|
|
|
62
62
|
return Promise.resolve(Buffer.from(this.contentData.get(id)).buffer);
|
|
63
63
|
case content_interface_1.ReturnType.NODESTREAM:
|
|
64
64
|
if (typeof process !== 'undefined' && process.versions && process.versions.node) {
|
|
65
|
-
return Promise.resolve(
|
|
66
|
-
return Readable.from(this.contentData.get(id));
|
|
67
|
-
});
|
|
65
|
+
return Promise.resolve(global.Readable.from(this.contentData.get(id)));
|
|
68
66
|
}
|
|
69
67
|
throw new Error('Readable streams are only available in Node.js environment');
|
|
70
68
|
}
|