@graphql-codegen/add 5.0.2 → 5.0.3
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 -0
- package/esm/index.js +1 -0
- package/package.json +1 -1
- package/typings/index.d.cts +1 -0
- package/typings/index.d.ts +1 -0
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.plugin = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const config_js_1 = require("./config.js");
|
|
6
|
+
tslib_1.__exportStar(require("./config.js"), exports);
|
|
5
7
|
const plugin = async (schema, documents, config) => {
|
|
6
8
|
const placement = config.placement || 'prepend';
|
|
7
9
|
const { content } = config;
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/add",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for adding custom content to your 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"
|
package/typings/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PluginFunction } from '@graphql-codegen/plugin-helpers';
|
|
2
2
|
import { AddPluginConfig } from './config.cjs';
|
|
3
|
+
export * from './config.cjs';
|
|
3
4
|
export declare const plugin: PluginFunction<AddPluginConfig>;
|
|
4
5
|
declare const _default: {
|
|
5
6
|
plugin: PluginFunction<AddPluginConfig>;
|
package/typings/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PluginFunction } from '@graphql-codegen/plugin-helpers';
|
|
2
2
|
import { AddPluginConfig } from './config.js';
|
|
3
|
+
export * from './config.js';
|
|
3
4
|
export declare const plugin: PluginFunction<AddPluginConfig>;
|
|
4
5
|
declare const _default: {
|
|
5
6
|
plugin: PluginFunction<AddPluginConfig>;
|