Skip to content

Commit d38254d

Browse files
committed
Fix codespell issues.
1 parent 849400c commit d38254d

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
## 3.1.0 - 2020-04-15
278278

279279
### Fixed
280-
- Support recusrive scoped contexts.
280+
- Support recursive scoped contexts.
281281
- Various EARL report updates.
282282
- Fixed `prependBase` to start path with a '/' for a zero length path
283283
if there is an authority in base.
@@ -499,17 +499,17 @@
499499
### Changed
500500
- [rdf-canonize][] updated:
501501
- **BREAKING**: A fix was applied that makes the canonical output format
502-
properly match the N-Triples canoncial format. This fixes the format to no
502+
properly match the N-Triples canonical format. This fixes the format to no
503503
longer escape tabs in literals. This may cause canonical output from
504504
`jsonld.normalize()`/`jsonld.canonize()` to differ from previous versions
505505
depending on your literal data. If a backwards compatibility mode is
506506
needed please use 1.4.x and file an issue.
507507
- **BREAKING**: [rdf-canonize-native][] was removed as an indirect optional
508-
dependency and the JavaScript implemenation is now the default. The former
508+
dependency and the JavaScript implementation is now the default. The former
509509
`usePureJavaScript` flag was removed and a new `useNative` flag was added
510510
to force use of the native bindings. Higher level applications must
511511
explicitly install `rdf-canonize-native` to use this mode. Note that in
512-
many cases the JavaScript implemenation will be *faster*. Apps should be
512+
many cases the JavaScript implementation will be *faster*. Apps should be
513513
benchmarked before using the specialized native mode.
514514
- **NOTE**: The Travis-CI C++11 compiler update fixes are no longer needed
515515
when using jsonld.js! [rdf-canonize-native][] was updated to not use C++11

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ JavaScript.
1414
JSON, as specified in [RFC7159][], is a simple language for representing
1515
objects on the Web. Linked Data is a way of describing content across
1616
different documents or Web sites. Web resources are described using
17-
IRIs, and typically are dereferencable entities that may be used to find
17+
IRIs, and typically are dereferenceable entities that may be used to find
1818
more information, creating a "Web of Knowledge". [JSON-LD][] is intended
1919
to be a simple publishing method for expressing not only Linked Data in
2020
JSON, but for adding semantics to existing JSON.

benchmarks/compare/compare.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async function compare({
137137
['Comment', 'jldb:comment']
138138
];
139139

140-
// show all properites
140+
// show all properties
141141
if(env === 'all') {
142142
console.log();
143143
console.log('## Environment');
@@ -158,7 +158,7 @@ async function compare({
158158
}
159159
}
160160

161-
// show present properites
161+
// show present properties
162162
if(env === 'present') {
163163
console.log();
164164
console.log('## Environment');

lib/compact.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ api.compact = async ({
377377
});
378378
}
379379

380-
// recusively process array values
380+
// recursively process array values
381381
for(const expandedItem of expandedValue) {
382382
// compact property and get container type
383383
const itemActiveProperty = api.compactIri({
@@ -713,7 +713,7 @@ api.compactIri = ({
713713
value = value['@preserve'][0];
714714
}
715715

716-
// prefer most specific container including @graph, prefering @set
716+
// prefer most specific container including @graph, preferring @set
717717
// variations
718718
if(_isGraph(value)) {
719719
// favor indexmap if the graph is indexed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ api.process = async ({
379379
}
380380
}
381381

382-
// Note: this could potenially conflict if the import
382+
// Note: this could potentially conflict if the import
383383
// were used in the same active context as a referenced
384384
// context and an import. In this case, we
385385
// could override the cached result, but seems unlikely.

lib/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ api.setupEventHandler = ({options = {}}) => {
5353
* should be called to let the next handler process the event.
5454
*
5555
* NOTE: Only call this function if options.eventHandler is set and is an
56-
* array of hanlers. This is an optimization. Callers are expected to check
56+
* array of handlers. This is an optimization. Callers are expected to check
5757
* for an event handler before constructing events and calling this function.
5858
*
5959
* @param {object} event - event structure:

lib/jsonld.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ const _resolvedContextCache = new LRU({max: RESOLVED_CONTEXT_CACHE_MAX_SIZE});
121121
* expansion, false not to, defaults to false. Some well-formed
122122
* and safe-mode checks may be omitted.
123123
* [documentLoader(url, options)] the document loader.
124-
* [framing] true if compaction is occuring during a framing operation.
124+
* [framing] true if compaction is occurring during a framing
125+
* operation.
125126
* [safe] true to use safe mode. (default: false)
126127
* [contextResolver] internal use only.
127128
*
@@ -1022,7 +1023,7 @@ jsonld.util = util;
10221023
// backwards compatibility
10231024
Object.assign(jsonld, util);
10241025

1025-
// reexpose API as jsonld.promises for backwards compatability
1026+
// reexpose API as jsonld.promises for backwards compatibility
10261027
jsonld.promises = jsonld;
10271028

10281029
// backwards compatibility

tests/misc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ describe('events', () => {
548548
eventCounts,
549549
// event array
550550
eventLog,
551-
// parial event array
551+
// partial event array
552552
eventPartialLog,
553553
// event code array
554554
eventCodeLog,
@@ -4010,7 +4010,7 @@ _:b0 <ex:p> "v" .
40104010
});
40114011
});
40124012

4013-
it('should handle generlized RDF blank node predicates', async () => {
4013+
it('should handle generalized RDF blank node predicates', async () => {
40144014
const input =
40154015
[
40164016
{

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Use environment vars to control:
55
*
66
* General:
7-
* Boolean env options enabled with case insensitve values:
7+
* Boolean env options enabled with case insensitive values:
88
* 'true', 't', 'yes', 'y', 'on', '1', similar for false
99
* Set dirs, manifests, or js to run:
1010
* TESTS="r1 r2 ..."

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = [];
1717
// all built files will export the "jsonld" library but with different content
1818
const outputs = [
1919
// core jsonld library (standard)
20-
// larger version for wide compatibilty
20+
// larger version for wide compatibility
2121
{
2222
entry: [
2323
// main lib

0 commit comments

Comments
 (0)