contentful / contentful-resolve-response

Resolve items & includes of a Contentful API response into a proper object graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

resolveResponse() mutates its input

jrr opened this issue · comments

Despite going through the trouble of making a copy:

const responseClone = copy(response)

It seems that resolveResponse() is mutating its input.

See associated PR for a failing test.

Here's a one-line changes that fixes the unit test, but I haven't tested the change with a real app:

jrr@e24524a