@verdaccio/ui-theme 3.1.0 → 6.0.0-6-next.11
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/.babelrc +33 -0
- package/.eslintrc +115 -0
- package/.stylelintrc +40 -0
- package/CHANGELOG.md +152 -554
- package/LICENSE +1 -1
- package/README.md +22 -95
- package/config/env.js +9 -0
- package/jest/api/packages.json +42 -0
- package/jest/identity.js +29 -0
- package/jest/jest.config.js +39 -0
- package/jest/jestEnvironment.js +1 -0
- package/jest/server-handlers.ts +9 -0
- package/jest/server.ts +6 -0
- package/jest/setup-env.ts +15 -0
- package/jest/setup.ts +31 -0
- package/jest/unit/components/__mocks__/api.ts +47 -0
- package/jest/unit/components/__mocks__/token.ts +31 -0
- package/jest/unit/components/store/login.ts +23 -0
- package/jest/unit/components/store/logo.ts +7 -0
- package/jest/unit/components/store/package.ts +174 -0
- package/jest/unit/components/store/packageMeta.ts +592 -0
- package/jest/unit/empty.ts +1 -0
- package/lib/constants.ts +9 -0
- package/package.json +153 -228
- package/src/App/App.test.tsx +123 -0
- package/src/App/App.tsx +54 -0
- package/src/App/AppError.tsx +38 -0
- package/src/App/AppRoute.tsx +63 -0
- package/src/App/Footer/Footer.test.tsx +20 -0
- package/src/App/Footer/Footer.tsx +111 -0
- package/src/App/Footer/__snapshots__/Footer.test.tsx.snap +456 -0
- package/src/App/Footer/index.ts +1 -0
- package/src/App/Footer/styles.ts +44 -0
- package/src/App/Header/Header.test.tsx +152 -0
- package/src/App/Header/Header.tsx +74 -0
- package/src/App/Header/HeaderGreetings.tsx +22 -0
- package/src/App/Header/HeaderInfoDialog.tsx +19 -0
- package/src/App/Header/HeaderLeft.tsx +31 -0
- package/src/App/Header/HeaderMenu.tsx +65 -0
- package/src/App/Header/HeaderRight.tsx +118 -0
- package/src/App/Header/HeaderToolTip.tsx +19 -0
- package/src/App/Header/HeaderToolTipIcon.tsx +75 -0
- package/src/App/Header/LanguageSwitch.tsx +125 -0
- package/src/App/Header/LoginDialog/LoginDialog.test.tsx +112 -0
- package/src/App/Header/LoginDialog/LoginDialog.tsx +81 -0
- package/src/App/Header/LoginDialog/LoginDialogCloseButton.tsx +32 -0
- package/src/App/Header/LoginDialog/LoginDialogForm.tsx +97 -0
- package/src/App/Header/LoginDialog/LoginDialogFormError.tsx +43 -0
- package/src/App/Header/LoginDialog/LoginDialogHeader.tsx +48 -0
- package/src/App/Header/LoginDialog/__snapshots__/LoginDialog.test.tsx.snap +3 -0
- package/src/App/Header/LoginDialog/index.ts +1 -0
- package/src/App/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +27 -0
- package/src/App/Header/RegistryInfoContent/RegistryInfoContent.tsx +155 -0
- package/src/App/Header/RegistryInfoContent/index.ts +1 -0
- package/src/App/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +30 -0
- package/src/App/Header/RegistryInfoDialog/index.ts +1 -0
- package/src/App/Header/RegistryInfoDialog/styles.ts +16 -0
- package/src/App/Header/RegistryInfoDialog/types.ts +7 -0
- package/src/App/Header/Search/Search.test.tsx +168 -0
- package/src/App/Header/Search/Search.tsx +127 -0
- package/src/App/Header/Search/SearchAdornment.tsx +18 -0
- package/src/App/Header/Search/__snapshots__/Search.test.tsx.snap +101 -0
- package/src/App/Header/Search/index.ts +1 -0
- package/src/App/Header/index.ts +1 -0
- package/src/App/Header/styles.ts +89 -0
- package/src/App/index.ts +1 -0
- package/src/App/utils/loadable.tsx +10 -0
- package/src/components/.eslintrc +7 -0
- package/src/components/ActionBar/ActionBar.test.tsx +91 -0
- package/src/components/ActionBar/ActionBar.tsx +45 -0
- package/src/components/ActionBar/ActionBarAction.tsx +75 -0
- package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +122 -0
- package/src/components/ActionBar/index.ts +1 -0
- package/src/components/AppBar.tsx +10 -0
- package/src/components/Author/Author.test.tsx +75 -0
- package/src/components/Author/Author.tsx +47 -0
- package/src/components/Author/__snapshots__/Author.test.tsx.snap +353 -0
- package/src/components/Author/index.ts +1 -0
- package/src/components/Author/styles.ts +23 -0
- package/src/components/AutoComplete/AutoComplete.tsx +179 -0
- package/src/components/AutoComplete/AutoCompleteV2.tsx +296 -0
- package/src/components/AutoComplete/index.ts +1 -0
- package/src/components/AutoComplete/styles.tsx +58 -0
- package/src/components/AutoComplete/useAutoComplete.tsx +61 -0
- package/src/components/Avatar.tsx +3 -0
- package/src/components/Box.tsx +8 -0
- package/src/components/Button.tsx +10 -0
- package/src/components/Card.tsx +10 -0
- package/src/components/CardActions.tsx +13 -0
- package/src/components/CardContent.tsx +10 -0
- package/src/components/Chip.tsx +10 -0
- package/src/components/CircularProgress.tsx +15 -0
- package/src/components/CopyToClipBoard.tsx +45 -0
- package/src/components/Dialog.tsx +10 -0
- package/src/components/DialogActions.tsx +16 -0
- package/src/components/DialogContent.tsx +16 -0
- package/src/components/DialogTitle.tsx +10 -0
- package/src/components/Divider.tsx +10 -0
- package/src/components/FloatingActionButton.tsx +12 -0
- package/src/components/FormControl.tsx +10 -0
- package/src/components/FormHelperText.tsx +16 -0
- package/src/components/Grid.tsx +10 -0
- package/src/components/Heading.tsx +15 -0
- package/src/components/IconButton.tsx +10 -0
- package/src/components/Icons/.eslintrc +5 -0
- package/src/components/Icons/Earth.tsx +36 -0
- package/src/components/Icons/FileBinary.tsx +20 -0
- package/src/components/Icons/Law.tsx +20 -0
- package/src/components/Icons/License.tsx +18 -0
- package/src/components/Icons/Time.tsx +19 -0
- package/src/components/Icons/Version.tsx +20 -0
- package/src/components/Icons/index.ts +5 -0
- package/src/components/Input.tsx +10 -0
- package/src/components/InputAdornment/InputAdornment.tsx +16 -0
- package/src/components/InputAdornment/index.ts +1 -0
- package/src/components/InputLabel.tsx +10 -0
- package/src/components/Label/Label.test.tsx +15 -0
- package/src/components/Label/Label.tsx +35 -0
- package/src/components/Label/__snapshots__/Label.test.tsx.snap +14 -0
- package/src/components/Label/index.ts +1 -0
- package/src/components/Link.tsx +39 -0
- package/src/components/List.tsx +10 -0
- package/src/components/ListItem.tsx +23 -0
- package/src/components/ListItemText.tsx +16 -0
- package/src/components/Loading/Loading.test.tsx +12 -0
- package/src/components/Loading/Loading.tsx +17 -0
- package/src/components/Loading/Spinner/Spinner.test.tsx +14 -0
- package/src/components/Loading/Spinner/Spinner.tsx +35 -0
- package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +148 -0
- package/src/components/Loading/Spinner/index.tsx +1 -0
- package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +86 -0
- package/src/components/Loading/index.ts +1 -0
- package/src/components/Loading/styles.ts +17 -0
- package/src/components/Logo/Logo.test.tsx +12 -0
- package/src/components/Logo/Logo.tsx +55 -0
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +19 -0
- package/src/components/Logo/img/logo-black-and-white.svg +1 -0
- package/src/components/Logo/img/logo.svg +1 -0
- package/src/components/Logo/index.ts +1 -0
- package/src/components/Menu.tsx +10 -0
- package/src/components/MenuItem.tsx +25 -0
- package/src/components/NotFound/NotFound.tsx +52 -0
- package/src/components/NotFound/Notfound.test.tsx +37 -0
- package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +44 -0
- package/src/components/NotFound/img/package.svg +1 -0
- package/src/components/NotFound/index.ts +1 -0
- package/src/components/NotFound/styles.ts +40 -0
- package/src/components/Paper.tsx +10 -0
- package/src/components/SnackbarContent.tsx +15 -0
- package/src/components/SvgIcon.tsx +38 -0
- package/src/components/Tab.tsx +10 -0
- package/src/components/Tabs.tsx +14 -0
- package/src/components/Text/Text.tsx +17 -0
- package/src/components/Text/TextConfig.ts +7 -0
- package/src/components/Text/index.ts +2 -0
- package/src/components/TextField/TextField.test.tsx +16 -0
- package/src/components/TextField/TextField.tsx +23 -0
- package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +19 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/Toolbar.tsx +10 -0
- package/src/components/Tooltip.tsx +25 -0
- package/src/design-tokens/ResetStyles.tsx +44 -0
- package/src/design-tokens/StyleBaseline.tsx +14 -0
- package/src/design-tokens/ThemeContext.ts +13 -0
- package/src/design-tokens/ThemeProvider.tsx +44 -0
- package/src/design-tokens/emotion.ts +5 -0
- package/src/design-tokens/load-dayjs-locale.ts +98 -0
- package/src/design-tokens/theme.ts +159 -0
- package/src/design-tokens/useLocalStorage.ts +40 -0
- package/src/design-tokens/useOnClickOutside.ts +28 -0
- package/src/design-tokens/useTheme.ts +7 -0
- package/src/i18n/ABOUT_TRANSLATIONS.md +13 -0
- package/src/i18n/config.ts +52 -0
- package/src/i18n/crowdin/ui.json +170 -0
- package/src/i18n/deprecated_translations_dont_use/cs-CZ.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/de-DE.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/en-US.json +170 -0
- package/src/i18n/deprecated_translations_dont_use/es-ES.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/fr-FR.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/ja-JP.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/km-KH.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/pt-BR.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/ru-RU.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/tr-TR.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/uk-UA.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/zh-CN.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/zh-TW.json +165 -0
- package/src/i18n/enabledLanguages.ts +35 -0
- package/src/index.tsx +36 -0
- package/src/lib/constants.ts +9 -0
- package/src/pages/Version/DetailContainer/Dependencies/Dependencies.test.tsx +93 -0
- package/src/pages/Version/DetailContainer/Dependencies/Dependencies.tsx +100 -0
- package/src/pages/Version/DetailContainer/Dependencies/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Dependencies/styles.ts +26 -0
- package/src/pages/Version/DetailContainer/Dependencies/types.ts +7 -0
- package/src/pages/Version/DetailContainer/Deprecated/Deprecated.test.tsx +34 -0
- package/src/pages/Version/DetailContainer/Deprecated/Deprecated.tsx +31 -0
- package/src/pages/Version/DetailContainer/Deprecated/index.ts +1 -0
- package/src/pages/Version/DetailContainer/DetailContainer.test.tsx +13 -0
- package/src/pages/Version/DetailContainer/DetailContainer.tsx +37 -0
- package/src/pages/Version/DetailContainer/DetailContainerContent.tsx +41 -0
- package/src/pages/Version/DetailContainer/DetailContainerContentReadme.tsx +19 -0
- package/src/pages/Version/DetailContainer/DetailContainerTabs.tsx +36 -0
- package/src/pages/Version/DetailContainer/NoItems/NoItems.tsx +16 -0
- package/src/pages/Version/DetailContainer/NoItems/Noitems.test.tsx +16 -0
- package/src/pages/Version/DetailContainer/NoItems/__snapshots__/Noitems.test.tsx.snap +9 -0
- package/src/pages/Version/DetailContainer/NoItems/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Readme/Readme.spec.tsx +19 -0
- package/src/pages/Version/DetailContainer/Readme/Readme.tsx +22 -0
- package/src/pages/Version/DetailContainer/Readme/__snapshots__/Readme.spec.tsx.snap +94 -0
- package/src/pages/Version/DetailContainer/Readme/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Readme/types.ts +3 -0
- package/src/pages/Version/DetailContainer/UpLinks/UpLinks.test.tsx +58 -0
- package/src/pages/Version/DetailContainer/UpLinks/UpLinks.tsx +45 -0
- package/src/pages/Version/DetailContainer/UpLinks/__snapshots__/UpLinks.test.tsx.snap +247 -0
- package/src/pages/Version/DetailContainer/UpLinks/index.ts +1 -0
- package/src/pages/Version/DetailContainer/UpLinks/styles.ts +24 -0
- package/src/pages/Version/DetailContainer/Versions/Versions.test.tsx +60 -0
- package/src/pages/Version/DetailContainer/Versions/Versions.tsx +41 -0
- package/src/pages/Version/DetailContainer/Versions/VersionsHistoryList.tsx +40 -0
- package/src/pages/Version/DetailContainer/Versions/VersionsTagList.tsx +28 -0
- package/src/pages/Version/DetailContainer/Versions/__partials__/data.json +5984 -0
- package/src/pages/Version/DetailContainer/Versions/__snapshots__/Versions.test.tsx.snap +3 -0
- package/src/pages/Version/DetailContainer/Versions/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Versions/styles.ts +30 -0
- package/src/pages/Version/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap +103 -0
- package/src/pages/Version/DetailContainer/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/DetailSidebar.tsx +55 -0
- package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.test.tsx +111 -0
- package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.tsx +53 -0
- package/src/pages/Version/DetailSidebar/DetailSidebarTitle.tsx +40 -0
- package/src/pages/Version/DetailSidebar/Developers/Developers.test.tsx +117 -0
- package/src/pages/Version/DetailSidebar/Developers/Developers.tsx +90 -0
- package/src/pages/Version/DetailSidebar/Developers/DevelopersTitle.tsx +32 -0
- package/src/pages/Version/DetailSidebar/Developers/__snapshots__/Developers.test.tsx.snap +380 -0
- package/src/pages/Version/DetailSidebar/Developers/get-unique-developer-values.ts +16 -0
- package/src/pages/Version/DetailSidebar/Developers/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Developers/styles.ts +31 -0
- package/src/pages/Version/DetailSidebar/Dist/Dist.test.tsx +78 -0
- package/src/pages/Version/DetailSidebar/Dist/Dist.tsx +49 -0
- package/src/pages/Version/DetailSidebar/Dist/__snapshots__/Dist.test.tsx.snap +602 -0
- package/src/pages/Version/DetailSidebar/Dist/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Dist/styles.ts +27 -0
- package/src/pages/Version/DetailSidebar/Engines/Engines.test.tsx +71 -0
- package/src/pages/Version/DetailSidebar/Engines/Engines.tsx +58 -0
- package/src/pages/Version/DetailSidebar/Engines/img/node.png +0 -0
- package/src/pages/Version/DetailSidebar/Engines/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Engines/styles.ts +14 -0
- package/src/pages/Version/DetailSidebar/Install/Install.test.tsx +64 -0
- package/src/pages/Version/DetailSidebar/Install/Install.tsx +52 -0
- package/src/pages/Version/DetailSidebar/Install/InstallListItem.tsx +97 -0
- package/src/pages/Version/DetailSidebar/Install/__partials__/data.json +5984 -0
- package/src/pages/Version/DetailSidebar/Install/img/npm.svg +15 -0
- package/src/pages/Version/DetailSidebar/Install/img/pnpm.svg +1 -0
- package/src/pages/Version/DetailSidebar/Install/img/yarn.svg +1 -0
- package/src/pages/Version/DetailSidebar/Install/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Repository/Repository.test.tsx +78 -0
- package/src/pages/Version/DetailSidebar/Repository/Repository.tsx +93 -0
- package/src/pages/Version/DetailSidebar/Repository/__partials__/data.json +5984 -0
- package/src/pages/Version/DetailSidebar/Repository/__snapshots__/Repository.test.tsx.snap +3 -0
- package/src/pages/Version/DetailSidebar/Repository/img/git.png +0 -0
- package/src/pages/Version/DetailSidebar/Repository/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/index.ts +1 -0
- package/src/pages/Version/Version.test.tsx +68 -0
- package/src/pages/Version/Version.tsx +41 -0
- package/src/pages/Version/VersionContextProvider.tsx +43 -0
- package/src/pages/Version/VersionLayout.tsx +20 -0
- package/src/pages/Version/__partials__/data.json +5984 -0
- package/src/pages/Version/context.ts +10 -0
- package/src/pages/Version/get-route-package-name.ts +9 -0
- package/src/pages/Version/index.ts +4 -0
- package/src/pages/Version/version-config.ts +19 -0
- package/src/pages/home/Home.tsx +25 -0
- package/src/pages/home/PackageList/Help/Help.test.tsx +12 -0
- package/src/pages/home/PackageList/Help/Help.tsx +56 -0
- package/src/pages/home/PackageList/Help/__snapshots__/Help.test.tsx.snap +159 -0
- package/src/pages/home/PackageList/Help/index.ts +1 -0
- package/src/pages/home/PackageList/Help/styles.ts +13 -0
- package/src/pages/home/PackageList/Package/Package.test.tsx +56 -0
- package/src/pages/home/PackageList/Package/Package.tsx +253 -0
- package/src/pages/home/PackageList/Package/Tag/Tag.test.tsx +16 -0
- package/src/pages/home/PackageList/Package/Tag/Tag.tsx +11 -0
- package/src/pages/home/PackageList/Package/Tag/__snapshots__/Tag.test.tsx.snap +21 -0
- package/src/pages/home/PackageList/Package/Tag/index.ts +1 -0
- package/src/pages/home/PackageList/Package/Tag/styles.ts +11 -0
- package/src/pages/home/PackageList/Package/index.ts +1 -0
- package/src/pages/home/PackageList/Package/styles.ts +112 -0
- package/src/pages/home/PackageList/PackageList.tsx +81 -0
- package/src/pages/home/PackageList/Packagelist.test.tsx +60 -0
- package/src/pages/home/PackageList/index.ts +1 -0
- package/src/pages/home/index.ts +1 -0
- package/src/providers/API/api.test.ts +136 -0
- package/src/providers/API/api.ts +73 -0
- package/src/providers/API/storage.ts +12 -0
- package/src/providers/config/AppConfigurationProvider.tsx +57 -0
- package/src/providers/config/index.ts +1 -0
- package/src/store/index.ts +1 -0
- package/src/store/models/configuration.ts +42 -0
- package/src/store/models/download.ts +31 -0
- package/src/store/models/index.ts +17 -0
- package/src/store/models/login.ts +90 -0
- package/src/store/models/manifest.ts +91 -0
- package/src/store/models/packages.ts +36 -0
- package/src/store/models/search.ts +81 -0
- package/src/store/store.ts +15 -0
- package/src/template/favicon.ico +0 -0
- package/src/template/index.html +21 -0
- package/src/utils/.eslintrc +5 -0
- package/src/utils/cli-utils.test.ts +66 -0
- package/src/utils/cli-utils.ts +38 -0
- package/src/utils/colors.ts +1 -0
- package/src/utils/constants.ts +5 -0
- package/src/utils/file-size.ts +13 -0
- package/src/utils/i18nForTests.ts +25 -0
- package/src/utils/login.test.ts +71 -0
- package/src/utils/login.ts +44 -0
- package/src/utils/package.test.ts +101 -0
- package/src/utils/package.ts +105 -0
- package/src/utils/sec-utils.ts +15 -0
- package/src/utils/storage.ts +12 -0
- package/src/utils/test-react-testing-library.tsx +38 -0
- package/src/utils/url.test.ts +28 -0
- package/src/utils/url.ts +58 -0
- package/src/utils/windows.ts +3 -0
- package/static/favicon.ico +0 -0
- package/static/index.html +21 -0
- package/static/main.c57129036f278d0c7acf.js +2 -0
- package/static/main.c57129036f278d0c7acf.js.LICENSE.txt +1456 -0
- package/static/manifest.json +5 -17
- package/static/runtime.c57129036f278d0c7acf.js +2 -0
- package/static/{runtime.f6e570dfe38870a45bf5.js.LICENSE.txt → runtime.c57129036f278d0c7acf.js.LICENSE.txt} +2 -2
- package/static/vendors.c57129036f278d0c7acf.js +2 -0
- package/static/vendors.c57129036f278d0c7acf.js.LICENSE.txt +2932 -0
- package/tools/.eslintrc +14 -0
- package/tools/_verdaccio.config.yaml +59 -0
- package/tools/dev.server.js +48 -0
- package/tools/getPackageJson.js +25 -0
- package/tools/verdaccio.js +31 -0
- package/tools/webpack.config.js +82 -0
- package/tools/webpack.dev.config.babel.js +60 -0
- package/tools/webpack.prod.config.babel.js +81 -0
- package/tsconfig.build.json +24 -0
- package/tsconfig.json +27 -0
- package/types/custom.d.ts +9 -0
- package/types/files.d.ts +9 -0
- package/types/index.ts +12 -0
- package/types/jest-dom.d.ts +1 -0
- package/types/packageMeta.ts +82 -0
- package/static/238.f6e570dfe38870a45bf5.js +0 -2
- package/static/238.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/718.f6e570dfe38870a45bf5.js +0 -2
- package/static/718.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/73.f6e570dfe38870a45bf5.js +0 -2
- package/static/73.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Dependencies.f6e570dfe38870a45bf5.js +0 -2
- package/static/Dependencies.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Dist.f6e570dfe38870a45bf5.js +0 -2
- package/static/Dist.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Engines.f6e570dfe38870a45bf5.js +0 -2
- package/static/Engines.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Home.f6e570dfe38870a45bf5.js +0 -2
- package/static/Home.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Install.f6e570dfe38870a45bf5.js +0 -2
- package/static/Install.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/NotFound.f6e570dfe38870a45bf5.js +0 -2
- package/static/NotFound.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Provider.f6e570dfe38870a45bf5.js +0 -2
- package/static/Provider.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Repository.f6e570dfe38870a45bf5.js +0 -2
- package/static/Repository.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/UpLinks.f6e570dfe38870a45bf5.js +0 -2
- package/static/UpLinks.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Version.f6e570dfe38870a45bf5.js +0 -2
- package/static/Version.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Versions.f6e570dfe38870a45bf5.js +0 -2
- package/static/Versions.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/main.f6e570dfe38870a45bf5.js +0 -2
- package/static/main.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/runtime.f6e570dfe38870a45bf5.js +0 -2
- package/static/vendors.f6e570dfe38870a45bf5.js +0 -2
- package/static/vendors.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -98
package/tools/.eslintrc
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
web:
|
|
2
|
+
title: Verdaccio Local Dev
|
|
3
|
+
sort_packages: asc
|
|
4
|
+
primary_color: #CCC
|
|
5
|
+
login: true
|
|
6
|
+
pkgManagers:
|
|
7
|
+
- npm
|
|
8
|
+
- yarn
|
|
9
|
+
|
|
10
|
+
plugins: ../
|
|
11
|
+
|
|
12
|
+
auth:
|
|
13
|
+
auth-memory:
|
|
14
|
+
users:
|
|
15
|
+
foo:
|
|
16
|
+
name: test
|
|
17
|
+
password: test #pragma: allowlist secret
|
|
18
|
+
bar:
|
|
19
|
+
name: bar
|
|
20
|
+
password: test #pragma: allowlist secret
|
|
21
|
+
security:
|
|
22
|
+
api:
|
|
23
|
+
jwt:
|
|
24
|
+
sign:
|
|
25
|
+
expiresIn: 120d
|
|
26
|
+
notBefore: 1
|
|
27
|
+
web:
|
|
28
|
+
sign:
|
|
29
|
+
expiresIn: 100d
|
|
30
|
+
notBefore: 0
|
|
31
|
+
|
|
32
|
+
uplinks:
|
|
33
|
+
ver:
|
|
34
|
+
url: https://registry.verdaccio.org/
|
|
35
|
+
|
|
36
|
+
packages:
|
|
37
|
+
'@*/*':
|
|
38
|
+
access: $all
|
|
39
|
+
publish: $authenticated
|
|
40
|
+
unpublish: $authenticated
|
|
41
|
+
'vue':
|
|
42
|
+
access: foo
|
|
43
|
+
publish: foo
|
|
44
|
+
unpublish: foo
|
|
45
|
+
'jquery':
|
|
46
|
+
access: $all
|
|
47
|
+
publish: bar
|
|
48
|
+
unpublish: bar
|
|
49
|
+
'**':
|
|
50
|
+
access: $all
|
|
51
|
+
publish: $authenticated
|
|
52
|
+
unpublish: $authenticated
|
|
53
|
+
proxy: ver
|
|
54
|
+
middlewares:
|
|
55
|
+
audit:
|
|
56
|
+
enabled: true
|
|
57
|
+
|
|
58
|
+
logs:
|
|
59
|
+
- { type: stdout, format: pretty, level: trace }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import ora from 'ora';
|
|
2
|
+
import webpack from 'webpack';
|
|
3
|
+
import WebpackDevServer from 'webpack-dev-server';
|
|
4
|
+
|
|
5
|
+
import env from '../config/env';
|
|
6
|
+
|
|
7
|
+
import config from './webpack.dev.config.babel';
|
|
8
|
+
|
|
9
|
+
const compiler = webpack(config);
|
|
10
|
+
const spinner = ora('Compiler is running...').start();
|
|
11
|
+
const port = 4873;
|
|
12
|
+
compiler.hooks.done.tap('Verdaccio Dev Server', () => {
|
|
13
|
+
if (!global.rebuild) {
|
|
14
|
+
spinner.stop();
|
|
15
|
+
console.log(`Dev Server Listening at http://localhost:${port}/`);
|
|
16
|
+
global.rebuild = true;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
new WebpackDevServer(compiler, {
|
|
21
|
+
contentBase: env.DIST_PATH,
|
|
22
|
+
publicPath: config.output.publicPath,
|
|
23
|
+
hot: true,
|
|
24
|
+
historyApiFallback: {
|
|
25
|
+
disableDotRule: true,
|
|
26
|
+
},
|
|
27
|
+
quiet: true,
|
|
28
|
+
noInfo: false,
|
|
29
|
+
stats: {
|
|
30
|
+
assets: false,
|
|
31
|
+
colors: true,
|
|
32
|
+
version: true,
|
|
33
|
+
hash: true,
|
|
34
|
+
timings: true,
|
|
35
|
+
chunks: true,
|
|
36
|
+
chunkModules: false,
|
|
37
|
+
},
|
|
38
|
+
proxy: [
|
|
39
|
+
{
|
|
40
|
+
context: ['/-/verdaccio/**', '**/*.tgz'],
|
|
41
|
+
target: 'http://localhost:8000',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
}).listen(port, 'localhost', function (err) {
|
|
45
|
+
if (err) {
|
|
46
|
+
return console.log(err);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A module to get package informations from package.json
|
|
6
|
+
* @module getPackageJson
|
|
7
|
+
* @param {...string} keys from package.json if no arguments passed it returns package.json content as object
|
|
8
|
+
* @returns {object} with given keys or content of package.json as object
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Returns package info
|
|
13
|
+
*/
|
|
14
|
+
const getPackageJson = function (...args) {
|
|
15
|
+
const packageJSON = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')));
|
|
16
|
+
if (!args.length) {
|
|
17
|
+
return packageJSON;
|
|
18
|
+
}
|
|
19
|
+
return args.reduce((out, key) => {
|
|
20
|
+
out[key] = packageJSON[key];
|
|
21
|
+
return out;
|
|
22
|
+
}, {});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
module.exports = getPackageJson;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const yalm = require('js-yaml');
|
|
5
|
+
const startServer = require('verdaccio').default;
|
|
6
|
+
|
|
7
|
+
const storageLocation = path.join(__dirname, '../partials/storage');
|
|
8
|
+
const pluginsLocation = path.join(__dirname, '../partials/plugins');
|
|
9
|
+
const configJsonFormat = Object.assign(
|
|
10
|
+
{},
|
|
11
|
+
yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')),
|
|
12
|
+
{
|
|
13
|
+
storage: storageLocation,
|
|
14
|
+
plugins: pluginsLocation,
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const serverHandler = function (webServer, addr, pkgName, pkgVersion) {
|
|
19
|
+
webServer.listen(addr.port || addr.path, addr.host, () => {
|
|
20
|
+
console.log(`${pkgName}:${pkgVersion} running ${addr.proto}://${addr.host}:${addr.port}`);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
process.on('SIGTERM', () => {
|
|
24
|
+
webServer.close(() => {
|
|
25
|
+
console.log('verdaccio server has been shutdown');
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// https://verdaccio.org/docs/en/node-api
|
|
31
|
+
startServer(configJsonFormat, 8080, '', '1.0.0', 'verdaccio', serverHandler);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
2
|
+
|
|
3
|
+
const env = require('../config/env');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
entry: `${env.SRC_ROOT}/index.tsx`,
|
|
7
|
+
|
|
8
|
+
output: {
|
|
9
|
+
path: `${env.APP_ROOT}/static/`,
|
|
10
|
+
filename: '[name].[fullhash].js',
|
|
11
|
+
publicPath: '-/static/',
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
resolve: {
|
|
15
|
+
extensions: ['.wasm', '.mjs', '.js', '.jsx', '.ts', '.tsx'],
|
|
16
|
+
modules: ['node_modules'],
|
|
17
|
+
alias: {
|
|
18
|
+
'verdaccio-ui/components': `${env.SRC_ROOT}/components`,
|
|
19
|
+
'verdaccio-ui/design-tokens': `${env.SRC_ROOT}/design-tokens`,
|
|
20
|
+
'verdaccio-ui/utils': `${env.SRC_ROOT}/utils`,
|
|
21
|
+
'verdaccio-ui/providers': `${env.SRC_ROOT}/providers`,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
plugins: [
|
|
26
|
+
new StyleLintPlugin({
|
|
27
|
+
files: ['src/**/styles.ts'],
|
|
28
|
+
failOnError: false,
|
|
29
|
+
emitErrors: true,
|
|
30
|
+
}),
|
|
31
|
+
],
|
|
32
|
+
|
|
33
|
+
optimization: {
|
|
34
|
+
runtimeChunk: {
|
|
35
|
+
name: 'runtime',
|
|
36
|
+
},
|
|
37
|
+
splitChunks: {
|
|
38
|
+
chunks: 'all',
|
|
39
|
+
cacheGroups: {
|
|
40
|
+
commons: {
|
|
41
|
+
test: /[\\/]node_modules[\\/]/,
|
|
42
|
+
name: 'vendors',
|
|
43
|
+
chunks: 'initial',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
module: {
|
|
50
|
+
rules: [
|
|
51
|
+
{
|
|
52
|
+
test: /\.jsx?$/,
|
|
53
|
+
exclude: /node_modules/,
|
|
54
|
+
use: 'babel-loader',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
test: /\.m?js/,
|
|
58
|
+
resolve: {
|
|
59
|
+
fullySpecified: false,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
test: /\.(jpe?g|png|gif|svg)$/,
|
|
64
|
+
type: 'asset/inline',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
test: /\.css$/i,
|
|
68
|
+
use: ['style-loader', 'css-loader'],
|
|
69
|
+
},
|
|
70
|
+
/* Typescript loader */
|
|
71
|
+
{
|
|
72
|
+
test: /\.tsx?$/,
|
|
73
|
+
use: 'babel-loader',
|
|
74
|
+
exclude: /node_modules/,
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
stats: {
|
|
80
|
+
children: false,
|
|
81
|
+
},
|
|
82
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
|
|
3
|
+
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
|
|
4
|
+
import HTMLWebpackPlugin from 'html-webpack-plugin';
|
|
5
|
+
import yalm from 'js-yaml';
|
|
6
|
+
import StyleLintPlugin from 'stylelint-webpack-plugin';
|
|
7
|
+
import webpack from 'webpack';
|
|
8
|
+
|
|
9
|
+
import env from '../config/env';
|
|
10
|
+
|
|
11
|
+
import getPackageJson from './getPackageJson';
|
|
12
|
+
import baseConfig from './webpack.config';
|
|
13
|
+
|
|
14
|
+
const configJsonFormat = yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
|
|
15
|
+
export default {
|
|
16
|
+
...baseConfig,
|
|
17
|
+
mode: 'development',
|
|
18
|
+
entry: {
|
|
19
|
+
main: [
|
|
20
|
+
'whatwg-fetch',
|
|
21
|
+
'react-hot-loader/patch',
|
|
22
|
+
'webpack-dev-server/client?http://localhost:4873',
|
|
23
|
+
'webpack/hot/only-dev-server',
|
|
24
|
+
`${env.SRC_ROOT}/index.tsx`,
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
output: {
|
|
29
|
+
...baseConfig.output,
|
|
30
|
+
publicPath: '/',
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
devtool: 'inline-cheap-module-source-map',
|
|
34
|
+
|
|
35
|
+
plugins: [
|
|
36
|
+
new webpack.DefinePlugin({
|
|
37
|
+
__DEBUG__: true,
|
|
38
|
+
__APP_VERSION__: `"${getPackageJson('version')}"`,
|
|
39
|
+
}),
|
|
40
|
+
new HTMLWebpackPlugin({
|
|
41
|
+
__UI_OPTIONS: JSON.stringify({
|
|
42
|
+
...configJsonFormat.web,
|
|
43
|
+
filename: 'index.html',
|
|
44
|
+
verdaccioURL: '//localhost:4873',
|
|
45
|
+
base: new URL('/', 'http://localhost:4873'),
|
|
46
|
+
}),
|
|
47
|
+
template: `${env.SRC_ROOT}/template/index.html`,
|
|
48
|
+
debug: true,
|
|
49
|
+
inject: true,
|
|
50
|
+
}),
|
|
51
|
+
new webpack.HotModuleReplacementPlugin(),
|
|
52
|
+
new webpack.NoEmitOnErrorsPlugin(),
|
|
53
|
+
new FriendlyErrorsPlugin(),
|
|
54
|
+
new StyleLintPlugin({
|
|
55
|
+
files: ['src/**/styles.ts'],
|
|
56
|
+
failOnError: false,
|
|
57
|
+
emitErrors: false,
|
|
58
|
+
}),
|
|
59
|
+
],
|
|
60
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const HTMLWebpackPlugin = require('html-webpack-plugin');
|
|
2
|
+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
3
|
+
// const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
|
4
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
5
|
+
const webpack = require('webpack');
|
|
6
|
+
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
|
7
|
+
const { merge } = require('webpack-merge');
|
|
8
|
+
|
|
9
|
+
const env = require('../config/env');
|
|
10
|
+
|
|
11
|
+
const getPackageJson = require('./getPackageJson');
|
|
12
|
+
const baseConfig = require('./webpack.config');
|
|
13
|
+
|
|
14
|
+
const { version, name, license } = getPackageJson('version', 'name', 'license');
|
|
15
|
+
|
|
16
|
+
const banner = `
|
|
17
|
+
Name: [name]
|
|
18
|
+
Generated on: ${Date.now()}
|
|
19
|
+
Package: ${name}
|
|
20
|
+
Version: v${version}
|
|
21
|
+
License: ${license}
|
|
22
|
+
https://www.verdaccio.org
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
const prodConf = {
|
|
26
|
+
mode: 'development',
|
|
27
|
+
devtool: 'inline-cheap-module-source-map',
|
|
28
|
+
|
|
29
|
+
entry: {
|
|
30
|
+
main: ['whatwg-fetch', `${env.SRC_ROOT}/index.tsx`],
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
module: {
|
|
34
|
+
rules: [],
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
plugins: [
|
|
38
|
+
new webpack.DefinePlugin({
|
|
39
|
+
__DEBUG__: false,
|
|
40
|
+
'process.env.NODE_ENV': '"production"',
|
|
41
|
+
__APP_VERSION__: `"${version}"`,
|
|
42
|
+
}),
|
|
43
|
+
new MiniCssExtractPlugin({
|
|
44
|
+
// Options similar to the same options in webpackOptions.output
|
|
45
|
+
// both options are optional
|
|
46
|
+
filename: '[name].[contenthash].css',
|
|
47
|
+
chunkFilename: '[id].[contenthash].css',
|
|
48
|
+
}),
|
|
49
|
+
// FIXME: @deprecated remove
|
|
50
|
+
new HTMLWebpackPlugin({
|
|
51
|
+
title: 'ToReplaceByTitle',
|
|
52
|
+
__UI_OPTIONS: 'ToReplaceByVerdaccioUI',
|
|
53
|
+
scope: 'ToReplaceByScope',
|
|
54
|
+
basename: 'ToReplaceByPrefix',
|
|
55
|
+
logo: 'ToReplaceByLogo',
|
|
56
|
+
primary_color: 'ToReplaceByPrimaryColor',
|
|
57
|
+
filename: 'index.html',
|
|
58
|
+
favicon: `${env.SRC_ROOT}/template/favicon.ico`,
|
|
59
|
+
verdaccioURL: 'ToReplaceByVerdaccio',
|
|
60
|
+
version_app: 'ToReplaceByVersion',
|
|
61
|
+
template: `${env.SRC_ROOT}/template/index.html`,
|
|
62
|
+
debug: false,
|
|
63
|
+
inject: true,
|
|
64
|
+
}),
|
|
65
|
+
new WebpackManifestPlugin({
|
|
66
|
+
removeKeyHash: true,
|
|
67
|
+
}),
|
|
68
|
+
new webpack.BannerPlugin(banner),
|
|
69
|
+
],
|
|
70
|
+
optimization: {
|
|
71
|
+
minimize: true,
|
|
72
|
+
minimizer: [new TerserPlugin()],
|
|
73
|
+
},
|
|
74
|
+
performance: {
|
|
75
|
+
hints: 'warning',
|
|
76
|
+
maxEntrypointSize: 512000,
|
|
77
|
+
maxAssetSize: 512000,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
module.exports = merge(baseConfig, prodConf);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../tsconfig.base",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./build",
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"jsx": "react",
|
|
11
|
+
"allowJs": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"checkJs": false,
|
|
15
|
+
"baseUrl": ".",
|
|
16
|
+
"paths": {
|
|
17
|
+
"verdaccio-ui/components/*": ["src/components/*"],
|
|
18
|
+
"verdaccio-ui/design-tokens/*": ["src/design-tokens/*"],
|
|
19
|
+
"verdaccio-ui/utils/*": ["src/utils/*"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"include": ["src/**/*.ts", "types/*.d.ts", "i18n/**/*.json"],
|
|
23
|
+
"exclude": ["src/**/*.test.ts"]
|
|
24
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../tsconfig.reference.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"skipLibCheck": true,
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"jsx": "react",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"checkJs": false,
|
|
14
|
+
"baseUrl": ".",
|
|
15
|
+
"paths": {
|
|
16
|
+
"verdaccio-ui/components/*": ["src/components/*"],
|
|
17
|
+
"verdaccio-ui/design-tokens/*": ["src/design-tokens/*"],
|
|
18
|
+
"verdaccio-ui/utils/*": ["src/utils/*"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"include": ["src", "types/*.d.ts", "src/i18n/**/*.json", "jest/unit/components"],
|
|
22
|
+
"references": [
|
|
23
|
+
{
|
|
24
|
+
"path": "../../node-api"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
package/types/files.d.ts
ADDED
package/types/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TemplateUIOptions } from '@verdaccio/types';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
__VERDACCIO_BASENAME_UI_OPTIONS: TemplateUIOptions;
|
|
5
|
+
// FIXME: remove all these variables
|
|
6
|
+
VERDACCIO_PRIMARY_COLOR: string;
|
|
7
|
+
VERDACCIO_LOGO: string;
|
|
8
|
+
VERDACCIO_SCOPE: string;
|
|
9
|
+
VERDACCIO_VERSION: string;
|
|
10
|
+
VERDACCIO_API_URL: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export interface PackageMetaInterface {
|
|
2
|
+
versions?: Versions;
|
|
3
|
+
'dist-tags'?: DistTags;
|
|
4
|
+
time?: Time;
|
|
5
|
+
latest: {
|
|
6
|
+
author?: Author;
|
|
7
|
+
deprecated?: string;
|
|
8
|
+
name: string;
|
|
9
|
+
dist: {
|
|
10
|
+
fileCount: number;
|
|
11
|
+
unpackedSize: number;
|
|
12
|
+
tarball?: string;
|
|
13
|
+
};
|
|
14
|
+
engines?: {
|
|
15
|
+
node?: string;
|
|
16
|
+
npm?: string;
|
|
17
|
+
};
|
|
18
|
+
license?: Partial<LicenseInterface> | string;
|
|
19
|
+
version: string;
|
|
20
|
+
homepage?: string;
|
|
21
|
+
bugs?: {
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
repository?: {
|
|
25
|
+
type?: string;
|
|
26
|
+
url?: string;
|
|
27
|
+
};
|
|
28
|
+
description?: string;
|
|
29
|
+
funding?: Funding;
|
|
30
|
+
maintainers?: Developer[];
|
|
31
|
+
contributors?: Developer[];
|
|
32
|
+
};
|
|
33
|
+
_uplinks: Record<string, { fetched: number }>;
|
|
34
|
+
}
|
|
35
|
+
export interface Developer {
|
|
36
|
+
name: string;
|
|
37
|
+
email: string;
|
|
38
|
+
avatar: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface Funding {
|
|
42
|
+
type?: string;
|
|
43
|
+
url: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface LicenseInterface {
|
|
47
|
+
type: string;
|
|
48
|
+
url: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface DistTags {
|
|
52
|
+
[key: string]: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface Time {
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface Versions {
|
|
60
|
+
[key: string]: Version;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface Version {
|
|
64
|
+
name: string;
|
|
65
|
+
version: string;
|
|
66
|
+
author?: string | Author;
|
|
67
|
+
description?: string;
|
|
68
|
+
license?: string;
|
|
69
|
+
main?: string;
|
|
70
|
+
keywords?: string[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Author {
|
|
74
|
+
name?: string;
|
|
75
|
+
email?: string;
|
|
76
|
+
url?: string;
|
|
77
|
+
avatar?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface PackageDependencies {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
}
|