sweph 2.10.2-4 → 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.
- package/README.md +12 -11
- package/deps/swisseph/swecl.c +32 -42
- package/deps/swisseph/swehouse.c +5 -1
- package/deps/swisseph/sweph.c +194 -288
- package/deps/swisseph/sweph.h +3 -6
- package/deps/swisseph/swephexp.h +3 -3
- package/deps/swisseph/swephlib.c +11 -12
- package/deps/swisseph/swephlib.h +0 -2
- package/index.d.ts +7 -7
- package/package.json +2 -2
- package/src/functions/calc.cpp +1 -1
- package/src/functions/calc_pctr.cpp +1 -1
- package/src/functions/calc_ut.cpp +1 -1
- package/src/functions/deltat_ex.cpp +1 -1
- package/src/functions/fixstar.cpp +1 -1
- package/src/functions/fixstar2.cpp +1 -1
- package/src/functions/fixstar2_mag.cpp +1 -1
- package/src/functions/fixstar2_ut.cpp +1 -1
- package/src/functions/fixstar_mag.cpp +1 -1
- package/src/functions/fixstar_ut.cpp +1 -1
- package/src/functions/gauquelin_sector.cpp +1 -1
- package/src/functions/get_ayanamsa_ex.cpp +1 -1
- package/src/functions/get_ayanamsa_ex_ut.cpp +1 -1
- package/src/functions/get_orbital_elements.cpp +1 -1
- package/src/functions/heliacal_pheno_ut.cpp +1 -1
- package/src/functions/heliacal_ut.cpp +1 -1
- package/src/functions/helio_cross.cpp +1 -1
- package/src/functions/helio_cross_ut.cpp +1 -1
- package/src/functions/house_pos.cpp +1 -1
- package/src/functions/houses_armc_ex2.cpp +1 -1
- package/src/functions/houses_ex2.cpp +1 -1
- package/src/functions/lat_to_lmt.cpp +1 -1
- package/src/functions/lmt_to_lat.cpp +1 -1
- package/src/functions/lun_eclipse_how.cpp +1 -1
- package/src/functions/lun_eclipse_when.cpp +1 -1
- package/src/functions/lun_eclipse_when_loc.cpp +1 -1
- package/src/functions/lun_occult_when_glob.cpp +1 -1
- package/src/functions/lun_occult_when_loc.cpp +1 -1
- package/src/functions/lun_occult_where.cpp +1 -1
- package/src/functions/mooncross.cpp +1 -1
- package/src/functions/mooncross_node.cpp +1 -1
- package/src/functions/mooncross_node_ut.cpp +1 -1
- package/src/functions/mooncross_ut.cpp +1 -1
- package/src/functions/nod_aps.cpp +1 -1
- package/src/functions/nod_aps_ut.cpp +1 -1
- package/src/functions/orbit_max_min_true_distance.cpp +1 -1
- package/src/functions/pheno.cpp +1 -1
- package/src/functions/pheno_ut.cpp +1 -1
- package/src/functions/rise_trans.cpp +1 -1
- package/src/functions/rise_trans_true_hor.cpp +1 -1
- package/src/functions/set_ephe_path.cpp +1 -1
- package/src/functions/set_jpl_file.cpp +1 -1
- package/src/functions/sol_eclipse_how.cpp +1 -1
- package/src/functions/sol_eclipse_when_glob.cpp +1 -1
- package/src/functions/sol_eclipse_when_loc.cpp +1 -1
- package/src/functions/sol_eclipse_where.cpp +1 -1
- package/src/functions/solcross.cpp +1 -1
- package/src/functions/solcross_ut.cpp +1 -1
- package/src/functions/time_equ.cpp +1 -1
- package/src/functions/utc_to_jd.cpp +1 -1
- package/src/functions/vis_limit_mag.cpp +1 -1
|
@@ -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(),
|
|
@@ -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(),
|