mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(package) join-io v1.4.0
This commit is contained in:
parent
ba04ec275b
commit
b823ea371a
3 changed files with 2 additions and 29 deletions
|
|
@ -12,7 +12,6 @@ var CloudCmd;
|
|||
client = 'client/',
|
||||
files = [
|
||||
'util',
|
||||
'join',
|
||||
'cloudfunc',
|
||||
client + 'dom',
|
||||
client + 'events',
|
||||
|
|
@ -39,6 +38,7 @@ var CloudCmd;
|
|||
|
||||
files = moduleFiles
|
||||
.concat(files)
|
||||
.concat('/join/join')
|
||||
.map(function(name) {
|
||||
return name + '.js';
|
||||
});
|
||||
|
|
|
|||
27
lib/join.js
27
lib/join.js
|
|
@ -1,27 +0,0 @@
|
|||
(function(global) {
|
||||
'use strict';
|
||||
|
||||
var PREFIX = '/join';
|
||||
|
||||
if (typeof module === 'object' && module.exports)
|
||||
module.exports = join;
|
||||
else
|
||||
global.join = join;
|
||||
|
||||
function join(prefix, names) {
|
||||
var url;
|
||||
|
||||
if (!names) {
|
||||
names = prefix;
|
||||
prefix = PREFIX;
|
||||
}
|
||||
|
||||
if (!names)
|
||||
throw(Error('names must be array!'));
|
||||
|
||||
url = prefix + ':' + names.join(':');
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
})(this);
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
"format-io": "~0.9.6",
|
||||
"http-auth": "~2.2.3",
|
||||
"jag": "~1.0.0",
|
||||
"join-io": "~1.3.0",
|
||||
"join-io": "~1.4.0",
|
||||
"jonny": "~1.0.0",
|
||||
"markdown-it": "~4.2.0",
|
||||
"mellow": "~1.3.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue