@dbmx/toasts 0.0.54 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/_virtual/colorManipulator.cjs +5 -0
- package/cjs/_virtual/index.cjs +12 -0
- package/cjs/_virtual/index2.cjs +12 -0
- package/cjs/_virtual/interopRequireDefault.cjs +5 -0
- package/cjs/_virtual/jsx-runtime.cjs +5 -0
- package/cjs/_virtual/react-jsx-runtime.development.cjs +5 -0
- package/cjs/assets/images/toasts/sdmx_datagrid.png.cjs +5 -0
- package/cjs/components/HelloWorld/index.cjs +1 -4
- package/cjs/components/HelloWorld/style.css.cjs +5 -0
- package/cjs/components/SdmxDatagrid/LoadingBox.cjs +11 -14
- package/cjs/components/SdmxDatagrid/SDMXGrid.cjs +22 -20
- package/cjs/components/SdmxDatagrid/index.cjs +31 -28
- package/cjs/components/SdmxDatagrid/messages.cjs +12 -12
- package/cjs/components/SdmxDatagrid/utils.cjs +175 -0
- package/cjs/index.cjs +5 -54
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.cjs +18 -0
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +15 -0
- package/cjs/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +16 -0
- package/cjs/node_modules/@dbmx/sdmx/cjs/core.cjs +123 -61
- package/cjs/node_modules/@dbmx/sdmx/cjs/data.cjs +161 -67
- package/cjs/node_modules/@dbmx/sdmx/cjs/dependencyResolver.cjs +18 -5
- package/cjs/node_modules/@dbmx/sdmx/cjs/items.cjs +51 -3
- package/cjs/node_modules/@dbmx/sdmx/cjs/types/artefacts.cjs +3 -1
- package/cjs/node_modules/@dbmx/sdmx/cjs/types/hierarchicalcodelist.cjs +1 -1
- package/cjs/node_modules/@dbmx/sdmx/cjs/types/metadataflow.cjs +32 -0
- package/cjs/node_modules/@dbmx/sdmx/esm/core.cjs +29 -36
- package/cjs/node_modules/@dbmx/sdmx/esm/datastructures.cjs +50 -10
- package/cjs/node_modules/@dbmx/sdmx/esm/dependencyResolver.cjs +8 -5
- package/cjs/node_modules/@dbmx/sdmx/esm/query.cjs +70 -4
- package/cjs/node_modules/@dbmx/sdmx/esm/types/artefacts.cjs +2 -0
- package/cjs/node_modules/@dbmx/sdmx/esm/types/hierarchicalcodelist.cjs +1 -1
- package/cjs/node_modules/@dbmx/sdmx/esm/types/metadataflow.cjs +20 -0
- package/cjs/node_modules/@dbmx/semver/dist/index.esm.cjs +280 -0
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.cjs +587 -0
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +11 -0
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +134 -0
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.cjs +17 -0
- package/cjs/node_modules/@mui/material/colors/blue.cjs +21 -0
- package/cjs/node_modules/@mui/material/colors/common.cjs +9 -0
- package/cjs/node_modules/@mui/material/colors/green.cjs +21 -0
- package/cjs/node_modules/@mui/material/colors/grey.cjs +21 -0
- package/cjs/node_modules/@mui/material/colors/lightBlue.cjs +21 -0
- package/cjs/node_modules/@mui/material/colors/orange.cjs +21 -0
- package/cjs/node_modules/@mui/material/colors/purple.cjs +21 -0
- package/cjs/node_modules/@mui/material/colors/red.cjs +21 -0
- package/cjs/node_modules/@mui/material/styles/ThemeProvider.cjs +34 -0
- package/cjs/node_modules/@mui/material/styles/createMixins.cjs +21 -0
- package/cjs/node_modules/@mui/material/styles/createPalette.cjs +313 -0
- package/cjs/node_modules/@mui/material/styles/createTheme.cjs +83 -0
- package/cjs/node_modules/@mui/material/styles/createTransitions.cjs +97 -0
- package/cjs/node_modules/@mui/material/styles/createTypography.cjs +95 -0
- package/cjs/node_modules/@mui/material/styles/identifier.cjs +5 -0
- package/cjs/node_modules/@mui/material/styles/shadows.cjs +14 -0
- package/cjs/node_modules/@mui/material/styles/zIndex.cjs +17 -0
- package/cjs/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.cjs +86 -0
- package/cjs/node_modules/@mui/private-theming/ThemeProvider/nested.cjs +6 -0
- package/cjs/node_modules/@mui/private-theming/useTheme/ThemeContext.cjs +30 -0
- package/cjs/node_modules/@mui/private-theming/useTheme/useTheme.cjs +34 -0
- package/cjs/node_modules/@mui/system/colorManipulator.cjs +385 -0
- package/cjs/node_modules/@mui/system/esm/RtlProvider/index.cjs +44 -0
- package/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.cjs +111 -0
- package/cjs/node_modules/@mui/system/esm/borders.cjs +66 -0
- package/cjs/node_modules/@mui/system/esm/breakpoints.cjs +74 -0
- package/cjs/node_modules/@mui/system/esm/compose.cjs +28 -0
- package/cjs/node_modules/@mui/system/esm/createTheme/applyStyles.cjs +78 -0
- package/cjs/node_modules/@mui/system/esm/createTheme/createBreakpoints.cjs +85 -0
- package/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.cjs +36 -0
- package/cjs/node_modules/@mui/system/esm/createTheme/createTheme.cjs +47 -0
- package/cjs/node_modules/@mui/system/esm/createTheme/shape.cjs +8 -0
- package/cjs/node_modules/@mui/system/esm/cssGrid.cjs +99 -0
- package/cjs/node_modules/@mui/system/esm/memoize.cjs +13 -0
- package/cjs/node_modules/@mui/system/esm/merge.cjs +14 -0
- package/cjs/node_modules/@mui/system/esm/palette.cjs +33 -0
- package/cjs/node_modules/@mui/system/esm/responsivePropType.cjs +8 -0
- package/cjs/node_modules/@mui/system/esm/sizing.cjs +76 -0
- package/cjs/node_modules/@mui/system/esm/spacing.cjs +153 -0
- package/cjs/node_modules/@mui/system/esm/style.cjs +83 -0
- package/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.cjs +296 -0
- package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs +136 -0
- package/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.cjs +33 -0
- package/cjs/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.cjs +21 -0
- package/cjs/node_modules/@mui/utils/capitalize/capitalize.cjs +14 -0
- package/cjs/node_modules/@mui/utils/clamp/clamp.cjs +7 -0
- package/cjs/node_modules/@mui/utils/clamp/index.cjs +7 -0
- package/cjs/node_modules/@mui/utils/deepmerge/deepmerge.cjs +49 -0
- package/cjs/node_modules/@mui/utils/exactProp/exactProp.cjs +22 -0
- package/cjs/node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.cjs +23 -0
- package/cjs/node_modules/@mui/utils/formatMuiErrorMessage/index.cjs +7 -0
- package/cjs/node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.cjs +27 -0
- package/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs +1145 -0
- package/cjs/node_modules/react/jsx-runtime.cjs +13 -0
- package/cjs/node_modules/stylis/src/Enum.cjs +21 -0
- package/cjs/node_modules/stylis/src/Middleware.cjs +18 -0
- package/cjs/node_modules/stylis/src/Parser.cjs +190 -0
- package/cjs/node_modules/stylis/src/Serializer.cjs +43 -0
- package/cjs/node_modules/stylis/src/Tokenizer.cjs +248 -0
- package/cjs/node_modules/stylis/src/Utility.cjs +132 -0
- package/cjs/webComponents/HelloWorld/index.cjs +6 -4
- package/cjs/webComponents/SDMXDatagrid/index.cjs +27 -20
- package/esm/_virtual/_commonjsHelpers.js +31 -0
- package/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/esm/_virtual/_rollupPluginBabelHelpers.js +633 -0
- package/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/esm/_virtual/artefacts.js +4 -0
- package/esm/_virtual/artefacts.js.map +1 -0
- package/esm/_virtual/colorManipulator.js +4 -0
- package/esm/_virtual/colorManipulator.js.map +1 -0
- package/esm/_virtual/core.js +4 -0
- package/esm/_virtual/core.js.map +1 -0
- package/esm/_virtual/dependencyResolver.js +4 -0
- package/esm/_virtual/dependencyResolver.js.map +1 -0
- package/esm/_virtual/index.esm.js +7 -0
- package/esm/_virtual/index.esm.js.map +1 -0
- package/esm/_virtual/index.js +7 -0
- package/esm/_virtual/index.js.map +1 -0
- package/esm/_virtual/index2.js +7 -0
- package/esm/_virtual/index2.js.map +1 -0
- package/esm/_virtual/interopRequireDefault.js +4 -0
- package/esm/_virtual/interopRequireDefault.js.map +1 -0
- package/esm/_virtual/items.js +4 -0
- package/esm/_virtual/items.js.map +1 -0
- package/esm/_virtual/jsx-runtime.js +4 -0
- package/esm/_virtual/jsx-runtime.js.map +1 -0
- package/esm/_virtual/react-jsx-runtime.development.js +4 -0
- package/esm/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/esm/_virtual/sdmx.js +4 -0
- package/esm/_virtual/sdmx.js.map +1 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/esm/node_modules/@babel/runtime/helpers/interopRequireDefault.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/interopRequireDefault.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/core.js +1001 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/core.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/data.js +233 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/data.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/dependencyResolver.js +85 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/dependencyResolver.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/items.js +147 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/items.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/assoc.js +37 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/assoc.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/assocPath.js +54 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/assocPath.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/bind.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/bind.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/compose.js +42 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/compose.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/curryN.js +65 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/curryN.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/defaultTo.js +37 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/defaultTo.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/dissoc.js +32 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/dissoc.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/dissocPath.js +78 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/dissocPath.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/forEach.js +57 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/forEach.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/identity.js +33 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/identity.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_arity.js +55 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_arity.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_arrayReduce.js +13 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_arrayReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_assoc.js +36 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_assoc.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_checkForMethod.js +29 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_checkForMethod.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_createReduce.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_createReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curry1.js +26 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curry1.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curry2.js +37 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curry2.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curry3.js +55 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curry3.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curryN.js +47 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_curryN.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_dispatchable.js +48 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_dispatchable.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_dissoc.js +35 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_dissoc.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_has.js +7 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_has.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_identity.js +7 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_identity.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isArguments.js +17 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isArguments.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isArray.js +19 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isArray.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isArrayLike.js +54 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isArrayLike.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isInteger.js +15 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isInteger.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isPlaceholder.js +7 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isPlaceholder.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isString.js +7 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isString.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isTransformer.js +7 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isTransformer.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_map.js +14 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_map.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_pipe.js +9 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_pipe.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xArrayReduce.js +17 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xArrayReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xReduce.js +29 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xfBase.js +12 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xfBase.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xmap.js +26 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xmap.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xwrap.js +23 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xwrap.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/is.js +38 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/is.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/isNil.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/isNil.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/keys.js +79 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/keys.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/map.js +74 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/map.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/nth.js +43 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/nth.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/path.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/path.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/pathOr.js +37 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/pathOr.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/paths.js +49 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/paths.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/pick.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/pick.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/pipe.js +45 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/pipe.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/prop.js +42 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/prop.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/propOr.js +45 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/propOr.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/reduce.js +70 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/reduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/remove.js +36 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/remove.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/reverse.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/reverse.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/slice.js +41 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/slice.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/tail.js +45 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/tail.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/values.js +41 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/values.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/artefacts.js +41 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/artefacts.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/categorisation.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/categorisation.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/categoryscheme.js +15 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/categoryscheme.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/codelist.js +30 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/codelist.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/conceptscheme.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/conceptscheme.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/contentconstraint.js +39 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/contentconstraint.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/dataconstraint.js +38 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/dataconstraint.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/dataflow.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/dataflow.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/dataproviderscheme.js +15 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/dataproviderscheme.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/datastructure.js +72 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/datastructure.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/hierarchicalcodelist.js +37 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/hierarchicalcodelist.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/metadataflow.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/metadataflow.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/metadatastructure.js +61 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/metadatastructure.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/provisionagreement.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/provisionagreement.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/sdmx.js +70 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/types/sdmx.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/utils/url-regexp.js +29 -0
- package/esm/node_modules/@dbmx/sdmx/cjs/utils/url-regexp.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/_virtual/_commonjsHelpers.js +8 -0
- package/esm/node_modules/@dbmx/sdmx/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/_virtual/url-join.js +4 -0
- package/esm/node_modules/@dbmx/sdmx/esm/_virtual/url-join.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/core.js +539 -0
- package/esm/node_modules/@dbmx/sdmx/esm/core.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/datastructures.js +108 -0
- package/esm/node_modules/@dbmx/sdmx/esm/datastructures.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/dependencyResolver.js +67 -0
- package/esm/node_modules/@dbmx/sdmx/esm/dependencyResolver.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/bind.js +38 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/bind.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/compose.js +39 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/compose.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/curryN.js +62 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/curryN.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/defaultTo.js +36 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/defaultTo.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/forEach.js +58 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/forEach.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/identity.js +31 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/identity.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_arity.js +65 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_arity.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_arrayReduce.js +14 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_arrayReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_checkForMethod.js +28 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_checkForMethod.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_createReduce.js +35 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_createReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curry1.js +23 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curry1.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curry2.js +35 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curry2.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curry3.js +53 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curry3.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curryN.js +49 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_curryN.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_dispatchable.js +50 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_dispatchable.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_has.js +6 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_has.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_identity.js +6 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_identity.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isArguments.js +18 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isArguments.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isArray.js +18 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isArray.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isArrayLike.js +57 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isArrayLike.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isInteger.js +14 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isInteger.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isPlaceholder.js +6 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isPlaceholder.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isString.js +6 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isString.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isTransformer.js +6 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_isTransformer.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_map.js +15 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_map.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_pipe.js +8 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_pipe.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xArrayReduce.js +20 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xArrayReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xReduce.js +33 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xReduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xfBase.js +11 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xfBase.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xmap.js +30 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xmap.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xwrap.js +28 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/internal/_xwrap.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/is.js +37 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/is.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/keys.js +93 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/keys.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/map.js +70 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/map.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/nth.js +41 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/nth.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/path.js +38 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/path.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/pathOr.js +34 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/pathOr.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/paths.js +49 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/paths.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/pick.js +42 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/pick.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/pipe.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/pipe.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/prop.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/prop.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/propOr.js +42 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/propOr.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/reduce.js +67 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/reduce.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/reverse.js +38 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/reverse.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/slice.js +40 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/slice.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/tail.js +44 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/tail.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/values.js +41 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/ramda/es/values.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/url-join/lib/url-join.js +88 -0
- package/esm/node_modules/@dbmx/sdmx/esm/node_modules/url-join/lib/url-join.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/query.js +149 -0
- package/esm/node_modules/@dbmx/sdmx/esm/query.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/artefacts.js +32 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/artefacts.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/categorisation.js +18 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/categorisation.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/categoryscheme.js +12 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/categoryscheme.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/codelist.js +18 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/codelist.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/conceptscheme.js +28 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/conceptscheme.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/contentconstraint.js +22 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/contentconstraint.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/dataconstraint.js +21 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/dataconstraint.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/dataflow.js +19 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/dataflow.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/dataproviderscheme.js +12 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/dataproviderscheme.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/datastructure.js +73 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/datastructure.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/hierarchicalcodelist.js +21 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/hierarchicalcodelist.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/metadataflow.js +19 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/metadataflow.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/metadatastructure.js +57 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/metadatastructure.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/provisionagreement.js +18 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/provisionagreement.js.map +1 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/sdmx.js +46 -0
- package/esm/node_modules/@dbmx/sdmx/esm/types/sdmx.js.map +1 -0
- package/esm/node_modules/@dbmx/semver/dist/index.esm.js +856 -0
- package/esm/node_modules/@dbmx/semver/dist/index.esm.js.map +1 -0
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +586 -0
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +133 -0
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/blue.js +20 -0
- package/esm/node_modules/@mui/material/colors/blue.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/common.js +8 -0
- package/esm/node_modules/@mui/material/colors/common.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/green.js +20 -0
- package/esm/node_modules/@mui/material/colors/green.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/grey.js +20 -0
- package/esm/node_modules/@mui/material/colors/grey.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/lightBlue.js +20 -0
- package/esm/node_modules/@mui/material/colors/lightBlue.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/orange.js +20 -0
- package/esm/node_modules/@mui/material/colors/orange.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/purple.js +20 -0
- package/esm/node_modules/@mui/material/colors/purple.js.map +1 -0
- package/esm/node_modules/@mui/material/colors/red.js +20 -0
- package/esm/node_modules/@mui/material/colors/red.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/ThemeProvider.js +33 -0
- package/esm/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/createMixins.js +20 -0
- package/esm/node_modules/@mui/material/styles/createMixins.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/createPalette.js +308 -0
- package/esm/node_modules/@mui/material/styles/createPalette.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/createTheme.js +82 -0
- package/esm/node_modules/@mui/material/styles/createTheme.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/createTransitions.js +92 -0
- package/esm/node_modules/@mui/material/styles/createTransitions.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/createTypography.js +94 -0
- package/esm/node_modules/@mui/material/styles/createTypography.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/identifier.js +4 -0
- package/esm/node_modules/@mui/material/styles/identifier.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/shadows.js +13 -0
- package/esm/node_modules/@mui/material/styles/shadows.js.map +1 -0
- package/esm/node_modules/@mui/material/styles/zIndex.js +16 -0
- package/esm/node_modules/@mui/material/styles/zIndex.js.map +1 -0
- package/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +66 -0
- package/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -0
- package/esm/node_modules/@mui/private-theming/ThemeProvider/nested.js +5 -0
- package/esm/node_modules/@mui/private-theming/ThemeProvider/nested.js.map +1 -0
- package/esm/node_modules/@mui/private-theming/useTheme/ThemeContext.js +10 -0
- package/esm/node_modules/@mui/private-theming/useTheme/ThemeContext.js.map +1 -0
- package/esm/node_modules/@mui/private-theming/useTheme/useTheme.js +14 -0
- package/esm/node_modules/@mui/private-theming/useTheme/useTheme.js.map +1 -0
- package/esm/node_modules/@mui/system/colorManipulator.js +379 -0
- package/esm/node_modules/@mui/system/colorManipulator.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/RtlProvider/index.js +24 -0
- package/esm/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +91 -0
- package/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/borders.js +52 -0
- package/esm/node_modules/@mui/system/esm/borders.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/breakpoints.js +70 -0
- package/esm/node_modules/@mui/system/esm/breakpoints.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/compose.js +27 -0
- package/esm/node_modules/@mui/system/esm/compose.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/createTheme/applyStyles.js +77 -0
- package/esm/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +84 -0
- package/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js +35 -0
- package/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +46 -0
- package/esm/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/createTheme/shape.js +7 -0
- package/esm/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/cssGrid.js +87 -0
- package/esm/node_modules/@mui/system/esm/cssGrid.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/memoize.js +12 -0
- package/esm/node_modules/@mui/system/esm/memoize.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/merge.js +13 -0
- package/esm/node_modules/@mui/system/esm/merge.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/palette.js +29 -0
- package/esm/node_modules/@mui/system/esm/palette.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/responsivePropType.js +7 -0
- package/esm/node_modules/@mui/system/esm/responsivePropType.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/sizing.js +68 -0
- package/esm/node_modules/@mui/system/esm/sizing.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/spacing.js +145 -0
- package/esm/node_modules/@mui/system/esm/spacing.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/style.js +78 -0
- package/esm/node_modules/@mui/system/esm/style.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +295 -0
- package/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +132 -0
- package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -0
- package/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js +13 -0
- package/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -0
- package/esm/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +20 -0
- package/esm/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
- package/esm/node_modules/@mui/utils/capitalize/capitalize.js +13 -0
- package/esm/node_modules/@mui/utils/capitalize/capitalize.js.map +1 -0
- package/esm/node_modules/@mui/utils/clamp/clamp.js +6 -0
- package/esm/node_modules/@mui/utils/clamp/clamp.js.map +1 -0
- package/esm/node_modules/@mui/utils/clamp/index.js +2 -0
- package/esm/node_modules/@mui/utils/clamp/index.js.map +1 -0
- package/esm/node_modules/@mui/utils/deepmerge/deepmerge.js +45 -0
- package/esm/node_modules/@mui/utils/deepmerge/deepmerge.js.map +1 -0
- package/esm/node_modules/@mui/utils/exactProp/exactProp.js +21 -0
- package/esm/node_modules/@mui/utils/exactProp/exactProp.js.map +1 -0
- package/esm/node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +22 -0
- package/esm/node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
- package/esm/node_modules/@mui/utils/formatMuiErrorMessage/index.js +2 -0
- package/esm/node_modules/@mui/utils/formatMuiErrorMessage/index.js.map +1 -0
- package/esm/node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js +23 -0
- package/esm/node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js.map +1 -0
- package/esm/node_modules/lru-cache/index.js +280 -0
- package/esm/node_modules/lru-cache/index.js.map +1 -0
- package/esm/node_modules/react/cjs/react-jsx-runtime.development.js +1144 -0
- package/esm/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/esm/node_modules/react/jsx-runtime.js +12 -0
- package/esm/node_modules/react/jsx-runtime.js.map +1 -0
- package/esm/node_modules/react-dom/client.js +19 -0
- package/esm/node_modules/react-dom/client.js.map +1 -0
- package/esm/node_modules/stylis/src/Enum.js +12 -0
- package/esm/node_modules/stylis/src/Enum.js.map +1 -0
- package/esm/node_modules/stylis/src/Middleware.js +17 -0
- package/esm/node_modules/stylis/src/Middleware.js.map +1 -0
- package/esm/node_modules/stylis/src/Parser.js +185 -0
- package/esm/node_modules/stylis/src/Parser.js.map +1 -0
- package/esm/node_modules/stylis/src/Serializer.js +41 -0
- package/esm/node_modules/stylis/src/Serializer.js.map +1 -0
- package/esm/node_modules/stylis/src/Tokenizer.js +231 -0
- package/esm/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/esm/node_modules/stylis/src/Utility.js +118 -0
- package/esm/node_modules/stylis/src/Utility.js.map +1 -0
- package/esm/node_modules/yallist/iterator.js +19 -0
- package/esm/node_modules/yallist/iterator.js.map +1 -0
- package/esm/node_modules/yallist/yallist.js +369 -0
- package/esm/node_modules/yallist/yallist.js.map +1 -0
- package/esm/src/assets/images/toasts/sdmx_datagrid.png.js +4 -0
- package/esm/src/assets/images/toasts/sdmx_datagrid.png.js.map +1 -0
- package/esm/src/components/HelloWorld/index.js +18 -0
- package/esm/src/components/HelloWorld/index.js.map +1 -0
- package/esm/src/components/HelloWorld/style.css.js +4 -0
- package/esm/src/components/HelloWorld/style.css.js.map +1 -0
- package/esm/src/components/SdmxDatagrid/LoadingBox.js +24 -0
- package/esm/src/components/SdmxDatagrid/LoadingBox.js.map +1 -0
- package/esm/src/components/SdmxDatagrid/SDMXGrid.js +122 -0
- package/esm/src/components/SdmxDatagrid/SDMXGrid.js.map +1 -0
- package/esm/src/components/SdmxDatagrid/index.js +171 -0
- package/esm/src/components/SdmxDatagrid/index.js.map +1 -0
- package/esm/src/components/SdmxDatagrid/messages.js +31 -0
- package/esm/src/components/SdmxDatagrid/messages.js.map +1 -0
- package/esm/src/components/SdmxDatagrid/utils.js +166 -0
- package/esm/src/components/SdmxDatagrid/utils.js.map +1 -0
- package/esm/src/index.js +73 -0
- package/esm/src/index.js.map +1 -0
- package/esm/src/webComponents/HelloWorld/index.js +55 -0
- package/esm/src/webComponents/HelloWorld/index.js.map +1 -0
- package/esm/src/webComponents/SDMXDatagrid/index.js +87 -0
- package/esm/src/webComponents/SDMXDatagrid/index.js.map +1 -0
- package/package.json +28 -12
- package/plugins/rollup-plugin-postcss-shadow/index.js +79 -0
|
@@ -0,0 +1,856 @@
|
|
|
1
|
+
import LRU from '../../../lru-cache/index.js';
|
|
2
|
+
|
|
3
|
+
const MAX_LENGTH = 256;
|
|
4
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
5
|
+
const numeric = /^[0-9]+$/;
|
|
6
|
+
const compareIdentifiers = (a, b) => {
|
|
7
|
+
const anum = numeric.test(a);
|
|
8
|
+
const bnum = numeric.test(b);
|
|
9
|
+
if (anum && bnum) {
|
|
10
|
+
a = +a;
|
|
11
|
+
b = +b;
|
|
12
|
+
}
|
|
13
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
14
|
+
};
|
|
15
|
+
class SemVerError extends Error {
|
|
16
|
+
constructor(message) {
|
|
17
|
+
super(message);
|
|
18
|
+
this.name = this.constructor.name;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const re = [];
|
|
22
|
+
const src = [];
|
|
23
|
+
const t = {};
|
|
24
|
+
let R = 0;
|
|
25
|
+
const createToken = (name, value, isGlobal) => {
|
|
26
|
+
const index = R++;
|
|
27
|
+
t[name] = index;
|
|
28
|
+
src[index] = value;
|
|
29
|
+
re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// The following Regular Expressions can be used for tokenizing,
|
|
33
|
+
// validating, and parsing SemVer version strings.
|
|
34
|
+
|
|
35
|
+
// ## Numeric Identifier
|
|
36
|
+
// A single `0`, or a non-zero digit followed by zero or more digits.
|
|
37
|
+
|
|
38
|
+
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
|
|
39
|
+
|
|
40
|
+
// ## Non-numeric Identifier
|
|
41
|
+
// Zero or more digits, followed by a letter or hyphen, and then zero or
|
|
42
|
+
// more letters, digits, or hyphens.
|
|
43
|
+
|
|
44
|
+
createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*');
|
|
45
|
+
|
|
46
|
+
// ## Main Version
|
|
47
|
+
// Three dot-separated numeric identifiers.
|
|
48
|
+
|
|
49
|
+
createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})(?:\\.` + `(${src[t.NUMERICIDENTIFIER]}))?`);
|
|
50
|
+
|
|
51
|
+
// ## Pre-release Version Identifier
|
|
52
|
+
// A numeric identifier, or a non-numeric identifier.
|
|
53
|
+
|
|
54
|
+
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
55
|
+
|
|
56
|
+
// ## Pre-release Version
|
|
57
|
+
// Hyphen, followed by one or more dot-separated pre-release version
|
|
58
|
+
// identifiers.
|
|
59
|
+
|
|
60
|
+
createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
61
|
+
|
|
62
|
+
// ## Build Metadata Identifier
|
|
63
|
+
// Any combination of digits, letters, or hyphens.
|
|
64
|
+
|
|
65
|
+
createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+');
|
|
66
|
+
|
|
67
|
+
// ## Build Metadata
|
|
68
|
+
// Plus sign, followed by one or more period-separated build metadata
|
|
69
|
+
// identifiers.
|
|
70
|
+
|
|
71
|
+
createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
72
|
+
|
|
73
|
+
// ## Full Version String
|
|
74
|
+
// A main version, followed optionally by a pre-release version and
|
|
75
|
+
// build metadata.
|
|
76
|
+
|
|
77
|
+
// Note that the only major, minor, patch, and pre-release sections of
|
|
78
|
+
// the version string are capturing groups. The build metadata is not a
|
|
79
|
+
// capturing group, because it should not ever be used in version
|
|
80
|
+
// comparison.
|
|
81
|
+
|
|
82
|
+
createToken('FULLPLAIN', `${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
83
|
+
createToken('FULL', `^${src[t.FULLPLAIN]}$`);
|
|
84
|
+
createToken('GTLT', '((?:<|>)?=?)');
|
|
85
|
+
|
|
86
|
+
// A simple gt/lt/eq thing, or just "" to indicate "any version"
|
|
87
|
+
createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Represents a Semantic Version (SemVer) object
|
|
91
|
+
*
|
|
92
|
+
* @function SemVer
|
|
93
|
+
* @tag semver
|
|
94
|
+
* @param {string} - Version to parse
|
|
95
|
+
* @throws {SemVerError} - Throws an error if the provided version is invalid
|
|
96
|
+
* @example
|
|
97
|
+
*
|
|
98
|
+
* expect(SemVer('1.0').parts()).toEqual(2)
|
|
99
|
+
* expect(SemVer('1.0.1').parts()).toEqual(3)
|
|
100
|
+
* expect(SemVer('1.0.1-draft').parts()).toEqual(4)
|
|
101
|
+
* expect(SemVer('1.0').isNonVersioned()).toBeTruthy()
|
|
102
|
+
* expect(SemVer('1.0.1').isNonVersioned()).toBeFalsy()
|
|
103
|
+
*
|
|
104
|
+
* expect(SemVer('1.0').is2Parts()).toBeTruthy()
|
|
105
|
+
* expect(SemVer('1.0').patch).toEqual(null)
|
|
106
|
+
* expect(SemVer('1.0.0').patch).toEqual(0)
|
|
107
|
+
* expect(SemVer('1.0.0').is2Parts()).toBeFalsy()
|
|
108
|
+
* expect(SemVer('1.0.0-draft.1').extension).toEqual('draft.1')
|
|
109
|
+
* expect(() => SemVer('1.0-draft.1')).toThrow(/Invalid version/)
|
|
110
|
+
*
|
|
111
|
+
* expect(SemVer('1.0').isStable()).toBeFalsy()
|
|
112
|
+
* expect(SemVer('0.1.2').isStable()).toBeFalsy()
|
|
113
|
+
* expect(SemVer('3.1.2-draft').isStable()).toBeFalsy()
|
|
114
|
+
* expect(SemVer('3.1.2').isStable()).toBeTruthy()
|
|
115
|
+
*
|
|
116
|
+
* expect(SemVer('1.0').compare('1.0')).toEqual(0)
|
|
117
|
+
* expect(SemVer('1.1').compare('1.0')).toEqual(1)
|
|
118
|
+
* expect(SemVer('1.0').compare('1.0.0')).toEqual(-1)
|
|
119
|
+
* expect(SemVer('1.0.0-draft').compare('1.0')).toEqual(1)
|
|
120
|
+
* expect(SemVer('1.2.1').compare('1.2.1')).toEqual(0)
|
|
121
|
+
* expect(SemVer('1.2.2').compare('1.2.1')).toEqual(1)
|
|
122
|
+
* expect(SemVer('1.2.2').compare('1.2.2-draft')).toEqual(1)
|
|
123
|
+
* expect(SemVer('1.2.2-draft').compare('1.2.2-draft.1')).toEqual(-1)
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
class SemVer {
|
|
128
|
+
constructor(version) {
|
|
129
|
+
if (version instanceof SemVer) {
|
|
130
|
+
version = version.version;
|
|
131
|
+
} else if (typeof version !== 'string') {
|
|
132
|
+
throw new SemVerError(`Invalid Version: ${JSON.stringify(version, null, 4)}`);
|
|
133
|
+
}
|
|
134
|
+
if (version.length > MAX_LENGTH) {
|
|
135
|
+
throw new SemVerError(`version is longer than ${MAX_LENGTH} characters`);
|
|
136
|
+
}
|
|
137
|
+
const m = version.trim().match(re[t.FULL]);
|
|
138
|
+
if (!m) {
|
|
139
|
+
throw new SemVerError(`Invalid Version: ${version}`);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// these are actually numbers
|
|
143
|
+
this.major = +m[1];
|
|
144
|
+
this.minor = +m[2];
|
|
145
|
+
this.patch = m[3] ? +m[3] : null;
|
|
146
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
147
|
+
throw new SemVerError('Invalid major version');
|
|
148
|
+
}
|
|
149
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
150
|
+
throw new SemVerError('Invalid minor version');
|
|
151
|
+
}
|
|
152
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
153
|
+
throw new SemVerError('Invalid patch version');
|
|
154
|
+
}
|
|
155
|
+
this.extension = m[4] || null;
|
|
156
|
+
if (this.patch === null && this.extension) {
|
|
157
|
+
throw new SemVerError('Invalid version');
|
|
158
|
+
}
|
|
159
|
+
this.format();
|
|
160
|
+
}
|
|
161
|
+
is2Parts() {
|
|
162
|
+
return this.patch === null;
|
|
163
|
+
}
|
|
164
|
+
parts() {
|
|
165
|
+
return this.extension === null ? this.patch === null ? 2 : 3 : 4;
|
|
166
|
+
}
|
|
167
|
+
isNonVersioned() {
|
|
168
|
+
return this.parts() === 2;
|
|
169
|
+
}
|
|
170
|
+
isStable() {
|
|
171
|
+
return !this.extension && this.major > 0 && !this.is2Parts();
|
|
172
|
+
}
|
|
173
|
+
format() {
|
|
174
|
+
this.version = this.is2Parts() ? `${this.major}.${this.minor}` : `${this.major}.${this.minor}.${this.patch}`;
|
|
175
|
+
if (this.extension) this.version += `-${this.extension}`;
|
|
176
|
+
return this.version;
|
|
177
|
+
}
|
|
178
|
+
toString() {
|
|
179
|
+
return this.version;
|
|
180
|
+
}
|
|
181
|
+
compare(other) {
|
|
182
|
+
if (!(other instanceof SemVer)) {
|
|
183
|
+
if (typeof other === 'string' && other === this.version) {
|
|
184
|
+
return 0;
|
|
185
|
+
}
|
|
186
|
+
other = new SemVer(other);
|
|
187
|
+
}
|
|
188
|
+
if (other.version === this.version) {
|
|
189
|
+
return 0;
|
|
190
|
+
}
|
|
191
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
192
|
+
}
|
|
193
|
+
compareMain(other) {
|
|
194
|
+
if (!(other instanceof SemVer)) {
|
|
195
|
+
other = new SemVer(other);
|
|
196
|
+
}
|
|
197
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || this.comparePatch(other);
|
|
198
|
+
}
|
|
199
|
+
comparePatch(other) {
|
|
200
|
+
if (this.patch === other.patch) return 0;
|
|
201
|
+
// if (this.is2Parts() && other.patch === 0) return 0
|
|
202
|
+
if (this.is2Parts()) return -1;
|
|
203
|
+
if (other.is2Parts()) return 1;
|
|
204
|
+
return compareIdentifiers(this.patch, other.patch);
|
|
205
|
+
}
|
|
206
|
+
comparePre(other) {
|
|
207
|
+
if (!(other instanceof SemVer)) {
|
|
208
|
+
other = new SemVer(other);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// NOT having a extension is > having one
|
|
212
|
+
if (this.extension && !other.extension) {
|
|
213
|
+
return -1;
|
|
214
|
+
} else if (!this.extension && other.extension) {
|
|
215
|
+
return 1;
|
|
216
|
+
} else if (!this.extension && !other.extension) {
|
|
217
|
+
return 0;
|
|
218
|
+
}
|
|
219
|
+
let i = 0;
|
|
220
|
+
do {
|
|
221
|
+
const a = this.extension[i];
|
|
222
|
+
const b = other.extension[i];
|
|
223
|
+
if (a === undefined && b === undefined) {
|
|
224
|
+
return 0;
|
|
225
|
+
} else if (b === undefined) {
|
|
226
|
+
return 1;
|
|
227
|
+
} else if (a === undefined) {
|
|
228
|
+
return -1;
|
|
229
|
+
} else if (a === b) {
|
|
230
|
+
continue;
|
|
231
|
+
} else {
|
|
232
|
+
return compareIdentifiers(a, b);
|
|
233
|
+
}
|
|
234
|
+
} while (++i);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
var SemVer$1 = version => new SemVer(version);
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Compares two version strings or SemVer instances
|
|
241
|
+
*
|
|
242
|
+
* @function compare
|
|
243
|
+
* @tag core
|
|
244
|
+
* @param {string|SemVer} - First version string or SemVer instance (a)
|
|
245
|
+
* @param {string|SemVer} - Second version string or SemVer instance (b)
|
|
246
|
+
* @return {number} - Returns 0 if versions are equal, 1 if `a` is greater than `b`, and -1 if `a` is less than `b`
|
|
247
|
+
* @example
|
|
248
|
+
*
|
|
249
|
+
* compare('1.0.0', '1.2.0'); // -1
|
|
250
|
+
* compare('1.2.0', '1.2.0'); // 0
|
|
251
|
+
* compare('2.0.0', '1.2.0'); // 1
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
const compare = (a, b) => SemVer$1(a).compare(SemVer$1(b));
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Checks if two version strings or SemVer instances are equal
|
|
258
|
+
*
|
|
259
|
+
* @function eq
|
|
260
|
+
* @tag core
|
|
261
|
+
* @param {string|SemVer} - First version string or SemVer instance
|
|
262
|
+
* @param {string|SemVer} - Second version string or SemVer instance
|
|
263
|
+
* @return {boolean} - Returns true if the versions are equal, otherwise false
|
|
264
|
+
* @example
|
|
265
|
+
*
|
|
266
|
+
* eq('1.0.0', '1.0.0'); // true
|
|
267
|
+
* eq('1.0.0', '1.2.0'); // false
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
const eq = (a, b) => compare(a, b) === 0;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Checks if two version strings or SemVer instances are not equal
|
|
274
|
+
*
|
|
275
|
+
* @function neq
|
|
276
|
+
* @tag core
|
|
277
|
+
* @param {string|SemVer} - First version string or SemVer instance
|
|
278
|
+
* @param {string|SemVer} - Second version string or SemVer instance
|
|
279
|
+
* @return {boolean} - Returns true if the versions are not equal, otherwise false
|
|
280
|
+
* @example
|
|
281
|
+
*
|
|
282
|
+
* neq('1.0.0', '1.0.0'); // false
|
|
283
|
+
* neq('1.0.0', '1.2.0'); // true
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
const neq = (a, b) => compare(a, b) !== 0;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Checks if the first version string or SemVer instance is greater than the second
|
|
290
|
+
*
|
|
291
|
+
* @function gt
|
|
292
|
+
* @tag core
|
|
293
|
+
* @param {string|SemVer} - First version string or SemVer instance (a)
|
|
294
|
+
* @param {string|SemVer} - Second version string or SemVer instance (b)
|
|
295
|
+
* @return {boolean} - Returns true if `a` is greater than `b`, otherwise false
|
|
296
|
+
* @example
|
|
297
|
+
*
|
|
298
|
+
* gt('1.2.0', '1.0.0'); // true
|
|
299
|
+
* gt('1.0.0', '1.2.0'); // false
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
const gt = (a, b) => compare(a, b) > 0;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Checks if the first version string or SemVer instance is greater than or equal to the second
|
|
306
|
+
*
|
|
307
|
+
* @function gte
|
|
308
|
+
* @tag core
|
|
309
|
+
* @param {string|SemVer} - First version string or SemVer instance (a)
|
|
310
|
+
* @param {string|SemVer} - Second version string or SemVer instance (b)
|
|
311
|
+
* @return {boolean} - Returns true if `a` is greater than or equal `b`, otherwise false
|
|
312
|
+
* @example
|
|
313
|
+
*
|
|
314
|
+
* gte('1.2.0', '1.0.0'); // true
|
|
315
|
+
* gte('1.0.0', '1.2.0'); // false
|
|
316
|
+
* gte('1.2.0', '1.2.0'); // true
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
const gte = (a, b) => compare(a, b) >= 0;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Checks if the first version string or SemVer instance is less than the second
|
|
323
|
+
*
|
|
324
|
+
* @function lt
|
|
325
|
+
* @tag core
|
|
326
|
+
* @param {string|SemVer} - First version string or SemVer instance (a)
|
|
327
|
+
* @param {string|SemVer} - Second version string or SemVer instance (b)
|
|
328
|
+
* @return {boolean} - Returns true if `a` is less than `b`, otherwise false
|
|
329
|
+
* @example
|
|
330
|
+
*
|
|
331
|
+
* lt('1.0.0', '1.2.0'); // true
|
|
332
|
+
* lt('1.2.0', '1.0.0'); // false
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
const lt = (a, b) => compare(a, b) < 0;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Checks if the first version string or SemVer instance is less than or equal to the second
|
|
339
|
+
*
|
|
340
|
+
* @function lte
|
|
341
|
+
* @tag core
|
|
342
|
+
* @param {string|SemVer} - First version string or SemVer instance (a)
|
|
343
|
+
* @param {string|SemVer} - Second version string or SemVer instance (b)
|
|
344
|
+
* @return {boolean} - Returns true if `a` is less than or equal than `b`, otherwise false
|
|
345
|
+
* @example
|
|
346
|
+
*
|
|
347
|
+
* lte('1.0.0', '1.2.0'); // true
|
|
348
|
+
* lte('1.2.0', '1.0.0'); // false
|
|
349
|
+
* lte('1.2.0', '1.2.0'); // true
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
const lte = (a, b) => compare(a, b) <= 0;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Performs comparison operations between version strings or SemVer instances
|
|
356
|
+
*
|
|
357
|
+
* @function cmp
|
|
358
|
+
* @tag core
|
|
359
|
+
* @param {string|SemVer} - First version string or SemVer instance
|
|
360
|
+
* @param {string} - Comparison operator ('===', '!==', '=', '==', '!=', '>', '>=', '<', '<=')
|
|
361
|
+
* @param {string|SemVer} - Second version string or SemVer instance
|
|
362
|
+
* @return {boolean} - Returns true if the comparison operation is true, otherwise false.
|
|
363
|
+
* @throws {SemVerError} - Throws an error if the comparison operator is invalid.
|
|
364
|
+
* @example
|
|
365
|
+
*
|
|
366
|
+
* cmp('1.0.0', '===', '1.0.0'); // true
|
|
367
|
+
* cmp('1.0.0', '!=', '1.0.1'); // true
|
|
368
|
+
* cmp('1.2.0', '>', '1.0.0'); // true
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
var cmp = (a, op, b) => {
|
|
372
|
+
switch (op) {
|
|
373
|
+
case '===':
|
|
374
|
+
if (typeof a === 'object') a = a.version;
|
|
375
|
+
if (typeof b === 'object') b = b.version;
|
|
376
|
+
return a === b;
|
|
377
|
+
case '!==':
|
|
378
|
+
if (typeof a === 'object') a = a.version;
|
|
379
|
+
if (typeof b === 'object') b = b.version;
|
|
380
|
+
return a !== b;
|
|
381
|
+
case '':
|
|
382
|
+
case '=':
|
|
383
|
+
case '==':
|
|
384
|
+
return eq(a, b);
|
|
385
|
+
case '!=':
|
|
386
|
+
return neq(a, b);
|
|
387
|
+
case '>':
|
|
388
|
+
return gt(a, b);
|
|
389
|
+
case '>=':
|
|
390
|
+
return gte(a, b);
|
|
391
|
+
case '<':
|
|
392
|
+
return lt(a, b);
|
|
393
|
+
case '<=':
|
|
394
|
+
return lte(a, b);
|
|
395
|
+
default:
|
|
396
|
+
throw new SemVerError(`Invalid operator: ${op}`);
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
const ANY = Symbol('SemVer ANY');
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Represents a comparator object used for version comparison
|
|
403
|
+
*
|
|
404
|
+
* @function Comparator
|
|
405
|
+
* @param {string|Comparator} - Comparator string or another Comparator object
|
|
406
|
+
* @throw {SemVerError} - Throws an error if the provided comparator is invalid
|
|
407
|
+
* @example
|
|
408
|
+
*
|
|
409
|
+
* Comparator('> 1.2.3')
|
|
410
|
+
* Comparator('<= 1.2')
|
|
411
|
+
* Comparator('= 1.21.3-draft')
|
|
412
|
+
* Comparator('1.21.3-draft')
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
|
|
416
|
+
class Comparator {
|
|
417
|
+
static get ANY() {
|
|
418
|
+
return ANY;
|
|
419
|
+
}
|
|
420
|
+
constructor(comp) {
|
|
421
|
+
if (comp instanceof Comparator) {
|
|
422
|
+
comp = comp.value;
|
|
423
|
+
}
|
|
424
|
+
this.parse(comp);
|
|
425
|
+
if (this.semver === ANY) {
|
|
426
|
+
this.value = '';
|
|
427
|
+
} else {
|
|
428
|
+
this.value = this.operator + this.semver.version;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
parse(comp) {
|
|
432
|
+
const r = re[t.COMPARATOR];
|
|
433
|
+
const m = comp.match(r);
|
|
434
|
+
if (!m) {
|
|
435
|
+
throw new SemVerError(`Invalid comparator: ${comp}`);
|
|
436
|
+
}
|
|
437
|
+
this.operator = m[1] !== undefined ? m[1] : '';
|
|
438
|
+
if (this.operator === '=') {
|
|
439
|
+
this.operator = '';
|
|
440
|
+
}
|
|
441
|
+
this.semver = SemVer$1(m[2]);
|
|
442
|
+
}
|
|
443
|
+
toString() {
|
|
444
|
+
return this.value;
|
|
445
|
+
}
|
|
446
|
+
test(version) {
|
|
447
|
+
// if (this.semver === ANY || version === ANY) {
|
|
448
|
+
// return true
|
|
449
|
+
// }
|
|
450
|
+
|
|
451
|
+
if (typeof version === 'string') {
|
|
452
|
+
try {
|
|
453
|
+
version = SemVer$1(version);
|
|
454
|
+
} catch (err) {
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
return cmp(version, this.operator, this.semver);
|
|
459
|
+
}
|
|
460
|
+
intersects(comp) {
|
|
461
|
+
if (!(comp instanceof Comparator)) {
|
|
462
|
+
throw new SemVerError('a Comparator is required');
|
|
463
|
+
}
|
|
464
|
+
if (this.operator === '') {
|
|
465
|
+
if (this.value === '') {
|
|
466
|
+
return true;
|
|
467
|
+
}
|
|
468
|
+
return Range$1(comp.value).test(this.value);
|
|
469
|
+
} else if (comp.operator === '') {
|
|
470
|
+
if (comp.value === '') {
|
|
471
|
+
return true;
|
|
472
|
+
}
|
|
473
|
+
return Range$1(this.value).test(comp.semver);
|
|
474
|
+
}
|
|
475
|
+
const sameDirectionIncreasing = (this.operator === '>=' || this.operator === '>') && (comp.operator === '>=' || comp.operator === '>');
|
|
476
|
+
const sameDirectionDecreasing = (this.operator === '<=' || this.operator === '<') && (comp.operator === '<=' || comp.operator === '<');
|
|
477
|
+
const sameSemVer = this.semver.version === comp.semver.version;
|
|
478
|
+
const differentDirectionsInclusive = (this.operator === '>=' || this.operator === '<=') && (comp.operator === '>=' || comp.operator === '<=');
|
|
479
|
+
const oppositeDirectionsLessThan = cmp(this.semver, '<', comp.semver) && (this.operator === '>=' || this.operator === '>') && (comp.operator === '<=' || comp.operator === '<');
|
|
480
|
+
const oppositeDirectionsGreaterThan = cmp(this.semver, '>', comp.semver) && (this.operator === '<=' || this.operator === '<') && (comp.operator === '>=' || comp.operator === '>');
|
|
481
|
+
return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
var Comparator$1 = comp => new Comparator(comp);
|
|
485
|
+
const cache = new LRU({
|
|
486
|
+
max: 1000
|
|
487
|
+
});
|
|
488
|
+
const NUM = '0|[1-9]\\d*';
|
|
489
|
+
const RANGE_TYPE = {
|
|
490
|
+
ONE: 'one',
|
|
491
|
+
MANY: 'many',
|
|
492
|
+
LATEST: 'latest'
|
|
493
|
+
};
|
|
494
|
+
const matchSemVer = (string, map) => regexp => {
|
|
495
|
+
const res = string.match(regexp);
|
|
496
|
+
if (!res) return () => false;
|
|
497
|
+
const result = () => true;
|
|
498
|
+
for (const [key, pos, def = 0] of map) {
|
|
499
|
+
result[key] = res[pos] || def;
|
|
500
|
+
}
|
|
501
|
+
return result;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
// take a set of comparators and determine whether there
|
|
505
|
+
// exists a version which can satisfy it
|
|
506
|
+
const isSatisfiable = comparators => {
|
|
507
|
+
let result = true;
|
|
508
|
+
const remainingComparators = comparators.slice();
|
|
509
|
+
let testComparator = remainingComparators.pop();
|
|
510
|
+
while (result && remainingComparators.length) {
|
|
511
|
+
result = remainingComparators.every(otherComparator => {
|
|
512
|
+
return testComparator.intersects(otherComparator);
|
|
513
|
+
});
|
|
514
|
+
testComparator = remainingComparators.pop();
|
|
515
|
+
}
|
|
516
|
+
return result;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Represents a range of versions for semantic versioning
|
|
521
|
+
*
|
|
522
|
+
* @function Range
|
|
523
|
+
* @tag range
|
|
524
|
+
* @param {string} - Version range
|
|
525
|
+
* @throws {SemVerError} - Throws an error if the provided range is invalid
|
|
526
|
+
* @example
|
|
527
|
+
*
|
|
528
|
+
* expect(() => Range('wrong range')).toThrow()
|
|
529
|
+
* expect(Range('1.0').test('1.0')).toBeTruthy()
|
|
530
|
+
* expect(Range('1.0').test('1.0.0')).toBeFalsy()
|
|
531
|
+
*
|
|
532
|
+
* expect(Range('~').toString()).toEqual('>=0.0.0-0')
|
|
533
|
+
* expect(Range('~').test('1.2.3-draft')).toBeTruthy()
|
|
534
|
+
* expect(Range('1.~').test('1.2.3-draft')).toBeFalsy()
|
|
535
|
+
*
|
|
536
|
+
* expect(Range('+').toString()).toEqual('>=1.0.0')
|
|
537
|
+
* expect(Range('+').test('1.2.3-draft')).toBeFalsy()
|
|
538
|
+
* expect(Range('1.0.+').test('1.0.3')).toBeTruthy()
|
|
539
|
+
*
|
|
540
|
+
* expect(Range('*').test('1.0')).toBeTruthy()
|
|
541
|
+
* expect(Range('*').test('1.0.0-draft')).toBeTruthy()
|
|
542
|
+
* expect(Range('1.*').test('1.1.3')).toBeFalsy()
|
|
543
|
+
*
|
|
544
|
+
* expect(Range('1~.2.0').test('4.3.2')).toBeTruthy()
|
|
545
|
+
* expect(Range('1~.2.0').test('4.3.2-draft')).toBeTruthy()
|
|
546
|
+
* expect(Range('1.2~.0').toString()).toEqual('>=1.2.0-0 <2.0.0-0')
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
class Range {
|
|
550
|
+
constructor(range) {
|
|
551
|
+
if (range instanceof Range) return new Range(range.raw);
|
|
552
|
+
if (range instanceof Comparator) {
|
|
553
|
+
this.raw = range.value;
|
|
554
|
+
this.set = [[range]];
|
|
555
|
+
this.format();
|
|
556
|
+
return this;
|
|
557
|
+
}
|
|
558
|
+
this.raw = range;
|
|
559
|
+
const [type, set, subType] = this.makeRangeSet(range);
|
|
560
|
+
this.set = set;
|
|
561
|
+
this.type = type;
|
|
562
|
+
this.subType = subType;
|
|
563
|
+
if (!this.set.length) {
|
|
564
|
+
throw new SemVerError(`Invalid SemVer Range: ${range}`);
|
|
565
|
+
}
|
|
566
|
+
this.format();
|
|
567
|
+
}
|
|
568
|
+
get comparators() {
|
|
569
|
+
const res = [];
|
|
570
|
+
for (const a of this.set) {
|
|
571
|
+
for (const b of a) {
|
|
572
|
+
res.push(b);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return res;
|
|
576
|
+
}
|
|
577
|
+
isMonoVersion() {
|
|
578
|
+
return this.type === RANGE_TYPE.ONE;
|
|
579
|
+
}
|
|
580
|
+
isResolved() {
|
|
581
|
+
return this.isMonoVersion();
|
|
582
|
+
}
|
|
583
|
+
format() {
|
|
584
|
+
this.range = this.set.map(comps => {
|
|
585
|
+
return comps.join(' ').trim();
|
|
586
|
+
}).join('||').trim();
|
|
587
|
+
return this.range;
|
|
588
|
+
}
|
|
589
|
+
toString() {
|
|
590
|
+
return this.range;
|
|
591
|
+
}
|
|
592
|
+
makeRangeSet(range) {
|
|
593
|
+
range = range.trim();
|
|
594
|
+
const memoKey = `parseRange:${range}`;
|
|
595
|
+
const cached = cache.get(memoKey);
|
|
596
|
+
if (cached) return cached;
|
|
597
|
+
range = range.replace(/\s+/, '');
|
|
598
|
+
const [type, comparators, subType] = makeComparators(range);
|
|
599
|
+
if (!comparators) return [null, []];
|
|
600
|
+
const set = comparators.map(comp => comp.split(/\s+/).map(comp => Comparator$1(comp)));
|
|
601
|
+
cache.set(memoKey, [type, set, subType]);
|
|
602
|
+
return [type, set, subType];
|
|
603
|
+
}
|
|
604
|
+
intersects(range) {
|
|
605
|
+
if (!(range instanceof Range)) {
|
|
606
|
+
throw new SemVerError('a Range is required');
|
|
607
|
+
}
|
|
608
|
+
return this.set.some(thisComparators => {
|
|
609
|
+
return isSatisfiable(thisComparators) && range.set.some(rangeComparators => {
|
|
610
|
+
return isSatisfiable(rangeComparators) && thisComparators.every(thisComparator => {
|
|
611
|
+
return rangeComparators.every(rangeComparator => {
|
|
612
|
+
return thisComparator.intersects(rangeComparator);
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
620
|
+
test(version) {
|
|
621
|
+
if (!version) {
|
|
622
|
+
return false;
|
|
623
|
+
}
|
|
624
|
+
if (typeof version === 'string') {
|
|
625
|
+
try {
|
|
626
|
+
version = SemVer$1(version);
|
|
627
|
+
} catch (er) {
|
|
628
|
+
return false;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
632
|
+
if (testSet(this.set[i], version)) return true;
|
|
633
|
+
}
|
|
634
|
+
return false;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
const RANGE_SUB_TYPE = {
|
|
638
|
+
RESOLVED: 'resolved',
|
|
639
|
+
STABLE: 'stable',
|
|
640
|
+
LATEST_STABLE: 'latest_stable',
|
|
641
|
+
LATEST_UNSTABLE: 'latest_unstable',
|
|
642
|
+
UNSTABLE: 'unstable',
|
|
643
|
+
ALL: 'all',
|
|
644
|
+
ABOVE: 'above'
|
|
645
|
+
};
|
|
646
|
+
const makeComparators = comp => {
|
|
647
|
+
let newComp;
|
|
648
|
+
newComp = checkSpecific(comp);
|
|
649
|
+
if (newComp) return [RANGE_TYPE.ONE, [newComp], RANGE_SUB_TYPE.RESOLVED];
|
|
650
|
+
newComp = checkOnlyStable(comp);
|
|
651
|
+
if (newComp) return [RANGE_TYPE.LATEST, [newComp], RANGE_SUB_TYPE.STABLE];
|
|
652
|
+
newComp = checkLatestStable(comp);
|
|
653
|
+
if (newComp) return [RANGE_TYPE.LATEST, [newComp], RANGE_SUB_TYPE.LATEST_STABLE];
|
|
654
|
+
newComp = checkLatestUnStable(comp);
|
|
655
|
+
if (newComp) return [RANGE_TYPE.LATEST, [newComp], RANGE_SUB_TYPE.LATEST_UNSTABLE];
|
|
656
|
+
newComp = checkPossibleUnstable(comp);
|
|
657
|
+
if (newComp) return [RANGE_TYPE.LATEST, [newComp], RANGE_SUB_TYPE.UNSTABLE];
|
|
658
|
+
newComp = checkAllVersions(comp);
|
|
659
|
+
if (newComp) return [RANGE_TYPE.MANY, newComp, RANGE_SUB_TYPE.ALL];
|
|
660
|
+
newComp = checkAllAboveVersions(comp);
|
|
661
|
+
if (newComp) return [RANGE_TYPE.MANY, newComp, RANGE_SUB_TYPE.ABOVE];
|
|
662
|
+
return [];
|
|
663
|
+
};
|
|
664
|
+
const checkSpecific = comp => {
|
|
665
|
+
const res = comp.match(re[t.FULL]);
|
|
666
|
+
if (res) return comp;
|
|
667
|
+
};
|
|
668
|
+
const checkAllVersions = comp => {
|
|
669
|
+
if (comp === '*') return ['>=0.0.0-0', '>=0.0'];
|
|
670
|
+
const match = matchSemVer(comp, [['M', 1], ['m', 2], ['p', 3]]);
|
|
671
|
+
let r;
|
|
672
|
+
r = match(`^(${NUM})[.]([*])$`);
|
|
673
|
+
if (r()) return [`>=${r.M}.0 <${+r.M + 1}.0`];
|
|
674
|
+
r = match(`^(${NUM})[.]([*])[.](${NUM})$`);
|
|
675
|
+
if (r()) return [`>=${r.M}.0.0-0 <${+r.M + 1}.0.0-0`];
|
|
676
|
+
r = match(`^(${NUM})[.](${NUM})[.]([*])$`);
|
|
677
|
+
if (r()) return [`>=${r.M}.${r.m}.0-0 <${r.M}.${+r.m + 1}.0-0`];
|
|
678
|
+
};
|
|
679
|
+
const checkAllAboveVersions = comp => {
|
|
680
|
+
const match = matchSemVer(comp, [['M', 1], ['m', 2], ['p', 3]]);
|
|
681
|
+
let r;
|
|
682
|
+
r = match(`^(${NUM})[.](${NUM})[*]$`);
|
|
683
|
+
if (r()) return [`>=${r.M}.${r.m} <${+r.M + 1}.0`];
|
|
684
|
+
r = match(`^(${NUM})[.](${NUM})[*][.](${NUM})$`);
|
|
685
|
+
if (r()) return [`>=${r.M}.${r.m}.0-0 <${+r.M + 1}.0.0-0`];
|
|
686
|
+
r = match(`^(${NUM})[.](${NUM})[.](${NUM})[*]$`);
|
|
687
|
+
if (r()) return [`>=${r.M}.${r.m}.${r.p}-0 <${r.M}.${+r.m + 1}.0-0`];
|
|
688
|
+
};
|
|
689
|
+
const checkPossibleUnstable = comp => {
|
|
690
|
+
if (comp === '~') return `>=0.0.0-0`;
|
|
691
|
+
const match = matchSemVer(comp, [['M', 1], ['m', 2], ['p', 3]]);
|
|
692
|
+
let r;
|
|
693
|
+
r = match(`^(${NUM})[.]([~])$`);
|
|
694
|
+
if (r()) return `>=${r.M}.0 <${+r.M + 1}.0`;
|
|
695
|
+
r = match(`^(${NUM})[.]([~])[.](${NUM})$`);
|
|
696
|
+
if (r()) return `>=${r.M}.0.0-0 <${+r.M + 1}.0.0-0`;
|
|
697
|
+
r = match(`^(${NUM})[.](${NUM})[.]([~])$`);
|
|
698
|
+
if (r()) return `>=${r.M}.${r.m}.0-0 <${r.M}.${+r.m + 1}.0-0`;
|
|
699
|
+
};
|
|
700
|
+
const checkOnlyStable = comp => {
|
|
701
|
+
if (comp === '+') return `>=1.0.0`;
|
|
702
|
+
const match = matchSemVer(comp, [['M', 1], ['m', 2], ['p', 3]]);
|
|
703
|
+
let r;
|
|
704
|
+
r = match(`^(${NUM})[.]([+])(?:[.](${NUM}))?$`);
|
|
705
|
+
if (r()) return `>=${r.M}.0.0 <${+r.M + 1}.0.0`;
|
|
706
|
+
r = match(`^(${NUM})[.](${NUM})[.]([+])$`);
|
|
707
|
+
if (r()) return `>=${r.M}.${r.m}.0 <${r.M}.${+r.m + 1}.0`;
|
|
708
|
+
};
|
|
709
|
+
const checkLatestStable = comp => {
|
|
710
|
+
const match = matchSemVer(comp, [['M', 1], ['m', 2], ['p', 3]]);
|
|
711
|
+
let r;
|
|
712
|
+
r = match(`^(${NUM})[+][.](${NUM})[.](${NUM})$`);
|
|
713
|
+
if (r()) return `>=${r.M}.${r.m}.${r.p}`;
|
|
714
|
+
r = match(`^(${NUM})[.](${NUM})[+][.](${NUM})$`);
|
|
715
|
+
if (r()) return `>=${r.M}.${r.m}.${r.p} <${+r.M + 1}.0.0`;
|
|
716
|
+
r = match(`^(${NUM})[.](${NUM})[.](${NUM})[+]$`);
|
|
717
|
+
if (r()) return `>=${r.M}.${r.m}.${r.p} <${r.M}.${+r.m + 1}.0`;
|
|
718
|
+
};
|
|
719
|
+
const checkLatestUnStable = comp => {
|
|
720
|
+
const match = matchSemVer(comp, [['M', 1], ['m', 2], ['p', 3]]);
|
|
721
|
+
let r;
|
|
722
|
+
r = match(`^(${NUM})[~][.](${NUM})[.](${NUM})$`);
|
|
723
|
+
if (r()) return `>=${r.M}.${r.m}.${r.p}-0`;
|
|
724
|
+
r = match(`^(${NUM})[.](${NUM})[~][.](${NUM})$`);
|
|
725
|
+
if (r()) return `>=${r.M}.${r.m}.${r.p}-0 <${+r.M + 1}.0.0-0`;
|
|
726
|
+
r = match(`^(${NUM})[.](${NUM})[.](${NUM})[~]$`);
|
|
727
|
+
if (r()) return `>=${r.M}.${r.m}.${r.p}-0 <${r.M}.${+r.m + 1}.0-0`;
|
|
728
|
+
};
|
|
729
|
+
const testSet = (set, version) => {
|
|
730
|
+
for (let i = 0; i < set.length; i++) {
|
|
731
|
+
if (!set[i].test(version)) return false;
|
|
732
|
+
if (set[i].semver.isStable() && !version.isStable()) return false;
|
|
733
|
+
if (set[i].semver.is2Parts() && !version.is2Parts()) return false;
|
|
734
|
+
}
|
|
735
|
+
return true;
|
|
736
|
+
};
|
|
737
|
+
var Range$1 = range => new Range(range);
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Represents a matcher object used for version matching
|
|
741
|
+
*
|
|
742
|
+
* @function Matcher
|
|
743
|
+
* @tag matcher
|
|
744
|
+
* @param {string} - Version string or range to create a matcher for
|
|
745
|
+
* @throws {SemVerError} - Throws an error if the provided version or range is invalid
|
|
746
|
+
* @example
|
|
747
|
+
*
|
|
748
|
+
* expect(() => Matcher('wrong range')).toThrow()
|
|
749
|
+
* expect(Matcher('1.0').isMonoType()).toBeTruthy()
|
|
750
|
+
* expect(Matcher('1.0.1').isMonoType()).toBeTruthy()
|
|
751
|
+
* expect(Matcher('1.0.1').isResolved()).toBeTruthy()
|
|
752
|
+
* expect(Matcher('1~.2.0').isLatestType()).toBeTruthy()
|
|
753
|
+
* expect(() => Matcher('1.*')).toThrow()
|
|
754
|
+
*
|
|
755
|
+
*/
|
|
756
|
+
class Matcher {
|
|
757
|
+
constructor(value) {
|
|
758
|
+
this.raw = value;
|
|
759
|
+
this.range = Range$1(value);
|
|
760
|
+
if (this.range.type !== RANGE_TYPE.ONE && this.range.type !== RANGE_TYPE.LATEST) throw new SemVerError(`Wrong version for matcher ${value}`);
|
|
761
|
+
}
|
|
762
|
+
isMonoType() {
|
|
763
|
+
return this.range.type === RANGE_TYPE.ONE;
|
|
764
|
+
}
|
|
765
|
+
isResolved() {
|
|
766
|
+
return this.isMonoType();
|
|
767
|
+
}
|
|
768
|
+
isLatestType() {
|
|
769
|
+
return this.range.type === RANGE_TYPE.LATEST;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
var matcher = value => new Matcher(value);
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Represents a dependency between two artifacts
|
|
776
|
+
*
|
|
777
|
+
* @class Dependency
|
|
778
|
+
* @tag dependency
|
|
779
|
+
* @param {object} - The source artifact object containing a version property
|
|
780
|
+
* @param {string} - The version or version range of the target artifact
|
|
781
|
+
* @throws {SemVerError} Throws an error if the provided version or range is invalid or if dependency source or version is undefined
|
|
782
|
+
* @example
|
|
783
|
+
*
|
|
784
|
+
* //Should manage stable source
|
|
785
|
+
* const source = { version: '1.0.1' };
|
|
786
|
+
* Dependency(source, '2.3.0');
|
|
787
|
+
* Dependency(source, '2+.3.0');
|
|
788
|
+
* Dependency(source, '2.3+.0');
|
|
789
|
+
* const dep = Dependency(source, '2.3.0+');
|
|
790
|
+
* expect(dep.range.raw).toEqual(dep.raw);
|
|
791
|
+
* expect(() => Dependency(source, '2.3')).toThrow();
|
|
792
|
+
* expect(() => Dependency(source, '2.3.1-draft')).toThrow();
|
|
793
|
+
*
|
|
794
|
+
* //Should manage unstable source
|
|
795
|
+
* const source = { version: '1.0.1-draft' }
|
|
796
|
+
* Dependency(source, '2.3.0')
|
|
797
|
+
* let dep = Dependency(source, '2.3.0+')
|
|
798
|
+
* expect(dep.range.raw).toEqual('2.3.0~')
|
|
799
|
+
* dep = Dependency({ version: '1.0' }, '2+.3.0')
|
|
800
|
+
* expect(dep.range.raw).toEqual('2~.3.0')
|
|
801
|
+
*
|
|
802
|
+
*/
|
|
803
|
+
class Dependency {
|
|
804
|
+
constructor(source, value) {
|
|
805
|
+
if (!value) throw new SemVerError(`Dependency version must be defined`);
|
|
806
|
+
if (!source?.version) throw new SemVerError(`Dependency source cannot be undefined`);
|
|
807
|
+
this.raw = value;
|
|
808
|
+
this.source = source;
|
|
809
|
+
this.range = Range$1(value);
|
|
810
|
+
const sVersion = SemVer$1(source.version);
|
|
811
|
+
if (!this.range.isResolved()) {
|
|
812
|
+
if (this.range.subType !== RANGE_SUB_TYPE.LATEST_STABLE) throw new SemVerError(`Wrong dependency ${value}`);
|
|
813
|
+
if (!sVersion.isStable()) {
|
|
814
|
+
this.range = Range$1(value.replace('+', '~'));
|
|
815
|
+
}
|
|
816
|
+
} else {
|
|
817
|
+
const tVersion = SemVer$1(value);
|
|
818
|
+
if (sVersion.isStable() && !tVersion.isStable()) throw new SemVerError(`Wrong dependency: Semantically versioned artefacts MUST only reference another semantically versioned artefacts`);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
isResolved() {
|
|
822
|
+
return this.range.type === RANGE_TYPE.ONE;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
var dependency = (source, value) => new Dependency(source, value);
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Checks if a dependency is valid
|
|
829
|
+
*
|
|
830
|
+
* @function isValidDependency
|
|
831
|
+
* @tag dependency
|
|
832
|
+
* @param {Object} - Source artifact object containing a version property
|
|
833
|
+
* @param {string} - Version or version range of the target artifact
|
|
834
|
+
* @return {boolean} - Returns true if the dependency is valid, otherwise false
|
|
835
|
+
* @example
|
|
836
|
+
*
|
|
837
|
+
* const source = { version: '1.0.1' };
|
|
838
|
+
* isValidDependency(source, '2.3-'); // false
|
|
839
|
+
* isValidDependency(source, '2.3+.1'); // true
|
|
840
|
+
* isValidDependency(source, '2.3.1-draft'); // false
|
|
841
|
+
* isValidDependency({ version: '1.2.1' }, '2.3'); // false
|
|
842
|
+
* isValidDependency({ version: '1.2' }, '2.3.1'); // true
|
|
843
|
+
* isValidDependency({ version: '1.2.1' }, '2.3.1-draft'); // false
|
|
844
|
+
*/
|
|
845
|
+
|
|
846
|
+
const isValidDependency = (source, targetVersion) => {
|
|
847
|
+
try {
|
|
848
|
+
new Dependency(source, targetVersion);
|
|
849
|
+
return true;
|
|
850
|
+
} catch (err) {
|
|
851
|
+
return false;
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
export { Comparator$1 as Comparator, dependency as Dependency, matcher as Matcher, RANGE_TYPE, Range$1 as Range, SemVer$1 as SemVer, SemVerError, isValidDependency };
|
|
856
|
+
//# sourceMappingURL=index.esm.js.map
|