@graphql-codegen/time 3.2.1-alpha-0814e49cc.0 → 3.2.1

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 CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-codegen/time",
3
- "version": "3.2.1-alpha-0814e49cc.0",
3
+ "version": "3.2.1",
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": "^2.6.1-alpha-0814e49cc.0",
9
+ "@graphql-codegen/plugin-helpers": "^2.6.2",
10
10
  "moment": "~2.29.1"
11
11
  },
12
12
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "exports": {
26
26
  ".": {
27
27
  "require": {
28
- "types": "./typings/index.d.ts",
28
+ "types": "./typings/index.d.cts",
29
29
  "default": "./cjs/index.js"
30
30
  },
31
31
  "import": {
@@ -0,0 +1,30 @@
1
+ export interface TimePluginConfig {
2
+ /**
3
+ * @description Customize the Moment format of the output time.
4
+ * @default YYYY-MM-DDTHH:mm:ssZ
5
+ *
6
+ * @exampleMarkdown
7
+ * ```yaml {4-5}
8
+ * generates:
9
+ * path/to/file.ts:
10
+ * plugins:
11
+ * - time:
12
+ * format: DD.MM.YY
13
+ * ```
14
+ */
15
+ format?: string;
16
+ /**
17
+ * @description Customize the comment message
18
+ * @default 'Generated on'
19
+ *
20
+ * @exampleMarkdown
21
+ * ```yaml {4-5}
22
+ * generates:
23
+ * path/to/file.ts:
24
+ * plugins:
25
+ * - time:
26
+ * message: 'The file generated on: '
27
+ * ```
28
+ */
29
+ message?: string;
30
+ }
@@ -0,0 +1,3 @@
1
+ import { PluginFunction } from '@graphql-codegen/plugin-helpers';
2
+ import { TimePluginConfig } from './config.cjs';
3
+ export declare const plugin: PluginFunction<TimePluginConfig>;