@graphql-codegen/time 3.2.3 → 4.0.0-alpha-20230201095904-a984c0238
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/cjs/index.js +2 -1
- package/esm/index.js +2 -1
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.plugin = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
6
5
|
const path_1 = require("path");
|
|
6
|
+
// eslint-disable-next-line n/no-restricted-import -- todo: replace moment in v3
|
|
7
|
+
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
7
8
|
const plugin = async (schema, documents, config, { outputFile }) => {
|
|
8
9
|
let format;
|
|
9
10
|
let message = 'Generated on ';
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { extname } from 'path';
|
|
2
|
+
// eslint-disable-next-line n/no-restricted-import -- todo: replace moment in v3
|
|
3
|
+
import moment from 'moment';
|
|
3
4
|
export const plugin = async (schema, documents, config, { outputFile }) => {
|
|
4
5
|
let format;
|
|
5
6
|
let message = 'Generated on ';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/time",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha-20230201095904-a984c0238",
|
|
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": "4.0.0-alpha-20230201095904-a984c0238",
|
|
10
10
|
"moment": "~2.29.1"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|