Skip to content

Commit

Permalink
feat: (#591) creating @faustjs/next/log export
Browse files Browse the repository at this point in the history
  • Loading branch information
wjohnsto committed Oct 22, 2021
1 parent 9be7e1d commit 69b6321
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/next/log.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/cjs/export/log';
4 changes: 4 additions & 0 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"import": "./dist/mjs/export/config.js",
"require": "./dist/cjs/export/config.js"
},
"./log": {
"import": "./dist/mjs/export/log.js",
"require": "./dist/cjs/export/log.js"
},
"./utils": {
"import": "./dist/mjs/export/utils.js",
"require": "./dist/cjs/export/utils.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export * from '../getProps';
export * from '../HeadlessProvider';
export * from '../utils';
export * from '../config/withFaust';
export * from '../log';
export * from '../log/log';
1 change: 1 addition & 0 deletions packages/next/src/log/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './log';
2 changes: 1 addition & 1 deletion packages/next/src/log.ts → packages/next/src/log/log.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { LoggerOptions } from '@gqty/logger';
import defaults from 'lodash/defaults';
import type { NextClient } from './gqty/client';
import type { NextClient } from '../gqty/client';

export async function logQueries(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 69b6321

Please sign in to comment.