sweph 2.10.3-1 → 2.10.3-2

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.
Files changed (59) hide show
  1. package/README.md +12 -11
  2. package/deps/swisseph/swecl.c +6430 -6430
  3. package/deps/swisseph/swehouse.c +3140 -3140
  4. package/deps/swisseph/sweph.c +8615 -8615
  5. package/deps/swisseph/sweph.h +849 -849
  6. package/deps/swisseph/swephexp.h +1025 -1025
  7. package/deps/swisseph/swephlib.c +4634 -4634
  8. package/deps/swisseph/swephlib.h +189 -189
  9. package/index.d.ts +7 -7
  10. package/package.json +2 -2
  11. package/src/functions/calc.cpp +1 -1
  12. package/src/functions/calc_pctr.cpp +1 -1
  13. package/src/functions/calc_ut.cpp +1 -1
  14. package/src/functions/deltat_ex.cpp +1 -1
  15. package/src/functions/fixstar.cpp +1 -1
  16. package/src/functions/fixstar2.cpp +1 -1
  17. package/src/functions/fixstar2_mag.cpp +1 -1
  18. package/src/functions/fixstar2_ut.cpp +1 -1
  19. package/src/functions/fixstar_mag.cpp +1 -1
  20. package/src/functions/fixstar_ut.cpp +1 -1
  21. package/src/functions/gauquelin_sector.cpp +1 -1
  22. package/src/functions/get_ayanamsa_ex.cpp +1 -1
  23. package/src/functions/get_ayanamsa_ex_ut.cpp +1 -1
  24. package/src/functions/get_orbital_elements.cpp +1 -1
  25. package/src/functions/heliacal_pheno_ut.cpp +1 -1
  26. package/src/functions/heliacal_ut.cpp +1 -1
  27. package/src/functions/helio_cross.cpp +1 -1
  28. package/src/functions/helio_cross_ut.cpp +1 -1
  29. package/src/functions/house_pos.cpp +1 -1
  30. package/src/functions/houses_armc_ex2.cpp +1 -1
  31. package/src/functions/houses_ex2.cpp +1 -1
  32. package/src/functions/lat_to_lmt.cpp +1 -1
  33. package/src/functions/lmt_to_lat.cpp +1 -1
  34. package/src/functions/lun_eclipse_how.cpp +1 -1
  35. package/src/functions/lun_eclipse_when.cpp +1 -1
  36. package/src/functions/lun_eclipse_when_loc.cpp +1 -1
  37. package/src/functions/lun_occult_when_glob.cpp +1 -1
  38. package/src/functions/lun_occult_when_loc.cpp +1 -1
  39. package/src/functions/lun_occult_where.cpp +1 -1
  40. package/src/functions/mooncross.cpp +1 -1
  41. package/src/functions/mooncross_node.cpp +1 -1
  42. package/src/functions/mooncross_node_ut.cpp +1 -1
  43. package/src/functions/mooncross_ut.cpp +1 -1
  44. package/src/functions/nod_aps.cpp +1 -1
  45. package/src/functions/nod_aps_ut.cpp +1 -1
  46. package/src/functions/orbit_max_min_true_distance.cpp +1 -1
  47. package/src/functions/pheno.cpp +1 -1
  48. package/src/functions/pheno_ut.cpp +1 -1
  49. package/src/functions/rise_trans.cpp +1 -1
  50. package/src/functions/rise_trans_true_hor.cpp +1 -1
  51. package/src/functions/sol_eclipse_how.cpp +1 -1
  52. package/src/functions/sol_eclipse_when_glob.cpp +1 -1
  53. package/src/functions/sol_eclipse_when_loc.cpp +1 -1
  54. package/src/functions/sol_eclipse_where.cpp +1 -1
  55. package/src/functions/solcross.cpp +1 -1
  56. package/src/functions/solcross_ut.cpp +1 -1
  57. package/src/functions/time_equ.cpp +1 -1
  58. package/src/functions/utc_to_jd.cpp +1 -1
  59. package/src/functions/vis_limit_mag.cpp +1 -1
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Sweph
2
2
 
3
3
  The definitive Swiss Ephemeris bindings for Node.js
