{"_id":"@alejandbel/ton-connect-isomorphic-fetch","name":"@alejandbel/ton-connect-isomorphic-fetch","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.3":{"name":"@alejandbel/ton-connect-isomorphic-fetch","version":"0.0.3","repository":{"type":"git","url":"git+https://github.com/Alejandbel/ton-connect-sdk.git"},"homepage":"https://github.com/Alejandbel/ton-connect-sdk/tree/main/packages/isomorphic-fetch","bugs":{"url":"https://github.com/Alejandbel/ton-connect-sdk/issues"},"keywords":["ton-connect","Connect","EventSource","Isomorphic"],"author":{"name":"tonconnect"},"license":"Apache-2.0","main":"./index.js","module":"./index.mjs","browser":"./browser.js","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","browser":"./browser.js","require":"./index.js","import":"./index.mjs","default":"./index.js"}},"dependencies":{"node-fetch":"^2.7.0"},"scripts":{},"_id":"@alejandbel/ton-connect-isomorphic-fetch@0.0.3","description":"This package provides `fetch` applicable in different environments (browser & NodeJS).","_integrity":"sha512-Na7NibpY9IlXPomzqHiL917HYZsoiJBJLfTRmQKAG4sNbk2UmHkXO2ktysylIfpCPFEUg7GTqyTUPYvvwR+JTg==","_resolved":"/private/var/folders/h9/wfnrk3496fx8kcbxgcpnmwsm0000gn/T/a9ad5b7b3775ebde1dcb80dd79453e1c/alejandbel-ton-connect-isomorphic-fetch-0.0.3.tgz","_from":"file:alejandbel-ton-connect-isomorphic-fetch-0.0.3.tgz","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-Na7NibpY9IlXPomzqHiL917HYZsoiJBJLfTRmQKAG4sNbk2UmHkXO2ktysylIfpCPFEUg7GTqyTUPYvvwR+JTg==","shasum":"4fd037390fb24e82b14df9a1a9b1f5bd2ee07c11","tarball":"https://registry.npmjs.org/@alejandbel/ton-connect-isomorphic-fetch/-/ton-connect-isomorphic-fetch-0.0.3.tgz","fileCount":7,"unpackedSize":13878,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIClSPNHRue2SlWitDTA96lDRfF2CWiZaSgzK8+8bxIOZAiEA+gx3XQ6+OAHGYBNx1sgHFa8slUH/k8fa96xqdiem/DE="}]},"_npmUser":{"name":"a-bahdanau","email":"bogdanov28c@gmail.com"},"directories":{},"maintainers":[{"name":"a-bahdanau","email":"bogdanov28c@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ton-connect-isomorphic-fetch_0.0.3_1773234443007_0.07576937813568518"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-11T13:07:22.944Z","0.0.3":"2026-03-11T13:07:23.160Z","modified":"2026-03-11T13:07:23.344Z"},"maintainers":[{"name":"a-bahdanau","email":"bogdanov28c@gmail.com"}],"description":"This package provides `fetch` applicable in different environments (browser & NodeJS).","homepage":"https://github.com/Alejandbel/ton-connect-sdk/tree/main/packages/isomorphic-fetch","keywords":["ton-connect","Connect","EventSource","Isomorphic"],"repository":{"type":"git","url":"git+https://github.com/Alejandbel/ton-connect-sdk.git"},"author":{"name":"tonconnect"},"bugs":{"url":"https://github.com/Alejandbel/ton-connect-sdk/issues"},"license":"Apache-2.0","readme":"# @tonconnect/isomorphic-fetch\n\nThis package provides `fetch` applicable in different environments (browser & NodeJS).\n\n## Get started\n`npm i @tonconnect/isomorphic-fetch`\n\n## How to use\nJust import the package and use global `fetch` function:\n\n```ts\nimport '@tonconnect/isomorphic-fetch';\n\nconst result = await fetch('https://example.com');\n```\n\nThat will work in both browser and NodeJS.\n\n## How does it work\nThis package exports an empty script if bundler creates browser-compatible build.\nWhen package is imported in NodeJS environment, it assigns an `fetch` imported from the `node-fetch` package to the `global` variable.\n\nNote that this package doesn't provide an `fetch` polyfill for browsers which doesn't support `fetch` natively. \n","readmeFilename":"README.md","_rev":"1-10712b28790b854e3771901ac1e3d91e"}