-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Linting Problem with Constructor #6
Comments
GUN figures out whether you need to use function Gun(opt){
var gun = this;
if(!Gun.is(gun)){
return new Gun(opt);
}
gun.opt(opt);
} So that way you don't have to worry about it. I think you can call it explicitly and it'll still work just fine |
Okay, cool. It's more that I want to make sure that using |
I suggest also exposing a '.create()' method, as that's the conventional way to expose the constructor when you want to avoid new. |
Documented. @PsychoLlama may make an extension which adds a |
|
* add: wait for once, so data is returned on first get * Update then.js
* react native support (amark#5) * WIP: use isomorphic-webcrypto for RN * WIP: expo friendly exports * WIP: buffer for RN * WIP: textencoder for RN * WIP: aeskey from jwk instead of raw for RN * fix: missing taglength for msrcrypto * add: update isomorphic-webcrypto * add: match isocrypto api * add: failing test for 4e2 as 400 * fix: remove extra atob btoa * add: sea unbuild * refactor: according to mhelander review * refactor: shorter require * fix: make bug test pass, capitlize bug test. * fix: npm ci + sea test * add: restore old browser export and add react-native friendly exports * fix: import buffer into correct global/window * fix: bad comparison * fix: only include buffer if no btoa/atob * add: wait for once, so data is returned on first get (amark#6) * add: wait for once, so data is returned on first get * Update then.js * add: decrypt opposite of secret * add: update dependencies * add: update to use webview-crypto * refactor: remove duplicate * fix: match amark master * Update README.md * Update README.md * add: restore old crypto package, isomorphic changes things in react-native * fix: typo * add: update readme with example * cache remote files, quick ugly test experiment? * IF email ENV CONFIG set, report slow parse * IF email ENV CONFIG set, report slows * refine health * how long is 1ms in actuality? * skip saving in-mem acks? thrash socket 0? * begin * live debug ? * try live debug (chrome inspector) * Update Aptfile * Update Aptfile * Update Aptfile * Update Procfile * Update Procfile * Update Procfile * Update Procfile * notes & tests * TODO SPAM, REMEMBER TO UNCOMMIT * because yeah! * yet another day. * ? trace ? tmp * Update trace.js * Update trace.js * only flamegraph emails * Update .gitignore * full circuit * unit tests passing * p v b * fixup * duh * find ugh * Update sea.js * Update sea.js * crash it * work! * Update rs3.js * Update radisk.js * uptime decimal * only check once per disk, not each cb of it * woops that was crashing stuff * FIX CHAIN EMIT / ON, add more stats * woops put was too big for email * better diagnostics * check mix time * allow sort / dynamic prefix on hash? * Update gun.js * ugh lol finally get this right? * more info * I want the count * yet again * if emitting chain perf fault, then redo _rad * 3rd rewrite, have batched acks. * fix .pub on account check * -log +stat, not gets or dbg yet tho * woops, what? * fix large records saving to RAD * TEMPORARY test * undo temporary test * file serve stats * DO NOT PUBLISH! ECHO TEST. * put debug (dbg) * must be defined undefined * TEMPORARILY disable RAD * restore * perf notes * puff say loop? see how it goes. * don't lose ref * puff it * prof back in * in s not ms * rad check node read, important puffs * fix chain emit & faith * check if migration needed Co-authored-by: sirpy <[email protected]> Co-authored-by: Mark Nadal <[email protected]>
When JSHint-ing whatever sets up the Gun connection with
I keep getting the following warning:
Should we require
new
? I know that it works right now, but if it doesn't follow JavaScript's normal patterns then we should at least discuss bringing it in line.The text was updated successfully, but these errors were encountered: