ootk 1.0.4 → 1.0.6

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 (44) hide show
  1. package/CHANGELOG.md +19 -33
  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/dist/ootk.js +1 -3850
  14. package/lib/ootk.d.ts +3 -4
  15. package/lib/ootk.js +3 -4
  16. package/lib/ootk.js.map +1 -1
  17. package/lib/{ootk-sgp4.d.ts → sgp4.d.ts} +6 -140
  18. package/lib/{ootk-sgp4.js → sgp4.js} +545 -555
  19. package/lib/sgp4.js.map +1 -0
  20. package/lib/transforms.d.ts +58 -0
  21. package/lib/{ootk-transforms.js → transforms.js} +3 -4
  22. package/lib/transforms.js.map +1 -0
  23. package/lib/{ootk-utils.d.ts → utils/constants.d.ts} +6 -11
  24. package/lib/utils/constants.js +31 -0
  25. package/lib/utils/constants.js.map +1 -0
  26. package/lib/utils/types.d.ts +164 -0
  27. package/lib/utils/types.js +2 -0
  28. package/lib/utils/types.js.map +1 -0
  29. package/lib/utils.d.ts +33 -0
  30. package/lib/{ootk-utils.js → utils.js} +12 -6
  31. package/lib/utils.js.map +1 -0
  32. package/package.json +15 -16
  33. package/sandbox.html +8 -0
  34. package/dist/ootk-sgp4.js +0 -3471
  35. package/dist/ootk-sgp4.min.js +0 -34
  36. package/dist/ootk-transforms.js +0 -340
  37. package/dist/ootk-transforms.min.js +0 -1
  38. package/dist/ootk-utils.js +0 -149
  39. package/dist/ootk-utils.min.js +0 -1
  40. package/dist/ootk.min.js +0 -60
  41. package/lib/ootk-sgp4.js.map +0 -1
  42. package/lib/ootk-transforms.d.ts +0 -141
  43. package/lib/ootk-transforms.js.map +0 -1
  44. package/lib/ootk-utils.js.map +0 -1
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "ootk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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,27 @@
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",
62
67
  "eslint": "^7.9.0",
63
- "html-loader": "^1.3.2",
64
68
  "jest": "^26.4.2",
65
- "terser-webpack-plugin": "^5.1.1",
66
- "threads-plugin": "^1.4.0",
69
+ "node-fetch": "^2.6.7",
67
70
  "typescript": "^4.1.3",
68
- "typescript-eslint": "^0.0.1-alpha.0",
69
71
  "webpack": "^5.11.1",
70
72
  "webpack-cli": "^4.3.1"
71
73
  },
72
74
  "homepage": "https://github.com/thkruz/ootk",
73
75
  "directories": {
74
76
  "lib": "lib",
75
- "test": "test"
76
- },
77
- "config": {
78
- "commitizen": {
79
- "path": "./node_modules/cz-conventional-changelog"
80
- }
77
+ "src": "src",
78
+ "test": "test",
79
+ "wasm": "asc/build"
81
80
  }
82
81
  }
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>