Skip to content

Commit

Permalink
build: ⬆️ bump ootk-core
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Mar 30, 2024
1 parent 2aaa94d commit 9ac1464
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 60 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npm i ootk
### Loading the Library

```js
import { Sgp4 } as Ootk from 'ootk';
import { Sgp4, Satellite } from 'ootk';
...
const satrec = Sgp4.createSatrec(line1, line2, 'wgs72', 'i');
```
Expand All @@ -49,16 +49,16 @@ const satrec = Sgp4.createSatrec(line1, line2, 'wgs72', 'i');
### Propagating a TLE

```js
const satrec = Ootk.Sgp4.createSatrec(line1, line2);
const state = Ootk.Sgp4.propagate(satrec, time);
const satrec = Sgp4.createSatrec(line1, line2);
const state = Sgp4.propagate(satrec, time);
console.log(state.position); // [x, y, z]
console.log(state.velocity); // [vx, vy, vz]
```

### Creating a Satellite

```js
const sat = new Ootk.Sat({ name: 'Test', tle1, tle2 });
const sat = new Satellite({ name: 'Test', tle1, tle2 });
console.log(sat.intlDes); // International Designator
console.log(sat.epochYear); // Epoch Year
console.log(sat.epochDay); // Epoch Day
Expand Down
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const jestConfig = {
coverageReporters: ['lcov', 'html', 'text'],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/lib/', '/commonjs/', '/test/', '/scripts/', '/coverage/'],
globalSetup: '<rootDir>/test/lib/globalSetup.js',
transformIgnorePatterns: ['node_modules/(?!(ootk-core))'],
};

export default jestConfig;
104 changes: 52 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.24.1",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"auto-changelog": "^2.4.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"eslint": "^8.57.0",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-jsdoc": "^48.2.2",
"fix-esm-import-path": "^1.5.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
Expand All @@ -55,7 +55,7 @@
"typescript": "^5.4.3"
},
"dependencies": {
"ootk-core": "^1.2.0"
"ootk-core": "^1.2.1"
},
"homepage": "https://github.com/thkruz/ootk"
}

0 comments on commit 9ac1464

Please sign in to comment.