@peakfinder/headless 0.1.0 → 1.0.1

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/LICENSE.txt ADDED
@@ -0,0 +1,97 @@
1
+ End User License Agreement (EULA)
2
+
3
+ Last Updated: Dec 22, 2025
4
+
5
+ This End User License Agreement (“Agreement”) is a legal agreement between you (“Licensee”) and PeakFinder Ltd (“Licensor”) governing the use of the
6
+ PeakFinder Headless software package, including any associated closed-source binary components, documentation, and updates (collectively, the “Software”).
7
+
8
+ By installing, copying, or using the Software, you agree to be bound by this Agreement. If you do not agree, do not install or use the Software.
9
+
10
+ 1. License Grant
11
+
12
+ Subject to the terms of this Agreement, Licensor grants Licensee a limited, non-exclusive, non-transferable, non-sublicensable license to:
13
+ - Install and use the Software solely as part of Licensee’s internal applications or products
14
+ - Use the Software in production environments
15
+ - Distribute the Software only as integrated into Licensee’s applications, provided the closed-source binaries are not exposed or made separately accessible
16
+
17
+ 2. Closed-Source Binaries
18
+
19
+ The Software includes proprietary, closed-source binary components (“Binary Components”).
20
+ - Source code for Binary Components is not provided
21
+ - Reverse engineering, decompilation, disassembly, or extraction of the Binary Components is strictly prohibited
22
+ - The Binary Components may contain license enforcement, telemetry, or security mechanisms
23
+
24
+ 3. Restrictions
25
+
26
+ Licensee shall not, directly or indirectly:
27
+ - Reverse engineer, decompile, or disassemble the Software or Binary Components
28
+ - Modify, adapt, translate, or create derivative works of the Binary Components
29
+ - Redistribute, sell, lease, sublicense, or commercially exploit the Software except as expressly permitted
30
+ - Remove or alter copyright, trademark, or proprietary notices
31
+ - Use the Software to develop a competing product
32
+
33
+ 4. Open-Source Components
34
+
35
+ The Software may include or depend on third-party open-source software components.
36
+ - Such components are licensed under their respective licenses
37
+ - Nothing in this Agreement limits your rights under applicable open-source licenses
38
+ - In the event of a conflict, the open-source license terms prevail for those components only
39
+
40
+ 5. Ownership
41
+
42
+ - The Software is licensed, not sold
43
+ - Licensor retains all right, title, and interest in and to the Software, including Binary Components
44
+ - No rights are granted except as expressly stated in this Agreement
45
+
46
+ 6. Updates and Changes
47
+
48
+ Licensor may:
49
+ - Provide updates, patches, or enhancements at its discretion
50
+ - Modify or discontinue features or functionality
51
+ - Require acceptance of updated license terms as a condition of continued use
52
+
53
+ 7. Telemetry and License Enforcement (Optional)
54
+
55
+ The Software may collect limited technical information, such as:
56
+ - Version usage
57
+ - License validity
58
+ - Error diagnostics
59
+
60
+ This data is used solely for licensing, security, and product improvement purposes.
61
+
62
+ 8. Termination
63
+
64
+ This Agreement terminates automatically if Licensee breaches any term.
65
+
66
+ Upon termination, Licensee must:
67
+ - Cease all use of the Software
68
+ - Delete all copies of the Software and Binary Components
69
+ - Sections relating to ownership, restrictions, disclaimers, and liability survive termination.
70
+
71
+ 9. Disclaimer of Warranties
72
+
73
+ THE SOFTWARE IS PROVIDED “AS IS” AND “AS AVAILABLE” WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
74
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
75
+
76
+ 10. Limitation of Liability
77
+
78
+ TO THE MAXIMUM EXTENT PERMITTED BY LAW, LICENSOR SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR LOST PROFITS
79
+ DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY.
80
+
81
+ 11. Governing Law
82
+
83
+ This Agreement shall be governed by the laws of Switzerland, without regard to conflict-of-law principles.
84
+
85
+ 12. Entire Agreement
86
+
87
+ This Agreement constitutes the entire agreement between the parties regarding the Software and supersedes all prior agreements or understandings.
88
+
89
+ Contact Information
90
+
91
+ PeakFinder Ltd
92
+ Eglistrasse 8
93
+ 8004 Zurich
94
+
95
+ www.peakfinder.com
96
+ info@peakfinder.com
97
+
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # node-napi-addon
2
+
3
+ Native Node.js addon built with Node-API.
4
+
5
+ ## Install
6
+ ```bash
7
+ npm install node-napi-addon
package/binding.gyp ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "targets": [
3
+ {
4
+ "target_name": "pf-headless-native",
5
+ "sources": [ "src/addon.cpp" ],
6
+ "include_dirs": [
7
+ "<!@(node -p \"require('node-addon-api').include\")"
8
+ ],
9
+ "dependencies": [
10
+ "<!(node -p \"require('node-addon-api').gyp\")"
11
+ ],
12
+ "cflags_cc": [ "-O3" ],
13
+ "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
14
+ "conditions": [
15
+ ["OS=='mac'", {
16
+ "xcode_settings": {
17
+ "OTHER_CPLUSPLUSFLAGS": [ "-std=c++20" ]
18
+ }
19
+ }],
20
+ ["OS=='win'", {
21
+ "msvs_settings": {
22
+ "VCCLCompilerTool": {
23
+ "ExceptionHandling": 0
24
+ }
25
+ }
26
+ }]
27
+ ]
28
+ }
29
+ ]
30
+ }
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ 'use strict'
2
+
3
+ const path = require('path')
4
+ const load = require('node-gyp-build')
5
+
6
+ module.exports = load(path.join(__dirname))
package/package.json CHANGED
@@ -1,12 +1,31 @@
1
1
  {
2
2
  "name": "@peakfinder/headless",
3
- "version": "0.1.0",
4
- "description": "PeakFinder headless functions for getting 'true' sun and moon times by using a digital elevation model for the calculations ",
5
- "license": "ISC",
6
- "author": "Fabio Soldati, PeakFinder",
7
- "type": "commonjs",
8
- "main": "index.js",
3
+ "version": "1.0.1",
4
+ "description": "PeakFinder headless functions for getting 'true' sun and moon times by using a digital elevation model for the calculations.",
5
+ "os": ["linux", "darwin", "win32"],
6
+ "cpu": ["x64", "arm64"],
9
7
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
8
+ "prebuild": "prebuildify --napi --strip",
9
+ "install": "node-gyp rebuild",
10
+ "build": "node-gyp configure build",
11
+ "test": "node --napi-modules ./test/test_index.js"
12
+ },
13
+ "main": "index.js",
14
+ "files": [
15
+ "index.js",
16
+ "binding.gyp",
17
+ "prebuilds/**/*",
18
+ "LICENSSE.txt"
19
+ ],
20
+ "gypfile": true,
21
+ "dependencies": {
22
+ "node-addon-api": "^7.0.0",
23
+ "node-gyp-build": "^4.8.0"
24
+ },
25
+ "devDependencies": {
26
+ "prebuildify": "^6.0.0",
27
+ "node-gyp": "^10.0.0"
11
28
  }
12
29
  }
30
+
31
+