Skip to content

Commit

Permalink
fix(): fix uuid deprecated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 3, 2020
1 parent 1404dce commit 9a9a54e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/common/decorators/core/injectable.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as uuid from 'uuid/v4';
import { ScopeOptions } from '../../interfaces/scope-options.interface';
import { v4 as uuid } from 'uuid';
import { SCOPE_OPTIONS_METADATA } from '../../constants';
import { ScopeOptions } from '../../interfaces/scope-options.interface';
import { Type } from '../../interfaces/type.interface';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as uuid from 'uuid/v4';
import { v4 as uuid } from 'uuid';
import {
CUSTOM_ROUTE_AGRS_METADATA,
ROUTE_ARGS_METADATA,
Expand Down
2 changes: 1 addition & 1 deletion packages/common/utils/random-string-generator.util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as uuid from 'uuid/v4';
import { v4 as uuid } from 'uuid';

export const randomStringGenerator = () => uuid();
2 changes: 1 addition & 1 deletion packages/core/middleware/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-use-before-define */
import { Type } from '@nestjs/common/interfaces';
import { isFunction } from '@nestjs/common/utils/shared.utils';
import * as uuid from 'uuid/v4';
import { v4 as uuid } from 'uuid';

export const filterMiddleware = <T>(middleware: T[]) => {
return []
Expand Down

0 comments on commit 9a9a54e

Please sign in to comment.