projen-pipelines 0.2.2 → 0.2.3
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/.jsii +10 -10
- package/API.md +8 -8
- package/lib/awscdk/base.js +20 -8
- package/lib/awscdk/bash.js +1 -1
- package/lib/awscdk/github.js +1 -1
- package/lib/awscdk/gitlab.js +1 -1
- package/lib/steps/artifact-steps.js +2 -2
- package/lib/steps/aws-assume-role.step.js +1 -1
- package/lib/steps/registries.js +2 -2
- package/lib/steps/step.js +4 -4
- package/node_modules/@babel/code-frame/lib/index.js +97 -37
- package/node_modules/@babel/code-frame/lib/index.js.map +1 -1
- package/node_modules/@babel/code-frame/package.json +3 -2
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +4 -4
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -1
- package/node_modules/@babel/helper-validator-identifier/package.json +2 -2
- package/node_modules/ansi-styles/index.js +69 -67
- package/node_modules/ansi-styles/package.json +11 -11
- package/node_modules/ansi-styles/readme.md +14 -19
- package/node_modules/color-convert/conversions.js +310 -281
- package/node_modules/color-convert/index.js +24 -27
- package/node_modules/color-convert/package.json +5 -7
- package/node_modules/color-convert/route.js +22 -22
- package/node_modules/color-name/package.json +25 -28
- package/node_modules/escalade/index.d.mts +11 -0
- package/node_modules/escalade/index.d.ts +14 -2
- package/node_modules/escalade/package.json +18 -7
- package/node_modules/escalade/sync/index.d.mts +9 -0
- package/node_modules/escalade/sync/index.d.ts +13 -2
- package/node_modules/is-core-module/CHANGELOG.md +13 -0
- package/node_modules/is-core-module/core.json +1 -0
- package/node_modules/is-core-module/package.json +3 -3
- package/node_modules/is-core-module/test/index.js +3 -0
- package/node_modules/picocolors/LICENSE +1 -1
- package/node_modules/picocolors/package.json +2 -2
- package/node_modules/picocolors/picocolors.browser.js +1 -1
- package/node_modules/picocolors/picocolors.js +53 -43
- package/node_modules/picocolors/{types.ts → types.d.ts} +21 -0
- package/node_modules/resolve/lib/core.json +4 -0
- package/node_modules/resolve/package.json +12 -9
- package/node_modules/{get-pkg-repo → standard-version}/node_modules/through2/README.md +27 -21
- package/node_modules/standard-version/node_modules/through2/package.json +38 -0
- package/node_modules/standard-version/node_modules/through2/through2.js +83 -0
- package/node_modules/through2/README.md +21 -27
- package/node_modules/through2/package.json +11 -16
- package/node_modules/through2/through2.js +51 -38
- package/node_modules/uglify-js/lib/compress.js +23 -13
- package/node_modules/uglify-js/package.json +1 -1
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/ansi-styles/package.json +11 -11
- package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/ansi-styles/readme.md +19 -14
- package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-convert/conversions.js +281 -310
- package/node_modules/wrap-ansi/node_modules/color-convert/index.js +81 -0
- package/node_modules/{standard-version → wrap-ansi}/node_modules/color-convert/package.json +7 -5
- package/node_modules/{standard-version → wrap-ansi}/node_modules/color-convert/route.js +22 -22
- package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-name/package.json +28 -25
- package/package.json +7 -7
- package/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
- package/node_modules/@babel/highlight/LICENSE +0 -22
- package/node_modules/@babel/highlight/README.md +0 -19
- package/node_modules/@babel/highlight/lib/index.js +0 -119
- package/node_modules/@babel/highlight/lib/index.js.map +0 -1
- package/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +0 -165
- package/node_modules/@babel/highlight/node_modules/color-convert/index.js +0 -78
- package/node_modules/@babel/highlight/node_modules/color-convert/package.json +0 -46
- package/node_modules/@babel/highlight/node_modules/color-convert/route.js +0 -97
- package/node_modules/@babel/highlight/package.json +0 -30
- package/node_modules/figures/node_modules/escape-string-regexp/index.js +0 -11
- package/node_modules/figures/node_modules/escape-string-regexp/license +0 -21
- package/node_modules/figures/node_modules/escape-string-regexp/package.json +0 -41
- package/node_modules/figures/node_modules/escape-string-regexp/readme.md +0 -27
- package/node_modules/get-pkg-repo/node_modules/through2/package.json +0 -33
- package/node_modules/get-pkg-repo/node_modules/through2/through2.js +0 -96
- package/node_modules/standard-version/node_modules/ansi-styles/index.js +0 -165
- package/node_modules/standard-version/node_modules/ansi-styles/package.json +0 -56
- package/node_modules/standard-version/node_modules/ansi-styles/readme.md +0 -147
- package/node_modules/standard-version/node_modules/chalk/index.js +0 -228
- package/node_modules/standard-version/node_modules/chalk/index.js.flow +0 -93
- package/node_modules/standard-version/node_modules/chalk/license +0 -9
- package/node_modules/standard-version/node_modules/chalk/package.json +0 -71
- package/node_modules/standard-version/node_modules/chalk/readme.md +0 -314
- package/node_modules/standard-version/node_modules/chalk/templates.js +0 -128
- package/node_modules/standard-version/node_modules/chalk/types/index.d.ts +0 -97
- package/node_modules/standard-version/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/standard-version/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/standard-version/node_modules/color-convert/README.md +0 -68
- package/node_modules/standard-version/node_modules/color-convert/conversions.js +0 -868
- package/node_modules/standard-version/node_modules/color-convert/index.js +0 -78
- package/node_modules/standard-version/node_modules/color-name/.eslintrc.json +0 -43
- package/node_modules/standard-version/node_modules/color-name/.npmignore +0 -107
- package/node_modules/standard-version/node_modules/color-name/LICENSE +0 -8
- package/node_modules/standard-version/node_modules/color-name/README.md +0 -11
- package/node_modules/standard-version/node_modules/color-name/index.js +0 -152
- package/node_modules/standard-version/node_modules/color-name/package.json +0 -25
- package/node_modules/standard-version/node_modules/color-name/test.js +0 -7
- package/node_modules/standard-version/node_modules/detect-indent/license +0 -9
- package/node_modules/standard-version/node_modules/escape-string-regexp/index.js +0 -11
- package/node_modules/standard-version/node_modules/escape-string-regexp/license +0 -21
- package/node_modules/standard-version/node_modules/escape-string-regexp/package.json +0 -41
- package/node_modules/standard-version/node_modules/escape-string-regexp/readme.md +0 -27
- package/node_modules/standard-version/node_modules/has-flag/index.js +0 -8
- package/node_modules/standard-version/node_modules/has-flag/license +0 -9
- package/node_modules/standard-version/node_modules/has-flag/package.json +0 -44
- package/node_modules/standard-version/node_modules/has-flag/readme.md +0 -70
- package/node_modules/standard-version/node_modules/supports-color/browser.js +0 -5
- package/node_modules/standard-version/node_modules/supports-color/index.js +0 -131
- package/node_modules/standard-version/node_modules/supports-color/license +0 -9
- package/node_modules/standard-version/node_modules/supports-color/package.json +0 -53
- package/node_modules/standard-version/node_modules/supports-color/readme.md +0 -66
- /package/node_modules/{@babel/highlight/node_modules/chalk → chalk}/index.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/chalk → chalk}/index.js.flow +0 -0
- /package/node_modules/{@babel/highlight/node_modules/ansi-styles → chalk}/license +0 -0
- /package/node_modules/{@babel/highlight/node_modules/chalk → chalk}/package.json +0 -0
- /package/node_modules/{@babel/highlight/node_modules/chalk → chalk}/readme.md +0 -0
- /package/node_modules/{@babel/highlight/node_modules/chalk → chalk}/templates.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/chalk → chalk}/types/index.d.ts +0 -0
- /package/node_modules/{@babel/highlight/node_modules/color-name → color-name}/.eslintrc.json +0 -0
- /package/node_modules/{@babel/highlight/node_modules/color-name → color-name}/.npmignore +0 -0
- /package/node_modules/{@babel/highlight/node_modules/color-name → color-name}/test.js +0 -0
- /package/node_modules/{standard-version/node_modules/detect-indent → detect-indent}/index.d.ts +0 -0
- /package/node_modules/{standard-version/node_modules/detect-indent → detect-indent}/index.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/chalk → detect-indent}/license +0 -0
- /package/node_modules/{standard-version/node_modules/detect-indent → detect-indent}/package.json +0 -0
- /package/node_modules/{standard-version/node_modules/detect-indent → detect-indent}/readme.md +0 -0
- /package/node_modules/{@babel/highlight/node_modules/escape-string-regexp → escape-string-regexp}/index.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/escape-string-regexp → escape-string-regexp}/license +0 -0
- /package/node_modules/{@babel/highlight/node_modules/escape-string-regexp → escape-string-regexp}/package.json +0 -0
- /package/node_modules/{@babel/highlight/node_modules/escape-string-regexp → escape-string-regexp}/readme.md +0 -0
- /package/node_modules/{@babel/highlight/node_modules/has-flag → has-flag}/index.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/has-flag → has-flag}/license +0 -0
- /package/node_modules/{@babel/highlight/node_modules/has-flag → has-flag}/package.json +0 -0
- /package/node_modules/{@babel/highlight/node_modules/has-flag → has-flag}/readme.md +0 -0
- /package/node_modules/{conventional-changelog-writer/node_modules/semver → lru-cache}/LICENSE +0 -0
- /package/node_modules/{hosted-git-info/node_modules/lru-cache → lru-cache}/README.md +0 -0
- /package/node_modules/{hosted-git-info/node_modules/lru-cache → lru-cache}/index.js +0 -0
- /package/node_modules/{hosted-git-info/node_modules/lru-cache → lru-cache}/package.json +0 -0
- /package/node_modules/{conventional-changelog → standard-version/node_modules/conventional-changelog}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog → standard-version/node_modules/conventional-changelog}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog → standard-version/node_modules/conventional-changelog}/README.md +0 -0
- /package/node_modules/{conventional-changelog → standard-version/node_modules/conventional-changelog}/index.js +0 -0
- /package/node_modules/{conventional-changelog → standard-version/node_modules/conventional-changelog}/package.json +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/README.md +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/index.js +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/package.json +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/templates/footer.hbs +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-angular → standard-version/node_modules/conventional-changelog-angular}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/README.md +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/index.js +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/package.json +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-atom → standard-version/node_modules/conventional-changelog-atom}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/README.md +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/index.js +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/package.json +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-codemirror → standard-version/node_modules/conventional-changelog-codemirror}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/README.md +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/add-bang-notes.js +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/index.js +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/package.json +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/templates/footer.hbs +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-conventionalcommits → standard-version/node_modules/conventional-changelog-conventionalcommits}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/README.md +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/hosts/bitbucket.json +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/hosts/github.json +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/hosts/gitlab.json +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/index.js +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/lib/merge-config.js +0 -0
- /package/node_modules/{conventional-changelog-core → standard-version/node_modules/conventional-changelog-core}/package.json +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/README.md +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/index.js +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/package.json +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-ember → standard-version/node_modules/conventional-changelog-ember}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/README.md +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/index.js +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/package.json +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-eslint → standard-version/node_modules/conventional-changelog-eslint}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/README.md +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/index.js +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/package.json +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-express → standard-version/node_modules/conventional-changelog-express}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/README.md +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/index.js +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/package.json +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-jquery → standard-version/node_modules/conventional-changelog-jquery}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/README.md +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/conventional-changelog.js +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/conventional-recommended-bump.js +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/index.js +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/package.json +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/parser-opts.js +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/templates/footer.hbs +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-changelog-jshint → standard-version/node_modules/conventional-changelog-jshint}/writer-opts.js +0 -0
- /package/node_modules/{conventional-changelog-preset-loader → standard-version/node_modules/conventional-changelog-preset-loader}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-preset-loader → standard-version/node_modules/conventional-changelog-preset-loader}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-preset-loader → standard-version/node_modules/conventional-changelog-preset-loader}/README.md +0 -0
- /package/node_modules/{conventional-changelog-preset-loader → standard-version/node_modules/conventional-changelog-preset-loader}/index.js +0 -0
- /package/node_modules/{conventional-changelog-preset-loader → standard-version/node_modules/conventional-changelog-preset-loader}/package.json +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/LICENSE.md +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/README.md +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/cli.js +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/index.js +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/lib/util.js +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/conventional-changelog-writer}/node_modules/semver/LICENSE +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/node_modules/semver/README.md +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/node_modules/semver/bin/semver.js +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/node_modules/semver/package.json +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/node_modules/semver/range.bnf +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/node_modules/semver/semver.js +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/package.json +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/templates/commit.hbs +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/templates/footer.hbs +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/templates/header.hbs +0 -0
- /package/node_modules/{conventional-changelog-writer → standard-version/node_modules/conventional-changelog-writer}/templates/template.hbs +0 -0
- /package/node_modules/{conventional-commits-filter → standard-version/node_modules/conventional-commits-filter}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-commits-filter → standard-version/node_modules/conventional-commits-filter}/LICENSE +0 -0
- /package/node_modules/{conventional-commits-filter → standard-version/node_modules/conventional-commits-filter}/README.md +0 -0
- /package/node_modules/{conventional-commits-filter → standard-version/node_modules/conventional-commits-filter}/index.js +0 -0
- /package/node_modules/{conventional-commits-filter → standard-version/node_modules/conventional-commits-filter}/package.json +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/LICENSE.md +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/README.md +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/cli.js +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/index.js +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/lib/parser.js +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/lib/regex.js +0 -0
- /package/node_modules/{conventional-commits-parser → standard-version/node_modules/conventional-commits-parser}/package.json +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/CHANGELOG.md +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/LICENSE.md +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/README.md +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/cli.js +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/index.js +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/package.json +0 -0
- /package/node_modules/{conventional-recommended-bump → standard-version/node_modules/conventional-recommended-bump}/preset-resolver.js +0 -0
- /package/node_modules/{git-raw-commits → standard-version/node_modules/git-raw-commits}/CHANGELOG.md +0 -0
- /package/node_modules/{git-raw-commits → standard-version/node_modules/git-raw-commits}/LICENSE.md +0 -0
- /package/node_modules/{git-raw-commits → standard-version/node_modules/git-raw-commits}/README.md +0 -0
- /package/node_modules/{git-raw-commits → standard-version/node_modules/git-raw-commits}/cli.js +0 -0
- /package/node_modules/{git-raw-commits → standard-version/node_modules/git-raw-commits}/index.js +0 -0
- /package/node_modules/{git-raw-commits → standard-version/node_modules/git-raw-commits}/package.json +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/CHANGELOG.md +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/LICENSE.md +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/README.md +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/cli.js +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/index.js +0 -0
- /package/node_modules/{hosted-git-info/node_modules/lru-cache → standard-version/node_modules/git-semver-tags/node_modules/semver}/LICENSE +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/node_modules/semver/README.md +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/node_modules/semver/bin/semver.js +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/node_modules/semver/package.json +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/node_modules/semver/range.bnf +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/node_modules/semver/semver.js +0 -0
- /package/node_modules/{git-semver-tags → standard-version/node_modules/git-semver-tags}/package.json +0 -0
- /package/node_modules/{get-pkg-repo → standard-version}/node_modules/through2/LICENSE.md +0 -0
- /package/node_modules/{@babel/highlight/node_modules/supports-color → supports-color}/browser.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/supports-color → supports-color}/index.js +0 -0
- /package/node_modules/{@babel/highlight/node_modules/supports-color → supports-color}/license +0 -0
- /package/node_modules/{@babel/highlight/node_modules/supports-color → supports-color}/package.json +0 -0
- /package/node_modules/{@babel/highlight/node_modules/supports-color → supports-color}/readme.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/.npmignore +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/.travis.yml +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/Makefile +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/README.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/component.json +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/index.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/package.json +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/isarray/test.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/.travis.yml +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/CONTRIBUTING.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/GOVERNANCE.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/LICENSE +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/README.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/duplex-browser.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/duplex.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/_stream_duplex.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/_stream_passthrough.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/_stream_readable.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/_stream_transform.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/_stream_writable.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/lib/internal/streams/stream.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/package.json +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/passthrough.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/readable-browser.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/readable.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/transform.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/writable-browser.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/readable-stream/writable.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/safe-buffer/LICENSE +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/safe-buffer/README.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/safe-buffer/index.d.ts +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/safe-buffer/index.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/safe-buffer/package.json +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/string_decoder/.travis.yml +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/string_decoder/LICENSE +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/string_decoder/README.md +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/string_decoder/lib/string_decoder.js +0 -0
- /package/node_modules/{get-pkg-repo → through2}/node_modules/string_decoder/package.json +0 -0
- /package/node_modules/{ansi-styles → wrap-ansi/node_modules/ansi-styles}/index.d.ts +0 -0
- /package/node_modules/{standard-version → wrap-ansi}/node_modules/ansi-styles/license +0 -0
- /package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-convert/CHANGELOG.md +0 -0
- /package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-convert/LICENSE +0 -0
- /package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-convert/README.md +0 -0
- /package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-name/LICENSE +0 -0
- /package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-name/README.md +0 -0
- /package/node_modules/{@babel/highlight → wrap-ansi}/node_modules/color-name/index.js +0 -0
- /package/node_modules/{hosted-git-info/node_modules/yallist → yallist}/LICENSE +0 -0
- /package/node_modules/{hosted-git-info/node_modules/yallist → yallist}/README.md +0 -0
- /package/node_modules/{hosted-git-info/node_modules/yallist → yallist}/iterator.js +0 -0
- /package/node_modules/{hosted-git-info/node_modules/yallist → yallist}/package.json +0 -0
- /package/node_modules/{hosted-git-info/node_modules/yallist → yallist}/yallist.js +0 -0
|
@@ -89,7 +89,9 @@
|
|
|
89
89
|
"node:readline/promises": ">= 17",
|
|
90
90
|
"repl": true,
|
|
91
91
|
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
92
|
+
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
92
93
|
"smalloc": ">= 0.11.5 && < 3",
|
|
94
|
+
"node:sqlite": ">= 23.4",
|
|
93
95
|
"_stream_duplex": ">= 0.9.4",
|
|
94
96
|
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
95
97
|
"_stream_transform": ">= 0.9.4",
|
|
@@ -116,6 +118,8 @@
|
|
|
116
118
|
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
117
119
|
"test/reporters": ">= 19.9 && < 20.2",
|
|
118
120
|
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
|
121
|
+
"test/mock_loader": ">= 22.3 && < 22.7",
|
|
122
|
+
"node:test/mock_loader": ">= 22.3 && < 22.7",
|
|
119
123
|
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
120
124
|
"timers": true,
|
|
121
125
|
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resolve",
|
|
3
3
|
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.10",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/browserify/resolve.git"
|
|
@@ -26,26 +26,25 @@
|
|
|
26
26
|
"tests-only": "tape test/*.js",
|
|
27
27
|
"pretest": "npm run lint",
|
|
28
28
|
"test": "npm run --silent tests-only",
|
|
29
|
-
"posttest": "npm run test:multirepo &&
|
|
29
|
+
"posttest": "npm run test:multirepo && npx npm@'>= 10.2' audit --production",
|
|
30
30
|
"test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@ljharb/eslint-config": "^21.1.
|
|
34
|
-
"array.prototype.map": "^1.0.
|
|
35
|
-
"aud": "^2.0.3",
|
|
33
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
34
|
+
"array.prototype.map": "^1.0.7",
|
|
36
35
|
"copy-dir": "^1.3.0",
|
|
37
36
|
"eclint": "^2.8.1",
|
|
38
37
|
"eslint": "=8.8.0",
|
|
39
38
|
"in-publish": "^2.0.1",
|
|
40
39
|
"mkdirp": "^0.5.5",
|
|
41
40
|
"mv": "^2.1.1",
|
|
42
|
-
"npmignore": "^0.3.
|
|
41
|
+
"npmignore": "^0.3.1",
|
|
43
42
|
"object-keys": "^1.1.1",
|
|
44
43
|
"rimraf": "^2.7.1",
|
|
45
44
|
"safe-publish-latest": "^2.0.0",
|
|
46
45
|
"semver": "^6.3.1",
|
|
47
46
|
"tap": "0.4.13",
|
|
48
|
-
"tape": "^5.
|
|
47
|
+
"tape": "^5.9.0",
|
|
49
48
|
"tmp": "^0.0.31"
|
|
50
49
|
},
|
|
51
50
|
"license": "MIT",
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
"url": "https://github.com/sponsors/ljharb"
|
|
59
58
|
},
|
|
60
59
|
"dependencies": {
|
|
61
|
-
"is-core-module": "^2.
|
|
60
|
+
"is-core-module": "^2.16.0",
|
|
62
61
|
"path-parse": "^1.0.7",
|
|
63
62
|
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
64
63
|
},
|
|
@@ -66,7 +65,11 @@
|
|
|
66
65
|
"ignore": [
|
|
67
66
|
".github/workflows",
|
|
68
67
|
"appveyor.yml",
|
|
69
|
-
"test/resolver/malformed_package_json"
|
|
68
|
+
"test/resolver/malformed_package_json",
|
|
69
|
+
"test/list-exports"
|
|
70
70
|
]
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">= 0.4"
|
|
71
74
|
}
|
|
72
75
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# through2
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
3
5
|
[](https://nodei.co/npm/through2/)
|
|
4
6
|
|
|
5
|
-
**A tiny wrapper around Node streams.Transform (Streams2/3) to avoid explicit subclassing noise**
|
|
7
|
+
**A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise**
|
|
6
8
|
|
|
7
9
|
Inspired by [Dominic Tarr](https://github.com/dominictarr)'s [through](https://github.com/dominictarr/through) in that it's so much easier to make a stream out of a function than it is to set up the prototype chain properly: `through(function (chunk) { ... })`.
|
|
8
10
|
|
|
9
|
-
Note: As 2.x.x this module starts using **Streams3** instead of Stream2. To continue using a Streams2 version use `npm install through2@0` to fetch the latest version of 0.x.x. More information about Streams2 vs Streams3 and recommendations see the article **[Why I don't use Node's core 'stream' module](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html)**.
|
|
10
|
-
|
|
11
11
|
```js
|
|
12
12
|
fs.createReadStream('ex.txt')
|
|
13
13
|
.pipe(through2(function (chunk, enc, callback) {
|
|
14
|
-
for (
|
|
14
|
+
for (let i = 0; i < chunk.length; i++)
|
|
15
15
|
if (chunk[i] == 97)
|
|
16
16
|
chunk[i] = 122 // swap 'a' for 'z'
|
|
17
17
|
|
|
@@ -26,12 +26,12 @@ fs.createReadStream('ex.txt')
|
|
|
26
26
|
Or object streams:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
|
-
|
|
29
|
+
const all = []
|
|
30
30
|
|
|
31
31
|
fs.createReadStream('data.csv')
|
|
32
32
|
.pipe(csv2())
|
|
33
33
|
.pipe(through2.obj(function (chunk, enc, callback) {
|
|
34
|
-
|
|
34
|
+
const data = {
|
|
35
35
|
name : chunk[0]
|
|
36
36
|
, address : chunk[3]
|
|
37
37
|
, phone : chunk[10]
|
|
@@ -50,11 +50,25 @@ fs.createReadStream('data.csv')
|
|
|
50
50
|
|
|
51
51
|
Note that `through2.obj(fn)` is a convenience wrapper around `through2({ objectMode: true }, fn)`.
|
|
52
52
|
|
|
53
|
+
## Do you need this?
|
|
54
|
+
|
|
55
|
+
Since Node.js introduced [Simplified Stream Construction](https://nodejs.org/api/stream.html#stream_simplified_construction), many uses of **through2** have become redundant. Consider whether you really need to use **through2** or just want to use the `'readable-stream'` package, or the core `'stream'` package (which is derived from `'readable-stream'`):
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
const { Transform } = require('readable-stream')
|
|
59
|
+
|
|
60
|
+
const transformer = new Transform({
|
|
61
|
+
transform(chunk, enc, callback) {
|
|
62
|
+
// ...
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
```
|
|
66
|
+
|
|
53
67
|
## API
|
|
54
68
|
|
|
55
69
|
<b><code>through2([ options, ] [ transformFunction ] [, flushFunction ])</code></b>
|
|
56
70
|
|
|
57
|
-
Consult the **[stream.Transform](
|
|
71
|
+
Consult the **[stream.Transform](https://nodejs.org/docs/latest/api/stream.html#stream_class_stream_transform)** documentation for the exact rules of the `transformFunction` (i.e. `this._transform`) and the optional `flushFunction` (i.e. `this._flush`).
|
|
58
72
|
|
|
59
73
|
### options
|
|
60
74
|
|
|
@@ -69,7 +83,7 @@ fs.createReadStream('/tmp/important.dat')
|
|
|
69
83
|
cb(null, 'wut?') // note we can use the second argument on the callback
|
|
70
84
|
// to provide data as an alternative to this.push('wut?')
|
|
71
85
|
}
|
|
72
|
-
)
|
|
86
|
+
))
|
|
73
87
|
.pipe(fs.createWriteStream('/tmp/wut.txt'))
|
|
74
88
|
```
|
|
75
89
|
|
|
@@ -104,7 +118,7 @@ fs.createReadStream('/tmp/important.dat')
|
|
|
104
118
|
Instead of returning a `stream.Transform` instance, `through2.ctor()` returns a **constructor** for a custom Transform. This is useful when you want to use the same transform logic in multiple instances.
|
|
105
119
|
|
|
106
120
|
```js
|
|
107
|
-
|
|
121
|
+
const FToC = through2.ctor({objectMode: true}, function (record, encoding, callback) {
|
|
108
122
|
if (record.temp != null && record.unit == "F") {
|
|
109
123
|
record.temp = ( ( record.temp - 32 ) * 5 ) / 9
|
|
110
124
|
record.unit = "C"
|
|
@@ -114,21 +128,13 @@ var FToC = through2.ctor({objectMode: true}, function (record, encoding, callbac
|
|
|
114
128
|
})
|
|
115
129
|
|
|
116
130
|
// Create instances of FToC like so:
|
|
117
|
-
|
|
131
|
+
const converter = new FToC()
|
|
118
132
|
// Or:
|
|
119
|
-
|
|
133
|
+
const converter = FToC()
|
|
120
134
|
// Or specify/override options when you instantiate, if you prefer:
|
|
121
|
-
|
|
135
|
+
const converter = FToC({objectMode: true})
|
|
122
136
|
```
|
|
123
137
|
|
|
124
|
-
## See Also
|
|
125
|
-
|
|
126
|
-
- [through2-map](https://github.com/brycebaril/through2-map) - Array.prototype.map analog for streams.
|
|
127
|
-
- [through2-filter](https://github.com/brycebaril/through2-filter) - Array.prototype.filter analog for streams.
|
|
128
|
-
- [through2-reduce](https://github.com/brycebaril/through2-reduce) - Array.prototype.reduce analog for streams.
|
|
129
|
-
- [through2-spy](https://github.com/brycebaril/through2-spy) - Wrapper for simple stream.PassThrough spies.
|
|
130
|
-
- the [mississippi stream utility collection](https://github.com/maxogden/mississippi) includes `through2` as well as many more useful stream modules similar to this one
|
|
131
|
-
|
|
132
138
|
## License
|
|
133
139
|
|
|
134
|
-
**through2** is Copyright
|
|
140
|
+
**through2** is Copyright © Rod Vagg and additional contributors and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "through2",
|
|
3
|
+
"version": "4.0.2",
|
|
4
|
+
"description": "A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise",
|
|
5
|
+
"main": "through2.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test:node": "hundreds mocha test/test.js",
|
|
8
|
+
"test:browser": "node -e 'process.exit(process.version.startsWith(\"v8.\") ? 0 : 1)' || polendina --cleanup --runner=mocha test/test.js",
|
|
9
|
+
"test": "npm run lint && npm run test:node && npm run test:browser",
|
|
10
|
+
"lint": "standard",
|
|
11
|
+
"coverage": "c8 --reporter=text --reporter=html mocha test/test.js && npx st -d coverage -p 8888"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/rvagg/through2.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"stream",
|
|
19
|
+
"streams2",
|
|
20
|
+
"through",
|
|
21
|
+
"transform"
|
|
22
|
+
],
|
|
23
|
+
"author": "Rod Vagg <r@va.gg> (https://github.com/rvagg)",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"readable-stream": "3"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"bl": "^4.0.2",
|
|
30
|
+
"buffer": "^5.6.0",
|
|
31
|
+
"chai": "^4.2.0",
|
|
32
|
+
"hundreds": "~0.0.7",
|
|
33
|
+
"mocha": "^7.2.0",
|
|
34
|
+
"polendina": "^1.0.0",
|
|
35
|
+
"standard": "^14.3.4",
|
|
36
|
+
"stream-spigot": "^3.0.6"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const { Transform } = require('readable-stream')
|
|
2
|
+
|
|
3
|
+
function inherits (fn, sup) {
|
|
4
|
+
fn.super_ = sup
|
|
5
|
+
fn.prototype = Object.create(sup.prototype, {
|
|
6
|
+
constructor: { value: fn, enumerable: false, writable: true, configurable: true }
|
|
7
|
+
})
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// create a new export function, used by both the main export and
|
|
11
|
+
// the .ctor export, contains common logic for dealing with arguments
|
|
12
|
+
function through2 (construct) {
|
|
13
|
+
return (options, transform, flush) => {
|
|
14
|
+
if (typeof options === 'function') {
|
|
15
|
+
flush = transform
|
|
16
|
+
transform = options
|
|
17
|
+
options = {}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (typeof transform !== 'function') {
|
|
21
|
+
// noop
|
|
22
|
+
transform = (chunk, enc, cb) => cb(null, chunk)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (typeof flush !== 'function') {
|
|
26
|
+
flush = null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return construct(options, transform, flush)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// main export, just make me a transform stream!
|
|
34
|
+
const make = through2((options, transform, flush) => {
|
|
35
|
+
const t2 = new Transform(options)
|
|
36
|
+
|
|
37
|
+
t2._transform = transform
|
|
38
|
+
|
|
39
|
+
if (flush) {
|
|
40
|
+
t2._flush = flush
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return t2
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
// make me a reusable prototype that I can `new`, or implicitly `new`
|
|
47
|
+
// with a constructor call
|
|
48
|
+
const ctor = through2((options, transform, flush) => {
|
|
49
|
+
function Through2 (override) {
|
|
50
|
+
if (!(this instanceof Through2)) {
|
|
51
|
+
return new Through2(override)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
this.options = Object.assign({}, options, override)
|
|
55
|
+
|
|
56
|
+
Transform.call(this, this.options)
|
|
57
|
+
|
|
58
|
+
this._transform = transform
|
|
59
|
+
if (flush) {
|
|
60
|
+
this._flush = flush
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
inherits(Through2, Transform)
|
|
65
|
+
|
|
66
|
+
return Through2
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
const obj = through2(function (options, transform, flush) {
|
|
70
|
+
const t2 = new Transform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))
|
|
71
|
+
|
|
72
|
+
t2._transform = transform
|
|
73
|
+
|
|
74
|
+
if (flush) {
|
|
75
|
+
t2._flush = flush
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return t2
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
module.exports = make
|
|
82
|
+
module.exports.ctor = ctor
|
|
83
|
+
module.exports.obj = obj
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# through2
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
[](https://nodei.co/npm/through2/)
|
|
6
4
|
|
|
7
|
-
**A tiny wrapper around Node
|
|
5
|
+
**A tiny wrapper around Node streams.Transform (Streams2/3) to avoid explicit subclassing noise**
|
|
8
6
|
|
|
9
7
|
Inspired by [Dominic Tarr](https://github.com/dominictarr)'s [through](https://github.com/dominictarr/through) in that it's so much easier to make a stream out of a function than it is to set up the prototype chain properly: `through(function (chunk) { ... })`.
|
|
10
8
|
|
|
9
|
+
Note: As 2.x.x this module starts using **Streams3** instead of Stream2. To continue using a Streams2 version use `npm install through2@0` to fetch the latest version of 0.x.x. More information about Streams2 vs Streams3 and recommendations see the article **[Why I don't use Node's core 'stream' module](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html)**.
|
|
10
|
+
|
|
11
11
|
```js
|
|
12
12
|
fs.createReadStream('ex.txt')
|
|
13
13
|
.pipe(through2(function (chunk, enc, callback) {
|
|
14
|
-
for (
|
|
14
|
+
for (var i = 0; i < chunk.length; i++)
|
|
15
15
|
if (chunk[i] == 97)
|
|
16
16
|
chunk[i] = 122 // swap 'a' for 'z'
|
|
17
17
|
|
|
@@ -26,12 +26,12 @@ fs.createReadStream('ex.txt')
|
|
|
26
26
|
Or object streams:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
|
-
|
|
29
|
+
var all = []
|
|
30
30
|
|
|
31
31
|
fs.createReadStream('data.csv')
|
|
32
32
|
.pipe(csv2())
|
|
33
33
|
.pipe(through2.obj(function (chunk, enc, callback) {
|
|
34
|
-
|
|
34
|
+
var data = {
|
|
35
35
|
name : chunk[0]
|
|
36
36
|
, address : chunk[3]
|
|
37
37
|
, phone : chunk[10]
|
|
@@ -50,25 +50,11 @@ fs.createReadStream('data.csv')
|
|
|
50
50
|
|
|
51
51
|
Note that `through2.obj(fn)` is a convenience wrapper around `through2({ objectMode: true }, fn)`.
|
|
52
52
|
|
|
53
|
-
## Do you need this?
|
|
54
|
-
|
|
55
|
-
Since Node.js introduced [Simplified Stream Construction](https://nodejs.org/api/stream.html#stream_simplified_construction), many uses of **through2** have become redundant. Consider whether you really need to use **through2** or just want to use the `'readable-stream'` package, or the core `'stream'` package (which is derived from `'readable-stream'`):
|
|
56
|
-
|
|
57
|
-
```js
|
|
58
|
-
const { Transform } = require('readable-stream')
|
|
59
|
-
|
|
60
|
-
const transformer = new Transform({
|
|
61
|
-
transform(chunk, enc, callback) {
|
|
62
|
-
// ...
|
|
63
|
-
}
|
|
64
|
-
})
|
|
65
|
-
```
|
|
66
|
-
|
|
67
53
|
## API
|
|
68
54
|
|
|
69
55
|
<b><code>through2([ options, ] [ transformFunction ] [, flushFunction ])</code></b>
|
|
70
56
|
|
|
71
|
-
Consult the **[stream.Transform](
|
|
57
|
+
Consult the **[stream.Transform](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_transform)** documentation for the exact rules of the `transformFunction` (i.e. `this._transform`) and the optional `flushFunction` (i.e. `this._flush`).
|
|
72
58
|
|
|
73
59
|
### options
|
|
74
60
|
|
|
@@ -83,7 +69,7 @@ fs.createReadStream('/tmp/important.dat')
|
|
|
83
69
|
cb(null, 'wut?') // note we can use the second argument on the callback
|
|
84
70
|
// to provide data as an alternative to this.push('wut?')
|
|
85
71
|
}
|
|
86
|
-
)
|
|
72
|
+
)
|
|
87
73
|
.pipe(fs.createWriteStream('/tmp/wut.txt'))
|
|
88
74
|
```
|
|
89
75
|
|
|
@@ -118,7 +104,7 @@ fs.createReadStream('/tmp/important.dat')
|
|
|
118
104
|
Instead of returning a `stream.Transform` instance, `through2.ctor()` returns a **constructor** for a custom Transform. This is useful when you want to use the same transform logic in multiple instances.
|
|
119
105
|
|
|
120
106
|
```js
|
|
121
|
-
|
|
107
|
+
var FToC = through2.ctor({objectMode: true}, function (record, encoding, callback) {
|
|
122
108
|
if (record.temp != null && record.unit == "F") {
|
|
123
109
|
record.temp = ( ( record.temp - 32 ) * 5 ) / 9
|
|
124
110
|
record.unit = "C"
|
|
@@ -128,13 +114,21 @@ const FToC = through2.ctor({objectMode: true}, function (record, encoding, callb
|
|
|
128
114
|
})
|
|
129
115
|
|
|
130
116
|
// Create instances of FToC like so:
|
|
131
|
-
|
|
117
|
+
var converter = new FToC()
|
|
132
118
|
// Or:
|
|
133
|
-
|
|
119
|
+
var converter = FToC()
|
|
134
120
|
// Or specify/override options when you instantiate, if you prefer:
|
|
135
|
-
|
|
121
|
+
var converter = FToC({objectMode: true})
|
|
136
122
|
```
|
|
137
123
|
|
|
124
|
+
## See Also
|
|
125
|
+
|
|
126
|
+
- [through2-map](https://github.com/brycebaril/through2-map) - Array.prototype.map analog for streams.
|
|
127
|
+
- [through2-filter](https://github.com/brycebaril/through2-filter) - Array.prototype.filter analog for streams.
|
|
128
|
+
- [through2-reduce](https://github.com/brycebaril/through2-reduce) - Array.prototype.reduce analog for streams.
|
|
129
|
+
- [through2-spy](https://github.com/brycebaril/through2-spy) - Wrapper for simple stream.PassThrough spies.
|
|
130
|
+
- the [mississippi stream utility collection](https://github.com/maxogden/mississippi) includes `through2` as well as many more useful stream modules similar to this one
|
|
131
|
+
|
|
138
132
|
## License
|
|
139
133
|
|
|
140
|
-
**through2** is Copyright
|
|
134
|
+
**through2** is Copyright (c) Rod Vagg [@rvagg](https://twitter.com/rvagg) and additional contributors and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "through2",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A tiny wrapper around Node
|
|
3
|
+
"version": "2.0.5",
|
|
4
|
+
"description": "A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise",
|
|
5
5
|
"main": "through2.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test
|
|
8
|
-
"test:browser": "node -e 'process.exit(process.version.startsWith(\"v8.\") ? 0 : 1)' || polendina --cleanup --runner=mocha test/test.js",
|
|
9
|
-
"test": "npm run lint && npm run test:node && npm run test:browser",
|
|
10
|
-
"lint": "standard",
|
|
11
|
-
"coverage": "c8 --reporter=text --reporter=html mocha test/test.js && npx st -d coverage -p 8888"
|
|
7
|
+
"test": "node test/test.js | faucet"
|
|
12
8
|
},
|
|
13
9
|
"repository": {
|
|
14
10
|
"type": "git",
|
|
@@ -23,16 +19,15 @@
|
|
|
23
19
|
"author": "Rod Vagg <r@va.gg> (https://github.com/rvagg)",
|
|
24
20
|
"license": "MIT",
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"readable-stream": "3"
|
|
22
|
+
"readable-stream": "~2.3.6",
|
|
23
|
+
"xtend": "~4.0.1"
|
|
27
24
|
},
|
|
28
25
|
"devDependencies": {
|
|
29
|
-
"bl": "
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"standard": "^14.3.4",
|
|
36
|
-
"stream-spigot": "^3.0.6"
|
|
26
|
+
"bl": "~2.0.1",
|
|
27
|
+
"faucet": "0.0.1",
|
|
28
|
+
"nyc": "~13.1.0",
|
|
29
|
+
"safe-buffer": "~5.1.2",
|
|
30
|
+
"stream-spigot": "~3.0.6",
|
|
31
|
+
"tape": "~4.9.1"
|
|
37
32
|
}
|
|
38
33
|
}
|
|
@@ -1,83 +1,96 @@
|
|
|
1
|
-
|
|
1
|
+
var Transform = require('readable-stream').Transform
|
|
2
|
+
, inherits = require('util').inherits
|
|
3
|
+
, xtend = require('xtend')
|
|
2
4
|
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
function DestroyableTransform(opts) {
|
|
6
|
+
Transform.call(this, opts)
|
|
7
|
+
this._destroyed = false
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
inherits(DestroyableTransform, Transform)
|
|
11
|
+
|
|
12
|
+
DestroyableTransform.prototype.destroy = function(err) {
|
|
13
|
+
if (this._destroyed) return
|
|
14
|
+
this._destroyed = true
|
|
15
|
+
|
|
16
|
+
var self = this
|
|
17
|
+
process.nextTick(function() {
|
|
18
|
+
if (err)
|
|
19
|
+
self.emit('error', err)
|
|
20
|
+
self.emit('close')
|
|
7
21
|
})
|
|
8
22
|
}
|
|
9
23
|
|
|
24
|
+
// a noop _transform function
|
|
25
|
+
function noop (chunk, enc, callback) {
|
|
26
|
+
callback(null, chunk)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
10
30
|
// create a new export function, used by both the main export and
|
|
11
31
|
// the .ctor export, contains common logic for dealing with arguments
|
|
12
32
|
function through2 (construct) {
|
|
13
|
-
return (options, transform, flush)
|
|
14
|
-
if (typeof options
|
|
15
|
-
flush
|
|
33
|
+
return function (options, transform, flush) {
|
|
34
|
+
if (typeof options == 'function') {
|
|
35
|
+
flush = transform
|
|
16
36
|
transform = options
|
|
17
|
-
options
|
|
37
|
+
options = {}
|
|
18
38
|
}
|
|
19
39
|
|
|
20
|
-
if (typeof transform
|
|
21
|
-
|
|
22
|
-
transform = (chunk, enc, cb) => cb(null, chunk)
|
|
23
|
-
}
|
|
40
|
+
if (typeof transform != 'function')
|
|
41
|
+
transform = noop
|
|
24
42
|
|
|
25
|
-
if (typeof flush
|
|
43
|
+
if (typeof flush != 'function')
|
|
26
44
|
flush = null
|
|
27
|
-
}
|
|
28
45
|
|
|
29
46
|
return construct(options, transform, flush)
|
|
30
47
|
}
|
|
31
48
|
}
|
|
32
49
|
|
|
50
|
+
|
|
33
51
|
// main export, just make me a transform stream!
|
|
34
|
-
|
|
35
|
-
|
|
52
|
+
module.exports = through2(function (options, transform, flush) {
|
|
53
|
+
var t2 = new DestroyableTransform(options)
|
|
36
54
|
|
|
37
55
|
t2._transform = transform
|
|
38
56
|
|
|
39
|
-
if (flush)
|
|
57
|
+
if (flush)
|
|
40
58
|
t2._flush = flush
|
|
41
|
-
}
|
|
42
59
|
|
|
43
60
|
return t2
|
|
44
61
|
})
|
|
45
62
|
|
|
63
|
+
|
|
46
64
|
// make me a reusable prototype that I can `new`, or implicitly `new`
|
|
47
65
|
// with a constructor call
|
|
48
|
-
|
|
66
|
+
module.exports.ctor = through2(function (options, transform, flush) {
|
|
49
67
|
function Through2 (override) {
|
|
50
|
-
if (!(this instanceof Through2))
|
|
68
|
+
if (!(this instanceof Through2))
|
|
51
69
|
return new Through2(override)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
this.options = Object.assign({}, options, override)
|
|
55
70
|
|
|
56
|
-
|
|
71
|
+
this.options = xtend(options, override)
|
|
57
72
|
|
|
58
|
-
this.
|
|
59
|
-
if (flush) {
|
|
60
|
-
this._flush = flush
|
|
61
|
-
}
|
|
73
|
+
DestroyableTransform.call(this, this.options)
|
|
62
74
|
}
|
|
63
75
|
|
|
64
|
-
inherits(Through2,
|
|
76
|
+
inherits(Through2, DestroyableTransform)
|
|
77
|
+
|
|
78
|
+
Through2.prototype._transform = transform
|
|
79
|
+
|
|
80
|
+
if (flush)
|
|
81
|
+
Through2.prototype._flush = flush
|
|
65
82
|
|
|
66
83
|
return Through2
|
|
67
84
|
})
|
|
68
85
|
|
|
69
|
-
|
|
70
|
-
|
|
86
|
+
|
|
87
|
+
module.exports.obj = through2(function (options, transform, flush) {
|
|
88
|
+
var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))
|
|
71
89
|
|
|
72
90
|
t2._transform = transform
|
|
73
91
|
|
|
74
|
-
if (flush)
|
|
92
|
+
if (flush)
|
|
75
93
|
t2._flush = flush
|
|
76
|
-
}
|
|
77
94
|
|
|
78
95
|
return t2
|
|
79
96
|
})
|
|
80
|
-
|
|
81
|
-
module.exports = make
|
|
82
|
-
module.exports.ctor = ctor
|
|
83
|
-
module.exports.obj = obj
|