New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xmcl/client

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmcl/client - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

CHANGELOG.md

@@ -6,4 +6,4 @@ # Change Log

## [0.0.6](https://github.com/ci010/ts-minecraft/compare/@xmcl/client@0.0.5...@xmcl/client@0.0.6) (2019-09-21)
## [0.0.6](https://github.com/Voxelum/minecraft-launcher-core-node/compare/@xmcl/client@0.0.5...@xmcl/client@0.0.6) (2019-09-21)
**Note:** Version bump only for package @xmcl/client

@@ -30,3 +30,3 @@ import { GameProfile, ResourceMode, ServerInfoFrame, ServerStatusFrame } from "@xmcl/common";

if (version.name) {
versionText = TextComponent.from(version.name as string);
versionText = TextComponent.from(version.name);
}

@@ -33,0 +33,0 @@ if (version.protocol) {

@@ -214,3 +214,3 @@ "use strict";

this.connection.once("error", (e) => { reject(e); });
this.connection.once("timeout", () => { reject(new Error(`Connection timeout.`)); });
this.connection.once("timeout", () => { reject(new Error("Connection timeout.")); });
});

@@ -217,0 +217,0 @@ this.emit("listen");

@@ -240,3 +240,3 @@ import ByteBuffer from "bytebuffer";

this.connection.once("error", (e) => { reject(e); });
this.connection.once("timeout", () => { reject(new Error(`Connection timeout.`)); });
this.connection.once("timeout", () => { reject(new Error("Connection timeout.")); });
});

@@ -243,0 +243,0 @@

@@ -1,2 +0,1 @@

import NBT from "@xmcl/nbt";
import ByteBuffer from "bytebuffer";

@@ -9,3 +8,3 @@ import Long from "long";

itemDamage?: number;
nbt?: NBT.TagCompound;
nbt?: any;
}

@@ -12,0 +11,0 @@ export interface Coder<T> {

@@ -145,3 +145,3 @@ "use strict";

itemDamage,
nbt: nbt_1.default.Persistence.readTagSync(Buffer.from(buffer.buffer)),
nbt: nbt_1.default.Persistence.deserializeSync(Buffer.from(buffer.buffer)),
};

@@ -148,0 +148,0 @@ },

{
"name": "@xmcl/client",
"version": "0.0.7",
"version": "0.0.8",
"main": "./index.js",
"types": "./index.d.ts",
"description": "Minecraft client ping server",

@@ -14,5 +13,5 @@ "engines": {

"dependencies": {
"@xmcl/common": "^0.1.0",
"@xmcl/nbt": "^0.1.0",
"@xmcl/text-component": "^0.0.4",
"@xmcl/common": "^0.2.0",
"@xmcl/nbt": "^0.1.1",
"@xmcl/text-component": "^0.0.5",
"bytebuffer": "^5.0.1",

@@ -28,3 +27,3 @@ "long": "^3.2.0",

"type": "git",
"url": "git+https://github.com/ci010/ts-minecraft.git"
"url": "git+https://github.com/Voxelum/minecraft-launcher-core-node.git"
},

@@ -41,6 +40,6 @@ "author": "cijhn@hotmail.com",

"bugs": {
"url": "https://github.com/ci010/ts-minecraft/issues"
"url": "https://github.com/Voxelum/minecraft-launcher-core-node/issues"
},
"homepage": "https://github.com/ci010/ts-minecraft#readme",
"gitHead": "5bf361647f9726c870c17effba3b540d1edc1582"
"homepage": "https://github.com/Voxelum/minecraft-launcher-core-node#readme",
"gitHead": "b1b29753ab0261fb9e6ca9058df3c9a6868b27b5"
}

@@ -9,7 +9,11 @@ # Client Module

## Usage
### Minecraft Client Ping Server
Read sever info (server ip, port) and fetch its status (ping, server motd):
```ts
import { Server } from '@xmcl/client'
const seversDatBuffer: Buffer;
const seversDatBuffer: Buffer; // this is the servers.dat under .minecraft folder
const infos: Server.Info[] = await Server.readInfo(seversDatBuffer);

@@ -22,3 +26,1 @@ const info: Server.Info = infos[0]

```
Read sever info and fetch its status.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc