Skip to content

Commit

Permalink
The package's name is (supposed to be) sync-message-port (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Oct 29, 2024
1 parent 2e84ba9 commit 4b30b3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/sync-message-channel'"
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/sync-message-port'"
needs: [static_analysis, tests, sass_spec]

steps:
Expand All @@ -65,7 +65,7 @@ jobs:

typedoc:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/sync-message-channel'"
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/sync-message-port'"
needs: [deploy]

environment:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ traditionally only available asynchronously in the Node.js ecosystem by running
the asynchronous APIs in a worker and accessing their results synchronously from
the main thread.

See [the `sync-process` package] for an example of `sync-message-channel` in
See [the `sync-process` package] for an example of `sync-message-port` in
action.

[the `sync-process` package]: https://github.com/sass/sync-process
Expand All @@ -31,7 +31,7 @@ action.

```js
import {Worker} from 'node:worker_threads';
import {SyncMessagePort} from 'sync-message-channel';
import {SyncMessagePort} from 'sync-message-port;
// or
// const {SyncMessagePort} = require('sync-message-port');
Expand All @@ -42,7 +42,7 @@ const localPort = new SyncMessagePort(channel.port1);

const worker = new Worker(`
import {workerData} = require('node:worker_threads');
import {SyncMessagePort} from 'sync-message-channel';
import {SyncMessagePort} from 'sync-message-port';
const remotePort = new SyncMessagePort(workerData.port);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "sync-message-channel",
"name": "sync-message-port",
"version": "1.0.0",
"description": "A Node.js communication port that can pass messages synchronously between workers",
"repository": "sass/sync-message-channel",
"repository": "sass/sync-message-port",
"author": "Google Inc.",
"license": "MIT",
"exports": {
Expand Down

0 comments on commit 4b30b3a

Please sign in to comment.