Comparing version 0.0.6 to 0.0.7
10
index.js
const { Client } = require('kbyte'); | ||
const utils = require('./utils'); | ||
const units = require('./units.json'); | ||
const buildings = require('./buildings.json'); | ||
const Fight = require('./src/api/fight'); | ||
const units = require('./src/units.json'); | ||
const buildings = require('./src/buildings.json'); | ||
const utils = require('./src/utils'); | ||
module.exports = { | ||
Client, | ||
utils, | ||
Fight, | ||
units, | ||
buildings, | ||
utils, | ||
}; |
{ | ||
"name": "drugwars", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A lightweight JavaScript library for DrugWars", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
@@ -13,3 +16,4 @@ "kbyte": "0.0.4" | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.14.0" | ||
"eslint-plugin-import": "^2.14.0", | ||
"jest": "^24.1.0" | ||
}, | ||
@@ -16,0 +20,0 @@ "author": "Bonustrack", |
@@ -57,2 +57,8 @@ [![npm](https://img.shields.io/npm/v/drugwars.svg)](https://www.npmjs.com/package/drugwars) | ||
}); | ||
// Log in with SteemConnect access token | ||
const token = 'eyJhbGciOiJIUzI...'; | ||
client.request('login', token, function(err, result) { | ||
console.log('Subscribe', err, result); | ||
}); | ||
``` |
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
30655
16
1132
64
5
1