Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix: try loading lodash exports a different way (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta authored Sep 21, 2023
1 parent d5be402 commit df82bc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import type {

import { parse as parseDataUrl } from '@readme/data-urls';
import { getExtension, PROXY_ENABLED, HEADERS } from '@readme/oas-extensions';
import { get as lodashGet, set as lodashSet } from 'lodash'; // eslint-disable-line no-restricted-imports
import lodashGet from 'lodash/get';
import lodashSet from 'lodash/set';
import { Operation, utils } from 'oas';
import { isRef } from 'oas/rmoas.types';
import removeUndefinedObjects from 'remove-undefined-objects';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { JSONSchema, SchemaObject } from 'oas/rmoas.types';

import { get as lodashGet } from 'lodash'; // eslint-disable-line no-restricted-imports
import lodashGet from 'lodash/get';

/**
* Determine if a schema `type` is, or contains, a specific discriminator.
Expand Down

0 comments on commit df82bc2

Please sign in to comment.