mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(package) jonny v2.0.3
This commit is contained in:
parent
44dc379053
commit
cd1fe7db29
8 changed files with 11 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ const rendy = require('rendy');
|
|||
const exec = require('execon');
|
||||
const Images = require('./dom/images');
|
||||
const join = require('join-io/www/join');
|
||||
const jonny = require('jonny');
|
||||
const jonny = require('jonny/legacy');
|
||||
|
||||
const {
|
||||
apiURL,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/* global CloudCmd */
|
||||
|
||||
const jonny = require('jonny');
|
||||
const jonny = require('jonny/legacy');
|
||||
const exec = require('execon');
|
||||
|
||||
const Storage = require('./storage');
|
||||
|
|
@ -105,7 +105,7 @@ function BufferProto() {
|
|||
const copy = Storage.get.bind(Storage, COPY);
|
||||
const cut = Storage.get.bind(Storage, CUT);
|
||||
|
||||
exec.parallel([copy, cut], function(error, cp, ct) {
|
||||
exec.parallel([copy, cut], (error, cp, ct) => {
|
||||
const opStr = cp ? 'copy' : 'move';
|
||||
const opData = cp || ct;
|
||||
const Operation = CloudCmd.Operation;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const itype = require('itype/legacy');
|
||||
const exec = require('execon');
|
||||
const jonny = require('jonny');
|
||||
const jonny = require('jonny/legacy');
|
||||
const Util = require('../../common/util');
|
||||
|
||||
const {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const itype = require('itype/legacy');
|
||||
const jonny = require('jonny');
|
||||
const jonny = require('jonny/legacy');
|
||||
const Emitify = require('emitify/legacy');
|
||||
const exec = require('execon');
|
||||
const Images = require('./images');
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
const itype = require('itype/legacy');
|
||||
const jonny = require('jonny');
|
||||
const jonny = require('jonny/legacy');
|
||||
const exec = require('execon');
|
||||
const tryCatch = require('try-catch');
|
||||
const setItem = localStorage.setItem.bind(localStorage);
|
||||
|
||||
/* приватный переключатель возможности работы с кэшем */
|
||||
let Allowed;
|
||||
|
|
@ -49,9 +51,7 @@ module.exports.set = (name, data, callback) => {
|
|||
str = jonny.stringify(data);
|
||||
|
||||
if (Allowed && name)
|
||||
error = exec.try(() => {
|
||||
localStorage.setItem(name, str || data);
|
||||
});
|
||||
[error] = tryCatch(setItem, name, str || data);
|
||||
|
||||
exec(callback, error);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
const exec = require('execon');
|
||||
const jonny = require('jonny');
|
||||
|
||||
const Scope = typeof window !== 'undefined' ? window : global;
|
||||
|
||||
module.exports.getStrBigFirst = getStrBigFirst;
|
||||
module.exports.kebabToCamelCase = kebabToCamelCase;
|
||||
module.exports.json = jonny;
|
||||
|
||||
module.exports.escapeRegExp = (str) => {
|
||||
const isStr = typeof str === 'string';
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@
|
|||
"jaguar": "^3.0.0",
|
||||
"jju": "^1.3.0",
|
||||
"join-io": "^2.0.0",
|
||||
"jonny": "^1.0.0",
|
||||
"jonny": "^2.0.3",
|
||||
"markdown-it": "^8.0.0",
|
||||
"mellow": "^2.0.0",
|
||||
"minimist": "^1.2.0",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const squad = require('squad/legacy');
|
|||
const promisify = require('es6-promisify').promisify;
|
||||
const pullout = promisify(require('pullout/legacy'));
|
||||
const ponse = require('ponse');
|
||||
const jonny = require('jonny');
|
||||
const jonny = require('jonny/legacy');
|
||||
const jju = require('jju');
|
||||
const writejson = require('writejson');
|
||||
const tryCatch = require('try-catch');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue