This commit is contained in:
Mark Nadal 2018-07-09 18:21:57 -07:00
commit d1dba14713
4 changed files with 310 additions and 247 deletions

View File

@ -3,9 +3,10 @@ branches:
except: except:
- debug - debug
node_js: node_js:
- 4.0 - 4
- 4.2 - 6
- 5.0 - 8
- 6.8 - 10
- 7.9 cache:
- 8.6 directories:
- node_modules

View File

@ -1,4 +1,4 @@
FROM alpine:edge FROM alpine:latest
# Build-time metadata as defined at http://label-schema.org # Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE ARG BUILD_DATE
ARG VCS_REF ARG VCS_REF

View File

@ -1,12 +1,13 @@
<html> <html>
<head> <head>
<title>Gun plugin for Vue</title> <title>Gun plugin for Vue</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- This example works only with vue 1 -->
<script src="https://cdn.jsdelivr.net/npm/gun/gun.js"></script> <script src="https://cdn.jsdelivr.net/npm/gun/gun.js"></script>
<script src="https://unpkg.com/vue"></script> <script src="https://unpkg.com/vue@1.0.0/dist/vue.min.js"></script>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
This is example of simple Vue plugin. It works exatcly same as the Vue instance data property, but the name is gunData.<br> This is example of simple Vue plugin. It works exatcly same as the Vue instance data property, but the name is gunData.<br>
The cool part is that every property in the gunData is realtime synced via gunDB to every other page viewer!<br> The cool part is that every property in the gunData is realtime synced via gunDB to every other page viewer!<br>
@ -14,7 +15,7 @@
<tr> <tr>
<td> <td>
Vue instance data: Vue instance data:
<pre>{{ $data }}</pre> <pre v-html="prettyJSON($data)"></pre>
</td> </td>
<td valign="top" style="text-align:right;"> <td valign="top" style="text-align:right;">
test<br> test<br>
@ -40,61 +41,61 @@
Vue.config.productionTip = false; Vue.config.productionTip = false;
localStorage.clear(); localStorage.clear();
var GunData = { var GunData = {
install: function(Vue, options) { install: function (Vue, options) {
Vue.$gunData = { Vue.$gunData = {
gun: Gun(options), gun: Gun(options),
arrToGunObj: function(a) { arrToGunObj: function (a) {
var o = { _isArr: true }, l = a.length; var o = { _isArr: true }, l = a.length;
for ( var i=0; i<l; i++ ) if ( a[i] !== undefined ) o[i] = a[i]; for (var i = 0; i < l; i++) if (a[i] !== undefined) o[i] = a[i];
return o; return o;
}, },
addGunWatcher: function (keyPath,val,vm) { addGunWatcher: function (keyPath, val, vm) {
// console.log('addGunWatcher',keyPath); // console.log('addGunWatcher',keyPath);
this.gun.get(vm.$options.$gunRootKey).path(keyPath) this.gun.get(vm.$options.$gunRootKey).path(keyPath)
.not(function(){ this.put(typeof val == 'object' && val.constructor === Array ? this.arrToGunObj(val) : val) }) .not(function () { this.put(typeof val == 'object' && val.constructor === Array ? this.arrToGunObj(val) : val) })
.on(function(gunVal,gunKey){ .on(function (gunVal, gunKey) {
if ( typeof gunVal == 'object' ) return; /* only do stuff on non objects */ if (typeof gunVal == 'object') return; /* only do stuff on non objects */
var vmPath = vm; var vmPath = vm;
for ( var i=0, a=keyPath.split('.'), l=a.length; i<l-1; i++ ) vmPath = vmPath[a[i]]; for (var i = 0, a = keyPath.split('.'), l = a.length; i < l - 1; i++) vmPath = vmPath[a[i]];
if ( typeof vmPath[gunKey] == 'undefined' ) console.log('EIPÄ OO',gunkey); if (typeof vmPath[gunKey] == 'undefined') console.log('EIPÄ OO', gunkey);
if ( vmPath[gunKey] !== gunVal ) vm.$set(vmPath,vmPath.constructor === Array?gunKey*1:gunKey,gunVal); if (vmPath[gunKey] !== gunVal) vm.$set(vmPath, vmPath.constructor === Array ? gunKey * 1 : gunKey, gunVal);
},{ change:true }); }, { change: true });
}, },
timeout: { }, timeout: {},
vueWatcher: { }, vueWatcher: {},
addVueWatcher: function (keyPath,vm) { addVueWatcher: function (keyPath, vm) {
// console.log('VUE WATCHER',keyPath,vm.$options.$gunRootKey); // console.log('VUE WATCHER',keyPath,vm.$options.$gunRootKey);
this.vueWatcher[keyPath] = vm.$watch(keyPath, function(newVal) { this.vueWatcher[keyPath] = vm.$watch(keyPath, function (newVal) {
clearTimeout(Vue.$gunData.timeout[vm.$options.$gunRootKey+keyPath]); clearTimeout(Vue.$gunData.timeout[vm.$options.$gunRootKey + keyPath]);
Vue.$gunData.timeout[vm.$options.$gunRootKey+keyPath] = setTimeout(function(){ Vue.$gunData.gun.get(vm.$options.$gunRootKey).path(keyPath).put(newVal) },500); Vue.$gunData.timeout[vm.$options.$gunRootKey + keyPath] = setTimeout(function () { Vue.$gunData.gun.get(vm.$options.$gunRootKey).path(keyPath).put(newVal) }, 500);
}); });
}, },
addWatchers: function (obj,keyPath,vm) { addWatchers: function (obj, keyPath, vm) {
if ( keyPath ) keyPath += '.'; if (keyPath) keyPath += '.';
var o = {}, a = obj, ok = Object.keys(a), l = ok.length, k = '', v = ''; var o = {}, a = obj, ok = Object.keys(a), l = ok.length, k = '', v = '';
for ( var i=0; i<l, k=ok[i], v=a[k]; i++ ) { for (var i = 0; i < l, k = ok[i], v = a[k]; i++) {
if ( typeof v == 'object' ) { if (typeof v == 'object') {
this.addWatchers(v,keyPath+k,vm); this.addWatchers(v, keyPath + k, vm);
} else { } else {
// console.log('add watcher',k,v,keyPath+k); // console.log('add watcher',k,v,keyPath+k);
if ( !this.vueWatcher[keyPath+k] ) { if (!this.vueWatcher[keyPath + k]) {
Vue.$gunData.addVueWatcher(keyPath+k,vm); Vue.$gunData.addVueWatcher(keyPath + k, vm);
Vue.$gunData.addGunWatcher(keyPath+k,v,vm); Vue.$gunData.addGunWatcher(keyPath + k, v, vm);
} }
} }
} }
} }
} }
Vue.mixin({ Vue.mixin({
data: function() { data: function () {
var o = {}, a = this.$options.gunData; var o = {}, a = this.$options.gunData;
this.$options.$gunRootKey = (a._rootKey || window.location.hostname).replace(/\./g,'-'); this.$options.$gunRootKey = (a._rootKey || window.location.hostname).replace(/\./g, '-');
delete a._rootKey; delete a._rootKey;
for ( var k='',v='',i=0,ok=Object.keys(a),l=ok.length; i<l,k=ok[i],v=a[k]; i++ ) o[k] = v; for (var k = '', v = '', i = 0, ok = Object.keys(a), l = ok.length; i < l, k = ok[i], v = a[k]; i++) o[k] = v;
return o; return o;
}, },
created: function() { created: function () {
Vue.$gunData.addWatchers(this.$options.gunData,'',this) Vue.$gunData.addWatchers(this.$options.gunData, '', this)
} }
}); });
} }
@ -104,28 +105,74 @@
// var http = require('http'), Gun = require('gun'); // var http = require('http'), Gun = require('gun');
// Gun({ web: http.createServer().listen(8080) }); // Gun({ web: http.createServer().listen(8080) });
/********************** MODIFY WITH OUR OWN SERVER ADDRESS **********************/ /********************** MODIFY WITH OUR OWN SERVER ADDRESS **********************/
// Vue.use(GunData, 'http://REPLACE.WITH.YOUR.GUN.SERVER:SERVERPORT/gun'); // Vue.use(GunData, 'http://REPLACE.WITH.YOUR.GUN.SERVER:SERVERPORT/gun');
new Vue({ var inst = new Vue({
el: '#app', el: '#app',
methods: { methods: {
addProp () { Vue.set(this.obj,'newProp_'+Object.keys(this.obj).length,'qwerty') } addProp() { Vue.set(this.obj, 'newProp_' + Object.keys(this.obj).length, 'qwerty') },
// the prettyJSON code is from icebob https://jsfiddle.net/icebob/0mg1v81e/
prettyJSON: function (json) {
if (json) {
json = JSON.stringify(json, undefined, 4);
json = json.replace(/&/g, '&').replace(/</g, '<').replace( />/g, '>');
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
var cls = 'number';
if (/^"/.test(match)) {
if (/:$/.test(match)) {
cls = 'key';
} else {
cls = 'string';
}
} else if (/true|false/.test(match)) {
cls = 'boolean';
} else if (/null/.test(match)) {
cls = 'null';
}
return '<span class="' + cls + '">' + match + '</span>';
});
}
}
}, },
gunData : { gunData: {
// _rootKey: 'put-your-gunDB-root-key-here', // DEFAULTS TO HOSTNAME // _rootKey: 'put-your-gunDB-root-key-here', // DEFAULTS TO HOSTNAME
test : 'abc', test: 'abc',
arr : [1,2], arr: [1, 2],
obj : { a:1 }, obj: { a: 1 },
deepObj: { deepObj: {
level1: { level1: {
arr : [1,2], arr: [1, 2],
prop : 2 prop: 2
} }
} }
} }
}); });
</script> </script>
</body> <style>
</html pre {
overflow: auto;
}
pre .string {
color: #885800;
}
pre .number {
color: blue;
}
pre .boolean {
color: magenta;
}
pre .null {
color: red;
}
pre .key {
color: green;
}
</style>
</body>
</html>

255
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "gun", "name": "gun",
"version": "0.9.999", "version": "0.9.9993",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -10,9 +10,9 @@
"integrity": "sha512-ywlelg2ePNpX4IlN+A3qXySzKBAZmI2ZxMdDL3amJLCTYhYhemYcv6Aa+PTETojUfB+k4z4X4970q/jjSzyLvw==", "integrity": "sha512-ywlelg2ePNpX4IlN+A3qXySzKBAZmI2ZxMdDL3amJLCTYhYhemYcv6Aa+PTETojUfB+k4z4X4970q/jjSzyLvw==",
"dev": true, "dev": true,
"requires": { "requires": {
"asn1.js": "^4.9.1", "asn1.js": "4.10.1",
"base64url": "^2.0.0", "base64url": "2.0.0",
"elliptic": "^6.4.0" "elliptic": "6.4.0"
} }
}, },
"@trust/webcrypto": { "@trust/webcrypto": {
@ -21,10 +21,10 @@
"integrity": "sha512-aix+LOG/3Ku3MzClfVxVH88QbSdIL1HcBQ+gjXL/VnX05uyORf28CaQZOvsoEcCzGnWIVBUNwE2gxLBapWANWw==", "integrity": "sha512-aix+LOG/3Ku3MzClfVxVH88QbSdIL1HcBQ+gjXL/VnX05uyORf28CaQZOvsoEcCzGnWIVBUNwE2gxLBapWANWw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@trust/keyto": "^0.3.1", "@trust/keyto": "0.3.2",
"base64url": "^2.0.0", "base64url": "2.0.0",
"node-rsa": "^0.4.0", "node-rsa": "0.4.2",
"text-encoding": "^0.6.1" "text-encoding": "0.6.4"
} }
}, },
"accepts": { "accepts": {
@ -33,7 +33,7 @@
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"dev": true, "dev": true,
"requires": { "requires": {
"mime-types": "~2.1.18", "mime-types": "2.1.18",
"negotiator": "0.6.1" "negotiator": "0.6.1"
} }
}, },
@ -67,9 +67,9 @@
"integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
"dev": true, "dev": true,
"requires": { "requires": {
"bn.js": "^4.0.0", "bn.js": "4.11.8",
"inherits": "^2.0.1", "inherits": "2.0.3",
"minimalistic-assert": "^1.0.0" "minimalistic-assert": "1.0.1"
} }
}, },
"async-limiter": { "async-limiter": {
@ -81,6 +81,7 @@
"version": "2.238.1", "version": "2.238.1",
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.238.1.tgz", "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.238.1.tgz",
"integrity": "sha1-o1/ewSLtkV2kkIQOiCgzbaW+Tn8=", "integrity": "sha1-o1/ewSLtkV2kkIQOiCgzbaW+Tn8=",
"dev": true,
"requires": { "requires": {
"buffer": "4.9.1", "buffer": "4.9.1",
"events": "1.1.1", "events": "1.1.1",
@ -115,7 +116,8 @@
"base64-js": { "base64-js": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz",
"integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==" "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==",
"dev": true
}, },
"base64id": { "base64id": {
"version": "1.0.0", "version": "1.0.0",
@ -163,15 +165,15 @@
"dev": true, "dev": true,
"requires": { "requires": {
"bytes": "3.0.0", "bytes": "3.0.0",
"content-type": "~1.0.4", "content-type": "1.0.4",
"debug": "2.6.9", "debug": "2.6.9",
"depd": "~1.1.1", "depd": "1.1.2",
"http-errors": "~1.6.2", "http-errors": "1.6.3",
"iconv-lite": "0.4.19", "iconv-lite": "0.4.19",
"on-finished": "~2.3.0", "on-finished": "2.3.0",
"qs": "6.5.1", "qs": "6.5.1",
"raw-body": "2.3.2", "raw-body": "2.3.2",
"type-is": "~1.6.15" "type-is": "1.6.16"
} }
}, },
"brace-expansion": { "brace-expansion": {
@ -180,7 +182,7 @@
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true, "dev": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
} }
}, },
@ -200,10 +202,11 @@
"version": "4.9.1", "version": "4.9.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz",
"integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=",
"dev": true,
"requires": { "requires": {
"base64-js": "^1.0.2", "base64-js": "1.3.0",
"ieee754": "^1.1.4", "ieee754": "1.1.8",
"isarray": "^1.0.0" "isarray": "1.0.0"
} }
}, },
"bytes": { "bytes": {
@ -311,13 +314,13 @@
"integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",
"dev": true, "dev": true,
"requires": { "requires": {
"bn.js": "^4.4.0", "bn.js": "4.11.8",
"brorand": "^1.0.1", "brorand": "1.1.0",
"hash.js": "^1.0.0", "hash.js": "1.1.3",
"hmac-drbg": "^1.0.0", "hmac-drbg": "1.0.1",
"inherits": "^2.0.1", "inherits": "2.0.3",
"minimalistic-assert": "^1.0.0", "minimalistic-assert": "1.0.1",
"minimalistic-crypto-utils": "^1.0.0" "minimalistic-crypto-utils": "1.0.1"
} }
}, },
"encodeurl": { "encodeurl": {
@ -337,7 +340,7 @@
"cookie": "0.3.1", "cookie": "0.3.1",
"debug": "2.3.3", "debug": "2.3.3",
"engine.io-parser": "1.3.2", "engine.io-parser": "1.3.2",
"ws": "~1.1.5" "ws": "1.1.5"
}, },
"dependencies": { "dependencies": {
"accepts": { "accepts": {
@ -346,7 +349,7 @@
"integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=", "integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=",
"dev": true, "dev": true,
"requires": { "requires": {
"mime-types": "~2.1.11", "mime-types": "2.1.18",
"negotiator": "0.6.1" "negotiator": "0.6.1"
} }
}, },
@ -377,8 +380,8 @@
"integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==", "integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==",
"dev": true, "dev": true,
"requires": { "requires": {
"options": ">=0.0.5", "options": "0.0.6",
"ultron": "1.0.x" "ultron": "1.0.2"
} }
} }
} }
@ -398,7 +401,7 @@
"parsejson": "0.0.3", "parsejson": "0.0.3",
"parseqs": "0.0.5", "parseqs": "0.0.5",
"parseuri": "0.0.5", "parseuri": "0.0.5",
"ws": "~1.1.5", "ws": "1.1.5",
"xmlhttprequest-ssl": "1.5.3", "xmlhttprequest-ssl": "1.5.3",
"yeast": "0.1.2" "yeast": "0.1.2"
}, },
@ -430,8 +433,8 @@
"integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==", "integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==",
"dev": true, "dev": true,
"requires": { "requires": {
"options": ">=0.0.5", "options": "0.0.6",
"ultron": "1.0.x" "ultron": "1.0.2"
} }
} }
} }
@ -471,7 +474,8 @@
"events": { "events": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz",
"integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=" "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=",
"dev": true
}, },
"express": { "express": {
"version": "4.16.3", "version": "4.16.3",
@ -479,36 +483,36 @@
"integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=",
"dev": true, "dev": true,
"requires": { "requires": {
"accepts": "~1.3.5", "accepts": "1.3.5",
"array-flatten": "1.1.1", "array-flatten": "1.1.1",
"body-parser": "1.18.2", "body-parser": "1.18.2",
"content-disposition": "0.5.2", "content-disposition": "0.5.2",
"content-type": "~1.0.4", "content-type": "1.0.4",
"cookie": "0.3.1", "cookie": "0.3.1",
"cookie-signature": "1.0.6", "cookie-signature": "1.0.6",
"debug": "2.6.9", "debug": "2.6.9",
"depd": "~1.1.2", "depd": "1.1.2",
"encodeurl": "~1.0.2", "encodeurl": "1.0.2",
"escape-html": "~1.0.3", "escape-html": "1.0.3",
"etag": "~1.8.1", "etag": "1.8.1",
"finalhandler": "1.1.1", "finalhandler": "1.1.1",
"fresh": "0.5.2", "fresh": "0.5.2",
"merge-descriptors": "1.0.1", "merge-descriptors": "1.0.1",
"methods": "~1.1.2", "methods": "1.1.2",
"on-finished": "~2.3.0", "on-finished": "2.3.0",
"parseurl": "~1.3.2", "parseurl": "1.3.2",
"path-to-regexp": "0.1.7", "path-to-regexp": "0.1.7",
"proxy-addr": "~2.0.3", "proxy-addr": "2.0.3",
"qs": "6.5.1", "qs": "6.5.1",
"range-parser": "~1.2.0", "range-parser": "1.2.0",
"safe-buffer": "5.1.1", "safe-buffer": "5.1.1",
"send": "0.16.2", "send": "0.16.2",
"serve-static": "1.13.2", "serve-static": "1.13.2",
"setprototypeof": "1.1.0", "setprototypeof": "1.1.0",
"statuses": "~1.4.0", "statuses": "1.4.0",
"type-is": "~1.6.16", "type-is": "1.6.16",
"utils-merge": "1.0.1", "utils-merge": "1.0.1",
"vary": "~1.1.2" "vary": "1.1.2"
}, },
"dependencies": { "dependencies": {
"safe-buffer": { "safe-buffer": {
@ -526,12 +530,12 @@
"dev": true, "dev": true,
"requires": { "requires": {
"debug": "2.6.9", "debug": "2.6.9",
"encodeurl": "~1.0.2", "encodeurl": "1.0.2",
"escape-html": "~1.0.3", "escape-html": "1.0.3",
"on-finished": "~2.3.0", "on-finished": "2.3.0",
"parseurl": "~1.3.2", "parseurl": "1.3.2",
"statuses": "~1.4.0", "statuses": "1.4.0",
"unpipe": "~1.0.0" "unpipe": "1.0.0"
} }
}, },
"forwarded": { "forwarded": {
@ -558,12 +562,12 @@
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"fs.realpath": "^1.0.0", "fs.realpath": "1.0.0",
"inflight": "^1.0.4", "inflight": "1.0.6",
"inherits": "2", "inherits": "2.0.3",
"minimatch": "^3.0.4", "minimatch": "3.0.4",
"once": "^1.3.0", "once": "1.4.0",
"path-is-absolute": "^1.0.0" "path-is-absolute": "1.0.1"
} }
}, },
"growl": { "growl": {
@ -607,8 +611,8 @@
"integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==",
"dev": true, "dev": true,
"requires": { "requires": {
"inherits": "^2.0.3", "inherits": "2.0.3",
"minimalistic-assert": "^1.0.0" "minimalistic-assert": "1.0.1"
} }
}, },
"he": { "he": {
@ -623,9 +627,9 @@
"integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=",
"dev": true, "dev": true,
"requires": { "requires": {
"hash.js": "^1.0.3", "hash.js": "1.1.3",
"minimalistic-assert": "^1.0.0", "minimalistic-assert": "1.0.1",
"minimalistic-crypto-utils": "^1.0.1" "minimalistic-crypto-utils": "1.0.1"
} }
}, },
"http-errors": { "http-errors": {
@ -634,10 +638,10 @@
"integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
"dev": true, "dev": true,
"requires": { "requires": {
"depd": "~1.1.2", "depd": "1.1.2",
"inherits": "2.0.3", "inherits": "2.0.3",
"setprototypeof": "1.1.0", "setprototypeof": "1.1.0",
"statuses": ">= 1.4.0 < 2" "statuses": "1.4.0"
} }
}, },
"iconv-lite": { "iconv-lite": {
@ -649,7 +653,8 @@
"ieee754": { "ieee754": {
"version": "1.1.8", "version": "1.1.8",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz",
"integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=" "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=",
"dev": true
}, },
"indexof": { "indexof": {
"version": "0.0.1", "version": "0.0.1",
@ -663,8 +668,8 @@
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"dev": true, "dev": true,
"requires": { "requires": {
"once": "^1.3.0", "once": "1.4.0",
"wrappy": "1" "wrappy": "1.0.2"
} }
}, },
"inherits": { "inherits": {
@ -694,12 +699,14 @@
"isarray": { "isarray": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
"dev": true
}, },
"jmespath": { "jmespath": {
"version": "0.15.0", "version": "0.15.0",
"resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.15.0.tgz", "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.15.0.tgz",
"integrity": "sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=" "integrity": "sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=",
"dev": true
}, },
"json3": { "json3": {
"version": "3.3.2", "version": "3.3.2",
@ -710,7 +717,8 @@
"lodash": { "lodash": {
"version": "4.17.10", "version": "4.17.10",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz",
"integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==",
"dev": true
}, },
"media-typer": { "media-typer": {
"version": "0.3.0", "version": "0.3.0",
@ -748,7 +756,7 @@
"integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"mime-db": "~1.33.0" "mime-db": "1.33.0"
} }
}, },
"minimalistic-assert": { "minimalistic-assert": {
@ -769,7 +777,7 @@
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"dev": true, "dev": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "1.1.11"
} }
}, },
"minimist": { "minimist": {
@ -865,7 +873,7 @@
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"dev": true, "dev": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1.0.2"
} }
}, },
"options": { "options": {
@ -880,10 +888,10 @@
"integrity": "sha1-4+yr3DQn6vELowviJZAaehGasXM=", "integrity": "sha1-4+yr3DQn6vELowviJZAaehGasXM=",
"dev": true, "dev": true,
"requires": { "requires": {
"bluebird": "^3.4.6", "bluebird": "3.5.1",
"is-promise": "^2.1.0", "is-promise": "2.1.0",
"platform": "1.3.1", "platform": "1.3.1",
"socket.io-client": "^1.4.5" "socket.io-client": "1.7.4"
} }
}, },
"panic-manager": { "panic-manager": {
@ -892,10 +900,10 @@
"integrity": "sha1-0tvHdgIAMsWwEw0QW/vqewZnMh4=", "integrity": "sha1-0tvHdgIAMsWwEw0QW/vqewZnMh4=",
"dev": true, "dev": true,
"requires": { "requires": {
"isarray": "^2.0.0", "isarray": "2.0.4",
"panic-client": "^1.0.0", "panic-client": "1.0.2",
"socket.io": "^1.4.8", "socket.io": "1.7.4",
"socket.io-client": "^1.4.8" "socket.io-client": "1.7.4"
}, },
"dependencies": { "dependencies": {
"isarray": { "isarray": {
@ -912,9 +920,9 @@
"integrity": "sha512-TcR6M4LaqKjHvAKoAi46w2Y11KPJiMchAEqu00+tlOBxHR8AYvUCBvDLw4+j3MymApVHHWtluOzDaWxEYeGuVw==", "integrity": "sha512-TcR6M4LaqKjHvAKoAi46w2Y11KPJiMchAEqu00+tlOBxHR8AYvUCBvDLw4+j3MymApVHHWtluOzDaWxEYeGuVw==",
"dev": true, "dev": true,
"requires": { "requires": {
"bluebird": "^3.3.5", "bluebird": "3.5.1",
"panic-client": "^1.0.0", "panic-client": "1.0.2",
"socket.io": "^1.4.5" "socket.io": "1.7.4"
} }
}, },
"parsejson": { "parsejson": {
@ -923,7 +931,7 @@
"integrity": "sha1-q343WfIJ7OmUN5c/fQ8fZK4OZKs=", "integrity": "sha1-q343WfIJ7OmUN5c/fQ8fZK4OZKs=",
"dev": true, "dev": true,
"requires": { "requires": {
"better-assert": "~1.0.0" "better-assert": "1.0.2"
} }
}, },
"parseqs": { "parseqs": {
@ -932,7 +940,7 @@
"integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=",
"dev": true, "dev": true,
"requires": { "requires": {
"better-assert": "~1.0.0" "better-assert": "1.0.2"
} }
}, },
"parseuri": { "parseuri": {
@ -941,7 +949,7 @@
"integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=",
"dev": true, "dev": true,
"requires": { "requires": {
"better-assert": "~1.0.0" "better-assert": "1.0.2"
} }
}, },
"parseurl": { "parseurl": {
@ -974,14 +982,15 @@
"integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==", "integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"forwarded": "~0.1.2", "forwarded": "0.1.2",
"ipaddr.js": "1.6.0" "ipaddr.js": "1.6.0"
} }
}, },
"punycode": { "punycode": {
"version": "1.3.2", "version": "1.3.2",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",
"integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=",
"dev": true
}, },
"qs": { "qs": {
"version": "6.5.1", "version": "6.5.1",
@ -992,7 +1001,8 @@
"querystring": { "querystring": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
"integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=",
"dev": true
}, },
"range-parser": { "range-parser": {
"version": "1.2.0", "version": "1.2.0",
@ -1027,7 +1037,7 @@
"depd": "1.1.1", "depd": "1.1.1",
"inherits": "2.0.3", "inherits": "2.0.3",
"setprototypeof": "1.0.3", "setprototypeof": "1.0.3",
"statuses": ">= 1.3.1 < 2" "statuses": "1.4.0"
} }
}, },
"setprototypeof": { "setprototypeof": {
@ -1041,7 +1051,8 @@
"sax": { "sax": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz",
"integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=" "integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=",
"dev": true
}, },
"send": { "send": {
"version": "0.16.2", "version": "0.16.2",
@ -1050,18 +1061,18 @@
"dev": true, "dev": true,
"requires": { "requires": {
"debug": "2.6.9", "debug": "2.6.9",
"depd": "~1.1.2", "depd": "1.1.2",
"destroy": "~1.0.4", "destroy": "1.0.4",
"encodeurl": "~1.0.2", "encodeurl": "1.0.2",
"escape-html": "~1.0.3", "escape-html": "1.0.3",
"etag": "~1.8.1", "etag": "1.8.1",
"fresh": "0.5.2", "fresh": "0.5.2",
"http-errors": "~1.6.2", "http-errors": "1.6.3",
"mime": "1.4.1", "mime": "1.4.1",
"ms": "2.0.0", "ms": "2.0.0",
"on-finished": "~2.3.0", "on-finished": "2.3.0",
"range-parser": "~1.2.0", "range-parser": "1.2.0",
"statuses": "~1.4.0" "statuses": "1.4.0"
} }
}, },
"serve-static": { "serve-static": {
@ -1070,9 +1081,9 @@
"integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==",
"dev": true, "dev": true,
"requires": { "requires": {
"encodeurl": "~1.0.2", "encodeurl": "1.0.2",
"escape-html": "~1.0.3", "escape-html": "1.0.3",
"parseurl": "~1.3.2", "parseurl": "1.3.2",
"send": "0.16.2" "send": "0.16.2"
} }
}, },
@ -1089,7 +1100,7 @@
"dev": true, "dev": true,
"requires": { "requires": {
"debug": "2.3.3", "debug": "2.3.3",
"engine.io": "~1.8.4", "engine.io": "1.8.5",
"has-binary": "0.1.7", "has-binary": "0.1.7",
"object-assign": "4.1.0", "object-assign": "4.1.0",
"socket.io-adapter": "0.5.0", "socket.io-adapter": "0.5.0",
@ -1151,7 +1162,7 @@
"component-bind": "1.0.0", "component-bind": "1.0.0",
"component-emitter": "1.2.1", "component-emitter": "1.2.1",
"debug": "2.3.3", "debug": "2.3.3",
"engine.io-client": "~1.8.4", "engine.io-client": "1.8.5",
"has-binary": "0.1.7", "has-binary": "0.1.7",
"indexof": "0.0.1", "indexof": "0.0.1",
"object-component": "0.0.3", "object-component": "0.0.3",
@ -1236,7 +1247,7 @@
"integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"has-flag": "^2.0.0" "has-flag": "2.0.0"
} }
}, },
"text-encoding": { "text-encoding": {
@ -1258,7 +1269,7 @@
"dev": true, "dev": true,
"requires": { "requires": {
"media-typer": "0.3.0", "media-typer": "0.3.0",
"mime-types": "~2.1.18" "mime-types": "2.1.18"
} }
}, },
"uglify-js": { "uglify-js": {
@ -1267,8 +1278,8 @@
"integrity": "sha512-hS7+TDiqIqvWScCcKRybCQzmMnEzJ4ryl9ErRmW4GFyG48p0/dKZiy/5mVLbsFzU8CCnCgQdxMiJzZythvLzCg==", "integrity": "sha512-hS7+TDiqIqvWScCcKRybCQzmMnEzJ4ryl9ErRmW4GFyG48p0/dKZiy/5mVLbsFzU8CCnCgQdxMiJzZythvLzCg==",
"dev": true, "dev": true,
"requires": { "requires": {
"commander": "~2.15.0", "commander": "2.15.1",
"source-map": "~0.6.1" "source-map": "0.6.1"
}, },
"dependencies": { "dependencies": {
"commander": { "commander": {
@ -1289,6 +1300,7 @@
"version": "0.10.3", "version": "0.10.3",
"resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz",
"integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=", "integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=",
"dev": true,
"requires": { "requires": {
"punycode": "1.3.2", "punycode": "1.3.2",
"querystring": "0.2.0" "querystring": "0.2.0"
@ -1303,7 +1315,8 @@
"uuid": { "uuid": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
"integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==",
"dev": true
}, },
"vary": { "vary": {
"version": "1.1.2", "version": "1.1.2",
@ -1322,7 +1335,7 @@
"resolved": "https://registry.npmjs.org/ws/-/ws-5.2.0.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.0.tgz",
"integrity": "sha512-c18dMeW+PEQdDFzkhDsnBAlS4Z8KGStBQQUcQ5mf7Nf689jyGk0594L+i9RaQuf4gog6SvWLJorz2NfSaqxZ7w==", "integrity": "sha512-c18dMeW+PEQdDFzkhDsnBAlS4Z8KGStBQQUcQ5mf7Nf689jyGk0594L+i9RaQuf4gog6SvWLJorz2NfSaqxZ7w==",
"requires": { "requires": {
"async-limiter": "~1.0.0" "async-limiter": "1.0.0"
} }
}, },
"wtf-8": { "wtf-8": {
@ -1335,17 +1348,19 @@
"version": "0.4.17", "version": "0.4.17",
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.17.tgz", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.17.tgz",
"integrity": "sha1-F76T6q4/O3eTWceVtBlwWogX6Gg=", "integrity": "sha1-F76T6q4/O3eTWceVtBlwWogX6Gg=",
"dev": true,
"requires": { "requires": {
"sax": ">=0.6.0", "sax": "1.2.1",
"xmlbuilder": "^4.1.0" "xmlbuilder": "4.2.1"
} }
}, },
"xmlbuilder": { "xmlbuilder": {
"version": "4.2.1", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.2.1.tgz", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.2.1.tgz",
"integrity": "sha1-qlijBBoGb5DqoWwvU4n/GfP0YaU=", "integrity": "sha1-qlijBBoGb5DqoWwvU4n/GfP0YaU=",
"dev": true,
"requires": { "requires": {
"lodash": "^4.0.0" "lodash": "4.17.10"
} }
}, },
"xmlhttprequest-ssl": { "xmlhttprequest-ssl": {