@naturalcycles/nodejs-lib 12.47.3 → 12.47.4
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.
|
@@ -9,7 +9,7 @@ const util_1 = require("util");
|
|
|
9
9
|
exports._pipeline = (0, util_1.promisify)(stream_1.pipeline);
|
|
10
10
|
// Workaround https://github.com/nodejs/node/issues/40191
|
|
11
11
|
// todo: remove it when fix is released in 16.x and in AppEngine 16.x
|
|
12
|
-
if (process.version
|
|
12
|
+
if (process.version >= 'v16.10') {
|
|
13
13
|
const { pipeline } = require('stream/promises');
|
|
14
14
|
exports._pipeline = ((streams) => pipeline(...streams));
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export let _pipeline = promisify(pipeline)
|
|
|
10
10
|
|
|
11
11
|
// Workaround https://github.com/nodejs/node/issues/40191
|
|
12
12
|
// todo: remove it when fix is released in 16.x and in AppEngine 16.x
|
|
13
|
-
if (process.version
|
|
13
|
+
if (process.version >= 'v16.10') {
|
|
14
14
|
const { pipeline } = require('stream/promises')
|
|
15
15
|
_pipeline = ((streams: AnyStream[]) => pipeline(...streams)) as any
|
|
16
16
|
}
|