Update dev dependencies
Set idea language to ES6 Run tests against dist
This commit is contained in:
parent
732b691e40
commit
bbf25ee8b5
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="JavaScriptSettings">
|
<component name="JavaScriptSettings">
|
||||||
<option name="languageLevel" value="ES5" />
|
<option name="languageLevel" value="ES6" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
6415
package-lock.json
generated
6415
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
|
@ -51,10 +51,11 @@
|
||||||
"uuid": "^3.0.1"
|
"uuid": "^3.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/long": "^3.0.31",
|
"@types/long": "^3.0.32",
|
||||||
"@types/node": "^6.0.47",
|
"@types/node": "^12.12.5",
|
||||||
"jsdoc": "^3.5.5",
|
"jsdoc": "^3.6.3",
|
||||||
"nodeunit": "^0.11.1",
|
"nodeunit": "^0.11.3",
|
||||||
"webpack": "^3.3.0"
|
"webpack": "^4.41.2",
|
||||||
|
"webpack-cli": "^3.3.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
|
|
||||||
var ANY_VERSION = Long.fromNumber(client.expectedVersion.any);
|
var ANY_VERSION = Long.fromNumber(client.expectedVersion.any);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var client = require('../../src/client');
|
var client = require('../../lib/dist');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
|
|
||||||
var settings = {
|
var settings = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var client = require('../../src/client');
|
var client = require('../../lib/dist');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
|
|
||||||
var settings = {
|
var settings = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../../src/client');
|
var client = require('../../lib/dist');
|
||||||
var FileLogger = require('../../src/common/log/fileLogger');
|
var FileLogger = require('../../src/common/log/fileLogger');
|
||||||
var NoopLogger = require('../../src/common/log/noopLogger');
|
var NoopLogger = require('../../src/common/log/noopLogger');
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var client = require('../src/client.js');
|
var client = require('../lib/dist');
|
||||||
var GossipSeed = require('../src/gossipSeed');
|
var GossipSeed = require('../src/gossipSeed');
|
||||||
|
|
||||||
var testBase = require('./common/base_test');
|
var testBase = require('./common/base_test');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
const Long = require('long');
|
const Long = require('long');
|
||||||
|
|
||||||
const EMPTY_VERSION = Long.fromNumber(client.expectedVersion.emptyStream);
|
const EMPTY_VERSION = Long.fromNumber(client.expectedVersion.emptyStream);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
const adminCredentials = new client.UserCredentials("admin", "changeit");
|
const adminCredentials = new client.UserCredentials("admin", "changeit");
|
||||||
|
|
||||||
function createRandomEvent() {
|
function createRandomEvent() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const client = require('../src/client');
|
const client = require('../lib/dist');
|
||||||
const userCredentials = new client.UserCredentials('admin', 'changeit');
|
const userCredentials = new client.UserCredentials('admin', 'changeit');
|
||||||
|
|
||||||
const log = new client.NoopLogger();
|
const log = new client.NoopLogger();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
|
|
||||||
const numberOfStreams = 20;
|
const numberOfStreams = 20;
|
||||||
const maxBatch = 10;
|
const maxBatch = 10;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
|
|
||||||
const numberOfStreams = 20;
|
const numberOfStreams = 20;
|
||||||
const maxBatch = 10;
|
const maxBatch = 10;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
|
|
||||||
var NOSTREAM_VERSION = Long.fromNumber(client.expectedVersion.noStream);
|
var NOSTREAM_VERSION = Long.fromNumber(client.expectedVersion.noStream);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
|
|
||||||
const streamSize = 100;
|
const streamSize = 100;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
|
|
||||||
const streamSize = 100;
|
const streamSize = 100;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
const allCredentials = new client.UserCredentials("admin", "changeit");
|
const allCredentials = new client.UserCredentials("admin", "changeit");
|
||||||
|
|
||||||
function createRandomEvent() {
|
function createRandomEvent() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const uuid = require('uuid');
|
const uuid = require('uuid');
|
||||||
const client = require('../src/client');
|
const client = require('../lib/dist');
|
||||||
const allCredentials = new client.UserCredentials("admin", "changeit");
|
const allCredentials = new client.UserCredentials("admin", "changeit");
|
||||||
|
|
||||||
function delay(ms) {
|
function delay(ms) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
|
|
||||||
function createRandomEvent() {
|
function createRandomEvent() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const uuid = require('uuid');
|
const uuid = require('uuid');
|
||||||
const client = require('../src/client');
|
const client = require('../lib/dist');
|
||||||
const Long = require('long');
|
const Long = require('long');
|
||||||
|
|
||||||
function delay(ms) {
|
function delay(ms) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var uuid = require('uuid');
|
var uuid = require('uuid');
|
||||||
var Long = require('long');
|
var Long = require('long');
|
||||||
var client = require('../src/client');
|
var client = require('../lib/dist');
|
||||||
|
|
||||||
var ANY_VERSION = Long.fromNumber(client.expectedVersion.any);
|
var ANY_VERSION = Long.fromNumber(client.expectedVersion.any);
|
||||||
var NOSTREAM_VERSION = Long.fromNumber(client.expectedVersion.noStream);
|
var NOSTREAM_VERSION = Long.fromNumber(client.expectedVersion.noStream);
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
mode: "none",
|
||||||
entry: "./src/client.js",
|
entry: "./src/client.js",
|
||||||
target: "node",
|
target: "node",
|
||||||
output: {
|
output: {
|
||||||
filename: "./lib/dist.js",
|
path: process.env.PWD + "/lib",
|
||||||
|
filename: "dist.js",
|
||||||
libraryTarget: "commonjs2"
|
libraryTarget: "commonjs2"
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user