Skip to content

Commit

Permalink
Merge pull request #214 from ryanhefner/fix/flatted-ref
Browse files Browse the repository at this point in the history
fix: Flatted import
  • Loading branch information
ryanhefner committed Jan 28, 2021
2 parents 2f154ed + 8141a73 commit 0097170
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions src/ContentfulCache.js
@@ -1,4 +1,4 @@
const Flatted = require('flatted/cjs');
import { parse } from 'flatted'

export default class ContentfulCache {
constructor(cache) {
Expand Down Expand Up @@ -29,7 +29,7 @@ export default class ContentfulCache {
}

if (typeof cache === 'string') {
const data = Flatted.parse(cache);
const data = parse(cache);

if (Symbol.iterator in Object(data)) {
this.cache = new Map(data);
Expand Down

0 comments on commit 0097170

Please sign in to comment.