Skip to content

Commit

Permalink
Changed imports for compatibility with deno, standardized quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
woodendoors7 committed Sep 28, 2023
1 parent f5fc0b0 commit 781eae8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 85 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

md
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog!

<h2>v1.1.2</h2>

[NPM](https://www.npmjs.com/package/minecraftstatuspinger/v/1.1.2)

- 🛠️ Changed imports to prefix with `node:` so this package can be properly used with [Deno](https://deno.com/).
- ⚙️ Standardized quotes from single quotes to double quotes

<h2>v1.1.1</h2>

[NPM](https://www.npmjs.com/package/minecraftstatuspinger/v/1.1.1)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div align="center">
<img src="https://papers.floppa.hair/mcstatuspinger/mcblock.png" alt="big MinecraftStatusPinger logo" width="600" border="0px"/>
</div>
<h3><code style="color: yellowgreen">A modern, small, performant, zero dependency TypeScript library made for fast pinging and status-getting of Minecraft servers. (1.7+)</code></h3>
<h3><code style="color: yellowgreen">A modern, small, performant, zero dependency TypeScript library made for fast pinging and status-getting of Minecraft servers</code></h3>

<hr>

Expand All @@ -18,7 +18,7 @@

## Getting started
### Requirements
- NodeJS (used to run JavaScript code)
- NodeJS or Deno (used to run JavaScript code)
- NPM (used to install Node packages)

### Installation
Expand Down Expand Up @@ -81,7 +81,7 @@ console.log(result);
* <b>`latency?:`</b> number
> The time it takes to send and receive a payload from the server. Will be null if `ping` option is false.
* <b>`status?:`</b> DynamicObject
> Parsed status response from the sever. Will be null if the status fails to parse, or if disableJSONParse is true. <a href="https://github.com/woodendoors7/MinecraftStatusPinger/wiki/Valid-server-response-examples">Example of a valid Status Response.</a>
> Parsed status response from the sever. Will be null if the status fails to parse, or if disableJSONParse is true. <a href="https://pinger.floppa.hair/responses/">Example of a valid Status Response.</a>
* <b>`statusRaw:`</b> string
> Raw status response in the form of a string. Useful when `status` fails to parse.
Expand All @@ -103,7 +103,7 @@ console.log(result);

### Changelog

**[View Changelog](https://github.com/woodendoors7/MinecraftStatusPinger/wiki/Version-Changelog)**,
**[View Changelog](https://pinger.floppa.hair/changelog/)**,
Latest version: <i><code>v1.1.1</code></i>


Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"url": "https://github.com/woodendoors7/MinecraftStatusPinger.git"
},
"files": [
"dist"
"dist",
"README.md",
"CHANGELOG.md"
],
"version": "1.1.1",
"version": "1.1.2",
"description": "The best modern library for getting the ping and status of Minecraft servers, written in TypeScript with zero dependencies.",
"keywords": [
"minecraft status",
Expand Down
77 changes: 0 additions & 77 deletions responseExample.md

This file was deleted.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import packetGen from "./packetGenerator.js"
import packetDec from "./packetDecoder.js"
import * as net from "net";
import * as net from "node:net";
import { Packet, ServerStatusOptions, ServerStatus, DynamicObject } from "./types.js";

import { promises as dns } from 'dns';
import { promises as dns } from "node:dns";


/**
Expand Down

0 comments on commit 781eae8

Please sign in to comment.