edgeparse 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeparse-darwin-arm64",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "os": [
5
5
  "darwin"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeparse-darwin-x64",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "os": [
5
5
  "darwin"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeparse-linux-arm64-gnu",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeparse-linux-x64-gnu",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "edgeparse-win32-x64-msvc",
3
+ "version": "0.2.0",
4
+ "os": [
5
+ "win32"
6
+ ],
7
+ "cpu": [
8
+ "x64"
9
+ ],
10
+ "main": "edgeparse-node.win32-x64-msvc.node",
11
+ "files": [
12
+ "edgeparse-node.win32-x64-msvc.node"
13
+ ],
14
+ "description": "edgeparse native addon for win32-x64-msvc",
15
+ "license": "Apache-2.0",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/raphaelmansuy/edgeparse.git",
19
+ "directory": "sdks/node/npm/win32-x64-msvc"
20
+ },
21
+ "homepage": "https://github.com/raphaelmansuy/edgeparse#readme"
22
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeparse-win32-x64-msvc",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "os": [
5
5
  "win32"
6
6
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeparse",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "High-performance PDF extraction — Rust engine, Node.js interface",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "bin": {
16
- "edgeparse": "./dist/cli.js"
16
+ "edgeparse": "dist/cli.js"
17
17
  },
18
18
  "files": [
19
19
  "dist/",
@@ -21,11 +21,11 @@
21
21
  "README.md"
22
22
  ],
23
23
  "optionalDependencies": {
24
- "edgeparse-darwin-arm64": "0.1.1",
25
- "edgeparse-darwin-x64": "0.1.1",
26
- "edgeparse-linux-arm64-gnu": "0.1.1",
27
- "edgeparse-linux-x64-gnu": "0.1.1",
28
- "edgeparse-win32-x64-msvc": "0.1.1"
24
+ "edgeparse-darwin-arm64": "0.2.0",
25
+ "edgeparse-darwin-x64": "0.2.0",
26
+ "edgeparse-linux-arm64-gnu": "0.2.0",
27
+ "edgeparse-linux-x64-gnu": "0.2.0",
28
+ "edgeparse-win32-x64-msvc": "0.2.0"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18"
@@ -34,7 +34,7 @@
34
34
  "homepage": "https://github.com/raphaelmansuy/edgeparse#readme",
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "https://github.com/raphaelmansuy/edgeparse.git",
37
+ "url": "git+https://github.com/raphaelmansuy/edgeparse.git",
38
38
  "directory": "sdks/node"
39
39
  },
40
40
  "keywords": [
@@ -1,47 +0,0 @@
1
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
- }) : x)(function(x) {
4
- if (typeof require !== "undefined") return require.apply(this, arguments);
5
- throw Error('Dynamic require of "' + x + '" is not supported');
6
- });
7
-
8
- // src/index.ts
9
- function loadNative() {
10
- const platforms = {
11
- "linux-x64": "@edgeparse/pdf-linux-x64-gnu",
12
- "linux-arm64": "@edgeparse/pdf-linux-arm64-gnu",
13
- "darwin-x64": "@edgeparse/pdf-darwin-x64",
14
- "darwin-arm64": "@edgeparse/pdf-darwin-arm64",
15
- "win32-x64": "@edgeparse/pdf-win32-x64-msvc"
16
- };
17
- const key = `${process.platform}-${process.arch}`;
18
- const pkg = platforms[key];
19
- if (!pkg) throw new Error(`edgeparse: unsupported platform: ${key}`);
20
- return __require(pkg);
21
- }
22
- var native;
23
- function getNative() {
24
- if (!native) {
25
- native = loadNative();
26
- }
27
- return native;
28
- }
29
- function convert(inputPath, options) {
30
- const n = getNative();
31
- return n.convert(inputPath, options ? {
32
- format: options.format,
33
- pages: options.pages,
34
- password: options.password,
35
- reading_order: options.readingOrder,
36
- table_method: options.tableMethod,
37
- image_output: options.imageOutput
38
- } : void 0);
39
- }
40
- function version() {
41
- return getNative().version();
42
- }
43
-
44
- export {
45
- convert,
46
- version
47
- };