ootk 1.0.3 → 1.0.7

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 (46) hide show
  1. package/CHANGELOG.md +20 -26
  2. package/LICENSE.MD +21 -21
  3. package/README.md +128 -128
  4. package/asc/asconfig.json +22 -0
  5. package/asc/assembly/index.ts +1143 -0
  6. package/asc/ex/asconfig.json +22 -0
  7. package/asc/ex/assembly/index.ts +5 -0
  8. package/asc/ex/index.html +10 -0
  9. package/asc/ex/package.json +19 -0
  10. package/asc/ex/tests/index.js +4 -0
  11. package/asc/package.json +19 -0
  12. package/asc/tests/index.js +4 -0
  13. package/codecov.yml +21 -0
  14. package/{lib/ootk.es.d.ts → dist/ootk.d.ts} +3 -4
  15. package/dist/ootk.js +1 -3850
  16. package/{lib/ootk-sgp4.es.d.ts → dist/sgp4.d.ts} +6 -140
  17. package/dist/transforms.d.ts +58 -0
  18. package/dist/utils.d.ts +33 -0
  19. package/lib/{ootk.es.js → ootk.d.ts} +3 -4
  20. package/lib/{ootk-utils.es.d.ts → ootk.js} +6 -11
  21. package/lib/ootk.js.map +1 -0
  22. package/lib/sgp4.d.ts +89 -0
  23. package/lib/{ootk-sgp4.es.js → sgp4.js} +545 -528
  24. package/lib/sgp4.js.map +1 -0
  25. package/lib/transforms.d.ts +58 -0
  26. package/lib/{ootk-transforms.es.js → transforms.js} +3 -3
  27. package/lib/transforms.js.map +1 -0
  28. package/lib/utils/constants.d.ts +30 -0
  29. package/lib/utils/constants.js +31 -0
  30. package/lib/utils/constants.js.map +1 -0
  31. package/lib/utils/types.d.ts +164 -0
  32. package/lib/utils/types.js +2 -0
  33. package/lib/utils/types.js.map +1 -0
  34. package/lib/utils.d.ts +33 -0
  35. package/lib/{ootk-utils.es.js → utils.js} +12 -5
  36. package/lib/utils.js.map +1 -0
  37. package/package.json +17 -17
  38. package/sandbox.html +8 -0
  39. package/dist/ootk-sgp4.js +0 -3471
  40. package/dist/ootk-sgp4.min.js +0 -34
  41. package/dist/ootk-transforms.js +0 -340
  42. package/dist/ootk-transforms.min.js +0 -1
  43. package/dist/ootk-utils.js +0 -149
  44. package/dist/ootk-utils.min.js +0 -1
  45. package/dist/ootk.min.js +0 -60
  46. package/lib/ootk-transforms.es.d.ts +0 -141
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "ootk",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "description": "Orbital Object Toolkit including SGP4 Propagator and Coordinate Transforms",
5
5
  "main": "dist/ootk.js",
6
6
  "scripts": {
7
- "build": "node ./scripts/cleanup.js && tsc",
8
- "build:umd": "node ./scripts/cleanup.js && tsc && node node_modules/webpack/bin/webpack.js --config ./scripts/umd.js",
7
+ "build": "node ./scripts/cleanup.js && tsc -p tsconfig.json && node --openssl-legacy-provider node_modules/webpack/bin/webpack.js --config ./scripts/webpack.js",
8
+ "build:legacy": "node ./scripts/cleanup.js && tsc && node node_modules/webpack/bin/webpack.js --config ./scripts/webpack.js",
9
+ "asbuild:debug": "asc asc/assembly/index.ts --target debug",
10
+ "asbuild:release": "asc asc/assembly/index.ts --target release",
11
+ "asbuild": "npm run asbuild:debug && npm run asbuild:release",
9
12
  "lint": "eslint src",
10
13
  "lint:fix": "eslint src --fix",
11
14
  "lint:test": "eslint test",
15
+ "sandbox": "http-server ./",
12
16
  "test": "jest -c scripts/jest-std.json",
13
17
  "test:coverage": "jest --coverage -c scripts/jest-std.json",
14
18
  "test:performance": "node test/performance/timing.test.mjs",
@@ -31,7 +35,7 @@
31
35
  "url": "https://github.com/thkruz/ootk/issues"
32
36
  },
33
37
  "prettier": {
34
- "printWidth": 100,
38
+ "printWidth": 120,
35
39
  "tabWidth": 2,
36
40
  "useTabs": false,
37
41
  "semi": true,
@@ -51,32 +55,28 @@
51
55
  "@babel/core": "^7.11.6",
52
56
  "@babel/plugin-transform-runtime": "^7.12.10",
53
57
  "@babel/preset-env": "^7.11.5",
58
+ "@types/jest": "^28.1.5",
59
+ "@types/node-fetch": "^2.6.2",
54
60
  "@typescript-eslint/eslint-plugin": "^4.13.0",
55
61
  "@typescript-eslint/parser": "^4.13.0",
62
+ "assemblyscript": "^0.20.13",
56
63
  "auto-changelog": "^2.2.1",
57
64
  "babel-eslint": "^10.1.0",
58
65
  "babel-loader": "^8.2.2",
59
66
  "codecov": "^3.8.1",
60
- "commitizen": "^4.2.2",
61
- "cz-conventional-changelog": "^3.3.0",
67
+ "copy-webpack-plugin": "^11.0.0",
62
68
  "eslint": "^7.9.0",
63
- "html-loader": "^1.3.2",
64
69
  "jest": "^26.4.2",
65
- "terser-webpack-plugin": "^5.1.1",
66
- "threads-plugin": "^1.4.0",
70
+ "node-fetch": "^2.6.7",
67
71
  "typescript": "^4.1.3",
68
- "typescript-eslint": "^0.0.1-alpha.0",
69
72
  "webpack": "^5.11.1",
70
- "webpack-cli": "^4.3.1"
73
+ "webpack-cli": "^4.10.0"
71
74
  },
72
75
  "homepage": "https://github.com/thkruz/ootk",
73
76
  "directories": {
74
77
  "lib": "lib",
75
- "test": "test"
76
- },
77
- "config": {
78
- "commitizen": {
79
- "path": "./node_modules/cz-conventional-changelog"
80
- }
78
+ "src": "src",
79
+ "test": "test",
80
+ "wasm": "asc/build"
81
81
  }
82
82
  }
package/sandbox.html ADDED
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head>
3
+ <script src="./dist/ootk.js"></script>
4
+ <script src="./test/performance/satellite.js"></script>
5
+ <script src="./test/performance/performance.js"></script>
6
+ </head>
7
+ <body></body>
8
+ </html>