Skip to content

storage: use passthrough stream for buffers.#189

Merged
ryanseys merged 1 commit intogoogleapis:masterfrom
stephenplusplus:bufferstream
Sep 7, 2014
Merged

storage: use passthrough stream for buffers.#189
ryanseys merged 1 commit intogoogleapis:masterfrom
stephenplusplus:bufferstream

Conversation

@stephenplusplus
Copy link
Contributor

We can save ourselves some engineering effort and just use a passthrough stream. This PR started from #179, where I discovered http://stackoverflow.com/questions/16038705/how-to-wrap-a-buffer-as-a-stream2-readable-stream/16044400#16044400, which is the basis for this implementation.

@ryanseys
Copy link
Contributor

ryanseys commented Sep 6, 2014

LGTM.

@stephenplusplus
Copy link
Contributor Author

Just will wait for a @rakyll sign-off (if you're still available for pr reviews?) before merging.

@ryanseys
Copy link
Contributor

ryanseys commented Sep 7, 2014

Didn't she turn off notifications? Maybe I'm mistaken.

@stephenplusplus
Copy link
Contributor Author

Oh, I don't know. Probably. Rock star probs. 🎤 🌠 🎸 💰 :verasans:

@ryanseys
Copy link
Contributor

ryanseys commented Sep 7, 2014

She's probably busy building rockets 🚀

@ryanseys
Copy link
Contributor

ryanseys commented Sep 7, 2014

Merging... #YOLO :shipit:

ryanseys added a commit that referenced this pull request Sep 7, 2014
storage: use passthrough stream for buffers.
@ryanseys ryanseys merged commit d527fb7 into googleapis:master Sep 7, 2014
sofisl pushed a commit that referenced this pull request Sep 15, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
sofisl pushed a commit that referenced this pull request Sep 27, 2022
sofisl pushed a commit that referenced this pull request Nov 9, 2022
sofisl pushed a commit that referenced this pull request Nov 10, 2022
sofisl pushed a commit that referenced this pull request Nov 11, 2022
chore(deps): update dependency nyc to v14

This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| nyc | devDependencies | major | [`^13.0.0` -> `^14.0.0`](https://diff.intrinsic.com/nyc/13.3.0/14.0.0) | [source](https://togithub.com/istanbuljs/nyc) |

---

### Release Notes

<details>
<summary>istanbuljs/nyc</summary>

### [`v14.0.0`](https://togithub.com/istanbuljs/nyc/blob/master/CHANGELOG.md#&#8203;1400httpsgithubcomistanbuljsnyccomparev1330v1400-2019-04-15)

[Compare Source](https://togithub.com/istanbuljs/nyc/compare/v13.3.0...v14.0.0)

##### Bug Fixes

-   Add `cwd` option to instrument command ([#&#8203;1024](https://togithub.com/istanbuljs/nyc/issues/1024)) ([051d95a](https://togithub.com/istanbuljs/nyc/commit/051d95a))
-   Add config values to hash salt ([#&#8203;988](https://togithub.com/istanbuljs/nyc/issues/988)) ([7ac325d](https://togithub.com/istanbuljs/nyc/commit/7ac325d)), closes [#&#8203;522](https://togithub.com/istanbuljs/nyc/issues/522)
-   Exclude negated not working with '--all' switch ([#&#8203;977](https://togithub.com/istanbuljs/nyc/issues/977)) ([91de23c](https://togithub.com/istanbuljs/nyc/commit/91de23c))
-   Make --all work for transpiled code ([#&#8203;1047](https://togithub.com/istanbuljs/nyc/issues/1047)) ([18e04ba](https://togithub.com/istanbuljs/nyc/commit/18e04ba))
-   Resolve absolute paths in nyc instrument ([#&#8203;1012](https://togithub.com/istanbuljs/nyc/issues/1012)) ([3cb1861](https://togithub.com/istanbuljs/nyc/commit/3cb1861)), closes [#&#8203;1014](https://togithub.com/istanbuljs/nyc/issues/1014)
-   Set processinfo pid/ppid to actual numbers ([#&#8203;1057](https://togithub.com/istanbuljs/nyc/issues/1057)) ([32f75b0](https://togithub.com/istanbuljs/nyc/commit/32f75b0))
-   Use a single instance of nyc for all actions of main command. ([#&#8203;1059](https://togithub.com/istanbuljs/nyc/issues/1059)) ([b909575](https://togithub.com/istanbuljs/nyc/commit/b909575))

##### Features

-   Add `delete` option to instrument command ([#&#8203;1005](https://togithub.com/istanbuljs/nyc/issues/1005)) ([d6db551](https://togithub.com/istanbuljs/nyc/commit/d6db551))
-   Add `include` and `exclude` options to instrument command ([#&#8203;1007](https://togithub.com/istanbuljs/nyc/issues/1007)) ([8da097e](https://togithub.com/istanbuljs/nyc/commit/8da097e))
-   Add processinfo index, add externalId ([#&#8203;1055](https://togithub.com/istanbuljs/nyc/issues/1055)) ([8dcf180](https://togithub.com/istanbuljs/nyc/commit/8dcf180))
-   Add support for nyc.config.js ([#&#8203;1019](https://togithub.com/istanbuljs/nyc/issues/1019)) ([3b203c7](https://togithub.com/istanbuljs/nyc/commit/3b203c7))
-   Add support to exclude files on coverage report generation ([#&#8203;982](https://togithub.com/istanbuljs/nyc/issues/982)) ([509c6aa](https://togithub.com/istanbuljs/nyc/commit/509c6aa))
-   Add test-exclude args to check-coverage and report subcommands. ([0fc217e](https://togithub.com/istanbuljs/nyc/commit/0fc217e))
-   Always build the processinfo temp dir ([#&#8203;1061](https://togithub.com/istanbuljs/nyc/issues/1061)) ([c213469](https://togithub.com/istanbuljs/nyc/commit/c213469))
-   Enable `es-modules` option for nyc instrument command ([#&#8203;1006](https://togithub.com/istanbuljs/nyc/issues/1006)) ([596b120](https://togithub.com/istanbuljs/nyc/commit/596b120))
-   Fix excludeAfterRemap functionality. ([36bcc0b](https://togithub.com/istanbuljs/nyc/commit/36bcc0b))
-   Implement `nyc instrument --complete-copy` ([#&#8203;1056](https://togithub.com/istanbuljs/nyc/issues/1056)) ([2eb13c6](https://togithub.com/istanbuljs/nyc/commit/2eb13c6))
-   Remove bundling ([#&#8203;1017](https://togithub.com/istanbuljs/nyc/issues/1017)) ([b25492a](https://togithub.com/istanbuljs/nyc/commit/b25492a))
-   Support turning off node_modules default exclude via `exclude-node-modules` option ([#&#8203;912](https://togithub.com/istanbuljs/nyc/issues/912)) ([b7e16cd](https://togithub.com/istanbuljs/nyc/commit/b7e16cd))
-   Add support for `--exclude-node-modules` to subcommands. ([#&#8203;1053](https://togithub.com/istanbuljs/nyc/issues/1053)) ([e597c46](https://togithub.com/istanbuljs/nyc/commit/e597c46))

##### BREAKING CHANGES

-   The `--exclude-after-remap` option is now functional and enabled by default.  This causes the `include` and `exclude` lists to be processed after using source maps to determine the original filename of sources.
-   Add a file named 'index.json' to the .nyc_output/processinfo directory, which has a different format from the other files in this dir.
-   Change the data type of the pid/ppid fields in processinfo files
-   `nyc instrument` now honors `include` and `exclude` settings, potentially resulting in some files that were previously instrumented being ignored.
-   The `plugins` option has been renamed to `parser-plugins`.
-   The logic involving include/exclude processing has changed.  Results should be verified to ensure all desired sources have coverage data.
-   `nyc instrument` now enables the `--es-module` option by default.  This can cause failures to instrument scripts which violate `'use strict'` rules.

</details>

---

### Renovate configuration

:date: **Schedule**: "after 9am and before 3pm" (UTC).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#googleapis/nodejs-dataproc).

#189 automerged by dpebot
sofisl pushed a commit that referenced this pull request Nov 11, 2022
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/4895db2c-aba9-406e-b81d-1e2251ee464c/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 325949033
Source-Link: googleapis/googleapis@94006b3
sofisl pushed a commit that referenced this pull request Feb 3, 2026
sofisl pushed a commit that referenced this pull request Feb 3, 2026
GautamSharda pushed a commit that referenced this pull request Feb 3, 2026
sofisl pushed a commit that referenced this pull request Feb 24, 2026
sofisl pushed a commit that referenced this pull request Feb 25, 2026
codyoss pushed a commit that referenced this pull request Mar 5, 2026
Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool.
GautamSharda pushed a commit that referenced this pull request Mar 5, 2026
sofisl added a commit that referenced this pull request Mar 5, 2026
…mplate for Node 8 tests, add missing closing parenthesis in publish script (#189)

* build: missing closing paren in publish script

Source-Author: Benjamin E. Coe <bencoe@google.com>
Source-Date: Mon Jul 13 09:56:30 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: d82deccf657a66e31bd5da9efdb96c6fa322fc7e
Source-Link: googleapis/synthtool@d82decc

* chore: delete template for Node 8 tests

Source-Author: F. Hinkelmann <franziska.hinkelmann@gmail.com>
Source-Date: Tue Jul 14 19:56:02 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 388e10f5ae302d3e8de1fac99f3a95d1ab8f824a
Source-Link: googleapis/synthtool@388e10f

* chore: add config files for cloud-rad for node.js

* chore: add config files for cloud-rad for node.js

Generate and upload yaml files for ref docs

* Add gitattributes for json with comments

* Fix extra char

Source-Author: F. Hinkelmann <franziska.hinkelmann@gmail.com>
Source-Date: Thu Jul 16 12:19:00 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 21f1470ecd01424dc91c70f1a7c798e4e87d1eec
Source-Link: googleapis/synthtool@21f1470

* fix: rename _toc to toc

Source-Author: F. Hinkelmann <franziska.hinkelmann@gmail.com>
Source-Date: Tue Jul 21 10:53:20 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 99c93fe09f8c1dca09dfc0301c8668e3a70dd796
Source-Link: googleapis/synthtool@99c93fe

Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants