sweph 2.10.3-1 → 2.10.3-3

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 (75) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +15 -12
  3. package/binding.gyp +22 -21
  4. package/index.d.ts +9 -9
  5. package/package.json +29 -20
  6. package/src/functions/calc.cpp +1 -1
  7. package/src/functions/calc_pctr.cpp +1 -1
  8. package/src/functions/calc_ut.cpp +1 -1
  9. package/src/functions/deltat_ex.cpp +1 -1
  10. package/src/functions/fixstar.cpp +1 -1
  11. package/src/functions/fixstar2.cpp +1 -1
  12. package/src/functions/fixstar2_mag.cpp +1 -1
  13. package/src/functions/fixstar2_ut.cpp +1 -1
  14. package/src/functions/fixstar_mag.cpp +1 -1
  15. package/src/functions/fixstar_ut.cpp +1 -1
  16. package/src/functions/gauquelin_sector.cpp +1 -1
  17. package/src/functions/get_ayanamsa_ex.cpp +1 -1
  18. package/src/functions/get_ayanamsa_ex_ut.cpp +1 -1
  19. package/src/functions/get_orbital_elements.cpp +1 -1
  20. package/src/functions/heliacal_pheno_ut.cpp +1 -1
  21. package/src/functions/heliacal_ut.cpp +1 -1
  22. package/src/functions/helio_cross.cpp +1 -1
  23. package/src/functions/helio_cross_ut.cpp +1 -1
  24. package/src/functions/house_pos.cpp +1 -1
  25. package/src/functions/houses_armc_ex2.cpp +1 -1
  26. package/src/functions/houses_ex2.cpp +1 -1
  27. package/src/functions/lat_to_lmt.cpp +1 -1
  28. package/src/functions/lmt_to_lat.cpp +1 -1
  29. package/src/functions/lun_eclipse_how.cpp +1 -1
  30. package/src/functions/lun_eclipse_when.cpp +1 -1
  31. package/src/functions/lun_eclipse_when_loc.cpp +1 -1
  32. package/src/functions/lun_occult_when_glob.cpp +1 -1
  33. package/src/functions/lun_occult_when_loc.cpp +1 -1
  34. package/src/functions/lun_occult_where.cpp +1 -1
  35. package/src/functions/mooncross.cpp +1 -1
  36. package/src/functions/mooncross_node.cpp +1 -1
  37. package/src/functions/mooncross_node_ut.cpp +1 -1
  38. package/src/functions/mooncross_ut.cpp +1 -1
  39. package/src/functions/nod_aps.cpp +1 -1
  40. package/src/functions/nod_aps_ut.cpp +1 -1
  41. package/src/functions/orbit_max_min_true_distance.cpp +1 -1
  42. package/src/functions/pheno.cpp +1 -1
  43. package/src/functions/pheno_ut.cpp +1 -1
  44. package/src/functions/rise_trans.cpp +1 -1
  45. package/src/functions/rise_trans_true_hor.cpp +1 -1
  46. package/src/functions/sol_eclipse_how.cpp +1 -1
  47. package/src/functions/sol_eclipse_when_glob.cpp +1 -1
  48. package/src/functions/sol_eclipse_when_loc.cpp +1 -1
  49. package/src/functions/sol_eclipse_where.cpp +1 -1
  50. package/src/functions/solcross.cpp +1 -1
  51. package/src/functions/solcross_ut.cpp +1 -1
  52. package/src/functions/time_equ.cpp +1 -1
  53. package/src/functions/utc_to_jd.cpp +1 -1
  54. package/src/functions/vis_limit_mag.cpp +1 -1
  55. package/{deps/swisseph → swisseph}/swecl.c +6430 -6430
  56. package/{deps/swisseph → swisseph}/swehouse.c +3140 -3140
  57. package/{deps/swisseph → swisseph}/sweph.c +8615 -8615
  58. package/{deps/swisseph → swisseph}/sweph.h +849 -849
  59. package/{deps/swisseph → swisseph}/swephexp.h +1025 -1025
  60. package/{deps/swisseph → swisseph}/swephlib.c +4634 -4634
  61. package/{deps/swisseph → swisseph}/swephlib.h +189 -189
  62. package/.github/FUNDING.yml +0 -5
  63. package/deps/swisseph.gyp +0 -43
  64. package/docs.gif +0 -0
  65. /package/{deps/swisseph → swisseph}/swedate.c +0 -0
  66. /package/{deps/swisseph → swisseph}/swedate.h +0 -0
  67. /package/{deps/swisseph → swisseph}/swehel.c +0 -0
  68. /package/{deps/swisseph → swisseph}/swehouse.h +0 -0
  69. /package/{deps/swisseph → swisseph}/swejpl.c +0 -0
  70. /package/{deps/swisseph → swisseph}/swejpl.h +0 -0
  71. /package/{deps/swisseph → swisseph}/swemmoon.c +0 -0
  72. /package/{deps/swisseph → swisseph}/swemplan.c +0 -0
  73. /package/{deps/swisseph → swisseph}/swemptab.h +0 -0
  74. /package/{deps/swisseph → swisseph}/swenut2000a.h +0 -0
  75. /package/{deps/swisseph → swisseph}/sweodef.h +0 -0
@@ -13,7 +13,7 @@ Napi::Value sweph_pheno(const Napi::CallbackInfo& info) {
13
13
  return env.Null();
14
14
  }
15
15
  double attr [20];
16
- char serr [AS_MAXCH];
16
+ char serr [AS_MAXCH] = "";
17
17
  int32 flag = swe_pheno(
18
18
  info[0].As<Napi::Number>().DoubleValue(),
19
19
  info[1].As<Napi::Number>().Int32Value(),
@@ -13,7 +13,7 @@ Napi::Value sweph_pheno_ut(const Napi::CallbackInfo& info) {
13
13
  return env.Null();
14
14
  }
15
15
  double attr [20];
16
- char serr [AS_MAXCH];
16
+ char serr [AS_MAXCH] = "";
17
17
  int32 flag = swe_pheno_ut(
18
18
  info[0].As<Napi::Number>().DoubleValue(),
19
19
  info[1].As<Napi::Number>().Int32Value(),
@@ -23,7 +23,7 @@ Napi::Value sweph_rise_trans(const Napi::CallbackInfo& info) {
23
23
  return env.Null();
24
24
  }
25
25
  double ret;
26
- char serr [AS_MAXCH];
26
+ char serr [AS_MAXCH] = "";
27
27
  int32 flag = swe_rise_trans(
28
28
  info[0].As<Napi::Number>().DoubleValue(),
29
29
  info[1].As<Napi::Number>().Int32Value(),
@@ -24,7 +24,7 @@ Napi::Value sweph_rise_trans_true_hor(const Napi::CallbackInfo& info) {
24
24
  return env.Null();
25
25
  }
26
26
  double ret;
27
- char serr [AS_MAXCH];
27
+ char serr [AS_MAXCH] = "";
28
28
  int32 flag = swe_rise_trans_true_hor(
29
29
  info[0].As<Napi::Number>().DoubleValue(),
30
30
  info[1].As<Napi::Number>().Int32Value(),
@@ -18,7 +18,7 @@ Napi::Value sweph_sol_eclipse_how(const Napi::CallbackInfo& info) {
18
18
  return env.Null();
19
19
  }
20
20
  double attr [20];
21
- char serr [AS_MAXCH];
21
+ char serr [AS_MAXCH] = "";
22
22
  int32 flag = swe_sol_eclipse_how(
23
23
  info[0].As<Napi::Number>().DoubleValue(),
24
24
  info[1].As<Napi::Number>().Int32Value(),
@@ -14,7 +14,7 @@ Napi::Value sweph_sol_eclipse_when_glob(const Napi::CallbackInfo& info) {
14
14
  return env.Null();
15
15
  }
16
16
  double ret [10];
17
- char serr [AS_MAXCH];
17
+ char serr [AS_MAXCH] = "";
18
18
  int32 flag = swe_sol_eclipse_when_glob(
19
19
  info[0].As<Napi::Number>().DoubleValue(),
20
20
  info[1].As<Napi::Number>().Int32Value(),
@@ -20,7 +20,7 @@ Napi::Value sweph_sol_eclipse_when_loc(const Napi::CallbackInfo& info) {
20
20
  }
21
21
  double ret [10];
22
22
  double attr [20];
23
- char serr [AS_MAXCH];
23
+ char serr [AS_MAXCH] = "";
24
24
  int32 flag = swe_sol_eclipse_when_loc(
25
25
  info[0].As<Napi::Number>().DoubleValue(),
26
26
  info[1].As<Napi::Number>().Int32Value(),
@@ -13,7 +13,7 @@ Napi::Value sweph_sol_eclipse_where(const Napi::CallbackInfo& info) {
13
13
  }
14
14
  double geopos [10];
15
15
  double attr [20];
16
- char serr [AS_MAXCH];
16
+ char serr [AS_MAXCH] = "";
17
17
  int32 flag = swe_sol_eclipse_where(
18
18
  info[0].As<Napi::Number>().DoubleValue(),
19
19
  info[1].As<Napi::Number>().Int32Value(),
@@ -12,7 +12,7 @@ Napi::Value sweph_solcross(const Napi::CallbackInfo& info) {
12
12
  if(!sweph_type_check(args, info)) {
13
13
  return env.Null();
14
14
  }
15
- char serr [AS_MAXCH];
15
+ char serr [AS_MAXCH] = "";
16
16
  double jd_et = swe_solcross(
17
17
  info[0].As<Napi::Number>().DoubleValue(),
18
18
  info[1].As<Napi::Number>().DoubleValue(),
@@ -12,7 +12,7 @@ Napi::Value sweph_solcross_ut(const Napi::CallbackInfo& info) {
12
12
  if(!sweph_type_check(args, info)) {
13
13
  return env.Null();
14
14
  }
15
- char serr [AS_MAXCH];
15
+ char serr [AS_MAXCH] = "";
16
16
  double jd_ut = swe_solcross_ut(
17
17
  info[0].As<Napi::Number>().DoubleValue(),
18
18
  info[1].As<Napi::Number>().DoubleValue(),
@@ -11,7 +11,7 @@ Napi::Value sweph_time_equ(const Napi::CallbackInfo& info) {
11
11
  return env.Null();
12
12
  }
13
13
  double e;
14
- char serr [AS_MAXCH];
14
+ char serr [AS_MAXCH] = "";
15
15
  int32 flag = swe_time_equ(
16
16
  info[0].As<Napi::Number>().DoubleValue(),
17
17
  &e,
@@ -17,7 +17,7 @@ Napi::Value sweph_utc_to_jd(const Napi::CallbackInfo& info) {
17
17
  return env.Null();
18
18
  }
19
19
  double ret [2];
20
- char serr [AS_MAXCH];
20
+ char serr [AS_MAXCH] = "";
21
21
  int32 flag = swe_utc_to_jd(
22
22
  info[0].As<Napi::Number>().Int32Value(),
23
23
  info[1].As<Napi::Number>().Int32Value(),
@@ -30,7 +30,7 @@ Napi::Value sweph_vis_limit_mag(const Napi::CallbackInfo& info) {
30
30
  Napi::TypeError::New(env, args[4].second).ThrowAsJavaScriptException();
31
31
  return env.Null();
32
32
  }
33
- char serr [AS_MAXCH];
33
+ char serr [AS_MAXCH] = "";
34
34
  double ret [8];
35
35
  int32 flag = swe_vis_limit_mag(
36
36
  info[0].As<Napi::Number>().DoubleValue(),