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

Commit

Permalink
fix(cache): deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
s-panferov committed May 13, 2016
1 parent 43f4146 commit c56fe45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as fs from 'fs';
import * as crypto from 'crypto';
import * as os from 'os';
import * as path from 'path';
import * as zlib from 'zlib';
import { createHash } from 'crypto';

export interface CompiledModule {
fileName: string;
Expand Down Expand Up @@ -86,7 +86,7 @@ function write(filename: string, result: any, callback) {
* @return {String}
*/
function filename(source: string, identifier, options) {
let hash = crypto.createHash('sha512') as any;
let hash = createHash('sha512') as any;
let contents = JSON.stringify({
identifier: identifier,
options: options,
Expand Down

0 comments on commit c56fe45

Please sign in to comment.