ootk 1.0.2 → 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 (42) hide show
  1. package/CHANGELOG.md +28 -27
  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/dist/ootk.js +1 -3850
  15. package/lib/{ootk.es.d.ts → ootk.d.ts} +3 -4
  16. package/lib/{ootk.es.js → ootk.js} +4 -4
  17. package/lib/ootk.js.map +1 -0
  18. package/lib/{ootk-sgp4.es.d.ts → sgp4.d.ts} +6 -140
  19. package/lib/{ootk-sgp4.es.js → sgp4.js} +545 -554
  20. package/lib/sgp4.js.map +1 -0
  21. package/lib/transforms.d.ts +58 -0
  22. package/lib/{ootk-transforms.es.js → transforms.js} +3 -3
  23. package/lib/transforms.js.map +1 -0
  24. package/lib/{ootk-utils.es.d.ts → utils/constants.d.ts} +6 -11
  25. package/lib/utils/constants.js +31 -0
  26. package/lib/utils/constants.js.map +1 -0
  27. package/lib/utils/types.d.ts +164 -0
  28. package/lib/utils/types.js +2 -0
  29. package/lib/utils/types.js.map +1 -0
  30. package/lib/utils.d.ts +33 -0
  31. package/lib/{ootk-utils.es.js → utils.js} +12 -5
  32. package/lib/utils.js.map +1 -0
  33. package/package.json +15 -16
  34. package/sandbox.html +8 -0
  35. package/dist/ootk-sgp4.js +0 -3471
  36. package/dist/ootk-sgp4.min.js +0 -34
  37. package/dist/ootk-transforms.js +0 -340
  38. package/dist/ootk-transforms.min.js +0 -1
  39. package/dist/ootk-utils.js +0 -149
  40. package/dist/ootk-utils.min.js +0 -1
  41. package/dist/ootk.min.js +0 -2223
  42. 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.2",
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>