isomorfeus-preact 10.5.0 → 10.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +29 -0
- data/lib/isomorfeus/preact/config.rb +19 -35
- data/lib/isomorfeus/preact/imports.rb +30 -0
- data/lib/isomorfeus/preact_view_helper.rb +34 -42
- data/lib/isomorfeus-preact.rb +6 -4
- data/lib/lucid_app/context.rb +9 -9
- data/lib/preact/version.rb +1 -1
- data/node_modules/.bin/loose-envify +12 -0
- data/node_modules/.bin/loose-envify.cmd +17 -0
- data/node_modules/.bin/loose-envify.ps1 +28 -0
- data/node_modules/.package-lock.json +278 -0
- data/node_modules/@babel/runtime/LICENSE +22 -0
- data/node_modules/@babel/runtime/README.md +19 -0
- data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +99 -0
- data/node_modules/@babel/runtime/helpers/AwaitValue.js +6 -0
- data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +31 -0
- data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +12 -0
- data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +6 -0
- data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +8 -0
- data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +10 -0
- data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +57 -0
- data/node_modules/@babel/runtime/helpers/asyncIterator.js +16 -0
- data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +38 -0
- data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +8 -0
- data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +8 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +23 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +10 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classCallCheck.js +8 -0
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +8 -0
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +8 -0
- data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +10 -0
- data/node_modules/@babel/runtime/helpers/classNameTDZError.js +6 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +11 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +11 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +9 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +10 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +8 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +12 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +10 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +9 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +15 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +9 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/construct.js +26 -0
- data/node_modules/@babel/runtime/helpers/createClass.js +18 -0
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +61 -0
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +25 -0
- data/node_modules/@babel/runtime/helpers/createSuper.js +25 -0
- data/node_modules/@babel/runtime/helpers/decorate.js +401 -0
- data/node_modules/@babel/runtime/helpers/defaults.js +17 -0
- data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +25 -0
- data/node_modules/@babel/runtime/helpers/defineProperty.js +17 -0
- data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +95 -0
- data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +28 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +54 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +13 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +35 -0
- data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +20 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/construct.js +18 -0
- data/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +57 -0
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +21 -0
- data/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/decorate.js +396 -0
- data/node_modules/@babel/runtime/helpers/esm/defaults.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +22 -0
- data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
- data/node_modules/@babel/runtime/helpers/esm/get.js +20 -0
- data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/inherits.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/instanceof.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +51 -0
- data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +12 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/jsx.js +46 -0
- data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +39 -0
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/set.js +51 -0
- data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/tdz.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +1 -0
- data/node_modules/@babel/runtime/helpers/esm/toArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +13 -0
- data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +37 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +65 -0
- data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +3 -0
- data/node_modules/@babel/runtime/helpers/extends.js +21 -0
- data/node_modules/@babel/runtime/helpers/get.js +27 -0
- data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +10 -0
- data/node_modules/@babel/runtime/helpers/inherits.js +19 -0
- data/node_modules/@babel/runtime/helpers/inheritsLoose.js +10 -0
- data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +12 -0
- data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +6 -0
- data/node_modules/@babel/runtime/helpers/instanceof.js +10 -0
- data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +8 -0
- data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +54 -0
- data/node_modules/@babel/runtime/helpers/isNativeFunction.js +6 -0
- data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +15 -0
- data/node_modules/@babel/runtime/helpers/iterableToArray.js +6 -0
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +32 -0
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +17 -0
- data/node_modules/@babel/runtime/helpers/jsx.js +50 -0
- data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +13 -0
- data/node_modules/@babel/runtime/helpers/newArrowCheck.js +8 -0
- data/node_modules/@babel/runtime/helpers/nonIterableRest.js +6 -0
- data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +6 -0
- data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +6 -0
- data/node_modules/@babel/runtime/helpers/objectSpread.js +23 -0
- data/node_modules/@babel/runtime/helpers/objectSpread2.js +42 -0
- data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +23 -0
- data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +17 -0
- data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +16 -0
- data/node_modules/@babel/runtime/helpers/readOnlyError.js +6 -0
- data/node_modules/@babel/runtime/helpers/set.js +55 -0
- data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +12 -0
- data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +10 -0
- data/node_modules/@babel/runtime/helpers/slicedToArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/superPropBase.js +13 -0
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +14 -0
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +11 -0
- data/node_modules/@babel/runtime/helpers/tdz.js +6 -0
- data/node_modules/@babel/runtime/helpers/temporalRef.js +10 -0
- data/node_modules/@babel/runtime/helpers/temporalUndefined.js +4 -0
- data/node_modules/@babel/runtime/helpers/toArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/toConsumableArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/toPrimitive.js +17 -0
- data/node_modules/@babel/runtime/helpers/toPropertyKey.js +11 -0
- data/node_modules/@babel/runtime/helpers/typeof.js +22 -0
- data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +13 -0
- data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +10 -0
- data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +45 -0
- data/node_modules/@babel/runtime/helpers/wrapRegExp.js +72 -0
- data/node_modules/@babel/runtime/helpers/writeOnlyError.js +6 -0
- data/node_modules/@babel/runtime/package.json +848 -0
- data/node_modules/@babel/runtime/regenerator/index.js +1 -0
- data/node_modules/css-in-js-utils/Changelog.md +16 -0
- data/node_modules/css-in-js-utils/LICENSE +21 -0
- data/node_modules/css-in-js-utils/README.md +241 -0
- data/node_modules/css-in-js-utils/lib/__tests__/assignStyle-test.js +117 -0
- data/node_modules/css-in-js-utils/lib/__tests__/camelCaseProperty-test.js +15 -0
- data/node_modules/css-in-js-utils/lib/__tests__/cssifyDeclaration-test.js +15 -0
- data/node_modules/css-in-js-utils/lib/__tests__/cssifyObject-test.js +31 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedProperty-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedValue-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isUnitlessProperty-test.js +43 -0
- data/node_modules/css-in-js-utils/lib/__tests__/normalizeProperty-test.js +21 -0
- data/node_modules/css-in-js-utils/lib/__tests__/resolveArrayValue-test.js +17 -0
- data/node_modules/css-in-js-utils/lib/__tests__/unprefixProperty-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/unprefixValue-test.js +20 -0
- data/node_modules/css-in-js-utils/lib/assignStyle.js +37 -0
- data/node_modules/css-in-js-utils/lib/camelCaseProperty.js +15 -0
- data/node_modules/css-in-js-utils/lib/cssifyDeclaration.js +17 -0
- data/node_modules/css-in-js-utils/lib/cssifyObject.js +34 -0
- data/node_modules/css-in-js-utils/lib/hyphenateProperty.js +17 -0
- data/node_modules/css-in-js-utils/lib/index.js +71 -0
- data/node_modules/css-in-js-utils/lib/isPrefixedProperty.js +12 -0
- data/node_modules/css-in-js-utils/lib/isPrefixedValue.js +12 -0
- data/node_modules/css-in-js-utils/lib/isUnitlessProperty.js +64 -0
- data/node_modules/css-in-js-utils/lib/normalizeProperty.js +21 -0
- data/node_modules/css-in-js-utils/lib/resolveArrayValue.js +19 -0
- data/node_modules/css-in-js-utils/lib/unprefixProperty.js +13 -0
- data/node_modules/css-in-js-utils/lib/unprefixValue.js +16 -0
- data/node_modules/css-in-js-utils/package.json +56 -0
- data/node_modules/css-tree/CHANGELOG.md +590 -0
- data/node_modules/css-tree/LICENSE +19 -0
- data/node_modules/css-tree/README.md +130 -0
- data/node_modules/css-tree/data/index.js +103 -0
- data/node_modules/css-tree/data/patch.json +721 -0
- data/node_modules/css-tree/dist/csstree.js +12606 -0
- data/node_modules/css-tree/dist/csstree.min.js +1 -0
- data/node_modules/css-tree/lib/common/List.js +576 -0
- data/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
- data/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
- data/node_modules/css-tree/lib/common/TokenStream.js +219 -0
- data/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
- data/node_modules/css-tree/lib/convertor/create.js +28 -0
- data/node_modules/css-tree/lib/convertor/index.js +3 -0
- data/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
- data/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
- data/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
- data/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
- data/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
- data/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
- data/node_modules/css-tree/lib/generator/create.js +66 -0
- data/node_modules/css-tree/lib/generator/index.js +4 -0
- data/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
- data/node_modules/css-tree/lib/index.js +1 -0
- data/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
- data/node_modules/css-tree/lib/lexer/error.js +127 -0
- data/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
- data/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
- data/node_modules/css-tree/lib/lexer/generic.js +585 -0
- data/node_modules/css-tree/lib/lexer/index.js +3 -0
- data/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
- data/node_modules/css-tree/lib/lexer/match.js +639 -0
- data/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
- data/node_modules/css-tree/lib/lexer/search.js +65 -0
- data/node_modules/css-tree/lib/lexer/structure.js +163 -0
- data/node_modules/css-tree/lib/lexer/trace.js +79 -0
- data/node_modules/css-tree/lib/parser/create.js +304 -0
- data/node_modules/css-tree/lib/parser/index.js +4 -0
- data/node_modules/css-tree/lib/parser/sequence.js +54 -0
- data/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
- data/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
- data/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
- data/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
- data/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
- data/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
- data/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
- data/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
- data/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
- data/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
- data/node_modules/css-tree/lib/syntax/create.js +77 -0
- data/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
- data/node_modules/css-tree/lib/syntax/function/var.js +43 -0
- data/node_modules/css-tree/lib/syntax/index.js +21 -0
- data/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
- data/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
- data/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
- data/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
- data/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
- data/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
- data/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
- data/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
- data/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
- data/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
- data/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
- data/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
- data/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
- data/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
- data/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
- data/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
- data/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
- data/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
- data/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
- data/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
- data/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
- data/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
- data/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
- data/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
- data/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
- data/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
- data/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
- data/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
- data/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
- data/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
- data/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
- data/node_modules/css-tree/lib/syntax/node/String.js +18 -0
- data/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
- data/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
- data/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
- data/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
- data/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
- data/node_modules/css-tree/lib/syntax/node/index.js +42 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
- data/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
- data/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
- data/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
- data/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
- data/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
- data/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
- data/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
- data/node_modules/css-tree/lib/tokenizer/const.js +40 -0
- data/node_modules/css-tree/lib/tokenizer/index.js +591 -0
- data/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
- data/node_modules/css-tree/lib/utils/clone.js +21 -0
- data/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
- data/node_modules/css-tree/lib/utils/names.js +104 -0
- data/node_modules/css-tree/lib/walker/create.js +284 -0
- data/node_modules/css-tree/lib/walker/index.js +4 -0
- data/node_modules/css-tree/package.json +60 -0
- data/node_modules/csstype/LICENSE +19 -0
- data/node_modules/csstype/README.md +273 -0
- data/node_modules/csstype/index.d.ts +20553 -0
- data/node_modules/csstype/index.js.flow +6278 -0
- data/node_modules/csstype/package.json +62 -0
- data/node_modules/error-stack-parser/CHANGELOG.md +53 -0
- data/node_modules/error-stack-parser/LICENSE +19 -0
- data/node_modules/error-stack-parser/README.md +44 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.js +202 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.min.js +2 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map +1 -0
- data/node_modules/error-stack-parser/error-stack-parser.d.ts +66 -0
- data/node_modules/error-stack-parser/error-stack-parser.js +202 -0
- data/node_modules/error-stack-parser/package.json +63 -0
- data/node_modules/fastest-stable-stringify/.eslintrc.yml +26 -0
- data/node_modules/fastest-stable-stringify/.travis.yml +7 -0
- data/node_modules/fastest-stable-stringify/LICENSE +18 -0
- data/node_modules/fastest-stable-stringify/README.md +44 -0
- data/node_modules/fastest-stable-stringify/benchmark/index.js +32 -0
- data/node_modules/fastest-stable-stringify/benchmark/test.json +215 -0
- data/node_modules/fastest-stable-stringify/example/key_cmp.js +7 -0
- data/node_modules/fastest-stable-stringify/example/nested.js +3 -0
- data/node_modules/fastest-stable-stringify/example/str.js +3 -0
- data/node_modules/fastest-stable-stringify/example/value_cmp.js +7 -0
- data/node_modules/fastest-stable-stringify/index.js +60 -0
- data/node_modules/fastest-stable-stringify/package.json +54 -0
- data/node_modules/fastest-stable-stringify/test/bench.js +20 -0
- data/node_modules/fastest-stable-stringify/test/nested.js +24 -0
- data/node_modules/fastest-stable-stringify/test/str.js +52 -0
- data/node_modules/fastest-stable-stringify/test/to-json.js +22 -0
- data/node_modules/hyphenate-style-name/LICENSE +28 -0
- data/node_modules/hyphenate-style-name/README.md +28 -0
- data/node_modules/hyphenate-style-name/index.cjs.js +21 -0
- data/node_modules/hyphenate-style-name/index.js +19 -0
- data/node_modules/hyphenate-style-name/package.json +42 -0
- data/node_modules/inline-style-prefixer/CHANGELOG.md +195 -0
- data/node_modules/inline-style-prefixer/LICENSE +22 -0
- data/node_modules/inline-style-prefixer/README.md +100 -0
- data/node_modules/inline-style-prefixer/es/createPrefixer.js +47 -0
- data/node_modules/inline-style-prefixer/es/data.js +12 -0
- data/node_modules/inline-style-prefixer/es/generator/generatePluginList.js +21 -0
- data/node_modules/inline-style-prefixer/es/generator/generatePrefixMap.js +75 -0
- data/node_modules/inline-style-prefixer/es/generator/index.js +69 -0
- data/node_modules/inline-style-prefixer/es/generator/maps/pluginMap.js +108 -0
- data/node_modules/inline-style-prefixer/es/generator/maps/propertyMap.js +38 -0
- data/node_modules/inline-style-prefixer/es/index.js +26 -0
- data/node_modules/inline-style-prefixer/es/plugins/backgroundClip.js +7 -0
- data/node_modules/inline-style-prefixer/es/plugins/calc.js +11 -0
- data/node_modules/inline-style-prefixer/es/plugins/crossFade.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/cursor.js +16 -0
- data/node_modules/inline-style-prefixer/es/plugins/filter.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/flex.js +10 -0
- data/node_modules/inline-style-prefixer/es/plugins/flexboxIE.js +67 -0
- data/node_modules/inline-style-prefixer/es/plugins/flexboxOld.js +33 -0
- data/node_modules/inline-style-prefixer/es/plugins/gradient.js +14 -0
- data/node_modules/inline-style-prefixer/es/plugins/grid.js +129 -0
- data/node_modules/inline-style-prefixer/es/plugins/imageSet.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/index.js +17 -0
- data/node_modules/inline-style-prefixer/es/plugins/logical.js +35 -0
- data/node_modules/inline-style-prefixer/es/plugins/position.js +5 -0
- data/node_modules/inline-style-prefixer/es/plugins/sizing.js +26 -0
- data/node_modules/inline-style-prefixer/es/plugins/transition.js +75 -0
- data/node_modules/inline-style-prefixer/es/utils/addNewValuesOnly.js +15 -0
- data/node_modules/inline-style-prefixer/es/utils/capitalizeString.js +3 -0
- data/node_modules/inline-style-prefixer/es/utils/isObject.js +3 -0
- data/node_modules/inline-style-prefixer/es/utils/prefixProperty.js +22 -0
- data/node_modules/inline-style-prefixer/es/utils/prefixValue.js +11 -0
- data/node_modules/inline-style-prefixer/lib/createPrefixer.js +66 -0
- data/node_modules/inline-style-prefixer/lib/data.js +17 -0
- data/node_modules/inline-style-prefixer/lib/generator/generatePluginList.js +32 -0
- data/node_modules/inline-style-prefixer/lib/generator/generatePrefixMap.js +86 -0
- data/node_modules/inline-style-prefixer/lib/generator/index.js +85 -0
- data/node_modules/inline-style-prefixer/lib/generator/maps/pluginMap.js +113 -0
- data/node_modules/inline-style-prefixer/lib/generator/maps/propertyMap.js +43 -0
- data/node_modules/inline-style-prefixer/lib/index.js +78 -0
- data/node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js +13 -0
- data/node_modules/inline-style-prefixer/lib/plugins/calc.js +21 -0
- data/node_modules/inline-style-prefixer/lib/plugins/crossFade.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/cursor.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/filter.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flex.js +16 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js +73 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js +39 -0
- data/node_modules/inline-style-prefixer/lib/plugins/gradient.js +26 -0
- data/node_modules/inline-style-prefixer/lib/plugins/grid.js +136 -0
- data/node_modules/inline-style-prefixer/lib/plugins/imageSet.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/index.js +69 -0
- data/node_modules/inline-style-prefixer/lib/plugins/logical.js +41 -0
- data/node_modules/inline-style-prefixer/lib/plugins/position.js +11 -0
- data/node_modules/inline-style-prefixer/lib/plugins/sizing.js +32 -0
- data/node_modules/inline-style-prefixer/lib/plugins/transition.js +92 -0
- data/node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js +21 -0
- data/node_modules/inline-style-prefixer/lib/utils/capitalizeString.js +9 -0
- data/node_modules/inline-style-prefixer/lib/utils/isObject.js +9 -0
- data/node_modules/inline-style-prefixer/lib/utils/prefixProperty.js +32 -0
- data/node_modules/inline-style-prefixer/lib/utils/prefixValue.js +17 -0
- data/node_modules/inline-style-prefixer/package.json +79 -0
- data/node_modules/isobject/LICENSE +21 -0
- data/node_modules/isobject/README.md +122 -0
- data/node_modules/isobject/index.d.ts +5 -0
- data/node_modules/isobject/index.js +12 -0
- data/node_modules/isobject/package.json +74 -0
- data/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/js-tokens/README.md +240 -0
- data/node_modules/js-tokens/index.js +23 -0
- data/node_modules/js-tokens/package.json +30 -0
- data/node_modules/loose-envify/LICENSE +21 -0
- data/node_modules/loose-envify/README.md +45 -0
- data/node_modules/loose-envify/cli.js +16 -0
- data/node_modules/loose-envify/custom.js +4 -0
- data/node_modules/loose-envify/index.js +3 -0
- data/node_modules/loose-envify/loose-envify.js +36 -0
- data/node_modules/loose-envify/package.json +36 -0
- data/node_modules/loose-envify/replace.js +65 -0
- data/node_modules/mdn-data/LICENSE +116 -0
- data/node_modules/mdn-data/README.md +56 -0
- data/node_modules/mdn-data/api/index.js +3 -0
- data/node_modules/mdn-data/api/inheritance.json +2681 -0
- data/node_modules/mdn-data/api/inheritance.schema.json +31 -0
- data/node_modules/mdn-data/css/at-rules.json +560 -0
- data/node_modules/mdn-data/css/at-rules.schema.json +132 -0
- data/node_modules/mdn-data/css/definitions.json +77 -0
- data/node_modules/mdn-data/css/index.js +8 -0
- data/node_modules/mdn-data/css/properties.json +9163 -0
- data/node_modules/mdn-data/css/properties.schema.json +402 -0
- data/node_modules/mdn-data/css/selectors.json +927 -0
- data/node_modules/mdn-data/css/selectors.schema.json +36 -0
- data/node_modules/mdn-data/css/syntaxes.json +761 -0
- data/node_modules/mdn-data/css/syntaxes.schema.json +15 -0
- data/node_modules/mdn-data/css/types.json +265 -0
- data/node_modules/mdn-data/css/types.schema.json +32 -0
- data/node_modules/mdn-data/css/units.json +199 -0
- data/node_modules/mdn-data/css/units.schema.json +28 -0
- data/node_modules/mdn-data/index.js +5 -0
- data/node_modules/mdn-data/l10n/css.json +1567 -0
- data/node_modules/mdn-data/l10n/index.js +3 -0
- data/node_modules/mdn-data/package.json +39 -0
- data/node_modules/nano-css/.circleci/config.yml +85 -0
- data/node_modules/nano-css/.eslintrc.yml +27 -0
- data/node_modules/nano-css/.github/FUNDING.yml +3 -0
- data/node_modules/nano-css/.github/workflows/nodejs.yml +23 -0
- data/node_modules/nano-css/CHANGELOG.md +362 -0
- data/node_modules/nano-css/LICENSE +24 -0
- data/node_modules/nano-css/README.md +70 -0
- data/node_modules/nano-css/addon/__dev__/warnOnMissingDependencies.js +25 -0
- data/node_modules/nano-css/addon/__tests__/__snapshots__/reset.test.js.snap +407 -0
- data/node_modules/nano-css/addon/__tests__/__snapshots__/tachyons.test.js.snap +43 -0
- data/node_modules/nano-css/addon/__tests__/amp.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/amp.server.test.js +223 -0
- data/node_modules/nano-css/addon/__tests__/atoms.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/atoms.server.dev.test.js +8 -0
- data/node_modules/nano-css/addon/__tests__/atoms.server.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/atoms.test.js +49 -0
- data/node_modules/nano-css/addon/__tests__/cssom.server.test.js +12 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.dev.test.js +8 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.test.js +219 -0
- data/node_modules/nano-css/addon/__tests__/env.js +6 -0
- data/node_modules/nano-css/addon/__tests__/extract.server.test.js +159 -0
- data/node_modules/nano-css/addon/__tests__/index.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/index.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/index.test.js +257 -0
- data/node_modules/nano-css/addon/__tests__/jsx.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/jsx.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/jsx.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/jsx.test.js +33 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.test.js +131 -0
- data/node_modules/nano-css/addon/__tests__/limit.server.test.js +54 -0
- data/node_modules/nano-css/addon/__tests__/nesting.test.js +85 -0
- data/node_modules/nano-css/addon/__tests__/prefixer.test.js +121 -0
- data/node_modules/nano-css/addon/__tests__/put.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/put.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/put.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/put.test.js +75 -0
- data/node_modules/nano-css/addon/__tests__/reset.test.js +38 -0
- data/node_modules/nano-css/addon/__tests__/rule.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/rule.server.dev.test.js +7 -0
- data/node_modules/nano-css/addon/__tests__/rule.server.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/rule.test.js +57 -0
- data/node_modules/nano-css/addon/__tests__/setup.js +7 -0
- data/node_modules/nano-css/addon/__tests__/sheet.test.js +74 -0
- data/node_modules/nano-css/addon/__tests__/snake.test.js +124 -0
- data/node_modules/nano-css/addon/__tests__/tachyons.test.js +45 -0
- data/node_modules/nano-css/addon/__tests__/units.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/units.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/units.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/units.test.js +41 -0
- data/node_modules/nano-css/addon/__tests__/validate.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/validate.test.js +69 -0
- data/node_modules/nano-css/addon/__tests__/vcssom.server.test.js +14 -0
- data/node_modules/nano-css/addon/__tests__/virtual.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/virtual.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/virtual.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/virtual.test.js +225 -0
- data/node_modules/nano-css/addon/amp.d.ts +5 -0
- data/node_modules/nano-css/addon/amp.js +156 -0
- data/node_modules/nano-css/addon/animate/fadeIn.js +22 -0
- data/node_modules/nano-css/addon/animate/fadeInDown.js +25 -0
- data/node_modules/nano-css/addon/animate/fadeInScale.js +25 -0
- data/node_modules/nano-css/addon/animate/fadeOut.js +23 -0
- data/node_modules/nano-css/addon/animate/fadeOutScale.js +21 -0
- data/node_modules/nano-css/addon/array.d.ts +5 -0
- data/node_modules/nano-css/addon/array.js +33 -0
- data/node_modules/nano-css/addon/atoms.d.ts +243 -0
- data/node_modules/nano-css/addon/atoms.js +63 -0
- data/node_modules/nano-css/addon/cache.d.ts +8 -0
- data/node_modules/nano-css/addon/cache.js +17 -0
- data/node_modules/nano-css/addon/component.d.ts +7 -0
- data/node_modules/nano-css/addon/component.js +26 -0
- data/node_modules/nano-css/addon/cssom.d.ts +17 -0
- data/node_modules/nano-css/addon/cssom.js +36 -0
- data/node_modules/nano-css/addon/decorator.d.ts +7 -0
- data/node_modules/nano-css/addon/decorator.js +43 -0
- data/node_modules/nano-css/addon/drule.d.ts +8 -0
- data/node_modules/nano-css/addon/drule.js +27 -0
- data/node_modules/nano-css/addon/dsheet.d.ts +8 -0
- data/node_modules/nano-css/addon/dsheet.js +36 -0
- data/node_modules/nano-css/addon/emmet.d.ts +614 -0
- data/node_modules/nano-css/addon/emmet.js +177 -0
- data/node_modules/nano-css/addon/extract.d.ts +5 -0
- data/node_modules/nano-css/addon/extract.js +59 -0
- data/node_modules/nano-css/addon/global.d.ts +8 -0
- data/node_modules/nano-css/addon/global.js +19 -0
- data/node_modules/nano-css/addon/googleFont.d.ts +8 -0
- data/node_modules/nano-css/addon/googleFont.js +43 -0
- data/node_modules/nano-css/addon/hydrate.d.ts +7 -0
- data/node_modules/nano-css/addon/hydrate.js +28 -0
- data/node_modules/nano-css/addon/hyperstyle.js +27 -0
- data/node_modules/nano-css/addon/important.js +38 -0
- data/node_modules/nano-css/addon/jsx.js +60 -0
- data/node_modules/nano-css/addon/keyframes.d.ts +34 -0
- data/node_modules/nano-css/addon/keyframes.js +61 -0
- data/node_modules/nano-css/addon/limit.js +26 -0
- data/node_modules/nano-css/addon/nesting.js +37 -0
- data/node_modules/nano-css/addon/pipe.js +57 -0
- data/node_modules/nano-css/addon/prefixer.js +79 -0
- data/node_modules/nano-css/addon/ref.js +87 -0
- data/node_modules/nano-css/addon/reset/EricMeyer.js +48 -0
- data/node_modules/nano-css/addon/reset/EricMeyerCondensed.js +44 -0
- data/node_modules/nano-css/addon/reset/Minimalistic.js +16 -0
- data/node_modules/nano-css/addon/reset/Minimalistic2.js +17 -0
- data/node_modules/nano-css/addon/reset/Minimalistic3.js +18 -0
- data/node_modules/nano-css/addon/reset/Normalize.js +83 -0
- data/node_modules/nano-css/addon/reset/PoorMan.js +25 -0
- data/node_modules/nano-css/addon/reset/ShaunInman.js +42 -0
- data/node_modules/nano-css/addon/reset/Siolon.js +34 -0
- data/node_modules/nano-css/addon/reset/Tantek.js +31 -0
- data/node_modules/nano-css/addon/reset/Tripoli.js +75 -0
- data/node_modules/nano-css/addon/reset/Universal.js +23 -0
- data/node_modules/nano-css/addon/reset/Yahoo.js +43 -0
- data/node_modules/nano-css/addon/reset-font.js +24 -0
- data/node_modules/nano-css/addon/rtl.js +15 -0
- data/node_modules/nano-css/addon/rule.d.ts +26 -0
- data/node_modules/nano-css/addon/rule.js +39 -0
- data/node_modules/nano-css/addon/sheet.d.ts +22 -0
- data/node_modules/nano-css/addon/sheet.js +45 -0
- data/node_modules/nano-css/addon/snake.js +141 -0
- data/node_modules/nano-css/addon/sourcemaps.js +96 -0
- data/node_modules/nano-css/addon/spread.js +23 -0
- data/node_modules/nano-css/addon/stable.js +7 -0
- data/node_modules/nano-css/addon/style.js +33 -0
- data/node_modules/nano-css/addon/styled.js +161 -0
- data/node_modules/nano-css/addon/stylis/plugin-onRule.js +43 -0
- data/node_modules/nano-css/addon/stylis.js +28 -0
- data/node_modules/nano-css/addon/tachyons.js +215 -0
- data/node_modules/nano-css/addon/unitless.js +78 -0
- data/node_modules/nano-css/addon/units.d.ts +89 -0
- data/node_modules/nano-css/addon/units.js +27 -0
- data/node_modules/nano-css/addon/useStyles.js +24 -0
- data/node_modules/nano-css/addon/util/cloneElement.js +11 -0
- data/node_modules/nano-css/addon/util/transformComponentDynamic.js +50 -0
- data/node_modules/nano-css/addon/util/transformComponentStatic.js +26 -0
- data/node_modules/nano-css/addon/validate.js +82 -0
- data/node_modules/nano-css/addon/vcssom/__tests__/cssToTree.test.js +159 -0
- data/node_modules/nano-css/addon/vcssom/cssToTree.d.ts +15 -0
- data/node_modules/nano-css/addon/vcssom/cssToTree.js +42 -0
- data/node_modules/nano-css/addon/vcssom/removeRule.d.ts +3 -0
- data/node_modules/nano-css/addon/vcssom/removeRule.js +15 -0
- data/node_modules/nano-css/addon/vcssom.d.ts +72 -0
- data/node_modules/nano-css/addon/vcssom.js +97 -0
- data/node_modules/nano-css/addon/virtual.js +107 -0
- data/node_modules/nano-css/addon/withStyles.js +32 -0
- data/node_modules/nano-css/index.d.ts +4 -0
- data/node_modules/nano-css/index.js +138 -0
- data/node_modules/nano-css/package.json +145 -0
- data/node_modules/nano-css/preset/react.js +43 -0
- data/node_modules/nano-css/preset/sheet.d.ts +5 -0
- data/node_modules/nano-css/preset/sheet.js +27 -0
- data/node_modules/nano-css/preset/vdom.js +40 -0
- data/node_modules/nano-css/prettier.config.js +13 -0
- data/node_modules/nano-css/renovate.json +3 -0
- data/node_modules/nano-css/types/common.d.ts +14 -0
- data/node_modules/nano-css/types/demo.ts +7 -0
- data/node_modules/nano-css/types/nano.d.ts +171 -0
- data/node_modules/object-assign/index.js +90 -0
- data/node_modules/object-assign/license +21 -0
- data/node_modules/object-assign/package.json +42 -0
- data/node_modules/object-assign/readme.md +61 -0
- data/node_modules/preact/LICENSE +21 -0
- data/node_modules/preact/README.md +187 -0
- data/node_modules/preact/compat/LICENSE +21 -0
- data/node_modules/preact/compat/dist/compat.js +2 -0
- data/node_modules/preact/compat/dist/compat.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.mjs +2 -0
- data/node_modules/preact/compat/dist/compat.mjs.map +1 -0
- data/node_modules/preact/compat/dist/compat.modern.js +2 -0
- data/node_modules/preact/compat/dist/compat.modern.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.module.js +2 -0
- data/node_modules/preact/compat/dist/compat.module.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.umd.js +2 -0
- data/node_modules/preact/compat/dist/compat.umd.js.map +1 -0
- data/node_modules/preact/compat/jsx-dev-runtime.js +1 -0
- data/node_modules/preact/compat/jsx-dev-runtime.mjs +1 -0
- data/node_modules/preact/compat/jsx-runtime.js +1 -0
- data/node_modules/preact/compat/jsx-runtime.mjs +1 -0
- data/node_modules/preact/compat/package.json +19 -0
- data/node_modules/preact/compat/scheduler.js +15 -0
- data/node_modules/preact/compat/scheduler.mjs +23 -0
- data/node_modules/preact/compat/server.js +15 -0
- data/node_modules/preact/compat/server.mjs +4 -0
- data/node_modules/preact/compat/src/Children.js +21 -0
- data/node_modules/preact/compat/src/PureComponent.js +15 -0
- data/node_modules/preact/compat/src/forwardRef.js +51 -0
- data/node_modules/preact/compat/src/index.d.ts +140 -0
- data/node_modules/preact/compat/src/index.js +187 -0
- data/node_modules/preact/compat/src/internal.d.ts +47 -0
- data/node_modules/preact/compat/src/memo.js +34 -0
- data/node_modules/preact/compat/src/portals.js +80 -0
- data/node_modules/preact/compat/src/render.js +219 -0
- data/node_modules/preact/compat/src/suspense-list.d.ts +14 -0
- data/node_modules/preact/compat/src/suspense-list.js +126 -0
- data/node_modules/preact/compat/src/suspense.d.ts +15 -0
- data/node_modules/preact/compat/src/suspense.js +270 -0
- data/node_modules/preact/compat/src/util.js +28 -0
- data/node_modules/preact/compat/test-utils.js +1 -0
- data/node_modules/preact/debug/LICENSE +21 -0
- data/node_modules/preact/debug/dist/debug.js +2 -0
- data/node_modules/preact/debug/dist/debug.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.mjs +2 -0
- data/node_modules/preact/debug/dist/debug.mjs.map +1 -0
- data/node_modules/preact/debug/dist/debug.modern.js +2 -0
- data/node_modules/preact/debug/dist/debug.modern.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.module.js +2 -0
- data/node_modules/preact/debug/dist/debug.module.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.umd.js +2 -0
- data/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
- data/node_modules/preact/debug/package.json +18 -0
- data/node_modules/preact/debug/src/check-props.js +54 -0
- data/node_modules/preact/debug/src/component-stack.js +146 -0
- data/node_modules/preact/debug/src/constants.js +3 -0
- data/node_modules/preact/debug/src/debug.js +442 -0
- data/node_modules/preact/debug/src/index.js +6 -0
- data/node_modules/preact/debug/src/internal.d.ts +82 -0
- data/node_modules/preact/debug/src/util.js +11 -0
- data/node_modules/preact/devtools/LICENSE +21 -0
- data/node_modules/preact/devtools/dist/devtools.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.mjs +2 -0
- data/node_modules/preact/devtools/dist/devtools.mjs.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.modern.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.modern.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.module.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.module.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.umd.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -0
- data/node_modules/preact/devtools/package.json +16 -0
- data/node_modules/preact/devtools/src/devtools.js +10 -0
- data/node_modules/preact/devtools/src/index.d.ts +8 -0
- data/node_modules/preact/devtools/src/index.js +15 -0
- data/node_modules/preact/dist/preact.js +2 -0
- data/node_modules/preact/dist/preact.js.map +1 -0
- data/node_modules/preact/dist/preact.min.js +2 -0
- data/node_modules/preact/dist/preact.min.js.map +1 -0
- data/node_modules/preact/dist/preact.mjs +2 -0
- data/node_modules/preact/dist/preact.mjs.map +1 -0
- data/node_modules/preact/dist/preact.module.js +2 -0
- data/node_modules/preact/dist/preact.module.js.map +1 -0
- data/node_modules/preact/dist/preact.umd.js +2 -0
- data/node_modules/preact/dist/preact.umd.js.map +1 -0
- data/node_modules/preact/hooks/LICENSE +21 -0
- data/node_modules/preact/hooks/dist/hooks.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.mjs +2 -0
- data/node_modules/preact/hooks/dist/hooks.mjs.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.modern.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.modern.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.module.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.module.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.umd.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -0
- data/node_modules/preact/hooks/package.json +26 -0
- data/node_modules/preact/hooks/src/index.d.ts +133 -0
- data/node_modules/preact/hooks/src/index.js +386 -0
- data/node_modules/preact/hooks/src/internal.d.ts +75 -0
- data/node_modules/preact/jsx-runtime/LICENSE +21 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -0
- data/node_modules/preact/jsx-runtime/package.json +19 -0
- data/node_modules/preact/jsx-runtime/src/index.d.ts +50 -0
- data/node_modules/preact/jsx-runtime/src/index.js +77 -0
- data/node_modules/preact/package.json +270 -0
- data/node_modules/preact/src/cjs.js +3 -0
- data/node_modules/preact/src/clone-element.js +34 -0
- data/node_modules/preact/src/component.js +225 -0
- data/node_modules/preact/src/constants.js +3 -0
- data/node_modules/preact/src/create-context.js +68 -0
- data/node_modules/preact/src/create-element.js +97 -0
- data/node_modules/preact/src/diff/catch-error.js +38 -0
- data/node_modules/preact/src/diff/children.js +347 -0
- data/node_modules/preact/src/diff/index.js +514 -0
- data/node_modules/preact/src/diff/props.js +158 -0
- data/node_modules/preact/src/index.d.ts +310 -0
- data/node_modules/preact/src/index.js +13 -0
- data/node_modules/preact/src/internal.d.ts +146 -0
- data/node_modules/preact/src/jsx.d.ts +962 -0
- data/node_modules/preact/src/options.js +16 -0
- data/node_modules/preact/src/render.js +75 -0
- data/node_modules/preact/src/util.js +27 -0
- data/node_modules/preact/test-utils/dist/testUtils.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.mjs +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.mjs.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.modern.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.modern.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.module.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.umd.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -0
- data/node_modules/preact/test-utils/package.json +19 -0
- data/node_modules/preact/test-utils/src/index.d.ts +3 -0
- data/node_modules/preact/test-utils/src/index.js +117 -0
- data/node_modules/preact-deep-force-update/.babelrc +8 -0
- data/node_modules/preact-deep-force-update/.eslintrc +66 -0
- data/node_modules/preact-deep-force-update/.npmignore +2 -0
- data/node_modules/preact-deep-force-update/.travis.yml +3 -0
- data/node_modules/preact-deep-force-update/LICENSE +21 -0
- data/node_modules/preact-deep-force-update/README.md +53 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.js +36 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.js.map +1 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js +2 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js.map +1 -0
- data/node_modules/preact-deep-force-update/karma.conf.js +32 -0
- data/node_modules/preact-deep-force-update/package.json +80 -0
- data/node_modules/preact-deep-force-update/rollup.config.js +17 -0
- data/node_modules/preact-deep-force-update/src/index.js +27 -0
- data/node_modules/preact-deep-force-update/test/index.js +50 -0
- data/node_modules/preact-render-to-string/LICENSE +21 -0
- data/node_modules/preact-render-to-string/README.md +102 -0
- data/node_modules/preact-render-to-string/dist/commonjs.js +2 -0
- data/node_modules/preact-render-to-string/dist/commonjs.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/index.d.ts +16 -0
- data/node_modules/preact-render-to-string/dist/index.js +1 -0
- data/node_modules/preact-render-to-string/dist/index.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/index.mjs +2 -0
- data/node_modules/preact-render-to-string/dist/index.module.js +2 -0
- data/node_modules/preact-render-to-string/dist/index.module.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx-entry.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx-entry.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.d.ts +13 -0
- data/node_modules/preact-render-to-string/dist/jsx.js +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.mjs +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.modern.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.modern.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.module.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.module.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/preact-render-to-string-tests.d.ts +1 -0
- data/node_modules/preact-render-to-string/jsx.js +1 -0
- data/node_modules/preact-render-to-string/package.json +139 -0
- data/node_modules/preact-render-to-string/src/index.d.ts +16 -0
- data/node_modules/preact-render-to-string/src/index.js +438 -0
- data/node_modules/preact-render-to-string/src/jsx.d.ts +13 -0
- data/node_modules/preact-render-to-string/src/jsx.js +76 -0
- data/node_modules/preact-render-to-string/src/polyfills.js +8 -0
- data/node_modules/preact-render-to-string/src/preact-render-to-string-tests.d.ts +1 -0
- data/node_modules/preact-render-to-string/src/util.js +78 -0
- data/node_modules/preact-render-to-string/typings.json +5 -0
- data/node_modules/pretty-format/.npmignore +3 -0
- data/node_modules/pretty-format/LICENSE.md +15 -0
- data/node_modules/pretty-format/README.md +94 -0
- data/node_modules/pretty-format/index.js +343 -0
- data/node_modules/pretty-format/package.json +26 -0
- data/node_modules/pretty-format/plugins/ReactElement.js +74 -0
- data/node_modules/pretty-format/plugins/ReactTestComponent.js +58 -0
- data/node_modules/pretty-format/printString.js +7 -0
- data/node_modules/react/LICENSE +21 -0
- data/node_modules/react/README.md +13 -0
- data/node_modules/react/build-info.json +8 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.development.js +1203 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +9 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +9 -0
- data/node_modules/react/cjs/react-jsx-runtime.development.js +1221 -0
- data/node_modules/react/cjs/react-jsx-runtime.production.min.js +10 -0
- data/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +10 -0
- data/node_modules/react/cjs/react.development.js +2333 -0
- data/node_modules/react/cjs/react.production.min.js +23 -0
- data/node_modules/react/index.js +7 -0
- data/node_modules/react/jsx-dev-runtime.js +7 -0
- data/node_modules/react/jsx-runtime.js +7 -0
- data/node_modules/react/package.json +39 -0
- data/node_modules/react/umd/react.development.js +3357 -0
- data/node_modules/react/umd/react.production.min.js +31 -0
- data/node_modules/react/umd/react.profiling.min.js +36 -0
- data/node_modules/react-dom/LICENSE +21 -0
- data/node_modules/react-dom/README.md +54 -0
- data/node_modules/react-dom/build-info.json +8 -0
- data/node_modules/react-dom/cjs/react-dom-server.browser.development.js +4342 -0
- data/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +51 -0
- data/node_modules/react-dom/cjs/react-dom-server.node.development.js +4383 -0
- data/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +52 -0
- data/node_modules/react-dom/cjs/react-dom-test-utils.development.js +2118 -0
- data/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +43 -0
- data/node_modules/react-dom/cjs/react-dom.development.js +26262 -0
- data/node_modules/react-dom/cjs/react-dom.production.min.js +297 -0
- data/node_modules/react-dom/cjs/react-dom.profiling.min.js +310 -0
- data/node_modules/react-dom/index.js +38 -0
- data/node_modules/react-dom/package.json +49 -0
- data/node_modules/react-dom/profiling.js +38 -0
- data/node_modules/react-dom/server.browser.js +7 -0
- data/node_modules/react-dom/server.js +3 -0
- data/node_modules/react-dom/server.node.js +7 -0
- data/node_modules/react-dom/test-utils.js +7 -0
- data/node_modules/react-dom/umd/react-dom-server.browser.development.js +4341 -0
- data/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +46 -0
- data/node_modules/react-dom/umd/react-dom-test-utils.development.js +2136 -0
- data/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +35 -0
- data/node_modules/react-dom/umd/react-dom.development.js +26292 -0
- data/node_modules/react-dom/umd/react-dom.production.min.js +245 -0
- data/node_modules/react-dom/umd/react-dom.profiling.min.js +252 -0
- data/node_modules/regenerator-runtime/LICENSE +21 -0
- data/node_modules/regenerator-runtime/README.md +31 -0
- data/node_modules/regenerator-runtime/package.json +19 -0
- data/node_modules/regenerator-runtime/path.js +11 -0
- data/node_modules/regenerator-runtime/runtime.js +754 -0
- data/node_modules/rtl-css-js/CHANGELOG.md +5 -0
- data/node_modules/rtl-css-js/LICENSE +20 -0
- data/node_modules/rtl-css-js/README.md +205 -0
- data/node_modules/rtl-css-js/core/package.json +6 -0
- data/node_modules/rtl-css-js/core.d.ts +163 -0
- data/node_modules/rtl-css-js/core.esm.d.ts +1 -0
- data/node_modules/rtl-css-js/core.esm.js +9 -0
- data/node_modules/rtl-css-js/dist/cjs/convert-a10c80e3.js +509 -0
- data/node_modules/rtl-css-js/dist/cjs/core.js +30 -0
- data/node_modules/rtl-css-js/dist/cjs/index.js +7 -0
- data/node_modules/rtl-css-js/dist/esm/convert-09159978.js +487 -0
- data/node_modules/rtl-css-js/dist/esm/core.js +1 -0
- data/node_modules/rtl-css-js/dist/esm/index.js +5 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js +519 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js +2 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js +496 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js +2 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js.map +1 -0
- data/node_modules/rtl-css-js/package.json +66 -0
- data/node_modules/rtl-css-js/types.d.ts +8 -0
- data/node_modules/scheduler/LICENSE +21 -0
- data/node_modules/scheduler/README.md +9 -0
- data/node_modules/scheduler/build-info.json +8 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.development.js +347 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +9 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +16 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +665 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +19 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +206 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +13 -0
- data/node_modules/scheduler/cjs/scheduler.development.js +646 -0
- data/node_modules/scheduler/cjs/scheduler.production.min.js +20 -0
- data/node_modules/scheduler/index.js +7 -0
- data/node_modules/scheduler/package.json +40 -0
- data/node_modules/scheduler/tracing-profiling.js +7 -0
- data/node_modules/scheduler/tracing.js +7 -0
- data/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
- data/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
- data/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
- data/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +664 -0
- data/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +18 -0
- data/node_modules/scheduler/umd/scheduler.development.js +152 -0
- data/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
- data/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
- data/node_modules/scheduler/unstable_mock.js +7 -0
- data/node_modules/scheduler/unstable_post_task.js +7 -0
- data/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/README.md +742 -0
- data/node_modules/source-map/dist/source-map.debug.js +3234 -0
- data/node_modules/source-map/dist/source-map.js +3233 -0
- data/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- data/node_modules/source-map/lib/source-map-generator.js +425 -0
- data/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/source-map/lib/util.js +488 -0
- data/node_modules/source-map/package.json +73 -0
- data/node_modules/source-map/source-map.d.ts +98 -0
- data/node_modules/source-map/source-map.js +8 -0
- data/node_modules/sourcemap-codec/CHANGELOG.md +64 -0
- data/node_modules/sourcemap-codec/LICENSE +21 -0
- data/node_modules/sourcemap-codec/README.md +63 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +124 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js.map +1 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +135 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- data/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- data/node_modules/sourcemap-codec/package.json +53 -0
- data/node_modules/stack-generator/.eslintrc.yml +32 -0
- data/node_modules/stack-generator/CHANGELOG.md +18 -0
- data/node_modules/stack-generator/CONTRIBUTING.md +27 -0
- data/node_modules/stack-generator/LICENSE +19 -0
- data/node_modules/stack-generator/README.md +28 -0
- data/node_modules/stack-generator/bower.json +33 -0
- data/node_modules/stack-generator/component.json +17 -0
- data/node_modules/stack-generator/dist/stack-generator.js +45 -0
- data/node_modules/stack-generator/dist/stack-generator.min.js +2 -0
- data/node_modules/stack-generator/dist/stack-generator.min.js.map +1 -0
- data/node_modules/stack-generator/karma.conf.ci.js +108 -0
- data/node_modules/stack-generator/karma.conf.js +26 -0
- data/node_modules/stack-generator/package.json +53 -0
- data/node_modules/stack-generator/stack-generator.js +45 -0
- data/node_modules/stackframe/.eslintrc.yml +29 -0
- data/node_modules/stackframe/CHANGELOG.md +39 -0
- data/node_modules/stackframe/CONTRIBUTING.md +28 -0
- data/node_modules/stackframe/LICENSE +19 -0
- data/node_modules/stackframe/README.md +78 -0
- data/node_modules/stackframe/bower.json +31 -0
- data/node_modules/stackframe/component.json +16 -0
- data/node_modules/stackframe/dist/stackframe.js +143 -0
- data/node_modules/stackframe/dist/stackframe.min.js +2 -0
- data/node_modules/stackframe/dist/stackframe.min.js.map +1 -0
- data/node_modules/stackframe/karma.conf.ci.js +105 -0
- data/node_modules/stackframe/karma.conf.js +23 -0
- data/node_modules/stackframe/package.json +51 -0
- data/node_modules/stackframe/stackframe-tests.ts +47 -0
- data/node_modules/stackframe/stackframe.d.ts +74 -0
- data/node_modules/stackframe/stackframe.js +143 -0
- data/node_modules/stacktrace-gps/CHANGELOG.md +60 -0
- data/node_modules/stacktrace-gps/LICENSE +19 -0
- data/node_modules/stacktrace-gps/README.md +89 -0
- data/node_modules/stacktrace-gps/dist/polyfills.js +5 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js +2 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js.map +1 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.js +342 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js +2 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js.map +1 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/LICENSE +28 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/README.md +729 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.debug.js +3056 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.js +3055 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/array-set.js +104 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-generator.js +404 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-node.js +407 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/package.json +71 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/source-map.js +8 -0
- data/node_modules/stacktrace-gps/package.json +66 -0
- data/node_modules/stacktrace-gps/stacktrace-gps.js +342 -0
- data/node_modules/stacktrace-js/CHANGELOG.md +97 -0
- data/node_modules/stacktrace-js/LICENSE +19 -0
- data/node_modules/stacktrace-js/README.md +186 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.js +5405 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js +3 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js.map +1 -0
- data/node_modules/stacktrace-js/dist/stacktrace.js +3025 -0
- data/node_modules/stacktrace-js/dist/stacktrace.min.js +2 -0
- data/node_modules/stacktrace-js/dist/stacktrace.min.js.map +1 -0
- data/node_modules/stacktrace-js/package.json +82 -0
- data/node_modules/stacktrace-js/stacktrace-js.d.ts +134 -0
- data/node_modules/stacktrace-js/stacktrace.js +227 -0
- data/node_modules/stylis/LICENSE +21 -0
- data/node_modules/stylis/README.md +152 -0
- data/node_modules/stylis/dist/stylis.mjs +2 -0
- data/node_modules/stylis/dist/stylis.mjs.map +1 -0
- data/node_modules/stylis/dist/umd/package.json +1 -0
- data/node_modules/stylis/dist/umd/stylis.js +2 -0
- data/node_modules/stylis/dist/umd/stylis.js.map +1 -0
- data/node_modules/stylis/index.js +7 -0
- data/node_modules/stylis/package.json +164 -0
- data/node_modules/stylis/src/Enum.js +20 -0
- data/node_modules/stylis/src/Middleware.js +107 -0
- data/node_modules/stylis/src/Parser.js +184 -0
- data/node_modules/stylis/src/Prefixer.js +119 -0
- data/node_modules/stylis/src/Serializer.js +34 -0
- data/node_modules/stylis/src/Tokenizer.js +244 -0
- data/node_modules/stylis/src/Utility.js +109 -0
- data/node_modules/wouter-preact/cjs/index.js +180 -0
- data/node_modules/wouter-preact/cjs/matcher.js +72 -0
- data/node_modules/wouter-preact/cjs/package.json +1 -0
- data/node_modules/wouter-preact/cjs/react-deps.js +75 -0
- data/node_modules/wouter-preact/cjs/static-location.js +21 -0
- data/node_modules/wouter-preact/cjs/use-location.js +94 -0
- data/node_modules/wouter-preact/index.d.ts +110 -0
- data/node_modules/wouter-preact/index.js +178 -0
- data/node_modules/wouter-preact/matcher.d.ts +30 -0
- data/node_modules/wouter-preact/matcher.js +66 -0
- data/node_modules/wouter-preact/package.json +33 -0
- data/node_modules/wouter-preact/react-deps.js +15 -0
- data/node_modules/wouter-preact/static-location.d.ts +16 -0
- data/node_modules/wouter-preact/static-location.js +17 -0
- data/node_modules/wouter-preact/use-location.d.ts +43 -0
- data/node_modules/wouter-preact/use-location.js +86 -0
- data/package.json +10 -0
- metadata +1097 -24
@@ -0,0 +1,301 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## 0.5.6
|
4
|
+
|
5
|
+
* Fix for regression when people were using numbers as names in source maps. See
|
6
|
+
#236.
|
7
|
+
|
8
|
+
## 0.5.5
|
9
|
+
|
10
|
+
* Fix "regression" of unsupported, implementation behavior that half the world
|
11
|
+
happens to have come to depend on. See #235.
|
12
|
+
|
13
|
+
* Fix regression involving function hoisting in SpiderMonkey. See #233.
|
14
|
+
|
15
|
+
## 0.5.4
|
16
|
+
|
17
|
+
* Large performance improvements to source-map serialization. See #228 and #229.
|
18
|
+
|
19
|
+
## 0.5.3
|
20
|
+
|
21
|
+
* Do not include unnecessary distribution files. See
|
22
|
+
commit ef7006f8d1647e0a83fdc60f04f5a7ca54886f86.
|
23
|
+
|
24
|
+
## 0.5.2
|
25
|
+
|
26
|
+
* Include browser distributions of the library in package.json's `files`. See
|
27
|
+
issue #212.
|
28
|
+
|
29
|
+
## 0.5.1
|
30
|
+
|
31
|
+
* Fix latent bugs in IndexedSourceMapConsumer.prototype._parseMappings. See
|
32
|
+
ff05274becc9e6e1295ed60f3ea090d31d843379.
|
33
|
+
|
34
|
+
## 0.5.0
|
35
|
+
|
36
|
+
* Node 0.8 is no longer supported.
|
37
|
+
|
38
|
+
* Use webpack instead of dryice for bundling.
|
39
|
+
|
40
|
+
* Big speedups serializing source maps. See pull request #203.
|
41
|
+
|
42
|
+
* Fix a bug with `SourceMapConsumer.prototype.sourceContentFor` and sources that
|
43
|
+
explicitly start with the source root. See issue #199.
|
44
|
+
|
45
|
+
## 0.4.4
|
46
|
+
|
47
|
+
* Fix an issue where using a `SourceMapGenerator` after having created a
|
48
|
+
`SourceMapConsumer` from it via `SourceMapConsumer.fromSourceMap` failed. See
|
49
|
+
issue #191.
|
50
|
+
|
51
|
+
* Fix an issue with where `SourceMapGenerator` would mistakenly consider
|
52
|
+
different mappings as duplicates of each other and avoid generating them. See
|
53
|
+
issue #192.
|
54
|
+
|
55
|
+
## 0.4.3
|
56
|
+
|
57
|
+
* A very large number of performance improvements, particularly when parsing
|
58
|
+
source maps. Collectively about 75% of time shaved off of the source map
|
59
|
+
parsing benchmark!
|
60
|
+
|
61
|
+
* Fix a bug in `SourceMapConsumer.prototype.allGeneratedPositionsFor` and fuzzy
|
62
|
+
searching in the presence of a column option. See issue #177.
|
63
|
+
|
64
|
+
* Fix a bug with joining a source and its source root when the source is above
|
65
|
+
the root. See issue #182.
|
66
|
+
|
67
|
+
* Add the `SourceMapConsumer.prototype.hasContentsOfAllSources` method to
|
68
|
+
determine when all sources' contents are inlined into the source map. See
|
69
|
+
issue #190.
|
70
|
+
|
71
|
+
## 0.4.2
|
72
|
+
|
73
|
+
* Add an `.npmignore` file so that the benchmarks aren't pulled down by
|
74
|
+
dependent projects. Issue #169.
|
75
|
+
|
76
|
+
* Add an optional `column` argument to
|
77
|
+
`SourceMapConsumer.prototype.allGeneratedPositionsFor` and better handle lines
|
78
|
+
with no mappings. Issues #172 and #173.
|
79
|
+
|
80
|
+
## 0.4.1
|
81
|
+
|
82
|
+
* Fix accidentally defining a global variable. #170.
|
83
|
+
|
84
|
+
## 0.4.0
|
85
|
+
|
86
|
+
* The default direction for fuzzy searching was changed back to its original
|
87
|
+
direction. See #164.
|
88
|
+
|
89
|
+
* There is now a `bias` option you can supply to `SourceMapConsumer` to control
|
90
|
+
the fuzzy searching direction. See #167.
|
91
|
+
|
92
|
+
* About an 8% speed up in parsing source maps. See #159.
|
93
|
+
|
94
|
+
* Added a benchmark for parsing and generating source maps.
|
95
|
+
|
96
|
+
## 0.3.0
|
97
|
+
|
98
|
+
* Change the default direction that searching for positions fuzzes when there is
|
99
|
+
not an exact match. See #154.
|
100
|
+
|
101
|
+
* Support for environments using json2.js for JSON serialization. See #156.
|
102
|
+
|
103
|
+
## 0.2.0
|
104
|
+
|
105
|
+
* Support for consuming "indexed" source maps which do not have any remote
|
106
|
+
sections. See pull request #127. This introduces a minor backwards
|
107
|
+
incompatibility if you are monkey patching `SourceMapConsumer.prototype`
|
108
|
+
methods.
|
109
|
+
|
110
|
+
## 0.1.43
|
111
|
+
|
112
|
+
* Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue
|
113
|
+
#148 for some discussion and issues #150, #151, and #152 for implementations.
|
114
|
+
|
115
|
+
## 0.1.42
|
116
|
+
|
117
|
+
* Fix an issue where `SourceNode`s from different versions of the source-map
|
118
|
+
library couldn't be used in conjunction with each other. See issue #142.
|
119
|
+
|
120
|
+
## 0.1.41
|
121
|
+
|
122
|
+
* Fix a bug with getting the source content of relative sources with a "./"
|
123
|
+
prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768).
|
124
|
+
|
125
|
+
* Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the
|
126
|
+
column span of each mapping.
|
127
|
+
|
128
|
+
* Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find
|
129
|
+
all generated positions associated with a given original source and line.
|
130
|
+
|
131
|
+
## 0.1.40
|
132
|
+
|
133
|
+
* Performance improvements for parsing source maps in SourceMapConsumer.
|
134
|
+
|
135
|
+
## 0.1.39
|
136
|
+
|
137
|
+
* Fix a bug where setting a source's contents to null before any source content
|
138
|
+
had been set before threw a TypeError. See issue #131.
|
139
|
+
|
140
|
+
## 0.1.38
|
141
|
+
|
142
|
+
* Fix a bug where finding relative paths from an empty path were creating
|
143
|
+
absolute paths. See issue #129.
|
144
|
+
|
145
|
+
## 0.1.37
|
146
|
+
|
147
|
+
* Fix a bug where if the source root was an empty string, relative source paths
|
148
|
+
would turn into absolute source paths. Issue #124.
|
149
|
+
|
150
|
+
## 0.1.36
|
151
|
+
|
152
|
+
* Allow the `names` mapping property to be an empty string. Issue #121.
|
153
|
+
|
154
|
+
## 0.1.35
|
155
|
+
|
156
|
+
* A third optional parameter was added to `SourceNode.fromStringWithSourceMap`
|
157
|
+
to specify a path that relative sources in the second parameter should be
|
158
|
+
relative to. Issue #105.
|
159
|
+
|
160
|
+
* If no file property is given to a `SourceMapGenerator`, then the resulting
|
161
|
+
source map will no longer have a `null` file property. The property will
|
162
|
+
simply not exist. Issue #104.
|
163
|
+
|
164
|
+
* Fixed a bug where consecutive newlines were ignored in `SourceNode`s.
|
165
|
+
Issue #116.
|
166
|
+
|
167
|
+
## 0.1.34
|
168
|
+
|
169
|
+
* Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103.
|
170
|
+
|
171
|
+
* Fix bug involving source contents and the
|
172
|
+
`SourceMapGenerator.prototype.applySourceMap`. Issue #100.
|
173
|
+
|
174
|
+
## 0.1.33
|
175
|
+
|
176
|
+
* Fix some edge cases surrounding path joining and URL resolution.
|
177
|
+
|
178
|
+
* Add a third parameter for relative path to
|
179
|
+
`SourceMapGenerator.prototype.applySourceMap`.
|
180
|
+
|
181
|
+
* Fix issues with mappings and EOLs.
|
182
|
+
|
183
|
+
## 0.1.32
|
184
|
+
|
185
|
+
* Fixed a bug where SourceMapConsumer couldn't handle negative relative columns
|
186
|
+
(issue 92).
|
187
|
+
|
188
|
+
* Fixed test runner to actually report number of failed tests as its process
|
189
|
+
exit code.
|
190
|
+
|
191
|
+
* Fixed a typo when reporting bad mappings (issue 87).
|
192
|
+
|
193
|
+
## 0.1.31
|
194
|
+
|
195
|
+
* Delay parsing the mappings in SourceMapConsumer until queried for a source
|
196
|
+
location.
|
197
|
+
|
198
|
+
* Support Sass source maps (which at the time of writing deviate from the spec
|
199
|
+
in small ways) in SourceMapConsumer.
|
200
|
+
|
201
|
+
## 0.1.30
|
202
|
+
|
203
|
+
* Do not join source root with a source, when the source is a data URI.
|
204
|
+
|
205
|
+
* Extend the test runner to allow running single specific test files at a time.
|
206
|
+
|
207
|
+
* Performance improvements in `SourceNode.prototype.walk` and
|
208
|
+
`SourceMapConsumer.prototype.eachMapping`.
|
209
|
+
|
210
|
+
* Source map browser builds will now work inside Workers.
|
211
|
+
|
212
|
+
* Better error messages when attempting to add an invalid mapping to a
|
213
|
+
`SourceMapGenerator`.
|
214
|
+
|
215
|
+
## 0.1.29
|
216
|
+
|
217
|
+
* Allow duplicate entries in the `names` and `sources` arrays of source maps
|
218
|
+
(usually from TypeScript) we are parsing. Fixes github issue 72.
|
219
|
+
|
220
|
+
## 0.1.28
|
221
|
+
|
222
|
+
* Skip duplicate mappings when creating source maps from SourceNode; github
|
223
|
+
issue 75.
|
224
|
+
|
225
|
+
## 0.1.27
|
226
|
+
|
227
|
+
* Don't throw an error when the `file` property is missing in SourceMapConsumer,
|
228
|
+
we don't use it anyway.
|
229
|
+
|
230
|
+
## 0.1.26
|
231
|
+
|
232
|
+
* Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70.
|
233
|
+
|
234
|
+
## 0.1.25
|
235
|
+
|
236
|
+
* Make compatible with browserify
|
237
|
+
|
238
|
+
## 0.1.24
|
239
|
+
|
240
|
+
* Fix issue with absolute paths and `file://` URIs. See
|
241
|
+
https://bugzilla.mozilla.org/show_bug.cgi?id=885597
|
242
|
+
|
243
|
+
## 0.1.23
|
244
|
+
|
245
|
+
* Fix issue with absolute paths and sourcesContent, github issue 64.
|
246
|
+
|
247
|
+
## 0.1.22
|
248
|
+
|
249
|
+
* Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21.
|
250
|
+
|
251
|
+
## 0.1.21
|
252
|
+
|
253
|
+
* Fixed handling of sources that start with a slash so that they are relative to
|
254
|
+
the source root's host.
|
255
|
+
|
256
|
+
## 0.1.20
|
257
|
+
|
258
|
+
* Fixed github issue #43: absolute URLs aren't joined with the source root
|
259
|
+
anymore.
|
260
|
+
|
261
|
+
## 0.1.19
|
262
|
+
|
263
|
+
* Using Travis CI to run tests.
|
264
|
+
|
265
|
+
## 0.1.18
|
266
|
+
|
267
|
+
* Fixed a bug in the handling of sourceRoot.
|
268
|
+
|
269
|
+
## 0.1.17
|
270
|
+
|
271
|
+
* Added SourceNode.fromStringWithSourceMap.
|
272
|
+
|
273
|
+
## 0.1.16
|
274
|
+
|
275
|
+
* Added missing documentation.
|
276
|
+
|
277
|
+
* Fixed the generating of empty mappings in SourceNode.
|
278
|
+
|
279
|
+
## 0.1.15
|
280
|
+
|
281
|
+
* Added SourceMapGenerator.applySourceMap.
|
282
|
+
|
283
|
+
## 0.1.14
|
284
|
+
|
285
|
+
* The sourceRoot is now handled consistently.
|
286
|
+
|
287
|
+
## 0.1.13
|
288
|
+
|
289
|
+
* Added SourceMapGenerator.fromSourceMap.
|
290
|
+
|
291
|
+
## 0.1.12
|
292
|
+
|
293
|
+
* SourceNode now generates empty mappings too.
|
294
|
+
|
295
|
+
## 0.1.11
|
296
|
+
|
297
|
+
* Added name support to SourceNode.
|
298
|
+
|
299
|
+
## 0.1.10
|
300
|
+
|
301
|
+
* Added sourcesContent support to the customer and generator.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
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
|
+
* Redistributions of source code must retain the above copyright notice, this
|
9
|
+
list of conditions and the following disclaimer.
|
10
|
+
|
11
|
+
* 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
|
+
* Neither the names of the Mozilla Foundation nor the names of project
|
16
|
+
contributors may be used to endorse or promote products derived from this
|
17
|
+
software without specific prior written permission.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,742 @@
|
|
1
|
+
# Source Map
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/mozilla/source-map.png?branch=master)](https://travis-ci.org/mozilla/source-map)
|
4
|
+
|
5
|
+
[![NPM](https://nodei.co/npm/source-map.png?downloads=true&downloadRank=true)](https://www.npmjs.com/package/source-map)
|
6
|
+
|
7
|
+
This is a library to generate and consume the source map format
|
8
|
+
[described here][format].
|
9
|
+
|
10
|
+
[format]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit
|
11
|
+
|
12
|
+
## Use with Node
|
13
|
+
|
14
|
+
$ npm install source-map
|
15
|
+
|
16
|
+
## Use on the Web
|
17
|
+
|
18
|
+
<script src="https://raw.githubusercontent.com/mozilla/source-map/master/dist/source-map.min.js" defer></script>
|
19
|
+
|
20
|
+
--------------------------------------------------------------------------------
|
21
|
+
|
22
|
+
<!-- `npm run toc` to regenerate the Table of Contents -->
|
23
|
+
|
24
|
+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
25
|
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
26
|
+
## Table of Contents
|
27
|
+
|
28
|
+
- [Examples](#examples)
|
29
|
+
- [Consuming a source map](#consuming-a-source-map)
|
30
|
+
- [Generating a source map](#generating-a-source-map)
|
31
|
+
- [With SourceNode (high level API)](#with-sourcenode-high-level-api)
|
32
|
+
- [With SourceMapGenerator (low level API)](#with-sourcemapgenerator-low-level-api)
|
33
|
+
- [API](#api)
|
34
|
+
- [SourceMapConsumer](#sourcemapconsumer)
|
35
|
+
- [new SourceMapConsumer(rawSourceMap)](#new-sourcemapconsumerrawsourcemap)
|
36
|
+
- [SourceMapConsumer.prototype.computeColumnSpans()](#sourcemapconsumerprototypecomputecolumnspans)
|
37
|
+
- [SourceMapConsumer.prototype.originalPositionFor(generatedPosition)](#sourcemapconsumerprototypeoriginalpositionforgeneratedposition)
|
38
|
+
- [SourceMapConsumer.prototype.generatedPositionFor(originalPosition)](#sourcemapconsumerprototypegeneratedpositionfororiginalposition)
|
39
|
+
- [SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition)](#sourcemapconsumerprototypeallgeneratedpositionsfororiginalposition)
|
40
|
+
- [SourceMapConsumer.prototype.hasContentsOfAllSources()](#sourcemapconsumerprototypehascontentsofallsources)
|
41
|
+
- [SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing])](#sourcemapconsumerprototypesourcecontentforsource-returnnullonmissing)
|
42
|
+
- [SourceMapConsumer.prototype.eachMapping(callback, context, order)](#sourcemapconsumerprototypeeachmappingcallback-context-order)
|
43
|
+
- [SourceMapGenerator](#sourcemapgenerator)
|
44
|
+
- [new SourceMapGenerator([startOfSourceMap])](#new-sourcemapgeneratorstartofsourcemap)
|
45
|
+
- [SourceMapGenerator.fromSourceMap(sourceMapConsumer)](#sourcemapgeneratorfromsourcemapsourcemapconsumer)
|
46
|
+
- [SourceMapGenerator.prototype.addMapping(mapping)](#sourcemapgeneratorprototypeaddmappingmapping)
|
47
|
+
- [SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent)](#sourcemapgeneratorprototypesetsourcecontentsourcefile-sourcecontent)
|
48
|
+
- [SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]])](#sourcemapgeneratorprototypeapplysourcemapsourcemapconsumer-sourcefile-sourcemappath)
|
49
|
+
- [SourceMapGenerator.prototype.toString()](#sourcemapgeneratorprototypetostring)
|
50
|
+
- [SourceNode](#sourcenode)
|
51
|
+
- [new SourceNode([line, column, source[, chunk[, name]]])](#new-sourcenodeline-column-source-chunk-name)
|
52
|
+
- [SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath])](#sourcenodefromstringwithsourcemapcode-sourcemapconsumer-relativepath)
|
53
|
+
- [SourceNode.prototype.add(chunk)](#sourcenodeprototypeaddchunk)
|
54
|
+
- [SourceNode.prototype.prepend(chunk)](#sourcenodeprototypeprependchunk)
|
55
|
+
- [SourceNode.prototype.setSourceContent(sourceFile, sourceContent)](#sourcenodeprototypesetsourcecontentsourcefile-sourcecontent)
|
56
|
+
- [SourceNode.prototype.walk(fn)](#sourcenodeprototypewalkfn)
|
57
|
+
- [SourceNode.prototype.walkSourceContents(fn)](#sourcenodeprototypewalksourcecontentsfn)
|
58
|
+
- [SourceNode.prototype.join(sep)](#sourcenodeprototypejoinsep)
|
59
|
+
- [SourceNode.prototype.replaceRight(pattern, replacement)](#sourcenodeprototypereplacerightpattern-replacement)
|
60
|
+
- [SourceNode.prototype.toString()](#sourcenodeprototypetostring)
|
61
|
+
- [SourceNode.prototype.toStringWithSourceMap([startOfSourceMap])](#sourcenodeprototypetostringwithsourcemapstartofsourcemap)
|
62
|
+
|
63
|
+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
64
|
+
|
65
|
+
## Examples
|
66
|
+
|
67
|
+
### Consuming a source map
|
68
|
+
|
69
|
+
```js
|
70
|
+
var rawSourceMap = {
|
71
|
+
version: 3,
|
72
|
+
file: 'min.js',
|
73
|
+
names: ['bar', 'baz', 'n'],
|
74
|
+
sources: ['one.js', 'two.js'],
|
75
|
+
sourceRoot: 'http://example.com/www/js/',
|
76
|
+
mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA'
|
77
|
+
};
|
78
|
+
|
79
|
+
var smc = new SourceMapConsumer(rawSourceMap);
|
80
|
+
|
81
|
+
console.log(smc.sources);
|
82
|
+
// [ 'http://example.com/www/js/one.js',
|
83
|
+
// 'http://example.com/www/js/two.js' ]
|
84
|
+
|
85
|
+
console.log(smc.originalPositionFor({
|
86
|
+
line: 2,
|
87
|
+
column: 28
|
88
|
+
}));
|
89
|
+
// { source: 'http://example.com/www/js/two.js',
|
90
|
+
// line: 2,
|
91
|
+
// column: 10,
|
92
|
+
// name: 'n' }
|
93
|
+
|
94
|
+
console.log(smc.generatedPositionFor({
|
95
|
+
source: 'http://example.com/www/js/two.js',
|
96
|
+
line: 2,
|
97
|
+
column: 10
|
98
|
+
}));
|
99
|
+
// { line: 2, column: 28 }
|
100
|
+
|
101
|
+
smc.eachMapping(function (m) {
|
102
|
+
// ...
|
103
|
+
});
|
104
|
+
```
|
105
|
+
|
106
|
+
### Generating a source map
|
107
|
+
|
108
|
+
In depth guide:
|
109
|
+
[**Compiling to JavaScript, and Debugging with Source Maps**](https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/)
|
110
|
+
|
111
|
+
#### With SourceNode (high level API)
|
112
|
+
|
113
|
+
```js
|
114
|
+
function compile(ast) {
|
115
|
+
switch (ast.type) {
|
116
|
+
case 'BinaryExpression':
|
117
|
+
return new SourceNode(
|
118
|
+
ast.location.line,
|
119
|
+
ast.location.column,
|
120
|
+
ast.location.source,
|
121
|
+
[compile(ast.left), " + ", compile(ast.right)]
|
122
|
+
);
|
123
|
+
case 'Literal':
|
124
|
+
return new SourceNode(
|
125
|
+
ast.location.line,
|
126
|
+
ast.location.column,
|
127
|
+
ast.location.source,
|
128
|
+
String(ast.value)
|
129
|
+
);
|
130
|
+
// ...
|
131
|
+
default:
|
132
|
+
throw new Error("Bad AST");
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
var ast = parse("40 + 2", "add.js");
|
137
|
+
console.log(compile(ast).toStringWithSourceMap({
|
138
|
+
file: 'add.js'
|
139
|
+
}));
|
140
|
+
// { code: '40 + 2',
|
141
|
+
// map: [object SourceMapGenerator] }
|
142
|
+
```
|
143
|
+
|
144
|
+
#### With SourceMapGenerator (low level API)
|
145
|
+
|
146
|
+
```js
|
147
|
+
var map = new SourceMapGenerator({
|
148
|
+
file: "source-mapped.js"
|
149
|
+
});
|
150
|
+
|
151
|
+
map.addMapping({
|
152
|
+
generated: {
|
153
|
+
line: 10,
|
154
|
+
column: 35
|
155
|
+
},
|
156
|
+
source: "foo.js",
|
157
|
+
original: {
|
158
|
+
line: 33,
|
159
|
+
column: 2
|
160
|
+
},
|
161
|
+
name: "christopher"
|
162
|
+
});
|
163
|
+
|
164
|
+
console.log(map.toString());
|
165
|
+
// '{"version":3,"file":"source-mapped.js","sources":["foo.js"],"names":["christopher"],"mappings":";;;;;;;;;mCAgCEA"}'
|
166
|
+
```
|
167
|
+
|
168
|
+
## API
|
169
|
+
|
170
|
+
Get a reference to the module:
|
171
|
+
|
172
|
+
```js
|
173
|
+
// Node.js
|
174
|
+
var sourceMap = require('source-map');
|
175
|
+
|
176
|
+
// Browser builds
|
177
|
+
var sourceMap = window.sourceMap;
|
178
|
+
|
179
|
+
// Inside Firefox
|
180
|
+
const sourceMap = require("devtools/toolkit/sourcemap/source-map.js");
|
181
|
+
```
|
182
|
+
|
183
|
+
### SourceMapConsumer
|
184
|
+
|
185
|
+
A SourceMapConsumer instance represents a parsed source map which we can query
|
186
|
+
for information about the original file positions by giving it a file position
|
187
|
+
in the generated source.
|
188
|
+
|
189
|
+
#### new SourceMapConsumer(rawSourceMap)
|
190
|
+
|
191
|
+
The only parameter is the raw source map (either as a string which can be
|
192
|
+
`JSON.parse`'d, or an object). According to the spec, source maps have the
|
193
|
+
following attributes:
|
194
|
+
|
195
|
+
* `version`: Which version of the source map spec this map is following.
|
196
|
+
|
197
|
+
* `sources`: An array of URLs to the original source files.
|
198
|
+
|
199
|
+
* `names`: An array of identifiers which can be referenced by individual
|
200
|
+
mappings.
|
201
|
+
|
202
|
+
* `sourceRoot`: Optional. The URL root from which all sources are relative.
|
203
|
+
|
204
|
+
* `sourcesContent`: Optional. An array of contents of the original source files.
|
205
|
+
|
206
|
+
* `mappings`: A string of base64 VLQs which contain the actual mappings.
|
207
|
+
|
208
|
+
* `file`: Optional. The generated filename this source map is associated with.
|
209
|
+
|
210
|
+
```js
|
211
|
+
var consumer = new sourceMap.SourceMapConsumer(rawSourceMapJsonData);
|
212
|
+
```
|
213
|
+
|
214
|
+
#### SourceMapConsumer.prototype.computeColumnSpans()
|
215
|
+
|
216
|
+
Compute the last column for each generated mapping. The last column is
|
217
|
+
inclusive.
|
218
|
+
|
219
|
+
```js
|
220
|
+
// Before:
|
221
|
+
consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" })
|
222
|
+
// [ { line: 2,
|
223
|
+
// column: 1 },
|
224
|
+
// { line: 2,
|
225
|
+
// column: 10 },
|
226
|
+
// { line: 2,
|
227
|
+
// column: 20 } ]
|
228
|
+
|
229
|
+
consumer.computeColumnSpans();
|
230
|
+
|
231
|
+
// After:
|
232
|
+
consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" })
|
233
|
+
// [ { line: 2,
|
234
|
+
// column: 1,
|
235
|
+
// lastColumn: 9 },
|
236
|
+
// { line: 2,
|
237
|
+
// column: 10,
|
238
|
+
// lastColumn: 19 },
|
239
|
+
// { line: 2,
|
240
|
+
// column: 20,
|
241
|
+
// lastColumn: Infinity } ]
|
242
|
+
|
243
|
+
```
|
244
|
+
|
245
|
+
#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition)
|
246
|
+
|
247
|
+
Returns the original source, line, and column information for the generated
|
248
|
+
source's line and column positions provided. The only argument is an object with
|
249
|
+
the following properties:
|
250
|
+
|
251
|
+
* `line`: The line number in the generated source. Line numbers in
|
252
|
+
this library are 1-based (note that the underlying source map
|
253
|
+
specification uses 0-based line numbers -- this library handles the
|
254
|
+
translation).
|
255
|
+
|
256
|
+
* `column`: The column number in the generated source. Column numbers
|
257
|
+
in this library are 0-based.
|
258
|
+
|
259
|
+
* `bias`: Either `SourceMapConsumer.GREATEST_LOWER_BOUND` or
|
260
|
+
`SourceMapConsumer.LEAST_UPPER_BOUND`. Specifies whether to return the closest
|
261
|
+
element that is smaller than or greater than the one we are searching for,
|
262
|
+
respectively, if the exact element cannot be found. Defaults to
|
263
|
+
`SourceMapConsumer.GREATEST_LOWER_BOUND`.
|
264
|
+
|
265
|
+
and an object is returned with the following properties:
|
266
|
+
|
267
|
+
* `source`: The original source file, or null if this information is not
|
268
|
+
available.
|
269
|
+
|
270
|
+
* `line`: The line number in the original source, or null if this information is
|
271
|
+
not available. The line number is 1-based.
|
272
|
+
|
273
|
+
* `column`: The column number in the original source, or null if this
|
274
|
+
information is not available. The column number is 0-based.
|
275
|
+
|
276
|
+
* `name`: The original identifier, or null if this information is not available.
|
277
|
+
|
278
|
+
```js
|
279
|
+
consumer.originalPositionFor({ line: 2, column: 10 })
|
280
|
+
// { source: 'foo.coffee',
|
281
|
+
// line: 2,
|
282
|
+
// column: 2,
|
283
|
+
// name: null }
|
284
|
+
|
285
|
+
consumer.originalPositionFor({ line: 99999999999999999, column: 999999999999999 })
|
286
|
+
// { source: null,
|
287
|
+
// line: null,
|
288
|
+
// column: null,
|
289
|
+
// name: null }
|
290
|
+
```
|
291
|
+
|
292
|
+
#### SourceMapConsumer.prototype.generatedPositionFor(originalPosition)
|
293
|
+
|
294
|
+
Returns the generated line and column information for the original source,
|
295
|
+
line, and column positions provided. The only argument is an object with
|
296
|
+
the following properties:
|
297
|
+
|
298
|
+
* `source`: The filename of the original source.
|
299
|
+
|
300
|
+
* `line`: The line number in the original source. The line number is
|
301
|
+
1-based.
|
302
|
+
|
303
|
+
* `column`: The column number in the original source. The column
|
304
|
+
number is 0-based.
|
305
|
+
|
306
|
+
and an object is returned with the following properties:
|
307
|
+
|
308
|
+
* `line`: The line number in the generated source, or null. The line
|
309
|
+
number is 1-based.
|
310
|
+
|
311
|
+
* `column`: The column number in the generated source, or null. The
|
312
|
+
column number is 0-based.
|
313
|
+
|
314
|
+
```js
|
315
|
+
consumer.generatedPositionFor({ source: "example.js", line: 2, column: 10 })
|
316
|
+
// { line: 1,
|
317
|
+
// column: 56 }
|
318
|
+
```
|
319
|
+
|
320
|
+
#### SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition)
|
321
|
+
|
322
|
+
Returns all generated line and column information for the original source, line,
|
323
|
+
and column provided. If no column is provided, returns all mappings
|
324
|
+
corresponding to a either the line we are searching for or the next closest line
|
325
|
+
that has any mappings. Otherwise, returns all mappings corresponding to the
|
326
|
+
given line and either the column we are searching for or the next closest column
|
327
|
+
that has any offsets.
|
328
|
+
|
329
|
+
The only argument is an object with the following properties:
|
330
|
+
|
331
|
+
* `source`: The filename of the original source.
|
332
|
+
|
333
|
+
* `line`: The line number in the original source. The line number is
|
334
|
+
1-based.
|
335
|
+
|
336
|
+
* `column`: Optional. The column number in the original source. The
|
337
|
+
column number is 0-based.
|
338
|
+
|
339
|
+
and an array of objects is returned, each with the following properties:
|
340
|
+
|
341
|
+
* `line`: The line number in the generated source, or null. The line
|
342
|
+
number is 1-based.
|
343
|
+
|
344
|
+
* `column`: The column number in the generated source, or null. The
|
345
|
+
column number is 0-based.
|
346
|
+
|
347
|
+
```js
|
348
|
+
consumer.allGeneratedpositionsfor({ line: 2, source: "foo.coffee" })
|
349
|
+
// [ { line: 2,
|
350
|
+
// column: 1 },
|
351
|
+
// { line: 2,
|
352
|
+
// column: 10 },
|
353
|
+
// { line: 2,
|
354
|
+
// column: 20 } ]
|
355
|
+
```
|
356
|
+
|
357
|
+
#### SourceMapConsumer.prototype.hasContentsOfAllSources()
|
358
|
+
|
359
|
+
Return true if we have the embedded source content for every source listed in
|
360
|
+
the source map, false otherwise.
|
361
|
+
|
362
|
+
In other words, if this method returns `true`, then
|
363
|
+
`consumer.sourceContentFor(s)` will succeed for every source `s` in
|
364
|
+
`consumer.sources`.
|
365
|
+
|
366
|
+
```js
|
367
|
+
// ...
|
368
|
+
if (consumer.hasContentsOfAllSources()) {
|
369
|
+
consumerReadyCallback(consumer);
|
370
|
+
} else {
|
371
|
+
fetchSources(consumer, consumerReadyCallback);
|
372
|
+
}
|
373
|
+
// ...
|
374
|
+
```
|
375
|
+
|
376
|
+
#### SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing])
|
377
|
+
|
378
|
+
Returns the original source content for the source provided. The only
|
379
|
+
argument is the URL of the original source file.
|
380
|
+
|
381
|
+
If the source content for the given source is not found, then an error is
|
382
|
+
thrown. Optionally, pass `true` as the second param to have `null` returned
|
383
|
+
instead.
|
384
|
+
|
385
|
+
```js
|
386
|
+
consumer.sources
|
387
|
+
// [ "my-cool-lib.clj" ]
|
388
|
+
|
389
|
+
consumer.sourceContentFor("my-cool-lib.clj")
|
390
|
+
// "..."
|
391
|
+
|
392
|
+
consumer.sourceContentFor("this is not in the source map");
|
393
|
+
// Error: "this is not in the source map" is not in the source map
|
394
|
+
|
395
|
+
consumer.sourceContentFor("this is not in the source map", true);
|
396
|
+
// null
|
397
|
+
```
|
398
|
+
|
399
|
+
#### SourceMapConsumer.prototype.eachMapping(callback, context, order)
|
400
|
+
|
401
|
+
Iterate over each mapping between an original source/line/column and a
|
402
|
+
generated line/column in this source map.
|
403
|
+
|
404
|
+
* `callback`: The function that is called with each mapping. Mappings have the
|
405
|
+
form `{ source, generatedLine, generatedColumn, originalLine, originalColumn,
|
406
|
+
name }`
|
407
|
+
|
408
|
+
* `context`: Optional. If specified, this object will be the value of `this`
|
409
|
+
every time that `callback` is called.
|
410
|
+
|
411
|
+
* `order`: Either `SourceMapConsumer.GENERATED_ORDER` or
|
412
|
+
`SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to iterate over
|
413
|
+
the mappings sorted by the generated file's line/column order or the
|
414
|
+
original's source/line/column order, respectively. Defaults to
|
415
|
+
`SourceMapConsumer.GENERATED_ORDER`.
|
416
|
+
|
417
|
+
```js
|
418
|
+
consumer.eachMapping(function (m) { console.log(m); })
|
419
|
+
// ...
|
420
|
+
// { source: 'illmatic.js',
|
421
|
+
// generatedLine: 1,
|
422
|
+
// generatedColumn: 0,
|
423
|
+
// originalLine: 1,
|
424
|
+
// originalColumn: 0,
|
425
|
+
// name: null }
|
426
|
+
// { source: 'illmatic.js',
|
427
|
+
// generatedLine: 2,
|
428
|
+
// generatedColumn: 0,
|
429
|
+
// originalLine: 2,
|
430
|
+
// originalColumn: 0,
|
431
|
+
// name: null }
|
432
|
+
// ...
|
433
|
+
```
|
434
|
+
### SourceMapGenerator
|
435
|
+
|
436
|
+
An instance of the SourceMapGenerator represents a source map which is being
|
437
|
+
built incrementally.
|
438
|
+
|
439
|
+
#### new SourceMapGenerator([startOfSourceMap])
|
440
|
+
|
441
|
+
You may pass an object with the following properties:
|
442
|
+
|
443
|
+
* `file`: The filename of the generated source that this source map is
|
444
|
+
associated with.
|
445
|
+
|
446
|
+
* `sourceRoot`: A root for all relative URLs in this source map.
|
447
|
+
|
448
|
+
* `skipValidation`: Optional. When `true`, disables validation of mappings as
|
449
|
+
they are added. This can improve performance but should be used with
|
450
|
+
discretion, as a last resort. Even then, one should avoid using this flag when
|
451
|
+
running tests, if possible.
|
452
|
+
|
453
|
+
```js
|
454
|
+
var generator = new sourceMap.SourceMapGenerator({
|
455
|
+
file: "my-generated-javascript-file.js",
|
456
|
+
sourceRoot: "http://example.com/app/js/"
|
457
|
+
});
|
458
|
+
```
|
459
|
+
|
460
|
+
#### SourceMapGenerator.fromSourceMap(sourceMapConsumer)
|
461
|
+
|
462
|
+
Creates a new `SourceMapGenerator` from an existing `SourceMapConsumer` instance.
|
463
|
+
|
464
|
+
* `sourceMapConsumer` The SourceMap.
|
465
|
+
|
466
|
+
```js
|
467
|
+
var generator = sourceMap.SourceMapGenerator.fromSourceMap(consumer);
|
468
|
+
```
|
469
|
+
|
470
|
+
#### SourceMapGenerator.prototype.addMapping(mapping)
|
471
|
+
|
472
|
+
Add a single mapping from original source line and column to the generated
|
473
|
+
source's line and column for this source map being created. The mapping object
|
474
|
+
should have the following properties:
|
475
|
+
|
476
|
+
* `generated`: An object with the generated line and column positions.
|
477
|
+
|
478
|
+
* `original`: An object with the original line and column positions.
|
479
|
+
|
480
|
+
* `source`: The original source file (relative to the sourceRoot).
|
481
|
+
|
482
|
+
* `name`: An optional original token name for this mapping.
|
483
|
+
|
484
|
+
```js
|
485
|
+
generator.addMapping({
|
486
|
+
source: "module-one.scm",
|
487
|
+
original: { line: 128, column: 0 },
|
488
|
+
generated: { line: 3, column: 456 }
|
489
|
+
})
|
490
|
+
```
|
491
|
+
|
492
|
+
#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent)
|
493
|
+
|
494
|
+
Set the source content for an original source file.
|
495
|
+
|
496
|
+
* `sourceFile` the URL of the original source file.
|
497
|
+
|
498
|
+
* `sourceContent` the content of the source file.
|
499
|
+
|
500
|
+
```js
|
501
|
+
generator.setSourceContent("module-one.scm",
|
502
|
+
fs.readFileSync("path/to/module-one.scm"))
|
503
|
+
```
|
504
|
+
|
505
|
+
#### SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]])
|
506
|
+
|
507
|
+
Applies a SourceMap for a source file to the SourceMap.
|
508
|
+
Each mapping to the supplied source file is rewritten using the
|
509
|
+
supplied SourceMap. Note: The resolution for the resulting mappings
|
510
|
+
is the minimum of this map and the supplied map.
|
511
|
+
|
512
|
+
* `sourceMapConsumer`: The SourceMap to be applied.
|
513
|
+
|
514
|
+
* `sourceFile`: Optional. The filename of the source file.
|
515
|
+
If omitted, sourceMapConsumer.file will be used, if it exists.
|
516
|
+
Otherwise an error will be thrown.
|
517
|
+
|
518
|
+
* `sourceMapPath`: Optional. The dirname of the path to the SourceMap
|
519
|
+
to be applied. If relative, it is relative to the SourceMap.
|
520
|
+
|
521
|
+
This parameter is needed when the two SourceMaps aren't in the same
|
522
|
+
directory, and the SourceMap to be applied contains relative source
|
523
|
+
paths. If so, those relative source paths need to be rewritten
|
524
|
+
relative to the SourceMap.
|
525
|
+
|
526
|
+
If omitted, it is assumed that both SourceMaps are in the same directory,
|
527
|
+
thus not needing any rewriting. (Supplying `'.'` has the same effect.)
|
528
|
+
|
529
|
+
#### SourceMapGenerator.prototype.toString()
|
530
|
+
|
531
|
+
Renders the source map being generated to a string.
|
532
|
+
|
533
|
+
```js
|
534
|
+
generator.toString()
|
535
|
+
// '{"version":3,"sources":["module-one.scm"],"names":[],"mappings":"...snip...","file":"my-generated-javascript-file.js","sourceRoot":"http://example.com/app/js/"}'
|
536
|
+
```
|
537
|
+
|
538
|
+
### SourceNode
|
539
|
+
|
540
|
+
SourceNodes provide a way to abstract over interpolating and/or concatenating
|
541
|
+
snippets of generated JavaScript source code, while maintaining the line and
|
542
|
+
column information associated between those snippets and the original source
|
543
|
+
code. This is useful as the final intermediate representation a compiler might
|
544
|
+
use before outputting the generated JS and source map.
|
545
|
+
|
546
|
+
#### new SourceNode([line, column, source[, chunk[, name]]])
|
547
|
+
|
548
|
+
* `line`: The original line number associated with this source node, or null if
|
549
|
+
it isn't associated with an original line. The line number is 1-based.
|
550
|
+
|
551
|
+
* `column`: The original column number associated with this source node, or null
|
552
|
+
if it isn't associated with an original column. The column number
|
553
|
+
is 0-based.
|
554
|
+
|
555
|
+
* `source`: The original source's filename; null if no filename is provided.
|
556
|
+
|
557
|
+
* `chunk`: Optional. Is immediately passed to `SourceNode.prototype.add`, see
|
558
|
+
below.
|
559
|
+
|
560
|
+
* `name`: Optional. The original identifier.
|
561
|
+
|
562
|
+
```js
|
563
|
+
var node = new SourceNode(1, 2, "a.cpp", [
|
564
|
+
new SourceNode(3, 4, "b.cpp", "extern int status;\n"),
|
565
|
+
new SourceNode(5, 6, "c.cpp", "std::string* make_string(size_t n);\n"),
|
566
|
+
new SourceNode(7, 8, "d.cpp", "int main(int argc, char** argv) {}\n"),
|
567
|
+
]);
|
568
|
+
```
|
569
|
+
|
570
|
+
#### SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath])
|
571
|
+
|
572
|
+
Creates a SourceNode from generated code and a SourceMapConsumer.
|
573
|
+
|
574
|
+
* `code`: The generated code
|
575
|
+
|
576
|
+
* `sourceMapConsumer` The SourceMap for the generated code
|
577
|
+
|
578
|
+
* `relativePath` The optional path that relative sources in `sourceMapConsumer`
|
579
|
+
should be relative to.
|
580
|
+
|
581
|
+
```js
|
582
|
+
var consumer = new SourceMapConsumer(fs.readFileSync("path/to/my-file.js.map", "utf8"));
|
583
|
+
var node = SourceNode.fromStringWithSourceMap(fs.readFileSync("path/to/my-file.js"),
|
584
|
+
consumer);
|
585
|
+
```
|
586
|
+
|
587
|
+
#### SourceNode.prototype.add(chunk)
|
588
|
+
|
589
|
+
Add a chunk of generated JS to this source node.
|
590
|
+
|
591
|
+
* `chunk`: A string snippet of generated JS code, another instance of
|
592
|
+
`SourceNode`, or an array where each member is one of those things.
|
593
|
+
|
594
|
+
```js
|
595
|
+
node.add(" + ");
|
596
|
+
node.add(otherNode);
|
597
|
+
node.add([leftHandOperandNode, " + ", rightHandOperandNode]);
|
598
|
+
```
|
599
|
+
|
600
|
+
#### SourceNode.prototype.prepend(chunk)
|
601
|
+
|
602
|
+
Prepend a chunk of generated JS to this source node.
|
603
|
+
|
604
|
+
* `chunk`: A string snippet of generated JS code, another instance of
|
605
|
+
`SourceNode`, or an array where each member is one of those things.
|
606
|
+
|
607
|
+
```js
|
608
|
+
node.prepend("/** Build Id: f783haef86324gf **/\n\n");
|
609
|
+
```
|
610
|
+
|
611
|
+
#### SourceNode.prototype.setSourceContent(sourceFile, sourceContent)
|
612
|
+
|
613
|
+
Set the source content for a source file. This will be added to the
|
614
|
+
`SourceMap` in the `sourcesContent` field.
|
615
|
+
|
616
|
+
* `sourceFile`: The filename of the source file
|
617
|
+
|
618
|
+
* `sourceContent`: The content of the source file
|
619
|
+
|
620
|
+
```js
|
621
|
+
node.setSourceContent("module-one.scm",
|
622
|
+
fs.readFileSync("path/to/module-one.scm"))
|
623
|
+
```
|
624
|
+
|
625
|
+
#### SourceNode.prototype.walk(fn)
|
626
|
+
|
627
|
+
Walk over the tree of JS snippets in this node and its children. The walking
|
628
|
+
function is called once for each snippet of JS and is passed that snippet and
|
629
|
+
the its original associated source's line/column location.
|
630
|
+
|
631
|
+
* `fn`: The traversal function.
|
632
|
+
|
633
|
+
```js
|
634
|
+
var node = new SourceNode(1, 2, "a.js", [
|
635
|
+
new SourceNode(3, 4, "b.js", "uno"),
|
636
|
+
"dos",
|
637
|
+
[
|
638
|
+
"tres",
|
639
|
+
new SourceNode(5, 6, "c.js", "quatro")
|
640
|
+
]
|
641
|
+
]);
|
642
|
+
|
643
|
+
node.walk(function (code, loc) { console.log("WALK:", code, loc); })
|
644
|
+
// WALK: uno { source: 'b.js', line: 3, column: 4, name: null }
|
645
|
+
// WALK: dos { source: 'a.js', line: 1, column: 2, name: null }
|
646
|
+
// WALK: tres { source: 'a.js', line: 1, column: 2, name: null }
|
647
|
+
// WALK: quatro { source: 'c.js', line: 5, column: 6, name: null }
|
648
|
+
```
|
649
|
+
|
650
|
+
#### SourceNode.prototype.walkSourceContents(fn)
|
651
|
+
|
652
|
+
Walk over the tree of SourceNodes. The walking function is called for each
|
653
|
+
source file content and is passed the filename and source content.
|
654
|
+
|
655
|
+
* `fn`: The traversal function.
|
656
|
+
|
657
|
+
```js
|
658
|
+
var a = new SourceNode(1, 2, "a.js", "generated from a");
|
659
|
+
a.setSourceContent("a.js", "original a");
|
660
|
+
var b = new SourceNode(1, 2, "b.js", "generated from b");
|
661
|
+
b.setSourceContent("b.js", "original b");
|
662
|
+
var c = new SourceNode(1, 2, "c.js", "generated from c");
|
663
|
+
c.setSourceContent("c.js", "original c");
|
664
|
+
|
665
|
+
var node = new SourceNode(null, null, null, [a, b, c]);
|
666
|
+
node.walkSourceContents(function (source, contents) { console.log("WALK:", source, ":", contents); })
|
667
|
+
// WALK: a.js : original a
|
668
|
+
// WALK: b.js : original b
|
669
|
+
// WALK: c.js : original c
|
670
|
+
```
|
671
|
+
|
672
|
+
#### SourceNode.prototype.join(sep)
|
673
|
+
|
674
|
+
Like `Array.prototype.join` except for SourceNodes. Inserts the separator
|
675
|
+
between each of this source node's children.
|
676
|
+
|
677
|
+
* `sep`: The separator.
|
678
|
+
|
679
|
+
```js
|
680
|
+
var lhs = new SourceNode(1, 2, "a.rs", "my_copy");
|
681
|
+
var operand = new SourceNode(3, 4, "a.rs", "=");
|
682
|
+
var rhs = new SourceNode(5, 6, "a.rs", "orig.clone()");
|
683
|
+
|
684
|
+
var node = new SourceNode(null, null, null, [ lhs, operand, rhs ]);
|
685
|
+
var joinedNode = node.join(" ");
|
686
|
+
```
|
687
|
+
|
688
|
+
#### SourceNode.prototype.replaceRight(pattern, replacement)
|
689
|
+
|
690
|
+
Call `String.prototype.replace` on the very right-most source snippet. Useful
|
691
|
+
for trimming white space from the end of a source node, etc.
|
692
|
+
|
693
|
+
* `pattern`: The pattern to replace.
|
694
|
+
|
695
|
+
* `replacement`: The thing to replace the pattern with.
|
696
|
+
|
697
|
+
```js
|
698
|
+
// Trim trailing white space.
|
699
|
+
node.replaceRight(/\s*$/, "");
|
700
|
+
```
|
701
|
+
|
702
|
+
#### SourceNode.prototype.toString()
|
703
|
+
|
704
|
+
Return the string representation of this source node. Walks over the tree and
|
705
|
+
concatenates all the various snippets together to one string.
|
706
|
+
|
707
|
+
```js
|
708
|
+
var node = new SourceNode(1, 2, "a.js", [
|
709
|
+
new SourceNode(3, 4, "b.js", "uno"),
|
710
|
+
"dos",
|
711
|
+
[
|
712
|
+
"tres",
|
713
|
+
new SourceNode(5, 6, "c.js", "quatro")
|
714
|
+
]
|
715
|
+
]);
|
716
|
+
|
717
|
+
node.toString()
|
718
|
+
// 'unodostresquatro'
|
719
|
+
```
|
720
|
+
|
721
|
+
#### SourceNode.prototype.toStringWithSourceMap([startOfSourceMap])
|
722
|
+
|
723
|
+
Returns the string representation of this tree of source nodes, plus a
|
724
|
+
SourceMapGenerator which contains all the mappings between the generated and
|
725
|
+
original sources.
|
726
|
+
|
727
|
+
The arguments are the same as those to `new SourceMapGenerator`.
|
728
|
+
|
729
|
+
```js
|
730
|
+
var node = new SourceNode(1, 2, "a.js", [
|
731
|
+
new SourceNode(3, 4, "b.js", "uno"),
|
732
|
+
"dos",
|
733
|
+
[
|
734
|
+
"tres",
|
735
|
+
new SourceNode(5, 6, "c.js", "quatro")
|
736
|
+
]
|
737
|
+
]);
|
738
|
+
|
739
|
+
node.toStringWithSourceMap({ file: "my-output-file.js" })
|
740
|
+
// { code: 'unodostresquatro',
|
741
|
+
// map: [object SourceMapGenerator] }
|
742
|
+
```
|