@modern-js/utils 2.19.1 → 2.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/cjs/cli/alias.js +3 -7
  3. package/dist/cjs/cli/constants/chainId.js +2 -0
  4. package/dist/cjs/cli/constants/index.js +2 -14
  5. package/dist/cjs/cli/ensure.js +2 -6
  6. package/dist/cjs/cli/get/data.js +3 -7
  7. package/dist/cjs/cli/get/index.js +5 -21
  8. package/dist/cjs/cli/index.js +24 -37
  9. package/dist/cjs/cli/is/index.js +6 -18
  10. package/dist/cjs/cli/is/project.js +2 -6
  11. package/dist/cjs/cli/logger.js +7 -23
  12. package/dist/cjs/cli/monorepo.js +3 -7
  13. package/dist/cjs/cli/path.js +4 -8
  14. package/dist/cjs/cli/pathSerializer.js +3 -7
  15. package/dist/cjs/cli/port.js +2 -6
  16. package/dist/cjs/cli/prettyInstructions.js +2 -6
  17. package/dist/cjs/cli/routes.js +2 -6
  18. package/dist/cjs/cli/runtimeExports.js +2 -6
  19. package/dist/cjs/cli/watch.js +2 -6
  20. package/dist/cjs/compiled.js +28 -71
  21. package/dist/cjs/index.js +4 -16
  22. package/dist/cjs/runtime/nestedRoutes.js +2 -41
  23. package/dist/cjs/runtime/remixRouter.js +2 -14
  24. package/dist/cjs/runtime/router.js +2 -15
  25. package/dist/cjs/runtime-browser/index.js +2 -14
  26. package/dist/cjs/runtime-node/router.js +6 -0
  27. package/dist/cjs/runtime-node/serialize.js +2 -6
  28. package/dist/cjs/runtime-node/storage.js +2 -41
  29. package/dist/compiled/better-ajv-errors/index.js +1 -1
  30. package/dist/compiled/webpack-dev-middleware/index.js +2 -2
  31. package/dist/esm/cli/constants/chainId.js +2 -0
  32. package/dist/esm/cli/index.js +0 -1
  33. package/dist/esm/cli/logger.js +1 -13
  34. package/dist/esm/runtime/router.js +1 -2
  35. package/dist/esm/runtime-node/router.js +1 -0
  36. package/dist/types/cli/constants/chainId.d.ts +2 -73
  37. package/dist/types/cli/constants/index.d.ts +0 -21
  38. package/dist/types/cli/index.d.ts +0 -1
  39. package/dist/types/cli/is/config.d.ts +0 -2
  40. package/dist/types/cli/is/project.d.ts +0 -2
  41. package/dist/types/cli/is/type.d.ts +0 -1
  42. package/dist/types/cli/logger.d.ts +0 -2
  43. package/dist/types/cli/path.d.ts +0 -2
  44. package/dist/types/cli/require.d.ts +0 -1
  45. package/dist/types/compiled.d.ts +0 -1
  46. package/dist/types/runtime/router.d.ts +1 -2
  47. package/dist/types/runtime-node/index.d.ts +0 -1
  48. package/dist/types/runtime-node/router.d.ts +1 -0
  49. package/dist/types/universal/constants.d.ts +0 -1
  50. package/package.json +38 -12
  51. package/dist/cjs/cli/generateMetaTags.js +0 -42
  52. package/dist/esm/cli/generateMetaTags.js +0 -34
  53. package/dist/types/cli/generateMetaTags.d.ts +0 -16
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright JS Foundation and other contributors.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file at
6
- * https://github.com/jantimon/html-webpack-plugin/blob/main/LICENSE
7
- *
8
- * Modified from https://github.com/jantimon/html-webpack-plugin/blob/2f5de7ab9e8bca60e9e200f2e4b4cfab90db28d4/index.js#L800
9
- */
10
- export type MetaAttributes = {
11
- [attributeName: string]: string | boolean;
12
- };
13
- export interface MetaOptions {
14
- [name: string]: string | false | MetaAttributes;
15
- }
16
- export declare const generateMetaTags: (metaOptions?: MetaOptions) => string;