diff --git a/client/order/routes.json b/client/order/routes.json
index a73605a05..bdcf68aed 100644
--- a/client/order/routes.json
+++ b/client/order/routes.json
@@ -1,7 +1,7 @@
{
"module": "order",
"name": "Orders",
- "icon": "shopping_basket",
+ "icon": "shopping_cart",
"validations": true,
"routes": [
{
@@ -30,6 +30,18 @@
"order": "$ctrl.order"
}
},
+ {
+ "url": "/catalogue",
+ "state": "order.card.catalogue",
+ "component": "vn-order-catalogue",
+ "params": {
+ "order": "$ctrl.order"
+ },
+ "menu": {
+ "description": "Catalogue",
+ "icon": "shopping_cart"
+ }
+ },
{
"url": "/create",
"state": "order.create",
diff --git a/client/order/src/catalogue/index.html b/client/order/src/catalogue/index.html
new file mode 100644
index 000000000..178c39ae9
--- /dev/null
+++ b/client/order/src/catalogue/index.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ No results
+
+
+
+
+
+
+
+
+
diff --git a/client/order/src/catalogue/index.js b/client/order/src/catalogue/index.js
new file mode 100644
index 000000000..4b7804105
--- /dev/null
+++ b/client/order/src/catalogue/index.js
@@ -0,0 +1,41 @@
+import ngModule from '../module';
+import './style.scss';
+
+class Controller {
+ constructor($scope, $stateParams) {
+ this.$scope = $scope;
+ this.$stateParams = $stateParams;
+ }
+
+ applyFilter() {
+ this.$scope.model.filter = this.filter;
+ this.$scope.model.refresh();
+ }
+
+ set order(value) {
+ this._order = value;
+
+ if (!value) return;
+
+ this.filter = {
+ where: {
+ id: value.id,
+ typeFk: 1
+ }
+ };
+ }
+
+ get order() {
+ return this._order;
+ }
+}
+
+Controller.$inject = ['$scope', '$stateParams'];
+
+ngModule.component('vnOrderCatalogue', {
+ template: require('./index.html'),
+ controller: Controller,
+ bindings: {
+ order: '<'
+ }
+});
diff --git a/client/order/src/catalogue/product.html b/client/order/src/catalogue/product.html
new file mode 100644
index 000000000..3bbb473b8
--- /dev/null
+++ b/client/order/src/catalogue/product.html
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+ {{::$ctrl.item.name}}
+
+
+ {{::$ctrl.item.subName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{::$ctrl.item.available}}
+ from
+ {{::$ctrl.item.price | currency: ' €': 2}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/order/src/catalogue/product.js b/client/order/src/catalogue/product.js
new file mode 100644
index 000000000..1b75eaf39
--- /dev/null
+++ b/client/order/src/catalogue/product.js
@@ -0,0 +1,11 @@
+import ngModule from '../module';
+
+ngModule.component('vnOrderProduct', {
+ template: require('./product.html'),
+ bindings: {
+ item: '<'
+ },
+ require: {
+ index: '^vnOrderCatalogue'
+ }
+});
diff --git a/client/order/src/catalogue/style.scss b/client/order/src/catalogue/style.scss
new file mode 100644
index 000000000..c94b07f97
--- /dev/null
+++ b/client/order/src/catalogue/style.scss
@@ -0,0 +1,111 @@
+@import "./colors";
+
+
+vn-order-catalogue {
+ @media screen and (max-width: 1920px){
+ vn-order-product {
+ width: 25%;
+ }
+ }
+
+ @media screen and (max-width: 1800px){
+ vn-order-product {
+ width: 33.33%
+ }
+ }
+
+ @media screen and (max-width: 1600px){
+ vn-order-product {
+ width: 50%
+ }
+ }
+
+ @media screen and (max-width: 1280px){
+ vn-order-product {
+ width: 100%
+ }
+ }
+
+ .catalogue.header {
+ border-color: $lines;
+ border-bottom: 1px solid rgba($lines, 0.5);
+
+ span {
+ color: $secondary-font-color
+ }
+ }
+
+ .catalogue.list {
+ justify-content: flex-start;
+ align-items: flex-start;
+ flex-wrap: wrap
+ }
+ vn-order-product {
+ box-sizing: border-box;
+ padding: 4px;
+
+ & > vn-one {
+ border: 1px solid rgba($lines, 0.5);
+ display: block
+ }
+
+ .image {
+ min-width: 10em;
+ max-width: 10em;
+ min-height: 10em;
+ max-height: 10em;
+
+ img {
+ width: 100%;
+ height: 100%
+ }
+ }
+
+ .description {
+ box-sizing: border-box;
+
+ & > vn-vertical {
+ height: 100%;
+
+ & > h2 {
+ text-transform: uppercase;
+ font-family: vn-font;
+ margin: 0 0 0.5em 0;
+ font-weight: 100;
+ line-height: 1em;
+ font-size: 0.9em;
+ }
+
+ & > span {
+ color: $secondary-font-color;
+ text-transform: uppercase;
+ margin-bottom: 0.5em;
+ font-weight: bold;
+ font-size: 0.8em
+ }
+
+ & > vn-label-value {
+ font-size: 0.8em
+ }
+ }
+ }
+
+ .price {
+ align-items: center;
+ margin-top: auto;
+ font-size: 0.8em;
+
+ & > vn-one span:first-child {
+ color: $secondary-font-color
+ }
+
+ & > vn-one span:first-child, & > vn-one span:last-child {
+ font-size: 1.2em
+ }
+
+ vn-icon[icon="add_circle"] {
+ color: $main-01
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/client/order/src/filter/index.html b/client/order/src/filter/index.html
new file mode 100644
index 000000000..5431b752a
--- /dev/null
+++ b/client/order/src/filter/index.html
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/order/src/filter/index.js b/client/order/src/filter/index.js
new file mode 100644
index 000000000..0960021a2
--- /dev/null
+++ b/client/order/src/filter/index.js
@@ -0,0 +1,22 @@
+import ngModule from '../module';
+
+class Controller {
+ constructor() {
+
+ }
+
+ setFilter() {
+ this.catalogue.applyFilter();
+ }
+}
+
+ngModule.component('vnFilter', {
+ template: require('./index.html'),
+ controller: Controller,
+ require: {
+ catalogue: '^vnOrderCatalogue'
+ },
+ bindings: {
+ order: '<'
+ }
+});
diff --git a/client/order/src/index.js b/client/order/src/index.js
index 83aa44a1f..801f07cf0 100644
--- a/client/order/src/index.js
+++ b/client/order/src/index.js
@@ -1,6 +1,9 @@
export * from './module';
-import './descriptor';
-import './index/';
import './card';
+import './descriptor';
+import './filter';
+import './index/';
import './summary';
+import './catalogue';
+import './catalogue/product';
diff --git a/client/order/src/index/index.html b/client/order/src/index/index.html
index 1559f681f..d118042e1 100644
--- a/client/order/src/index/index.html
+++ b/client/order/src/index/index.html
@@ -18,7 +18,7 @@
+ ui-sref="order.card.catalogue({id: {{::order.id}}})">
{{::order.id}}
{{::order.clientFk}}
{{::order.companyFk}}
diff --git a/client/order/src/locale/es.yml b/client/order/src/locale/es.yml
new file mode 100644
index 000000000..541aa6af4
--- /dev/null
+++ b/client/order/src/locale/es.yml
@@ -0,0 +1,4 @@
+Catalogue: Catálogo
+from: desde
+results: resultados
+No results: Sin resultados
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 33d2625d8..c461cea77 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12517,9 +12517,9 @@
"dev": true
},
"npm": {
- "version": "5.8.0",
- "resolved": "https://registry.npmjs.org/npm/-/npm-5.8.0.tgz",
- "integrity": "sha512-DowXzQwtSWDtbAjuWecuEiismR0VdNEYaL3VxNTYTdW6AGkYxfGk9LUZ/rt6etEyiH4IEk95HkJeGfXE5Rz9xQ==",
+ "version": "5.10.0",
+ "resolved": "https://registry.npmjs.org/npm/-/npm-5.10.0.tgz",
+ "integrity": "sha512-lvjvjgR5wG2RJ2uqak1xtZcVAWMwVOzN5HkUlUj/n8rU1f3A0fNn+7HwOzH9Lyf0Ppyu9ApgsEpHczOSnx1cwA==",
"requires": {
"JSONStream": "1.3.2",
"abbrev": "1.1.1",
@@ -12530,9 +12530,11 @@
"archy": "1.0.0",
"bin-links": "1.1.0",
"bluebird": "3.5.1",
+ "byte-size": "4.0.2",
"cacache": "10.0.4",
"call-limit": "1.1.0",
"chownr": "1.0.1",
+ "cli-columns": "3.1.2",
"cli-table2": "0.2.0",
"cmd-shim": "2.0.2",
"columnify": "1.5.4",
@@ -12557,11 +12559,12 @@
"ini": "1.3.5",
"init-package-json": "1.10.3",
"is-cidr": "1.0.0",
- "json-parse-better-errors": "1.0.1",
+ "json-parse-better-errors": "1.0.2",
"lazy-property": "1.0.0",
- "libcipm": "1.6.0",
- "libnpx": "10.0.1",
- "lockfile": "1.0.3",
+ "libcipm": "1.6.2",
+ "libnpx": "10.2.0",
+ "lock-verify": "2.0.2",
+ "lockfile": "1.0.4",
"lodash._baseindexof": "3.1.0",
"lodash._baseuniq": "4.6.0",
"lodash._bindcallback": "3.0.1",
@@ -12573,20 +12576,23 @@
"lodash.union": "4.6.0",
"lodash.uniq": "4.5.0",
"lodash.without": "4.4.0",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"meant": "1.0.1",
"mississippi": "3.0.0",
"mkdirp": "0.5.1",
"move-concurrently": "1.0.1",
+ "node-gyp": "3.6.2",
"nopt": "4.0.1",
"normalize-package-data": "2.4.0",
+ "npm-audit-report": "1.0.9",
"npm-cache-filename": "1.0.2",
"npm-install-checks": "3.0.0",
"npm-lifecycle": "2.0.1",
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"npm-packlist": "1.1.10",
"npm-profile": "3.0.1",
"npm-registry-client": "8.5.1",
+ "npm-registry-fetch": "1.1.0",
"npm-user-validate": "1.0.0",
"npmlog": "4.1.2",
"once": "1.4.0",
@@ -12595,39 +12601,40 @@
"pacote": "7.6.1",
"path-is-inside": "1.0.2",
"promise-inflight": "1.0.1",
- "qrcode-terminal": "0.11.0",
- "query-string": "5.1.0",
+ "qrcode-terminal": "0.12.0",
+ "query-string": "6.1.0",
"qw": "1.0.1",
"read": "1.0.7",
"read-cmd-shim": "1.0.1",
"read-installed": "4.0.3",
"read-package-json": "2.0.13",
- "read-package-tree": "5.1.6",
- "readable-stream": "2.3.5",
+ "read-package-tree": "5.2.1",
+ "readable-stream": "2.3.6",
"readdir-scoped-modules": "1.0.2",
- "request": "2.83.0",
- "retry": "0.10.1",
+ "request": "2.85.0",
+ "retry": "0.12.0",
"rimraf": "2.6.2",
- "safe-buffer": "5.1.1",
+ "safe-buffer": "5.1.2",
"semver": "5.5.0",
"sha": "2.0.1",
"slide": "1.1.6",
"sorted-object": "2.0.1",
"sorted-union-stream": "2.1.3",
- "ssri": "5.2.4",
+ "ssri": "5.3.0",
"strip-ansi": "4.0.0",
- "tar": "4.4.0",
+ "tar": "4.4.2",
"text-table": "0.2.0",
+ "tiny-relative-date": "1.3.0",
"uid-number": "0.0.6",
"umask": "1.1.0",
"unique-filename": "1.1.0",
"unpipe": "1.0.0",
- "update-notifier": "2.3.0",
+ "update-notifier": "2.5.0",
"uuid": "3.2.1",
- "validate-npm-package-license": "3.0.1",
+ "validate-npm-package-license": "3.0.3",
"validate-npm-package-name": "3.0.0",
"which": "1.3.0",
- "worker-farm": "1.5.4",
+ "worker-farm": "1.6.0",
"wrappy": "1.0.2",
"write-file-atomic": "2.3.0"
},
@@ -12690,6 +12697,10 @@
"version": "3.5.1",
"bundled": true
},
+ "byte-size": {
+ "version": "4.0.2",
+ "bundled": true
+ },
"cacache": {
"version": "10.0.4",
"bundled": true,
@@ -12698,13 +12709,13 @@
"chownr": "1.0.1",
"glob": "7.1.2",
"graceful-fs": "4.1.11",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"mississippi": "2.0.0",
"mkdirp": "0.5.1",
"move-concurrently": "1.0.1",
"promise-inflight": "1.0.1",
"rimraf": "2.6.2",
- "ssri": "5.2.4",
+ "ssri": "5.3.0",
"unique-filename": "1.1.0",
"y18n": "4.0.0"
},
@@ -12730,7 +12741,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"typedarray": "0.0.6"
},
"dependencies": {
@@ -12746,7 +12757,7 @@
"requires": {
"end-of-stream": "1.4.1",
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"stream-shift": "1.0.0"
},
"dependencies": {
@@ -12768,7 +12779,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"from2": {
@@ -12776,7 +12787,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"parallel-transform": {
@@ -12785,7 +12796,7 @@
"requires": {
"cyclist": "0.2.2",
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
},
"dependencies": {
"cyclist": {
@@ -12829,7 +12840,7 @@
"version": "2.0.3",
"bundled": true,
"requires": {
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"xtend": "4.0.1"
},
"dependencies": {
@@ -12855,6 +12866,50 @@
"version": "1.0.1",
"bundled": true
},
+ "cli-columns": {
+ "version": "3.1.2",
+ "bundled": true,
+ "requires": {
+ "string-width": "2.1.1",
+ "strip-ansi": "3.0.1"
+ },
+ "dependencies": {
+ "string-width": {
+ "version": "2.1.1",
+ "bundled": true,
+ "requires": {
+ "is-fullwidth-code-point": "2.0.0",
+ "strip-ansi": "4.0.0"
+ },
+ "dependencies": {
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "bundled": true
+ },
+ "strip-ansi": {
+ "version": "4.0.0",
+ "bundled": true,
+ "requires": {
+ "ansi-regex": "3.0.0"
+ }
+ }
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "bundled": true,
+ "requires": {
+ "ansi-regex": "2.1.1"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
"cli-table2": {
"version": "0.2.0",
"bundled": true,
@@ -13033,7 +13088,7 @@
"graceful-fs": "4.1.11",
"iferr": "0.1.5",
"imurmurhash": "0.1.4",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"gentle-fs": {
@@ -13140,12 +13195,12 @@
"bundled": true,
"requires": {
"glob": "7.1.2",
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"promzard": "0.3.0",
"read": "1.0.7",
"read-package-json": "2.0.13",
"semver": "5.5.0",
- "validate-npm-package-license": "3.0.1",
+ "validate-npm-package-license": "3.0.3",
"validate-npm-package-name": "3.0.0"
},
"dependencies": {
@@ -13172,7 +13227,7 @@
}
},
"json-parse-better-errors": {
- "version": "1.0.1",
+ "version": "1.0.2",
"bundled": true
},
"lazy-property": {
@@ -13180,26 +13235,26 @@
"bundled": true
},
"libcipm": {
- "version": "1.6.0",
+ "version": "1.6.2",
"bundled": true,
"requires": {
"bin-links": "1.1.0",
"bluebird": "3.5.1",
"find-npm-prefix": "1.0.2",
"graceful-fs": "4.1.11",
- "lock-verify": "2.0.0",
+ "lock-verify": "2.0.1",
"npm-lifecycle": "2.0.1",
"npm-logical-tree": "1.2.1",
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"pacote": "7.6.1",
"protoduck": "5.0.0",
"read-package-json": "2.0.13",
"rimraf": "2.6.2",
- "worker-farm": "1.5.4"
+ "worker-farm": "1.6.0"
},
"dependencies": {
"lock-verify": {
- "version": "2.0.0",
+ "version": "2.0.1",
"bundled": true,
"requires": {
"npm-package-arg": "5.1.2",
@@ -13234,45 +13289,18 @@
"bundled": true
}
}
- },
- "worker-farm": {
- "version": "1.5.4",
- "bundled": true,
- "requires": {
- "errno": "0.1.7",
- "xtend": "4.0.1"
- },
- "dependencies": {
- "errno": {
- "version": "0.1.7",
- "bundled": true,
- "requires": {
- "prr": "1.0.1"
- },
- "dependencies": {
- "prr": {
- "version": "1.0.1",
- "bundled": true
- }
- }
- },
- "xtend": {
- "version": "4.0.1",
- "bundled": true
- }
- }
}
}
},
"libnpx": {
- "version": "10.0.1",
+ "version": "10.2.0",
"bundled": true,
"requires": {
"dotenv": "5.0.1",
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"rimraf": "2.6.2",
- "safe-buffer": "5.1.1",
- "update-notifier": "2.3.0",
+ "safe-buffer": "5.1.2",
+ "update-notifier": "2.5.0",
"which": "1.3.0",
"y18n": "4.0.0",
"yargs": "11.0.0"
@@ -13290,7 +13318,7 @@
"version": "11.0.0",
"bundled": true,
"requires": {
- "cliui": "4.0.0",
+ "cliui": "4.1.0",
"decamelize": "1.2.0",
"find-up": "2.1.0",
"get-caller-file": "1.0.2",
@@ -13305,7 +13333,7 @@
},
"dependencies": {
"cliui": {
- "version": "4.0.0",
+ "version": "4.1.0",
"bundled": true,
"requires": {
"string-width": "2.1.1",
@@ -13445,7 +13473,7 @@
"version": "5.1.0",
"bundled": true,
"requires": {
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"shebang-command": "1.2.0",
"which": "1.3.0"
},
@@ -13579,9 +13607,26 @@
}
}
},
+ "lock-verify": {
+ "version": "2.0.2",
+ "bundled": true,
+ "requires": {
+ "npm-package-arg": "6.1.0",
+ "semver": "5.5.0"
+ }
+ },
"lockfile": {
- "version": "1.0.3",
- "bundled": true
+ "version": "1.0.4",
+ "bundled": true,
+ "requires": {
+ "signal-exit": "3.0.2"
+ },
+ "dependencies": {
+ "signal-exit": {
+ "version": "3.0.2",
+ "bundled": true
+ }
+ }
},
"lodash._baseindexof": {
"version": "3.1.0",
@@ -13645,7 +13690,7 @@
"bundled": true
},
"lru-cache": {
- "version": "4.1.1",
+ "version": "4.1.2",
"bundled": true,
"requires": {
"pseudomap": "1.0.2",
@@ -13687,7 +13732,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"typedarray": "0.0.6"
},
"dependencies": {
@@ -13703,7 +13748,7 @@
"requires": {
"end-of-stream": "1.4.1",
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"stream-shift": "1.0.0"
},
"dependencies": {
@@ -13725,7 +13770,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"from2": {
@@ -13733,7 +13778,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"parallel-transform": {
@@ -13742,7 +13787,7 @@
"requires": {
"cyclist": "0.2.2",
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
},
"dependencies": {
"cyclist": {
@@ -13796,7 +13841,7 @@
"version": "2.0.3",
"bundled": true,
"requires": {
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"xtend": "4.0.1"
},
"dependencies": {
@@ -13854,6 +13899,93 @@
}
}
},
+ "node-gyp": {
+ "version": "3.6.2",
+ "bundled": true,
+ "requires": {
+ "fstream": "1.0.11",
+ "glob": "7.1.2",
+ "graceful-fs": "4.1.11",
+ "minimatch": "3.0.4",
+ "mkdirp": "0.5.1",
+ "nopt": "3.0.6",
+ "npmlog": "4.1.2",
+ "osenv": "0.1.5",
+ "request": "2.85.0",
+ "rimraf": "2.6.2",
+ "semver": "5.3.0",
+ "tar": "2.2.1",
+ "which": "1.3.0"
+ },
+ "dependencies": {
+ "fstream": {
+ "version": "1.0.11",
+ "bundled": true,
+ "requires": {
+ "graceful-fs": "4.1.11",
+ "inherits": "2.0.3",
+ "mkdirp": "0.5.1",
+ "rimraf": "2.6.2"
+ }
+ },
+ "minimatch": {
+ "version": "3.0.4",
+ "bundled": true,
+ "requires": {
+ "brace-expansion": "1.1.11"
+ },
+ "dependencies": {
+ "brace-expansion": {
+ "version": "1.1.11",
+ "bundled": true,
+ "requires": {
+ "balanced-match": "1.0.0",
+ "concat-map": "0.0.1"
+ },
+ "dependencies": {
+ "balanced-match": {
+ "version": "1.0.0",
+ "bundled": true
+ },
+ "concat-map": {
+ "version": "0.0.1",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "nopt": {
+ "version": "3.0.6",
+ "bundled": true,
+ "requires": {
+ "abbrev": "1.1.1"
+ }
+ },
+ "semver": {
+ "version": "5.3.0",
+ "bundled": true
+ },
+ "tar": {
+ "version": "2.2.1",
+ "bundled": true,
+ "requires": {
+ "block-stream": "0.0.9",
+ "fstream": "1.0.11",
+ "inherits": "2.0.3"
+ },
+ "dependencies": {
+ "block-stream": {
+ "version": "0.0.9",
+ "bundled": true,
+ "requires": {
+ "inherits": "2.0.3"
+ }
+ }
+ }
+ }
+ }
+ },
"nopt": {
"version": "4.0.1",
"bundled": true,
@@ -13869,7 +14001,7 @@
"hosted-git-info": "2.6.0",
"is-builtin-module": "1.0.0",
"semver": "5.5.0",
- "validate-npm-package-license": "3.0.1"
+ "validate-npm-package-license": "3.0.3"
},
"dependencies": {
"is-builtin-module": {
@@ -13887,6 +14019,20 @@
}
}
},
+ "npm-audit-report": {
+ "version": "1.0.9",
+ "bundled": true,
+ "requires": {
+ "cli-table2": "0.2.0",
+ "console-control-strings": "1.1.0"
+ },
+ "dependencies": {
+ "console-control-strings": {
+ "version": "1.1.0",
+ "bundled": true
+ }
+ }
+ },
"npm-cache-filename": {
"version": "1.0.2",
"bundled": true
@@ -13916,93 +14062,6 @@
"version": "5.0.0",
"bundled": true
},
- "node-gyp": {
- "version": "3.6.2",
- "bundled": true,
- "requires": {
- "fstream": "1.0.11",
- "glob": "7.1.2",
- "graceful-fs": "4.1.11",
- "minimatch": "3.0.4",
- "mkdirp": "0.5.1",
- "nopt": "3.0.6",
- "npmlog": "4.1.2",
- "osenv": "0.1.5",
- "request": "2.83.0",
- "rimraf": "2.6.2",
- "semver": "5.3.0",
- "tar": "2.2.1",
- "which": "1.3.0"
- },
- "dependencies": {
- "fstream": {
- "version": "1.0.11",
- "bundled": true,
- "requires": {
- "graceful-fs": "4.1.11",
- "inherits": "2.0.3",
- "mkdirp": "0.5.1",
- "rimraf": "2.6.2"
- }
- },
- "minimatch": {
- "version": "3.0.4",
- "bundled": true,
- "requires": {
- "brace-expansion": "1.1.11"
- },
- "dependencies": {
- "brace-expansion": {
- "version": "1.1.11",
- "bundled": true,
- "requires": {
- "balanced-match": "1.0.0",
- "concat-map": "0.0.1"
- },
- "dependencies": {
- "balanced-match": {
- "version": "1.0.0",
- "bundled": true
- },
- "concat-map": {
- "version": "0.0.1",
- "bundled": true
- }
- }
- }
- }
- },
- "nopt": {
- "version": "3.0.6",
- "bundled": true,
- "requires": {
- "abbrev": "1.1.1"
- }
- },
- "semver": {
- "version": "5.3.0",
- "bundled": true
- },
- "tar": {
- "version": "2.2.1",
- "bundled": true,
- "requires": {
- "block-stream": "0.0.9",
- "fstream": "1.0.11",
- "inherits": "2.0.3"
- },
- "dependencies": {
- "block-stream": {
- "version": "0.0.9",
- "bundled": true,
- "requires": {
- "inherits": "2.0.3"
- }
- }
- }
- }
- }
- },
"resolve-from": {
"version": "4.0.0",
"bundled": true
@@ -14010,7 +14069,7 @@
}
},
"npm-package-arg": {
- "version": "6.0.0",
+ "version": "6.1.0",
"bundled": true,
"requires": {
"hosted-git-info": "2.6.0",
@@ -14086,12 +14145,12 @@
"http-cache-semantics": "3.8.1",
"http-proxy-agent": "2.0.0",
"https-proxy-agent": "2.1.1",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"mississippi": "1.3.1",
"node-fetch-npm": "2.0.2",
"promise-retry": "1.1.1",
"socks-proxy-agent": "3.0.1",
- "ssri": "5.2.4"
+ "ssri": "5.3.0"
},
"dependencies": {
"agentkeepalive": {
@@ -14231,7 +14290,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"typedarray": "0.0.6"
},
"dependencies": {
@@ -14247,7 +14306,7 @@
"requires": {
"end-of-stream": "1.4.1",
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"stream-shift": "1.0.0"
},
"dependencies": {
@@ -14269,7 +14328,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"from2": {
@@ -14277,7 +14336,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"parallel-transform": {
@@ -14286,7 +14345,7 @@
"requires": {
"cyclist": "0.2.2",
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
},
"dependencies": {
"cyclist": {
@@ -14340,7 +14399,7 @@
"version": "2.0.3",
"bundled": true,
"requires": {
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"xtend": "4.0.1"
},
"dependencies": {
@@ -14358,7 +14417,7 @@
"requires": {
"encoding": "0.1.12",
"json-parse-better-errors": "1.0.1",
- "safe-buffer": "5.1.1"
+ "safe-buffer": "5.1.2"
},
"dependencies": {
"encoding": {
@@ -14391,6 +14450,10 @@
"err-code": {
"version": "1.1.2",
"bundled": true
+ },
+ "retry": {
+ "version": "0.10.1",
+ "bundled": true
}
}
},
@@ -14455,15 +14518,15 @@
"concat-stream": "1.6.1",
"graceful-fs": "4.1.11",
"normalize-package-data": "2.4.0",
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"npmlog": "4.1.2",
"once": "1.4.0",
- "request": "2.83.0",
+ "request": "2.85.0",
"retry": "0.10.1",
- "safe-buffer": "5.1.1",
+ "safe-buffer": "5.1.2",
"semver": "5.5.0",
"slide": "1.1.6",
- "ssri": "5.2.4"
+ "ssri": "5.3.0"
},
"dependencies": {
"concat-stream": {
@@ -14471,7 +14534,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"typedarray": "0.0.6"
},
"dependencies": {
@@ -14480,6 +14543,264 @@
"bundled": true
}
}
+ },
+ "retry": {
+ "version": "0.10.1",
+ "bundled": true
+ }
+ }
+ },
+ "npm-registry-fetch": {
+ "version": "1.1.0",
+ "bundled": true,
+ "requires": {
+ "bluebird": "3.5.1",
+ "figgy-pudding": "2.0.1",
+ "lru-cache": "4.1.2",
+ "make-fetch-happen": "3.0.0",
+ "npm-package-arg": "6.1.0",
+ "safe-buffer": "5.1.2"
+ },
+ "dependencies": {
+ "figgy-pudding": {
+ "version": "2.0.1",
+ "bundled": true
+ },
+ "make-fetch-happen": {
+ "version": "3.0.0",
+ "bundled": true,
+ "requires": {
+ "agentkeepalive": "3.4.1",
+ "cacache": "10.0.4",
+ "http-cache-semantics": "3.8.1",
+ "http-proxy-agent": "2.1.0",
+ "https-proxy-agent": "2.2.1",
+ "lru-cache": "4.1.2",
+ "mississippi": "3.0.0",
+ "node-fetch-npm": "2.0.2",
+ "promise-retry": "1.1.1",
+ "socks-proxy-agent": "3.0.1",
+ "ssri": "5.3.0"
+ },
+ "dependencies": {
+ "agentkeepalive": {
+ "version": "3.4.1",
+ "bundled": true,
+ "requires": {
+ "humanize-ms": "1.2.1"
+ },
+ "dependencies": {
+ "humanize-ms": {
+ "version": "1.2.1",
+ "bundled": true,
+ "requires": {
+ "ms": "2.1.1"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.1",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "http-cache-semantics": {
+ "version": "3.8.1",
+ "bundled": true
+ },
+ "http-proxy-agent": {
+ "version": "2.1.0",
+ "bundled": true,
+ "requires": {
+ "agent-base": "4.2.0",
+ "debug": "3.1.0"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "4.2.0",
+ "bundled": true,
+ "requires": {
+ "es6-promisify": "5.0.0"
+ },
+ "dependencies": {
+ "es6-promisify": {
+ "version": "5.0.0",
+ "bundled": true,
+ "requires": {
+ "es6-promise": "4.2.4"
+ },
+ "dependencies": {
+ "es6-promise": {
+ "version": "4.2.4",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "debug": {
+ "version": "3.1.0",
+ "bundled": true,
+ "requires": {
+ "ms": "2.0.0"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.0.0",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "https-proxy-agent": {
+ "version": "2.2.1",
+ "bundled": true,
+ "requires": {
+ "agent-base": "4.2.0",
+ "debug": "3.1.0"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "4.2.0",
+ "bundled": true,
+ "requires": {
+ "es6-promisify": "5.0.0"
+ },
+ "dependencies": {
+ "es6-promisify": {
+ "version": "5.0.0",
+ "bundled": true,
+ "requires": {
+ "es6-promise": "4.2.4"
+ },
+ "dependencies": {
+ "es6-promise": {
+ "version": "4.2.4",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "debug": {
+ "version": "3.1.0",
+ "bundled": true,
+ "requires": {
+ "ms": "2.0.0"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.0.0",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "node-fetch-npm": {
+ "version": "2.0.2",
+ "bundled": true,
+ "requires": {
+ "encoding": "0.1.12",
+ "json-parse-better-errors": "1.0.2",
+ "safe-buffer": "5.1.2"
+ },
+ "dependencies": {
+ "encoding": {
+ "version": "0.1.12",
+ "bundled": true,
+ "requires": {
+ "iconv-lite": "0.4.21"
+ },
+ "dependencies": {
+ "iconv-lite": {
+ "version": "0.4.21",
+ "bundled": true,
+ "requires": {
+ "safer-buffer": "2.1.2"
+ },
+ "dependencies": {
+ "safer-buffer": {
+ "version": "2.1.2",
+ "bundled": true
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "promise-retry": {
+ "version": "1.1.1",
+ "bundled": true,
+ "requires": {
+ "err-code": "1.1.2",
+ "retry": "0.10.1"
+ },
+ "dependencies": {
+ "err-code": {
+ "version": "1.1.2",
+ "bundled": true
+ },
+ "retry": {
+ "version": "0.10.1",
+ "bundled": true
+ }
+ }
+ },
+ "socks-proxy-agent": {
+ "version": "3.0.1",
+ "bundled": true,
+ "requires": {
+ "agent-base": "4.2.0",
+ "socks": "1.1.10"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "4.2.0",
+ "bundled": true,
+ "requires": {
+ "es6-promisify": "5.0.0"
+ },
+ "dependencies": {
+ "es6-promisify": {
+ "version": "5.0.0",
+ "bundled": true,
+ "requires": {
+ "es6-promise": "4.2.4"
+ },
+ "dependencies": {
+ "es6-promise": {
+ "version": "4.2.4",
+ "bundled": true
+ }
+ }
+ }
+ }
+ },
+ "socks": {
+ "version": "1.1.10",
+ "bundled": true,
+ "requires": {
+ "ip": "1.1.5",
+ "smart-buffer": "1.1.15"
+ },
+ "dependencies": {
+ "ip": {
+ "version": "1.1.5",
+ "bundled": true
+ },
+ "smart-buffer": {
+ "version": "1.1.15",
+ "bundled": true
+ }
+ }
+ }
+ }
+ }
+ }
}
}
},
@@ -14502,7 +14823,7 @@
"bundled": true,
"requires": {
"delegates": "1.0.0",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
},
"dependencies": {
"delegates": {
@@ -14630,13 +14951,13 @@
"cacache": "10.0.4",
"get-stream": "3.0.0",
"glob": "7.1.2",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"make-fetch-happen": "2.6.0",
"minimatch": "3.0.4",
"mississippi": "3.0.0",
"mkdirp": "0.5.1",
"normalize-package-data": "2.4.0",
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"npm-packlist": "1.1.10",
"npm-pick-manifest": "2.1.0",
"osenv": "0.1.5",
@@ -14644,10 +14965,10 @@
"promise-retry": "1.1.1",
"protoduck": "5.0.0",
"rimraf": "2.6.2",
- "safe-buffer": "5.1.1",
+ "safe-buffer": "5.1.2",
"semver": "5.5.0",
- "ssri": "5.2.4",
- "tar": "4.4.0",
+ "ssri": "5.3.0",
+ "tar": "4.4.2",
"unique-filename": "1.1.0",
"which": "1.3.0"
},
@@ -14665,12 +14986,12 @@
"http-cache-semantics": "3.8.1",
"http-proxy-agent": "2.1.0",
"https-proxy-agent": "2.2.0",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"mississippi": "1.3.1",
"node-fetch-npm": "2.0.2",
"promise-retry": "1.1.1",
"socks-proxy-agent": "3.0.1",
- "ssri": "5.2.4"
+ "ssri": "5.3.0"
},
"dependencies": {
"agentkeepalive": {
@@ -14810,7 +15131,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"typedarray": "0.0.6"
},
"dependencies": {
@@ -14826,7 +15147,7 @@
"requires": {
"end-of-stream": "1.4.1",
"inherits": "2.0.3",
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"stream-shift": "1.0.0"
},
"dependencies": {
@@ -14848,7 +15169,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"from2": {
@@ -14856,7 +15177,7 @@
"bundled": true,
"requires": {
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"parallel-transform": {
@@ -14865,7 +15186,7 @@
"requires": {
"cyclist": "0.2.2",
"inherits": "2.0.3",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
},
"dependencies": {
"cyclist": {
@@ -14919,7 +15240,7 @@
"version": "2.0.3",
"bundled": true,
"requires": {
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"xtend": "4.0.1"
},
"dependencies": {
@@ -14937,7 +15258,7 @@
"requires": {
"encoding": "0.1.12",
"json-parse-better-errors": "1.0.1",
- "safe-buffer": "5.1.1"
+ "safe-buffer": "5.1.2"
},
"dependencies": {
"encoding": {
@@ -15042,7 +15363,7 @@
"version": "2.1.0",
"bundled": true,
"requires": {
- "npm-package-arg": "6.0.0",
+ "npm-package-arg": "6.1.0",
"semver": "5.5.0"
}
},
@@ -15057,6 +15378,10 @@
"err-code": {
"version": "1.1.2",
"bundled": true
+ },
+ "retry": {
+ "version": "0.10.1",
+ "bundled": true
}
}
},
@@ -15084,28 +15409,23 @@
"bundled": true
},
"qrcode-terminal": {
- "version": "0.11.0",
+ "version": "0.12.0",
"bundled": true
},
"query-string": {
- "version": "5.1.0",
+ "version": "6.1.0",
"bundled": true,
"requires": {
"decode-uri-component": "0.2.0",
- "object-assign": "4.1.1",
- "strict-uri-encode": "1.1.0"
+ "strict-uri-encode": "2.0.0"
},
"dependencies": {
"decode-uri-component": {
"version": "0.2.0",
"bundled": true
},
- "object-assign": {
- "version": "4.1.1",
- "bundled": true
- },
"strict-uri-encode": {
- "version": "1.1.0",
+ "version": "2.0.0",
"bundled": true
}
}
@@ -15175,7 +15495,7 @@
}
},
"read-package-tree": {
- "version": "5.1.6",
+ "version": "5.2.1",
"bundled": true,
"requires": {
"debuglog": "1.0.1",
@@ -15186,15 +15506,15 @@
}
},
"readable-stream": {
- "version": "2.3.5",
+ "version": "2.3.6",
"bundled": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "1.0.0",
"process-nextick-args": "2.0.0",
- "safe-buffer": "5.1.1",
- "string_decoder": "1.0.3",
+ "safe-buffer": "5.1.2",
+ "string_decoder": "1.1.1",
"util-deprecate": "1.0.2"
},
"dependencies": {
@@ -15211,10 +15531,10 @@
"bundled": true
},
"string_decoder": {
- "version": "1.0.3",
+ "version": "1.1.1",
"bundled": true,
"requires": {
- "safe-buffer": "5.1.1"
+ "safe-buffer": "5.1.2"
}
},
"util-deprecate": {
@@ -15234,29 +15554,29 @@
}
},
"request": {
- "version": "2.83.0",
+ "version": "2.85.0",
"bundled": true,
"requires": {
"aws-sign2": "0.7.0",
"aws4": "1.6.0",
"caseless": "0.12.0",
- "combined-stream": "1.0.5",
+ "combined-stream": "1.0.6",
"extend": "3.0.1",
"forever-agent": "0.6.1",
- "form-data": "2.3.1",
+ "form-data": "2.3.2",
"har-validator": "5.0.3",
"hawk": "6.0.2",
"http-signature": "1.2.0",
"is-typedarray": "1.0.0",
"isstream": "0.1.2",
"json-stringify-safe": "5.0.1",
- "mime-types": "2.1.17",
+ "mime-types": "2.1.18",
"oauth-sign": "0.8.2",
"performance-now": "2.1.0",
"qs": "6.5.1",
- "safe-buffer": "5.1.1",
+ "safe-buffer": "5.1.2",
"stringstream": "0.0.5",
- "tough-cookie": "2.3.3",
+ "tough-cookie": "2.3.4",
"tunnel-agent": "0.6.0",
"uuid": "3.2.1"
},
@@ -15274,7 +15594,7 @@
"bundled": true
},
"combined-stream": {
- "version": "1.0.5",
+ "version": "1.0.6",
"bundled": true,
"requires": {
"delayed-stream": "1.0.0"
@@ -15295,12 +15615,12 @@
"bundled": true
},
"form-data": {
- "version": "2.3.1",
+ "version": "2.3.2",
"bundled": true,
"requires": {
"asynckit": "0.4.0",
- "combined-stream": "1.0.5",
- "mime-types": "2.1.17"
+ "combined-stream": "1.0.6",
+ "mime-types": "2.1.18"
},
"dependencies": {
"asynckit": {
@@ -15313,18 +15633,18 @@
"version": "5.0.3",
"bundled": true,
"requires": {
- "ajv": "5.2.3",
+ "ajv": "5.5.2",
"har-schema": "2.0.0"
},
"dependencies": {
"ajv": {
- "version": "5.2.3",
+ "version": "5.5.2",
"bundled": true,
"requires": {
"co": "4.6.0",
- "fast-deep-equal": "1.0.0",
- "json-schema-traverse": "0.3.1",
- "json-stable-stringify": "1.0.1"
+ "fast-deep-equal": "1.1.0",
+ "fast-json-stable-stringify": "2.0.0",
+ "json-schema-traverse": "0.3.1"
},
"dependencies": {
"co": {
@@ -15332,25 +15652,16 @@
"bundled": true
},
"fast-deep-equal": {
- "version": "1.0.0",
+ "version": "1.1.0",
+ "bundled": true
+ },
+ "fast-json-stable-stringify": {
+ "version": "2.0.0",
"bundled": true
},
"json-schema-traverse": {
"version": "0.3.1",
"bundled": true
- },
- "json-stable-stringify": {
- "version": "1.0.1",
- "bundled": true,
- "requires": {
- "jsonify": "0.0.0"
- },
- "dependencies": {
- "jsonify": {
- "version": "0.0.0",
- "bundled": true
- }
- }
}
}
},
@@ -15366,15 +15677,15 @@
"requires": {
"boom": "4.3.1",
"cryptiles": "3.1.2",
- "hoek": "4.2.0",
- "sntp": "2.0.2"
+ "hoek": "4.2.1",
+ "sntp": "2.1.0"
},
"dependencies": {
"boom": {
"version": "4.3.1",
"bundled": true,
"requires": {
- "hoek": "4.2.0"
+ "hoek": "4.2.1"
}
},
"cryptiles": {
@@ -15388,20 +15699,20 @@
"version": "5.2.0",
"bundled": true,
"requires": {
- "hoek": "4.2.0"
+ "hoek": "4.2.1"
}
}
}
},
"hoek": {
- "version": "4.2.0",
+ "version": "4.2.1",
"bundled": true
},
"sntp": {
- "version": "2.0.2",
+ "version": "2.1.0",
"bundled": true,
"requires": {
- "hoek": "4.2.0"
+ "hoek": "4.2.1"
}
}
}
@@ -15412,7 +15723,7 @@
"requires": {
"assert-plus": "1.0.0",
"jsprim": "1.4.1",
- "sshpk": "1.13.1"
+ "sshpk": "1.14.1"
},
"dependencies": {
"assert-plus": {
@@ -15455,7 +15766,7 @@
}
},
"sshpk": {
- "version": "1.13.1",
+ "version": "1.14.1",
"bundled": true,
"requires": {
"asn1": "0.2.3",
@@ -15529,14 +15840,14 @@
"bundled": true
},
"mime-types": {
- "version": "2.1.17",
+ "version": "2.1.18",
"bundled": true,
"requires": {
- "mime-db": "1.30.0"
+ "mime-db": "1.33.0"
},
"dependencies": {
"mime-db": {
- "version": "1.30.0",
+ "version": "1.33.0",
"bundled": true
}
}
@@ -15558,7 +15869,7 @@
"bundled": true
},
"tough-cookie": {
- "version": "2.3.3",
+ "version": "2.3.4",
"bundled": true,
"requires": {
"punycode": "1.4.1"
@@ -15574,13 +15885,13 @@
"version": "0.6.0",
"bundled": true,
"requires": {
- "safe-buffer": "5.1.1"
+ "safe-buffer": "5.1.2"
}
}
}
},
"retry": {
- "version": "0.10.1",
+ "version": "0.12.0",
"bundled": true
},
"rimraf": {
@@ -15591,7 +15902,7 @@
}
},
"safe-buffer": {
- "version": "5.1.1",
+ "version": "5.1.2",
"bundled": true
},
"semver": {
@@ -15603,7 +15914,7 @@
"bundled": true,
"requires": {
"graceful-fs": "4.1.11",
- "readable-stream": "2.3.5"
+ "readable-stream": "2.3.6"
}
},
"slide": {
@@ -15660,7 +15971,7 @@
"version": "1.2.0",
"bundled": true,
"requires": {
- "readable-stream": "2.3.5",
+ "readable-stream": "2.3.6",
"stream-shift": "1.0.0"
},
"dependencies": {
@@ -15673,10 +15984,10 @@
}
},
"ssri": {
- "version": "5.2.4",
+ "version": "5.3.0",
"bundled": true,
"requires": {
- "safe-buffer": "5.1.1"
+ "safe-buffer": "5.1.2"
}
},
"strip-ansi": {
@@ -15693,14 +16004,15 @@
}
},
"tar": {
- "version": "4.4.0",
+ "version": "4.4.2",
"bundled": true,
"requires": {
"chownr": "1.0.1",
"fs-minipass": "1.2.5",
- "minipass": "2.2.1",
+ "minipass": "2.2.4",
"minizlib": "1.1.0",
"mkdirp": "0.5.1",
+ "safe-buffer": "5.1.2",
"yallist": "3.0.2"
},
"dependencies": {
@@ -15708,13 +16020,14 @@
"version": "1.2.5",
"bundled": true,
"requires": {
- "minipass": "2.2.1"
+ "minipass": "2.2.4"
}
},
"minipass": {
- "version": "2.2.1",
+ "version": "2.2.4",
"bundled": true,
"requires": {
+ "safe-buffer": "5.1.2",
"yallist": "3.0.2"
}
},
@@ -15722,9 +16035,13 @@
"version": "1.1.0",
"bundled": true,
"requires": {
- "minipass": "2.2.1"
+ "minipass": "2.2.4"
}
},
+ "safe-buffer": {
+ "version": "5.1.2",
+ "bundled": true
+ },
"yallist": {
"version": "3.0.2",
"bundled": true
@@ -15735,6 +16052,10 @@
"version": "0.2.0",
"bundled": true
},
+ "tiny-relative-date": {
+ "version": "1.3.0",
+ "bundled": true
+ },
"uid-number": {
"version": "0.0.6",
"bundled": true
@@ -15764,13 +16085,14 @@
"bundled": true
},
"update-notifier": {
- "version": "2.3.0",
+ "version": "2.5.0",
"bundled": true,
"requires": {
- "boxen": "1.2.1",
- "chalk": "2.1.0",
- "configstore": "3.1.1",
+ "boxen": "1.3.0",
+ "chalk": "2.4.1",
+ "configstore": "3.1.2",
"import-lazy": "2.1.0",
+ "is-ci": "1.1.0",
"is-installed-globally": "0.1.0",
"is-npm": "1.0.0",
"latest-version": "3.1.0",
@@ -15779,16 +16101,16 @@
},
"dependencies": {
"boxen": {
- "version": "1.2.1",
+ "version": "1.3.0",
"bundled": true,
"requires": {
"ansi-align": "2.0.0",
"camelcase": "4.1.0",
- "chalk": "2.1.0",
+ "chalk": "2.4.1",
"cli-boxes": "1.0.0",
"string-width": "2.1.1",
"term-size": "1.2.0",
- "widest-line": "1.0.0"
+ "widest-line": "2.0.0"
},
"dependencies": {
"ansi-align": {
@@ -15844,7 +16166,7 @@
"version": "5.1.0",
"bundled": true,
"requires": {
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"shebang-command": "1.2.0",
"which": "1.3.0"
},
@@ -15902,75 +16224,32 @@
}
},
"widest-line": {
- "version": "1.0.0",
+ "version": "2.0.0",
"bundled": true,
"requires": {
- "string-width": "1.0.2"
- },
- "dependencies": {
- "string-width": {
- "version": "1.0.2",
- "bundled": true,
- "requires": {
- "code-point-at": "1.1.0",
- "is-fullwidth-code-point": "1.0.0",
- "strip-ansi": "3.0.1"
- },
- "dependencies": {
- "code-point-at": {
- "version": "1.1.0",
- "bundled": true
- },
- "is-fullwidth-code-point": {
- "version": "1.0.0",
- "bundled": true,
- "requires": {
- "number-is-nan": "1.0.1"
- },
- "dependencies": {
- "number-is-nan": {
- "version": "1.0.1",
- "bundled": true
- }
- }
- },
- "strip-ansi": {
- "version": "3.0.1",
- "bundled": true,
- "requires": {
- "ansi-regex": "2.1.1"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "2.1.1",
- "bundled": true
- }
- }
- }
- }
- }
+ "string-width": "2.1.1"
}
}
}
},
"chalk": {
- "version": "2.1.0",
+ "version": "2.4.1",
"bundled": true,
"requires": {
- "ansi-styles": "3.2.0",
+ "ansi-styles": "3.2.1",
"escape-string-regexp": "1.0.5",
- "supports-color": "4.4.0"
+ "supports-color": "5.4.0"
},
"dependencies": {
"ansi-styles": {
- "version": "3.2.0",
+ "version": "3.2.1",
"bundled": true,
"requires": {
- "color-convert": "1.9.0"
+ "color-convert": "1.9.1"
},
"dependencies": {
"color-convert": {
- "version": "1.9.0",
+ "version": "1.9.1",
"bundled": true,
"requires": {
"color-name": "1.1.3"
@@ -15989,14 +16268,14 @@
"bundled": true
},
"supports-color": {
- "version": "4.4.0",
+ "version": "5.4.0",
"bundled": true,
"requires": {
- "has-flag": "2.0.0"
+ "has-flag": "3.0.0"
},
"dependencies": {
"has-flag": {
- "version": "2.0.0",
+ "version": "3.0.0",
"bundled": true
}
}
@@ -16004,12 +16283,12 @@
}
},
"configstore": {
- "version": "3.1.1",
+ "version": "3.1.2",
"bundled": true,
"requires": {
"dot-prop": "4.2.0",
"graceful-fs": "4.1.11",
- "make-dir": "1.0.0",
+ "make-dir": "1.2.0",
"unique-string": "1.0.0",
"write-file-atomic": "2.3.0",
"xdg-basedir": "3.0.0"
@@ -16029,14 +16308,14 @@
}
},
"make-dir": {
- "version": "1.0.0",
+ "version": "1.2.0",
"bundled": true,
"requires": {
- "pify": "2.3.0"
+ "pify": "3.0.0"
},
"dependencies": {
"pify": {
- "version": "2.3.0",
+ "version": "3.0.0",
"bundled": true
}
}
@@ -16060,23 +16339,36 @@
"version": "2.1.0",
"bundled": true
},
+ "is-ci": {
+ "version": "1.1.0",
+ "bundled": true,
+ "requires": {
+ "ci-info": "1.1.3"
+ },
+ "dependencies": {
+ "ci-info": {
+ "version": "1.1.3",
+ "bundled": true
+ }
+ }
+ },
"is-installed-globally": {
"version": "0.1.0",
"bundled": true,
"requires": {
- "global-dirs": "0.1.0",
- "is-path-inside": "1.0.0"
+ "global-dirs": "0.1.1",
+ "is-path-inside": "1.0.1"
},
"dependencies": {
"global-dirs": {
- "version": "0.1.0",
+ "version": "0.1.1",
"bundled": true,
"requires": {
"ini": "1.3.5"
}
},
"is-path-inside": {
- "version": "1.0.0",
+ "version": "1.0.1",
"bundled": true,
"requires": {
"path-is-inside": "1.0.2"
@@ -16100,7 +16392,7 @@
"bundled": true,
"requires": {
"got": "6.7.1",
- "registry-auth-token": "3.3.1",
+ "registry-auth-token": "3.3.2",
"registry-url": "3.1.0",
"semver": "5.5.0"
},
@@ -16115,8 +16407,8 @@
"is-redirect": "1.0.0",
"is-retry-allowed": "1.1.0",
"is-stream": "1.1.0",
- "lowercase-keys": "1.0.0",
- "safe-buffer": "5.1.1",
+ "lowercase-keys": "1.0.1",
+ "safe-buffer": "5.1.2",
"timed-out": "4.0.1",
"unzip-response": "2.0.1",
"url-parse-lax": "1.0.0"
@@ -16156,7 +16448,7 @@
"bundled": true
},
"lowercase-keys": {
- "version": "1.0.0",
+ "version": "1.0.1",
"bundled": true
},
"timed-out": {
@@ -16183,25 +16475,25 @@
}
},
"registry-auth-token": {
- "version": "3.3.1",
+ "version": "3.3.2",
"bundled": true,
"requires": {
- "rc": "1.2.1",
- "safe-buffer": "5.1.1"
+ "rc": "1.2.7",
+ "safe-buffer": "5.1.2"
},
"dependencies": {
"rc": {
- "version": "1.2.1",
+ "version": "1.2.7",
"bundled": true,
"requires": {
- "deep-extend": "0.4.2",
+ "deep-extend": "0.5.1",
"ini": "1.3.5",
"minimist": "1.2.0",
"strip-json-comments": "2.0.1"
},
"dependencies": {
"deep-extend": {
- "version": "0.4.2",
+ "version": "0.5.1",
"bundled": true
},
"minimist": {
@@ -16220,21 +16512,21 @@
"version": "3.1.0",
"bundled": true,
"requires": {
- "rc": "1.2.1"
+ "rc": "1.2.7"
},
"dependencies": {
"rc": {
- "version": "1.2.1",
+ "version": "1.2.7",
"bundled": true,
"requires": {
- "deep-extend": "0.4.2",
+ "deep-extend": "0.5.1",
"ini": "1.3.5",
"minimist": "1.2.0",
"strip-json-comments": "2.0.1"
},
"dependencies": {
"deep-extend": {
- "version": "0.4.2",
+ "version": "0.5.1",
"bundled": true
},
"minimist": {
@@ -16271,29 +16563,44 @@
"bundled": true
},
"validate-npm-package-license": {
- "version": "3.0.1",
+ "version": "3.0.3",
"bundled": true,
"requires": {
- "spdx-correct": "1.0.2",
- "spdx-expression-parse": "1.0.4"
+ "spdx-correct": "3.0.0",
+ "spdx-expression-parse": "3.0.0"
},
"dependencies": {
"spdx-correct": {
- "version": "1.0.2",
+ "version": "3.0.0",
"bundled": true,
"requires": {
- "spdx-license-ids": "1.2.2"
+ "spdx-expression-parse": "3.0.0",
+ "spdx-license-ids": "3.0.0"
},
"dependencies": {
"spdx-license-ids": {
- "version": "1.2.2",
+ "version": "3.0.0",
"bundled": true
}
}
},
"spdx-expression-parse": {
- "version": "1.0.4",
- "bundled": true
+ "version": "3.0.0",
+ "bundled": true,
+ "requires": {
+ "spdx-exceptions": "2.1.0",
+ "spdx-license-ids": "3.0.0"
+ },
+ "dependencies": {
+ "spdx-exceptions": {
+ "version": "2.1.0",
+ "bundled": true
+ },
+ "spdx-license-ids": {
+ "version": "3.0.0",
+ "bundled": true
+ }
+ }
}
}
},
@@ -16324,11 +16631,10 @@
}
},
"worker-farm": {
- "version": "1.5.4",
+ "version": "1.6.0",
"bundled": true,
"requires": {
- "errno": "0.1.7",
- "xtend": "4.0.1"
+ "errno": "0.1.7"
},
"dependencies": {
"errno": {
@@ -16343,10 +16649,6 @@
"bundled": true
}
}
- },
- "xtend": {
- "version": "4.0.1",
- "bundled": true
}
}
},
diff --git a/package.json b/package.json
index 8ad42c02e..0638d4990 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
"js-yaml": "^3.10.0",
"material-design-lite": "^1.3.0",
"mg-crud": "^1.1.2",
- "npm": "^5.8.0",
+ "npm": "^5.10.0",
"oclazyload": "^0.6.3",
"require-yaml": "0.0.1",
"validator": "^6.2.1"
diff --git a/services/loopback/server/datasources.json b/services/loopback/server/datasources.json
index 1bc491c64..f54fdd189 100644
--- a/services/loopback/server/datasources.json
+++ b/services/loopback/server/datasources.json
@@ -11,6 +11,7 @@
"port": "${salixPort}",
"username": "${salixUser}",
"password": "${salixPassword}",
+ "multipleStatements": true,
"connectTimeout": 20000,
"acquireTimeout": 20000
},
@@ -23,6 +24,7 @@
"port": "${salixPort}",
"username": "${salixUser}",
"password": "${salixPassword}",
+ "multipleStatements": true,
"connectTimeout": 20000,
"acquireTimeout": 20000
},
@@ -35,6 +37,7 @@
"port": "${salixPort}",
"username": "${salixUser}",
"password": "${salixPassword}",
+ "multipleStatements": true,
"connectTimeout": 20000,
"acquireTimeout": 20000
},
@@ -47,6 +50,7 @@
"port": "${salixPort}",
"username": "${salixUser}",
"password": "${salixPassword}",
+ "multipleStatements": true,
"connectTimeout": 20000,
"acquireTimeout": 20000
},
@@ -59,6 +63,7 @@
"port": "${salixPort}",
"username": "${salixUser}",
"password": "${salixPassword}",
+ "multipleStatements": true,
"connectTimeout": 20000,
"acquireTimeout": 20000
},
@@ -71,6 +76,7 @@
"port": "${salixPort}",
"username": "${salixUser}",
"password": "${salixPassword}",
+ "multipleStatements": true,
"connectTimeout": 20000,
"acquireTimeout": 20000
}
diff --git a/services/order/common/methods/order/itemFilter.js b/services/order/common/methods/order/itemFilter.js
new file mode 100644
index 000000000..916e0cca0
--- /dev/null
+++ b/services/order/common/methods/order/itemFilter.js
@@ -0,0 +1,41 @@
+module.exports = Self => {
+ Self.remoteMethod('itemFilter', {
+ description: 'Find all instances of the model matched by filter from the data source.',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'filter',
+ type: 'Object',
+ description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string',
+ http: {source: 'query'}
+ }
+ ],
+ returns: {
+ type: ['Object'],
+ root: true
+ },
+ http: {
+ path: `/itemFilter`,
+ verb: 'GET'
+ }
+ });
+
+ Self.itemFilter = async filter => {
+ let where = filter.where;
+ let order = await Self.findById(where.id);
+
+ let stmt = `CALL vn2008.bionic_from_type(?, ?, ?, ?);
+ SELECT bi.*, i.* FROM tmp.bionic_item bi
+ JOIN vn.item i ON i.id = bi.item_id
+ ORDER BY relevancy DESC, item_id ASC, producer DESC;`;
+
+ let [rs, items] = await Self.rawSql(stmt, [
+ order.landed,
+ order.address_id,
+ order.agency_id,
+ where.typeFk
+ ]);
+
+ return items;
+ };
+};
diff --git a/services/order/common/models/order.js b/services/order/common/models/order.js
index 37d8d5298..e81d93982 100644
--- a/services/order/common/models/order.js
+++ b/services/order/common/models/order.js
@@ -2,4 +2,5 @@ module.exports = Self => {
require('../methods/new')(Self);
//require('../methods/order/getTotalVolume')(Self);
require('../methods/order/getTotal')(Self);
+ require('../methods/order/itemFilter')(Self);
};