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

Commit

Permalink
refactor: remove lodash (#670)
Browse files Browse the repository at this point in the history
Co-authored-by: Gligor Kotushevski <[email protected]>
  • Loading branch information
G-Rath and gligorkot authored May 25, 2023
1 parent 002818c commit bba1346
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"deep-equal": "^1.0.1",
"js-yaml": "^3.13.1",
"jsonpath": "^1.0.1",
"lodash": "^4.16.6",
"md5": "^2.2.1",
"open": "^6.3.0",
"querystring": "^0.2.0",
Expand Down
3 changes: 1 addition & 2 deletions src/services/apimService.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Api, ApiManagementService, ApiOperation, ApiOperationPolicy, ApiPolicy, Backend, Property } from "@azure/arm-apimanagement";
import { ApiContract, ApiCreateOrUpdateResponse, ApiGetResponse, ApiManagementServiceGetResponse, ApiManagementServiceResource, ApiOperationCreateOrUpdateResponse, ApiPolicyCreateOrUpdateResponse, ApiPolicyGetResponse, BackendContract, BackendCreateOrUpdateResponse, OperationContract, PolicyContract, PropertyContract, PropertyCreateOrUpdateResponse } from "@azure/arm-apimanagement/esm/models";
import axios from "axios";
import _ from "lodash";
import Serverless from "serverless";
import { Runtime } from "../config/runtime";
import { ApiCheckHeaderPolicy, ApiIpFilterPolicy, ApiManagementConfig } from "../models/apiManagement";
Expand Down Expand Up @@ -676,7 +675,7 @@ describe("APIM Service", () => {
});

it("ensures all serverless functions have been deployed into specified API", async () => {
const slsFunctions = _.values(serverless.service["functions"]);
const slsFunctions = Object.values(serverless.service["functions"]);

let apimResource: ApiManagementServiceResource = {
name: apimConfig.name,
Expand Down

0 comments on commit bba1346

Please sign in to comment.