fix(cloudcmd) node v4 support: currify, pullout

This commit is contained in:
coderaiser 2017-07-12 18:03:27 +03:00
parent 3f065f4241
commit b6537a5cfd
4 changed files with 7 additions and 5 deletions

View file

@ -53,7 +53,8 @@ function getPathLink(url, prefix, template) {
.split('/')
.slice(1, -1);
const allNames = ['/', ...names];
const allNames = ['/'].concat(names);
const length = allNames.length - 1;
let path = '/';
@ -92,7 +93,8 @@ module.exports.buildFromJSON = (params) => {
const templateLink = template.link;
const json = params.data;
const {path, files} = json;
const path = json.path;
const files = json.files;
const sort = params.sort || 'name';
const order = params.order || 'asc';