select_all-rails 0.3.0 → 0.3.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +8 -7
- data/lib/select_all/rails/version.rb +1 -1
- data/node_modules/.bin/acorn +71 -0
- data/node_modules/.bin/escodegen +77 -0
- data/node_modules/.bin/esgenerate +64 -0
- data/node_modules/.bin/esparse +126 -0
- data/node_modules/.bin/esvalidate +199 -0
- data/node_modules/.bin/har-validator +56 -0
- data/node_modules/.bin/sshpk-conv +201 -0
- data/node_modules/.bin/sshpk-sign +191 -0
- data/node_modules/.bin/sshpk-verify +166 -0
- data/node_modules/.bin/uuid +26 -0
- data/node_modules/abab/CHANGELOG.md +11 -0
- data/node_modules/abab/README.md +52 -0
- data/node_modules/abab/index.js +9 -0
- data/node_modules/abab/lib/atob.js +109 -0
- data/node_modules/abab/lib/btoa.js +65 -0
- data/node_modules/abab/package.json +106 -0
- data/node_modules/acorn-globals/LICENSE +19 -0
- data/node_modules/acorn-globals/README.md +76 -0
- data/node_modules/acorn-globals/index.js +180 -0
- data/node_modules/acorn-globals/package.json +100 -0
- data/node_modules/acorn/.editorconfig +7 -0
- data/node_modules/acorn/.gitattributes +1 -0
- data/node_modules/acorn/.npmignore +3 -0
- data/node_modules/acorn/.tern-project +6 -0
- data/node_modules/acorn/.travis.yml +6 -0
- data/node_modules/acorn/AUTHORS +43 -0
- data/node_modules/acorn/LICENSE +19 -0
- data/node_modules/acorn/README.md +396 -0
- data/node_modules/acorn/bin/acorn +71 -0
- data/node_modules/acorn/bin/build-acorn.js +82 -0
- data/node_modules/acorn/bin/generate-identifier-regex.js +47 -0
- data/node_modules/acorn/bin/update_authors.sh +6 -0
- data/node_modules/acorn/dist/.keep +0 -0
- data/node_modules/acorn/dist/acorn.js +3340 -0
- data/node_modules/acorn/dist/acorn_loose.js +1300 -0
- data/node_modules/acorn/dist/walk.js +377 -0
- data/node_modules/acorn/package.json +222 -0
- data/node_modules/acorn/src/bin/acorn.js +59 -0
- data/node_modules/acorn/src/expression.js +707 -0
- data/node_modules/acorn/src/identifier.js +90 -0
- data/node_modules/acorn/src/index.js +67 -0
- data/node_modules/acorn/src/location.js +24 -0
- data/node_modules/acorn/src/locutil.js +42 -0
- data/node_modules/acorn/src/loose/acorn_loose.js +0 -0
- data/node_modules/acorn/src/loose/expression.js +501 -0
- data/node_modules/acorn/src/loose/index.js +50 -0
- data/node_modules/acorn/src/loose/parseutil.js +1 -0
- data/node_modules/acorn/src/loose/state.js +160 -0
- data/node_modules/acorn/src/loose/statement.js +420 -0
- data/node_modules/acorn/src/loose/tokenize.js +108 -0
- data/node_modules/acorn/src/lval.js +215 -0
- data/node_modules/acorn/src/node.js +50 -0
- data/node_modules/acorn/src/options.js +121 -0
- data/node_modules/acorn/src/parseutil.js +102 -0
- data/node_modules/acorn/src/state.js +104 -0
- data/node_modules/acorn/src/statement.js +626 -0
- data/node_modules/acorn/src/tokencontext.js +109 -0
- data/node_modules/acorn/src/tokenize.js +682 -0
- data/node_modules/acorn/src/tokentype.js +147 -0
- data/node_modules/acorn/src/util.js +9 -0
- data/node_modules/acorn/src/walk/index.js +340 -0
- data/node_modules/acorn/src/whitespace.js +12 -0
- data/node_modules/amdefine/LICENSE +58 -0
- data/node_modules/amdefine/README.md +171 -0
- data/node_modules/amdefine/amdefine.js +301 -0
- data/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/amdefine/package.json +86 -0
- data/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/ansi-regex/license +21 -0
- data/node_modules/ansi-regex/package.json +121 -0
- data/node_modules/ansi-regex/readme.md +31 -0
- data/node_modules/ansi-styles/index.js +65 -0
- data/node_modules/ansi-styles/license +21 -0
- data/node_modules/ansi-styles/package.json +114 -0
- data/node_modules/ansi-styles/readme.md +86 -0
- data/node_modules/array-equal/.npmignore +1 -0
- data/node_modules/array-equal/LICENSE +22 -0
- data/node_modules/array-equal/README.md +11 -0
- data/node_modules/array-equal/component.json +10 -0
- data/node_modules/array-equal/index.js +9 -0
- data/node_modules/array-equal/package.json +75 -0
- data/node_modules/asn1/.npmignore +2 -0
- data/node_modules/asn1/.travis.yml +4 -0
- data/node_modules/asn1/LICENSE +19 -0
- data/node_modules/asn1/README.md +50 -0
- data/node_modules/asn1/lib/ber/errors.js +13 -0
- data/node_modules/asn1/lib/ber/index.js +27 -0
- data/node_modules/asn1/lib/ber/reader.js +261 -0
- data/node_modules/asn1/lib/ber/types.js +36 -0
- data/node_modules/asn1/lib/ber/writer.js +316 -0
- data/node_modules/asn1/lib/index.js +20 -0
- data/node_modules/asn1/package.json +98 -0
- data/node_modules/asn1/tst/ber/reader.test.js +208 -0
- data/node_modules/asn1/tst/ber/writer.test.js +370 -0
- data/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/assert-plus/CHANGES.md +8 -0
- data/node_modules/assert-plus/README.md +155 -0
- data/node_modules/assert-plus/assert.js +206 -0
- data/node_modules/assert-plus/package.json +115 -0
- data/node_modules/assertion-error/.npmignore +11 -0
- data/node_modules/assertion-error/History.md +19 -0
- data/node_modules/assertion-error/README.md +41 -0
- data/node_modules/assertion-error/index.js +116 -0
- data/node_modules/assertion-error/package.json +95 -0
- data/node_modules/asynckit/LICENSE +21 -0
- data/node_modules/asynckit/README.md +233 -0
- data/node_modules/asynckit/bench.js +76 -0
- data/node_modules/asynckit/index.js +6 -0
- data/node_modules/asynckit/lib/abort.js +29 -0
- data/node_modules/asynckit/lib/async.js +34 -0
- data/node_modules/asynckit/lib/defer.js +26 -0
- data/node_modules/asynckit/lib/iterate.js +75 -0
- data/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- data/node_modules/asynckit/lib/readable_parallel.js +25 -0
- data/node_modules/asynckit/lib/readable_serial.js +25 -0
- data/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- data/node_modules/asynckit/lib/state.js +37 -0
- data/node_modules/asynckit/lib/streamify.js +141 -0
- data/node_modules/asynckit/lib/terminator.js +29 -0
- data/node_modules/asynckit/package.json +126 -0
- data/node_modules/asynckit/parallel.js +43 -0
- data/node_modules/asynckit/serial.js +17 -0
- data/node_modules/asynckit/serialOrdered.js +75 -0
- data/node_modules/asynckit/stream.js +21 -0
- data/node_modules/aws-sign2/LICENSE +55 -0
- data/node_modules/aws-sign2/README.md +4 -0
- data/node_modules/aws-sign2/index.js +212 -0
- data/node_modules/aws-sign2/package.json +81 -0
- data/node_modules/aws4/.npmignore +4 -0
- data/node_modules/aws4/.tern-port +1 -0
- data/node_modules/aws4/.travis.yml +5 -0
- data/node_modules/aws4/LICENSE +19 -0
- data/node_modules/aws4/README.md +523 -0
- data/node_modules/aws4/aws4.js +323 -0
- data/node_modules/aws4/lru.js +96 -0
- data/node_modules/aws4/package.json +140 -0
- data/node_modules/bcrypt-pbkdf/README.md +39 -0
- data/node_modules/bcrypt-pbkdf/index.js +559 -0
- data/node_modules/bcrypt-pbkdf/package.json +72 -0
- data/node_modules/boom/.npmignore +18 -0
- data/node_modules/boom/.travis.yml +8 -0
- data/node_modules/boom/CONTRIBUTING.md +1 -0
- data/node_modules/boom/LICENSE +28 -0
- data/node_modules/boom/README.md +652 -0
- data/node_modules/boom/images/boom.png +0 -0
- data/node_modules/boom/lib/index.js +318 -0
- data/node_modules/boom/package.json +98 -0
- data/node_modules/boom/test/index.js +654 -0
- data/node_modules/caseless/LICENSE +28 -0
- data/node_modules/caseless/README.md +45 -0
- data/node_modules/caseless/index.js +66 -0
- data/node_modules/caseless/package.json +96 -0
- data/node_modules/caseless/test.js +40 -0
- data/node_modules/chai/.npmignore +14 -0
- data/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
- data/node_modules/chai/CONTRIBUTING.md +214 -0
- data/node_modules/chai/History.md +1059 -0
- data/node_modules/chai/README.md +83 -0
- data/node_modules/chai/ReleaseNotes.md +737 -0
- data/node_modules/chai/bower.json +26 -0
- data/node_modules/chai/chai.js +6142 -0
- data/node_modules/chai/index.js +1 -0
- data/node_modules/chai/karma.conf.js +28 -0
- data/node_modules/chai/karma.sauce.js +41 -0
- data/node_modules/chai/lib/chai.js +93 -0
- data/node_modules/chai/lib/chai/assertion.js +131 -0
- data/node_modules/chai/lib/chai/config.js +55 -0
- data/node_modules/chai/lib/chai/core/assertions.js +1860 -0
- data/node_modules/chai/lib/chai/interface/assert.js +1645 -0
- data/node_modules/chai/lib/chai/interface/expect.js +34 -0
- data/node_modules/chai/lib/chai/interface/should.js +201 -0
- data/node_modules/chai/lib/chai/utils/addChainableMethod.js +112 -0
- data/node_modules/chai/lib/chai/utils/addMethod.js +44 -0
- data/node_modules/chai/lib/chai/utils/addProperty.js +48 -0
- data/node_modules/chai/lib/chai/utils/expectTypes.js +42 -0
- data/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/node_modules/chai/lib/chai/utils/getMessage.js +51 -0
- data/node_modules/chai/lib/chai/utils/getName.js +22 -0
- data/node_modules/chai/lib/chai/utils/getPathInfo.js +111 -0
- data/node_modules/chai/lib/chai/utils/getPathValue.js +43 -0
- data/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/node_modules/chai/lib/chai/utils/hasProperty.js +64 -0
- data/node_modules/chai/lib/chai/utils/index.js +130 -0
- data/node_modules/chai/lib/chai/utils/inspect.js +335 -0
- data/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +54 -0
- data/node_modules/chai/lib/chai/utils/overwriteMethod.js +52 -0
- data/node_modules/chai/lib/chai/utils/overwriteProperty.js +55 -0
- data/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/node_modules/chai/package.json +128 -0
- data/node_modules/chai/sauce.browsers.js +128 -0
- data/node_modules/chalk/index.js +116 -0
- data/node_modules/chalk/license +21 -0
- data/node_modules/chalk/package.json +140 -0
- data/node_modules/chalk/readme.md +213 -0
- data/node_modules/combined-stream/License +19 -0
- data/node_modules/combined-stream/Readme.md +138 -0
- data/node_modules/combined-stream/lib/combined_stream.js +188 -0
- data/node_modules/combined-stream/package.json +101 -0
- data/node_modules/commander/History.md +261 -0
- data/node_modules/commander/LICENSE +22 -0
- data/node_modules/commander/Readme.md +351 -0
- data/node_modules/commander/index.js +1110 -0
- data/node_modules/commander/package.json +104 -0
- data/node_modules/content-type-parser/LICENSE.txt +19 -0
- data/node_modules/content-type-parser/README.md +60 -0
- data/node_modules/content-type-parser/lib/content-type-parser.js +103 -0
- data/node_modules/content-type-parser/package.json +96 -0
- data/node_modules/cryptiles/.npmignore +18 -0
- data/node_modules/cryptiles/.travis.yml +8 -0
- data/node_modules/cryptiles/LICENSE +28 -0
- data/node_modules/cryptiles/README.md +16 -0
- data/node_modules/cryptiles/lib/index.js +68 -0
- data/node_modules/cryptiles/package.json +94 -0
- data/node_modules/cryptiles/test/index.js +102 -0
- data/node_modules/cssom/LICENSE.txt +20 -0
- data/node_modules/cssom/README.mdown +69 -0
- data/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- data/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- data/node_modules/cssom/lib/CSSImportRule.js +132 -0
- data/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- data/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- data/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- data/node_modules/cssom/lib/CSSRule.js +43 -0
- data/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- data/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- data/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- data/node_modules/cssom/lib/CSSValue.js +43 -0
- data/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- data/node_modules/cssom/lib/MatcherList.js +62 -0
- data/node_modules/cssom/lib/MediaList.js +61 -0
- data/node_modules/cssom/lib/StyleSheet.js +17 -0
- data/node_modules/cssom/lib/clone.js +76 -0
- data/node_modules/cssom/lib/index.js +19 -0
- data/node_modules/cssom/lib/parse.js +381 -0
- data/node_modules/cssom/package.json +96 -0
- data/node_modules/cssstyle/.npmignore +1 -0
- data/node_modules/cssstyle/MIT-LICENSE.txt +20 -0
- data/node_modules/cssstyle/README.md +27 -0
- data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +233 -0
- data/node_modules/cssstyle/lib/parsers.js +670 -0
- data/node_modules/cssstyle/lib/properties.js +5858 -0
- data/node_modules/cssstyle/lib/properties/alignmentBaseline.js +12 -0
- data/node_modules/cssstyle/lib/properties/azimuth.js +65 -0
- data/node_modules/cssstyle/lib/properties/background.js +24 -0
- data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +22 -0
- data/node_modules/cssstyle/lib/properties/backgroundClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundColor.js +33 -0
- data/node_modules/cssstyle/lib/properties/backgroundImage.js +29 -0
- data/node_modules/cssstyle/lib/properties/backgroundOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundPosition.js +56 -0
- data/node_modules/cssstyle/lib/properties/backgroundPositionX.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundPositionY.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +25 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeatX.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeatY.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/baselineShift.js +12 -0
- data/node_modules/cssstyle/lib/properties/border.js +49 -0
- data/node_modules/cssstyle/lib/properties/borderBottom.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderBottomColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderBottomLeftRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderBottomRightRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderCollapse.js +25 -0
- data/node_modules/cssstyle/lib/properties/borderColor.js +28 -0
- data/node_modules/cssstyle/lib/properties/borderImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageOutset.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageSlice.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageSource.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderLeft.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderLeftColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderRight.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderRightColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRightStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderRightWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderSpacing.js +42 -0
- data/node_modules/cssstyle/lib/properties/borderStyle.js +27 -0
- data/node_modules/cssstyle/lib/properties/borderTop.js +22 -0
- data/node_modules/cssstyle/lib/properties/borderTopColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderTopLeftRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderTopRightRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderTopStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderTopWidth.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderWidth.js +47 -0
- data/node_modules/cssstyle/lib/properties/bottom.js +14 -0
- data/node_modules/cssstyle/lib/properties/boxShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/boxSizing.js +12 -0
- data/node_modules/cssstyle/lib/properties/captionSide.js +12 -0
- data/node_modules/cssstyle/lib/properties/clear.js +16 -0
- data/node_modules/cssstyle/lib/properties/clip.js +49 -0
- data/node_modules/cssstyle/lib/properties/color.js +14 -0
- data/node_modules/cssstyle/lib/properties/colorInterpolation.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorInterpolationFilters.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorProfile.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/content.js +12 -0
- data/node_modules/cssstyle/lib/properties/counterIncrement.js +12 -0
- data/node_modules/cssstyle/lib/properties/counterReset.js +12 -0
- data/node_modules/cssstyle/lib/properties/cssFloat.js +12 -0
- data/node_modules/cssstyle/lib/properties/cue.js +12 -0
- data/node_modules/cssstyle/lib/properties/cueAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/cueBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/cursor.js +12 -0
- data/node_modules/cssstyle/lib/properties/direction.js +12 -0
- data/node_modules/cssstyle/lib/properties/display.js +12 -0
- data/node_modules/cssstyle/lib/properties/dominantBaseline.js +12 -0
- data/node_modules/cssstyle/lib/properties/elevation.js +12 -0
- data/node_modules/cssstyle/lib/properties/emptyCells.js +12 -0
- data/node_modules/cssstyle/lib/properties/enableBackground.js +12 -0
- data/node_modules/cssstyle/lib/properties/fill.js +12 -0
- data/node_modules/cssstyle/lib/properties/fillOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/fillRule.js +12 -0
- data/node_modules/cssstyle/lib/properties/filter.js +12 -0
- data/node_modules/cssstyle/lib/properties/floodColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/floodOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/font.js +40 -0
- data/node_modules/cssstyle/lib/properties/fontFamily.js +33 -0
- data/node_modules/cssstyle/lib/properties/fontSize.js +25 -0
- data/node_modules/cssstyle/lib/properties/fontSizeAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/fontStretch.js +12 -0
- data/node_modules/cssstyle/lib/properties/fontStyle.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontVariant.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontWeight.js +18 -0
- data/node_modules/cssstyle/lib/properties/glyphOrientationHorizontal.js +12 -0
- data/node_modules/cssstyle/lib/properties/glyphOrientationVertical.js +12 -0
- data/node_modules/cssstyle/lib/properties/height.js +24 -0
- data/node_modules/cssstyle/lib/properties/imageRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/kerning.js +12 -0
- data/node_modules/cssstyle/lib/properties/left.js +14 -0
- data/node_modules/cssstyle/lib/properties/letterSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/lightingColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/lineHeight.js +21 -0
- data/node_modules/cssstyle/lib/properties/listStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStyleImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStylePosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStyleType.js +12 -0
- data/node_modules/cssstyle/lib/properties/margin.js +59 -0
- data/node_modules/cssstyle/lib/properties/marginBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/marker.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerMid.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerOffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/marks.js +12 -0
- data/node_modules/cssstyle/lib/properties/mask.js +12 -0
- data/node_modules/cssstyle/lib/properties/maxHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/maxWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/minHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/minWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/opacity.js +14 -0
- data/node_modules/cssstyle/lib/properties/orphans.js +12 -0
- data/node_modules/cssstyle/lib/properties/outline.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/outlineOffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflowX.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflowY.js +12 -0
- data/node_modules/cssstyle/lib/properties/padding.js +52 -0
- data/node_modules/cssstyle/lib/properties/paddingBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/page.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/pause.js +12 -0
- data/node_modules/cssstyle/lib/properties/pauseAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/pauseBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/pitch.js +12 -0
- data/node_modules/cssstyle/lib/properties/pitchRange.js +12 -0
- data/node_modules/cssstyle/lib/properties/playDuring.js +12 -0
- data/node_modules/cssstyle/lib/properties/pointerEvents.js +12 -0
- data/node_modules/cssstyle/lib/properties/position.js +12 -0
- data/node_modules/cssstyle/lib/properties/quotes.js +12 -0
- data/node_modules/cssstyle/lib/properties/resize.js +12 -0
- data/node_modules/cssstyle/lib/properties/richness.js +12 -0
- data/node_modules/cssstyle/lib/properties/right.js +14 -0
- data/node_modules/cssstyle/lib/properties/shapeRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/size.js +12 -0
- data/node_modules/cssstyle/lib/properties/speak.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakHeader.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakNumeral.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakPunctuation.js +12 -0
- data/node_modules/cssstyle/lib/properties/speechRate.js +12 -0
- data/node_modules/cssstyle/lib/properties/src.js +12 -0
- data/node_modules/cssstyle/lib/properties/stopColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/stopOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/stress.js +12 -0
- data/node_modules/cssstyle/lib/properties/stroke.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeDasharray.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeDashoffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeLinecap.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeLinejoin.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeMiterlimit.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/tableLayout.js +12 -0
- data/node_modules/cssstyle/lib/properties/textAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/textAnchor.js +12 -0
- data/node_modules/cssstyle/lib/properties/textDecoration.js +12 -0
- data/node_modules/cssstyle/lib/properties/textIndent.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThrough.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverline.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textOverlineMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/textRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/textShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/textTransform.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderline.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/top.js +14 -0
- data/node_modules/cssstyle/lib/properties/unicodeBidi.js +12 -0
- data/node_modules/cssstyle/lib/properties/unicodeRange.js +12 -0
- data/node_modules/cssstyle/lib/properties/vectorEffect.js +12 -0
- data/node_modules/cssstyle/lib/properties/verticalAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/visibility.js +12 -0
- data/node_modules/cssstyle/lib/properties/voiceFamily.js +12 -0
- data/node_modules/cssstyle/lib/properties/volume.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimation.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDelay.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDuration.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationFillMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationIterationCount.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationName.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationPlayState.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationTimingFunction.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAppearance.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAspectRatio.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackfaceVisibility.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundComposite.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderFit.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderHorizontalSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderVerticalSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxFlex.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxFlexGroup.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxLines.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxOrdinalGroup.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxOrient.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxPack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxReflect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColorCorrection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnAxis.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnCount.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnGap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRule.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnSpan.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumns.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFilter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexFlow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexItemAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexLinePack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexOrder.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexPack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlowFrom.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlowInto.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontFeatureSettings.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontKerning.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontSizeDelta.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontSmoothing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontVariantLigatures.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHighlight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateCharacter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitLines.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphens.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineBoxContain.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineBreak.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineClamp.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineGrid.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineSnap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLocale.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginAfterCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBeforeCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBottomCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginTopCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarquee.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeIncrement.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeRepetition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeSpeed.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMask.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskAttachment.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageOutset.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSlice.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSource.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskComposite.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitNbspMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitOverflowScrolling.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspective.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPrintColorAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionOverflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRtlOrdering.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitSvgShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextCombine.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextDecorationsInEffect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasis.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisPosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextOrientation.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextSecurity.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextSizeAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStroke.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransform.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginZ.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionDelay.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionDuration.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionProperty.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionTimingFunction.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserDrag.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserModify.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserSelect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapFlow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapMargin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapPadding.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeOutside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapThrough.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWritingMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/whiteSpace.js +12 -0
- data/node_modules/cssstyle/lib/properties/widows.js +12 -0
- data/node_modules/cssstyle/lib/properties/width.js +24 -0
- data/node_modules/cssstyle/lib/properties/wordBreak.js +12 -0
- data/node_modules/cssstyle/lib/properties/wordSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/wordWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/writingMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/zIndex.js +12 -0
- data/node_modules/cssstyle/lib/properties/zoom.js +12 -0
- data/node_modules/cssstyle/package.json +109 -0
- data/node_modules/cssstyle/scripts/generate_properties.js +302 -0
- data/node_modules/cssstyle/scripts/run_tests.sh +4 -0
- data/node_modules/cssstyle/tests/tests.js +405 -0
- data/node_modules/dashdash/CHANGES.md +364 -0
- data/node_modules/dashdash/LICENSE.txt +24 -0
- data/node_modules/dashdash/README.md +574 -0
- data/node_modules/dashdash/etc/dashdash.bash_completion.in +389 -0
- data/node_modules/dashdash/lib/dashdash.js +1055 -0
- data/node_modules/dashdash/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/dashdash/node_modules/assert-plus/README.md +162 -0
- data/node_modules/dashdash/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/dashdash/node_modules/assert-plus/package.json +115 -0
- data/node_modules/dashdash/package.json +125 -0
- data/node_modules/deep-eql/.npmignore +11 -0
- data/node_modules/deep-eql/History.md +28 -0
- data/node_modules/deep-eql/README.md +52 -0
- data/node_modules/deep-eql/index.js +1 -0
- data/node_modules/deep-eql/karma.conf.js +20 -0
- data/node_modules/deep-eql/lib/eql.js +257 -0
- data/node_modules/deep-eql/node_modules/type-detect/.npmignore +11 -0
- data/node_modules/deep-eql/node_modules/type-detect/History.md +18 -0
- data/node_modules/deep-eql/node_modules/type-detect/README.md +193 -0
- data/node_modules/deep-eql/node_modules/type-detect/index.js +1 -0
- data/node_modules/deep-eql/node_modules/type-detect/lib/type.js +142 -0
- data/node_modules/deep-eql/node_modules/type-detect/package.json +91 -0
- data/node_modules/deep-eql/package.json +98 -0
- data/node_modules/deep-is/.npmignore +1 -0
- data/node_modules/deep-is/.travis.yml +6 -0
- data/node_modules/deep-is/LICENSE +22 -0
- data/node_modules/deep-is/README.markdown +70 -0
- data/node_modules/deep-is/example/cmp.js +11 -0
- data/node_modules/deep-is/index.js +102 -0
- data/node_modules/deep-is/package.json +120 -0
- data/node_modules/deep-is/test/NaN.js +16 -0
- data/node_modules/deep-is/test/cmp.js +23 -0
- data/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
- data/node_modules/delayed-stream/.npmignore +1 -0
- data/node_modules/delayed-stream/License +19 -0
- data/node_modules/delayed-stream/Makefile +7 -0
- data/node_modules/delayed-stream/Readme.md +141 -0
- data/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- data/node_modules/delayed-stream/package.json +97 -0
- data/node_modules/ecc-jsbn/.npmignore +15 -0
- data/node_modules/ecc-jsbn/LICENSE +21 -0
- data/node_modules/ecc-jsbn/README.md +8 -0
- data/node_modules/ecc-jsbn/index.js +57 -0
- data/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- data/node_modules/ecc-jsbn/lib/ec.js +561 -0
- data/node_modules/ecc-jsbn/lib/sec.js +170 -0
- data/node_modules/ecc-jsbn/package.json +90 -0
- data/node_modules/ecc-jsbn/test.js +14 -0
- data/node_modules/escape-string-regexp/index.js +11 -0
- data/node_modules/escape-string-regexp/license +21 -0
- data/node_modules/escape-string-regexp/package.json +109 -0
- data/node_modules/escape-string-regexp/readme.md +27 -0
- data/node_modules/escodegen/LICENSE.BSD +19 -0
- data/node_modules/escodegen/LICENSE.source-map +27 -0
- data/node_modules/escodegen/README.md +116 -0
- data/node_modules/escodegen/bin/escodegen.js +77 -0
- data/node_modules/escodegen/bin/esgenerate.js +64 -0
- data/node_modules/escodegen/escodegen.js +2607 -0
- data/node_modules/escodegen/package.json +122 -0
- data/node_modules/esprima/ChangeLog +174 -0
- data/node_modules/esprima/LICENSE.BSD +21 -0
- data/node_modules/esprima/README.md +27 -0
- data/node_modules/esprima/bin/esparse.js +126 -0
- data/node_modules/esprima/bin/esvalidate.js +199 -0
- data/node_modules/esprima/esprima.js +5740 -0
- data/node_modules/esprima/package.json +153 -0
- data/node_modules/estraverse/.editorconfig +10 -0
- data/node_modules/estraverse/.jshintrc +16 -0
- data/node_modules/estraverse/LICENSE.BSD +19 -0
- data/node_modules/estraverse/README.md +124 -0
- data/node_modules/estraverse/estraverse.js +845 -0
- data/node_modules/estraverse/gulpfile.js +70 -0
- data/node_modules/estraverse/package.json +95 -0
- data/node_modules/esutils/LICENSE.BSD +19 -0
- data/node_modules/esutils/README.md +169 -0
- data/node_modules/esutils/lib/ast.js +144 -0
- data/node_modules/esutils/lib/code.js +135 -0
- data/node_modules/esutils/lib/keyword.js +165 -0
- data/node_modules/esutils/lib/utils.js +33 -0
- data/node_modules/esutils/package.json +105 -0
- data/node_modules/extend/.eslintrc +192 -0
- data/node_modules/extend/.jscs.json +104 -0
- data/node_modules/extend/.npmignore +1 -0
- data/node_modules/extend/.travis.yml +44 -0
- data/node_modules/extend/CHANGELOG.md +69 -0
- data/node_modules/extend/LICENSE +23 -0
- data/node_modules/extend/README.md +62 -0
- data/node_modules/extend/component.json +32 -0
- data/node_modules/extend/index.js +86 -0
- data/node_modules/extend/package.json +106 -0
- data/node_modules/extsprintf/.gitmodules +6 -0
- data/node_modules/extsprintf/LICENSE +19 -0
- data/node_modules/extsprintf/Makefile +23 -0
- data/node_modules/extsprintf/Makefile.deps +39 -0
- data/node_modules/extsprintf/Makefile.targ +285 -0
- data/node_modules/extsprintf/README.md +39 -0
- data/node_modules/extsprintf/examples/simple.js +2 -0
- data/node_modules/extsprintf/jsl.node.conf +137 -0
- data/node_modules/extsprintf/lib/extsprintf.js +166 -0
- data/node_modules/extsprintf/package.json +74 -0
- data/node_modules/fast-levenshtein/LICENSE.md +25 -0
- data/node_modules/fast-levenshtein/README.md +104 -0
- data/node_modules/fast-levenshtein/levenshtein.js +102 -0
- data/node_modules/fast-levenshtein/package.json +108 -0
- data/node_modules/forever-agent/LICENSE +55 -0
- data/node_modules/forever-agent/README.md +4 -0
- data/node_modules/forever-agent/index.js +138 -0
- data/node_modules/forever-agent/package.json +88 -0
- data/node_modules/form-data/License +19 -0
- data/node_modules/form-data/README.md +217 -0
- data/node_modules/form-data/lib/browser.js +2 -0
- data/node_modules/form-data/lib/form_data.js +440 -0
- data/node_modules/form-data/lib/populate.js +10 -0
- data/node_modules/form-data/package.json +145 -0
- data/node_modules/generate-function/.npmignore +1 -0
- data/node_modules/generate-function/.travis.yml +3 -0
- data/node_modules/generate-function/README.md +72 -0
- data/node_modules/generate-function/example.js +27 -0
- data/node_modules/generate-function/index.js +61 -0
- data/node_modules/generate-function/package.json +87 -0
- data/node_modules/generate-function/test.js +33 -0
- data/node_modules/generate-object-property/.npmignore +1 -0
- data/node_modules/generate-object-property/.travis.yml +3 -0
- data/node_modules/generate-object-property/LICENSE +21 -0
- data/node_modules/generate-object-property/README.md +19 -0
- data/node_modules/generate-object-property/index.js +12 -0
- data/node_modules/generate-object-property/package.json +84 -0
- data/node_modules/generate-object-property/test.js +12 -0
- data/node_modules/getpass/.npmignore +8 -0
- data/node_modules/getpass/.travis.yml +9 -0
- data/node_modules/getpass/LICENSE +18 -0
- data/node_modules/getpass/README.md +32 -0
- data/node_modules/getpass/lib/index.js +123 -0
- data/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
- data/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/getpass/node_modules/assert-plus/package.json +115 -0
- data/node_modules/getpass/package.json +90 -0
- data/node_modules/graceful-readlink/.npmignore +3 -0
- data/node_modules/graceful-readlink/.travis.yml +5 -0
- data/node_modules/graceful-readlink/LICENSE +22 -0
- data/node_modules/graceful-readlink/README.md +17 -0
- data/node_modules/graceful-readlink/index.js +12 -0
- data/node_modules/graceful-readlink/package.json +83 -0
- data/node_modules/har-validator/LICENSE +13 -0
- data/node_modules/har-validator/README.md +309 -0
- data/node_modules/har-validator/bin/har-validator +56 -0
- data/node_modules/har-validator/lib/async.js +14 -0
- data/node_modules/har-validator/lib/error.js +10 -0
- data/node_modules/har-validator/lib/index.js +22 -0
- data/node_modules/har-validator/lib/runner.js +29 -0
- data/node_modules/har-validator/lib/schemas/cache.json +13 -0
- data/node_modules/har-validator/lib/schemas/cacheEntry.json +31 -0
- data/node_modules/har-validator/lib/schemas/content.json +27 -0
- data/node_modules/har-validator/lib/schemas/cookie.json +34 -0
- data/node_modules/har-validator/lib/schemas/creator.json +18 -0
- data/node_modules/har-validator/lib/schemas/entry.json +51 -0
- data/node_modules/har-validator/lib/schemas/har.json +11 -0
- data/node_modules/har-validator/lib/schemas/index.js +49 -0
- data/node_modules/har-validator/lib/schemas/log.json +34 -0
- data/node_modules/har-validator/lib/schemas/page.json +30 -0
- data/node_modules/har-validator/lib/schemas/pageTimings.json +16 -0
- data/node_modules/har-validator/lib/schemas/postData.json +41 -0
- data/node_modules/har-validator/lib/schemas/record.json +18 -0
- data/node_modules/har-validator/lib/schemas/request.json +55 -0
- data/node_modules/har-validator/lib/schemas/response.json +52 -0
- data/node_modules/har-validator/lib/schemas/timings.json +40 -0
- data/node_modules/har-validator/package.json +120 -0
- data/node_modules/has-ansi/index.js +4 -0
- data/node_modules/has-ansi/license +21 -0
- data/node_modules/has-ansi/package.json +118 -0
- data/node_modules/has-ansi/readme.md +36 -0
- data/node_modules/hawk/.npmignore +20 -0
- data/node_modules/hawk/.travis.yml +5 -0
- data/node_modules/hawk/LICENSE +28 -0
- data/node_modules/hawk/README.md +634 -0
- data/node_modules/hawk/bower.json +24 -0
- data/node_modules/hawk/component.json +19 -0
- data/node_modules/hawk/dist/client.js +343 -0
- data/node_modules/hawk/example/usage.js +78 -0
- data/node_modules/hawk/images/hawk.png +0 -0
- data/node_modules/hawk/images/logo.png +0 -0
- data/node_modules/hawk/lib/browser.js +637 -0
- data/node_modules/hawk/lib/client.js +369 -0
- data/node_modules/hawk/lib/crypto.js +126 -0
- data/node_modules/hawk/lib/index.js +15 -0
- data/node_modules/hawk/lib/server.js +548 -0
- data/node_modules/hawk/lib/utils.js +184 -0
- data/node_modules/hawk/package.json +101 -0
- data/node_modules/hawk/test/browser.js +1492 -0
- data/node_modules/hawk/test/client.js +440 -0
- data/node_modules/hawk/test/crypto.js +70 -0
- data/node_modules/hawk/test/index.js +378 -0
- data/node_modules/hawk/test/readme.js +95 -0
- data/node_modules/hawk/test/server.js +1329 -0
- data/node_modules/hawk/test/uri.js +838 -0
- data/node_modules/hawk/test/utils.js +149 -0
- data/node_modules/hoek/.npmignore +18 -0
- data/node_modules/hoek/.travis.yml +7 -0
- data/node_modules/hoek/CONTRIBUTING.md +1 -0
- data/node_modules/hoek/LICENSE +31 -0
- data/node_modules/hoek/README.md +584 -0
- data/node_modules/hoek/images/hoek.png +0 -0
- data/node_modules/hoek/lib/escape.js +132 -0
- data/node_modules/hoek/lib/index.js +993 -0
- data/node_modules/hoek/package.json +96 -0
- data/node_modules/hoek/test/escaper.js +88 -0
- data/node_modules/hoek/test/index.js +2513 -0
- data/node_modules/hoek/test/modules/ignore.txt +0 -0
- data/node_modules/hoek/test/modules/test1.js +1 -0
- data/node_modules/hoek/test/modules/test2.js +1 -0
- data/node_modules/hoek/test/modules/test3.js +1 -0
- data/node_modules/html-encoding-sniffer/LICENSE.txt +19 -0
- data/node_modules/html-encoding-sniffer/README.md +38 -0
- data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +302 -0
- data/node_modules/html-encoding-sniffer/package.json +98 -0
- data/node_modules/http-signature/.dir-locals.el +6 -0
- data/node_modules/http-signature/.npmignore +7 -0
- data/node_modules/http-signature/CHANGES.md +46 -0
- data/node_modules/http-signature/LICENSE +18 -0
- data/node_modules/http-signature/README.md +79 -0
- data/node_modules/http-signature/http_signing.md +363 -0
- data/node_modules/http-signature/lib/index.js +29 -0
- data/node_modules/http-signature/lib/parser.js +318 -0
- data/node_modules/http-signature/lib/signer.js +399 -0
- data/node_modules/http-signature/lib/utils.js +112 -0
- data/node_modules/http-signature/lib/verify.js +88 -0
- data/node_modules/http-signature/package.json +116 -0
- data/node_modules/iconv-lite/.npmignore +6 -0
- data/node_modules/iconv-lite/.travis.yml +22 -0
- data/node_modules/iconv-lite/Changelog.md +108 -0
- data/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/iconv-lite/README.md +159 -0
- data/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
- data/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- data/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/iconv-lite/encodings/internal.js +187 -0
- data/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
- data/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/iconv-lite/encodings/utf16.js +176 -0
- data/node_modules/iconv-lite/encodings/utf7.js +289 -0
- data/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/iconv-lite/lib/extend-node.js +214 -0
- data/node_modules/iconv-lite/lib/index.d.ts +31 -0
- data/node_modules/iconv-lite/lib/index.js +141 -0
- data/node_modules/iconv-lite/lib/streams.js +120 -0
- data/node_modules/iconv-lite/package.json +158 -0
- data/node_modules/is-my-json-valid/.npmignore +2 -0
- data/node_modules/is-my-json-valid/.travis.yml +3 -0
- data/node_modules/is-my-json-valid/LICENSE +21 -0
- data/node_modules/is-my-json-valid/README.md +173 -0
- data/node_modules/is-my-json-valid/example.js +18 -0
- data/node_modules/is-my-json-valid/formats.js +14 -0
- data/node_modules/is-my-json-valid/index.js +594 -0
- data/node_modules/is-my-json-valid/package.json +116 -0
- data/node_modules/is-my-json-valid/require.js +12 -0
- data/node_modules/is-my-json-valid/test/fixtures/cosmic.js +84 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json +82 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json +88 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json +112 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json +68 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json +107 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/default.json +49 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json +32 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json +113 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json +72 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/format.json +143 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/items.json +46 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json +42 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json +42 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +96 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/not.json +96 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json +18 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json +18 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json +68 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json +23 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json +110 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json +92 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json +128 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json +74 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/required.json +39 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/type.json +330 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json +79 -0
- data/node_modules/is-my-json-valid/test/json-schema.js +23 -0
- data/node_modules/is-my-json-valid/test/misc.js +471 -0
- data/node_modules/is-property/.npmignore +17 -0
- data/node_modules/is-property/LICENSE +22 -0
- data/node_modules/is-property/README.md +28 -0
- data/node_modules/is-property/is-property.js +5 -0
- data/node_modules/is-property/package.json +92 -0
- data/node_modules/is-typedarray/LICENSE.md +18 -0
- data/node_modules/is-typedarray/README.md +16 -0
- data/node_modules/is-typedarray/index.js +41 -0
- data/node_modules/is-typedarray/package.json +90 -0
- data/node_modules/is-typedarray/test.js +34 -0
- data/node_modules/isstream/.jshintrc +59 -0
- data/node_modules/isstream/.npmignore +1 -0
- data/node_modules/isstream/.travis.yml +12 -0
- data/node_modules/isstream/LICENSE.md +11 -0
- data/node_modules/isstream/README.md +66 -0
- data/node_modules/isstream/isstream.js +27 -0
- data/node_modules/isstream/package.json +93 -0
- data/node_modules/isstream/test.js +168 -0
- data/node_modules/jodid25519/.npmignore +11 -0
- data/node_modules/jodid25519/.travis.yml +7 -0
- data/node_modules/jodid25519/AUTHORS.md +3 -0
- data/node_modules/jodid25519/LICENSE +23 -0
- data/node_modules/jodid25519/README.md +51 -0
- data/node_modules/jodid25519/almond.0 +42 -0
- data/node_modules/jodid25519/almond.1 +13 -0
- data/node_modules/jodid25519/index.js +35 -0
- data/node_modules/jodid25519/jsdoc.json +19 -0
- data/node_modules/jodid25519/lib/core.js +481 -0
- data/node_modules/jodid25519/lib/curve255.js +221 -0
- data/node_modules/jodid25519/lib/dh.js +111 -0
- data/node_modules/jodid25519/lib/eddsa.js +573 -0
- data/node_modules/jodid25519/lib/utils.js +198 -0
- data/node_modules/jodid25519/package.json +104 -0
- data/node_modules/jquery/AUTHORS.txt +295 -0
- data/node_modules/jquery/LICENSE.txt +36 -0
- data/node_modules/jquery/README.md +65 -0
- data/node_modules/jquery/bower.json +14 -0
- data/node_modules/jquery/dist/core.js +482 -0
- data/node_modules/jquery/dist/jquery.js +10220 -0
- data/node_modules/jquery/dist/jquery.min.js +4 -0
- data/node_modules/jquery/dist/jquery.min.map +1 -0
- data/node_modules/jquery/dist/jquery.slim.js +8107 -0
- data/node_modules/jquery/dist/jquery.slim.min.js +4 -0
- data/node_modules/jquery/dist/jquery.slim.min.map +1 -0
- data/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +2272 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/node_modules/jquery/package.json +169 -0
- data/node_modules/jquery/src/.eslintrc.json +18 -0
- data/node_modules/jquery/src/ajax.js +855 -0
- data/node_modules/jquery/src/ajax/jsonp.js +102 -0
- data/node_modules/jquery/src/ajax/load.js +76 -0
- data/node_modules/jquery/src/ajax/parseXML.js +30 -0
- data/node_modules/jquery/src/ajax/script.js +77 -0
- data/node_modules/jquery/src/ajax/var/location.js +5 -0
- data/node_modules/jquery/src/ajax/var/nonce.js +7 -0
- data/node_modules/jquery/src/ajax/var/rquery.js +5 -0
- data/node_modules/jquery/src/ajax/xhr.js +169 -0
- data/node_modules/jquery/src/attributes.js +13 -0
- data/node_modules/jquery/src/attributes/attr.js +140 -0
- data/node_modules/jquery/src/attributes/classes.js +174 -0
- data/node_modules/jquery/src/attributes/prop.js +143 -0
- data/node_modules/jquery/src/attributes/support.js +33 -0
- data/node_modules/jquery/src/attributes/val.js +188 -0
- data/node_modules/jquery/src/callbacks.js +234 -0
- data/node_modules/jquery/src/core.js +482 -0
- data/node_modules/jquery/src/core/DOMEval.js +16 -0
- data/node_modules/jquery/src/core/access.js +70 -0
- data/node_modules/jquery/src/core/init.js +127 -0
- data/node_modules/jquery/src/core/parseHTML.js +65 -0
- data/node_modules/jquery/src/core/ready-no-deferred.js +105 -0
- data/node_modules/jquery/src/core/ready.js +95 -0
- data/node_modules/jquery/src/core/readyException.js +13 -0
- data/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
- data/node_modules/jquery/src/core/support.js +20 -0
- data/node_modules/jquery/src/core/var/rsingleTag.js +6 -0
- data/node_modules/jquery/src/css.js +426 -0
- data/node_modules/jquery/src/css/addGetHookIf.js +26 -0
- data/node_modules/jquery/src/css/adjustCSS.js +71 -0
- data/node_modules/jquery/src/css/curCSS.js +59 -0
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/node_modules/jquery/src/css/showHide.js +105 -0
- data/node_modules/jquery/src/css/support.js +89 -0
- data/node_modules/jquery/src/css/var/cssExpand.js +5 -0
- data/node_modules/jquery/src/css/var/getStyles.js +17 -0
- data/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/node_modules/jquery/src/css/var/rmargin.js +5 -0
- data/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
- data/node_modules/jquery/src/css/var/swap.js +26 -0
- data/node_modules/jquery/src/data.js +179 -0
- data/node_modules/jquery/src/data/Data.js +161 -0
- data/node_modules/jquery/src/data/var/acceptData.js +19 -0
- data/node_modules/jquery/src/data/var/dataPriv.js +7 -0
- data/node_modules/jquery/src/data/var/dataUser.js +7 -0
- data/node_modules/jquery/src/deferred.js +389 -0
- data/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
- data/node_modules/jquery/src/deprecated.js +30 -0
- data/node_modules/jquery/src/dimensions.js +56 -0
- data/node_modules/jquery/src/effects.js +693 -0
- data/node_modules/jquery/src/effects/Tween.js +123 -0
- data/node_modules/jquery/src/effects/animatedSelector.js +15 -0
- data/node_modules/jquery/src/event.js +745 -0
- data/node_modules/jquery/src/event/ajax.js +22 -0
- data/node_modules/jquery/src/event/alias.js +29 -0
- data/node_modules/jquery/src/event/focusin.js +55 -0
- data/node_modules/jquery/src/event/support.js +11 -0
- data/node_modules/jquery/src/event/trigger.js +185 -0
- data/node_modules/jquery/src/exports/amd.js +26 -0
- data/node_modules/jquery/src/exports/global.js +34 -0
- data/node_modules/jquery/src/jquery.js +41 -0
- data/node_modules/jquery/src/manipulation.js +486 -0
- data/node_modules/jquery/src/manipulation/_evalUrl.js +23 -0
- data/node_modules/jquery/src/manipulation/buildFragment.js +104 -0
- data/node_modules/jquery/src/manipulation/getAll.js +31 -0
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/node_modules/jquery/src/manipulation/support.js +35 -0
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rtagName.js +5 -0
- data/node_modules/jquery/src/manipulation/wrapMap.js +29 -0
- data/node_modules/jquery/src/offset.js +232 -0
- data/node_modules/jquery/src/queue.js +145 -0
- data/node_modules/jquery/src/queue/delay.js +24 -0
- data/node_modules/jquery/src/selector-native.js +237 -0
- data/node_modules/jquery/src/selector-sizzle.js +19 -0
- data/node_modules/jquery/src/selector.js +3 -0
- data/node_modules/jquery/src/serialize.js +130 -0
- data/node_modules/jquery/src/traversing.js +178 -0
- data/node_modules/jquery/src/traversing/findFilter.js +106 -0
- data/node_modules/jquery/src/traversing/var/dir.js +22 -0
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/node_modules/jquery/src/traversing/var/siblings.js +17 -0
- data/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
- data/node_modules/jquery/src/var/arr.js +5 -0
- data/node_modules/jquery/src/var/class2type.js +6 -0
- data/node_modules/jquery/src/var/concat.js +7 -0
- data/node_modules/jquery/src/var/document.js +5 -0
- data/node_modules/jquery/src/var/documentElement.js +7 -0
- data/node_modules/jquery/src/var/fnToString.js +7 -0
- data/node_modules/jquery/src/var/getProto.js +5 -0
- data/node_modules/jquery/src/var/hasOwn.js +7 -0
- data/node_modules/jquery/src/var/indexOf.js +7 -0
- data/node_modules/jquery/src/var/pnum.js +5 -0
- data/node_modules/jquery/src/var/push.js +7 -0
- data/node_modules/jquery/src/var/rcssNum.js +9 -0
- data/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
- data/node_modules/jquery/src/var/slice.js +7 -0
- data/node_modules/jquery/src/var/support.js +6 -0
- data/node_modules/jquery/src/var/toString.js +7 -0
- data/node_modules/jquery/src/wrap.js +77 -0
- data/node_modules/jsbn/.npmignore +2 -0
- data/node_modules/jsbn/LICENSE +40 -0
- data/node_modules/jsbn/README.md +175 -0
- data/node_modules/jsbn/example.html +12 -0
- data/node_modules/jsbn/example.js +3 -0
- data/node_modules/jsbn/index.js +1358 -0
- data/node_modules/jsbn/package.json +87 -0
- data/node_modules/jsdom-global/.npmignore +1 -0
- data/node_modules/jsdom-global/.travis.yml +6 -0
- data/node_modules/jsdom-global/HISTORY.md +85 -0
- data/node_modules/jsdom-global/README.md +137 -0
- data/node_modules/jsdom-global/browser.js +10 -0
- data/node_modules/jsdom-global/index.js +46 -0
- data/node_modules/jsdom-global/keys.js +187 -0
- data/node_modules/jsdom-global/package.json +95 -0
- data/node_modules/jsdom-global/register.js +1 -0
- data/node_modules/jsdom-global/test.js +22 -0
- data/node_modules/jsdom/Changelog.md +1254 -0
- data/node_modules/jsdom/LICENSE.txt +22 -0
- data/node_modules/jsdom/README.md +592 -0
- data/node_modules/jsdom/lib/jsdom.js +456 -0
- data/node_modules/jsdom/lib/jsdom/browser/Window.js +502 -0
- data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +1129 -0
- data/node_modules/jsdom/lib/jsdom/browser/documentAdapter.js +73 -0
- data/node_modules/jsdom/lib/jsdom/browser/documentfeatures.js +47 -0
- data/node_modules/jsdom/lib/jsdom/browser/domtohtml.js +19 -0
- data/node_modules/jsdom/lib/jsdom/browser/htmltodom.js +323 -0
- data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
- data/node_modules/jsdom/lib/jsdom/browser/resource-loader.js +275 -0
- data/node_modules/jsdom/lib/jsdom/level2/style.js +69 -0
- data/node_modules/jsdom/lib/jsdom/level3/xpath.js +1874 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes.js +468 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +87 -0
- data/node_modules/jsdom/lib/jsdom/living/blob-symbols.js +6 -0
- data/node_modules/jsdom/lib/jsdom/living/blob.js +73 -0
- data/node_modules/jsdom/lib/jsdom/living/dom-token-list.js +222 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +61 -0
- data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +77 -0
- data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +303 -0
- data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +19 -0
- data/node_modules/jsdom/lib/jsdom/living/file-reader.js +133 -0
- data/node_modules/jsdom/lib/jsdom/living/file-symbols.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/file.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/filelist-symbols.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/filelist.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/form-data-symbols.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/.gitkeep +0 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +169 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ChildNode.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +143 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +97 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +712 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +110 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +552 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementCSSInlineStyle.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementContentEditable.js +77 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +137 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +251 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +104 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +179 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/GlobalEventHandlers.js +770 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +228 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAppletElement.js +225 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +167 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +107 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +181 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +205 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +159 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +119 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +121 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +211 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +203 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +112 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +150 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHyperlinkElementUtils.js +205 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +278 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +326 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +583 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +206 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +505 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +124 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +309 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +111 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +178 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +204 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +260 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +245 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +161 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableDataCellElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +357 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableHeaderCellElement.js +121 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +202 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +173 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +415 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +94 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +193 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +111 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +113 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/History.js +179 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +269 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/LinkStyle.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +227 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +234 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +96 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorConcurrentHardware.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorCookies.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorID.js +149 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorLanguage.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorOnLine.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorPlugins.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +512 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NonDocumentTypeChildNode.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NonElementParentNode.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ParentNode.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +105 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +107 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Window.js +1 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/WindowEventHandlers.js +242 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +53 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +74 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set-parser.js +5 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/proxied-window-event-handlers.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +68 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +51 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +62 -0
- data/node_modules/jsdom/lib/jsdom/living/html-collection.js +109 -0
- data/node_modules/jsdom/lib/jsdom/living/index.js +57 -0
- data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +24 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
- data/node_modules/jsdom/lib/jsdom/living/node-filter.js +47 -0
- data/node_modules/jsdom/lib/jsdom/living/node-iterator.js +232 -0
- data/node_modules/jsdom/lib/jsdom/living/node-list.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/node.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +176 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +777 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +491 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +25 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAppletElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +58 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +144 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +181 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +275 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +396 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +72 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +76 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +35 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +174 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +33 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableDataCellElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +148 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableHeaderCellElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +70 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +54 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +33 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +184 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +475 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +48 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/post-message.js +36 -0
- data/node_modules/jsdom/lib/jsdom/living/register-elements.js +306 -0
- data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +257 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +145 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History.idl +12 -0
- data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +235 -0
- data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr-sync-worker.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr-utils.js +327 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +182 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-event-target.js +23 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-symbols.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-upload.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js +1016 -0
- data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +156 -0
- data/node_modules/jsdom/lib/jsdom/utils.js +242 -0
- data/node_modules/jsdom/lib/jsdom/virtual-console.js +34 -0
- data/node_modules/jsdom/lib/jsdom/vm-shim.js +106 -0
- data/node_modules/jsdom/lib/jsdom/web-idl/DOMException.js +41 -0
- data/node_modules/jsdom/lib/jsdom/web-idl/dom-exception-table.json +134 -0
- data/node_modules/jsdom/node_modules/request/CHANGELOG.md +662 -0
- data/node_modules/jsdom/node_modules/request/LICENSE +55 -0
- data/node_modules/jsdom/node_modules/request/README.md +1098 -0
- data/node_modules/jsdom/node_modules/request/index.js +156 -0
- data/node_modules/jsdom/node_modules/request/lib/auth.js +168 -0
- data/node_modules/jsdom/node_modules/request/lib/cookies.js +39 -0
- data/node_modules/jsdom/node_modules/request/lib/getProxyFromURI.js +79 -0
- data/node_modules/jsdom/node_modules/request/lib/har.js +215 -0
- data/node_modules/jsdom/node_modules/request/lib/helpers.js +65 -0
- data/node_modules/jsdom/node_modules/request/lib/multipart.js +112 -0
- data/node_modules/jsdom/node_modules/request/lib/oauth.js +147 -0
- data/node_modules/jsdom/node_modules/request/lib/querystring.js +51 -0
- data/node_modules/jsdom/node_modules/request/lib/redirect.js +157 -0
- data/node_modules/jsdom/node_modules/request/lib/tunnel.js +176 -0
- data/node_modules/jsdom/node_modules/request/package.json +163 -0
- data/node_modules/jsdom/node_modules/request/request.js +1475 -0
- data/node_modules/jsdom/package.json +184 -0
- data/node_modules/json-schema/README.md +5 -0
- data/node_modules/json-schema/draft-00/hyper-schema +68 -0
- data/node_modules/json-schema/draft-00/json-ref +26 -0
- data/node_modules/json-schema/draft-00/links +33 -0
- data/node_modules/json-schema/draft-00/schema +155 -0
- data/node_modules/json-schema/draft-01/hyper-schema +68 -0
- data/node_modules/json-schema/draft-01/json-ref +26 -0
- data/node_modules/json-schema/draft-01/links +33 -0
- data/node_modules/json-schema/draft-01/schema +155 -0
- data/node_modules/json-schema/draft-02/hyper-schema +68 -0
- data/node_modules/json-schema/draft-02/json-ref +26 -0
- data/node_modules/json-schema/draft-02/links +35 -0
- data/node_modules/json-schema/draft-02/schema +166 -0
- data/node_modules/json-schema/draft-03/examples/address +20 -0
- data/node_modules/json-schema/draft-03/examples/calendar +53 -0
- data/node_modules/json-schema/draft-03/examples/card +105 -0
- data/node_modules/json-schema/draft-03/examples/geo +8 -0
- data/node_modules/json-schema/draft-03/examples/interfaces +23 -0
- data/node_modules/json-schema/draft-03/hyper-schema +60 -0
- data/node_modules/json-schema/draft-03/json-ref +26 -0
- data/node_modules/json-schema/draft-03/links +35 -0
- data/node_modules/json-schema/draft-03/schema +174 -0
- data/node_modules/json-schema/draft-04/hyper-schema +60 -0
- data/node_modules/json-schema/draft-04/links +41 -0
- data/node_modules/json-schema/draft-04/schema +189 -0
- data/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
- data/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
- data/node_modules/json-schema/lib/links.js +66 -0
- data/node_modules/json-schema/lib/validate.js +273 -0
- data/node_modules/json-schema/package.json +100 -0
- data/node_modules/json-schema/test/tests.js +95 -0
- data/node_modules/json-stringify-safe/.npmignore +1 -0
- data/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
- data/node_modules/json-stringify-safe/LICENSE +15 -0
- data/node_modules/json-stringify-safe/Makefile +35 -0
- data/node_modules/json-stringify-safe/README.md +52 -0
- data/node_modules/json-stringify-safe/package.json +102 -0
- data/node_modules/json-stringify-safe/stringify.js +27 -0
- data/node_modules/json-stringify-safe/test/mocha.opts +2 -0
- data/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
- data/node_modules/jsonpointer/.travis.yml +7 -0
- data/node_modules/jsonpointer/LICENSE.md +21 -0
- data/node_modules/jsonpointer/README.md +39 -0
- data/node_modules/jsonpointer/benchmark.js +56 -0
- data/node_modules/jsonpointer/jsonpointer.js +93 -0
- data/node_modules/jsonpointer/package.json +109 -0
- data/node_modules/jsonpointer/test.js +131 -0
- data/node_modules/jsprim/CHANGES.md +39 -0
- data/node_modules/jsprim/LICENSE +19 -0
- data/node_modules/jsprim/README.md +237 -0
- data/node_modules/jsprim/lib/jsprim.js +488 -0
- data/node_modules/jsprim/package.json +85 -0
- data/node_modules/levn/LICENSE +22 -0
- data/node_modules/levn/README.md +196 -0
- data/node_modules/levn/lib/cast.js +298 -0
- data/node_modules/levn/lib/coerce.js +285 -0
- data/node_modules/levn/lib/index.js +22 -0
- data/node_modules/levn/lib/parse-string.js +113 -0
- data/node_modules/levn/lib/parse.js +102 -0
- data/node_modules/levn/package.json +108 -0
- data/node_modules/mime-db/HISTORY.md +375 -0
- data/node_modules/mime-db/LICENSE +22 -0
- data/node_modules/mime-db/README.md +82 -0
- data/node_modules/mime-db/db.json +6712 -0
- data/node_modules/mime-db/index.js +11 -0
- data/node_modules/mime-db/package.json +137 -0
- data/node_modules/mime-types/HISTORY.md +210 -0
- data/node_modules/mime-types/LICENSE +23 -0
- data/node_modules/mime-types/README.md +103 -0
- data/node_modules/mime-types/index.js +188 -0
- data/node_modules/mime-types/package.json +127 -0
- data/node_modules/nwmatcher/LICENSE +22 -0
- data/node_modules/nwmatcher/README.md +107 -0
- data/node_modules/nwmatcher/package.json +99 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-cache.js +187 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-jquery.js +126 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-pseudos.js +273 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-shortcuts.js +35 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-traversal.js +90 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-webforms.js +104 -0
- data/node_modules/nwmatcher/src/nwmatcher-base.js +785 -0
- data/node_modules/nwmatcher/src/nwmatcher-noqsa.js +962 -0
- data/node_modules/nwmatcher/src/nwmatcher.js +1780 -0
- data/node_modules/oauth-sign/LICENSE +55 -0
- data/node_modules/oauth-sign/README.md +4 -0
- data/node_modules/oauth-sign/index.js +136 -0
- data/node_modules/oauth-sign/package.json +98 -0
- data/node_modules/optionator/CHANGELOG.md +52 -0
- data/node_modules/optionator/LICENSE +22 -0
- data/node_modules/optionator/README.md +236 -0
- data/node_modules/optionator/lib/help.js +247 -0
- data/node_modules/optionator/lib/index.js +465 -0
- data/node_modules/optionator/lib/util.js +54 -0
- data/node_modules/optionator/package.json +109 -0
- data/node_modules/parse5/CHANGELOG.md +69 -0
- data/node_modules/parse5/LICENSE +19 -0
- data/node_modules/parse5/README.md +247 -0
- data/node_modules/parse5/docs/build/index.md +963 -0
- data/node_modules/parse5/index.js +12 -0
- data/node_modules/parse5/lib/common/doctype.js +134 -0
- data/node_modules/parse5/lib/common/foreign_content.js +257 -0
- data/node_modules/parse5/lib/common/html.js +268 -0
- data/node_modules/parse5/lib/common/unicode.js +48 -0
- data/node_modules/parse5/lib/common/utils.js +13 -0
- data/node_modules/parse5/lib/jsdom/jsdom_parser.js +39 -0
- data/node_modules/parse5/lib/jsdom/parsing_unit.js +53 -0
- data/node_modules/parse5/lib/serialization/serializer.js +178 -0
- data/node_modules/parse5/lib/simple_api/simple_api_parser.js +107 -0
- data/node_modules/parse5/lib/simple_api/tokenizer_proxy.js +122 -0
- data/node_modules/parse5/lib/tokenization/location_info_mixin.js +80 -0
- data/node_modules/parse5/lib/tokenization/named_entity_trie.js +6 -0
- data/node_modules/parse5/lib/tokenization/preprocessor.js +115 -0
- data/node_modules/parse5/lib/tokenization/tokenizer.js +2317 -0
- data/node_modules/parse5/lib/tree_adapters/default.js +200 -0
- data/node_modules/parse5/lib/tree_adapters/htmlparser2.js +317 -0
- data/node_modules/parse5/lib/tree_construction/formatting_element_list.js +167 -0
- data/node_modules/parse5/lib/tree_construction/location_info_mixin.js +197 -0
- data/node_modules/parse5/lib/tree_construction/open_element_stack.js +379 -0
- data/node_modules/parse5/lib/tree_construction/parser.js +2827 -0
- data/node_modules/parse5/package.json +125 -0
- data/node_modules/pinkie-promise/index.js +3 -0
- data/node_modules/pinkie-promise/license +21 -0
- data/node_modules/pinkie-promise/package.json +102 -0
- data/node_modules/pinkie-promise/readme.md +28 -0
- data/node_modules/pinkie/index.js +292 -0
- data/node_modules/pinkie/license +21 -0
- data/node_modules/pinkie/package.json +100 -0
- data/node_modules/pinkie/readme.md +83 -0
- data/node_modules/prelude-ls/CHANGELOG.md +99 -0
- data/node_modules/prelude-ls/LICENSE +22 -0
- data/node_modules/prelude-ls/README.md +15 -0
- data/node_modules/prelude-ls/lib/Func.js +65 -0
- data/node_modules/prelude-ls/lib/List.js +686 -0
- data/node_modules/prelude-ls/lib/Num.js +130 -0
- data/node_modules/prelude-ls/lib/Obj.js +154 -0
- data/node_modules/prelude-ls/lib/Str.js +92 -0
- data/node_modules/prelude-ls/lib/index.js +178 -0
- data/node_modules/prelude-ls/package.json +116 -0
- data/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/punycode/README.md +176 -0
- data/node_modules/punycode/package.json +127 -0
- data/node_modules/punycode/punycode.js +533 -0
- data/node_modules/qs/.eslintignore +1 -0
- data/node_modules/qs/.eslintrc +19 -0
- data/node_modules/qs/CHANGELOG.md +144 -0
- data/node_modules/qs/CONTRIBUTING.md +1 -0
- data/node_modules/qs/LICENSE +28 -0
- data/node_modules/qs/README.md +398 -0
- data/node_modules/qs/dist/qs.js +574 -0
- data/node_modules/qs/lib/formats.js +18 -0
- data/node_modules/qs/lib/index.js +11 -0
- data/node_modules/qs/lib/parse.js +166 -0
- data/node_modules/qs/lib/stringify.js +187 -0
- data/node_modules/qs/lib/utils.js +180 -0
- data/node_modules/qs/package.json +121 -0
- data/node_modules/qs/test/.eslintrc +9 -0
- data/node_modules/qs/test/index.js +7 -0
- data/node_modules/qs/test/parse.js +459 -0
- data/node_modules/qs/test/stringify.js +538 -0
- data/node_modules/qs/test/utils.js +22 -0
- data/node_modules/sax/LICENSE +41 -0
- data/node_modules/sax/LICENSE-W3C.html +188 -0
- data/node_modules/sax/README.md +225 -0
- data/node_modules/sax/lib/sax.js +1576 -0
- data/node_modules/sax/package.json +133 -0
- data/node_modules/sntp/.npmignore +18 -0
- data/node_modules/sntp/.travis.yml +5 -0
- data/node_modules/sntp/LICENSE +28 -0
- data/node_modules/sntp/Makefile +9 -0
- data/node_modules/sntp/README.md +68 -0
- data/node_modules/sntp/examples/offset.js +16 -0
- data/node_modules/sntp/examples/time.js +25 -0
- data/node_modules/sntp/index.js +1 -0
- data/node_modules/sntp/lib/index.js +412 -0
- data/node_modules/sntp/package.json +98 -0
- data/node_modules/sntp/test/index.js +435 -0
- data/node_modules/source-map/.npmignore +2 -0
- data/node_modules/source-map/.travis.yml +4 -0
- data/node_modules/source-map/CHANGELOG.md +201 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/Makefile.dryice.js +166 -0
- data/node_modules/source-map/README.md +479 -0
- data/node_modules/source-map/build/assert-shim.js +56 -0
- data/node_modules/source-map/build/mini-require.js +152 -0
- data/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/node_modules/source-map/build/suffix-browser.js +8 -0
- data/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/node_modules/source-map/build/test-prefix.js +8 -0
- data/node_modules/source-map/build/test-suffix.js +3 -0
- data/node_modules/source-map/lib/source-map.js +8 -0
- data/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/node_modules/source-map/lib/source-map/base64-vlq.js +142 -0
- data/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +420 -0
- data/node_modules/source-map/lib/source-map/binary-search.js +80 -0
- data/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +303 -0
- data/node_modules/source-map/lib/source-map/mapping-list.js +86 -0
- data/node_modules/source-map/lib/source-map/source-map-consumer.js +222 -0
- data/node_modules/source-map/lib/source-map/source-map-generator.js +400 -0
- data/node_modules/source-map/lib/source-map/source-node.js +414 -0
- data/node_modules/source-map/lib/source-map/util.js +319 -0
- data/node_modules/source-map/package.json +223 -0
- data/node_modules/source-map/test/run-tests.js +62 -0
- data/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/node_modules/source-map/test/source-map/test-base64-vlq.js +23 -0
- data/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/node_modules/source-map/test/source-map/test-dog-fooding.js +84 -0
- data/node_modules/source-map/test/source-map/test-source-map-consumer.js +874 -0
- data/node_modules/source-map/test/source-map/test-source-map-generator.js +679 -0
- data/node_modules/source-map/test/source-map/test-source-node.js +612 -0
- data/node_modules/source-map/test/source-map/test-util.js +216 -0
- data/node_modules/source-map/test/source-map/util.js +299 -0
- data/node_modules/sshpk/.npmignore +9 -0
- data/node_modules/sshpk/.travis.yml +11 -0
- data/node_modules/sshpk/LICENSE +18 -0
- data/node_modules/sshpk/README.md +666 -0
- data/node_modules/sshpk/bin/sshpk-conv +201 -0
- data/node_modules/sshpk/bin/sshpk-sign +191 -0
- data/node_modules/sshpk/bin/sshpk-verify +166 -0
- data/node_modules/sshpk/lib/algs.js +168 -0
- data/node_modules/sshpk/lib/certificate.js +291 -0
- data/node_modules/sshpk/lib/dhe.js +311 -0
- data/node_modules/sshpk/lib/ed-compat.js +96 -0
- data/node_modules/sshpk/lib/errors.js +84 -0
- data/node_modules/sshpk/lib/fingerprint.js +161 -0
- data/node_modules/sshpk/lib/formats/auto.js +73 -0
- data/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
- data/node_modules/sshpk/lib/formats/pem.js +186 -0
- data/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
- data/node_modules/sshpk/lib/formats/pkcs8.js +505 -0
- data/node_modules/sshpk/lib/formats/rfc4253.js +146 -0
- data/node_modules/sshpk/lib/formats/ssh-private.js +261 -0
- data/node_modules/sshpk/lib/formats/ssh.js +114 -0
- data/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
- data/node_modules/sshpk/lib/formats/x509.js +484 -0
- data/node_modules/sshpk/lib/identity.js +255 -0
- data/node_modules/sshpk/lib/index.js +38 -0
- data/node_modules/sshpk/lib/key.js +270 -0
- data/node_modules/sshpk/lib/private-key.js +231 -0
- data/node_modules/sshpk/lib/signature.js +245 -0
- data/node_modules/sshpk/lib/ssh-buffer.js +148 -0
- data/node_modules/sshpk/lib/utils.js +288 -0
- data/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
- data/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
- data/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
- data/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
- data/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/sshpk/node_modules/assert-plus/package.json +115 -0
- data/node_modules/sshpk/package.json +135 -0
- data/node_modules/stringstream/.npmignore +15 -0
- data/node_modules/stringstream/.travis.yml +4 -0
- data/node_modules/stringstream/LICENSE.txt +22 -0
- data/node_modules/stringstream/README.md +38 -0
- data/node_modules/stringstream/example.js +27 -0
- data/node_modules/stringstream/package.json +85 -0
- data/node_modules/stringstream/stringstream.js +102 -0
- data/node_modules/strip-ansi/index.js +6 -0
- data/node_modules/strip-ansi/license +21 -0
- data/node_modules/strip-ansi/package.json +123 -0
- data/node_modules/strip-ansi/readme.md +33 -0
- data/node_modules/supports-color/index.js +50 -0
- data/node_modules/supports-color/license +21 -0
- data/node_modules/supports-color/package.json +113 -0
- data/node_modules/supports-color/readme.md +36 -0
- data/node_modules/symbol-tree/.jscsrc +55 -0
- data/node_modules/symbol-tree/.npmignore +6 -0
- data/node_modules/symbol-tree/LICENSE +21 -0
- data/node_modules/symbol-tree/README.md +68 -0
- data/node_modules/symbol-tree/api.md +441 -0
- data/node_modules/symbol-tree/lib/SymbolTree.js +834 -0
- data/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
- data/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
- data/node_modules/symbol-tree/lib/TreePosition.js +10 -0
- data/node_modules/symbol-tree/package.json +121 -0
- data/node_modules/symbol-tree/test/SymbolTree.js +1189 -0
- data/node_modules/tough-cookie/LICENSE +27 -0
- data/node_modules/tough-cookie/README.md +506 -0
- data/node_modules/tough-cookie/lib/cookie.js +1336 -0
- data/node_modules/tough-cookie/lib/memstore.js +170 -0
- data/node_modules/tough-cookie/lib/pathMatch.js +61 -0
- data/node_modules/tough-cookie/lib/permuteDomain.js +56 -0
- data/node_modules/tough-cookie/lib/pubsuffix.js +98 -0
- data/node_modules/tough-cookie/lib/store.js +71 -0
- data/node_modules/tough-cookie/package.json +136 -0
- data/node_modules/tr46/.npmignore +4 -0
- data/node_modules/tr46/index.js +193 -0
- data/node_modules/tr46/lib/.gitkeep +0 -0
- data/node_modules/tr46/lib/mappingTable.json +1 -0
- data/node_modules/tr46/package.json +91 -0
- data/node_modules/tunnel-agent/LICENSE +55 -0
- data/node_modules/tunnel-agent/README.md +4 -0
- data/node_modules/tunnel-agent/index.js +243 -0
- data/node_modules/tunnel-agent/package.json +100 -0
- data/node_modules/tweetnacl/.npmignore +4 -0
- data/node_modules/tweetnacl/CHANGELOG.md +209 -0
- data/node_modules/tweetnacl/COPYING.txt +9 -0
- data/node_modules/tweetnacl/ISSUE_TEMPLATE.md +3 -0
- data/node_modules/tweetnacl/README.md +477 -0
- data/node_modules/tweetnacl/nacl-fast.js +2388 -0
- data/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- data/node_modules/tweetnacl/nacl.d.ts +98 -0
- data/node_modules/tweetnacl/nacl.js +1175 -0
- data/node_modules/tweetnacl/nacl.min.js +1 -0
- data/node_modules/tweetnacl/package.json +121 -0
- data/node_modules/type-check/LICENSE +22 -0
- data/node_modules/type-check/README.md +210 -0
- data/node_modules/type-check/lib/check.js +126 -0
- data/node_modules/type-check/lib/index.js +16 -0
- data/node_modules/type-check/lib/parse-type.js +196 -0
- data/node_modules/type-check/package.json +102 -0
- data/node_modules/type-detect/.npmignore +11 -0
- data/node_modules/type-detect/History.md +52 -0
- data/node_modules/type-detect/README.md +226 -0
- data/node_modules/type-detect/ReleaseNotes.md +46 -0
- data/node_modules/type-detect/index.js +1 -0
- data/node_modules/type-detect/lib/type.js +134 -0
- data/node_modules/type-detect/package.json +93 -0
- data/node_modules/uuid/.npmignore +8 -0
- data/node_modules/uuid/.travis.yml +5 -0
- data/node_modules/uuid/AUTHORS +5 -0
- data/node_modules/uuid/HISTORY.md +28 -0
- data/node_modules/uuid/LICENSE.md +21 -0
- data/node_modules/uuid/README.md +132 -0
- data/node_modules/uuid/bin/uuid +26 -0
- data/node_modules/uuid/index.js +8 -0
- data/node_modules/uuid/lib/bytesToUuid.js +23 -0
- data/node_modules/uuid/lib/rng-browser.js +33 -0
- data/node_modules/uuid/lib/rng.js +10 -0
- data/node_modules/uuid/package.json +122 -0
- data/node_modules/uuid/test/mocha.opts +3 -0
- data/node_modules/uuid/test/test.js +96 -0
- data/node_modules/uuid/v1.js +103 -0
- data/node_modules/uuid/v4.js +29 -0
- data/node_modules/verror/.gitmodules +0 -0
- data/node_modules/verror/.npmignore +1 -0
- data/node_modules/verror/LICENSE +19 -0
- data/node_modules/verror/Makefile +35 -0
- data/node_modules/verror/Makefile.targ +285 -0
- data/node_modules/verror/README.md +120 -0
- data/node_modules/verror/examples/levels-verror.js +36 -0
- data/node_modules/verror/examples/levels-werror.js +34 -0
- data/node_modules/verror/examples/varargs.js +6 -0
- data/node_modules/verror/examples/verror.js +13 -0
- data/node_modules/verror/examples/werror.js +14 -0
- data/node_modules/verror/jsl.node.conf +139 -0
- data/node_modules/verror/lib/verror.js +157 -0
- data/node_modules/verror/package.json +78 -0
- data/node_modules/verror/tests/tst.inherit.js +100 -0
- data/node_modules/verror/tests/tst.verror.js +156 -0
- data/node_modules/verror/tests/tst.werror.js +179 -0
- data/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/node_modules/webidl-conversions/README.md +53 -0
- data/node_modules/webidl-conversions/lib/index.js +189 -0
- data/node_modules/webidl-conversions/package.json +96 -0
- data/node_modules/whatwg-encoding/LICENSE.txt +19 -0
- data/node_modules/whatwg-encoding/lib/labels-to-names.json +207 -0
- data/node_modules/whatwg-encoding/lib/supported-names.json +37 -0
- data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +47 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.npmignore +6 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.travis.yml +20 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/Changelog.md +93 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/README.md +157 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +170 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +187 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +174 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +289 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/extend-node.js +214 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/index.js +141 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +120 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/package.json +153 -0
- data/node_modules/whatwg-encoding/package.json +101 -0
- data/node_modules/whatwg-url/.eslintignore +3 -0
- data/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/node_modules/whatwg-url/README.md +66 -0
- data/node_modules/whatwg-url/lib/URL-impl.js +216 -0
- data/node_modules/whatwg-url/lib/URL.js +209 -0
- data/node_modules/whatwg-url/lib/public-api.js +11 -0
- data/node_modules/whatwg-url/lib/url-state-machine.js +1173 -0
- data/node_modules/whatwg-url/lib/utils.js +20 -0
- data/node_modules/whatwg-url/package.json +103 -0
- data/node_modules/wordwrap/LICENSE +18 -0
- data/node_modules/wordwrap/README.markdown +70 -0
- data/node_modules/wordwrap/example/center.js +10 -0
- data/node_modules/wordwrap/example/meat.js +3 -0
- data/node_modules/wordwrap/index.js +76 -0
- data/node_modules/wordwrap/package.json +94 -0
- data/node_modules/wordwrap/test/break.js +32 -0
- data/node_modules/wordwrap/test/idleness.txt +63 -0
- data/node_modules/wordwrap/test/wrap.js +33 -0
- data/node_modules/xml-name-validator/LICENSE.txt +19 -0
- data/node_modules/xml-name-validator/README.md +36 -0
- data/node_modules/xml-name-validator/lib/generated-parser.js +504 -0
- data/node_modules/xml-name-validator/lib/grammar.pegjs +35 -0
- data/node_modules/xml-name-validator/lib/xml-name-validator.js +17 -0
- data/node_modules/xml-name-validator/package.json +97 -0
- data/node_modules/xtend/.jshintrc +30 -0
- data/node_modules/xtend/.npmignore +1 -0
- data/node_modules/xtend/LICENCE +19 -0
- data/node_modules/xtend/Makefile +4 -0
- data/node_modules/xtend/README.md +32 -0
- data/node_modules/xtend/immutable.js +19 -0
- data/node_modules/xtend/mutable.js +17 -0
- data/node_modules/xtend/package.json +117 -0
- data/node_modules/xtend/test.js +83 -0
- data/package.json +32 -0
- data/vendor/assets/javascripts/select_all.js +1 -1
- metadata +1870 -2
@@ -0,0 +1,176 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
var url = require('url')
|
4
|
+
, tunnel = require('tunnel-agent')
|
5
|
+
|
6
|
+
var defaultProxyHeaderWhiteList = [
|
7
|
+
'accept',
|
8
|
+
'accept-charset',
|
9
|
+
'accept-encoding',
|
10
|
+
'accept-language',
|
11
|
+
'accept-ranges',
|
12
|
+
'cache-control',
|
13
|
+
'content-encoding',
|
14
|
+
'content-language',
|
15
|
+
'content-location',
|
16
|
+
'content-md5',
|
17
|
+
'content-range',
|
18
|
+
'content-type',
|
19
|
+
'connection',
|
20
|
+
'date',
|
21
|
+
'expect',
|
22
|
+
'max-forwards',
|
23
|
+
'pragma',
|
24
|
+
'referer',
|
25
|
+
'te',
|
26
|
+
'user-agent',
|
27
|
+
'via'
|
28
|
+
]
|
29
|
+
|
30
|
+
var defaultProxyHeaderExclusiveList = [
|
31
|
+
'proxy-authorization'
|
32
|
+
]
|
33
|
+
|
34
|
+
function constructProxyHost(uriObject) {
|
35
|
+
var port = uriObject.port
|
36
|
+
, protocol = uriObject.protocol
|
37
|
+
, proxyHost = uriObject.hostname + ':'
|
38
|
+
|
39
|
+
if (port) {
|
40
|
+
proxyHost += port
|
41
|
+
} else if (protocol === 'https:') {
|
42
|
+
proxyHost += '443'
|
43
|
+
} else {
|
44
|
+
proxyHost += '80'
|
45
|
+
}
|
46
|
+
|
47
|
+
return proxyHost
|
48
|
+
}
|
49
|
+
|
50
|
+
function constructProxyHeaderWhiteList(headers, proxyHeaderWhiteList) {
|
51
|
+
var whiteList = proxyHeaderWhiteList
|
52
|
+
.reduce(function (set, header) {
|
53
|
+
set[header.toLowerCase()] = true
|
54
|
+
return set
|
55
|
+
}, {})
|
56
|
+
|
57
|
+
return Object.keys(headers)
|
58
|
+
.filter(function (header) {
|
59
|
+
return whiteList[header.toLowerCase()]
|
60
|
+
})
|
61
|
+
.reduce(function (set, header) {
|
62
|
+
set[header] = headers[header]
|
63
|
+
return set
|
64
|
+
}, {})
|
65
|
+
}
|
66
|
+
|
67
|
+
function constructTunnelOptions (request, proxyHeaders) {
|
68
|
+
var proxy = request.proxy
|
69
|
+
|
70
|
+
var tunnelOptions = {
|
71
|
+
proxy : {
|
72
|
+
host : proxy.hostname,
|
73
|
+
port : +proxy.port,
|
74
|
+
proxyAuth : proxy.auth,
|
75
|
+
headers : proxyHeaders
|
76
|
+
},
|
77
|
+
headers : request.headers,
|
78
|
+
ca : request.ca,
|
79
|
+
cert : request.cert,
|
80
|
+
key : request.key,
|
81
|
+
passphrase : request.passphrase,
|
82
|
+
pfx : request.pfx,
|
83
|
+
ciphers : request.ciphers,
|
84
|
+
rejectUnauthorized : request.rejectUnauthorized,
|
85
|
+
secureOptions : request.secureOptions,
|
86
|
+
secureProtocol : request.secureProtocol
|
87
|
+
}
|
88
|
+
|
89
|
+
return tunnelOptions
|
90
|
+
}
|
91
|
+
|
92
|
+
function constructTunnelFnName(uri, proxy) {
|
93
|
+
var uriProtocol = (uri.protocol === 'https:' ? 'https' : 'http')
|
94
|
+
var proxyProtocol = (proxy.protocol === 'https:' ? 'Https' : 'Http')
|
95
|
+
return [uriProtocol, proxyProtocol].join('Over')
|
96
|
+
}
|
97
|
+
|
98
|
+
function getTunnelFn(request) {
|
99
|
+
var uri = request.uri
|
100
|
+
var proxy = request.proxy
|
101
|
+
var tunnelFnName = constructTunnelFnName(uri, proxy)
|
102
|
+
return tunnel[tunnelFnName]
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
function Tunnel (request) {
|
107
|
+
this.request = request
|
108
|
+
this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList
|
109
|
+
this.proxyHeaderExclusiveList = []
|
110
|
+
if (typeof request.tunnel !== 'undefined') {
|
111
|
+
this.tunnelOverride = request.tunnel
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
Tunnel.prototype.isEnabled = function () {
|
116
|
+
var self = this
|
117
|
+
, request = self.request
|
118
|
+
// Tunnel HTTPS by default. Allow the user to override this setting.
|
119
|
+
|
120
|
+
// If self.tunnelOverride is set (the user specified a value), use it.
|
121
|
+
if (typeof self.tunnelOverride !== 'undefined') {
|
122
|
+
return self.tunnelOverride
|
123
|
+
}
|
124
|
+
|
125
|
+
// If the destination is HTTPS, tunnel.
|
126
|
+
if (request.uri.protocol === 'https:') {
|
127
|
+
return true
|
128
|
+
}
|
129
|
+
|
130
|
+
// Otherwise, do not use tunnel.
|
131
|
+
return false
|
132
|
+
}
|
133
|
+
|
134
|
+
Tunnel.prototype.setup = function (options) {
|
135
|
+
var self = this
|
136
|
+
, request = self.request
|
137
|
+
|
138
|
+
options = options || {}
|
139
|
+
|
140
|
+
if (typeof request.proxy === 'string') {
|
141
|
+
request.proxy = url.parse(request.proxy)
|
142
|
+
}
|
143
|
+
|
144
|
+
if (!request.proxy || !request.tunnel) {
|
145
|
+
return false
|
146
|
+
}
|
147
|
+
|
148
|
+
// Setup Proxy Header Exclusive List and White List
|
149
|
+
if (options.proxyHeaderWhiteList) {
|
150
|
+
self.proxyHeaderWhiteList = options.proxyHeaderWhiteList
|
151
|
+
}
|
152
|
+
if (options.proxyHeaderExclusiveList) {
|
153
|
+
self.proxyHeaderExclusiveList = options.proxyHeaderExclusiveList
|
154
|
+
}
|
155
|
+
|
156
|
+
var proxyHeaderExclusiveList = self.proxyHeaderExclusiveList.concat(defaultProxyHeaderExclusiveList)
|
157
|
+
var proxyHeaderWhiteList = self.proxyHeaderWhiteList.concat(proxyHeaderExclusiveList)
|
158
|
+
|
159
|
+
// Setup Proxy Headers and Proxy Headers Host
|
160
|
+
// Only send the Proxy White Listed Header names
|
161
|
+
var proxyHeaders = constructProxyHeaderWhiteList(request.headers, proxyHeaderWhiteList)
|
162
|
+
proxyHeaders.host = constructProxyHost(request.uri)
|
163
|
+
|
164
|
+
proxyHeaderExclusiveList.forEach(request.removeHeader, request)
|
165
|
+
|
166
|
+
// Set Agent from Tunnel Data
|
167
|
+
var tunnelFn = getTunnelFn(request)
|
168
|
+
var tunnelOptions = constructTunnelOptions(request, proxyHeaders)
|
169
|
+
request.agent = tunnelFn(tunnelOptions)
|
170
|
+
|
171
|
+
return true
|
172
|
+
}
|
173
|
+
|
174
|
+
Tunnel.defaultProxyHeaderWhiteList = defaultProxyHeaderWhiteList
|
175
|
+
Tunnel.defaultProxyHeaderExclusiveList = defaultProxyHeaderExclusiveList
|
176
|
+
exports.Tunnel = Tunnel
|
@@ -0,0 +1,163 @@
|
|
1
|
+
{
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"raw": "request@^2.55.0",
|
6
|
+
"scope": null,
|
7
|
+
"escapedName": "request",
|
8
|
+
"name": "request",
|
9
|
+
"rawSpec": "^2.55.0",
|
10
|
+
"spec": ">=2.55.0 <3.0.0",
|
11
|
+
"type": "range"
|
12
|
+
},
|
13
|
+
"/home/baldor/Ubuntu bkp/project/select_all/select_all-rails/node_modules/jsdom"
|
14
|
+
]
|
15
|
+
],
|
16
|
+
"_from": "request@>=2.55.0 <3.0.0",
|
17
|
+
"_id": "request@2.79.0",
|
18
|
+
"_inCache": true,
|
19
|
+
"_location": "/jsdom/request",
|
20
|
+
"_nodeVersion": "6.3.1",
|
21
|
+
"_npmOperationalInternal": {
|
22
|
+
"host": "packages-12-west.internal.npmjs.com",
|
23
|
+
"tmp": "tmp/request-2.79.0.tgz_1479489666177_0.7806831058114767"
|
24
|
+
},
|
25
|
+
"_npmUser": {
|
26
|
+
"name": "simov",
|
27
|
+
"email": "simeonvelichkov@gmail.com"
|
28
|
+
},
|
29
|
+
"_npmVersion": "2.15.9",
|
30
|
+
"_phantomChildren": {},
|
31
|
+
"_requested": {
|
32
|
+
"raw": "request@^2.55.0",
|
33
|
+
"scope": null,
|
34
|
+
"escapedName": "request",
|
35
|
+
"name": "request",
|
36
|
+
"rawSpec": "^2.55.0",
|
37
|
+
"spec": ">=2.55.0 <3.0.0",
|
38
|
+
"type": "range"
|
39
|
+
},
|
40
|
+
"_requiredBy": [
|
41
|
+
"/jsdom"
|
42
|
+
],
|
43
|
+
"_resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz",
|
44
|
+
"_shasum": "4dfe5bf6be8b8cdc37fcf93e04b65577722710de",
|
45
|
+
"_shrinkwrap": null,
|
46
|
+
"_spec": "request@^2.55.0",
|
47
|
+
"_where": "/home/baldor/Ubuntu bkp/project/select_all/select_all-rails/node_modules/jsdom",
|
48
|
+
"author": {
|
49
|
+
"name": "Mikeal Rogers",
|
50
|
+
"email": "mikeal.rogers@gmail.com"
|
51
|
+
},
|
52
|
+
"bugs": {
|
53
|
+
"url": "http://github.com/request/request/issues"
|
54
|
+
},
|
55
|
+
"dependencies": {
|
56
|
+
"aws-sign2": "~0.6.0",
|
57
|
+
"aws4": "^1.2.1",
|
58
|
+
"caseless": "~0.11.0",
|
59
|
+
"combined-stream": "~1.0.5",
|
60
|
+
"extend": "~3.0.0",
|
61
|
+
"forever-agent": "~0.6.1",
|
62
|
+
"form-data": "~2.1.1",
|
63
|
+
"har-validator": "~2.0.6",
|
64
|
+
"hawk": "~3.1.3",
|
65
|
+
"http-signature": "~1.1.0",
|
66
|
+
"is-typedarray": "~1.0.0",
|
67
|
+
"isstream": "~0.1.2",
|
68
|
+
"json-stringify-safe": "~5.0.1",
|
69
|
+
"mime-types": "~2.1.7",
|
70
|
+
"oauth-sign": "~0.8.1",
|
71
|
+
"qs": "~6.3.0",
|
72
|
+
"stringstream": "~0.0.4",
|
73
|
+
"tough-cookie": "~2.3.0",
|
74
|
+
"tunnel-agent": "~0.4.1",
|
75
|
+
"uuid": "^3.0.0"
|
76
|
+
},
|
77
|
+
"description": "Simplified HTTP request client.",
|
78
|
+
"devDependencies": {
|
79
|
+
"bluebird": "^3.2.1",
|
80
|
+
"browserify": "^13.0.1",
|
81
|
+
"browserify-istanbul": "^2.0.0",
|
82
|
+
"buffer-equal": "^1.0.0",
|
83
|
+
"codecov": "^1.0.1",
|
84
|
+
"coveralls": "^2.11.4",
|
85
|
+
"eslint": "^2.5.3",
|
86
|
+
"function-bind": "^1.0.2",
|
87
|
+
"istanbul": "^0.4.0",
|
88
|
+
"karma": "^1.1.1",
|
89
|
+
"karma-browserify": "^5.0.1",
|
90
|
+
"karma-cli": "^1.0.0",
|
91
|
+
"karma-coverage": "^1.0.0",
|
92
|
+
"karma-phantomjs-launcher": "^1.0.0",
|
93
|
+
"karma-tap": "^3.0.1",
|
94
|
+
"phantomjs-prebuilt": "^2.1.3",
|
95
|
+
"rimraf": "^2.2.8",
|
96
|
+
"server-destroy": "^1.0.1",
|
97
|
+
"tape": "^4.6.0",
|
98
|
+
"taper": "^0.5.0"
|
99
|
+
},
|
100
|
+
"directories": {},
|
101
|
+
"dist": {
|
102
|
+
"shasum": "4dfe5bf6be8b8cdc37fcf93e04b65577722710de",
|
103
|
+
"tarball": "https://registry.npmjs.org/request/-/request-2.79.0.tgz"
|
104
|
+
},
|
105
|
+
"engines": {
|
106
|
+
"node": ">= 4"
|
107
|
+
},
|
108
|
+
"files": [
|
109
|
+
"lib/",
|
110
|
+
"index.js",
|
111
|
+
"request.js"
|
112
|
+
],
|
113
|
+
"gitHead": "ff729c6f1a87237060d075908563ce13386395ac",
|
114
|
+
"greenkeeper": {
|
115
|
+
"ignore": [
|
116
|
+
"eslint",
|
117
|
+
"hawk",
|
118
|
+
"har-validator"
|
119
|
+
]
|
120
|
+
},
|
121
|
+
"homepage": "https://github.com/request/request#readme",
|
122
|
+
"license": "Apache-2.0",
|
123
|
+
"main": "index.js",
|
124
|
+
"maintainers": [
|
125
|
+
{
|
126
|
+
"name": "mikeal",
|
127
|
+
"email": "mikeal.rogers@gmail.com"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"name": "nylen",
|
131
|
+
"email": "jnylen@gmail.com"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"name": "fredkschott",
|
135
|
+
"email": "fkschott@gmail.com"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"name": "simov",
|
139
|
+
"email": "simeonvelichkov@gmail.com"
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"name": "request",
|
143
|
+
"optionalDependencies": {},
|
144
|
+
"readme": "ERROR: No README data found!",
|
145
|
+
"repository": {
|
146
|
+
"type": "git",
|
147
|
+
"url": "git+https://github.com/request/request.git"
|
148
|
+
},
|
149
|
+
"scripts": {
|
150
|
+
"lint": "eslint lib/ *.js tests/ && echo Lint passed.",
|
151
|
+
"test": "npm run lint && npm run test-ci && npm run test-browser",
|
152
|
+
"test-browser": "node tests/browser/start.js",
|
153
|
+
"test-ci": "taper tests/test-*.js",
|
154
|
+
"test-cov": "istanbul cover tape tests/test-*.js"
|
155
|
+
},
|
156
|
+
"tags": [
|
157
|
+
"http",
|
158
|
+
"simple",
|
159
|
+
"util",
|
160
|
+
"utility"
|
161
|
+
],
|
162
|
+
"version": "2.79.0"
|
163
|
+
}
|
@@ -0,0 +1,1475 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
var http = require('http')
|
4
|
+
, https = require('https')
|
5
|
+
, url = require('url')
|
6
|
+
, util = require('util')
|
7
|
+
, stream = require('stream')
|
8
|
+
, zlib = require('zlib')
|
9
|
+
, hawk = require('hawk')
|
10
|
+
, aws2 = require('aws-sign2')
|
11
|
+
, aws4 = require('aws4')
|
12
|
+
, httpSignature = require('http-signature')
|
13
|
+
, mime = require('mime-types')
|
14
|
+
, stringstream = require('stringstream')
|
15
|
+
, caseless = require('caseless')
|
16
|
+
, ForeverAgent = require('forever-agent')
|
17
|
+
, FormData = require('form-data')
|
18
|
+
, extend = require('extend')
|
19
|
+
, isstream = require('isstream')
|
20
|
+
, isTypedArray = require('is-typedarray').strict
|
21
|
+
, helpers = require('./lib/helpers')
|
22
|
+
, cookies = require('./lib/cookies')
|
23
|
+
, getProxyFromURI = require('./lib/getProxyFromURI')
|
24
|
+
, Querystring = require('./lib/querystring').Querystring
|
25
|
+
, Har = require('./lib/har').Har
|
26
|
+
, Auth = require('./lib/auth').Auth
|
27
|
+
, OAuth = require('./lib/oauth').OAuth
|
28
|
+
, Multipart = require('./lib/multipart').Multipart
|
29
|
+
, Redirect = require('./lib/redirect').Redirect
|
30
|
+
, Tunnel = require('./lib/tunnel').Tunnel
|
31
|
+
|
32
|
+
var safeStringify = helpers.safeStringify
|
33
|
+
, isReadStream = helpers.isReadStream
|
34
|
+
, toBase64 = helpers.toBase64
|
35
|
+
, defer = helpers.defer
|
36
|
+
, copy = helpers.copy
|
37
|
+
, version = helpers.version
|
38
|
+
, globalCookieJar = cookies.jar()
|
39
|
+
|
40
|
+
|
41
|
+
var globalPool = {}
|
42
|
+
|
43
|
+
function filterForNonReserved(reserved, options) {
|
44
|
+
// Filter out properties that are not reserved.
|
45
|
+
// Reserved values are passed in at call site.
|
46
|
+
|
47
|
+
var object = {}
|
48
|
+
for (var i in options) {
|
49
|
+
var notReserved = (reserved.indexOf(i) === -1)
|
50
|
+
if (notReserved) {
|
51
|
+
object[i] = options[i]
|
52
|
+
}
|
53
|
+
}
|
54
|
+
return object
|
55
|
+
}
|
56
|
+
|
57
|
+
function filterOutReservedFunctions(reserved, options) {
|
58
|
+
// Filter out properties that are functions and are reserved.
|
59
|
+
// Reserved values are passed in at call site.
|
60
|
+
|
61
|
+
var object = {}
|
62
|
+
for (var i in options) {
|
63
|
+
var isReserved = !(reserved.indexOf(i) === -1)
|
64
|
+
var isFunction = (typeof options[i] === 'function')
|
65
|
+
if (!(isReserved && isFunction)) {
|
66
|
+
object[i] = options[i]
|
67
|
+
}
|
68
|
+
}
|
69
|
+
return object
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
// Return a simpler request object to allow serialization
|
74
|
+
function requestToJSON() {
|
75
|
+
var self = this
|
76
|
+
return {
|
77
|
+
uri: self.uri,
|
78
|
+
method: self.method,
|
79
|
+
headers: self.headers
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
// Return a simpler response object to allow serialization
|
84
|
+
function responseToJSON() {
|
85
|
+
var self = this
|
86
|
+
return {
|
87
|
+
statusCode: self.statusCode,
|
88
|
+
body: self.body,
|
89
|
+
headers: self.headers,
|
90
|
+
request: requestToJSON.call(self.request)
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
function Request (options) {
|
95
|
+
// if given the method property in options, set property explicitMethod to true
|
96
|
+
|
97
|
+
// extend the Request instance with any non-reserved properties
|
98
|
+
// remove any reserved functions from the options object
|
99
|
+
// set Request instance to be readable and writable
|
100
|
+
// call init
|
101
|
+
|
102
|
+
var self = this
|
103
|
+
|
104
|
+
// start with HAR, then override with additional options
|
105
|
+
if (options.har) {
|
106
|
+
self._har = new Har(self)
|
107
|
+
options = self._har.options(options)
|
108
|
+
}
|
109
|
+
|
110
|
+
stream.Stream.call(self)
|
111
|
+
var reserved = Object.keys(Request.prototype)
|
112
|
+
var nonReserved = filterForNonReserved(reserved, options)
|
113
|
+
|
114
|
+
extend(self, nonReserved)
|
115
|
+
options = filterOutReservedFunctions(reserved, options)
|
116
|
+
|
117
|
+
self.readable = true
|
118
|
+
self.writable = true
|
119
|
+
if (options.method) {
|
120
|
+
self.explicitMethod = true
|
121
|
+
}
|
122
|
+
self._qs = new Querystring(self)
|
123
|
+
self._auth = new Auth(self)
|
124
|
+
self._oauth = new OAuth(self)
|
125
|
+
self._multipart = new Multipart(self)
|
126
|
+
self._redirect = new Redirect(self)
|
127
|
+
self._tunnel = new Tunnel(self)
|
128
|
+
self.init(options)
|
129
|
+
}
|
130
|
+
|
131
|
+
util.inherits(Request, stream.Stream)
|
132
|
+
|
133
|
+
// Debugging
|
134
|
+
Request.debug = process.env.NODE_DEBUG && /\brequest\b/.test(process.env.NODE_DEBUG)
|
135
|
+
function debug() {
|
136
|
+
if (Request.debug) {
|
137
|
+
console.error('REQUEST %s', util.format.apply(util, arguments))
|
138
|
+
}
|
139
|
+
}
|
140
|
+
Request.prototype.debug = debug
|
141
|
+
|
142
|
+
Request.prototype.init = function (options) {
|
143
|
+
// init() contains all the code to setup the request object.
|
144
|
+
// the actual outgoing request is not started until start() is called
|
145
|
+
// this function is called from both the constructor and on redirect.
|
146
|
+
var self = this
|
147
|
+
if (!options) {
|
148
|
+
options = {}
|
149
|
+
}
|
150
|
+
self.headers = self.headers ? copy(self.headers) : {}
|
151
|
+
|
152
|
+
// Delete headers with value undefined since they break
|
153
|
+
// ClientRequest.OutgoingMessage.setHeader in node 0.12
|
154
|
+
for (var headerName in self.headers) {
|
155
|
+
if (typeof self.headers[headerName] === 'undefined') {
|
156
|
+
delete self.headers[headerName]
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
caseless.httpify(self, self.headers)
|
161
|
+
|
162
|
+
if (!self.method) {
|
163
|
+
self.method = options.method || 'GET'
|
164
|
+
}
|
165
|
+
if (!self.localAddress) {
|
166
|
+
self.localAddress = options.localAddress
|
167
|
+
}
|
168
|
+
|
169
|
+
self._qs.init(options)
|
170
|
+
|
171
|
+
debug(options)
|
172
|
+
if (!self.pool && self.pool !== false) {
|
173
|
+
self.pool = globalPool
|
174
|
+
}
|
175
|
+
self.dests = self.dests || []
|
176
|
+
self.__isRequestRequest = true
|
177
|
+
|
178
|
+
// Protect against double callback
|
179
|
+
if (!self._callback && self.callback) {
|
180
|
+
self._callback = self.callback
|
181
|
+
self.callback = function () {
|
182
|
+
if (self._callbackCalled) {
|
183
|
+
return // Print a warning maybe?
|
184
|
+
}
|
185
|
+
self._callbackCalled = true
|
186
|
+
self._callback.apply(self, arguments)
|
187
|
+
}
|
188
|
+
self.on('error', self.callback.bind())
|
189
|
+
self.on('complete', self.callback.bind(self, null))
|
190
|
+
}
|
191
|
+
|
192
|
+
// People use this property instead all the time, so support it
|
193
|
+
if (!self.uri && self.url) {
|
194
|
+
self.uri = self.url
|
195
|
+
delete self.url
|
196
|
+
}
|
197
|
+
|
198
|
+
// If there's a baseUrl, then use it as the base URL (i.e. uri must be
|
199
|
+
// specified as a relative path and is appended to baseUrl).
|
200
|
+
if (self.baseUrl) {
|
201
|
+
if (typeof self.baseUrl !== 'string') {
|
202
|
+
return self.emit('error', new Error('options.baseUrl must be a string'))
|
203
|
+
}
|
204
|
+
|
205
|
+
if (typeof self.uri !== 'string') {
|
206
|
+
return self.emit('error', new Error('options.uri must be a string when using options.baseUrl'))
|
207
|
+
}
|
208
|
+
|
209
|
+
if (self.uri.indexOf('//') === 0 || self.uri.indexOf('://') !== -1) {
|
210
|
+
return self.emit('error', new Error('options.uri must be a path when using options.baseUrl'))
|
211
|
+
}
|
212
|
+
|
213
|
+
// Handle all cases to make sure that there's only one slash between
|
214
|
+
// baseUrl and uri.
|
215
|
+
var baseUrlEndsWithSlash = self.baseUrl.lastIndexOf('/') === self.baseUrl.length - 1
|
216
|
+
var uriStartsWithSlash = self.uri.indexOf('/') === 0
|
217
|
+
|
218
|
+
if (baseUrlEndsWithSlash && uriStartsWithSlash) {
|
219
|
+
self.uri = self.baseUrl + self.uri.slice(1)
|
220
|
+
} else if (baseUrlEndsWithSlash || uriStartsWithSlash) {
|
221
|
+
self.uri = self.baseUrl + self.uri
|
222
|
+
} else if (self.uri === '') {
|
223
|
+
self.uri = self.baseUrl
|
224
|
+
} else {
|
225
|
+
self.uri = self.baseUrl + '/' + self.uri
|
226
|
+
}
|
227
|
+
delete self.baseUrl
|
228
|
+
}
|
229
|
+
|
230
|
+
// A URI is needed by this point, emit error if we haven't been able to get one
|
231
|
+
if (!self.uri) {
|
232
|
+
return self.emit('error', new Error('options.uri is a required argument'))
|
233
|
+
}
|
234
|
+
|
235
|
+
// If a string URI/URL was given, parse it into a URL object
|
236
|
+
if (typeof self.uri === 'string') {
|
237
|
+
self.uri = url.parse(self.uri)
|
238
|
+
}
|
239
|
+
|
240
|
+
// Some URL objects are not from a URL parsed string and need href added
|
241
|
+
if (!self.uri.href) {
|
242
|
+
self.uri.href = url.format(self.uri)
|
243
|
+
}
|
244
|
+
|
245
|
+
// DEPRECATED: Warning for users of the old Unix Sockets URL Scheme
|
246
|
+
if (self.uri.protocol === 'unix:') {
|
247
|
+
return self.emit('error', new Error('`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`'))
|
248
|
+
}
|
249
|
+
|
250
|
+
// Support Unix Sockets
|
251
|
+
if (self.uri.host === 'unix') {
|
252
|
+
self.enableUnixSocket()
|
253
|
+
}
|
254
|
+
|
255
|
+
if (self.strictSSL === false) {
|
256
|
+
self.rejectUnauthorized = false
|
257
|
+
}
|
258
|
+
|
259
|
+
if (!self.uri.pathname) {self.uri.pathname = '/'}
|
260
|
+
|
261
|
+
if (!(self.uri.host || (self.uri.hostname && self.uri.port)) && !self.uri.isUnix) {
|
262
|
+
// Invalid URI: it may generate lot of bad errors, like 'TypeError: Cannot call method `indexOf` of undefined' in CookieJar
|
263
|
+
// Detect and reject it as soon as possible
|
264
|
+
var faultyUri = url.format(self.uri)
|
265
|
+
var message = 'Invalid URI "' + faultyUri + '"'
|
266
|
+
if (Object.keys(options).length === 0) {
|
267
|
+
// No option ? This can be the sign of a redirect
|
268
|
+
// As this is a case where the user cannot do anything (they didn't call request directly with this URL)
|
269
|
+
// they should be warned that it can be caused by a redirection (can save some hair)
|
270
|
+
message += '. This can be caused by a crappy redirection.'
|
271
|
+
}
|
272
|
+
// This error was fatal
|
273
|
+
self.abort()
|
274
|
+
return self.emit('error', new Error(message))
|
275
|
+
}
|
276
|
+
|
277
|
+
if (!self.hasOwnProperty('proxy')) {
|
278
|
+
self.proxy = getProxyFromURI(self.uri)
|
279
|
+
}
|
280
|
+
|
281
|
+
self.tunnel = self._tunnel.isEnabled()
|
282
|
+
if (self.proxy) {
|
283
|
+
self._tunnel.setup(options)
|
284
|
+
}
|
285
|
+
|
286
|
+
self._redirect.onRequest(options)
|
287
|
+
|
288
|
+
self.setHost = false
|
289
|
+
if (!self.hasHeader('host')) {
|
290
|
+
var hostHeaderName = self.originalHostHeaderName || 'host'
|
291
|
+
self.setHeader(hostHeaderName, self.uri.hostname)
|
292
|
+
if (self.uri.port) {
|
293
|
+
if ( !(self.uri.port === 80 && self.uri.protocol === 'http:') &&
|
294
|
+
!(self.uri.port === 443 && self.uri.protocol === 'https:') ) {
|
295
|
+
self.setHeader(hostHeaderName, self.getHeader('host') + (':' + self.uri.port) )
|
296
|
+
}
|
297
|
+
}
|
298
|
+
self.setHost = true
|
299
|
+
}
|
300
|
+
|
301
|
+
self.jar(self._jar || options.jar)
|
302
|
+
|
303
|
+
if (!self.uri.port) {
|
304
|
+
if (self.uri.protocol === 'http:') {self.uri.port = 80}
|
305
|
+
else if (self.uri.protocol === 'https:') {self.uri.port = 443}
|
306
|
+
}
|
307
|
+
|
308
|
+
if (self.proxy && !self.tunnel) {
|
309
|
+
self.port = self.proxy.port
|
310
|
+
self.host = self.proxy.hostname
|
311
|
+
} else {
|
312
|
+
self.port = self.uri.port
|
313
|
+
self.host = self.uri.hostname
|
314
|
+
}
|
315
|
+
|
316
|
+
if (options.form) {
|
317
|
+
self.form(options.form)
|
318
|
+
}
|
319
|
+
|
320
|
+
if (options.formData) {
|
321
|
+
var formData = options.formData
|
322
|
+
var requestForm = self.form()
|
323
|
+
var appendFormValue = function (key, value) {
|
324
|
+
if (value && value.hasOwnProperty('value') && value.hasOwnProperty('options')) {
|
325
|
+
requestForm.append(key, value.value, value.options)
|
326
|
+
} else {
|
327
|
+
requestForm.append(key, value)
|
328
|
+
}
|
329
|
+
}
|
330
|
+
for (var formKey in formData) {
|
331
|
+
if (formData.hasOwnProperty(formKey)) {
|
332
|
+
var formValue = formData[formKey]
|
333
|
+
if (formValue instanceof Array) {
|
334
|
+
for (var j = 0; j < formValue.length; j++) {
|
335
|
+
appendFormValue(formKey, formValue[j])
|
336
|
+
}
|
337
|
+
} else {
|
338
|
+
appendFormValue(formKey, formValue)
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
if (options.qs) {
|
345
|
+
self.qs(options.qs)
|
346
|
+
}
|
347
|
+
|
348
|
+
if (self.uri.path) {
|
349
|
+
self.path = self.uri.path
|
350
|
+
} else {
|
351
|
+
self.path = self.uri.pathname + (self.uri.search || '')
|
352
|
+
}
|
353
|
+
|
354
|
+
if (self.path.length === 0) {
|
355
|
+
self.path = '/'
|
356
|
+
}
|
357
|
+
|
358
|
+
// Auth must happen last in case signing is dependent on other headers
|
359
|
+
if (options.aws) {
|
360
|
+
self.aws(options.aws)
|
361
|
+
}
|
362
|
+
|
363
|
+
if (options.hawk) {
|
364
|
+
self.hawk(options.hawk)
|
365
|
+
}
|
366
|
+
|
367
|
+
if (options.httpSignature) {
|
368
|
+
self.httpSignature(options.httpSignature)
|
369
|
+
}
|
370
|
+
|
371
|
+
if (options.auth) {
|
372
|
+
if (Object.prototype.hasOwnProperty.call(options.auth, 'username')) {
|
373
|
+
options.auth.user = options.auth.username
|
374
|
+
}
|
375
|
+
if (Object.prototype.hasOwnProperty.call(options.auth, 'password')) {
|
376
|
+
options.auth.pass = options.auth.password
|
377
|
+
}
|
378
|
+
|
379
|
+
self.auth(
|
380
|
+
options.auth.user,
|
381
|
+
options.auth.pass,
|
382
|
+
options.auth.sendImmediately,
|
383
|
+
options.auth.bearer
|
384
|
+
)
|
385
|
+
}
|
386
|
+
|
387
|
+
if (self.gzip && !self.hasHeader('accept-encoding')) {
|
388
|
+
self.setHeader('accept-encoding', 'gzip, deflate')
|
389
|
+
}
|
390
|
+
|
391
|
+
if (self.uri.auth && !self.hasHeader('authorization')) {
|
392
|
+
var uriAuthPieces = self.uri.auth.split(':').map(function(item) {return self._qs.unescape(item)})
|
393
|
+
self.auth(uriAuthPieces[0], uriAuthPieces.slice(1).join(':'), true)
|
394
|
+
}
|
395
|
+
|
396
|
+
if (!self.tunnel && self.proxy && self.proxy.auth && !self.hasHeader('proxy-authorization')) {
|
397
|
+
var proxyAuthPieces = self.proxy.auth.split(':').map(function(item) {return self._qs.unescape(item)})
|
398
|
+
var authHeader = 'Basic ' + toBase64(proxyAuthPieces.join(':'))
|
399
|
+
self.setHeader('proxy-authorization', authHeader)
|
400
|
+
}
|
401
|
+
|
402
|
+
if (self.proxy && !self.tunnel) {
|
403
|
+
self.path = (self.uri.protocol + '//' + self.uri.host + self.path)
|
404
|
+
}
|
405
|
+
|
406
|
+
if (options.json) {
|
407
|
+
self.json(options.json)
|
408
|
+
}
|
409
|
+
if (options.multipart) {
|
410
|
+
self.multipart(options.multipart)
|
411
|
+
}
|
412
|
+
|
413
|
+
if (options.time) {
|
414
|
+
self.timing = true
|
415
|
+
self.elapsedTime = self.elapsedTime || 0
|
416
|
+
}
|
417
|
+
|
418
|
+
function setContentLength () {
|
419
|
+
if (isTypedArray(self.body)) {
|
420
|
+
self.body = new Buffer(self.body)
|
421
|
+
}
|
422
|
+
|
423
|
+
if (!self.hasHeader('content-length')) {
|
424
|
+
var length
|
425
|
+
if (typeof self.body === 'string') {
|
426
|
+
length = Buffer.byteLength(self.body)
|
427
|
+
}
|
428
|
+
else if (Array.isArray(self.body)) {
|
429
|
+
length = self.body.reduce(function (a, b) {return a + b.length}, 0)
|
430
|
+
}
|
431
|
+
else {
|
432
|
+
length = self.body.length
|
433
|
+
}
|
434
|
+
|
435
|
+
if (length) {
|
436
|
+
self.setHeader('content-length', length)
|
437
|
+
} else {
|
438
|
+
self.emit('error', new Error('Argument error, options.body.'))
|
439
|
+
}
|
440
|
+
}
|
441
|
+
}
|
442
|
+
if (self.body && !isstream(self.body)) {
|
443
|
+
setContentLength()
|
444
|
+
}
|
445
|
+
|
446
|
+
if (options.oauth) {
|
447
|
+
self.oauth(options.oauth)
|
448
|
+
} else if (self._oauth.params && self.hasHeader('authorization')) {
|
449
|
+
self.oauth(self._oauth.params)
|
450
|
+
}
|
451
|
+
|
452
|
+
var protocol = self.proxy && !self.tunnel ? self.proxy.protocol : self.uri.protocol
|
453
|
+
, defaultModules = {'http:':http, 'https:':https}
|
454
|
+
, httpModules = self.httpModules || {}
|
455
|
+
|
456
|
+
self.httpModule = httpModules[protocol] || defaultModules[protocol]
|
457
|
+
|
458
|
+
if (!self.httpModule) {
|
459
|
+
return self.emit('error', new Error('Invalid protocol: ' + protocol))
|
460
|
+
}
|
461
|
+
|
462
|
+
if (options.ca) {
|
463
|
+
self.ca = options.ca
|
464
|
+
}
|
465
|
+
|
466
|
+
if (!self.agent) {
|
467
|
+
if (options.agentOptions) {
|
468
|
+
self.agentOptions = options.agentOptions
|
469
|
+
}
|
470
|
+
|
471
|
+
if (options.agentClass) {
|
472
|
+
self.agentClass = options.agentClass
|
473
|
+
} else if (options.forever) {
|
474
|
+
var v = version()
|
475
|
+
// use ForeverAgent in node 0.10- only
|
476
|
+
if (v.major === 0 && v.minor <= 10) {
|
477
|
+
self.agentClass = protocol === 'http:' ? ForeverAgent : ForeverAgent.SSL
|
478
|
+
} else {
|
479
|
+
self.agentClass = self.httpModule.Agent
|
480
|
+
self.agentOptions = self.agentOptions || {}
|
481
|
+
self.agentOptions.keepAlive = true
|
482
|
+
}
|
483
|
+
} else {
|
484
|
+
self.agentClass = self.httpModule.Agent
|
485
|
+
}
|
486
|
+
}
|
487
|
+
|
488
|
+
if (self.pool === false) {
|
489
|
+
self.agent = false
|
490
|
+
} else {
|
491
|
+
self.agent = self.agent || self.getNewAgent()
|
492
|
+
}
|
493
|
+
|
494
|
+
self.on('pipe', function (src) {
|
495
|
+
if (self.ntick && self._started) {
|
496
|
+
self.emit('error', new Error('You cannot pipe to this stream after the outbound request has started.'))
|
497
|
+
}
|
498
|
+
self.src = src
|
499
|
+
if (isReadStream(src)) {
|
500
|
+
if (!self.hasHeader('content-type')) {
|
501
|
+
self.setHeader('content-type', mime.lookup(src.path))
|
502
|
+
}
|
503
|
+
} else {
|
504
|
+
if (src.headers) {
|
505
|
+
for (var i in src.headers) {
|
506
|
+
if (!self.hasHeader(i)) {
|
507
|
+
self.setHeader(i, src.headers[i])
|
508
|
+
}
|
509
|
+
}
|
510
|
+
}
|
511
|
+
if (self._json && !self.hasHeader('content-type')) {
|
512
|
+
self.setHeader('content-type', 'application/json')
|
513
|
+
}
|
514
|
+
if (src.method && !self.explicitMethod) {
|
515
|
+
self.method = src.method
|
516
|
+
}
|
517
|
+
}
|
518
|
+
|
519
|
+
// self.on('pipe', function () {
|
520
|
+
// console.error('You have already piped to this stream. Pipeing twice is likely to break the request.')
|
521
|
+
// })
|
522
|
+
})
|
523
|
+
|
524
|
+
defer(function () {
|
525
|
+
if (self._aborted) {
|
526
|
+
return
|
527
|
+
}
|
528
|
+
|
529
|
+
var end = function () {
|
530
|
+
if (self._form) {
|
531
|
+
if (!self._auth.hasAuth) {
|
532
|
+
self._form.pipe(self)
|
533
|
+
}
|
534
|
+
else if (self._auth.hasAuth && self._auth.sentAuth) {
|
535
|
+
self._form.pipe(self)
|
536
|
+
}
|
537
|
+
}
|
538
|
+
if (self._multipart && self._multipart.chunked) {
|
539
|
+
self._multipart.body.pipe(self)
|
540
|
+
}
|
541
|
+
if (self.body) {
|
542
|
+
if (isstream(self.body)) {
|
543
|
+
self.body.pipe(self)
|
544
|
+
} else {
|
545
|
+
setContentLength()
|
546
|
+
if (Array.isArray(self.body)) {
|
547
|
+
self.body.forEach(function (part) {
|
548
|
+
self.write(part)
|
549
|
+
})
|
550
|
+
} else {
|
551
|
+
self.write(self.body)
|
552
|
+
}
|
553
|
+
self.end()
|
554
|
+
}
|
555
|
+
} else if (self.requestBodyStream) {
|
556
|
+
console.warn('options.requestBodyStream is deprecated, please pass the request object to stream.pipe.')
|
557
|
+
self.requestBodyStream.pipe(self)
|
558
|
+
} else if (!self.src) {
|
559
|
+
if (self._auth.hasAuth && !self._auth.sentAuth) {
|
560
|
+
self.end()
|
561
|
+
return
|
562
|
+
}
|
563
|
+
if (self.method !== 'GET' && typeof self.method !== 'undefined') {
|
564
|
+
self.setHeader('content-length', 0)
|
565
|
+
}
|
566
|
+
self.end()
|
567
|
+
}
|
568
|
+
}
|
569
|
+
|
570
|
+
if (self._form && !self.hasHeader('content-length')) {
|
571
|
+
// Before ending the request, we had to compute the length of the whole form, asyncly
|
572
|
+
self.setHeader(self._form.getHeaders(), true)
|
573
|
+
self._form.getLength(function (err, length) {
|
574
|
+
if (!err && !isNaN(length)) {
|
575
|
+
self.setHeader('content-length', length)
|
576
|
+
}
|
577
|
+
end()
|
578
|
+
})
|
579
|
+
} else {
|
580
|
+
end()
|
581
|
+
}
|
582
|
+
|
583
|
+
self.ntick = true
|
584
|
+
})
|
585
|
+
|
586
|
+
}
|
587
|
+
|
588
|
+
Request.prototype.getNewAgent = function () {
|
589
|
+
var self = this
|
590
|
+
var Agent = self.agentClass
|
591
|
+
var options = {}
|
592
|
+
if (self.agentOptions) {
|
593
|
+
for (var i in self.agentOptions) {
|
594
|
+
options[i] = self.agentOptions[i]
|
595
|
+
}
|
596
|
+
}
|
597
|
+
if (self.ca) {
|
598
|
+
options.ca = self.ca
|
599
|
+
}
|
600
|
+
if (self.ciphers) {
|
601
|
+
options.ciphers = self.ciphers
|
602
|
+
}
|
603
|
+
if (self.secureProtocol) {
|
604
|
+
options.secureProtocol = self.secureProtocol
|
605
|
+
}
|
606
|
+
if (self.secureOptions) {
|
607
|
+
options.secureOptions = self.secureOptions
|
608
|
+
}
|
609
|
+
if (typeof self.rejectUnauthorized !== 'undefined') {
|
610
|
+
options.rejectUnauthorized = self.rejectUnauthorized
|
611
|
+
}
|
612
|
+
|
613
|
+
if (self.cert && self.key) {
|
614
|
+
options.key = self.key
|
615
|
+
options.cert = self.cert
|
616
|
+
}
|
617
|
+
|
618
|
+
if (self.pfx) {
|
619
|
+
options.pfx = self.pfx
|
620
|
+
}
|
621
|
+
|
622
|
+
if (self.passphrase) {
|
623
|
+
options.passphrase = self.passphrase
|
624
|
+
}
|
625
|
+
|
626
|
+
var poolKey = ''
|
627
|
+
|
628
|
+
// different types of agents are in different pools
|
629
|
+
if (Agent !== self.httpModule.Agent) {
|
630
|
+
poolKey += Agent.name
|
631
|
+
}
|
632
|
+
|
633
|
+
// ca option is only relevant if proxy or destination are https
|
634
|
+
var proxy = self.proxy
|
635
|
+
if (typeof proxy === 'string') {
|
636
|
+
proxy = url.parse(proxy)
|
637
|
+
}
|
638
|
+
var isHttps = (proxy && proxy.protocol === 'https:') || this.uri.protocol === 'https:'
|
639
|
+
|
640
|
+
if (isHttps) {
|
641
|
+
if (options.ca) {
|
642
|
+
if (poolKey) {
|
643
|
+
poolKey += ':'
|
644
|
+
}
|
645
|
+
poolKey += options.ca
|
646
|
+
}
|
647
|
+
|
648
|
+
if (typeof options.rejectUnauthorized !== 'undefined') {
|
649
|
+
if (poolKey) {
|
650
|
+
poolKey += ':'
|
651
|
+
}
|
652
|
+
poolKey += options.rejectUnauthorized
|
653
|
+
}
|
654
|
+
|
655
|
+
if (options.cert) {
|
656
|
+
if (poolKey) {
|
657
|
+
poolKey += ':'
|
658
|
+
}
|
659
|
+
poolKey += options.cert.toString('ascii') + options.key.toString('ascii')
|
660
|
+
}
|
661
|
+
|
662
|
+
if (options.pfx) {
|
663
|
+
if (poolKey) {
|
664
|
+
poolKey += ':'
|
665
|
+
}
|
666
|
+
poolKey += options.pfx.toString('ascii')
|
667
|
+
}
|
668
|
+
|
669
|
+
if (options.ciphers) {
|
670
|
+
if (poolKey) {
|
671
|
+
poolKey += ':'
|
672
|
+
}
|
673
|
+
poolKey += options.ciphers
|
674
|
+
}
|
675
|
+
|
676
|
+
if (options.secureProtocol) {
|
677
|
+
if (poolKey) {
|
678
|
+
poolKey += ':'
|
679
|
+
}
|
680
|
+
poolKey += options.secureProtocol
|
681
|
+
}
|
682
|
+
|
683
|
+
if (options.secureOptions) {
|
684
|
+
if (poolKey) {
|
685
|
+
poolKey += ':'
|
686
|
+
}
|
687
|
+
poolKey += options.secureOptions
|
688
|
+
}
|
689
|
+
}
|
690
|
+
|
691
|
+
if (self.pool === globalPool && !poolKey && Object.keys(options).length === 0 && self.httpModule.globalAgent) {
|
692
|
+
// not doing anything special. Use the globalAgent
|
693
|
+
return self.httpModule.globalAgent
|
694
|
+
}
|
695
|
+
|
696
|
+
// we're using a stored agent. Make sure it's protocol-specific
|
697
|
+
poolKey = self.uri.protocol + poolKey
|
698
|
+
|
699
|
+
// generate a new agent for this setting if none yet exists
|
700
|
+
if (!self.pool[poolKey]) {
|
701
|
+
self.pool[poolKey] = new Agent(options)
|
702
|
+
// properly set maxSockets on new agents
|
703
|
+
if (self.pool.maxSockets) {
|
704
|
+
self.pool[poolKey].maxSockets = self.pool.maxSockets
|
705
|
+
}
|
706
|
+
}
|
707
|
+
|
708
|
+
return self.pool[poolKey]
|
709
|
+
}
|
710
|
+
|
711
|
+
Request.prototype.start = function () {
|
712
|
+
// start() is called once we are ready to send the outgoing HTTP request.
|
713
|
+
// this is usually called on the first write(), end() or on nextTick()
|
714
|
+
var self = this
|
715
|
+
|
716
|
+
if (self._aborted) {
|
717
|
+
return
|
718
|
+
}
|
719
|
+
|
720
|
+
self._started = true
|
721
|
+
self.method = self.method || 'GET'
|
722
|
+
self.href = self.uri.href
|
723
|
+
|
724
|
+
if (self.src && self.src.stat && self.src.stat.size && !self.hasHeader('content-length')) {
|
725
|
+
self.setHeader('content-length', self.src.stat.size)
|
726
|
+
}
|
727
|
+
if (self._aws) {
|
728
|
+
self.aws(self._aws, true)
|
729
|
+
}
|
730
|
+
|
731
|
+
// We have a method named auth, which is completely different from the http.request
|
732
|
+
// auth option. If we don't remove it, we're gonna have a bad time.
|
733
|
+
var reqOptions = copy(self)
|
734
|
+
delete reqOptions.auth
|
735
|
+
|
736
|
+
debug('make request', self.uri.href)
|
737
|
+
|
738
|
+
// node v6.8.0 now supports a `timeout` value in `http.request()`, but we
|
739
|
+
// should delete it for now since we handle timeouts manually for better
|
740
|
+
// consistency with node versions before v6.8.0
|
741
|
+
delete reqOptions.timeout
|
742
|
+
|
743
|
+
try {
|
744
|
+
self.req = self.httpModule.request(reqOptions)
|
745
|
+
} catch (err) {
|
746
|
+
self.emit('error', err)
|
747
|
+
return
|
748
|
+
}
|
749
|
+
|
750
|
+
if (self.timing) {
|
751
|
+
self.startTime = new Date().getTime()
|
752
|
+
}
|
753
|
+
|
754
|
+
var timeout
|
755
|
+
if (self.timeout && !self.timeoutTimer) {
|
756
|
+
if (self.timeout < 0) {
|
757
|
+
timeout = 0
|
758
|
+
} else if (typeof self.timeout === 'number' && isFinite(self.timeout)) {
|
759
|
+
timeout = self.timeout
|
760
|
+
}
|
761
|
+
}
|
762
|
+
|
763
|
+
self.req.on('response', self.onRequestResponse.bind(self))
|
764
|
+
self.req.on('error', self.onRequestError.bind(self))
|
765
|
+
self.req.on('drain', function() {
|
766
|
+
self.emit('drain')
|
767
|
+
})
|
768
|
+
self.req.on('socket', function(socket) {
|
769
|
+
var setReqTimeout = function() {
|
770
|
+
// This timeout sets the amount of time to wait *between* bytes sent
|
771
|
+
// from the server once connected.
|
772
|
+
//
|
773
|
+
// In particular, it's useful for erroring if the server fails to send
|
774
|
+
// data halfway through streaming a response.
|
775
|
+
self.req.setTimeout(timeout, function () {
|
776
|
+
if (self.req) {
|
777
|
+
self.abort()
|
778
|
+
var e = new Error('ESOCKETTIMEDOUT')
|
779
|
+
e.code = 'ESOCKETTIMEDOUT'
|
780
|
+
e.connect = false
|
781
|
+
self.emit('error', e)
|
782
|
+
}
|
783
|
+
})
|
784
|
+
}
|
785
|
+
// `._connecting` was the old property which was made public in node v6.1.0
|
786
|
+
var isConnecting = socket._connecting || socket.connecting
|
787
|
+
if (timeout !== undefined) {
|
788
|
+
// Only start the connection timer if we're actually connecting a new
|
789
|
+
// socket, otherwise if we're already connected (because this is a
|
790
|
+
// keep-alive connection) do not bother. This is important since we won't
|
791
|
+
// get a 'connect' event for an already connected socket.
|
792
|
+
if (isConnecting) {
|
793
|
+
var onReqSockConnect = function() {
|
794
|
+
socket.removeListener('connect', onReqSockConnect)
|
795
|
+
clearTimeout(self.timeoutTimer)
|
796
|
+
self.timeoutTimer = null
|
797
|
+
setReqTimeout()
|
798
|
+
}
|
799
|
+
|
800
|
+
socket.on('connect', onReqSockConnect)
|
801
|
+
|
802
|
+
self.req.on('error', function(err) {
|
803
|
+
socket.removeListener('connect', onReqSockConnect)
|
804
|
+
})
|
805
|
+
|
806
|
+
// Set a timeout in memory - this block will throw if the server takes more
|
807
|
+
// than `timeout` to write the HTTP status and headers (corresponding to
|
808
|
+
// the on('response') event on the client). NB: this measures wall-clock
|
809
|
+
// time, not the time between bytes sent by the server.
|
810
|
+
self.timeoutTimer = setTimeout(function () {
|
811
|
+
socket.removeListener('connect', onReqSockConnect)
|
812
|
+
self.abort()
|
813
|
+
var e = new Error('ETIMEDOUT')
|
814
|
+
e.code = 'ETIMEDOUT'
|
815
|
+
e.connect = true
|
816
|
+
self.emit('error', e)
|
817
|
+
}, timeout)
|
818
|
+
} else {
|
819
|
+
// We're already connected
|
820
|
+
setReqTimeout()
|
821
|
+
}
|
822
|
+
}
|
823
|
+
self.emit('socket', socket)
|
824
|
+
})
|
825
|
+
|
826
|
+
self.emit('request', self.req)
|
827
|
+
}
|
828
|
+
|
829
|
+
Request.prototype.onRequestError = function (error) {
|
830
|
+
var self = this
|
831
|
+
if (self._aborted) {
|
832
|
+
return
|
833
|
+
}
|
834
|
+
if (self.req && self.req._reusedSocket && error.code === 'ECONNRESET'
|
835
|
+
&& self.agent.addRequestNoreuse) {
|
836
|
+
self.agent = { addRequest: self.agent.addRequestNoreuse.bind(self.agent) }
|
837
|
+
self.start()
|
838
|
+
self.req.end()
|
839
|
+
return
|
840
|
+
}
|
841
|
+
if (self.timeout && self.timeoutTimer) {
|
842
|
+
clearTimeout(self.timeoutTimer)
|
843
|
+
self.timeoutTimer = null
|
844
|
+
}
|
845
|
+
self.emit('error', error)
|
846
|
+
}
|
847
|
+
|
848
|
+
Request.prototype.onRequestResponse = function (response) {
|
849
|
+
var self = this
|
850
|
+
debug('onRequestResponse', self.uri.href, response.statusCode, response.headers)
|
851
|
+
response.on('end', function() {
|
852
|
+
if (self.timing) {
|
853
|
+
self.elapsedTime += (new Date().getTime() - self.startTime)
|
854
|
+
debug('elapsed time', self.elapsedTime)
|
855
|
+
response.elapsedTime = self.elapsedTime
|
856
|
+
}
|
857
|
+
debug('response end', self.uri.href, response.statusCode, response.headers)
|
858
|
+
})
|
859
|
+
|
860
|
+
if (self._aborted) {
|
861
|
+
debug('aborted', self.uri.href)
|
862
|
+
response.resume()
|
863
|
+
return
|
864
|
+
}
|
865
|
+
|
866
|
+
self.response = response
|
867
|
+
response.request = self
|
868
|
+
response.toJSON = responseToJSON
|
869
|
+
|
870
|
+
// XXX This is different on 0.10, because SSL is strict by default
|
871
|
+
if (self.httpModule === https &&
|
872
|
+
self.strictSSL && (!response.hasOwnProperty('socket') ||
|
873
|
+
!response.socket.authorized)) {
|
874
|
+
debug('strict ssl error', self.uri.href)
|
875
|
+
var sslErr = response.hasOwnProperty('socket') ? response.socket.authorizationError : self.uri.href + ' does not support SSL'
|
876
|
+
self.emit('error', new Error('SSL Error: ' + sslErr))
|
877
|
+
return
|
878
|
+
}
|
879
|
+
|
880
|
+
// Save the original host before any redirect (if it changes, we need to
|
881
|
+
// remove any authorization headers). Also remember the case of the header
|
882
|
+
// name because lots of broken servers expect Host instead of host and we
|
883
|
+
// want the caller to be able to specify this.
|
884
|
+
self.originalHost = self.getHeader('host')
|
885
|
+
if (!self.originalHostHeaderName) {
|
886
|
+
self.originalHostHeaderName = self.hasHeader('host')
|
887
|
+
}
|
888
|
+
if (self.setHost) {
|
889
|
+
self.removeHeader('host')
|
890
|
+
}
|
891
|
+
if (self.timeout && self.timeoutTimer) {
|
892
|
+
clearTimeout(self.timeoutTimer)
|
893
|
+
self.timeoutTimer = null
|
894
|
+
}
|
895
|
+
|
896
|
+
var targetCookieJar = (self._jar && self._jar.setCookie) ? self._jar : globalCookieJar
|
897
|
+
var addCookie = function (cookie) {
|
898
|
+
//set the cookie if it's domain in the href's domain.
|
899
|
+
try {
|
900
|
+
targetCookieJar.setCookie(cookie, self.uri.href, {ignoreError: true})
|
901
|
+
} catch (e) {
|
902
|
+
self.emit('error', e)
|
903
|
+
}
|
904
|
+
}
|
905
|
+
|
906
|
+
response.caseless = caseless(response.headers)
|
907
|
+
|
908
|
+
if (response.caseless.has('set-cookie') && (!self._disableCookies)) {
|
909
|
+
var headerName = response.caseless.has('set-cookie')
|
910
|
+
if (Array.isArray(response.headers[headerName])) {
|
911
|
+
response.headers[headerName].forEach(addCookie)
|
912
|
+
} else {
|
913
|
+
addCookie(response.headers[headerName])
|
914
|
+
}
|
915
|
+
}
|
916
|
+
|
917
|
+
if (self._redirect.onResponse(response)) {
|
918
|
+
return // Ignore the rest of the response
|
919
|
+
} else {
|
920
|
+
// Be a good stream and emit end when the response is finished.
|
921
|
+
// Hack to emit end on close because of a core bug that never fires end
|
922
|
+
response.on('close', function () {
|
923
|
+
if (!self._ended) {
|
924
|
+
self.response.emit('end')
|
925
|
+
}
|
926
|
+
})
|
927
|
+
|
928
|
+
response.once('end', function () {
|
929
|
+
self._ended = true
|
930
|
+
})
|
931
|
+
|
932
|
+
var noBody = function (code) {
|
933
|
+
return (
|
934
|
+
self.method === 'HEAD'
|
935
|
+
// Informational
|
936
|
+
|| (code >= 100 && code < 200)
|
937
|
+
// No Content
|
938
|
+
|| code === 204
|
939
|
+
// Not Modified
|
940
|
+
|| code === 304
|
941
|
+
)
|
942
|
+
}
|
943
|
+
|
944
|
+
var responseContent
|
945
|
+
if (self.gzip && !noBody(response.statusCode)) {
|
946
|
+
var contentEncoding = response.headers['content-encoding'] || 'identity'
|
947
|
+
contentEncoding = contentEncoding.trim().toLowerCase()
|
948
|
+
|
949
|
+
if (contentEncoding === 'gzip') {
|
950
|
+
responseContent = zlib.createGunzip()
|
951
|
+
response.pipe(responseContent)
|
952
|
+
} else if (contentEncoding === 'deflate') {
|
953
|
+
responseContent = zlib.createInflate()
|
954
|
+
response.pipe(responseContent)
|
955
|
+
} else {
|
956
|
+
// Since previous versions didn't check for Content-Encoding header,
|
957
|
+
// ignore any invalid values to preserve backwards-compatibility
|
958
|
+
if (contentEncoding !== 'identity') {
|
959
|
+
debug('ignoring unrecognized Content-Encoding ' + contentEncoding)
|
960
|
+
}
|
961
|
+
responseContent = response
|
962
|
+
}
|
963
|
+
} else {
|
964
|
+
responseContent = response
|
965
|
+
}
|
966
|
+
|
967
|
+
if (self.encoding) {
|
968
|
+
if (self.dests.length !== 0) {
|
969
|
+
console.error('Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.')
|
970
|
+
} else if (responseContent.setEncoding) {
|
971
|
+
responseContent.setEncoding(self.encoding)
|
972
|
+
} else {
|
973
|
+
// Should only occur on node pre-v0.9.4 (joyent/node@9b5abe5) with
|
974
|
+
// zlib streams.
|
975
|
+
// If/When support for 0.9.4 is dropped, this should be unnecessary.
|
976
|
+
responseContent = responseContent.pipe(stringstream(self.encoding))
|
977
|
+
}
|
978
|
+
}
|
979
|
+
|
980
|
+
if (self._paused) {
|
981
|
+
responseContent.pause()
|
982
|
+
}
|
983
|
+
|
984
|
+
self.responseContent = responseContent
|
985
|
+
|
986
|
+
self.emit('response', response)
|
987
|
+
|
988
|
+
self.dests.forEach(function (dest) {
|
989
|
+
self.pipeDest(dest)
|
990
|
+
})
|
991
|
+
|
992
|
+
responseContent.on('data', function (chunk) {
|
993
|
+
if (self.timing && !self.responseStarted) {
|
994
|
+
self.responseStartTime = (new Date()).getTime()
|
995
|
+
response.responseStartTime = self.responseStartTime
|
996
|
+
}
|
997
|
+
self._destdata = true
|
998
|
+
self.emit('data', chunk)
|
999
|
+
})
|
1000
|
+
responseContent.once('end', function (chunk) {
|
1001
|
+
self.emit('end', chunk)
|
1002
|
+
})
|
1003
|
+
responseContent.on('error', function (error) {
|
1004
|
+
self.emit('error', error)
|
1005
|
+
})
|
1006
|
+
responseContent.on('close', function () {self.emit('close')})
|
1007
|
+
|
1008
|
+
if (self.callback) {
|
1009
|
+
self.readResponseBody(response)
|
1010
|
+
}
|
1011
|
+
//if no callback
|
1012
|
+
else {
|
1013
|
+
self.on('end', function () {
|
1014
|
+
if (self._aborted) {
|
1015
|
+
debug('aborted', self.uri.href)
|
1016
|
+
return
|
1017
|
+
}
|
1018
|
+
self.emit('complete', response)
|
1019
|
+
})
|
1020
|
+
}
|
1021
|
+
}
|
1022
|
+
debug('finish init function', self.uri.href)
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
Request.prototype.readResponseBody = function (response) {
|
1026
|
+
var self = this
|
1027
|
+
debug('reading response\'s body')
|
1028
|
+
var buffers = []
|
1029
|
+
, bufferLength = 0
|
1030
|
+
, strings = []
|
1031
|
+
|
1032
|
+
self.on('data', function (chunk) {
|
1033
|
+
if (!Buffer.isBuffer(chunk)) {
|
1034
|
+
strings.push(chunk)
|
1035
|
+
} else if (chunk.length) {
|
1036
|
+
bufferLength += chunk.length
|
1037
|
+
buffers.push(chunk)
|
1038
|
+
}
|
1039
|
+
})
|
1040
|
+
self.on('end', function () {
|
1041
|
+
debug('end event', self.uri.href)
|
1042
|
+
if (self._aborted) {
|
1043
|
+
debug('aborted', self.uri.href)
|
1044
|
+
// `buffer` is defined in the parent scope and used in a closure it exists for the life of the request.
|
1045
|
+
// This can lead to leaky behavior if the user retains a reference to the request object.
|
1046
|
+
buffers = []
|
1047
|
+
bufferLength = 0
|
1048
|
+
return
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
if (bufferLength) {
|
1052
|
+
debug('has body', self.uri.href, bufferLength)
|
1053
|
+
response.body = Buffer.concat(buffers, bufferLength)
|
1054
|
+
if (self.encoding !== null) {
|
1055
|
+
response.body = response.body.toString(self.encoding)
|
1056
|
+
}
|
1057
|
+
// `buffer` is defined in the parent scope and used in a closure it exists for the life of the Request.
|
1058
|
+
// This can lead to leaky behavior if the user retains a reference to the request object.
|
1059
|
+
buffers = []
|
1060
|
+
bufferLength = 0
|
1061
|
+
} else if (strings.length) {
|
1062
|
+
// The UTF8 BOM [0xEF,0xBB,0xBF] is converted to [0xFE,0xFF] in the JS UTC16/UCS2 representation.
|
1063
|
+
// Strip this value out when the encoding is set to 'utf8', as upstream consumers won't expect it and it breaks JSON.parse().
|
1064
|
+
if (self.encoding === 'utf8' && strings[0].length > 0 && strings[0][0] === '\uFEFF') {
|
1065
|
+
strings[0] = strings[0].substring(1)
|
1066
|
+
}
|
1067
|
+
response.body = strings.join('')
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
if (self._json) {
|
1071
|
+
try {
|
1072
|
+
response.body = JSON.parse(response.body, self._jsonReviver)
|
1073
|
+
} catch (e) {
|
1074
|
+
debug('invalid JSON received', self.uri.href)
|
1075
|
+
}
|
1076
|
+
}
|
1077
|
+
debug('emitting complete', self.uri.href)
|
1078
|
+
if (typeof response.body === 'undefined' && !self._json) {
|
1079
|
+
response.body = self.encoding === null ? new Buffer(0) : ''
|
1080
|
+
}
|
1081
|
+
self.emit('complete', response, response.body)
|
1082
|
+
})
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
Request.prototype.abort = function () {
|
1086
|
+
var self = this
|
1087
|
+
self._aborted = true
|
1088
|
+
|
1089
|
+
if (self.req) {
|
1090
|
+
self.req.abort()
|
1091
|
+
}
|
1092
|
+
else if (self.response) {
|
1093
|
+
self.response.destroy()
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
self.emit('abort')
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
Request.prototype.pipeDest = function (dest) {
|
1100
|
+
var self = this
|
1101
|
+
var response = self.response
|
1102
|
+
// Called after the response is received
|
1103
|
+
if (dest.headers && !dest.headersSent) {
|
1104
|
+
if (response.caseless.has('content-type')) {
|
1105
|
+
var ctname = response.caseless.has('content-type')
|
1106
|
+
if (dest.setHeader) {
|
1107
|
+
dest.setHeader(ctname, response.headers[ctname])
|
1108
|
+
}
|
1109
|
+
else {
|
1110
|
+
dest.headers[ctname] = response.headers[ctname]
|
1111
|
+
}
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
if (response.caseless.has('content-length')) {
|
1115
|
+
var clname = response.caseless.has('content-length')
|
1116
|
+
if (dest.setHeader) {
|
1117
|
+
dest.setHeader(clname, response.headers[clname])
|
1118
|
+
} else {
|
1119
|
+
dest.headers[clname] = response.headers[clname]
|
1120
|
+
}
|
1121
|
+
}
|
1122
|
+
}
|
1123
|
+
if (dest.setHeader && !dest.headersSent) {
|
1124
|
+
for (var i in response.headers) {
|
1125
|
+
// If the response content is being decoded, the Content-Encoding header
|
1126
|
+
// of the response doesn't represent the piped content, so don't pass it.
|
1127
|
+
if (!self.gzip || i !== 'content-encoding') {
|
1128
|
+
dest.setHeader(i, response.headers[i])
|
1129
|
+
}
|
1130
|
+
}
|
1131
|
+
dest.statusCode = response.statusCode
|
1132
|
+
}
|
1133
|
+
if (self.pipefilter) {
|
1134
|
+
self.pipefilter(response, dest)
|
1135
|
+
}
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
Request.prototype.qs = function (q, clobber) {
|
1139
|
+
var self = this
|
1140
|
+
var base
|
1141
|
+
if (!clobber && self.uri.query) {
|
1142
|
+
base = self._qs.parse(self.uri.query)
|
1143
|
+
} else {
|
1144
|
+
base = {}
|
1145
|
+
}
|
1146
|
+
|
1147
|
+
for (var i in q) {
|
1148
|
+
base[i] = q[i]
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
var qs = self._qs.stringify(base)
|
1152
|
+
|
1153
|
+
if (qs === '') {
|
1154
|
+
return self
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
self.uri = url.parse(self.uri.href.split('?')[0] + '?' + qs)
|
1158
|
+
self.url = self.uri
|
1159
|
+
self.path = self.uri.path
|
1160
|
+
|
1161
|
+
if (self.uri.host === 'unix') {
|
1162
|
+
self.enableUnixSocket()
|
1163
|
+
}
|
1164
|
+
|
1165
|
+
return self
|
1166
|
+
}
|
1167
|
+
Request.prototype.form = function (form) {
|
1168
|
+
var self = this
|
1169
|
+
if (form) {
|
1170
|
+
if (!/^application\/x-www-form-urlencoded\b/.test(self.getHeader('content-type'))) {
|
1171
|
+
self.setHeader('content-type', 'application/x-www-form-urlencoded')
|
1172
|
+
}
|
1173
|
+
self.body = (typeof form === 'string')
|
1174
|
+
? self._qs.rfc3986(form.toString('utf8'))
|
1175
|
+
: self._qs.stringify(form).toString('utf8')
|
1176
|
+
return self
|
1177
|
+
}
|
1178
|
+
// create form-data object
|
1179
|
+
self._form = new FormData()
|
1180
|
+
self._form.on('error', function(err) {
|
1181
|
+
err.message = 'form-data: ' + err.message
|
1182
|
+
self.emit('error', err)
|
1183
|
+
self.abort()
|
1184
|
+
})
|
1185
|
+
return self._form
|
1186
|
+
}
|
1187
|
+
Request.prototype.multipart = function (multipart) {
|
1188
|
+
var self = this
|
1189
|
+
|
1190
|
+
self._multipart.onRequest(multipart)
|
1191
|
+
|
1192
|
+
if (!self._multipart.chunked) {
|
1193
|
+
self.body = self._multipart.body
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
return self
|
1197
|
+
}
|
1198
|
+
Request.prototype.json = function (val) {
|
1199
|
+
var self = this
|
1200
|
+
|
1201
|
+
if (!self.hasHeader('accept')) {
|
1202
|
+
self.setHeader('accept', 'application/json')
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
if (typeof self.jsonReplacer === 'function') {
|
1206
|
+
self._jsonReplacer = self.jsonReplacer
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
self._json = true
|
1210
|
+
if (typeof val === 'boolean') {
|
1211
|
+
if (self.body !== undefined) {
|
1212
|
+
if (!/^application\/x-www-form-urlencoded\b/.test(self.getHeader('content-type'))) {
|
1213
|
+
self.body = safeStringify(self.body, self._jsonReplacer)
|
1214
|
+
} else {
|
1215
|
+
self.body = self._qs.rfc3986(self.body)
|
1216
|
+
}
|
1217
|
+
if (!self.hasHeader('content-type')) {
|
1218
|
+
self.setHeader('content-type', 'application/json')
|
1219
|
+
}
|
1220
|
+
}
|
1221
|
+
} else {
|
1222
|
+
self.body = safeStringify(val, self._jsonReplacer)
|
1223
|
+
if (!self.hasHeader('content-type')) {
|
1224
|
+
self.setHeader('content-type', 'application/json')
|
1225
|
+
}
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
if (typeof self.jsonReviver === 'function') {
|
1229
|
+
self._jsonReviver = self.jsonReviver
|
1230
|
+
}
|
1231
|
+
|
1232
|
+
return self
|
1233
|
+
}
|
1234
|
+
Request.prototype.getHeader = function (name, headers) {
|
1235
|
+
var self = this
|
1236
|
+
var result, re, match
|
1237
|
+
if (!headers) {
|
1238
|
+
headers = self.headers
|
1239
|
+
}
|
1240
|
+
Object.keys(headers).forEach(function (key) {
|
1241
|
+
if (key.length !== name.length) {
|
1242
|
+
return
|
1243
|
+
}
|
1244
|
+
re = new RegExp(name, 'i')
|
1245
|
+
match = key.match(re)
|
1246
|
+
if (match) {
|
1247
|
+
result = headers[key]
|
1248
|
+
}
|
1249
|
+
})
|
1250
|
+
return result
|
1251
|
+
}
|
1252
|
+
Request.prototype.enableUnixSocket = function () {
|
1253
|
+
// Get the socket & request paths from the URL
|
1254
|
+
var unixParts = this.uri.path.split(':')
|
1255
|
+
, host = unixParts[0]
|
1256
|
+
, path = unixParts[1]
|
1257
|
+
// Apply unix properties to request
|
1258
|
+
this.socketPath = host
|
1259
|
+
this.uri.pathname = path
|
1260
|
+
this.uri.path = path
|
1261
|
+
this.uri.host = host
|
1262
|
+
this.uri.hostname = host
|
1263
|
+
this.uri.isUnix = true
|
1264
|
+
}
|
1265
|
+
|
1266
|
+
|
1267
|
+
Request.prototype.auth = function (user, pass, sendImmediately, bearer) {
|
1268
|
+
var self = this
|
1269
|
+
|
1270
|
+
self._auth.onRequest(user, pass, sendImmediately, bearer)
|
1271
|
+
|
1272
|
+
return self
|
1273
|
+
}
|
1274
|
+
Request.prototype.aws = function (opts, now) {
|
1275
|
+
var self = this
|
1276
|
+
|
1277
|
+
if (!now) {
|
1278
|
+
self._aws = opts
|
1279
|
+
return self
|
1280
|
+
}
|
1281
|
+
|
1282
|
+
if (opts.sign_version == 4 || opts.sign_version == '4') {
|
1283
|
+
// use aws4
|
1284
|
+
var options = {
|
1285
|
+
host: self.uri.host,
|
1286
|
+
path: self.uri.path,
|
1287
|
+
method: self.method,
|
1288
|
+
headers: {
|
1289
|
+
'content-type': self.getHeader('content-type') || ''
|
1290
|
+
},
|
1291
|
+
body: self.body
|
1292
|
+
}
|
1293
|
+
var signRes = aws4.sign(options, {
|
1294
|
+
accessKeyId: opts.key,
|
1295
|
+
secretAccessKey: opts.secret,
|
1296
|
+
sessionToken: opts.session
|
1297
|
+
})
|
1298
|
+
self.setHeader('authorization', signRes.headers.Authorization)
|
1299
|
+
self.setHeader('x-amz-date', signRes.headers['X-Amz-Date'])
|
1300
|
+
if (signRes.headers['X-Amz-Security-Token']) {
|
1301
|
+
self.setHeader('x-amz-security-token', signRes.headers['X-Amz-Security-Token'])
|
1302
|
+
}
|
1303
|
+
}
|
1304
|
+
else {
|
1305
|
+
// default: use aws-sign2
|
1306
|
+
var date = new Date()
|
1307
|
+
self.setHeader('date', date.toUTCString())
|
1308
|
+
var auth =
|
1309
|
+
{ key: opts.key
|
1310
|
+
, secret: opts.secret
|
1311
|
+
, verb: self.method.toUpperCase()
|
1312
|
+
, date: date
|
1313
|
+
, contentType: self.getHeader('content-type') || ''
|
1314
|
+
, md5: self.getHeader('content-md5') || ''
|
1315
|
+
, amazonHeaders: aws2.canonicalizeHeaders(self.headers)
|
1316
|
+
}
|
1317
|
+
var path = self.uri.path
|
1318
|
+
if (opts.bucket && path) {
|
1319
|
+
auth.resource = '/' + opts.bucket + path
|
1320
|
+
} else if (opts.bucket && !path) {
|
1321
|
+
auth.resource = '/' + opts.bucket
|
1322
|
+
} else if (!opts.bucket && path) {
|
1323
|
+
auth.resource = path
|
1324
|
+
} else if (!opts.bucket && !path) {
|
1325
|
+
auth.resource = '/'
|
1326
|
+
}
|
1327
|
+
auth.resource = aws2.canonicalizeResource(auth.resource)
|
1328
|
+
self.setHeader('authorization', aws2.authorization(auth))
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
return self
|
1332
|
+
}
|
1333
|
+
Request.prototype.httpSignature = function (opts) {
|
1334
|
+
var self = this
|
1335
|
+
httpSignature.signRequest({
|
1336
|
+
getHeader: function(header) {
|
1337
|
+
return self.getHeader(header, self.headers)
|
1338
|
+
},
|
1339
|
+
setHeader: function(header, value) {
|
1340
|
+
self.setHeader(header, value)
|
1341
|
+
},
|
1342
|
+
method: self.method,
|
1343
|
+
path: self.path
|
1344
|
+
}, opts)
|
1345
|
+
debug('httpSignature authorization', self.getHeader('authorization'))
|
1346
|
+
|
1347
|
+
return self
|
1348
|
+
}
|
1349
|
+
Request.prototype.hawk = function (opts) {
|
1350
|
+
var self = this
|
1351
|
+
self.setHeader('Authorization', hawk.client.header(self.uri, self.method, opts).field)
|
1352
|
+
}
|
1353
|
+
Request.prototype.oauth = function (_oauth) {
|
1354
|
+
var self = this
|
1355
|
+
|
1356
|
+
self._oauth.onRequest(_oauth)
|
1357
|
+
|
1358
|
+
return self
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
Request.prototype.jar = function (jar) {
|
1362
|
+
var self = this
|
1363
|
+
var cookies
|
1364
|
+
|
1365
|
+
if (self._redirect.redirectsFollowed === 0) {
|
1366
|
+
self.originalCookieHeader = self.getHeader('cookie')
|
1367
|
+
}
|
1368
|
+
|
1369
|
+
if (!jar) {
|
1370
|
+
// disable cookies
|
1371
|
+
cookies = false
|
1372
|
+
self._disableCookies = true
|
1373
|
+
} else {
|
1374
|
+
var targetCookieJar = (jar && jar.getCookieString) ? jar : globalCookieJar
|
1375
|
+
var urihref = self.uri.href
|
1376
|
+
//fetch cookie in the Specified host
|
1377
|
+
if (targetCookieJar) {
|
1378
|
+
cookies = targetCookieJar.getCookieString(urihref)
|
1379
|
+
}
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
//if need cookie and cookie is not empty
|
1383
|
+
if (cookies && cookies.length) {
|
1384
|
+
if (self.originalCookieHeader) {
|
1385
|
+
// Don't overwrite existing Cookie header
|
1386
|
+
self.setHeader('cookie', self.originalCookieHeader + '; ' + cookies)
|
1387
|
+
} else {
|
1388
|
+
self.setHeader('cookie', cookies)
|
1389
|
+
}
|
1390
|
+
}
|
1391
|
+
self._jar = jar
|
1392
|
+
return self
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
|
1396
|
+
// Stream API
|
1397
|
+
Request.prototype.pipe = function (dest, opts) {
|
1398
|
+
var self = this
|
1399
|
+
|
1400
|
+
if (self.response) {
|
1401
|
+
if (self._destdata) {
|
1402
|
+
self.emit('error', new Error('You cannot pipe after data has been emitted from the response.'))
|
1403
|
+
} else if (self._ended) {
|
1404
|
+
self.emit('error', new Error('You cannot pipe after the response has been ended.'))
|
1405
|
+
} else {
|
1406
|
+
stream.Stream.prototype.pipe.call(self, dest, opts)
|
1407
|
+
self.pipeDest(dest)
|
1408
|
+
return dest
|
1409
|
+
}
|
1410
|
+
} else {
|
1411
|
+
self.dests.push(dest)
|
1412
|
+
stream.Stream.prototype.pipe.call(self, dest, opts)
|
1413
|
+
return dest
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
Request.prototype.write = function () {
|
1417
|
+
var self = this
|
1418
|
+
if (self._aborted) {return}
|
1419
|
+
|
1420
|
+
if (!self._started) {
|
1421
|
+
self.start()
|
1422
|
+
}
|
1423
|
+
if (self.req) {
|
1424
|
+
return self.req.write.apply(self.req, arguments)
|
1425
|
+
}
|
1426
|
+
}
|
1427
|
+
Request.prototype.end = function (chunk) {
|
1428
|
+
var self = this
|
1429
|
+
if (self._aborted) {return}
|
1430
|
+
|
1431
|
+
if (chunk) {
|
1432
|
+
self.write(chunk)
|
1433
|
+
}
|
1434
|
+
if (!self._started) {
|
1435
|
+
self.start()
|
1436
|
+
}
|
1437
|
+
if (self.req) {
|
1438
|
+
self.req.end()
|
1439
|
+
}
|
1440
|
+
}
|
1441
|
+
Request.prototype.pause = function () {
|
1442
|
+
var self = this
|
1443
|
+
if (!self.responseContent) {
|
1444
|
+
self._paused = true
|
1445
|
+
} else {
|
1446
|
+
self.responseContent.pause.apply(self.responseContent, arguments)
|
1447
|
+
}
|
1448
|
+
}
|
1449
|
+
Request.prototype.resume = function () {
|
1450
|
+
var self = this
|
1451
|
+
if (!self.responseContent) {
|
1452
|
+
self._paused = false
|
1453
|
+
} else {
|
1454
|
+
self.responseContent.resume.apply(self.responseContent, arguments)
|
1455
|
+
}
|
1456
|
+
}
|
1457
|
+
Request.prototype.destroy = function () {
|
1458
|
+
var self = this
|
1459
|
+
if (!self._ended) {
|
1460
|
+
self.end()
|
1461
|
+
} else if (self.response) {
|
1462
|
+
self.response.destroy()
|
1463
|
+
}
|
1464
|
+
}
|
1465
|
+
|
1466
|
+
Request.defaultProxyHeaderWhiteList =
|
1467
|
+
Tunnel.defaultProxyHeaderWhiteList.slice()
|
1468
|
+
|
1469
|
+
Request.defaultProxyHeaderExclusiveList =
|
1470
|
+
Tunnel.defaultProxyHeaderExclusiveList.slice()
|
1471
|
+
|
1472
|
+
// Exports
|
1473
|
+
|
1474
|
+
Request.prototype.toJSON = requestToJSON
|
1475
|
+
module.exports = Request
|