sweph 2.10.3-2 → 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.
package/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
1
  This program and the accompanying materials are made available
2
- under the terms of the GNU GENERAL PUBLIC LICENSE 2.0 which is
2
+ under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE 3.0 which is
3
3
  available at https://www.gnu.org/licenses/agpl-3.0.html, or the
4
4
  GNU LESSER GENERAL PUBLIC LICENSE 3.0 which is available at
5
5
  https://www.gnu.org/licenses/lgpl-3.0.html depending on the
package/README.md CHANGED
@@ -76,6 +76,8 @@ If you find any inaccuracy or bug in this library, or if you find an upstream up
76
76
 
77
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.
78
78
 
79
- ## Author
79
+ ## Copyright
80
80
 
81
- Copyright © 2021-2022, Timotej Valentin Rojko
81
+ Copyright © 2021-2023, Timotej Valentin Rojko
82
+
83
+ This library is offered free of charge for any type of use, including commercial use, however, if you're an individual or a company using this library in commercial products and/or services, consider subscribing to the appropriate sponsorship level [here](https://github.com/sponsors/timotejroiko) and get priority support for your business.
package/binding.gyp CHANGED
@@ -4,36 +4,37 @@
4
4
  "target_name": "sweph",
5
5
  "sources": [
6
6
  "src/sweph.cpp",
7
- "<!@(node -p \"const { readdirSync, readFileSync, writeFileSync } = require('fs'); const file = readdirSync('./src/functions').map((x,i) => readFileSync('./src/functions/' + x, 'utf8').replace(/args/g, 'args' + i).replace('#include <sweph.h>', '')).reduce((a,b) => a + b, '#include <sweph.h>'); writeFileSync('./src/functions.cpp', file, 'utf8'); 'src/functions.cpp'\")"
7
+ "src/functions.cpp"
8
8
  ],
9
9
  "include_dirs": [
10
10
  "<!(node -p \"require('node-addon-api').include_dir\")",
11
11
  "src"
12
12
  ],
13
- 'dependencies': [
14
- 'deps/swisseph.gyp:swisseph'
13
+ "dependencies": [
14
+ "swisseph"
15
15
  ],
16
16
  "defines": [
17
17
  "NAPI_DISABLE_CPP_EXCEPTIONS"
18
+ ]
19
+ },
20
+ {
21
+ "target_name": "swisseph",
22
+ 'type': "static_library",
23
+ "sources": [
24
+ "swisseph/swecl.c",
25
+ "swisseph/swedate.c",
26
+ "swisseph/swehel.c",
27
+ "swisseph/swehouse.c",
28
+ "swisseph/swejpl.c",
29
+ "swisseph/swemmoon.c",
30
+ "swisseph/swemplan.c",
31
+ "swisseph/sweph.c",
32
+ "swisseph/swephlib.c"
18
33
  ],
19
- "cflags": [
20
- "-flto",
21
- "-Ofast",
22
- "-pipe"
23
- ],
24
- "cflags_cc": [
25
- "-flto",
26
- "-Ofast",
27
- "-pipe"
28
- ],
29
- "msvs_settings": {
30
- "VCCLCompilerTool": {
31
- "AdditionalOptions": [
32
- "/O2",
33
- "/GL",
34
- "/Gw"
35
- ]
36
- }
34
+ "direct_dependent_settings": {
35
+ "include_dirs": [
36
+ "swisseph"
37
+ ]
37
38
  }
38
39
  }
39
40
  ]
package/index.d.ts CHANGED
@@ -649,7 +649,7 @@ declare module "sweph" {
649
649
  * ```
650
650
  * ```
651
651
  */
652
- data: JdEtUd;
652
+ data: JdEtUt;
653
653
  }
654
654
 
