@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.
- package/CHANGELOG.md +34 -0
- package/dist/cjs/cli/alias.js +3 -7
- package/dist/cjs/cli/constants/chainId.js +2 -0
- package/dist/cjs/cli/constants/index.js +2 -14
- package/dist/cjs/cli/ensure.js +2 -6
- package/dist/cjs/cli/get/data.js +3 -7
- package/dist/cjs/cli/get/index.js +5 -21
- package/dist/cjs/cli/index.js +24 -37
- package/dist/cjs/cli/is/index.js +6 -18
- package/dist/cjs/cli/is/project.js +2 -6
- package/dist/cjs/cli/logger.js +7 -23
- package/dist/cjs/cli/monorepo.js +3 -7
- package/dist/cjs/cli/path.js +4 -8
- package/dist/cjs/cli/pathSerializer.js +3 -7
- package/dist/cjs/cli/port.js +2 -6
- package/dist/cjs/cli/prettyInstructions.js +2 -6
- package/dist/cjs/cli/routes.js +2 -6
- package/dist/cjs/cli/runtimeExports.js +2 -6
- package/dist/cjs/cli/watch.js +2 -6
- package/dist/cjs/compiled.js +28 -71
- package/dist/cjs/index.js +4 -16
- package/dist/cjs/runtime/nestedRoutes.js +2 -41
- package/dist/cjs/runtime/remixRouter.js +2 -14
- package/dist/cjs/runtime/router.js +2 -15
- package/dist/cjs/runtime-browser/index.js +2 -14
- package/dist/cjs/runtime-node/router.js +6 -0
- package/dist/cjs/runtime-node/serialize.js +2 -6
- package/dist/cjs/runtime-node/storage.js +2 -41
- package/dist/compiled/better-ajv-errors/index.js +1 -1
- package/dist/compiled/webpack-dev-middleware/index.js +2 -2
- package/dist/esm/cli/constants/chainId.js +2 -0
- package/dist/esm/cli/index.js +0 -1
- package/dist/esm/cli/logger.js +1 -13
- package/dist/esm/runtime/router.js +1 -2
- package/dist/esm/runtime-node/router.js +1 -0
- package/dist/types/cli/constants/chainId.d.ts +2 -73
- package/dist/types/cli/constants/index.d.ts +0 -21
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/is/config.d.ts +0 -2
- package/dist/types/cli/is/project.d.ts +0 -2
- package/dist/types/cli/is/type.d.ts +0 -1
- package/dist/types/cli/logger.d.ts +0 -2
- package/dist/types/cli/path.d.ts +0 -2
- package/dist/types/cli/require.d.ts +0 -1
- package/dist/types/compiled.d.ts +0 -1
- package/dist/types/runtime/router.d.ts +1 -2
- package/dist/types/runtime-node/index.d.ts +0 -1
- package/dist/types/runtime-node/router.d.ts +1 -0
- package/dist/types/universal/constants.d.ts +0 -1
- package/package.json +38 -12
- package/dist/cjs/cli/generateMetaTags.js +0 -42
- package/dist/esm/cli/generateMetaTags.js +0 -34
- 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;
|