@hahnpro/hpc-api 2025.2.7 → 2025.2.8

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": "@hahnpro/hpc-api",
3
- "version": "2025.2.7",
3
+ "version": "2025.2.8",
4
4
  "description": "Module for easy access to the HahnPRO Cloud API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -62,9 +62,9 @@ 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
- // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
66
- const { Readable } = require('stream');
67
- return Promise.resolve(Readable.from(this.contentData.get(id)));
65
+ return Promise.resolve().then(() => tslib_1.__importStar(require('stream'))).then(({ Readable }) => {
66
+ return Readable.from(this.contentData.get(id));
67
+ });
68
68
  }
69
69
  throw new Error('Readable streams are only available in Node.js environment');
70
70
  }