Skip to content

Commit

Permalink
refactor fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpionnier committed Oct 5, 2018
1 parent 84df209 commit fb052ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/injector/module-token-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DynamicModule } from '@nestjs/common';
import { SHARED_MODULE_METADATA } from '@nestjs/common/constants';
import { Type } from '@nestjs/common/interfaces/type.interface';
import * as hash from 'object-hash';
import safeStringify from 'fast-safe-stringify';
import stringify from 'fast-safe-stringify';

export class ModuleTokenFactory {
public create(
Expand All @@ -25,7 +25,7 @@ export class ModuleTokenFactory {
): string {
// Uses safeStringify instead of JSON.stringify
// to support circular dynamic modules
return dynamicModuleMetadata ? safeStringify(dynamicModuleMetadata) : '';
return dynamicModuleMetadata ? stringify(dynamicModuleMetadata) : '';
}

public getModuleName(metatype: Type<any>): string {
Expand Down

0 comments on commit fb052ab

Please sign in to comment.