655
655
  interface VisLimitMag extends Flag, Error {
@@ -1756,7 +1756,7 @@ declare module "sweph" {
1756
1756
  dip: number
1757
1757
  ]
1758
1758
 
1759
- type JdEtUd = [
1759
+ type JdEtUt = [
1760
1760
  /**
1761
1761
  * Julian day in ephemeris/terrestrial time
1762
1762
  */
package/package.json CHANGED
@@ -1,19 +1,7 @@
1
1
  {
2
2
  "name": "sweph",
3
- "version": "2.10.3-2",
3
+ "version": "2.10.3-3",
4
4
  "description": "The definitive Swiss Ephemeris bindings for Node.js",
5
- "main": "index.js",
6
- "typings": "./index.d.ts",
7
- "exports": {
8
- "require": "./index.js",
9
- "import": "./index.mjs"
10
- },
11
- "scripts": {
12
- "test": "echo \"Error: no test specified\" && exit 0"
13
- },
14
- "repository": {
15
- "url": "https://github.com/timotejroiko/sweph.git"
16
- },
17
5
  "keywords": [
18
6
  "sweph",
19
7
  "swiss",
@@ -23,17 +11,38 @@
23
11
  "swisseph",
24
12
  "node"
25
13
  ],
14
+ "homepage": "https://github.com/timotejroiko/sweph",
26
15
  "bugs": "https://github.com/timotejroiko/sweph/issues",
16
+ "repository": "github:timotejroiko/sweph",
17
+ "funding": "https://github.com/timotejroiko/sweph?sponsor=1",
18
+ "license": "(AGPL-3.0-or-later OR LGPL-3.0-or-later)",
19
+ "author": "Timotej Valentin Rojko",
20
+ "exports": {
21
+ "require": "./index.js",
22
+ "import": "./index.mjs"
23
+ },
24
+ "main": "index.js",
25
+ "types": "./index.d.ts",
26
+ "files": [
27
+ "./index.js",
28
+ "./index.mjs",
29
+ "./index.d.ts",
30
+ "./constants.js",
31
+ "./binding.gyp",
32
+ "./swisseph",
33
+ "./src/functions",
34
+ "./src/sweph.cpp",
35
+ "./src/sweph.h"
36
+ ],
37
+ "scripts": {
38
+ "preinstall": "node -e \"const { readdirSync, readFileSync, writeFileSync } = require('fs'); const file = readdirSync('./src/functions').map((x,i) => readFileSync('./src/functions/' + x, 'utf8').replace(/args/g, 'args' + i).replace('#include <sweph.h>', '')).reduce((a,b) => a + b, '#include <sweph.h>'); writeFileSync('./src/functions.cpp', file, 'utf8');\"",
39
+ "install": "node-gyp rebuild && npm run test",
40
+ "test": "node -e \"const s = require('./'); const c = s.calc(2222222,0,4); console.log('OK')\""
41
+ },
27
42
  "dependencies": {
28
43
  "node-addon-api": "*"
29
44
  },
30
- "funding": {
31
- "type": "patreon",
32
- "url": "https://patreon.com/timotejroiko"
33
- },
34
- "author": "Timotej Valentin Rojko",
35
- "license": "(AGPL-3.0-or-later OR LGPL-3.0-or-later)",
36
45
  "devDependencies": {
37
- "eslint": "^8.28.0"
46
+ "eslint": "^8.44.0"
38
47
  }
39
48
  }
@@ -1,5 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: timotejroiko
4
- patreon: timotejroiko
5
- custom: https://paypal.me/timotejroiko
package/deps/swisseph.gyp DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "targets": [
3
- {
4
- "target_name": "swisseph",
5
- "type": "static_library",
6
- "direct_dependent_settings": {
7
- "include_dirs": [
8
- "swisseph"
9
- ]
10
- },
11
- "sources": [
12
- "swisseph/swecl.c",
13
- "swisseph/swedate.c",
14
- "swisseph/swehel.c",
15
- "swisseph/swehouse.c",
16
- "swisseph/swejpl.c",
17
- "swisseph/swemmoon.c",
18
- "swisseph/swemplan.c",
19
- "swisseph/sweph.c",
20
- "swisseph/swephlib.c"
21
- ],
22
- "cflags": [
23
- "-flto",
24
- "-Ofast",
25
- "-pipe"
26
- ],
27
- "cflags_cc": [
28
- "-flto",
29
- "-Ofast",
30
- "-pipe"
31
- ],
32
- "msvs_settings": {
33
- "VCCLCompilerTool": {
34
- "AdditionalOptions": [
35
- "/O2",
36
- "/GL",
37
- "/Gw"
38
- ]
39
- }
40
- }
41
- }
42
- ]
43
- }
package/docs.gif DELETED
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes