Skip to content

Commit

Permalink
fix: meta version resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Aug 28, 2019
1 parent dd1eee8 commit 0d066c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/DiskStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import * as http from 'http';
import * as path from 'path';
import { BaseStorage, ERRORS, fail, File, FilePart, StorageOptions } from '.';
import { cp, ensureFile, fsUnlink } from './utils';

const pkg = { name: 'node-uploadx', version: '2.0' };

export type Destination = string | (<T extends http.IncomingMessage>(req: T, file: File) => string);

export interface MetaStore extends Configstore {
Expand All @@ -18,8 +21,6 @@ export interface DiskStorageOptions extends StorageOptions {
destination?: Destination;
}

const pkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf8'));

/**
* Local Disk Storage
*/
Expand Down

0 comments on commit 0d066c9

Please sign in to comment.