4
- Everything you need to create Astrology and Astronomy applications with javascript and node
4
+ Everything you need to create Astrology and Astronomy applications with JavaScript and node
5
5
 
6
6
  * 100% API coverage
7
7
  * Built-in Typescript declarations and ESM exports
@@ -9,9 +9,9 @@ Everything you need to create Astrology and Astronomy applications with javascri
9
9
  * Version matched
10
10
  * Made with the N-API
11
11
 
12
- [Official programmers documentation for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/swisseph/swephprg.htm)
12
+ [Official programmer's documentation for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/swisseph/swephprg.htm)
13
13
  [Official guide for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/ftp/swisseph/doc/swisseph.htm)
14
- [Sweph on Github](https://github.com/timotejroiko/sweph)
14
+ [Sweph on GitHub](https://github.com/timotejroiko/sweph)
15
15
  [Sweph on NPM](https://npmjs.com/package/sweph)
16
16
 
17
17
  ## Installation and Licensing
@@ -36,7 +36,7 @@ If you own a professional license for the Swiss Ephemeris, you may use any versi
36
36
 
37
37
  This library is version locked to the Swiss Ephemeris in addition to its own revisions. For example, version `2.10.1-1` corresponds to the Swiss Ephemeris version `2.10.1` and this library's revision `1`.
38
38
 
39
- Updates to this library will be released under new revisions, while updates to Swiss Ephemeris will be released under matching semver versions.
39
+ Updates to this library will be released under new revisions, while updates to Swiss Ephemeris will be released under matching SemVer versions.
40
40
 
41
41
  ## Documentation
42
42
 
@@ -61,20 +61,21 @@ For advanced usage, the following files can also be found:
61
61
 
62
62
  * astxxx folders - files for individual asteroids (600 years)
63
63
  * longfiles folder - files for individual asteroids (6000 years)
64
- * jplfiles folder - files for nasa's jpl ephemerides
64
+ * jplfiles folder - files for NASA's JPL ephemerides
65
65
  * sat folder - files for planetary moons
66
66
 
67
- More information can be found in the [Swiss Ephemeris files documentation](https://www.astro.com/ftp/swisseph/doc/swisseph.htm#_Toc58931065).
67
+ More information can be found in the [Swiss Ephemeris files documentation](https://www.astro.com/ftp/swisseph/doc/swisseph.htm).
68
68
 
69
69
  ## Contributing
70
70
 
71
- If you find any innacuracy or bug in this library, or if you find an update that is not yet included in this library, feel free to open an issue or a pull request.
71
+ If you find any inaccuracy or bug in this library, or if you find an upstream update that is not yet included in this library, feel free to open an issue or a pull request.
72
72
 
73
- ## Known Issues and Caveats
73
+ ## Limitations
74
74
 
75
- * Due to how the underlying C library operates, you may find that the `error` field returned by some functions will contain random data even if there is no actual error. This can happen when existing memory buffers are recycled therefore the user must always check the returned flag values as per the Swiss Ephemeris documentation.
76
- * While worker_threads are supported, the underlying C library is single threaded and its settings are global. Functions such as `set_ephe_path()` will affect the entire process, including worker_threads. While you can still use worker_threads as long as you dont change settings from other threads in the middle of calculations, true thread-safe multithreading can be achieved using child_process instead.
75
+ * While worker_threads are supported, the underlying C library is single threaded and contains process-wide settings. Functions such as `set_ephe_path()` or `set_sid_mode()` will affect the entire process, including all worker_threads. While you can still use worker_threads as long as you don't change settings from other threads in the middle of calculations, true thread-safe multithreading can only be achieved using child_process.
76
+
77
+ * This library is a C/C++ add-on designed for Node.JS only, it will not work in browsers, other JS engines or in any other environment that does not support native C/C++ add-ons. In order to install this library, the target system must have the necessary build tools installed, such as `python`, `make` and `gcc` on Linux, `xcode` on Mac, `visual c++` on Windows, and/or other equivalent solutions.
77
78
 
78
79
  ## Author
79
80
 
80
- Copyright © 2021, Timotej Valentin Rojko
81
+ Copyright © 2021-2022, Timotej Valentin Rojko