Skip to content

Commit

Permalink
Fix typos (amark#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Feb 26, 2023
1 parent 1bdab73 commit 9e616ea
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ This would not be possible without **community contributors**, big shout out to:

**[ajmeyghani](https://github.com/ajmeyghani) ([Learn GUN Basics with Diagrams](https://medium.com/@ajmeyghani/gundb-a-graph-database-in-javascript-3860a08d873c))**; **[anywhichway](https://github.com/anywhichway) ([Block Storage](https://github.com/anywhichway/gun-block))**; **[beebase](https://github.com/beebase) ([Quasar](https://github.com/beebase/gun-vuex-quasar))**; **[BrockAtkinson](https://github.com/BrockAtkinson) ([brunch config](https://github.com/BrockAtkinson/brunch-gun))**; **[Brysgo](https://github.com/brysgo) ([GraphQL](https://github.com/brysgo/graphql-gun))**; **[d3x0r](https://github.com/d3x0r) ([SQLite](https://github.com/d3x0r/gun-db))**; **[forrestjt](https://github.com/forrestjt) ([file.js](https://github.com/amark/gun/blob/master/lib/file.js))**; **[hillct](https://github.com/hillct) (Docker)**; **[JosePedroDias](https://github.com/josepedrodias) ([graph visualizer](http://acor.sl.pt:9966))**; **[JuniperChicago](https://github.com/JuniperChicago) ([cycle.js bindings](https://github.com/JuniperChicago/cycle-gun))**; **[jveres](https://github.com/jveres) ([todoMVC](https://github.com/jveres/todomvc))**; **[kristianmandrup](https://github.com/kristianmandrup) ([edge](https://github.com/kristianmandrup/gun-edge))**; **[Lightnet](https://github.com/Lightnet)** ([Awesome Vue User Examples](https://glitch.com/edit/#!/jsvuegunui?path=README.md:1:0) & [User Kitchen Sink Playground](https://gdb-auth-vue-node.glitch.me/)); **[lmangani](https://github.com/lmangani) ([Cytoscape Visualizer](https://github.com/lmangani/gun-scape), [Cassandra](https://github.com/lmangani/gun-cassandra), [Fastify](https://github.com/lmangani/fastify-gundb), [LetsEncrypt](https://github.com/lmangani/polyGun-letsencrypt))**; **[mhelander](https://github.com/mhelander) ([SEA](https://github.com/amark/gun/blob/master/sea.js))**; [omarzion](https://github.com/omarzion) ([Sticky Note App](https://github.com/omarzion/stickies)); [PsychoLlama](https://github.com/PsychoLlama) ([LevelDB](https://github.com/PsychoLlama/gun-level)); **[RangerMauve](https://github.com/RangerMauve) ([schema](https://github.com/gundb/gun-schema))**; **[robertheessels](https://github.com/swifty) ([gun-p2p-auth](https://github.com/swifty/gun-p2p-auth))**; **[rogowski](https://github.com/rogowski) (AXE)**; [sbeleidy](https://github.com/sbeleidy); **[sbiaudet](https://github.com/sbiaudet) ([C# Port](https://github.com/sbiaudet/cs-gun))**; **[Sean Matheson](https://github.com/ctrlplusb) ([Observable/RxJS/Most.js bindings](https://github.com/ctrlplusb/gun-most))**; **[Shadyzpop](https://github.com/Shadyzpop) ([React Native example](https://github.com/amark/gun/tree/master/examples/react-native))**; **[sjones6](https://github.com/sjones6) ([Flint](https://github.com/sjones6/gun-flint))**; RIP **[Stefdv](https://github.com/stefdv) (Polymer/web components)**; **[zrrrzzt](https://github.com/zrrrzzt) ([JWT Auth](https://gist.github.com/zrrrzzt/6f88dc3cedee4ee18588236756d2cfce))**; **[xmonader](https://github.com/xmonader) ([Python Port](https://github.com/xmonader/pygundb))**;

I am missing many others, apologies, will be adding them soon! This list is infintiely old & way out of date, if you want to be listed in it please make a PR! :)
I am missing many others, apologies, will be adding them soon! This list is infinitely old & way out of date, if you want to be listed in it please make a PR! :)

## Testing

