Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading fix #1356

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Loading fix #1356

merged 2 commits into from
Feb 5, 2024

Conversation

bmatusiak
Copy link
Collaborator

@bmatusiak bmatusiak commented Jan 21, 2024

i use nwjs.. this is a mix of browser+nodejs

this PR fixes some loading of gun for that.

introducing a new look to exporting plugin modules that looks like this.

(function(name, exports){
  if(typeof window !== "undefined"){
    window[name] = window[name]||exports;
  } 
  try{ module.exports = exports }catch(e){}
})("Radix",Radix);

@amark
Copy link
Owner

amark commented Feb 5, 2024

sexy!

@amark amark merged commit e584906 into amark:master Feb 5, 2024
3 checks passed
amark added a commit that referenced this pull request Nov 24, 2024
* Thank you Murage Martin @murageyun for donating!!!

* Fix opt.s3.fakes3 parsing issue (#1318)

* Fix opt.s3.fakes3 parsing issue

* Fix second typo within if block

* Support variable number of auth retry attempts through opt.retries (#1325)

Maintain default to 9 to ensure backwards compatibility

* Thanks Jason Stallings @octalmage !!!

* Remove unused imports (#1337)

* Update README.md

* yay format change

* encode objects

* WS ws.path fix  (#1343)

* Update wire.js

* Update wire.js

* Update wire.js

* add one click deploy to readme (#1342)

* update src/index (#1254)

* update src/index

* update

* src/index fix

* added src/core

* is ??? this a MVP of book & rad ???? thanks to @rogowski

* book & rad APIs stabilizing

* RAD & Book promoted! + buggy example: test/rad/book.html

* bump path

* cleaned up Book results & sorting & caching

* sea blobs! (#1353)

* sea blobs!

* and null origins

* null fix

* null check is last

* add a way to select stats file from url (#1351)

* react-native detection, and load needed shims (#1349)

* react-native detection

* added lib mobile

* changed back to gun. for another solution

* have unbuild function wrap to prevent scope leaks & allow RETURN hehehe so I can reject @bmatusiak 's lS change O:) O:) I love you you're a hero!

later with @bmatusiak check sea.then for '../gun.js' vs '../' vs ...
note: src/index -> core.js
TODO: something about WebRTC candidates hitting ack decrement limits?

* quick-fix (#1355)

* Fix SEA certificate verification, allow multiple pubs (#1358)

* Create SECURITY.md (#1364)

* ... works (#1357)

* Loading fix (#1356)

* does this load better

* check window.Gun too in rfs

* update SECURITY.md file and change the versions to 0.2020.x (#1365)

* webrtc accept getUserMedia streams as peer

* Check atom exists in graph when deciding to read from disk (#1371)

* fix: ERROR: Radisk needs `store.put` interface (#1374)

* Update STUN servers (#1381)

Commented out sipgate.net STUN server.
Added Cloudflare STUN server.

* universal notification system

---------

Co-authored-by: ritchia1 <[email protected]>
Co-authored-by: Anton <[email protected]>
Co-authored-by: Bradley Matusiak <[email protected]>
Co-authored-by: Jay Byoun <[email protected]>
Co-authored-by: mimiza <[email protected]>
Co-authored-by: Simardeep Singh <[email protected]>
Co-authored-by: Malcolm Blaney <[email protected]>
Co-authored-by: Andreas Heissenberger <[email protected]>
Co-authored-by: carlin978 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants