You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this PR, broke our wrapReturn shim function which wraps an export in a Proxy. After updating to import-in-the-middle@1.11.1 you get
TypeError: getters.get(...)[name] is not a function
at Object.get (register.js:20:37)
at Object.set (shimmer.js:648:30)
at DatastoreShim.wrapEachProperty (shim.js:347:20)
at Array.forEach (<anonymous>)
at DatastoreShim.wrap (shim.js:334:14)
at DatastoreShim.wrapReturn (shim.js:398:15)
at instrumentPGNative (pg.js:61:10)
at initialize (pg.js:33:12)
at _firstPartyInstrumentation (shimmer.js:711:29)
at loadInstrumentation (shimmer.js:675:25)
It's failing when we try to assign the exported module property as wrapped here
Steps to Reproduce
npm i import-in-the-middle@latest
npm run versioned:internal:major pg-esm
Expected Result
Tests pass
Actual Result
Tests fail
The text was updated successfully, but these errors were encountered:
bizob2828
changed the title
Updated agent to handle updates from import-in-the-middle@1.11.1
Update agent to handle updates from import-in-the-middle@1.11.1Sep 27, 2024
Description
It looks like this PR, broke our
wrapReturn
shim function which wraps an export in a Proxy. After updating toimport-in-the-middle@1.11.1
you getIt's failing when we try to assign the exported module property as wrapped here
Steps to Reproduce
npm i import-in-the-middle@latest
npm run versioned:internal:major pg-esm
Expected Result
Tests pass
Actual Result
Tests fail
The text was updated successfully, but these errors were encountered: