Comparing version 1.5.2 to 1.6.0
## History | ||
## 1.6.0 | ||
* move back to js | ||
## 1.5.2 | ||
@@ -4,0 +7,0 @@ * Fix the release |
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6
27124
13
630
88
1