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
@@ -0,0 +1,22 @@
1
+ {
2
+ "targets": {
3
+ "debug": {
4
+ "outFile": "build/debug.wasm",
5
+ "textFile": "build/debug.wat",
6
+ "sourceMap": true,
7
+ "debug": true
8
+ },
9
+ "release": {
10
+ "outFile": "build/release.wasm",
11
+ "textFile": "build/release.wat",
12
+ "sourceMap": true,
13
+ "optimizeLevel": 3,
14
+ "shrinkLevel": 0,
15
+ "converge": false,
16
+ "noAssert": false
17
+ }
18
+ },
19
+ "options": {
20
+ "bindings": "esm"
21
+ }
22
+ }
@@ -0,0 +1,5 @@
1
+ // The entry file of your WebAssembly module.
2
+
3
+ export function add(a: i32, b: i32): i32 {
4
+ return a + b;
5
+ }
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <script type="module">
5
+ import { add } from "./build/release.js";
6
+ document.body.innerText = add(1, 2);
7
+ </script>
8
+ </head>
9
+ <body></body>
10
+ </html>
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "module",
3
+ "exports": {
4
+ ".": {
5
+ "import": "./build/release.js",
6
+ "types": "./build/release.d.ts"
7
+ }
8
+ },
9
+ "scripts": {
10
+ "asbuild:debug": "asc assembly/index.ts --target debug",
11
+ "asbuild:release": "asc assembly/index.ts --target release",
12
+ "asbuild": "npm run asbuild:debug && npm run asbuild:release",
13
+ "test": "node tests",
14
+ "start": "npx serve ."
15
+ },
16
+ "devDependencies": {
17
+ "assemblyscript": "^0.20.13"
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ import assert from "assert";
2
+ import { add } from "../build/debug.js";
3
+ assert.strictEqual(add(1, 2), 3);
4
+ console.log("ok");
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "module",
3
+ "exports": {
4
+ ".": {
5
+ "import": "./build/release.js",
6
+ "types": "./build/release.d.ts"
7
+ }
8
+ },
9
+ "scripts": {
10
+ "asbuild:debug": "asc --bindings esm assembly/index.ts --target debug",
11
+ "asbuild:release": "asc --bindings esm assembly/index.ts --target release",
12
+ "asbuild": "npm run asbuild:debug && npm run asbuild:release",
13
+ "test": "node tests",
14
+ "start": "npx serve ."
15
+ },
16
+ "devDependencies": {
17
+ "assemblyscript": "^0.20.13"
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ import assert from "assert";
2
+ import { add } from "../build/debug.js";
3
+ assert.strictEqual(add(1, 2), 3);
4
+ console.log("ok");
package/codecov.yml ADDED
@@ -0,0 +1,21 @@
1
+ codecov:
2
+ require_ci_to_pass: yes
3
+ bot: Code Coverage Bot
4
+
5
+ coverage:
6
+ precision: 2
7
+ round: down
8
+ range: "70...100"
9
+
10
+ parsers:
11
+ gcov:
12
+ branch_detection:
13
+ conditional: yes
14
+ loop: yes
15
+ method: no
16
+ macro: no
17
+
18
+ comment:
19
+ layout: "reach,diff,flags,files,footer"
20
+ behavior: default
21
+ require_changes: no
@@ -24,7 +24,6 @@
24
24
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
25
  * SOFTWARE.
26
26
  */
27
- import { Sgp4 } from './ootk-sgp4.es.js';
28
- import { Transforms } from './ootk-transforms.es.js';
29
- import { Utils } from './ootk-utils.es.js';
30
- export { Sgp4, Transforms, Utils };
27
+ export { Sgp4 } from './sgp4';
28
+ export { Transforms } from './transforms';
29
+ export { Utils } from './utils';