Expand Down
2 changes: 1 addition & 1 deletion examples/angular/src/app/gun.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { pick } from 'underscore';
export function on$(node, cleanup = true): Observable<any> {
return Observable.fromEventPattern(
h => {
// there is no way to off() an on() until at least one value is trigerred
// there is no way to off() an on() until at least one value is triggered
// so that we can access the event listener to off() it
const signal = { stop: false };
node.on((data, key, at, ev) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/json/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h3>Admin JSON Editor</h3>
color: skyblue;
background: transparent;
text-decoration: none;
cursor: poiner;
cursor: pointer;
}
ul, li {
list-style-type: none;
Expand Down
4 changes: 2 additions & 2 deletions examples/react-native/src/webview-crypto/serializeBinary.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/vue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<div id="app">
This is example of simple Vue plugin. It works exatcly same as the Vue instance data property, but the name is gunData.<br>
This is example of simple Vue plugin. It works exactly same as the Vue instance data property, but the name is gunData.<br>
The cool part is that every property in the gunData is realtime synced via gunDB to every other page viewer!<br>
<table>
<tr>
Expand Down
8 changes: 4 additions & 4 deletions lib/les.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
* - gc_delay : sets the amount of time between attempted garbage collections in milliseconds
* - gc_info_enable : Enables or Disables the info printout
* - gc_info : sets the ~ amount of time between info messages
* this is checked everytime the gc is ran
* this is checked every time the gc is ran
* - gc_info_mini : this will use a smaller, less user friendly info printout
* - gc_importance_func : This will be the function used for finding the importance of a potental collect
* - gc_importance_func : This will be the function used for finding the importance of a potential collect
* takes the form of func(timestamp, ctime, memoryUsageRatio) {return val}
* Collects when returned value is 100
*/

//NOTE: set to false to use require for getting gun DEFUALT: false
//NOTE: set to false to use require for getting gun DEFAULT: false
var USELOCALGUN = false;


//NOTE: adds some debug messages DEFUALT: false
//NOTE: adds some debug messages DEFAULT: false
var DEBUG = false;

if(!(typeof window !== "undefined") && USELOCALGUN)
Expand Down
4 changes: 2 additions & 2 deletions lib/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
var name, tag, tags = opt.tags;
for(name in tags) {
if(opt.hierarchy.indexOf(name)===-1)
throw Error('tag "'+name+'" is missing hierachy definition');
throw Error('tag "'+name+'" is missing hierarchy definition');
}
opt.hierarchy.forEach(function(name){
if(!tags[name]){
Expand All @@ -117,7 +117,7 @@

// GENERAL UTILS

function get(o, args){ // path argments as separate string parameters
function get(o, args){ // path arguments as separate string parameters
if(typeof args === 'string')
return o[args[0]];
var i = 0, l = args.length, u;
Expand Down
4 changes: 2 additions & 2 deletions lib/not.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ declare module '../types/gun/IGunChain' {
* through it, then you have a pretty reasonable assurance that a not found means that
* the data doesn't exist yet. Just be mindful of how you use it
*
* @param callack If there's reason to believe the data doesn't exist, the callback will be
* @param callback If there's reason to believe the data doesn't exist, the callback will be
* invoked. This can be used as a check to prevent implicitly writing data
*/
not(
callack: (key: string) => void
callback: (key: string) => void
): IGunChain<TNode, TChainParent, TGunInstance, TKey>;
}
}
6 changes: 3 additions & 3 deletions lib/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Turn any part of a gun chain into a promise, that you can then use
* .then().catch() pattern.
* In normal gun doing var item = gun.get('someKey'), gun returns a reference
* to the someKey synchroneously. Using a reference is quite helpful in making
* to the someKey synchronously. Using a reference is quite helpful in making
* graph structures, so I have chosen to follow the following paradigm.
* Whenever a promise is resolved, gun will return an object of data, I will
* wrap that data in an object together with the reference like so:
Expand Down Expand Up @@ -62,7 +62,7 @@ function sleep (limit) {
* @param item (string / object) - item to be put to that key in the chain
* @param opt - option object
* @return object - Returns an object with the ref to that node that was just
* created as well as the 'ack' which acknowledges the put was succesful
* created as well as the 'ack' which acknowledges the put was successful
* object {ref: gunReference, ack: acknowledgmentObject}
* If put had an error we can catch the return via .catch
*/
Expand All @@ -82,7 +82,7 @@ Gun.chain.promPut = async function (item, opt) {
* @param item (string / object) - item to be set into a list at this key
* @param opt - option object
* @return object - Returns object with the ref to that node that was just
* created as well as the 'ack' which acknowledges the set was succesful
* created as well as the 'ack' which acknowledges the set was successful
* object {ref: gunReference, ack: acknowledgmentObject}
* If set had an error we can catch the return via .catch
*/
Expand Down
16 changes: 8 additions & 8 deletions lib/wave.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ edide.var = (function (edide, mod_var) {
ref.reactiveGraph();
}
}
throw Error("Inifinite loop in \:var dependencies");
throw Error("Infinite loop in \:var dependencies");
}
if (debugging) {
edide.logProd(`updating ${name}`);
Expand Down Expand Up @@ -436,7 +436,7 @@ edide.reactiveWithFilters = (function (edide, reactiveWithFilters) {
throw Error(`Illegal reactive (${prop}: ${value})`);
}
edide.var(`${id}.${prop}`, value);
return true; // Proxy set must return true if set is successfull; In the future use Reflect.set, which returns true automatically?
return true; // Proxy set must return true if set is successful; In the future use Reflect.set, which returns true automatically?
}
};
revar = new Proxy((todoMap = new Map), handler); // NOTE: map is not used yet
Expand Down Expand Up @@ -754,11 +754,11 @@ edide.musicScales = (function (edide, musicScales) {Object.defineProperty(this,
fantastical: 'M8M',
sadness: 'M4m',
romantic: 'M5m', // and middle eastern
wonder: 'm5M', // and trancendence
wonder: 'm5M', // and transcendence
mystery: 'm2M', // and dark comedy
dramatic: 'm11M',
antagonismDanger: 'm6m', // less character based
antagonismEvil: 'm8m' // cahracter based
antagonismEvil: 'm8m' // character based
};

return musicScales;
Expand Down Expand Up @@ -945,7 +945,7 @@ edide.mmParserSpecial = (function (edide, mmParserSpecial) {Object.definePropert
return endInd;
};

// parse variable from curren track row
// parse variable from current track row
// returns false if parsing fails
this.var = (track, trackState) => {
var err, i, value, varLength, varName, varStr;
Expand Down Expand Up @@ -1039,7 +1039,7 @@ edide.mmParser = (function (edide, mmParser) {Object.defineProperty(this, 'modul
if (isNaN(repeat = parseInt(track.slice(ts.i + 1)))) {
ts.i++; // unable to parse number of repeats, skip them
} else {
// initialize new repeating patter (-1 because repeat pattern already played once)
// initialize new repeating pattern (-1 because repeat pattern already played once)
ts.repeat = repeat - 1;
// search for beginning of repeat group
bef = track.slice(0, ts.i);
Expand Down Expand Up @@ -1350,8 +1350,8 @@ edide.mmPipe = (function (edide, mmPipe) {Object.defineProperty(this, 'module_na
revar.pipeReady = true;
return edide.onUnload(() => {
if (dist != null) {
if (typeof dist.dipose === "function") {
dist.dipose();
if (typeof dist.dispose === "function") {
dist.dispose();
}
}
if (lowpass != null) {
Expand Down
4 changes: 2 additions & 2 deletions sea/sea.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// For documentation see https://nodejs.org/api/buffer.html
SEA.Buffer = SEA.Buffer || require('./buffer');

// These SEA functions support now ony Promises or
// These SEA functions support now only Promises or
// async/await (compatible) code, use those like Promises.
//
// Creates a wrapper library around Web Crypto API
Expand Down Expand Up @@ -45,7 +45,7 @@
// Obviously it is missing MANY necessary features. This is only an alpha release.
// Please experiment with it, audit what I've done so far, and complain about what needs to be added.
// SEA should be a full suite that is easy and seamless to use.
// Again, scroll naer the top, where I provide an EXAMPLE of how to create a user and sign in.
// Again, scroll near the top, where I provide an EXAMPLE of how to create a user and sign in.
// Once logged in, the rest of the code you just read handled automatically signing/validating data.
// But all other behavior needs to be equally easy, like opinionated ways of
// Adding friends (trusted public keys), sending private messages, etc.
Expand Down
2 changes: 1 addition & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3012,7 +3012,7 @@ describe('Gun', function(){
setTimeout(function(){
var gun2 = Gun();
//console.log(require('fs').readFileSync('./radata/!').toString());
gun2.get('stef').get('address').once(function(data){ // Object {_: Object, country: "Netherlands", zip: "1766KP"} "adress"
gun2.get('stef').get('address').once(function(data){ // Object {_: Object, country: "Netherlands", zip: "1766KP"} "address"
//console.log("******", data);return;
done.a = true;
expect(data.country).to.be('Netherlands');
Expand Down
12 changes: 6 additions & 6 deletions test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ exports.colors = {
exports.symbols = {
ok: '?',
err: '?',
dot: '·'
dot: ''
};

// With node.js on Windows: use symbols available in terminal default fonts
Expand Down Expand Up @@ -1734,7 +1734,7 @@ exports.cursor = {
};

/**
* Outut the given `failures` as a list.
* Output the given `failures` as a list.
*
* @param {Array} failures
* @api public
Expand Down Expand Up @@ -3000,9 +3000,9 @@ function Landing(runner) {
stream.write('\u001b[' + (width + 1) + 'D\u001b[2A');
stream.write(runway());
stream.write('\n ');
stream.write(color('runway', Array(col).join('·')));
stream.write(color('runway', Array(col).join('')));
stream.write(plane);
stream.write(color('runway', Array(width - col).join('·') + '\n'));
stream.write(color('runway', Array(width - col).join('') + '\n'));
stream.write(runway());
stream.write('\u001b[0m');
});
Expand Down Expand Up @@ -4731,7 +4731,7 @@ Runner.prototype.runTests = function(suite, fn) {
}
if (!match) {
// Run immediately only if we have defined a grep. When we
// define a grep — It can cause maximum callstack error if
// define a grep It can cause maximum callstack error if
// the grep is doing a large recursive loop by neglecting
// all tests. The run immediately function also comes with
// a performance cost. So we don't want to run immediately
Expand Down Expand Up @@ -8474,7 +8474,7 @@ process.nextTick = function (fun) {
}
};

// v8 likes predictible objects
// v8 likes predictable objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
Expand Down
Loading

0 comments on commit 9e616ea

Please sign in to comment.