Skip to content

Commit e091ed3

Browse files
committed
chore: rename Node.js SDK from @edgeparse/pdf to edgeparse, fix bin path
1 parent 99d2e98 commit e091ed3

8 files changed

Lines changed: 25 additions & 25 deletions

File tree

sdks/node/npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@edgeparse/pdf-darwin-arm64",
2+
"name": "edgeparse-darwin-arm64",
33
"version": "0.1.0",
44
"os": ["darwin"],
55
"cpu": ["arm64"],

sdks/node/npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@edgeparse/pdf-darwin-x64",
2+
"name": "edgeparse-darwin-x64",
33
"version": "0.1.0",
44
"os": ["darwin"],
55
"cpu": ["x64"],

sdks/node/npm/linux-arm64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@edgeparse/pdf-linux-arm64-gnu",
2+
"name": "edgeparse-linux-arm64-gnu",
33
"version": "0.1.0",
44
"os": ["linux"],
55
"cpu": ["arm64"],

sdks/node/npm/linux-x64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@edgeparse/pdf-linux-x64-gnu",
2+
"name": "edgeparse-linux-x64-gnu",
33
"version": "0.1.0",
44
"os": ["linux"],
55
"cpu": ["x64"],

sdks/node/npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@edgeparse/pdf-win32-x64-msvc",
2+
"name": "edgeparse-win32-x64-msvc",
33
"version": "0.1.0",
44
"os": ["win32"],
55
"cpu": ["x64"],

sdks/node/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/node/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@edgeparse/pdf",
2+
"name": "edgeparse",
33
"version": "0.1.0",
44
"description": "High-performance PDF extraction — Rust engine, Node.js interface",
55
"main": "./dist/index.cjs",
@@ -13,19 +13,19 @@
1313
}
1414
},
1515
"bin": {
16-
"edgeparse": "./dist/cli.cjs"
16+
"edgeparse": "./dist/cli.js"
1717
},
1818
"files": [
1919
"dist/",
2020
"npm/",
2121
"README.md"
2222
],
2323
"optionalDependencies": {
24-
"@edgeparse/pdf-darwin-arm64": "0.1.0",
25-
"@edgeparse/pdf-darwin-x64": "0.1.0",
26-
"@edgeparse/pdf-linux-arm64-gnu": "0.1.0",
27-
"@edgeparse/pdf-linux-x64-gnu": "0.1.0",
28-
"@edgeparse/pdf-win32-x64-msvc": "0.1.0"
24+
"edgeparse-darwin-arm64": "0.1.0",
25+
"edgeparse-darwin-x64": "0.1.0",
26+
"edgeparse-linux-arm64-gnu": "0.1.0",
27+
"edgeparse-linux-x64-gnu": "0.1.0",
28+
"edgeparse-win32-x64-msvc": "0.1.0"
2929
},
3030
"engines": {
3131
"node": ">=18"

sdks/node/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ function loadNative(): {
66
version: () => string;
77
} {
88
const platforms: Record<string, string> = {
9-
'linux-x64': '@edgeparse/pdf-linux-x64-gnu',
10-
'linux-arm64': '@edgeparse/pdf-linux-arm64-gnu',
11-
'darwin-x64': '@edgeparse/pdf-darwin-x64',
12-
'darwin-arm64': '@edgeparse/pdf-darwin-arm64',
13-
'win32-x64': '@edgeparse/pdf-win32-x64-msvc',
9+
'linux-x64': 'edgeparse-linux-x64-gnu',
10+
'linux-arm64': 'edgeparse-linux-arm64-gnu',
11+
'darwin-x64': 'edgeparse-darwin-x64',
12+
'darwin-arm64': 'edgeparse-darwin-arm64',
13+
'win32-x64': 'edgeparse-win32-x64-msvc',
1414
};
1515
const key = `${process.platform}-${process.arch}`;
1616
const pkg = platforms[key];

0 commit comments

Comments
 (0)