maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

Debug `console.log` shows up in the code published to NPM #231

Closed akphi closed 1 year ago

akphi commented 1 year ago

Hi,

I started noticing that debug console.log message being left in the code published to NPM as of version 8.0.2, 8.0.1 doesn't have this problem.

https://www.npmjs.com/package/react-resize-detector?activeTab=explore See index.js line 282-283

entries.forEach(function (entry) {
                console.log(entry && entry.contentRect, entry.contentBoxSize);

I don't find this in the code though. Could you take a look @maslianok . Thanks!

snelsi commented 1 year ago

I assume @maslianok was just testing some stuff related to #220 locally on his computer and forgot to remove local changes before the release. 🤔

There are no console.log in the repo's codebase

Robloche commented 1 year ago

I noticed the same thing after having updated to 8.0.2.

maslianok commented 1 year ago

Sorry for this guys :) Fixed in v8.0.3

maslianok commented 1 year ago

I assume @maslianok was just testing some stuff related to #220 locally on his computer and forgot to remove local changes before the release. 🤔

There are no console.log in the repo's codebase

correct 🤣