rapidjs / rapid.js

An ORM-like Interface and a Router For Your API Requests
https://rapidjs.drewjbartlett.com
710 stars 45 forks source link

Change require to import syntax #11

Closed ricklancee closed 7 years ago

ricklancee commented 7 years ago

In certain files a require statement is used to import methods from lodash; this is a bit inconsistent with the rest of the codebase since it uses import statements mostly.

Changes this: var _defaultsDeep = require('lodash').defaultsDeep;

To this: import { defaultsDeep } from 'lodash';

Tests passed when ran.

drewjbartlett commented 7 years ago

I definitely like the consistency here. Thanks for taking care of that!