@zipify/wysiwyg 1.2.1-0 → 1.2.1-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.
- package/.github/actions/lint-css/action.yaml +1 -3
- package/dist/cli.js +3 -3
- package/dist/wysiwyg.css +24 -25
- package/dist/wysiwyg.mjs +617 -594
- package/jest.config.js +3 -0
- package/lib/components/base/Modal.vue +21 -2
- package/lib/components/base/__tests__/Modal.test.js +1 -0
- package/lib/components/toolbar/controls/link/LinkControl.vue +18 -7
- package/lib/components/toolbar/controls/link/LinkControlHeader.vue +1 -1
- package/lib/components/toolbar/controls/link/__tests__/LinkControl.test.js +7 -7
- package/lib/components/toolbar/controls/link/composables/useLink.js +3 -1
- package/lib/composables/__tests__/__snapshots__/useEditor.test.js.snap +1 -1
- package/lib/composables/useEditor.js +4 -3
- package/lib/extensions/FontWeight.js +2 -0
- package/lib/extensions/StylePreset.js +33 -3
- package/lib/extensions/TextDecoration.js +1 -6
- package/lib/extensions/__tests__/FontWeight.test.js +8 -0
- package/lib/extensions/__tests__/StylePreset.test.js +52 -2
- package/lib/extensions/__tests__/TextDecoration.test.js +2 -62
- package/lib/extensions/__tests__/__snapshots__/Alignment.test.js.snap +2 -2
- package/lib/extensions/__tests__/__snapshots__/BackgroundColor.test.js.snap +1 -1
- package/lib/extensions/__tests__/__snapshots__/FontColor.test.js.snap +1 -1
- package/lib/extensions/__tests__/__snapshots__/FontFamily.test.js.snap +1 -1
- package/lib/extensions/__tests__/__snapshots__/FontSize.test.js.snap +2 -2
- package/lib/extensions/__tests__/__snapshots__/FontStyle.test.js.snap +1 -1
- package/lib/extensions/__tests__/__snapshots__/FontWeight.test.js.snap +26 -1
- package/lib/extensions/__tests__/__snapshots__/LineHeight.test.js.snap +2 -2
- package/lib/extensions/__tests__/__snapshots__/Margin.test.js.snap +2 -2
- package/lib/extensions/__tests__/__snapshots__/StylePreset.test.js.snap +22 -2
- package/lib/extensions/__tests__/__snapshots__/TextDecoration.test.js.snap +3 -3
- package/package.json +23 -28
- package/config/build/lambda.config.js +0 -39
- package/dist/lambda-to-json.zip +0 -0
- package/lib/components/toolbar/controls/link/LinkControlApply.vue +0 -35
- package/lib/entry-lambda-to-json.js +0 -8
- package/node_modules_lambda/.bin/acorn +0 -4
- package/node_modules_lambda/.bin/escodegen +0 -77
- package/node_modules_lambda/.bin/esgenerate +0 -64
- package/node_modules_lambda/.bin/esparse +0 -139
- package/node_modules_lambda/.bin/esvalidate +0 -236
- package/node_modules_lambda/.package-lock.json +0 -602
- package/node_modules_lambda/@tootallnate/once/LICENSE +0 -21
- package/node_modules_lambda/@tootallnate/once/README.md +0 -93
- package/node_modules_lambda/@tootallnate/once/dist/index.d.ts +0 -7
- package/node_modules_lambda/@tootallnate/once/dist/index.js +0 -24
- package/node_modules_lambda/@tootallnate/once/dist/index.js.map +0 -1
- package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.d.ts +0 -231
- package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js +0 -3
- package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js.map +0 -1
- package/node_modules_lambda/@tootallnate/once/dist/types.d.ts +0 -17
- package/node_modules_lambda/@tootallnate/once/dist/types.js +0 -3
- package/node_modules_lambda/@tootallnate/once/dist/types.js.map +0 -1
- package/node_modules_lambda/@tootallnate/once/package.json +0 -52
- package/node_modules_lambda/abab/LICENSE.md +0 -13
- package/node_modules_lambda/abab/README.md +0 -51
- package/node_modules_lambda/abab/index.d.ts +0 -2
- package/node_modules_lambda/abab/index.js +0 -9
- package/node_modules_lambda/abab/lib/atob.js +0 -101
- package/node_modules_lambda/abab/lib/btoa.js +0 -62
- package/node_modules_lambda/abab/package.json +0 -42
- package/node_modules_lambda/acorn/CHANGELOG.md +0 -798
- package/node_modules_lambda/acorn/LICENSE +0 -21
- package/node_modules_lambda/acorn/README.md +0 -273
- package/node_modules_lambda/acorn/bin/acorn +0 -4
- package/node_modules_lambda/acorn/dist/acorn.d.ts +0 -252
- package/node_modules_lambda/acorn/dist/acorn.js +0 -5608
- package/node_modules_lambda/acorn/dist/acorn.mjs +0 -5577
- package/node_modules_lambda/acorn/dist/acorn.mjs.d.ts +0 -2
- package/node_modules_lambda/acorn/dist/bin.js +0 -91
- package/node_modules_lambda/acorn/package.json +0 -50
- package/node_modules_lambda/acorn-globals/LICENSE +0 -19
- package/node_modules_lambda/acorn-globals/README.md +0 -81
- package/node_modules_lambda/acorn-globals/index.js +0 -179
- package/node_modules_lambda/acorn-globals/node_modules/.bin/acorn +0 -4
- package/node_modules_lambda/acorn-globals/node_modules/acorn/CHANGELOG.md +0 -620
- package/node_modules_lambda/acorn-globals/node_modules/acorn/LICENSE +0 -21
- package/node_modules_lambda/acorn-globals/node_modules/acorn/README.md +0 -269
- package/node_modules_lambda/acorn-globals/node_modules/acorn/bin/acorn +0 -4
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.d.ts +0 -209
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js +0 -5186
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js.map +0 -1
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs +0 -5155
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +0 -1
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/bin.js +0 -64
- package/node_modules_lambda/acorn-globals/node_modules/acorn/package.json +0 -35
- package/node_modules_lambda/acorn-globals/package.json +0 -35
- package/node_modules_lambda/acorn-walk/CHANGELOG.md +0 -131
- package/node_modules_lambda/acorn-walk/LICENSE +0 -19
- package/node_modules_lambda/acorn-walk/README.md +0 -126
- package/node_modules_lambda/acorn-walk/dist/walk.d.ts +0 -112
- package/node_modules_lambda/acorn-walk/dist/walk.js +0 -463
- package/node_modules_lambda/acorn-walk/dist/walk.js.map +0 -1
- package/node_modules_lambda/acorn-walk/dist/walk.mjs +0 -443
- package/node_modules_lambda/acorn-walk/dist/walk.mjs.map +0 -1
- package/node_modules_lambda/acorn-walk/package.json +0 -34
- package/node_modules_lambda/agent-base/README.md +0 -145
- package/node_modules_lambda/agent-base/dist/src/index.d.ts +0 -78
- package/node_modules_lambda/agent-base/dist/src/index.js +0 -203
- package/node_modules_lambda/agent-base/dist/src/index.js.map +0 -1
- package/node_modules_lambda/agent-base/dist/src/promisify.d.ts +0 -4
- package/node_modules_lambda/agent-base/dist/src/promisify.js +0 -18
- package/node_modules_lambda/agent-base/dist/src/promisify.js.map +0 -1
- package/node_modules_lambda/agent-base/package.json +0 -64
- package/node_modules_lambda/agent-base/src/index.ts +0 -345
- package/node_modules_lambda/agent-base/src/promisify.ts +0 -33
- package/node_modules_lambda/asynckit/LICENSE +0 -21
- package/node_modules_lambda/asynckit/README.md +0 -233
- package/node_modules_lambda/asynckit/bench.js +0 -76
- package/node_modules_lambda/asynckit/index.js +0 -6
- package/node_modules_lambda/asynckit/lib/abort.js +0 -29
- package/node_modules_lambda/asynckit/lib/async.js +0 -34
- package/node_modules_lambda/asynckit/lib/defer.js +0 -26
- package/node_modules_lambda/asynckit/lib/iterate.js +0 -75
- package/node_modules_lambda/asynckit/lib/readable_asynckit.js +0 -91
- package/node_modules_lambda/asynckit/lib/readable_parallel.js +0 -25
- package/node_modules_lambda/asynckit/lib/readable_serial.js +0 -25
- package/node_modules_lambda/asynckit/lib/readable_serial_ordered.js +0 -29
- package/node_modules_lambda/asynckit/lib/state.js +0 -37
- package/node_modules_lambda/asynckit/lib/streamify.js +0 -141
- package/node_modules_lambda/asynckit/lib/terminator.js +0 -29
- package/node_modules_lambda/asynckit/package.json +0 -63
- package/node_modules_lambda/asynckit/parallel.js +0 -43
- package/node_modules_lambda/asynckit/serial.js +0 -17
- package/node_modules_lambda/asynckit/serialOrdered.js +0 -75
- package/node_modules_lambda/asynckit/stream.js +0 -21
- package/node_modules_lambda/browser-process-hrtime/LICENSE +0 -9
- package/node_modules_lambda/browser-process-hrtime/README.md +0 -27
- package/node_modules_lambda/browser-process-hrtime/index.d.ts +0 -4
- package/node_modules_lambda/browser-process-hrtime/index.js +0 -28
- package/node_modules_lambda/browser-process-hrtime/package.json +0 -15
- package/node_modules_lambda/combined-stream/License +0 -19
- package/node_modules_lambda/combined-stream/Readme.md +0 -138
- package/node_modules_lambda/combined-stream/lib/combined_stream.js +0 -208
- package/node_modules_lambda/combined-stream/package.json +0 -25
- package/node_modules_lambda/combined-stream/yarn.lock +0 -17
- package/node_modules_lambda/cssom/LICENSE.txt +0 -20
- package/node_modules_lambda/cssom/README.mdown +0 -67
- package/node_modules_lambda/cssom/lib/CSSConditionRule.js +0 -25
- package/node_modules_lambda/cssom/lib/CSSDocumentRule.js +0 -39
- package/node_modules_lambda/cssom/lib/CSSFontFaceRule.js +0 -36
- package/node_modules_lambda/cssom/lib/CSSGroupingRule.js +0 -68
- package/node_modules_lambda/cssom/lib/CSSHostRule.js +0 -37
- package/node_modules_lambda/cssom/lib/CSSImportRule.js +0 -132
- package/node_modules_lambda/cssom/lib/CSSKeyframeRule.js +0 -37
- package/node_modules_lambda/cssom/lib/CSSKeyframesRule.js +0 -39
- package/node_modules_lambda/cssom/lib/CSSMediaRule.js +0 -53
- package/node_modules_lambda/cssom/lib/CSSOM.js +0 -3
- package/node_modules_lambda/cssom/lib/CSSRule.js +0 -43
- package/node_modules_lambda/cssom/lib/CSSStyleDeclaration.js +0 -148
- package/node_modules_lambda/cssom/lib/CSSStyleRule.js +0 -190
- package/node_modules_lambda/cssom/lib/CSSStyleSheet.js +0 -88
- package/node_modules_lambda/cssom/lib/CSSSupportsRule.js +0 -36
- package/node_modules_lambda/cssom/lib/CSSValue.js +0 -43
- package/node_modules_lambda/cssom/lib/CSSValueExpression.js +0 -344
- package/node_modules_lambda/cssom/lib/MatcherList.js +0 -62
- package/node_modules_lambda/cssom/lib/MediaList.js +0 -61
- package/node_modules_lambda/cssom/lib/StyleSheet.js +0 -17
- package/node_modules_lambda/cssom/lib/clone.js +0 -74
- package/node_modules_lambda/cssom/lib/index.js +0 -23
- package/node_modules_lambda/cssom/lib/parse.js +0 -465
- package/node_modules_lambda/cssom/package.json +0 -18
- package/node_modules_lambda/cssstyle/LICENSE +0 -20
- package/node_modules_lambda/cssstyle/README.md +0 -15
- package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.js +0 -260
- package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.test.js +0 -556
- package/node_modules_lambda/cssstyle/lib/allExtraProperties.js +0 -67
- package/node_modules_lambda/cssstyle/lib/allProperties.js +0 -462
- package/node_modules_lambda/cssstyle/lib/allWebkitProperties.js +0 -194
- package/node_modules_lambda/cssstyle/lib/constants.js +0 -6
- package/node_modules_lambda/cssstyle/lib/implementedProperties.js +0 -90
- package/node_modules_lambda/cssstyle/lib/named_colors.json +0 -152
- package/node_modules_lambda/cssstyle/lib/parsers.js +0 -722
- package/node_modules_lambda/cssstyle/lib/parsers.test.js +0 -139
- package/node_modules_lambda/cssstyle/lib/properties/azimuth.js +0 -67
- package/node_modules_lambda/cssstyle/lib/properties/background.js +0 -19
- package/node_modules_lambda/cssstyle/lib/properties/backgroundAttachment.js +0 -24
- package/node_modules_lambda/cssstyle/lib/properties/backgroundColor.js +0 -36
- package/node_modules_lambda/cssstyle/lib/properties/backgroundImage.js +0 -32
- package/node_modules_lambda/cssstyle/lib/properties/backgroundPosition.js +0 -58
- package/node_modules_lambda/cssstyle/lib/properties/backgroundRepeat.js +0 -32
- package/node_modules_lambda/cssstyle/lib/properties/border.js +0 -33
- package/node_modules_lambda/cssstyle/lib/properties/borderBottom.js +0 -17
- package/node_modules_lambda/cssstyle/lib/properties/borderBottomColor.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderBottomStyle.js +0 -21
- package/node_modules_lambda/cssstyle/lib/properties/borderBottomWidth.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderCollapse.js +0 -26
- package/node_modules_lambda/cssstyle/lib/properties/borderColor.js +0 -30
- package/node_modules_lambda/cssstyle/lib/properties/borderLeft.js +0 -17
- package/node_modules_lambda/cssstyle/lib/properties/borderLeftColor.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderLeftStyle.js +0 -21
- package/node_modules_lambda/cssstyle/lib/properties/borderLeftWidth.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderRight.js +0 -17
- package/node_modules_lambda/cssstyle/lib/properties/borderRightColor.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderRightStyle.js +0 -21
- package/node_modules_lambda/cssstyle/lib/properties/borderRightWidth.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderSpacing.js +0 -41
- package/node_modules_lambda/cssstyle/lib/properties/borderStyle.js +0 -38
- package/node_modules_lambda/cssstyle/lib/properties/borderTop.js +0 -17
- package/node_modules_lambda/cssstyle/lib/properties/borderTopColor.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/borderTopStyle.js +0 -21
- package/node_modules_lambda/cssstyle/lib/properties/borderTopWidth.js +0 -17
- package/node_modules_lambda/cssstyle/lib/properties/borderWidth.js +0 -46
- package/node_modules_lambda/cssstyle/lib/properties/bottom.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/clear.js +0 -16
- package/node_modules_lambda/cssstyle/lib/properties/clip.js +0 -47
- package/node_modules_lambda/cssstyle/lib/properties/color.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/cssFloat.js +0 -12
- package/node_modules_lambda/cssstyle/lib/properties/flex.js +0 -45
- package/node_modules_lambda/cssstyle/lib/properties/flexBasis.js +0 -28
- package/node_modules_lambda/cssstyle/lib/properties/flexGrow.js +0 -19
- package/node_modules_lambda/cssstyle/lib/properties/flexShrink.js +0 -19
- package/node_modules_lambda/cssstyle/lib/properties/float.js +0 -12
- package/node_modules_lambda/cssstyle/lib/properties/floodColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/font.js +0 -43
- package/node_modules_lambda/cssstyle/lib/properties/fontFamily.js +0 -33
- package/node_modules_lambda/cssstyle/lib/properties/fontSize.js +0 -38
- package/node_modules_lambda/cssstyle/lib/properties/fontStyle.js +0 -18
- package/node_modules_lambda/cssstyle/lib/properties/fontVariant.js +0 -18
- package/node_modules_lambda/cssstyle/lib/properties/fontWeight.js +0 -33
- package/node_modules_lambda/cssstyle/lib/properties/height.js +0 -24
- package/node_modules_lambda/cssstyle/lib/properties/left.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/lightingColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/lineHeight.js +0 -26
- package/node_modules_lambda/cssstyle/lib/properties/margin.js +0 -68
- package/node_modules_lambda/cssstyle/lib/properties/marginBottom.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/marginLeft.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/marginRight.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/marginTop.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/opacity.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/outlineColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/padding.js +0 -61
- package/node_modules_lambda/cssstyle/lib/properties/paddingBottom.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/paddingLeft.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/paddingRight.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/paddingTop.js +0 -13
- package/node_modules_lambda/cssstyle/lib/properties/right.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/stopColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/textLineThroughColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/textOverlineColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/textUnderlineColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/top.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderAfterColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderBeforeColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderEndColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderStartColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitColumnRuleColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitTapHighlightColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitTextEmphasisColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitTextFillColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/webkitTextStrokeColor.js +0 -14
- package/node_modules_lambda/cssstyle/lib/properties/width.js +0 -24
- package/node_modules_lambda/cssstyle/lib/properties.js +0 -1833
- package/node_modules_lambda/cssstyle/lib/utils/colorSpace.js +0 -21
- package/node_modules_lambda/cssstyle/lib/utils/getBasicPropertyDescriptor.js +0 -14
- package/node_modules_lambda/cssstyle/node_modules/cssom/LICENSE.txt +0 -20
- package/node_modules_lambda/cssstyle/node_modules/cssom/README.mdown +0 -67
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +0 -39
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +0 -36
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSHostRule.js +0 -37
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSImportRule.js +0 -132
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +0 -37
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +0 -39
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +0 -41
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSOM.js +0 -3
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSRule.js +0 -43
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -148
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +0 -190
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +0 -88
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +0 -36
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValue.js +0 -43
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +0 -344
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MatcherList.js +0 -62
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MediaList.js +0 -61
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/StyleSheet.js +0 -17
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/clone.js +0 -82
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/index.js +0 -21
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/parse.js +0 -464
- package/node_modules_lambda/cssstyle/node_modules/cssom/package.json +0 -18
- package/node_modules_lambda/cssstyle/package.json +0 -72
- package/node_modules_lambda/data-urls/LICENSE.txt +0 -7
- package/node_modules_lambda/data-urls/README.md +0 -62
- package/node_modules_lambda/data-urls/lib/parser.js +0 -69
- package/node_modules_lambda/data-urls/lib/utils.js +0 -18
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/README.md +0 -106
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/index.js +0 -27
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/Function.js +0 -42
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL-impl.js +0 -209
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL.js +0 -442
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams-impl.js +0 -130
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams.js +0 -472
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/VoidFunction.js +0 -26
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/encoding.js +0 -16
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/infra.js +0 -26
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/percent-encoding.js +0 -142
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/url-state-machine.js +0 -1244
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/urlencoded.js +0 -106
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/utils.js +0 -190
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/package.json +0 -58
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/webidl2js-wrapper.js +0 -7
- package/node_modules_lambda/data-urls/package.json +0 -54
- package/node_modules_lambda/debug/LICENSE +0 -20
- package/node_modules_lambda/debug/README.md +0 -481
- package/node_modules_lambda/debug/package.json +0 -59
- package/node_modules_lambda/debug/src/browser.js +0 -269
- package/node_modules_lambda/debug/src/common.js +0 -274
- package/node_modules_lambda/debug/src/index.js +0 -10
- package/node_modules_lambda/debug/src/node.js +0 -263
- package/node_modules_lambda/decimal.js/CHANGELOG.md +0 -231
- package/node_modules_lambda/decimal.js/LICENCE.md +0 -23
- package/node_modules_lambda/decimal.js/README.md +0 -246
- package/node_modules_lambda/decimal.js/decimal.d.ts +0 -300
- package/node_modules_lambda/decimal.js/decimal.js +0 -4934
- package/node_modules_lambda/decimal.js/decimal.mjs +0 -4898
- package/node_modules_lambda/decimal.js/package.json +0 -40
- package/node_modules_lambda/deep-is/.travis.yml +0 -5
- package/node_modules_lambda/deep-is/LICENSE +0 -22
- package/node_modules_lambda/deep-is/README.markdown +0 -70
- package/node_modules_lambda/deep-is/example/cmp.js +0 -11
- package/node_modules_lambda/deep-is/index.js +0 -102
- package/node_modules_lambda/deep-is/package.json +0 -58
- package/node_modules_lambda/deep-is/test/NaN.js +0 -16
- package/node_modules_lambda/deep-is/test/cmp.js +0 -23
- package/node_modules_lambda/deep-is/test/neg-vs-pos-0.js +0 -15
- package/node_modules_lambda/delayed-stream/License +0 -19
- package/node_modules_lambda/delayed-stream/Makefile +0 -7
- package/node_modules_lambda/delayed-stream/Readme.md +0 -141
- package/node_modules_lambda/delayed-stream/lib/delayed_stream.js +0 -107
- package/node_modules_lambda/delayed-stream/package.json +0 -27
- package/node_modules_lambda/domexception/LICENSE.txt +0 -21
- package/node_modules_lambda/domexception/README.md +0 -31
- package/node_modules_lambda/domexception/index.js +0 -7
- package/node_modules_lambda/domexception/lib/DOMException-impl.js +0 -22
- package/node_modules_lambda/domexception/lib/DOMException.js +0 -222
- package/node_modules_lambda/domexception/lib/Function.js +0 -42
- package/node_modules_lambda/domexception/lib/VoidFunction.js +0 -26
- package/node_modules_lambda/domexception/lib/legacy-error-codes.json +0 -24
- package/node_modules_lambda/domexception/lib/utils.js +0 -190
- package/node_modules_lambda/domexception/package.json +0 -42
- package/node_modules_lambda/domexception/webidl2js-wrapper.js +0 -15
- package/node_modules_lambda/escodegen/LICENSE.BSD +0 -21
- package/node_modules_lambda/escodegen/README.md +0 -84
- package/node_modules_lambda/escodegen/bin/escodegen.js +0 -77
- package/node_modules_lambda/escodegen/bin/esgenerate.js +0 -64
- package/node_modules_lambda/escodegen/escodegen.js +0 -2647
- package/node_modules_lambda/escodegen/node_modules/estraverse/.jshintrc +0 -16
- package/node_modules_lambda/escodegen/node_modules/estraverse/LICENSE.BSD +0 -19
- package/node_modules_lambda/escodegen/node_modules/estraverse/README.md +0 -153
- package/node_modules_lambda/escodegen/node_modules/estraverse/estraverse.js +0 -805
- package/node_modules_lambda/escodegen/node_modules/estraverse/gulpfile.js +0 -70
- package/node_modules_lambda/escodegen/node_modules/estraverse/package.json +0 -40
- package/node_modules_lambda/escodegen/node_modules/levn/LICENSE +0 -22
- package/node_modules_lambda/escodegen/node_modules/levn/README.md +0 -196
- package/node_modules_lambda/escodegen/node_modules/levn/lib/cast.js +0 -298
- package/node_modules_lambda/escodegen/node_modules/levn/lib/coerce.js +0 -285
- package/node_modules_lambda/escodegen/node_modules/levn/lib/index.js +0 -22
- package/node_modules_lambda/escodegen/node_modules/levn/lib/parse-string.js +0 -113
- package/node_modules_lambda/escodegen/node_modules/levn/lib/parse.js +0 -102
- package/node_modules_lambda/escodegen/node_modules/levn/package.json +0 -47
- package/node_modules_lambda/escodegen/node_modules/optionator/CHANGELOG.md +0 -56
- package/node_modules_lambda/escodegen/node_modules/optionator/LICENSE +0 -22
- package/node_modules_lambda/escodegen/node_modules/optionator/README.md +0 -238
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/help.js +0 -260
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/index.js +0 -465
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/util.js +0 -54
- package/node_modules_lambda/escodegen/node_modules/optionator/package.json +0 -44
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/CHANGELOG.md +0 -99
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/LICENSE +0 -22
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/README.md +0 -15
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Func.js +0 -65
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/List.js +0 -686
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Num.js +0 -130
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Obj.js +0 -154
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Str.js +0 -92
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/index.js +0 -178
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/package.json +0 -52
- package/node_modules_lambda/escodegen/node_modules/source-map/CHANGELOG.md +0 -301
- package/node_modules_lambda/escodegen/node_modules/source-map/LICENSE +0 -28
- package/node_modules_lambda/escodegen/node_modules/source-map/README.md +0 -742
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.js +0 -3233
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js +0 -2
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/array-set.js +0 -121
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64.js +0 -67
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/binary-search.js +0 -111
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/mapping-list.js +0 -79
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/quick-sort.js +0 -114
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-node.js +0 -413
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/util.js +0 -488
- package/node_modules_lambda/escodegen/node_modules/source-map/package.json +0 -73
- package/node_modules_lambda/escodegen/node_modules/source-map/source-map.d.ts +0 -98
- package/node_modules_lambda/escodegen/node_modules/source-map/source-map.js +0 -8
- package/node_modules_lambda/escodegen/node_modules/type-check/LICENSE +0 -22
- package/node_modules_lambda/escodegen/node_modules/type-check/README.md +0 -210
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/check.js +0 -126
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/index.js +0 -16
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/parse-type.js +0 -196
- package/node_modules_lambda/escodegen/node_modules/type-check/package.json +0 -40
- package/node_modules_lambda/escodegen/package.json +0 -62
- package/node_modules_lambda/esprima/ChangeLog +0 -235
- package/node_modules_lambda/esprima/LICENSE.BSD +0 -21
- package/node_modules_lambda/esprima/README.md +0 -46
- package/node_modules_lambda/esprima/bin/esparse.js +0 -139
- package/node_modules_lambda/esprima/bin/esvalidate.js +0 -236
- package/node_modules_lambda/esprima/dist/esprima.js +0 -6709
- package/node_modules_lambda/esprima/package.json +0 -112
- package/node_modules_lambda/esutils/LICENSE.BSD +0 -19
- package/node_modules_lambda/esutils/README.md +0 -174
- package/node_modules_lambda/esutils/lib/ast.js +0 -144
- package/node_modules_lambda/esutils/lib/code.js +0 -135
- package/node_modules_lambda/esutils/lib/keyword.js +0 -165
- package/node_modules_lambda/esutils/lib/utils.js +0 -33
- package/node_modules_lambda/esutils/package.json +0 -44
- package/node_modules_lambda/fast-levenshtein/LICENSE.md +0 -25
- package/node_modules_lambda/fast-levenshtein/README.md +0 -104
- package/node_modules_lambda/fast-levenshtein/levenshtein.js +0 -136
- package/node_modules_lambda/fast-levenshtein/package.json +0 -39
- package/node_modules_lambda/form-data/License +0 -19
- package/node_modules_lambda/form-data/README.md.bak +0 -358
- package/node_modules_lambda/form-data/Readme.md +0 -358
- package/node_modules_lambda/form-data/index.d.ts +0 -62
- package/node_modules_lambda/form-data/lib/browser.js +0 -2
- package/node_modules_lambda/form-data/lib/form_data.js +0 -501
- package/node_modules_lambda/form-data/lib/populate.js +0 -10
- package/node_modules_lambda/form-data/package.json +0 -68
- package/node_modules_lambda/html-encoding-sniffer/LICENSE.txt +0 -7
- package/node_modules_lambda/html-encoding-sniffer/README.md +0 -40
- package/node_modules_lambda/html-encoding-sniffer/lib/html-encoding-sniffer.js +0 -295
- package/node_modules_lambda/html-encoding-sniffer/package.json +0 -31
- package/node_modules_lambda/http-proxy-agent/README.md +0 -74
- package/node_modules_lambda/http-proxy-agent/dist/agent.d.ts +0 -32
- package/node_modules_lambda/http-proxy-agent/dist/agent.js +0 -145
- package/node_modules_lambda/http-proxy-agent/dist/agent.js.map +0 -1
- package/node_modules_lambda/http-proxy-agent/dist/index.d.ts +0 -21
- package/node_modules_lambda/http-proxy-agent/dist/index.js +0 -14
- package/node_modules_lambda/http-proxy-agent/dist/index.js.map +0 -1
- package/node_modules_lambda/http-proxy-agent/package.json +0 -57
- package/node_modules_lambda/https-proxy-agent/README.md +0 -137
- package/node_modules_lambda/https-proxy-agent/dist/agent.d.ts +0 -30
- package/node_modules_lambda/https-proxy-agent/dist/agent.js +0 -177
- package/node_modules_lambda/https-proxy-agent/dist/agent.js.map +0 -1
- package/node_modules_lambda/https-proxy-agent/dist/index.d.ts +0 -23
- package/node_modules_lambda/https-proxy-agent/dist/index.js +0 -14
- package/node_modules_lambda/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
- package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js +0 -66
- package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules_lambda/https-proxy-agent/package.json +0 -56
- package/node_modules_lambda/is-potential-custom-element-name/LICENSE-MIT.txt +0 -20
- package/node_modules_lambda/is-potential-custom-element-name/README.md +0 -40
- package/node_modules_lambda/is-potential-custom-element-name/index.js +0 -9
- package/node_modules_lambda/is-potential-custom-element-name/package.json +0 -35
- package/node_modules_lambda/jsdom/LICENSE.txt +0 -22
- package/node_modules_lambda/jsdom/README.md +0 -522
- package/node_modules_lambda/jsdom/lib/api.js +0 -333
- package/node_modules_lambda/jsdom/lib/jsdom/browser/Window.js +0 -933
- package/node_modules_lambda/jsdom/lib/jsdom/browser/default-stylesheet.js +0 -789
- package/node_modules_lambda/jsdom/lib/jsdom/browser/js-globals.json +0 -307
- package/node_modules_lambda/jsdom/lib/jsdom/browser/not-implemented.js +0 -13
- package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/html.js +0 -224
- package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/index.js +0 -37
- package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/xml.js +0 -202
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +0 -114
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +0 -8
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +0 -95
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/request-manager.js +0 -33
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-loader.js +0 -142
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-queue.js +0 -142
- package/node_modules_lambda/jsdom/lib/jsdom/level2/style.js +0 -57
- package/node_modules_lambda/jsdom/lib/jsdom/level3/xpath.js +0 -1874
- package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +0 -17
- package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +0 -69
- package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/Attr-impl.js +0 -60
- package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +0 -78
- package/node_modules_lambda/jsdom/lib/jsdom/living/attributes.js +0 -312
- package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +0 -75
- package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +0 -66
- package/node_modules_lambda/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +0 -38
- package/node_modules_lambda/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +0 -265
- package/node_modules_lambda/jsdom/lib/jsdom/living/documents.js +0 -15
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +0 -58
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +0 -29
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +0 -18
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +0 -63
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/serialization.js +0 -45
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +0 -10
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +0 -20
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +0 -21
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +0 -14
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/Event-impl.js +0 -197
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +0 -18
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventTarget-impl.js +0 -405
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +0 -14
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/InputEvent-impl.js +0 -11
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +0 -29
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +0 -25
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +0 -49
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +0 -20
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +0 -14
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +0 -26
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +0 -14
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/UIEvent-impl.js +0 -59
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/Headers-impl.js +0 -170
- package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-list.js +0 -54
- package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-types.js +0 -103
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/Blob-impl.js +0 -93
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/File-impl.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileList-impl.js +0 -15
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +0 -130
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortController.js +0 -143
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortSignal.js +0 -184
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbstractRange.js +0 -171
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +0 -44
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +0 -28
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Attr.js +0 -217
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BarProp.js +0 -117
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BinaryType.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Blob.js +0 -203
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobCallback.js +0 -30
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +0 -42
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CDATASection.js +0 -109
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CharacterData.js +0 -453
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEvent.js +0 -168
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEventInit.js +0 -65
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Comment.js +0 -120
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEvent.js +0 -219
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +0 -32
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +0 -34
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +0 -242
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEvent.js +0 -206
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEventInit.js +0 -32
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMImplementation.js +0 -237
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMParser.js +0 -140
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMStringMap.js +0 -323
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMTokenList.js +0 -563
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Document.js +0 -3593
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentFragment.js +0 -334
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentType.js +0 -252
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Element.js +0 -1718
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +0 -26
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +0 -29
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EndingType.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEvent.js +0 -192
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +0 -92
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Event.js +0 -430
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +0 -36
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventInit.js +0 -58
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListener.js +0 -35
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +0 -28
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventModifierInit.js +0 -221
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventTarget.js +0 -259
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/External.js +0 -130
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/File.js +0 -177
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileList.js +0 -324
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +0 -33
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileReader.js +0 -468
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEvent.js +0 -144
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEventInit.js +0 -36
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FormData.js +0 -452
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Function.js +0 -42
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +0 -31
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +0 -1023
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +0 -822
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +0 -110
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +0 -193
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +0 -877
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +0 -522
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +0 -304
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCollection.js +0 -378
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +0 -156
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +0 -125
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +0 -156
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +0 -156
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +0 -156
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLElement.js +0 -2549
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +0 -371
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +0 -329
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +0 -236
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +0 -501
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +0 -494
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +0 -708
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +0 -320
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +0 -110
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +0 -670
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +0 -870
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +0 -1875
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +0 -199
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +0 -179
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +0 -166
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +0 -542
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +0 -168
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +0 -546
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +0 -888
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +0 -156
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +0 -276
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +0 -365
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLModElement.js +0 -207
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +0 -281
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +0 -921
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +0 -197
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +0 -376
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +0 -537
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +0 -392
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +0 -276
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +0 -110
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +0 -158
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +0 -218
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +0 -166
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +0 -459
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +0 -1013
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +0 -192
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +0 -330
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +0 -110
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +0 -207
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +0 -700
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +0 -364
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +0 -799
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +0 -414
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +0 -346
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +0 -123
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +0 -1171
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +0 -153
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +0 -152
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +0 -356
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +0 -197
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +0 -109
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +0 -329
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +0 -157
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +0 -50
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Headers.js +0 -408
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/History.js +0 -266
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEvent.js +0 -168
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEventInit.js +0 -68
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +0 -445
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +0 -116
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Location.js +0 -404
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEvent.js +0 -317
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEventInit.js +0 -100
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeType.js +0 -156
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +0 -352
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEvent.js +0 -499
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEventInit.js +0 -111
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationCallback.js +0 -34
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserver.js +0 -178
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +0 -121
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationRecord.js +0 -229
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +0 -553
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Navigator.js +0 -326
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Node.js +0 -763
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeFilter.js +0 -75
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeIterator.js +0 -207
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeList.js +0 -328
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +0 -42
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +0 -56
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +0 -144
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +0 -35
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Performance.js +0 -142
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Plugin.js +0 -385
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PluginArray.js +0 -362
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEvent.js +0 -144
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +0 -32
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +0 -122
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEvent.js +0 -170
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +0 -65
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Range.js +0 -641
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +0 -149
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +0 -64
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGElement.js +0 -2227
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +0 -139
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGNumber.js +0 -132
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +0 -737
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGStringList.js +0 -537
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +0 -109
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Screen.js +0 -180
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +0 -45
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +0 -14
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollOptions.js +0 -30
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Selection.js +0 -569
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SelectionMode.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRoot.js +0 -187
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +0 -30
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRange.js +0 -123
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +0 -72
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Storage.js +0 -423
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEvent.js +0 -318
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEventInit.js +0 -99
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StyleSheetList.js +0 -326
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SupportedType.js +0 -18
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Text.js +0 -170
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TextTrackKind.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEvent.js +0 -222
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEventInit.js +0 -89
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TreeWalker.js +0 -255
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEvent.js +0 -235
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEventInit.js +0 -62
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ValidityState.js +0 -249
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VisibilityState.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VoidFunction.js +0 -26
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WebSocket.js +0 -476
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEvent.js +0 -191
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEventInit.js +0 -71
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLDocument.js +0 -109
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +0 -655
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +0 -334
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +0 -14
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +0 -109
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLSerializer.js +0 -132
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/utils.js +0 -190
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/agent-factory.js +0 -15
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/binary-data.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-element.js +0 -320
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +0 -188
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/custom-elements.js +0 -270
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/dates-and-times.js +0 -270
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/details.js +0 -15
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/document-base-url.js +0 -54
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/events.js +0 -24
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/focusing.js +0 -104
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/form-controls.js +0 -306
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/html-constructor.js +0 -78
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/http-request.js +0 -254
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/internal-constants.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +0 -48
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/json.js +0 -12
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/mutation-observers.js +0 -198
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/namespaces.js +0 -15
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/node.js +0 -68
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +0 -195
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/ordered-set.js +0 -104
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/page-transition-event.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +0 -76
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/selectors.js +0 -47
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/shadow-dom.js +0 -285
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/strings.js +0 -148
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/style-rules.js +0 -114
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/stylesheets.js +0 -113
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +0 -41
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/render.js +0 -46
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/text.js +0 -19
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/traversal.js +0 -72
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/validate-names.js +0 -65
- package/node_modules_lambda/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +0 -25
- package/node_modules_lambda/jsdom/lib/jsdom/living/interfaces.js +0 -217
- package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +0 -95
- package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +0 -37
- package/node_modules_lambda/jsdom/lib/jsdom/living/named-properties-window.js +0 -141
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +0 -3
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +0 -21
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +0 -29
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +0 -8
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +0 -7
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +0 -37
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +0 -7
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +0 -8
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +0 -3
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +0 -23
- package/node_modules_lambda/jsdom/lib/jsdom/living/node-document-position.js +0 -10
- package/node_modules_lambda/jsdom/lib/jsdom/living/node-type.js +0 -16
- package/node_modules_lambda/jsdom/lib/jsdom/living/node.js +0 -331
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +0 -16
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +0 -118
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +0 -80
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Comment-impl.js +0 -20
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +0 -120
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +0 -64
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +0 -171
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Document-impl.js +0 -946
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +0 -44
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +0 -28
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +0 -24
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Element-impl.js +0 -582
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +0 -25
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +0 -7
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +0 -95
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +0 -50
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +0 -43
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +0 -27
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +0 -17
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +0 -79
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +0 -130
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +0 -96
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +0 -20
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +0 -35
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +0 -160
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +0 -8
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +0 -43
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +0 -232
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +0 -261
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +0 -17
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +0 -371
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +0 -132
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +0 -1129
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +0 -94
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +0 -18
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +0 -101
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +0 -13
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +0 -138
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +0 -180
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +0 -22
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +0 -26
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +0 -146
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +0 -110
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +0 -85
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +0 -88
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +0 -74
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +0 -265
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +0 -283
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +0 -59
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +0 -8
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +0 -74
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +0 -73
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +0 -236
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +0 -88
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +0 -61
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +0 -67
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +0 -272
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +0 -18
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +0 -13
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +0 -17
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +0 -2
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Node-impl.js +0 -1159
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +0 -43
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +0 -28
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +0 -11
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +0 -91
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +0 -22
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +0 -64
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +0 -16
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +0 -42
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +0 -42
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +0 -40
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +0 -48
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Text-impl.js +0 -96
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +0 -52
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +0 -4
- package/node_modules_lambda/jsdom/lib/jsdom/living/post-message.js +0 -39
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +0 -43
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/Range-impl.js +0 -897
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/StaticRange-impl.js +0 -39
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/boundary-point.js +0 -47
- package/node_modules_lambda/jsdom/lib/jsdom/living/selection/Selection-impl.js +0 -342
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +0 -38
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGListBase.js +0 -195
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +0 -48
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +0 -16
- package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +0 -127
- package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +0 -217
- package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/helpers.js +0 -44
- package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +0 -175
- package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +0 -328
- package/node_modules_lambda/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +0 -102
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/BarProp-impl.js +0 -10
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/External-impl.js +0 -9
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/History-impl.js +0 -134
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/Location-impl.js +0 -238
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/Screen-impl.js +0 -13
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/SessionHistory.js +0 -163
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/navigation.js +0 -85
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/FormData-impl.js +0 -171
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +0 -1023
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +0 -17
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +0 -4
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +0 -60
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-utils.js +0 -438
- package/node_modules_lambda/jsdom/lib/jsdom/named-properties-tracker.js +0 -158
- package/node_modules_lambda/jsdom/lib/jsdom/utils.js +0 -165
- package/node_modules_lambda/jsdom/lib/jsdom/virtual-console.js +0 -34
- package/node_modules_lambda/jsdom/lib/jsdom/vm-shim.js +0 -106
- package/node_modules_lambda/jsdom/package.json +0 -116
- package/node_modules_lambda/mime-db/HISTORY.md +0 -507
- package/node_modules_lambda/mime-db/LICENSE +0 -23
- package/node_modules_lambda/mime-db/README.md +0 -100
- package/node_modules_lambda/mime-db/db.json +0 -8519
- package/node_modules_lambda/mime-db/index.js +0 -12
- package/node_modules_lambda/mime-db/package.json +0 -60
- package/node_modules_lambda/mime-types/HISTORY.md +0 -397
- package/node_modules_lambda/mime-types/LICENSE +0 -23
- package/node_modules_lambda/mime-types/README.md +0 -113
- package/node_modules_lambda/mime-types/index.js +0 -188
- package/node_modules_lambda/mime-types/package.json +0 -44
- package/node_modules_lambda/ms/index.js +0 -162
- package/node_modules_lambda/ms/license.md +0 -21
- package/node_modules_lambda/ms/package.json +0 -37
- package/node_modules_lambda/ms/readme.md +0 -60
- package/node_modules_lambda/nwsapi/LICENSE +0 -22
- package/node_modules_lambda/nwsapi/README.md +0 -132
- package/node_modules_lambda/nwsapi/dist/lint.log +0 -0
- package/node_modules_lambda/nwsapi/package.json +0 -38
- package/node_modules_lambda/nwsapi/src/modules/nwsapi-jquery.js +0 -135
- package/node_modules_lambda/nwsapi/src/modules/nwsapi-traversal.js +0 -90
- package/node_modules_lambda/nwsapi/src/nwsapi.js +0 -1800
- package/node_modules_lambda/parse5/LICENSE +0 -19
- package/node_modules_lambda/parse5/README.md +0 -38
- package/node_modules_lambda/parse5/lib/common/doctype.js +0 -162
- package/node_modules_lambda/parse5/lib/common/error-codes.js +0 -65
- package/node_modules_lambda/parse5/lib/common/foreign-content.js +0 -265
- package/node_modules_lambda/parse5/lib/common/html.js +0 -272
- package/node_modules_lambda/parse5/lib/common/unicode.js +0 -109
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
- package/node_modules_lambda/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
- package/node_modules_lambda/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
- package/node_modules_lambda/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
- package/node_modules_lambda/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
- package/node_modules_lambda/parse5/lib/index.js +0 -29
- package/node_modules_lambda/parse5/lib/parser/formatting-element-list.js +0 -181
- package/node_modules_lambda/parse5/lib/parser/index.js +0 -2956
- package/node_modules_lambda/parse5/lib/parser/open-element-stack.js +0 -482
- package/node_modules_lambda/parse5/lib/serializer/index.js +0 -176
- package/node_modules_lambda/parse5/lib/tokenizer/index.js +0 -2196
- package/node_modules_lambda/parse5/lib/tokenizer/named-entity-data.js +0 -5
- package/node_modules_lambda/parse5/lib/tokenizer/preprocessor.js +0 -159
- package/node_modules_lambda/parse5/lib/tree-adapters/default.js +0 -221
- package/node_modules_lambda/parse5/lib/utils/merge-options.js +0 -13
- package/node_modules_lambda/parse5/lib/utils/mixin.js +0 -39
- package/node_modules_lambda/parse5/package.json +0 -35
- package/node_modules_lambda/psl/LICENSE +0 -9
- package/node_modules_lambda/psl/README.md +0 -215
- package/node_modules_lambda/psl/browserstack-logo.svg +0 -90
- package/node_modules_lambda/psl/data/rules.json +0 -8834
- package/node_modules_lambda/psl/dist/psl.js +0 -9645
- package/node_modules_lambda/psl/dist/psl.min.js +0 -1
- package/node_modules_lambda/psl/index.js +0 -269
- package/node_modules_lambda/psl/package.json +0 -44
- package/node_modules_lambda/punycode/LICENSE-MIT.txt +0 -20
- package/node_modules_lambda/punycode/README.md +0 -122
- package/node_modules_lambda/punycode/package.json +0 -58
- package/node_modules_lambda/punycode/punycode.es6.js +0 -441
- package/node_modules_lambda/punycode/punycode.js +0 -440
- package/node_modules_lambda/safer-buffer/LICENSE +0 -21
- package/node_modules_lambda/safer-buffer/Porting-Buffer.md +0 -268
- package/node_modules_lambda/safer-buffer/Readme.md +0 -156
- package/node_modules_lambda/safer-buffer/dangerous.js +0 -58
- package/node_modules_lambda/safer-buffer/package.json +0 -34
- package/node_modules_lambda/safer-buffer/safer.js +0 -77
- package/node_modules_lambda/safer-buffer/tests.js +0 -406
- package/node_modules_lambda/saxes/README.md +0 -323
- package/node_modules_lambda/saxes/package.json +0 -70
- package/node_modules_lambda/saxes/saxes.d.ts +0 -635
- package/node_modules_lambda/saxes/saxes.js +0 -2064
- package/node_modules_lambda/saxes/saxes.js.map +0 -1
- package/node_modules_lambda/symbol-tree/LICENSE +0 -21
- package/node_modules_lambda/symbol-tree/README.md +0 -545
- package/node_modules_lambda/symbol-tree/lib/SymbolTree.js +0 -838
- package/node_modules_lambda/symbol-tree/lib/SymbolTreeNode.js +0 -54
- package/node_modules_lambda/symbol-tree/lib/TreeIterator.js +0 -69
- package/node_modules_lambda/symbol-tree/lib/TreePosition.js +0 -11
- package/node_modules_lambda/symbol-tree/package.json +0 -47
- package/node_modules_lambda/tough-cookie/LICENSE +0 -12
- package/node_modules_lambda/tough-cookie/README.md +0 -582
- package/node_modules_lambda/tough-cookie/lib/cookie.js +0 -1671
- package/node_modules_lambda/tough-cookie/lib/memstore.js +0 -190
- package/node_modules_lambda/tough-cookie/lib/pathMatch.js +0 -61
- package/node_modules_lambda/tough-cookie/lib/permuteDomain.js +0 -70
- package/node_modules_lambda/tough-cookie/lib/pubsuffix-psl.js +0 -38
- package/node_modules_lambda/tough-cookie/lib/store.js +0 -76
- package/node_modules_lambda/tough-cookie/lib/version.js +0 -2
- package/node_modules_lambda/tough-cookie/package.json +0 -109
- package/node_modules_lambda/tr46/LICENSE.md +0 -21
- package/node_modules_lambda/tr46/README.md +0 -78
- package/node_modules_lambda/tr46/index.js +0 -298
- package/node_modules_lambda/tr46/lib/mappingTable.json +0 -1
- package/node_modules_lambda/tr46/lib/regexes.js +0 -29
- package/node_modules_lambda/tr46/lib/statusMapping.js +0 -11
- package/node_modules_lambda/tr46/package.json +0 -47
- package/node_modules_lambda/universalify/LICENSE +0 -20
- package/node_modules_lambda/universalify/README.md +0 -76
- package/node_modules_lambda/universalify/index.js +0 -25
- package/node_modules_lambda/universalify/package.json +0 -34
- package/node_modules_lambda/w3c-hr-time/CHANGELOG.md +0 -19
- package/node_modules_lambda/w3c-hr-time/LICENSE.md +0 -21
- package/node_modules_lambda/w3c-hr-time/README.md +0 -130
- package/node_modules_lambda/w3c-hr-time/index.js +0 -11
- package/node_modules_lambda/w3c-hr-time/lib/calculate-clock-offset.js +0 -39
- package/node_modules_lambda/w3c-hr-time/lib/clock-is-accurate.js +0 -61
- package/node_modules_lambda/w3c-hr-time/lib/global-monotonic-clock.js +0 -10
- package/node_modules_lambda/w3c-hr-time/lib/performance.js +0 -53
- package/node_modules_lambda/w3c-hr-time/lib/utils.js +0 -11
- package/node_modules_lambda/w3c-hr-time/package.json +0 -26
- package/node_modules_lambda/w3c-xmlserializer/LICENSE.md +0 -25
- package/node_modules_lambda/w3c-xmlserializer/README.md +0 -41
- package/node_modules_lambda/w3c-xmlserializer/lib/attributes.js +0 -125
- package/node_modules_lambda/w3c-xmlserializer/lib/constants.js +0 -44
- package/node_modules_lambda/w3c-xmlserializer/lib/serialize.js +0 -365
- package/node_modules_lambda/w3c-xmlserializer/package.json +0 -33
- package/node_modules_lambda/webidl-conversions/LICENSE.md +0 -12
- package/node_modules_lambda/webidl-conversions/README.md +0 -99
- package/node_modules_lambda/webidl-conversions/lib/index.js +0 -450
- package/node_modules_lambda/webidl-conversions/package.json +0 -35
- package/node_modules_lambda/whatwg-encoding/LICENSE.txt +0 -7
- package/node_modules_lambda/whatwg-encoding/README.md +0 -50
- package/node_modules_lambda/whatwg-encoding/lib/labels-to-names.json +0 -216
- package/node_modules_lambda/whatwg-encoding/lib/supported-names.json +0 -37
- package/node_modules_lambda/whatwg-encoding/lib/whatwg-encoding.js +0 -47
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/.github/dependabot.yml +0 -11
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/Changelog.md +0 -212
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/LICENSE +0 -21
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/README.md +0 -130
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -597
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +0 -188
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +0 -23
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +0 -198
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +0 -179
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +0 -197
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf32.js +0 -319
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +0 -290
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.d.ts +0 -41
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.js +0 -180
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +0 -109
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/package.json +0 -44
- package/node_modules_lambda/whatwg-encoding/package.json +0 -33
- package/node_modules_lambda/whatwg-mimetype/LICENSE.txt +0 -7
- package/node_modules_lambda/whatwg-mimetype/README.md +0 -101
- package/node_modules_lambda/whatwg-mimetype/lib/mime-type-parameters.js +0 -70
- package/node_modules_lambda/whatwg-mimetype/lib/mime-type.js +0 -127
- package/node_modules_lambda/whatwg-mimetype/lib/parser.js +0 -105
- package/node_modules_lambda/whatwg-mimetype/lib/serializer.js +0 -25
- package/node_modules_lambda/whatwg-mimetype/lib/utils.js +0 -60
- package/node_modules_lambda/whatwg-mimetype/package.json +0 -47
- package/node_modules_lambda/whatwg-url/LICENSE.txt +0 -21
- package/node_modules_lambda/whatwg-url/README.md +0 -105
- package/node_modules_lambda/whatwg-url/index.js +0 -25
- package/node_modules_lambda/whatwg-url/lib/Function.js +0 -42
- package/node_modules_lambda/whatwg-url/lib/URL-impl.js +0 -217
- package/node_modules_lambda/whatwg-url/lib/URL.js +0 -442
- package/node_modules_lambda/whatwg-url/lib/URLSearchParams-impl.js +0 -130
- package/node_modules_lambda/whatwg-url/lib/URLSearchParams.js +0 -472
- package/node_modules_lambda/whatwg-url/lib/VoidFunction.js +0 -26
- package/node_modules_lambda/whatwg-url/lib/encoding.js +0 -16
- package/node_modules_lambda/whatwg-url/lib/infra.js +0 -26
- package/node_modules_lambda/whatwg-url/lib/percent-encoding.js +0 -142
- package/node_modules_lambda/whatwg-url/lib/url-state-machine.js +0 -1234
- package/node_modules_lambda/whatwg-url/lib/urlencoded.js +0 -106
- package/node_modules_lambda/whatwg-url/lib/utils.js +0 -190
- package/node_modules_lambda/whatwg-url/package.json +0 -58
- package/node_modules_lambda/whatwg-url/webidl2js-wrapper.js +0 -7
- package/node_modules_lambda/word-wrap/LICENSE +0 -21
- package/node_modules_lambda/word-wrap/README.md +0 -182
- package/node_modules_lambda/word-wrap/index.d.ts +0 -50
- package/node_modules_lambda/word-wrap/index.js +0 -46
- package/node_modules_lambda/word-wrap/package.json +0 -77
- package/node_modules_lambda/ws/LICENSE +0 -19
- package/node_modules_lambda/ws/README.md +0 -495
- package/node_modules_lambda/ws/browser.js +0 -8
- package/node_modules_lambda/ws/index.js +0 -13
- package/node_modules_lambda/ws/lib/buffer-util.js +0 -127
- package/node_modules_lambda/ws/lib/constants.js +0 -12
- package/node_modules_lambda/ws/lib/event-target.js +0 -266
- package/node_modules_lambda/ws/lib/extension.js +0 -203
- package/node_modules_lambda/ws/lib/limiter.js +0 -55
- package/node_modules_lambda/ws/lib/permessage-deflate.js +0 -511
- package/node_modules_lambda/ws/lib/receiver.js +0 -618
- package/node_modules_lambda/ws/lib/sender.js +0 -478
- package/node_modules_lambda/ws/lib/stream.js +0 -159
- package/node_modules_lambda/ws/lib/subprotocol.js +0 -62
- package/node_modules_lambda/ws/lib/validation.js +0 -125
- package/node_modules_lambda/ws/lib/websocket-server.js +0 -535
- package/node_modules_lambda/ws/lib/websocket.js +0 -1296
- package/node_modules_lambda/ws/package.json +0 -61
- package/node_modules_lambda/ws/wrapper.mjs +0 -8
- package/node_modules_lambda/xml-name-validator/LICENSE.txt +0 -176
- package/node_modules_lambda/xml-name-validator/README.md +0 -35
- package/node_modules_lambda/xml-name-validator/lib/xml-name-validator.js +0 -9
- package/node_modules_lambda/xml-name-validator/package.json +0 -30
- package/node_modules_lambda/xmlchars/LICENSE +0 -18
- package/node_modules_lambda/xmlchars/README.md +0 -33
- package/node_modules_lambda/xmlchars/package.json +0 -51
- package/node_modules_lambda/xmlchars/xml/1.0/ed4.d.ts +0 -31
- package/node_modules_lambda/xmlchars/xml/1.0/ed4.js +0 -44
- package/node_modules_lambda/xmlchars/xml/1.0/ed4.js.map +0 -1
- package/node_modules_lambda/xmlchars/xml/1.0/ed5.d.ts +0 -51
- package/node_modules_lambda/xmlchars/xml/1.0/ed5.js +0 -105
- package/node_modules_lambda/xmlchars/xml/1.0/ed5.js.map +0 -1
- package/node_modules_lambda/xmlchars/xml/1.1/ed2.d.ts +0 -73
- package/node_modules_lambda/xmlchars/xml/1.1/ed2.js +0 -145
- package/node_modules_lambda/xmlchars/xml/1.1/ed2.js.map +0 -1
- package/node_modules_lambda/xmlchars/xmlchars.d.ts +0 -170
- package/node_modules_lambda/xmlchars/xmlchars.js +0 -191
- package/node_modules_lambda/xmlchars/xmlchars.js.map +0 -1
- package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.d.ts +0 -28
- package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js +0 -65
- package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js.map +0 -1
|
@@ -1,1671 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015, Salesforce.com, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Redistribution and use in source and binary forms, with or without
|
|
6
|
-
* modification, are permitted provided that the following conditions are met:
|
|
7
|
-
*
|
|
8
|
-
* 1. Redistributions of source code must retain the above copyright notice,
|
|
9
|
-
* this list of conditions and the following disclaimer.
|
|
10
|
-
*
|
|
11
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
13
|
-
* and/or other materials provided with the distribution.
|
|
14
|
-
*
|
|
15
|
-
* 3. Neither the name of Salesforce.com nor the names of its contributors may
|
|
16
|
-
* be used to endorse or promote products derived from this software without
|
|
17
|
-
* specific prior written permission.
|
|
18
|
-
*
|
|
19
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
23
|
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
-
* POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
*/
|
|
31
|
-
"use strict";
|
|
32
|
-
const punycode = require("punycode");
|
|
33
|
-
const urlParse = require("url").parse;
|
|
34
|
-
const util = require("util");
|
|
35
|
-
const pubsuffix = require("./pubsuffix-psl");
|
|
36
|
-
const Store = require("./store").Store;
|
|
37
|
-
const MemoryCookieStore = require("./memstore").MemoryCookieStore;
|
|
38
|
-
const pathMatch = require("./pathMatch").pathMatch;
|
|
39
|
-
const VERSION = require("./version");
|
|
40
|
-
const { fromCallback } = require("universalify");
|
|
41
|
-
|
|
42
|
-
// From RFC6265 S4.1.1
|
|
43
|
-
// note that it excludes \x3B ";"
|
|
44
|
-
const COOKIE_OCTETS = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/;
|
|
45
|
-
|
|
46
|
-
const CONTROL_CHARS = /[\x00-\x1F]/;
|
|
47
|
-
|
|
48
|
-
// From Chromium // '\r', '\n' and '\0' should be treated as a terminator in
|
|
49
|
-
// the "relaxed" mode, see:
|
|
50
|
-
// https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/parsed_cookie.cc#L60
|
|
51
|
-
const TERMINATORS = ["\n", "\r", "\0"];
|
|
52
|
-
|
|
53
|
-
// RFC6265 S4.1.1 defines path value as 'any CHAR except CTLs or ";"'
|
|
54
|
-
// Note ';' is \x3B
|
|
55
|
-
const PATH_VALUE = /[\x20-\x3A\x3C-\x7E]+/;
|
|
56
|
-
|
|
57
|
-
// date-time parsing constants (RFC6265 S5.1.1)
|
|
58
|
-
|
|
59
|
-
const DATE_DELIM = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/;
|
|
60
|
-
|
|
61
|
-
const MONTH_TO_NUM = {
|
|
62
|
-
jan: 0,
|
|
63
|
-
feb: 1,
|
|
64
|
-
mar: 2,
|
|
65
|
-
apr: 3,
|
|
66
|
-
may: 4,
|
|
67
|
-
jun: 5,
|
|
68
|
-
jul: 6,
|
|
69
|
-
aug: 7,
|
|
70
|
-
sep: 8,
|
|
71
|
-
oct: 9,
|
|
72
|
-
nov: 10,
|
|
73
|
-
dec: 11
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const MAX_TIME = 2147483647000; // 31-bit max
|
|
77
|
-
const MIN_TIME = 0; // 31-bit min
|
|
78
|
-
const SAME_SITE_CONTEXT_VAL_ERR =
|
|
79
|
-
'Invalid sameSiteContext option for getCookies(); expected one of "strict", "lax", or "none"';
|
|
80
|
-
|
|
81
|
-
function checkSameSiteContext(value) {
|
|
82
|
-
const context = String(value).toLowerCase();
|
|
83
|
-
if (context === "none" || context === "lax" || context === "strict") {
|
|
84
|
-
return context;
|
|
85
|
-
} else {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const PrefixSecurityEnum = Object.freeze({
|
|
91
|
-
SILENT: "silent",
|
|
92
|
-
STRICT: "strict",
|
|
93
|
-
DISABLED: "unsafe-disabled"
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
// Dumped from ip-regex@4.0.0, with the following changes:
|
|
97
|
-
// * all capturing groups converted to non-capturing -- "(?:)"
|
|
98
|
-
// * support for IPv6 Scoped Literal ("%eth1") removed
|
|
99
|
-
// * lowercase hexadecimal only
|
|
100
|
-
var IP_REGEX_LOWERCASE =/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/;
|
|
101
|
-
|
|
102
|
-
/*
|
|
103
|
-
* Parses a Natural number (i.e., non-negative integer) with either the
|
|
104
|
-
* <min>*<max>DIGIT ( non-digit *OCTET )
|
|
105
|
-
* or
|
|
106
|
-
* <min>*<max>DIGIT
|
|
107
|
-
* grammar (RFC6265 S5.1.1).
|
|
108
|
-
*
|
|
109
|
-
* The "trailingOK" boolean controls if the grammar accepts a
|
|
110
|
-
* "( non-digit *OCTET )" trailer.
|
|
111
|
-
*/
|
|
112
|
-
function parseDigits(token, minDigits, maxDigits, trailingOK) {
|
|
113
|
-
let count = 0;
|
|
114
|
-
while (count < token.length) {
|
|
115
|
-
const c = token.charCodeAt(count);
|
|
116
|
-
// "non-digit = %x00-2F / %x3A-FF"
|
|
117
|
-
if (c <= 0x2f || c >= 0x3a) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
count++;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// constrain to a minimum and maximum number of digits.
|
|
124
|
-
if (count < minDigits || count > maxDigits) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (!trailingOK && count != token.length) {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return parseInt(token.substr(0, count), 10);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function parseTime(token) {
|
|
136
|
-
const parts = token.split(":");
|
|
137
|
-
const result = [0, 0, 0];
|
|
138
|
-
|
|
139
|
-
/* RF6256 S5.1.1:
|
|
140
|
-
* time = hms-time ( non-digit *OCTET )
|
|
141
|
-
* hms-time = time-field ":" time-field ":" time-field
|
|
142
|
-
* time-field = 1*2DIGIT
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
if (parts.length !== 3) {
|
|
146
|
-
return null;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
for (let i = 0; i < 3; i++) {
|
|
150
|
-
// "time-field" must be strictly "1*2DIGIT", HOWEVER, "hms-time" can be
|
|
151
|
-
// followed by "( non-digit *OCTET )" so therefore the last time-field can
|
|
152
|
-
// have a trailer
|
|
153
|
-
const trailingOK = i == 2;
|
|
154
|
-
const num = parseDigits(parts[i], 1, 2, trailingOK);
|
|
155
|
-
if (num === null) {
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
result[i] = num;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return result;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function parseMonth(token) {
|
|
165
|
-
token = String(token)
|
|
166
|
-
.substr(0, 3)
|
|
167
|
-
.toLowerCase();
|
|
168
|
-
const num = MONTH_TO_NUM[token];
|
|
169
|
-
return num >= 0 ? num : null;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/*
|
|
173
|
-
* RFC6265 S5.1.1 date parser (see RFC for full grammar)
|
|
174
|
-
*/
|
|
175
|
-
function parseDate(str) {
|
|
176
|
-
if (!str) {
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* RFC6265 S5.1.1:
|
|
181
|
-
* 2. Process each date-token sequentially in the order the date-tokens
|
|
182
|
-
* appear in the cookie-date
|
|
183
|
-
*/
|
|
184
|
-
const tokens = str.split(DATE_DELIM);
|
|
185
|
-
if (!tokens) {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
let hour = null;
|
|
190
|
-
let minute = null;
|
|
191
|
-
let second = null;
|
|
192
|
-
let dayOfMonth = null;
|
|
193
|
-
let month = null;
|
|
194
|
-
let year = null;
|
|
195
|
-
|
|
196
|
-
for (let i = 0; i < tokens.length; i++) {
|
|
197
|
-
const token = tokens[i].trim();
|
|
198
|
-
if (!token.length) {
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
let result;
|
|
203
|
-
|
|
204
|
-
/* 2.1. If the found-time flag is not set and the token matches the time
|
|
205
|
-
* production, set the found-time flag and set the hour- value,
|
|
206
|
-
* minute-value, and second-value to the numbers denoted by the digits in
|
|
207
|
-
* the date-token, respectively. Skip the remaining sub-steps and continue
|
|
208
|
-
* to the next date-token.
|
|
209
|
-
*/
|
|
210
|
-
if (second === null) {
|
|
211
|
-
result = parseTime(token);
|
|
212
|
-
if (result) {
|
|
213
|
-
hour = result[0];
|
|
214
|
-
minute = result[1];
|
|
215
|
-
second = result[2];
|
|
216
|
-
continue;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/* 2.2. If the found-day-of-month flag is not set and the date-token matches
|
|
221
|
-
* the day-of-month production, set the found-day-of- month flag and set
|
|
222
|
-
* the day-of-month-value to the number denoted by the date-token. Skip
|
|
223
|
-
* the remaining sub-steps and continue to the next date-token.
|
|
224
|
-
*/
|
|
225
|
-
if (dayOfMonth === null) {
|
|
226
|
-
// "day-of-month = 1*2DIGIT ( non-digit *OCTET )"
|
|
227
|
-
result = parseDigits(token, 1, 2, true);
|
|
228
|
-
if (result !== null) {
|
|
229
|
-
dayOfMonth = result;
|
|
230
|
-
continue;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* 2.3. If the found-month flag is not set and the date-token matches the
|
|
235
|
-
* month production, set the found-month flag and set the month-value to
|
|
236
|
-
* the month denoted by the date-token. Skip the remaining sub-steps and
|
|
237
|
-
* continue to the next date-token.
|
|
238
|
-
*/
|
|
239
|
-
if (month === null) {
|
|
240
|
-
result = parseMonth(token);
|
|
241
|
-
if (result !== null) {
|
|
242
|
-
month = result;
|
|
243
|
-
continue;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/* 2.4. If the found-year flag is not set and the date-token matches the
|
|
248
|
-
* year production, set the found-year flag and set the year-value to the
|
|
249
|
-
* number denoted by the date-token. Skip the remaining sub-steps and
|
|
250
|
-
* continue to the next date-token.
|
|
251
|
-
*/
|
|
252
|
-
if (year === null) {
|
|
253
|
-
// "year = 2*4DIGIT ( non-digit *OCTET )"
|
|
254
|
-
result = parseDigits(token, 2, 4, true);
|
|
255
|
-
if (result !== null) {
|
|
256
|
-
year = result;
|
|
257
|
-
/* From S5.1.1:
|
|
258
|
-
* 3. If the year-value is greater than or equal to 70 and less
|
|
259
|
-
* than or equal to 99, increment the year-value by 1900.
|
|
260
|
-
* 4. If the year-value is greater than or equal to 0 and less
|
|
261
|
-
* than or equal to 69, increment the year-value by 2000.
|
|
262
|
-
*/
|
|
263
|
-
if (year >= 70 && year <= 99) {
|
|
264
|
-
year += 1900;
|
|
265
|
-
} else if (year >= 0 && year <= 69) {
|
|
266
|
-
year += 2000;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/* RFC 6265 S5.1.1
|
|
273
|
-
* "5. Abort these steps and fail to parse the cookie-date if:
|
|
274
|
-
* * at least one of the found-day-of-month, found-month, found-
|
|
275
|
-
* year, or found-time flags is not set,
|
|
276
|
-
* * the day-of-month-value is less than 1 or greater than 31,
|
|
277
|
-
* * the year-value is less than 1601,
|
|
278
|
-
* * the hour-value is greater than 23,
|
|
279
|
-
* * the minute-value is greater than 59, or
|
|
280
|
-
* * the second-value is greater than 59.
|
|
281
|
-
* (Note that leap seconds cannot be represented in this syntax.)"
|
|
282
|
-
*
|
|
283
|
-
* So, in order as above:
|
|
284
|
-
*/
|
|
285
|
-
if (
|
|
286
|
-
dayOfMonth === null ||
|
|
287
|
-
month === null ||
|
|
288
|
-
year === null ||
|
|
289
|
-
second === null ||
|
|
290
|
-
dayOfMonth < 1 ||
|
|
291
|
-
dayOfMonth > 31 ||
|
|
292
|
-
year < 1601 ||
|
|
293
|
-
hour > 23 ||
|
|
294
|
-
minute > 59 ||
|
|
295
|
-
second > 59
|
|
296
|
-
) {
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
return new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
function formatDate(date) {
|
|
304
|
-
return date.toUTCString();
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
// S5.1.2 Canonicalized Host Names
|
|
308
|
-
function canonicalDomain(str) {
|
|
309
|
-
if (str == null) {
|
|
310
|
-
return null;
|
|
311
|
-
}
|
|
312
|
-
str = str.trim().replace(/^\./, ""); // S4.1.2.3 & S5.2.3: ignore leading .
|
|
313
|
-
|
|
314
|
-
// convert to IDN if any non-ASCII characters
|
|
315
|
-
if (punycode && /[^\u0001-\u007f]/.test(str)) {
|
|
316
|
-
str = punycode.toASCII(str);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
return str.toLowerCase();
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
// S5.1.3 Domain Matching
|
|
323
|
-
function domainMatch(str, domStr, canonicalize) {
|
|
324
|
-
if (str == null || domStr == null) {
|
|
325
|
-
return null;
|
|
326
|
-
}
|
|
327
|
-
if (canonicalize !== false) {
|
|
328
|
-
str = canonicalDomain(str);
|
|
329
|
-
domStr = canonicalDomain(domStr);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/*
|
|
333
|
-
* S5.1.3:
|
|
334
|
-
* "A string domain-matches a given domain string if at least one of the
|
|
335
|
-
* following conditions hold:"
|
|
336
|
-
*
|
|
337
|
-
* " o The domain string and the string are identical. (Note that both the
|
|
338
|
-
* domain string and the string will have been canonicalized to lower case at
|
|
339
|
-
* this point)"
|
|
340
|
-
*/
|
|
341
|
-
if (str == domStr) {
|
|
342
|
-
return true;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/* " o All of the following [three] conditions hold:" */
|
|
346
|
-
|
|
347
|
-
/* "* The domain string is a suffix of the string" */
|
|
348
|
-
const idx = str.indexOf(domStr);
|
|
349
|
-
if (idx <= 0) {
|
|
350
|
-
return false; // it's a non-match (-1) or prefix (0)
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
// next, check it's a proper suffix
|
|
354
|
-
// e.g., "a.b.c".indexOf("b.c") === 2
|
|
355
|
-
// 5 === 3+2
|
|
356
|
-
if (str.length !== domStr.length + idx) {
|
|
357
|
-
return false; // it's not a suffix
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
/* " * The last character of the string that is not included in the
|
|
361
|
-
* domain string is a %x2E (".") character." */
|
|
362
|
-
if (str.substr(idx-1,1) !== '.') {
|
|
363
|
-
return false; // doesn't align on "."
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/* " * The string is a host name (i.e., not an IP address)." */
|
|
367
|
-
if (IP_REGEX_LOWERCASE.test(str)) {
|
|
368
|
-
return false; // it's an IP address
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
return true;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
// RFC6265 S5.1.4 Paths and Path-Match
|
|
375
|
-
|
|
376
|
-
/*
|
|
377
|
-
* "The user agent MUST use an algorithm equivalent to the following algorithm
|
|
378
|
-
* to compute the default-path of a cookie:"
|
|
379
|
-
*
|
|
380
|
-
* Assumption: the path (and not query part or absolute uri) is passed in.
|
|
381
|
-
*/
|
|
382
|
-
function defaultPath(path) {
|
|
383
|
-
// "2. If the uri-path is empty or if the first character of the uri-path is not
|
|
384
|
-
// a %x2F ("/") character, output %x2F ("/") and skip the remaining steps.
|
|
385
|
-
if (!path || path.substr(0, 1) !== "/") {
|
|
386
|
-
return "/";
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
// "3. If the uri-path contains no more than one %x2F ("/") character, output
|
|
390
|
-
// %x2F ("/") and skip the remaining step."
|
|
391
|
-
if (path === "/") {
|
|
392
|
-
return path;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
const rightSlash = path.lastIndexOf("/");
|
|
396
|
-
if (rightSlash === 0) {
|
|
397
|
-
return "/";
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
// "4. Output the characters of the uri-path from the first character up to,
|
|
401
|
-
// but not including, the right-most %x2F ("/")."
|
|
402
|
-
return path.slice(0, rightSlash);
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
function trimTerminator(str) {
|
|
406
|
-
for (let t = 0; t < TERMINATORS.length; t++) {
|
|
407
|
-
const terminatorIdx = str.indexOf(TERMINATORS[t]);
|
|
408
|
-
if (terminatorIdx !== -1) {
|
|
409
|
-
str = str.substr(0, terminatorIdx);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
return str;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
function parseCookiePair(cookiePair, looseMode) {
|
|
417
|
-
cookiePair = trimTerminator(cookiePair);
|
|
418
|
-
|
|
419
|
-
let firstEq = cookiePair.indexOf("=");
|
|
420
|
-
if (looseMode) {
|
|
421
|
-
if (firstEq === 0) {
|
|
422
|
-
// '=' is immediately at start
|
|
423
|
-
cookiePair = cookiePair.substr(1);
|
|
424
|
-
firstEq = cookiePair.indexOf("="); // might still need to split on '='
|
|
425
|
-
}
|
|
426
|
-
} else {
|
|
427
|
-
// non-loose mode
|
|
428
|
-
if (firstEq <= 0) {
|
|
429
|
-
// no '=' or is at start
|
|
430
|
-
return; // needs to have non-empty "cookie-name"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
let cookieName, cookieValue;
|
|
435
|
-
if (firstEq <= 0) {
|
|
436
|
-
cookieName = "";
|
|
437
|
-
cookieValue = cookiePair.trim();
|
|
438
|
-
} else {
|
|
439
|
-
cookieName = cookiePair.substr(0, firstEq).trim();
|
|
440
|
-
cookieValue = cookiePair.substr(firstEq + 1).trim();
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
if (CONTROL_CHARS.test(cookieName) || CONTROL_CHARS.test(cookieValue)) {
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
const c = new Cookie();
|
|
448
|
-
c.key = cookieName;
|
|
449
|
-
c.value = cookieValue;
|
|
450
|
-
return c;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
function parse(str, options) {
|
|
454
|
-
if (!options || typeof options !== "object") {
|
|
455
|
-
options = {};
|
|
456
|
-
}
|
|
457
|
-
str = str.trim();
|
|
458
|
-
|
|
459
|
-
// We use a regex to parse the "name-value-pair" part of S5.2
|
|
460
|
-
const firstSemi = str.indexOf(";"); // S5.2 step 1
|
|
461
|
-
const cookiePair = firstSemi === -1 ? str : str.substr(0, firstSemi);
|
|
462
|
-
const c = parseCookiePair(cookiePair, !!options.loose);
|
|
463
|
-
if (!c) {
|
|
464
|
-
return;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
if (firstSemi === -1) {
|
|
468
|
-
return c;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
// S5.2.3 "unparsed-attributes consist of the remainder of the set-cookie-string
|
|
472
|
-
// (including the %x3B (";") in question)." plus later on in the same section
|
|
473
|
-
// "discard the first ";" and trim".
|
|
474
|
-
const unparsed = str.slice(firstSemi + 1).trim();
|
|
475
|
-
|
|
476
|
-
// "If the unparsed-attributes string is empty, skip the rest of these
|
|
477
|
-
// steps."
|
|
478
|
-
if (unparsed.length === 0) {
|
|
479
|
-
return c;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/*
|
|
483
|
-
* S5.2 says that when looping over the items "[p]rocess the attribute-name
|
|
484
|
-
* and attribute-value according to the requirements in the following
|
|
485
|
-
* subsections" for every item. Plus, for many of the individual attributes
|
|
486
|
-
* in S5.3 it says to use the "attribute-value of the last attribute in the
|
|
487
|
-
* cookie-attribute-list". Therefore, in this implementation, we overwrite
|
|
488
|
-
* the previous value.
|
|
489
|
-
*/
|
|
490
|
-
const cookie_avs = unparsed.split(";");
|
|
491
|
-
while (cookie_avs.length) {
|
|
492
|
-
const av = cookie_avs.shift().trim();
|
|
493
|
-
if (av.length === 0) {
|
|
494
|
-
// happens if ";;" appears
|
|
495
|
-
continue;
|
|
496
|
-
}
|
|
497
|
-
const av_sep = av.indexOf("=");
|
|
498
|
-
let av_key, av_value;
|
|
499
|
-
|
|
500
|
-
if (av_sep === -1) {
|
|
501
|
-
av_key = av;
|
|
502
|
-
av_value = null;
|
|
503
|
-
} else {
|
|
504
|
-
av_key = av.substr(0, av_sep);
|
|
505
|
-
av_value = av.substr(av_sep + 1);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
av_key = av_key.trim().toLowerCase();
|
|
509
|
-
|
|
510
|
-
if (av_value) {
|
|
511
|
-
av_value = av_value.trim();
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
switch (av_key) {
|
|
515
|
-
case "expires": // S5.2.1
|
|
516
|
-
if (av_value) {
|
|
517
|
-
const exp = parseDate(av_value);
|
|
518
|
-
// "If the attribute-value failed to parse as a cookie date, ignore the
|
|
519
|
-
// cookie-av."
|
|
520
|
-
if (exp) {
|
|
521
|
-
// over and underflow not realistically a concern: V8's getTime() seems to
|
|
522
|
-
// store something larger than a 32-bit time_t (even with 32-bit node)
|
|
523
|
-
c.expires = exp;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
break;
|
|
527
|
-
|
|
528
|
-
case "max-age": // S5.2.2
|
|
529
|
-
if (av_value) {
|
|
530
|
-
// "If the first character of the attribute-value is not a DIGIT or a "-"
|
|
531
|
-
// character ...[or]... If the remainder of attribute-value contains a
|
|
532
|
-
// non-DIGIT character, ignore the cookie-av."
|
|
533
|
-
if (/^-?[0-9]+$/.test(av_value)) {
|
|
534
|
-
const delta = parseInt(av_value, 10);
|
|
535
|
-
// "If delta-seconds is less than or equal to zero (0), let expiry-time
|
|
536
|
-
// be the earliest representable date and time."
|
|
537
|
-
c.setMaxAge(delta);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
break;
|
|
541
|
-
|
|
542
|
-
case "domain": // S5.2.3
|
|
543
|
-
// "If the attribute-value is empty, the behavior is undefined. However,
|
|
544
|
-
// the user agent SHOULD ignore the cookie-av entirely."
|
|
545
|
-
if (av_value) {
|
|
546
|
-
// S5.2.3 "Let cookie-domain be the attribute-value without the leading %x2E
|
|
547
|
-
// (".") character."
|
|
548
|
-
const domain = av_value.trim().replace(/^\./, "");
|
|
549
|
-
if (domain) {
|
|
550
|
-
// "Convert the cookie-domain to lower case."
|
|
551
|
-
c.domain = domain.toLowerCase();
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
break;
|
|
555
|
-
|
|
556
|
-
case "path": // S5.2.4
|
|
557
|
-
/*
|
|
558
|
-
* "If the attribute-value is empty or if the first character of the
|
|
559
|
-
* attribute-value is not %x2F ("/"):
|
|
560
|
-
* Let cookie-path be the default-path.
|
|
561
|
-
* Otherwise:
|
|
562
|
-
* Let cookie-path be the attribute-value."
|
|
563
|
-
*
|
|
564
|
-
* We'll represent the default-path as null since it depends on the
|
|
565
|
-
* context of the parsing.
|
|
566
|
-
*/
|
|
567
|
-
c.path = av_value && av_value[0] === "/" ? av_value : null;
|
|
568
|
-
break;
|
|
569
|
-
|
|
570
|
-
case "secure": // S5.2.5
|
|
571
|
-
/*
|
|
572
|
-
* "If the attribute-name case-insensitively matches the string "Secure",
|
|
573
|
-
* the user agent MUST append an attribute to the cookie-attribute-list
|
|
574
|
-
* with an attribute-name of Secure and an empty attribute-value."
|
|
575
|
-
*/
|
|
576
|
-
c.secure = true;
|
|
577
|
-
break;
|
|
578
|
-
|
|
579
|
-
case "httponly": // S5.2.6 -- effectively the same as 'secure'
|
|
580
|
-
c.httpOnly = true;
|
|
581
|
-
break;
|
|
582
|
-
|
|
583
|
-
case "samesite": // RFC6265bis-02 S5.3.7
|
|
584
|
-
const enforcement = av_value ? av_value.toLowerCase() : "";
|
|
585
|
-
switch (enforcement) {
|
|
586
|
-
case "strict":
|
|
587
|
-
c.sameSite = "strict";
|
|
588
|
-
break;
|
|
589
|
-
case "lax":
|
|
590
|
-
c.sameSite = "lax";
|
|
591
|
-
break;
|
|
592
|
-
default:
|
|
593
|
-
// RFC6265bis-02 S5.3.7 step 1:
|
|
594
|
-
// "If cookie-av's attribute-value is not a case-insensitive match
|
|
595
|
-
// for "Strict" or "Lax", ignore the "cookie-av"."
|
|
596
|
-
// This effectively sets it to 'none' from the prototype.
|
|
597
|
-
break;
|
|
598
|
-
}
|
|
599
|
-
break;
|
|
600
|
-
|
|
601
|
-
default:
|
|
602
|
-
c.extensions = c.extensions || [];
|
|
603
|
-
c.extensions.push(av);
|
|
604
|
-
break;
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
return c;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* If the cookie-name begins with a case-sensitive match for the
|
|
613
|
-
* string "__Secure-", abort these steps and ignore the cookie
|
|
614
|
-
* entirely unless the cookie's secure-only-flag is true.
|
|
615
|
-
* @param cookie
|
|
616
|
-
* @returns boolean
|
|
617
|
-
*/
|
|
618
|
-
function isSecurePrefixConditionMet(cookie) {
|
|
619
|
-
return !cookie.key.startsWith("__Secure-") || cookie.secure;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* If the cookie-name begins with a case-sensitive match for the
|
|
624
|
-
* string "__Host-", abort these steps and ignore the cookie
|
|
625
|
-
* entirely unless the cookie meets all the following criteria:
|
|
626
|
-
* 1. The cookie's secure-only-flag is true.
|
|
627
|
-
* 2. The cookie's host-only-flag is true.
|
|
628
|
-
* 3. The cookie-attribute-list contains an attribute with an
|
|
629
|
-
* attribute-name of "Path", and the cookie's path is "/".
|
|
630
|
-
* @param cookie
|
|
631
|
-
* @returns boolean
|
|
632
|
-
*/
|
|
633
|
-
function isHostPrefixConditionMet(cookie) {
|
|
634
|
-
return (
|
|
635
|
-
!cookie.key.startsWith("__Host-") ||
|
|
636
|
-
(cookie.secure &&
|
|
637
|
-
cookie.hostOnly &&
|
|
638
|
-
cookie.path != null &&
|
|
639
|
-
cookie.path === "/")
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
// avoid the V8 deoptimization monster!
|
|
644
|
-
function jsonParse(str) {
|
|
645
|
-
let obj;
|
|
646
|
-
try {
|
|
647
|
-
obj = JSON.parse(str);
|
|
648
|
-
} catch (e) {
|
|
649
|
-
return e;
|
|
650
|
-
}
|
|
651
|
-
return obj;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
function fromJSON(str) {
|
|
655
|
-
if (!str) {
|
|
656
|
-
return null;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
let obj;
|
|
660
|
-
if (typeof str === "string") {
|
|
661
|
-
obj = jsonParse(str);
|
|
662
|
-
if (obj instanceof Error) {
|
|
663
|
-
return null;
|
|
664
|
-
}
|
|
665
|
-
} else {
|
|
666
|
-
// assume it's an Object
|
|
667
|
-
obj = str;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
const c = new Cookie();
|
|
671
|
-
for (let i = 0; i < Cookie.serializableProperties.length; i++) {
|
|
672
|
-
const prop = Cookie.serializableProperties[i];
|
|
673
|
-
if (obj[prop] === undefined || obj[prop] === cookieDefaults[prop]) {
|
|
674
|
-
continue; // leave as prototype default
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
if (prop === "expires" || prop === "creation" || prop === "lastAccessed") {
|
|
678
|
-
if (obj[prop] === null) {
|
|
679
|
-
c[prop] = null;
|
|
680
|
-
} else {
|
|
681
|
-
c[prop] = obj[prop] == "Infinity" ? "Infinity" : new Date(obj[prop]);
|
|
682
|
-
}
|
|
683
|
-
} else {
|
|
684
|
-
c[prop] = obj[prop];
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
return c;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
/* Section 5.4 part 2:
|
|
692
|
-
* "* Cookies with longer paths are listed before cookies with
|
|
693
|
-
* shorter paths.
|
|
694
|
-
*
|
|
695
|
-
* * Among cookies that have equal-length path fields, cookies with
|
|
696
|
-
* earlier creation-times are listed before cookies with later
|
|
697
|
-
* creation-times."
|
|
698
|
-
*/
|
|
699
|
-
|
|
700
|
-
function cookieCompare(a, b) {
|
|
701
|
-
let cmp = 0;
|
|
702
|
-
|
|
703
|
-
// descending for length: b CMP a
|
|
704
|
-
const aPathLen = a.path ? a.path.length : 0;
|
|
705
|
-
const bPathLen = b.path ? b.path.length : 0;
|
|
706
|
-
cmp = bPathLen - aPathLen;
|
|
707
|
-
if (cmp !== 0) {
|
|
708
|
-
return cmp;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
// ascending for time: a CMP b
|
|
712
|
-
const aTime = a.creation ? a.creation.getTime() : MAX_TIME;
|
|
713
|
-
const bTime = b.creation ? b.creation.getTime() : MAX_TIME;
|
|
714
|
-
cmp = aTime - bTime;
|
|
715
|
-
if (cmp !== 0) {
|
|
716
|
-
return cmp;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
// break ties for the same millisecond (precision of JavaScript's clock)
|
|
720
|
-
cmp = a.creationIndex - b.creationIndex;
|
|
721
|
-
|
|
722
|
-
return cmp;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
// Gives the permutation of all possible pathMatch()es of a given path. The
|
|
726
|
-
// array is in longest-to-shortest order. Handy for indexing.
|
|
727
|
-
function permutePath(path) {
|
|
728
|
-
if (path === "/") {
|
|
729
|
-
return ["/"];
|
|
730
|
-
}
|
|
731
|
-
const permutations = [path];
|
|
732
|
-
while (path.length > 1) {
|
|
733
|
-
const lindex = path.lastIndexOf("/");
|
|
734
|
-
if (lindex === 0) {
|
|
735
|
-
break;
|
|
736
|
-
}
|
|
737
|
-
path = path.substr(0, lindex);
|
|
738
|
-
permutations.push(path);
|
|
739
|
-
}
|
|
740
|
-
permutations.push("/");
|
|
741
|
-
return permutations;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
function getCookieContext(url) {
|
|
745
|
-
if (url instanceof Object) {
|
|
746
|
-
return url;
|
|
747
|
-
}
|
|
748
|
-
// NOTE: decodeURI will throw on malformed URIs (see GH-32).
|
|
749
|
-
// Therefore, we will just skip decoding for such URIs.
|
|
750
|
-
try {
|
|
751
|
-
url = decodeURI(url);
|
|
752
|
-
} catch (err) {
|
|
753
|
-
// Silently swallow error
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
return urlParse(url);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
const cookieDefaults = {
|
|
760
|
-
// the order in which the RFC has them:
|
|
761
|
-
key: "",
|
|
762
|
-
value: "",
|
|
763
|
-
expires: "Infinity",
|
|
764
|
-
maxAge: null,
|
|
765
|
-
domain: null,
|
|
766
|
-
path: null,
|
|
767
|
-
secure: false,
|
|
768
|
-
httpOnly: false,
|
|
769
|
-
extensions: null,
|
|
770
|
-
// set by the CookieJar:
|
|
771
|
-
hostOnly: null,
|
|
772
|
-
pathIsDefault: null,
|
|
773
|
-
creation: null,
|
|
774
|
-
lastAccessed: null,
|
|
775
|
-
sameSite: "none"
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
class Cookie {
|
|
779
|
-
constructor(options = {}) {
|
|
780
|
-
if (util.inspect.custom) {
|
|
781
|
-
this[util.inspect.custom] = this.inspect;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
Object.assign(this, cookieDefaults, options);
|
|
785
|
-
this.creation = this.creation || new Date();
|
|
786
|
-
|
|
787
|
-
// used to break creation ties in cookieCompare():
|
|
788
|
-
Object.defineProperty(this, "creationIndex", {
|
|
789
|
-
configurable: false,
|
|
790
|
-
enumerable: false, // important for assert.deepEqual checks
|
|
791
|
-
writable: true,
|
|
792
|
-
value: ++Cookie.cookiesCreated
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
inspect() {
|
|
797
|
-
const now = Date.now();
|
|
798
|
-
const hostOnly = this.hostOnly != null ? this.hostOnly : "?";
|
|
799
|
-
const createAge = this.creation
|
|
800
|
-
? `${now - this.creation.getTime()}ms`
|
|
801
|
-
: "?";
|
|
802
|
-
const accessAge = this.lastAccessed
|
|
803
|
-
? `${now - this.lastAccessed.getTime()}ms`
|
|
804
|
-
: "?";
|
|
805
|
-
return `Cookie="${this.toString()}; hostOnly=${hostOnly}; aAge=${accessAge}; cAge=${createAge}"`;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
toJSON() {
|
|
809
|
-
const obj = {};
|
|
810
|
-
|
|
811
|
-
for (const prop of Cookie.serializableProperties) {
|
|
812
|
-
if (this[prop] === cookieDefaults[prop]) {
|
|
813
|
-
continue; // leave as prototype default
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
if (
|
|
817
|
-
prop === "expires" ||
|
|
818
|
-
prop === "creation" ||
|
|
819
|
-
prop === "lastAccessed"
|
|
820
|
-
) {
|
|
821
|
-
if (this[prop] === null) {
|
|
822
|
-
obj[prop] = null;
|
|
823
|
-
} else {
|
|
824
|
-
obj[prop] =
|
|
825
|
-
this[prop] == "Infinity" // intentionally not ===
|
|
826
|
-
? "Infinity"
|
|
827
|
-
: this[prop].toISOString();
|
|
828
|
-
}
|
|
829
|
-
} else if (prop === "maxAge") {
|
|
830
|
-
if (this[prop] !== null) {
|
|
831
|
-
// again, intentionally not ===
|
|
832
|
-
obj[prop] =
|
|
833
|
-
this[prop] == Infinity || this[prop] == -Infinity
|
|
834
|
-
? this[prop].toString()
|
|
835
|
-
: this[prop];
|
|
836
|
-
}
|
|
837
|
-
} else {
|
|
838
|
-
if (this[prop] !== cookieDefaults[prop]) {
|
|
839
|
-
obj[prop] = this[prop];
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
return obj;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
clone() {
|
|
848
|
-
return fromJSON(this.toJSON());
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
validate() {
|
|
852
|
-
if (!COOKIE_OCTETS.test(this.value)) {
|
|
853
|
-
return false;
|
|
854
|
-
}
|
|
855
|
-
if (
|
|
856
|
-
this.expires != Infinity &&
|
|
857
|
-
!(this.expires instanceof Date) &&
|
|
858
|
-
!parseDate(this.expires)
|
|
859
|
-
) {
|
|
860
|
-
return false;
|
|
861
|
-
}
|
|
862
|
-
if (this.maxAge != null && this.maxAge <= 0) {
|
|
863
|
-
return false; // "Max-Age=" non-zero-digit *DIGIT
|
|
864
|
-
}
|
|
865
|
-
if (this.path != null && !PATH_VALUE.test(this.path)) {
|
|
866
|
-
return false;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
const cdomain = this.cdomain();
|
|
870
|
-
if (cdomain) {
|
|
871
|
-
if (cdomain.match(/\.$/)) {
|
|
872
|
-
return false; // S4.1.2.3 suggests that this is bad. domainMatch() tests confirm this
|
|
873
|
-
}
|
|
874
|
-
const suffix = pubsuffix.getPublicSuffix(cdomain);
|
|
875
|
-
if (suffix == null) {
|
|
876
|
-
// it's a public suffix
|
|
877
|
-
return false;
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
return true;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
setExpires(exp) {
|
|
884
|
-
if (exp instanceof Date) {
|
|
885
|
-
this.expires = exp;
|
|
886
|
-
} else {
|
|
887
|
-
this.expires = parseDate(exp) || "Infinity";
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
setMaxAge(age) {
|
|
892
|
-
if (age === Infinity || age === -Infinity) {
|
|
893
|
-
this.maxAge = age.toString(); // so JSON.stringify() works
|
|
894
|
-
} else {
|
|
895
|
-
this.maxAge = age;
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
cookieString() {
|
|
900
|
-
let val = this.value;
|
|
901
|
-
if (val == null) {
|
|
902
|
-
val = "";
|
|
903
|
-
}
|
|
904
|
-
if (this.key === "") {
|
|
905
|
-
return val;
|
|
906
|
-
}
|
|
907
|
-
return `${this.key}=${val}`;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
// gives Set-Cookie header format
|
|
911
|
-
toString() {
|
|
912
|
-
let str = this.cookieString();
|
|
913
|
-
|
|
914
|
-
if (this.expires != Infinity) {
|
|
915
|
-
if (this.expires instanceof Date) {
|
|
916
|
-
str += `; Expires=${formatDate(this.expires)}`;
|
|
917
|
-
} else {
|
|
918
|
-
str += `; Expires=${this.expires}`;
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
if (this.maxAge != null && this.maxAge != Infinity) {
|
|
923
|
-
str += `; Max-Age=${this.maxAge}`;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
if (this.domain && !this.hostOnly) {
|
|
927
|
-
str += `; Domain=${this.domain}`;
|
|
928
|
-
}
|
|
929
|
-
if (this.path) {
|
|
930
|
-
str += `; Path=${this.path}`;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
if (this.secure) {
|
|
934
|
-
str += "; Secure";
|
|
935
|
-
}
|
|
936
|
-
if (this.httpOnly) {
|
|
937
|
-
str += "; HttpOnly";
|
|
938
|
-
}
|
|
939
|
-
if (this.sameSite && this.sameSite !== "none") {
|
|
940
|
-
const ssCanon = Cookie.sameSiteCanonical[this.sameSite.toLowerCase()];
|
|
941
|
-
str += `; SameSite=${ssCanon ? ssCanon : this.sameSite}`;
|
|
942
|
-
}
|
|
943
|
-
if (this.extensions) {
|
|
944
|
-
this.extensions.forEach(ext => {
|
|
945
|
-
str += `; ${ext}`;
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
return str;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
// TTL() partially replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
|
|
953
|
-
// elsewhere)
|
|
954
|
-
// S5.3 says to give the "latest representable date" for which we use Infinity
|
|
955
|
-
// For "expired" we use 0
|
|
956
|
-
TTL(now) {
|
|
957
|
-
/* RFC6265 S4.1.2.2 If a cookie has both the Max-Age and the Expires
|
|
958
|
-
* attribute, the Max-Age attribute has precedence and controls the
|
|
959
|
-
* expiration date of the cookie.
|
|
960
|
-
* (Concurs with S5.3 step 3)
|
|
961
|
-
*/
|
|
962
|
-
if (this.maxAge != null) {
|
|
963
|
-
return this.maxAge <= 0 ? 0 : this.maxAge * 1000;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
let expires = this.expires;
|
|
967
|
-
if (expires != Infinity) {
|
|
968
|
-
if (!(expires instanceof Date)) {
|
|
969
|
-
expires = parseDate(expires) || Infinity;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
if (expires == Infinity) {
|
|
973
|
-
return Infinity;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
return expires.getTime() - (now || Date.now());
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
return Infinity;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
// expiryTime() replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
|
|
983
|
-
// elsewhere)
|
|
984
|
-
expiryTime(now) {
|
|
985
|
-
if (this.maxAge != null) {
|
|
986
|
-
const relativeTo = now || this.creation || new Date();
|
|
987
|
-
const age = this.maxAge <= 0 ? -Infinity : this.maxAge * 1000;
|
|
988
|
-
return relativeTo.getTime() + age;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
if (this.expires == Infinity) {
|
|
992
|
-
return Infinity;
|
|
993
|
-
}
|
|
994
|
-
return this.expires.getTime();
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
// expiryDate() replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
|
|
998
|
-
// elsewhere), except it returns a Date
|
|
999
|
-
expiryDate(now) {
|
|
1000
|
-
const millisec = this.expiryTime(now);
|
|
1001
|
-
if (millisec == Infinity) {
|
|
1002
|
-
return new Date(MAX_TIME);
|
|
1003
|
-
} else if (millisec == -Infinity) {
|
|
1004
|
-
return new Date(MIN_TIME);
|
|
1005
|
-
} else {
|
|
1006
|
-
return new Date(millisec);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
// This replaces the "persistent-flag" parts of S5.3 step 3
|
|
1011
|
-
isPersistent() {
|
|
1012
|
-
return this.maxAge != null || this.expires != Infinity;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
// Mostly S5.1.2 and S5.2.3:
|
|
1016
|
-
canonicalizedDomain() {
|
|
1017
|
-
if (this.domain == null) {
|
|
1018
|
-
return null;
|
|
1019
|
-
}
|
|
1020
|
-
return canonicalDomain(this.domain);
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
cdomain() {
|
|
1024
|
-
return this.canonicalizedDomain();
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
Cookie.cookiesCreated = 0;
|
|
1029
|
-
Cookie.parse = parse;
|
|
1030
|
-
Cookie.fromJSON = fromJSON;
|
|
1031
|
-
Cookie.serializableProperties = Object.keys(cookieDefaults);
|
|
1032
|
-
Cookie.sameSiteLevel = {
|
|
1033
|
-
strict: 3,
|
|
1034
|
-
lax: 2,
|
|
1035
|
-
none: 1
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
Cookie.sameSiteCanonical = {
|
|
1039
|
-
strict: "Strict",
|
|
1040
|
-
lax: "Lax"
|
|
1041
|
-
};
|
|
1042
|
-
|
|
1043
|
-
function getNormalizedPrefixSecurity(prefixSecurity) {
|
|
1044
|
-
if (prefixSecurity != null) {
|
|
1045
|
-
const normalizedPrefixSecurity = prefixSecurity.toLowerCase();
|
|
1046
|
-
/* The three supported options */
|
|
1047
|
-
switch (normalizedPrefixSecurity) {
|
|
1048
|
-
case PrefixSecurityEnum.STRICT:
|
|
1049
|
-
case PrefixSecurityEnum.SILENT:
|
|
1050
|
-
case PrefixSecurityEnum.DISABLED:
|
|
1051
|
-
return normalizedPrefixSecurity;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
/* Default is SILENT */
|
|
1055
|
-
return PrefixSecurityEnum.SILENT;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
class CookieJar {
|
|
1059
|
-
constructor(store, options = { rejectPublicSuffixes: true }) {
|
|
1060
|
-
if (typeof options === "boolean") {
|
|
1061
|
-
options = { rejectPublicSuffixes: options };
|
|
1062
|
-
}
|
|
1063
|
-
this.rejectPublicSuffixes = options.rejectPublicSuffixes;
|
|
1064
|
-
this.enableLooseMode = !!options.looseMode;
|
|
1065
|
-
this.allowSpecialUseDomain = !!options.allowSpecialUseDomain;
|
|
1066
|
-
this.store = store || new MemoryCookieStore();
|
|
1067
|
-
this.prefixSecurity = getNormalizedPrefixSecurity(options.prefixSecurity);
|
|
1068
|
-
this._cloneSync = syncWrap("clone");
|
|
1069
|
-
this._importCookiesSync = syncWrap("_importCookies");
|
|
1070
|
-
this.getCookiesSync = syncWrap("getCookies");
|
|
1071
|
-
this.getCookieStringSync = syncWrap("getCookieString");
|
|
1072
|
-
this.getSetCookieStringsSync = syncWrap("getSetCookieStrings");
|
|
1073
|
-
this.removeAllCookiesSync = syncWrap("removeAllCookies");
|
|
1074
|
-
this.setCookieSync = syncWrap("setCookie");
|
|
1075
|
-
this.serializeSync = syncWrap("serialize");
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
setCookie(cookie, url, options, cb) {
|
|
1079
|
-
let err;
|
|
1080
|
-
const context = getCookieContext(url);
|
|
1081
|
-
if (typeof options === "function") {
|
|
1082
|
-
cb = options;
|
|
1083
|
-
options = {};
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
const host = canonicalDomain(context.hostname);
|
|
1087
|
-
const loose = options.loose || this.enableLooseMode;
|
|
1088
|
-
|
|
1089
|
-
let sameSiteContext = null;
|
|
1090
|
-
if (options.sameSiteContext) {
|
|
1091
|
-
sameSiteContext = checkSameSiteContext(options.sameSiteContext);
|
|
1092
|
-
if (!sameSiteContext) {
|
|
1093
|
-
return cb(new Error(SAME_SITE_CONTEXT_VAL_ERR));
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
// S5.3 step 1
|
|
1098
|
-
if (typeof cookie === "string" || cookie instanceof String) {
|
|
1099
|
-
cookie = Cookie.parse(cookie, { loose: loose });
|
|
1100
|
-
if (!cookie) {
|
|
1101
|
-
err = new Error("Cookie failed to parse");
|
|
1102
|
-
return cb(options.ignoreError ? null : err);
|
|
1103
|
-
}
|
|
1104
|
-
} else if (!(cookie instanceof Cookie)) {
|
|
1105
|
-
// If you're seeing this error, and are passing in a Cookie object,
|
|
1106
|
-
// it *might* be a Cookie object from another loaded version of tough-cookie.
|
|
1107
|
-
err = new Error(
|
|
1108
|
-
"First argument to setCookie must be a Cookie object or string"
|
|
1109
|
-
);
|
|
1110
|
-
return cb(options.ignoreError ? null : err);
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
// S5.3 step 2
|
|
1114
|
-
const now = options.now || new Date(); // will assign later to save effort in the face of errors
|
|
1115
|
-
|
|
1116
|
-
// S5.3 step 3: NOOP; persistent-flag and expiry-time is handled by getCookie()
|
|
1117
|
-
|
|
1118
|
-
// S5.3 step 4: NOOP; domain is null by default
|
|
1119
|
-
|
|
1120
|
-
// S5.3 step 5: public suffixes
|
|
1121
|
-
if (this.rejectPublicSuffixes && cookie.domain) {
|
|
1122
|
-
const suffix = pubsuffix.getPublicSuffix(cookie.cdomain());
|
|
1123
|
-
if (suffix == null) {
|
|
1124
|
-
// e.g. "com"
|
|
1125
|
-
err = new Error("Cookie has domain set to a public suffix");
|
|
1126
|
-
return cb(options.ignoreError ? null : err);
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
// S5.3 step 6:
|
|
1131
|
-
if (cookie.domain) {
|
|
1132
|
-
if (!domainMatch(host, cookie.cdomain(), false)) {
|
|
1133
|
-
err = new Error(
|
|
1134
|
-
`Cookie not in this host's domain. Cookie:${cookie.cdomain()} Request:${host}`
|
|
1135
|
-
);
|
|
1136
|
-
return cb(options.ignoreError ? null : err);
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
if (cookie.hostOnly == null) {
|
|
1140
|
-
// don't reset if already set
|
|
1141
|
-
cookie.hostOnly = false;
|
|
1142
|
-
}
|
|
1143
|
-
} else {
|
|
1144
|
-
cookie.hostOnly = true;
|
|
1145
|
-
cookie.domain = host;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
//S5.2.4 If the attribute-value is empty or if the first character of the
|
|
1149
|
-
//attribute-value is not %x2F ("/"):
|
|
1150
|
-
//Let cookie-path be the default-path.
|
|
1151
|
-
if (!cookie.path || cookie.path[0] !== "/") {
|
|
1152
|
-
cookie.path = defaultPath(context.pathname);
|
|
1153
|
-
cookie.pathIsDefault = true;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
// S5.3 step 8: NOOP; secure attribute
|
|
1157
|
-
// S5.3 step 9: NOOP; httpOnly attribute
|
|
1158
|
-
|
|
1159
|
-
// S5.3 step 10
|
|
1160
|
-
if (options.http === false && cookie.httpOnly) {
|
|
1161
|
-
err = new Error("Cookie is HttpOnly and this isn't an HTTP API");
|
|
1162
|
-
return cb(options.ignoreError ? null : err);
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
// 6252bis-02 S5.4 Step 13 & 14:
|
|
1166
|
-
if (cookie.sameSite !== "none" && sameSiteContext) {
|
|
1167
|
-
// "If the cookie's "same-site-flag" is not "None", and the cookie
|
|
1168
|
-
// is being set from a context whose "site for cookies" is not an
|
|
1169
|
-
// exact match for request-uri's host's registered domain, then
|
|
1170
|
-
// abort these steps and ignore the newly created cookie entirely."
|
|
1171
|
-
if (sameSiteContext === "none") {
|
|
1172
|
-
err = new Error(
|
|
1173
|
-
"Cookie is SameSite but this is a cross-origin request"
|
|
1174
|
-
);
|
|
1175
|
-
return cb(options.ignoreError ? null : err);
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
/* 6265bis-02 S5.4 Steps 15 & 16 */
|
|
1180
|
-
const ignoreErrorForPrefixSecurity =
|
|
1181
|
-
this.prefixSecurity === PrefixSecurityEnum.SILENT;
|
|
1182
|
-
const prefixSecurityDisabled =
|
|
1183
|
-
this.prefixSecurity === PrefixSecurityEnum.DISABLED;
|
|
1184
|
-
/* If prefix checking is not disabled ...*/
|
|
1185
|
-
if (!prefixSecurityDisabled) {
|
|
1186
|
-
let errorFound = false;
|
|
1187
|
-
let errorMsg;
|
|
1188
|
-
/* Check secure prefix condition */
|
|
1189
|
-
if (!isSecurePrefixConditionMet(cookie)) {
|
|
1190
|
-
errorFound = true;
|
|
1191
|
-
errorMsg = "Cookie has __Secure prefix but Secure attribute is not set";
|
|
1192
|
-
} else if (!isHostPrefixConditionMet(cookie)) {
|
|
1193
|
-
/* Check host prefix condition */
|
|
1194
|
-
errorFound = true;
|
|
1195
|
-
errorMsg =
|
|
1196
|
-
"Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'";
|
|
1197
|
-
}
|
|
1198
|
-
if (errorFound) {
|
|
1199
|
-
return cb(
|
|
1200
|
-
options.ignoreError || ignoreErrorForPrefixSecurity
|
|
1201
|
-
? null
|
|
1202
|
-
: new Error(errorMsg)
|
|
1203
|
-
);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
const store = this.store;
|
|
1208
|
-
|
|
1209
|
-
if (!store.updateCookie) {
|
|
1210
|
-
store.updateCookie = function(oldCookie, newCookie, cb) {
|
|
1211
|
-
this.putCookie(newCookie, cb);
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
function withCookie(err, oldCookie) {
|
|
1216
|
-
if (err) {
|
|
1217
|
-
return cb(err);
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
const next = function(err) {
|
|
1221
|
-
if (err) {
|
|
1222
|
-
return cb(err);
|
|
1223
|
-
} else {
|
|
1224
|
-
cb(null, cookie);
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
if (oldCookie) {
|
|
1229
|
-
// S5.3 step 11 - "If the cookie store contains a cookie with the same name,
|
|
1230
|
-
// domain, and path as the newly created cookie:"
|
|
1231
|
-
if (options.http === false && oldCookie.httpOnly) {
|
|
1232
|
-
// step 11.2
|
|
1233
|
-
err = new Error("old Cookie is HttpOnly and this isn't an HTTP API");
|
|
1234
|
-
return cb(options.ignoreError ? null : err);
|
|
1235
|
-
}
|
|
1236
|
-
cookie.creation = oldCookie.creation; // step 11.3
|
|
1237
|
-
cookie.creationIndex = oldCookie.creationIndex; // preserve tie-breaker
|
|
1238
|
-
cookie.lastAccessed = now;
|
|
1239
|
-
// Step 11.4 (delete cookie) is implied by just setting the new one:
|
|
1240
|
-
store.updateCookie(oldCookie, cookie, next); // step 12
|
|
1241
|
-
} else {
|
|
1242
|
-
cookie.creation = cookie.lastAccessed = now;
|
|
1243
|
-
store.putCookie(cookie, next); // step 12
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
store.findCookie(cookie.domain, cookie.path, cookie.key, withCookie);
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
// RFC6365 S5.4
|
|
1251
|
-
getCookies(url, options, cb) {
|
|
1252
|
-
const context = getCookieContext(url);
|
|
1253
|
-
if (typeof options === "function") {
|
|
1254
|
-
cb = options;
|
|
1255
|
-
options = {};
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
const host = canonicalDomain(context.hostname);
|
|
1259
|
-
const path = context.pathname || "/";
|
|
1260
|
-
|
|
1261
|
-
let secure = options.secure;
|
|
1262
|
-
if (
|
|
1263
|
-
secure == null &&
|
|
1264
|
-
context.protocol &&
|
|
1265
|
-
(context.protocol == "https:" || context.protocol == "wss:")
|
|
1266
|
-
) {
|
|
1267
|
-
secure = true;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
let sameSiteLevel = 0;
|
|
1271
|
-
if (options.sameSiteContext) {
|
|
1272
|
-
const sameSiteContext = checkSameSiteContext(options.sameSiteContext);
|
|
1273
|
-
sameSiteLevel = Cookie.sameSiteLevel[sameSiteContext];
|
|
1274
|
-
if (!sameSiteLevel) {
|
|
1275
|
-
return cb(new Error(SAME_SITE_CONTEXT_VAL_ERR));
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
let http = options.http;
|
|
1280
|
-
if (http == null) {
|
|
1281
|
-
http = true;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
const now = options.now || Date.now();
|
|
1285
|
-
const expireCheck = options.expire !== false;
|
|
1286
|
-
const allPaths = !!options.allPaths;
|
|
1287
|
-
const store = this.store;
|
|
1288
|
-
|
|
1289
|
-
function matchingCookie(c) {
|
|
1290
|
-
// "Either:
|
|
1291
|
-
// The cookie's host-only-flag is true and the canonicalized
|
|
1292
|
-
// request-host is identical to the cookie's domain.
|
|
1293
|
-
// Or:
|
|
1294
|
-
// The cookie's host-only-flag is false and the canonicalized
|
|
1295
|
-
// request-host domain-matches the cookie's domain."
|
|
1296
|
-
if (c.hostOnly) {
|
|
1297
|
-
if (c.domain != host) {
|
|
1298
|
-
return false;
|
|
1299
|
-
}
|
|
1300
|
-
} else {
|
|
1301
|
-
if (!domainMatch(host, c.domain, false)) {
|
|
1302
|
-
return false;
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
// "The request-uri's path path-matches the cookie's path."
|
|
1307
|
-
if (!allPaths && !pathMatch(path, c.path)) {
|
|
1308
|
-
return false;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
// "If the cookie's secure-only-flag is true, then the request-uri's
|
|
1312
|
-
// scheme must denote a "secure" protocol"
|
|
1313
|
-
if (c.secure && !secure) {
|
|
1314
|
-
return false;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
// "If the cookie's http-only-flag is true, then exclude the cookie if the
|
|
1318
|
-
// cookie-string is being generated for a "non-HTTP" API"
|
|
1319
|
-
if (c.httpOnly && !http) {
|
|
1320
|
-
return false;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
// RFC6265bis-02 S5.3.7
|
|
1324
|
-
if (sameSiteLevel) {
|
|
1325
|
-
const cookieLevel = Cookie.sameSiteLevel[c.sameSite || "none"];
|
|
1326
|
-
if (cookieLevel > sameSiteLevel) {
|
|
1327
|
-
// only allow cookies at or below the request level
|
|
1328
|
-
return false;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
// deferred from S5.3
|
|
1333
|
-
// non-RFC: allow retention of expired cookies by choice
|
|
1334
|
-
if (expireCheck && c.expiryTime() <= now) {
|
|
1335
|
-
store.removeCookie(c.domain, c.path, c.key, () => {}); // result ignored
|
|
1336
|
-
return false;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
return true;
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
store.findCookies(
|
|
1343
|
-
host,
|
|
1344
|
-
allPaths ? null : path,
|
|
1345
|
-
this.allowSpecialUseDomain,
|
|
1346
|
-
(err, cookies) => {
|
|
1347
|
-
if (err) {
|
|
1348
|
-
return cb(err);
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
cookies = cookies.filter(matchingCookie);
|
|
1352
|
-
|
|
1353
|
-
// sorting of S5.4 part 2
|
|
1354
|
-
if (options.sort !== false) {
|
|
1355
|
-
cookies = cookies.sort(cookieCompare);
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
// S5.4 part 3
|
|
1359
|
-
const now = new Date();
|
|
1360
|
-
for (const cookie of cookies) {
|
|
1361
|
-
cookie.lastAccessed = now;
|
|
1362
|
-
}
|
|
1363
|
-
// TODO persist lastAccessed
|
|
1364
|
-
|
|
1365
|
-
cb(null, cookies);
|
|
1366
|
-
}
|
|
1367
|
-
);
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
getCookieString(...args) {
|
|
1371
|
-
const cb = args.pop();
|
|
1372
|
-
const next = function(err, cookies) {
|
|
1373
|
-
if (err) {
|
|
1374
|
-
cb(err);
|
|
1375
|
-
} else {
|
|
1376
|
-
cb(
|
|
1377
|
-
null,
|
|
1378
|
-
cookies
|
|
1379
|
-
.sort(cookieCompare)
|
|
1380
|
-
.map(c => c.cookieString())
|
|
1381
|
-
.join("; ")
|
|
1382
|
-
);
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
|
-
args.push(next);
|
|
1386
|
-
this.getCookies.apply(this, args);
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
getSetCookieStrings(...args) {
|
|
1390
|
-
const cb = args.pop();
|
|
1391
|
-
const next = function(err, cookies) {
|
|
1392
|
-
if (err) {
|
|
1393
|
-
cb(err);
|
|
1394
|
-
} else {
|
|
1395
|
-
cb(
|
|
1396
|
-
null,
|
|
1397
|
-
cookies.map(c => {
|
|
1398
|
-
return c.toString();
|
|
1399
|
-
})
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
|
-
};
|
|
1403
|
-
args.push(next);
|
|
1404
|
-
this.getCookies.apply(this, args);
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
serialize(cb) {
|
|
1408
|
-
let type = this.store.constructor.name;
|
|
1409
|
-
if (type === "Object") {
|
|
1410
|
-
type = null;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
// update README.md "Serialization Format" if you change this, please!
|
|
1414
|
-
const serialized = {
|
|
1415
|
-
// The version of tough-cookie that serialized this jar. Generally a good
|
|
1416
|
-
// practice since future versions can make data import decisions based on
|
|
1417
|
-
// known past behavior. When/if this matters, use `semver`.
|
|
1418
|
-
version: `tough-cookie@${VERSION}`,
|
|
1419
|
-
|
|
1420
|
-
// add the store type, to make humans happy:
|
|
1421
|
-
storeType: type,
|
|
1422
|
-
|
|
1423
|
-
// CookieJar configuration:
|
|
1424
|
-
rejectPublicSuffixes: !!this.rejectPublicSuffixes,
|
|
1425
|
-
|
|
1426
|
-
// this gets filled from getAllCookies:
|
|
1427
|
-
cookies: []
|
|
1428
|
-
};
|
|
1429
|
-
|
|
1430
|
-
if (
|
|
1431
|
-
!(
|
|
1432
|
-
this.store.getAllCookies &&
|
|
1433
|
-
typeof this.store.getAllCookies === "function"
|
|
1434
|
-
)
|
|
1435
|
-
) {
|
|
1436
|
-
return cb(
|
|
1437
|
-
new Error(
|
|
1438
|
-
"store does not support getAllCookies and cannot be serialized"
|
|
1439
|
-
)
|
|
1440
|
-
);
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
this.store.getAllCookies((err, cookies) => {
|
|
1444
|
-
if (err) {
|
|
1445
|
-
return cb(err);
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
serialized.cookies = cookies.map(cookie => {
|
|
1449
|
-
// convert to serialized 'raw' cookies
|
|
1450
|
-
cookie = cookie instanceof Cookie ? cookie.toJSON() : cookie;
|
|
1451
|
-
|
|
1452
|
-
// Remove the index so new ones get assigned during deserialization
|
|
1453
|
-
delete cookie.creationIndex;
|
|
1454
|
-
|
|
1455
|
-
return cookie;
|
|
1456
|
-
});
|
|
1457
|
-
|
|
1458
|
-
return cb(null, serialized);
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
toJSON() {
|
|
1463
|
-
return this.serializeSync();
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
// use the class method CookieJar.deserialize instead of calling this directly
|
|
1467
|
-
_importCookies(serialized, cb) {
|
|
1468
|
-
let cookies = serialized.cookies;
|
|
1469
|
-
if (!cookies || !Array.isArray(cookies)) {
|
|
1470
|
-
return cb(new Error("serialized jar has no cookies array"));
|
|
1471
|
-
}
|
|
1472
|
-
cookies = cookies.slice(); // do not modify the original
|
|
1473
|
-
|
|
1474
|
-
const putNext = err => {
|
|
1475
|
-
if (err) {
|
|
1476
|
-
return cb(err);
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
if (!cookies.length) {
|
|
1480
|
-
return cb(err, this);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
let cookie;
|
|
1484
|
-
try {
|
|
1485
|
-
cookie = fromJSON(cookies.shift());
|
|
1486
|
-
} catch (e) {
|
|
1487
|
-
return cb(e);
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
if (cookie === null) {
|
|
1491
|
-
return putNext(null); // skip this cookie
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
this.store.putCookie(cookie, putNext);
|
|
1495
|
-
};
|
|
1496
|
-
|
|
1497
|
-
putNext();
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
clone(newStore, cb) {
|
|
1501
|
-
if (arguments.length === 1) {
|
|
1502
|
-
cb = newStore;
|
|
1503
|
-
newStore = null;
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
this.serialize((err, serialized) => {
|
|
1507
|
-
if (err) {
|
|
1508
|
-
return cb(err);
|
|
1509
|
-
}
|
|
1510
|
-
CookieJar.deserialize(serialized, newStore, cb);
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
cloneSync(newStore) {
|
|
1515
|
-
if (arguments.length === 0) {
|
|
1516
|
-
return this._cloneSync();
|
|
1517
|
-
}
|
|
1518
|
-
if (!newStore.synchronous) {
|
|
1519
|
-
throw new Error(
|
|
1520
|
-
"CookieJar clone destination store is not synchronous; use async API instead."
|
|
1521
|
-
);
|
|
1522
|
-
}
|
|
1523
|
-
return this._cloneSync(newStore);
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
removeAllCookies(cb) {
|
|
1527
|
-
const store = this.store;
|
|
1528
|
-
|
|
1529
|
-
// Check that the store implements its own removeAllCookies(). The default
|
|
1530
|
-
// implementation in Store will immediately call the callback with a "not
|
|
1531
|
-
// implemented" Error.
|
|
1532
|
-
if (
|
|
1533
|
-
typeof store.removeAllCookies === "function" &&
|
|
1534
|
-
store.removeAllCookies !== Store.prototype.removeAllCookies
|
|
1535
|
-
) {
|
|
1536
|
-
return store.removeAllCookies(cb);
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
store.getAllCookies((err, cookies) => {
|
|
1540
|
-
if (err) {
|
|
1541
|
-
return cb(err);
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
if (cookies.length === 0) {
|
|
1545
|
-
return cb(null);
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
let completedCount = 0;
|
|
1549
|
-
const removeErrors = [];
|
|
1550
|
-
|
|
1551
|
-
function removeCookieCb(removeErr) {
|
|
1552
|
-
if (removeErr) {
|
|
1553
|
-
removeErrors.push(removeErr);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
completedCount++;
|
|
1557
|
-
|
|
1558
|
-
if (completedCount === cookies.length) {
|
|
1559
|
-
return cb(removeErrors.length ? removeErrors[0] : null);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
cookies.forEach(cookie => {
|
|
1564
|
-
store.removeCookie(
|
|
1565
|
-
cookie.domain,
|
|
1566
|
-
cookie.path,
|
|
1567
|
-
cookie.key,
|
|
1568
|
-
removeCookieCb
|
|
1569
|
-
);
|
|
1570
|
-
});
|
|
1571
|
-
});
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
static deserialize(strOrObj, store, cb) {
|
|
1575
|
-
if (arguments.length !== 3) {
|
|
1576
|
-
// store is optional
|
|
1577
|
-
cb = store;
|
|
1578
|
-
store = null;
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
let serialized;
|
|
1582
|
-
if (typeof strOrObj === "string") {
|
|
1583
|
-
serialized = jsonParse(strOrObj);
|
|
1584
|
-
if (serialized instanceof Error) {
|
|
1585
|
-
return cb(serialized);
|
|
1586
|
-
}
|
|
1587
|
-
} else {
|
|
1588
|
-
serialized = strOrObj;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
const jar = new CookieJar(store, serialized.rejectPublicSuffixes);
|
|
1592
|
-
jar._importCookies(serialized, err => {
|
|
1593
|
-
if (err) {
|
|
1594
|
-
return cb(err);
|
|
1595
|
-
}
|
|
1596
|
-
cb(null, jar);
|
|
1597
|
-
});
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
static deserializeSync(strOrObj, store) {
|
|
1601
|
-
const serialized =
|
|
1602
|
-
typeof strOrObj === "string" ? JSON.parse(strOrObj) : strOrObj;
|
|
1603
|
-
const jar = new CookieJar(store, serialized.rejectPublicSuffixes);
|
|
1604
|
-
|
|
1605
|
-
// catch this mistake early:
|
|
1606
|
-
if (!jar.store.synchronous) {
|
|
1607
|
-
throw new Error(
|
|
1608
|
-
"CookieJar store is not synchronous; use async API instead."
|
|
1609
|
-
);
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
jar._importCookiesSync(serialized);
|
|
1613
|
-
return jar;
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
CookieJar.fromJSON = CookieJar.deserializeSync;
|
|
1617
|
-
|
|
1618
|
-
[
|
|
1619
|
-
"_importCookies",
|
|
1620
|
-
"clone",
|
|
1621
|
-
"getCookies",
|
|
1622
|
-
"getCookieString",
|
|
1623
|
-
"getSetCookieStrings",
|
|
1624
|
-
"removeAllCookies",
|
|
1625
|
-
"serialize",
|
|
1626
|
-
"setCookie"
|
|
1627
|
-
].forEach(name => {
|
|
1628
|
-
CookieJar.prototype[name] = fromCallback(CookieJar.prototype[name]);
|
|
1629
|
-
});
|
|
1630
|
-
CookieJar.deserialize = fromCallback(CookieJar.deserialize);
|
|
1631
|
-
|
|
1632
|
-
// Use a closure to provide a true imperative API for synchronous stores.
|
|
1633
|
-
function syncWrap(method) {
|
|
1634
|
-
return function(...args) {
|
|
1635
|
-
if (!this.store.synchronous) {
|
|
1636
|
-
throw new Error(
|
|
1637
|
-
"CookieJar store is not synchronous; use async API instead."
|
|
1638
|
-
);
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
let syncErr, syncResult;
|
|
1642
|
-
this[method](...args, (err, result) => {
|
|
1643
|
-
syncErr = err;
|
|
1644
|
-
syncResult = result;
|
|
1645
|
-
});
|
|
1646
|
-
|
|
1647
|
-
if (syncErr) {
|
|
1648
|
-
throw syncErr;
|
|
1649
|
-
}
|
|
1650
|
-
return syncResult;
|
|
1651
|
-
};
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
exports.version = VERSION;
|
|
1655
|
-
exports.CookieJar = CookieJar;
|
|
1656
|
-
exports.Cookie = Cookie;
|
|
1657
|
-
exports.Store = Store;
|
|
1658
|
-
exports.MemoryCookieStore = MemoryCookieStore;
|
|
1659
|
-
exports.parseDate = parseDate;
|
|
1660
|
-
exports.formatDate = formatDate;
|
|
1661
|
-
exports.parse = parse;
|
|
1662
|
-
exports.fromJSON = fromJSON;
|
|
1663
|
-
exports.domainMatch = domainMatch;
|
|
1664
|
-
exports.defaultPath = defaultPath;
|
|
1665
|
-
exports.pathMatch = pathMatch;
|
|
1666
|
-
exports.getPublicSuffix = pubsuffix.getPublicSuffix;
|
|
1667
|
-
exports.cookieCompare = cookieCompare;
|
|
1668
|
-
exports.permuteDomain = require("./permuteDomain").permuteDomain;
|
|
1669
|
-
exports.permutePath = permutePath;
|
|
1670
|
-
exports.canonicalDomain = canonicalDomain;
|
|
1671
|
-
exports.PrefixSecurityEnum = PrefixSecurityEnum;
|