lightdrift-libraw 1.0.0-alpha.3 → 1.0.0-alpha.4
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.
- package/README.md +78 -13
- package/binding.gyp +37 -18
- package/lib/index.d.ts +636 -630
- package/lib/index.js +15 -1
- package/package.json +41 -38
package/lib/index.js
CHANGED
|
@@ -8,7 +8,21 @@ try {
|
|
|
8
8
|
try {
|
|
9
9
|
librawAddon = require("../build/Debug/libraw_addon");
|
|
10
10
|
} catch (err2) {
|
|
11
|
-
throw new Error(
|
|
11
|
+
throw new Error(
|
|
12
|
+
"LibRaw addon not built. Please ensure the native module is compiled.\n" +
|
|
13
|
+
"\n" +
|
|
14
|
+
"If using Docker/pnpm, try:\n" +
|
|
15
|
+
" pnpm rebuild lightdrift-libraw\n" +
|
|
16
|
+
"Or set enable-pre-post-scripts=true in .npmrc\n" +
|
|
17
|
+
"\n" +
|
|
18
|
+
"If on Linux/Mac, ensure LibRaw is installed:\n" +
|
|
19
|
+
" Alpine: apk add libraw-dev\n" +
|
|
20
|
+
" Debian: apt-get install libraw-dev\n" +
|
|
21
|
+
" Mac: brew install libraw\n" +
|
|
22
|
+
"\n" +
|
|
23
|
+
"Build error: " +
|
|
24
|
+
err2.message
|
|
25
|
+
);
|
|
12
26
|
}
|
|
13
27
|
}
|
|
14
28
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightdrift-libraw",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"description": "Node.js Native Addon for LibRaw - Process RAW image files with JavaScript",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "node-gyp rebuild",
|
|
9
|
+
"rebuild": "npm run clean && npm run build",
|
|
10
|
+
"test": "node test/index.js",
|
|
11
|
+
"test:all": "node test/index.js full",
|
|
12
|
+
"test:quick": "node test/index.js quick",
|
|
13
|
+
"test:smoke": "node test/index.js smoke",
|
|
14
|
+
"test:static": "node test/index.js static",
|
|
15
|
+
"test:errors": "node test/index.js errors",
|
|
16
|
+
"test:buffers": "node test/index.js buffers",
|
|
17
|
+
"test:buffer-creation": "node test/run-buffer-tests.js",
|
|
18
|
+
"test:config": "node test/index.js config",
|
|
19
|
+
"test:comprehensive": "node test/comprehensive.test.js",
|
|
20
|
+
"test:image-processing": "node test/image-processing.test.js",
|
|
21
|
+
"test:format-conversion": "node test/format-conversion.test.js",
|
|
22
|
+
"test:thumbnail-extraction": "node test/thumbnail-extraction.test.js",
|
|
23
|
+
"test:jpeg-conversion": "node test/jpeg-conversion.test.js",
|
|
24
|
+
"test:legacy": "npm run test:basic && npm run test:formats && npm run test:performance",
|
|
25
|
+
"test:basic": "node test/test.js",
|
|
26
|
+
"test:formats": "node test/all-formats.test.js",
|
|
27
|
+
"test:performance": "node test/performance.test.js",
|
|
28
|
+
"test:samples": "node test/test-samples.js",
|
|
29
|
+
"test:compare": "node test/compare-samples.js",
|
|
30
|
+
"pretest": "npm run build",
|
|
31
|
+
"prepublishOnly": "npm run test",
|
|
32
|
+
"preinstall": "node-gyp-build-optional-packages || echo 'No prebuilt binaries available'",
|
|
33
|
+
"install": "node-gyp-build || node-gyp rebuild",
|
|
34
|
+
"clean": "node-gyp clean",
|
|
35
|
+
"setup:github": "node scripts/github-setup.js",
|
|
36
|
+
"docs:generate": "node scripts/generate-docs.js",
|
|
37
|
+
"upgrade:libraw": "node scripts/upgrade-libraw.js",
|
|
38
|
+
"extract:thumbnails": "node scripts/extract-thumbnails.js",
|
|
39
|
+
"convert:jpeg": "node scripts/batch-jpeg-conversion.js",
|
|
40
|
+
"version:check": "node -e \"console.log('Package:', require('./package.json').version); console.log('Node:', process.version);\"",
|
|
41
|
+
"publish:check": "npm run test && npm run docs:generate",
|
|
42
|
+
"publish:dry": "npm publish --dry-run"
|
|
43
|
+
},
|
|
7
44
|
"dependencies": {
|
|
8
45
|
"node-addon-api": "^7.0.0",
|
|
46
|
+
"node-gyp-build": "^4.8.0",
|
|
9
47
|
"sharp": "^0.33.5"
|
|
10
48
|
},
|
|
11
49
|
"devDependencies": {
|
|
@@ -71,40 +109,5 @@
|
|
|
71
109
|
"bugs": {
|
|
72
110
|
"url": "https://github.com/unique01082/lightdrift-libraw/issues"
|
|
73
111
|
},
|
|
74
|
-
"homepage": "https://github.com/unique01082/lightdrift-libraw#readme"
|
|
75
|
-
|
|
76
|
-
"build": "node-gyp rebuild",
|
|
77
|
-
"rebuild": "npm run clean && npm run build",
|
|
78
|
-
"test": "node test/index.js",
|
|
79
|
-
"test:all": "node test/index.js full",
|
|
80
|
-
"test:quick": "node test/index.js quick",
|
|
81
|
-
"test:smoke": "node test/index.js smoke",
|
|
82
|
-
"test:static": "node test/index.js static",
|
|
83
|
-
"test:errors": "node test/index.js errors",
|
|
84
|
-
"test:buffers": "node test/index.js buffers",
|
|
85
|
-
"test:buffer-creation": "node test/run-buffer-tests.js",
|
|
86
|
-
"test:config": "node test/index.js config",
|
|
87
|
-
"test:comprehensive": "node test/comprehensive.test.js",
|
|
88
|
-
"test:image-processing": "node test/image-processing.test.js",
|
|
89
|
-
"test:format-conversion": "node test/format-conversion.test.js",
|
|
90
|
-
"test:thumbnail-extraction": "node test/thumbnail-extraction.test.js",
|
|
91
|
-
"test:jpeg-conversion": "node test/jpeg-conversion.test.js",
|
|
92
|
-
"test:legacy": "npm run test:basic && npm run test:formats && npm run test:performance",
|
|
93
|
-
"test:basic": "node test/test.js",
|
|
94
|
-
"test:formats": "node test/all-formats.test.js",
|
|
95
|
-
"test:performance": "node test/performance.test.js",
|
|
96
|
-
"test:samples": "node test/test-samples.js",
|
|
97
|
-
"test:compare": "node test/compare-samples.js",
|
|
98
|
-
"pretest": "npm run build",
|
|
99
|
-
"install": "node-gyp rebuild",
|
|
100
|
-
"clean": "node-gyp clean",
|
|
101
|
-
"setup:github": "node scripts/github-setup.js",
|
|
102
|
-
"docs:generate": "node scripts/generate-docs.js",
|
|
103
|
-
"upgrade:libraw": "node scripts/upgrade-libraw.js",
|
|
104
|
-
"extract:thumbnails": "node scripts/extract-thumbnails.js",
|
|
105
|
-
"convert:jpeg": "node scripts/batch-jpeg-conversion.js",
|
|
106
|
-
"version:check": "node -e \"console.log('Package:', require('./package.json').version); console.log('Node:', process.version);\"",
|
|
107
|
-
"publish:check": "npm run test && npm run docs:generate",
|
|
108
|
-
"publish:dry": "npm publish --dry-run"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
112
|
+
"homepage": "https://github.com/unique01082/lightdrift-libraw#readme"
|
|
113
|
+
}
|