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

fix: typos #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Options:
-h, --help display help for command
```

### Using Programatically
### Using Programmatically

```js
const { inject } = require('postject');
Expand Down Expand Up @@ -67,7 +67,7 @@ $ npm test

## Design

To ensure maximum capatibility and head off unforeseen issues, the
To ensure maximum compatibility and head off unforeseen issues, the
implementation for each format tries to use that format's standard
practices for embedding binary data. As such, it should be possible
to embed the binary data at build-time as well. The CLI provides the
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ await $`esbuild api.js --bundle --platform=node --outfile=../dist/api.js`;
await fs.copy("../src/cli.js", "../dist/cli.js");
await fs.copy("../postject-api.h", "../dist/postject-api.h");

// Repace all occurrences of `__filename` and `__dirname` with "" because
// Replace all occurrences of `__filename` and `__dirname` with "" because
// Node.js core doesn't support it. These uses are functionally dead when
// `SINGLE_FILE` is enabled anyways.
// Refs: https://github.com/postmanlabs/postject/issues/50
Expand Down
2 changes: 1 addition & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async function inject(filename, resourceName, resourceData, options) {

if (firstSentinel !== lastSentinel) {
throw new Error(
`Multiple occurences of sentinel "${sentinelFuse}" found in the binary`
`Multiple occurrences of sentinel "${sentinelFuse}" found in the binary`
);
}

Expand Down
Loading