Skip to content

Commit

Permalink
v2.1. Use the now separate windows-network-interface-monitor package …
Browse files Browse the repository at this point in the history
…instead of including it inside this package.
  • Loading branch information
blu3mania committed Sep 27, 2022
1 parent c8d17f8 commit 1fa0928
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 282 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "update-dynamic-dns-with-vpn",
"type": "module",
"version": "2.0.0",
"version": "2.1.0",
"description": "Automatically update a dynamic DNS registration based on a given network interface, such as VPN",
"exports": "src/app.js",
"scripts": {
Expand Down Expand Up @@ -42,7 +42,8 @@
"chalk": "^5.0.1",
"ffi-napi": "^4.0.3",
"node-notifier": "^10.0.1",
"node-windows": "^1.0.0-beta.8"
"node-windows": "^1.0.0-beta.8",
"windows-network-interface-monitor": "^1.0.1"
},
"devDependencies": {}
}
5 changes: 3 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import * as url from 'url';
import path from 'path';
import url from 'url';

import NetworkInterfaceMonitor from 'windows-network-interface-monitor';
import notifier from 'node-notifier';

import {
Expand All @@ -8,7 +10,6 @@ import {
info,
verbose } from './print.js';
import DnsResolver from './dns-resolver.js';
import NetworkInterfaceMonitor from './network-interface-monitor.js';
import {
DnsProvider,
Dynu,
Expand Down
1 change: 1 addition & 0 deletions src/dns-provider.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import http from 'http';
import https from 'https';
import os from 'os';

//import { print } from './print.js';
import packageJson from '../package.json' assert {type: 'json'};

Expand Down
3 changes: 2 additions & 1 deletion src/install-service.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as url from 'url';
import path from 'path';
import url from 'url';

import { Service } from 'node-windows';

import {
Expand Down
276 changes: 0 additions & 276 deletions src/network-interface-monitor.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/uninstall-service.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as url from 'url';
import path from 'path';
import url from 'url';

import { Service } from 'node-windows';

import {
Expand Down

0 comments on commit 1fa0928

Please sign in to comment.