- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
550 B
JavaScript
35 lines
550 B
JavaScript
var Writable = require('stream').Writable;
|
|
var inherits = require('util').inherits;
|
|
|
|
module.exports = resumer;
|
|
|
|
function resumer(stream) {
|
|
if (!stream.readable) {
|
|
return stream;
|
|
}
|
|
|
|
if (stream._read) {
|
|
stream.pipe(new Sink);
|
|
return stream;
|
|
}
|
|
|
|
if (typeof stream.resume === 'function') {
|
|
stream.resume();
|
|
return stream;
|
|
}
|
|
|
|
return stream;
|
|
}
|
|
|
|
function Sink() {
|
|
Writable.call(this, {
|
|
objectMode: true
|
|
});
|
|
}
|
|
|
|
inherits(Sink, Writable);
|
|
|
|
Sink.prototype._write = function(chunk, encoding, cb) {
|
|
setImmediate(cb);
|
|
};
|