Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
fix export 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
michenly committed Nov 20, 2019
1 parent 6e9b610 commit c6de407
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/koa-metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

<!-- ## [Unreleased] -->

## 0.3.6 - 2019-11-20

- Fix broken default export from 0.3.0 ([#1187](https://github.com/Shopify/quilt/pull/1187))

## 0.3.0 - 2019-10-07

- Use `@shopify/statd` instead of Metrics implementation. The log using logger in distribution was removed. ([#1074](https://github.com/Shopify/quilt/pull/1074))
Expand Down
2 changes: 1 addition & 1 deletion packages/koa-metrics/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export {Tag} from './tags';
export * from './middleware';
export {CustomMetric, Options, metrics as default} from './middleware';
2 changes: 1 addition & 1 deletion packages/koa-metrics/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Options {
logger?: Logger;
}

export default function metrics({
export function metrics({
prefix,
host,
skipInstrumentation = false,
Expand Down
2 changes: 1 addition & 1 deletion packages/koa-metrics/src/test/middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {createMockContext} from '@shopify/jest-koa-mocks';
import {StatsDClient} from '@shopify/statsd';

import {Tag} from '../tags';
import metrics, {CustomMetric} from '../middleware';
import {metrics, CustomMetric} from '../middleware';

jest.mock('@shopify/statsd');
const MetricsMock = StatsDClient as jest.Mock<StatsDClient>;
Expand Down

0 comments on commit c6de407

Please sign in to comment.