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

yggdrasil

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yggdrasil - npm Package Compare versions

Comparing version 1.5.2 to 1.6.0

src/Client.js

3

HISTORY.md
## History
## 1.6.0
* move back to js
## 1.5.2

@@ -4,0 +7,0 @@ * Fix the release

15

package.json
{
"name": "yggdrasil",
"version": "1.5.2",
"version": "1.6.0",
"author": "Zeke Sonxx <zeke@zekesonxx.com>",
"description": "Mojang authentication (Yggdrasil) client",
"scripts": {
"build": "tsc",
"test": "mocha -R spec",
"pretest": "npm run lint && npm run build",
"lint": "ts-standard",
"fix": "ts-standard --fix"
"pretest": "npm run lint",
"lint": "standard",
"fix": "standard --fix"
},
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"main": "./src/index.js",
"repository": {

@@ -38,5 +36,4 @@ "type": "git",

"nock": "^13.0.2",
"ts-standard": "^10.0.0",
"typescript": "^4.1.3"
"standard": "^16.0.3"
}
}

@@ -85,26 +85,4 @@ # yggdrasil

## With ES6 Named Exports
```js
/**
* Import Client or Server from 'yggdrasil/es6'.
* Note that the library is stateless when imported this way vs the CommonJS way.
* You have typings though ;D
*/
import { Client as ygg, Server as yggServ } from 'yggdrasil/es6'
// Use it like you normally would.
ygg.validate(token).then(
(response)=>{},
(error)=>{}
);
yggServ.join(token, profile, serverid, sharedsecret, serverkey).then(
response=>{},
error=>{}
);
```
# Further Reading
* [Authentication protocol documentation](http://wiki.vg/Authentication)
* [node-minecraft-protocol](https://github.com/PrismarineJS/node-minecraft-protocol), a Minecraft client and server in Node.js

@@ -8,3 +8,3 @@ /* eslint-env mocha */

const utils = require('../lib/utils')
const utils = require('../src/utils')

@@ -95,3 +95,3 @@ describe('utils', () => {

const cscope = nock('https://authserver.mojang.com')
const ygg = require('../lib/index')({})
const ygg = require('../src/index')({})

@@ -343,3 +343,3 @@ describe('Yggdrasil', () => {

const sscope = nock('https://sessionserver.mojang.com')
const yggserver = require('../lib/index').server({})
const yggserver = require('../src/index').server({})

@@ -346,0 +346,0 @@ describe('Yggdrasil.server', () => {

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