mirror of
https://github.com/tvytlx/ai-agent-deep-dive.git
synced 2026-04-04 16:14:50 +08:00
Add extracted source directory and README navigation
This commit is contained in:
11
extracted-source/node_modules/get-stream/source/utils.js
generated
vendored
Normal file
11
extracted-source/node_modules/get-stream/source/utils.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export const identity = value => value;
|
||||
|
||||
export const noop = () => undefined;
|
||||
|
||||
export const getContentsProp = ({contents}) => contents;
|
||||
|
||||
export const throwObjectStream = chunk => {
|
||||
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
||||
};
|
||||
|
||||
export const getLengthProp = convertedChunk => convertedChunk.length;
|
||||
Reference in New Issue
Block a user