@graphql-codegen/time 3.2.1 → 3.2.2-alpha-20221207003532-fd160ed13
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/package.json +2 -2
- package/typings/config.d.cts +32 -12
- package/typings/config.d.ts +32 -12
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/time",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2-alpha-20221207003532-fd160ed13",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for adding the current time for an output file",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "3.0.0-alpha-20221207003532-fd160ed13",
|
|
10
10
|
"moment": "~2.29.1"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
package/typings/config.d.cts
CHANGED
|
@@ -4,12 +4,22 @@ export interface TimePluginConfig {
|
|
|
4
4
|
* @default YYYY-MM-DDTHH:mm:ssZ
|
|
5
5
|
*
|
|
6
6
|
* @exampleMarkdown
|
|
7
|
-
* ```
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* ```tsx {10} filename="codegen.ts"
|
|
8
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
9
|
+
*
|
|
10
|
+
* const config: CodegenConfig = {
|
|
11
|
+
* schema: 'https://localhost:4000/graphql',
|
|
12
|
+
* documents: ['src/**\/*.tsx'],
|
|
13
|
+
* generates: {
|
|
14
|
+
* 'path/to/file.ts': {
|
|
15
|
+
* plugins: ['time'],
|
|
16
|
+
* config: {
|
|
17
|
+
* format: 'DD.MM.YY'
|
|
18
|
+
* },
|
|
19
|
+
* },
|
|
20
|
+
* },
|
|
21
|
+
* };
|
|
22
|
+
* export default config;
|
|
13
23
|
* ```
|
|
14
24
|
*/
|
|
15
25
|
format?: string;
|
|
@@ -18,12 +28,22 @@ export interface TimePluginConfig {
|
|
|
18
28
|
* @default 'Generated on'
|
|
19
29
|
*
|
|
20
30
|
* @exampleMarkdown
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
31
|
+
* ```tsx {10} filename="codegen.ts"
|
|
32
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
33
|
+
*
|
|
34
|
+
* const config: CodegenConfig = {
|
|
35
|
+
* schema: 'https://localhost:4000/graphql',
|
|
36
|
+
* documents: ['src/**\/*.tsx'],
|
|
37
|
+
* generates: {
|
|
38
|
+
* 'path/to/file.ts': {
|
|
39
|
+
* plugins: ['time'],
|
|
40
|
+
* config: {
|
|
41
|
+
* message: 'The file generated on: '
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* export default config;
|
|
27
47
|
* ```
|
|
28
48
|
*/
|
|
29
49
|
message?: string;
|
package/typings/config.d.ts
CHANGED
|
@@ -4,12 +4,22 @@ export interface TimePluginConfig {
|
|
|
4
4
|
* @default YYYY-MM-DDTHH:mm:ssZ
|
|
5
5
|
*
|
|
6
6
|
* @exampleMarkdown
|
|
7
|
-
* ```
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* ```tsx {10} filename="codegen.ts"
|
|
8
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
9
|
+
*
|
|
10
|
+
* const config: CodegenConfig = {
|
|
11
|
+
* schema: 'https://localhost:4000/graphql',
|
|
12
|
+
* documents: ['src/**\/*.tsx'],
|
|
13
|
+
* generates: {
|
|
14
|
+
* 'path/to/file.ts': {
|
|
15
|
+
* plugins: ['time'],
|
|
16
|
+
* config: {
|
|
17
|
+
* format: 'DD.MM.YY'
|
|
18
|
+
* },
|
|
19
|
+
* },
|
|
20
|
+
* },
|
|
21
|
+
* };
|
|
22
|
+
* export default config;
|
|
13
23
|
* ```
|
|
14
24
|
*/
|
|
15
25
|
format?: string;
|
|
@@ -18,12 +28,22 @@ export interface TimePluginConfig {
|
|
|
18
28
|
* @default 'Generated on'
|
|
19
29
|
*
|
|
20
30
|
* @exampleMarkdown
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
31
|
+
* ```tsx {10} filename="codegen.ts"
|
|
32
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
33
|
+
*
|
|
34
|
+
* const config: CodegenConfig = {
|
|
35
|
+
* schema: 'https://localhost:4000/graphql',
|
|
36
|
+
* documents: ['src/**\/*.tsx'],
|
|
37
|
+
* generates: {
|
|
38
|
+
* 'path/to/file.ts': {
|
|
39
|
+
* plugins: ['time'],
|
|
40
|
+
* config: {
|
|
41
|
+
* message: 'The file generated on: '
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* export default config;
|
|
27
47
|
* ```
|
|
28
48
|
*/
|
|
29
49
|
message?: string;
|