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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `libsyncrpc`
# `@typescript/libsyncrpc`

This is a `NAPI`-based NPM package that provides synchronous IPC/RPC using a
simple line protocol. It uses [`NAPI-RS`](https://napi.rs) under the hood. See
Expand All @@ -7,7 +7,7 @@ their site for more details as needed.
## Example

```typescript
import { SyncRpcChannel } from "libsyncrpc";
import { SyncRpcChannel } from "@typescript/libsyncrpc";

const channel = new SyncRpcChannel("node", "./myscript.js");
const DECODER = new TextDecoder();
Expand Down
4 changes: 2 additions & 2 deletions README_tpl.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `libsyncrpc`
# `@typescript/libsyncrpc`

This is a `NAPI`-based NPM package that provides synchronous IPC/RPC using a
simple line protocol. It uses [`NAPI-RS`](https://napi.rs) under the hood. See
Expand All @@ -7,7 +7,7 @@ their site for more details as needed.
## Example

```typescript
import { SyncRpcChannel } from "libsyncrpc";
import { SyncRpcChannel } from "@typescript/libsyncrpc";

const channel = new SyncRpcChannel("node", "./myscript.js");
const DECODER = new TextDecoder();
Expand Down
42 changes: 21 additions & 21 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-android-arm64')
return require('@typescript/libsyncrpc-android-arm64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -86,7 +86,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-android-arm-eabi')
return require('@typescript/libsyncrpc-android-arm-eabi')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -102,7 +102,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-win32-x64-msvc')
return require('@typescript/libsyncrpc-win32-x64-msvc')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -114,7 +114,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-win32-ia32-msvc')
return require('@typescript/libsyncrpc-win32-ia32-msvc')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -126,7 +126,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-win32-arm64-msvc')
return require('@typescript/libsyncrpc-win32-arm64-msvc')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -141,7 +141,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-darwin-universal')
return require('@typescript/libsyncrpc-darwin-universal')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -153,7 +153,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-darwin-x64')
return require('@typescript/libsyncrpc-darwin-x64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -165,7 +165,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-darwin-arm64')
return require('@typescript/libsyncrpc-darwin-arm64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -181,7 +181,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-freebsd-x64')
return require('@typescript/libsyncrpc-freebsd-x64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -193,7 +193,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-freebsd-arm64')
return require('@typescript/libsyncrpc-freebsd-arm64')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -210,7 +210,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-x64-musl')
return require('@typescript/libsyncrpc-linux-x64-musl')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -222,7 +222,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-x64-gnu')
return require('@typescript/libsyncrpc-linux-x64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -236,7 +236,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-arm64-musl')
return require('@typescript/libsyncrpc-linux-arm64-musl')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -248,7 +248,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-arm64-gnu')
return require('@typescript/libsyncrpc-linux-arm64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -262,7 +262,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-arm-musleabihf')
return require('@typescript/libsyncrpc-linux-arm-musleabihf')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -274,7 +274,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-arm-gnueabihf')
return require('@typescript/libsyncrpc-linux-arm-gnueabihf')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -288,7 +288,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-riscv64-musl')
return require('@typescript/libsyncrpc-linux-riscv64-musl')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -300,7 +300,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-riscv64-gnu')
return require('@typescript/libsyncrpc-linux-riscv64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -313,7 +313,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-ppc64-gnu')
return require('@typescript/libsyncrpc-linux-ppc64-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -325,7 +325,7 @@ function requireNative() {
loadErrors.push(e)
}
try {
return require('libsyncrpc-linux-s390x-gnu')
return require('@typescript/libsyncrpc-linux-s390x-gnu')
} catch (e) {
loadErrors.push(e)
}
Expand All @@ -350,7 +350,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
}
if (!nativeBinding) {
try {
nativeBinding = require('libsyncrpc-wasm32-wasi')
nativeBinding = require('@typescript/libsyncrpc-wasm32-wasi')
} catch (err) {
if (process.env.NAPI_RS_FORCE_WASI) {
loadErrors.push(err)
Expand Down
4 changes: 2 additions & 2 deletions npm/darwin-arm64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-darwin-arm64`
# `@typescript/libsyncrpc-darwin-arm64`

This is the **aarch64-apple-darwin** binary for `libsyncrpc`
This is the **aarch64-apple-darwin** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-darwin-arm64",
"name": "@typescript/libsyncrpc-darwin-arm64",
"version": "0.0.0",
"cpu": [
"arm64"
Expand Down
4 changes: 2 additions & 2 deletions npm/darwin-x64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-darwin-x64`
# `@typescript/libsyncrpc-darwin-x64`

This is the **x86_64-apple-darwin** binary for `libsyncrpc`
This is the **x86_64-apple-darwin** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-darwin-x64",
"name": "@typescript/libsyncrpc-darwin-x64",
"version": "0.0.0",
"cpu": [
"x64"
Expand Down
4 changes: 2 additions & 2 deletions npm/linux-arm64-gnu/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-linux-arm64-gnu`
# `@typescript/libsyncrpc-linux-arm64-gnu`

This is the **aarch64-unknown-linux-gnu** binary for `libsyncrpc`
This is the **aarch64-unknown-linux-gnu** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-linux-arm64-gnu",
"name": "@typescript/libsyncrpc-linux-arm64-gnu",
"version": "0.0.0",
"cpu": [
"arm64"
Expand Down
4 changes: 2 additions & 2 deletions npm/linux-arm64-musl/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-linux-arm64-musl`
# `@typescript/libsyncrpc-linux-arm64-musl`

This is the **aarch64-unknown-linux-musl** binary for `libsyncrpc`
This is the **aarch64-unknown-linux-musl** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-linux-arm64-musl",
"name": "@typescript/libsyncrpc-linux-arm64-musl",
"version": "0.0.0",
"cpu": [
"arm64"
Expand Down
4 changes: 2 additions & 2 deletions npm/linux-x64-gnu/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-linux-x64-gnu`
# `@typescript/libsyncrpc-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `libsyncrpc`
This is the **x86_64-unknown-linux-gnu** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-linux-x64-gnu",
"name": "@typescript/libsyncrpc-linux-x64-gnu",
"version": "0.0.0",
"cpu": [
"x64"
Expand Down
4 changes: 2 additions & 2 deletions npm/linux-x64-musl/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-linux-x64-musl`
# `@typescript/libsyncrpc-linux-x64-musl`

This is the **x86_64-unknown-linux-musl** binary for `libsyncrpc`
This is the **x86_64-unknown-linux-musl** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-linux-x64-musl",
"name": "@typescript/libsyncrpc-linux-x64-musl",
"version": "0.0.0",
"cpu": [
"x64"
Expand Down
4 changes: 2 additions & 2 deletions npm/win32-arm64-msvc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-win32-arm64-msvc`
# `@typescript/libsyncrpc-win32-arm64-msvc`

This is the **aarch64-pc-windows-msvc** binary for `libsyncrpc`
This is the **aarch64-pc-windows-msvc** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-win32-arm64-msvc",
"name": "@typescript/libsyncrpc-win32-arm64-msvc",
"version": "0.0.0",
"cpu": [
"arm64"
Expand Down
4 changes: 2 additions & 2 deletions npm/win32-x64-msvc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `libsyncrpc-win32-x64-msvc`
# `@typescript/libsyncrpc-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `libsyncrpc`
This is the **x86_64-pc-windows-msvc** binary for `@typescript/libsyncrpc`
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc-win32-x64-msvc",
"name": "@typescript/libsyncrpc-win32-x64-msvc",
"version": "0.0.0",
"cpu": [
"x64"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libsyncrpc",
"name": "@typescript/libsyncrpc",
"version": "0.0.0",
"main": "index.js",
"types": "index.d.ts",
Expand Down
Loading