Skip to content

Commit

Permalink
refactor: Replace _.entries with Object.entries (#11793)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepwithcoffee committed Mar 10, 2023
1 parent 974198a commit 1181780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
}

if (event.http.request && event.http.request.schemas) {
for (const [contentType, schemaConfig] of _.entries(event.http.request.schemas)) {
for (const [contentType, schemaConfig] of Object.entries(event.http.request.schemas)) {
let modelLogicalId;

const referencedDefinitionFromProvider =
Expand Down
3 changes: 1 addition & 2 deletions test/unit/lib/plugins/aws/package/compile/functions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const AWS = require('aws-sdk');
const fse = require('fs-extra');
const fsp = require('fs').promises;
const _ = require('lodash');
const path = require('path');
const chai = require('chai');
const sinon = require('sinon');
Expand Down Expand Up @@ -826,7 +825,7 @@ describe('AwsCompileFunctions', () => {

return expect(awsCompileFunctions.compileFunctions()).to.be.fulfilled.then(() => {
let versionDescription;
for (const [key, value] of _.entries(
for (const [key, value] of Object.entries(
awsCompileFunctions.serverless.service.provider.compiledCloudFormationTemplate.Resources
)) {
if (key.startsWith('FuncLambdaVersion')) {
Expand Down

0 comments on commit 1181780

Please sign in to comment.