Skip to content

Commit aeba473

Browse files
committed
Updated to use proper JSON module import syntax from node.js v18+ (https://nodejs.org/docs/latest-v18.x/api/esm.html#json-modules)
1 parent 5e2daa2 commit aeba473

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: windows-latest
1414
strategy:
1515
matrix:
16-
node: [16, 18, 20]
16+
node: [18, 20, 22]
1717

1818
steps:
1919
- name: Checkout repository

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# update-dynamic-dns-with-vpn
22
[![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-yellow)](https://raw.githubusercontent.com/blu3mania/update-dynamic-dns-with-vpn/main/LICENSE)
3-
[![node.js 16+](https://img.shields.io/badge/node.js-16.0.0-blue?logo=node.js)](https://nodejs.org/en/)
3+
[![node.js 18+](https://img.shields.io/badge/node.js-18.0.0-blue?logo=node.js)](https://nodejs.org/en/)
44
[![Latest Release](https://img.shields.io/github/v/release/blu3mania/update-dynamic-dns-with-vpn)](https://github.com/blu3mania/update-dynamic-dns-with-vpn/releases/latest)
55

66
Automatically update a dynamic DNS registration based on a given network interface, such as VPN. **Note**,

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
DuckDNS,
1818
YDNS,
1919
NoIP } from './dns-provider.js';
20-
import settings from './settings.json' assert {type: 'json'};
20+
import settings from './settings.json' with {type: 'json'};
2121

2222
const NotificationType = {
2323
DnsRegistration: 'dns registration',

src/dns-provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import https from 'https';
33
import os from 'os';
44

55
//import { print } from './print.js';
6-
import packageJson from '../package.json' assert {type: 'json'};
6+
import packageJson from '../package.json' with {type: 'json'};
77

88
const Vendor = {
99
Dynu: 'dynu',

src/install-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
warning,
88
info,
99
verbose } from './print.js';
10-
import settings from './settings.json' assert {type: 'json'};
10+
import settings from './settings.json' with {type: 'json'};
1111

1212
main();
1313

src/uninstall-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Service } from 'node-windows';
66
import {
77
info,
88
verbose } from './print.js';
9-
import settings from './settings.json' assert {type: 'json'};
9+
import settings from './settings.json' with {type: 'json'};
1010

1111
main();
1212

0 commit comments

Comments
 (0)