Skip to content

Commit 252c851

Browse files
committed
fix: typos
1 parent 3c4f208 commit 252c851

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Options:
3434
-h, --help display help for command
3535
```
3636
37-
### Using Programatically
37+
### Using Programmatically
3838
3939
```js
4040
const { inject } = require('postject');
@@ -67,7 +67,7 @@ $ npm test
6767
6868
## Design
6969
70-
To ensure maximum capatibility and head off unforeseen issues, the
70+
To ensure maximum compatibility and head off unforeseen issues, the
7171
implementation for each format tries to use that format's standard
7272
practices for embedding binary data. As such, it should be possible
7373
to embed the binary data at build-time as well. The CLI provides the

scripts/build.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ await $`esbuild api.js --bundle --platform=node --outfile=../dist/api.js`;
3838
await fs.copy("../src/cli.js", "../dist/cli.js");
3939
await fs.copy("../postject-api.h", "../dist/postject-api.h");
4040

41-
// Repace all occurrences of `__filename` and `__dirname` with "" because
41+
// Replace all occurrences of `__filename` and `__dirname` with "" because
4242
// Node.js core doesn't support it. These uses are functionally dead when
4343
// `SINGLE_FILE` is enabled anyways.
4444
// Refs: https://github.com/postmanlabs/postject/issues/50

src/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async function inject(filename, resourceName, resourceData, options) {
128128

129129
if (firstSentinel !== lastSentinel) {
130130
throw new Error(
131-
`Multiple occurences of sentinel "${sentinelFuse}" found in the binary`
131+
`Multiple occurrences of sentinel "${sentinelFuse}" found in the binary`
132132
);
133133
}
134134

0 commit comments

Comments
 (0)