Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
],
format: ["camelCase"], leadingUnderscore: "allow"
},
//wrap host methods doesn"t satisfy neither camel or snake
//wrap host methods doesn't satisfy neither camel or snake
{selector: ["objectLiteralMethod", "typeMethod"], filter: {regex: "^_wrap_.*", match: true}, format: null},
//variable must be in camel or upper case
{selector: "variable", format: ["camelCase", "UPPER_CASE"], leadingUnderscore: "allow"},
Expand Down
6 changes: 3 additions & 3 deletions packages/js/core/src/algorithms/combine-paths.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export const combinePaths = (a: string, b: string): string => {
// Normalize all path seperators
// Normalize all path separators
a = a.replace(/\\/g, "/");
b = b.replace(/\\/g, "/");

// Append a seperator if one doesn't exist
// Append a separator if one doesn't exist
if (a[a.length - 1] !== "/") {
a += "/";
}

// Remove any leading seperators from
// Remove any leading separators from
while (b[0] === "/" || b[0] === ".") {
b = b.substring(1);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/js/os/src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export function normalizeLineEndings(
return data.replace(/\r\n|\r|\n/g, eol);
}

export function normalizePath(data: string, seperator = "/"): string {
return data.replace(/\\|\//g, seperator);
export function normalizePath(data: string, separator = "/"): string {
return data.replace(/\\|\//g, separator);
}
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ describe("Polywrap Schema Type Validation", () => {
//Should allow circular references on nullable fields
expect(exec(circularTypes6)).not.toThrow()

//Should allow recursive referece on nullable fields
//Should allow recursive reference on nullable fields
expect(exec(circularTypes7)).not.toThrow()

//Should allow array of recursive references
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm/as/assembly/msgpack/ReadDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class ReadDecoder extends Read {
);
}

// Consule the leadByte
// Consume the leadByte
this._view.getUint8();

// Get the extension type
Expand Down