mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix: typo: Wraped -> Wrapped
This commit is contained in:
parent
91de9b3d27
commit
f7a6a36696
4 changed files with 16 additions and 16 deletions
|
|
@ -35,7 +35,7 @@ const ConfigPath = path.join(DIR, 'json/config.json');
|
|||
const ConfigHome = path.join(HOME, '.cloudcmd.json');
|
||||
|
||||
const connection = currify(_connection);
|
||||
const connectionWraped = wraptile(_connection);
|
||||
const connectionWrapped = wraptile(_connection);
|
||||
const middle = currify(_middle);
|
||||
|
||||
const readjsonSync = (name) => {
|
||||
|
|
@ -155,7 +155,7 @@ function listen(manage, sock, auth) {
|
|||
return connection(manage, socket);
|
||||
|
||||
const reject = () => socket.emit('reject');
|
||||
socket.on('auth', auth(connectionWraped(manage, socket), reject));
|
||||
socket.on('auth', auth(connectionWrapped(manage, socket), reject));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import log, {
|
|||
makeColor,
|
||||
getMessage,
|
||||
getDescription,
|
||||
logWraped,
|
||||
logWrapped,
|
||||
} from './log.mjs';
|
||||
|
||||
const omitList = [
|
||||
|
|
@ -41,9 +41,9 @@ export const distributeExport = (config, socket) => {
|
|||
const distributePrefix = `${prefix}/distribute`;
|
||||
const isLog = config('log');
|
||||
|
||||
const onError = squad(logWraped(isLog, exportStr), getMessage);
|
||||
const onError = squad(logWrapped(isLog, exportStr), getMessage);
|
||||
|
||||
const onConnectError = squad(logWraped(isLog, exportStr), getDescription);
|
||||
const onConnectError = squad(logWrapped(isLog, exportStr), getDescription);
|
||||
|
||||
socket
|
||||
.of(distributePrefix)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const {
|
|||
authTryStr,
|
||||
getMessage,
|
||||
getDescription,
|
||||
logWraped,
|
||||
logWrapped,
|
||||
} = log;
|
||||
|
||||
const {entries} = Object;
|
||||
|
|
@ -94,23 +94,23 @@ export const distributeImport = (config, options, fn) => {
|
|||
const close = closeIfNot(socket, importListen);
|
||||
|
||||
const statusStore = fullstore();
|
||||
const statusStoreWraped = wraptile(statusStore);
|
||||
const statusStoreWrapped = wraptile(statusStore);
|
||||
|
||||
const onConfig = squad(close, logWraped(isLog, importStr, `config received from ${colorUrl}`), statusStoreWraped('received'), updateConfig(config));
|
||||
const onConfig = squad(close, logWrapped(isLog, importStr, `config received from ${colorUrl}`), statusStoreWrapped('received'), updateConfig(config));
|
||||
|
||||
const onError = squad(superFn('error'), logWraped(isLog, config, importStr), addUrl(colorUrl), getMessage);
|
||||
const onError = squad(superFn('error'), logWrapped(isLog, config, importStr), addUrl(colorUrl), getMessage);
|
||||
|
||||
const onConnectError = squad(superFn('connect_error'), logWraped(isLog, importStr), addUrl(colorUrl), getDescription);
|
||||
const onConnectError = squad(superFn('connect_error'), logWrapped(isLog, importStr), addUrl(colorUrl), getDescription);
|
||||
|
||||
const onConnect = emitAuth(importUrl, config, socket);
|
||||
const onAccept = logWraped(isLog, importStr, `${connectedStr} to ${colorUrl}`);
|
||||
const onAccept = logWrapped(isLog, importStr, `${connectedStr} to ${colorUrl}`);
|
||||
|
||||
const onDisconnect = squad(
|
||||
done(
|
||||
fn,
|
||||
statusStore,
|
||||
),
|
||||
logWraped(
|
||||
logWrapped(
|
||||
isLog,
|
||||
importStr,
|
||||
`${disconnectedStr} from ${colorUrl}`,
|
||||
|
|
@ -125,9 +125,9 @@ export const distributeImport = (config, options, fn) => {
|
|||
),
|
||||
);
|
||||
|
||||
const onChange = squad(logWraped(isLog, importStr), config);
|
||||
const onChange = squad(logWrapped(isLog, importStr), config);
|
||||
|
||||
const onReject = squad(superFn('reject'), logWraped(
|
||||
const onReject = squad(superFn('reject'), logWrapped(
|
||||
isLog,
|
||||
importStr,
|
||||
tokenRejectedStr,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export const getDescription = (e) => e.message;
|
|||
|
||||
export default log;
|
||||
|
||||
export const logWraped = wraptile(log);
|
||||
export const logWrapped = wraptile(log);
|
||||
|
||||
export const importStr = 'import';
|
||||
export const exportStr = 'export';
|
||||
|
|
@ -43,7 +43,7 @@ assign(log, {
|
|||
getDescription,
|
||||
authTryStr,
|
||||
stringToRGB,
|
||||
logWraped,
|
||||
logWrapped,
|
||||
importStr,
|
||||
exportStr,
|
||||
connectedStr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue