Skip to content

Commit

Permalink
new0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
foxthefox committed Nov 17, 2022
1 parent 1d99e7c commit 36c870c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ This library is not, in any way, affiliated or related to AVM GmbH. Use it at yo
* no production dependencies

## Getting Started
it is an ES module with named exports

### Prerequisites
* nodejs >10
* nodejs >14 (may work with older version, but tested with > 14)
* fritzbox FW >6.69

### Installing
Expand All @@ -28,14 +29,9 @@ npm install fritzdect-aha-nodejs

## Changelog
### **WORK IN PROGRESS**
* 0.9.1 (foxthefox) first release on npm
* 0.0.1 (foxthefox) initial release

## Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.

## License
Copyright (c) 2022 foxthefox <[email protected]>

Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Fritz from './lib/fritz_ahaapi.js';
import FritzEmu from './lib/fritz_mockserver_new.js';
//const Fritz = require('./lib/fritz_ahaapi.js');
//const FritzEmu = require('./lib/fritz_mockserver_new.js');
import FritzEmu from './lib/fritz_mockserver.js';

export { Fritz, FritzEmu };
2 changes: 1 addition & 1 deletion lib/fritz_ahaapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* refactored version 30.12.2021
* first version 19.12.2020
*
* part of fritzdect-aha-nodejs 16.11.2022 as ES module
*/

import { pbkdf2Sync, createHash } from 'crypto';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fritzdectaha.js → lib/old/fritzdectaha.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* refactored version 30.12.2021
* first version 19.12.2020
* part of fritzdect-aha-nodejs 16.11.2022 as ES module
*
*/

//import crypto from 'crypto';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fritzdect-aha-nodejs",
"version": "0.9.0",
"version": "0.9.1",
"description": "NodeJS library using the AHA api of Fritzbox to control DECT smarthome devices.",
"main": "index.js",
"type": "module",
Expand Down
5 changes: 3 additions & 2 deletions test/start_mockserver.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const server = require('./fritz_mockserver_new.js');
import { FritzEmu } from '../index.js';

server.setupHttpServer(function() {});
const emulation = new FritzEmu();
emulation.setupHttpServer(function() {});

0 comments on commit 36c870c

Please sign in to comment.