mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(cloudcmd) node v4 support: currify, pullout
This commit is contained in:
parent
3f065f4241
commit
b6537a5cfd
4 changed files with 7 additions and 5 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue