opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

Version 4.0.19 on NPM still has old built code

Open JoelBesada opened this issue 3 years ago • 3 comments

I'm trying to upgrade to version 4.0.19 where the following protocol address fix should be included https://github.com/ProjectOpenSea/opensea-js/pull/863. However, looking at the code in node_modules/opensea-js/lib/utils/utils.js, it doesn't have the expected isValidProtocol function at the bottom that this fix added.

Steps to reproduce

Install opensea-js from NPM and look at the output in the utils file:

$ mkdir test_folder && cd test_folder && yarn init
$ yarn add opensea-js
$ tail -n 2 node_modules/opensea-js/lib/utils/utils.js  

This prints

exports.feesToBasisPoints = feesToBasisPoints;
//# sourceMappingURL=utils.js.map%  

while the expected output should be

exports.isValidProtocol = isValidProtocol;
//# sourceMappingURL=utils.js.map%   

It seems that yarn build wasn't executed before publishing this new update to NPM.

JoelBesada avatar Mar 08 '23 14:03 JoelBesada

thanks for reporting! fixed in 4.0.20

cterech avatar Mar 08 '23 15:03 cterech

thanks for reporting! fixed in 4.0.20

Hey, I pulled down the latest version but still getting the same output, isValidProtocol is still not in the built output (it's in the file in the src folder but that's not what the library exposes when imported).

JoelBesada avatar Mar 08 '23 15:03 JoelBesada

@cterech

Hello.

Below is the Issue, but it is not fixed yet. When I look at the fulfillOrder in npm's Code explorer, the isValidProtocol() is not being used and is comparing incorrectly. https://www.npmjs.com/package/opensea-js?activeTab=explore

Again, I would appreciate a corrected code release.

Thank you.

pi9min avatar Mar 09 '23 02:03 pi9min