Skip to content

Commit f512f94

Browse files
author
Frank Fiegel
committed
feat: use named export
1 parent 1048949 commit f512f94

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The pipenet client is also usable through an API (for test integration, automati
3232
Creates a new pipenet tunnel to the specified local `port`. Will return a Promise that resolves once you have been assigned a public tunnel url. `options` can be used to request a specific `subdomain`. A `callback` function can be passed, in which case it won't return a Promise. This exists for backwards compatibility with the old Node-style callback API. You may also pass a single options object with `port` as a property.
3333

3434
```js
35-
import pipenet from 'pipenet';
35+
import { pipenet } from 'pipenet';
3636

3737
const tunnel = await pipenet({
3838
port: 3000,

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import yargs from 'yargs';
44
import { hideBin } from 'yargs/helpers';
55

6-
import pipenet from './pipenet.js';
6+
import { pipenet } from './pipenet.js';
77
import { createServer } from './server/index.js';
88

99
interface ClientOptions {

src/pipenet.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import axios from 'axios';
44
import http from 'http';
55
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
66

7-
import pipenet from './pipenet.js';
7+
import { pipenet } from './pipenet.js';
88
import { createServer } from './server/server.js';
99

1010
describe('pipenet', () => {

src/pipenet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ function pipenet(
3535
);
3636
}
3737

38-
export default pipenet;
38+
export { pipenet };
3939

0 commit comments

Comments
 (0)