Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../includes/handleba...
File: handlebars.js
}
[5000] Fix | Delete
})();
[5001] Fix | Delete
[5002] Fix | Delete
/**
[5003] Fix | Delete
* @deprecated May be removed in the next major version
[5004] Fix | Delete
*/
[5005] Fix | Delete
JavaScriptCompiler.isValidJavaScriptVariableName = function (name) {
[5006] Fix | Delete
return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name);
[5007] Fix | Delete
};
[5008] Fix | Delete
[5009] Fix | Delete
function strictLookup(requireTerminal, compiler, parts, type) {
[5010] Fix | Delete
var stack = compiler.popStack(),
[5011] Fix | Delete
i = 0,
[5012] Fix | Delete
len = parts.length;
[5013] Fix | Delete
if (requireTerminal) {
[5014] Fix | Delete
len--;
[5015] Fix | Delete
}
[5016] Fix | Delete
[5017] Fix | Delete
for (; i < len; i++) {
[5018] Fix | Delete
stack = compiler.nameLookup(stack, parts[i], type);
[5019] Fix | Delete
}
[5020] Fix | Delete
[5021] Fix | Delete
if (requireTerminal) {
[5022] Fix | Delete
return [compiler.aliasable('container.strict'), '(', stack, ', ', compiler.quotedString(parts[i]), ', ', JSON.stringify(compiler.source.currentLocation), ' )'];
[5023] Fix | Delete
} else {
[5024] Fix | Delete
return stack;
[5025] Fix | Delete
}
[5026] Fix | Delete
}
[5027] Fix | Delete
[5028] Fix | Delete
exports['default'] = JavaScriptCompiler;
[5029] Fix | Delete
module.exports = exports['default'];
[5030] Fix | Delete
[5031] Fix | Delete
/***/ }),
[5032] Fix | Delete
/* 53 */
[5033] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[5034] Fix | Delete
[5035] Fix | Delete
/* global define */
[5036] Fix | Delete
'use strict';
[5037] Fix | Delete
[5038] Fix | Delete
var _Object$keys = __webpack_require__(13)['default'];
[5039] Fix | Delete
[5040] Fix | Delete
exports.__esModule = true;
[5041] Fix | Delete
[5042] Fix | Delete
var _utils = __webpack_require__(5);
[5043] Fix | Delete
[5044] Fix | Delete
var SourceNode = undefined;
[5045] Fix | Delete
[5046] Fix | Delete
try {
[5047] Fix | Delete
/* istanbul ignore next */
[5048] Fix | Delete
if (false) {
[5049] Fix | Delete
// We don't support this in AMD environments. For these environments, we asusme that
[5050] Fix | Delete
// they are running on the browser and thus have no need for the source-map library.
[5051] Fix | Delete
var SourceMap = require('source-map');
[5052] Fix | Delete
SourceNode = SourceMap.SourceNode;
[5053] Fix | Delete
}
[5054] Fix | Delete
} catch (err) {}
[5055] Fix | Delete
/* NOP */
[5056] Fix | Delete
[5057] Fix | Delete
/* istanbul ignore if: tested but not covered in istanbul due to dist build */
[5058] Fix | Delete
if (!SourceNode) {
[5059] Fix | Delete
SourceNode = function (line, column, srcFile, chunks) {
[5060] Fix | Delete
this.src = '';
[5061] Fix | Delete
if (chunks) {
[5062] Fix | Delete
this.add(chunks);
[5063] Fix | Delete
}
[5064] Fix | Delete
};
[5065] Fix | Delete
/* istanbul ignore next */
[5066] Fix | Delete
SourceNode.prototype = {
[5067] Fix | Delete
add: function add(chunks) {
[5068] Fix | Delete
if (_utils.isArray(chunks)) {
[5069] Fix | Delete
chunks = chunks.join('');
[5070] Fix | Delete
}
[5071] Fix | Delete
this.src += chunks;
[5072] Fix | Delete
},
[5073] Fix | Delete
prepend: function prepend(chunks) {
[5074] Fix | Delete
if (_utils.isArray(chunks)) {
[5075] Fix | Delete
chunks = chunks.join('');
[5076] Fix | Delete
}
[5077] Fix | Delete
this.src = chunks + this.src;
[5078] Fix | Delete
},
[5079] Fix | Delete
toStringWithSourceMap: function toStringWithSourceMap() {
[5080] Fix | Delete
return { code: this.toString() };
[5081] Fix | Delete
},
[5082] Fix | Delete
toString: function toString() {
[5083] Fix | Delete
return this.src;
[5084] Fix | Delete
}
[5085] Fix | Delete
};
[5086] Fix | Delete
}
[5087] Fix | Delete
[5088] Fix | Delete
function castChunk(chunk, codeGen, loc) {
[5089] Fix | Delete
if (_utils.isArray(chunk)) {
[5090] Fix | Delete
var ret = [];
[5091] Fix | Delete
[5092] Fix | Delete
for (var i = 0, len = chunk.length; i < len; i++) {
[5093] Fix | Delete
ret.push(codeGen.wrap(chunk[i], loc));
[5094] Fix | Delete
}
[5095] Fix | Delete
return ret;
[5096] Fix | Delete
} else if (typeof chunk === 'boolean' || typeof chunk === 'number') {
[5097] Fix | Delete
// Handle primitives that the SourceNode will throw up on
[5098] Fix | Delete
return chunk + '';
[5099] Fix | Delete
}
[5100] Fix | Delete
return chunk;
[5101] Fix | Delete
}
[5102] Fix | Delete
[5103] Fix | Delete
function CodeGen(srcFile) {
[5104] Fix | Delete
this.srcFile = srcFile;
[5105] Fix | Delete
this.source = [];
[5106] Fix | Delete
}
[5107] Fix | Delete
[5108] Fix | Delete
CodeGen.prototype = {
[5109] Fix | Delete
isEmpty: function isEmpty() {
[5110] Fix | Delete
return !this.source.length;
[5111] Fix | Delete
},
[5112] Fix | Delete
prepend: function prepend(source, loc) {
[5113] Fix | Delete
this.source.unshift(this.wrap(source, loc));
[5114] Fix | Delete
},
[5115] Fix | Delete
push: function push(source, loc) {
[5116] Fix | Delete
this.source.push(this.wrap(source, loc));
[5117] Fix | Delete
},
[5118] Fix | Delete
[5119] Fix | Delete
merge: function merge() {
[5120] Fix | Delete
var source = this.empty();
[5121] Fix | Delete
this.each(function (line) {
[5122] Fix | Delete
source.add([' ', line, '\n']);
[5123] Fix | Delete
});
[5124] Fix | Delete
return source;
[5125] Fix | Delete
},
[5126] Fix | Delete
[5127] Fix | Delete
each: function each(iter) {
[5128] Fix | Delete
for (var i = 0, len = this.source.length; i < len; i++) {
[5129] Fix | Delete
iter(this.source[i]);
[5130] Fix | Delete
}
[5131] Fix | Delete
},
[5132] Fix | Delete
[5133] Fix | Delete
empty: function empty() {
[5134] Fix | Delete
var loc = this.currentLocation || { start: {} };
[5135] Fix | Delete
return new SourceNode(loc.start.line, loc.start.column, this.srcFile);
[5136] Fix | Delete
},
[5137] Fix | Delete
wrap: function wrap(chunk) {
[5138] Fix | Delete
var loc = arguments.length <= 1 || arguments[1] === undefined ? this.currentLocation || { start: {} } : arguments[1];
[5139] Fix | Delete
[5140] Fix | Delete
if (chunk instanceof SourceNode) {
[5141] Fix | Delete
return chunk;
[5142] Fix | Delete
}
[5143] Fix | Delete
[5144] Fix | Delete
chunk = castChunk(chunk, this, loc);
[5145] Fix | Delete
[5146] Fix | Delete
return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk);
[5147] Fix | Delete
},
[5148] Fix | Delete
[5149] Fix | Delete
functionCall: function functionCall(fn, type, params) {
[5150] Fix | Delete
params = this.generateList(params);
[5151] Fix | Delete
return this.wrap([fn, type ? '.' + type + '(' : '(', params, ')']);
[5152] Fix | Delete
},
[5153] Fix | Delete
[5154] Fix | Delete
quotedString: function quotedString(str) {
[5155] Fix | Delete
return '"' + (str + '').replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\u2028/g, '\\u2028') // Per Ecma-262 7.3 + 7.8.4
[5156] Fix | Delete
.replace(/\u2029/g, '\\u2029') + '"';
[5157] Fix | Delete
},
[5158] Fix | Delete
[5159] Fix | Delete
objectLiteral: function objectLiteral(obj) {
[5160] Fix | Delete
// istanbul ignore next
[5161] Fix | Delete
[5162] Fix | Delete
var _this = this;
[5163] Fix | Delete
[5164] Fix | Delete
var pairs = [];
[5165] Fix | Delete
[5166] Fix | Delete
_Object$keys(obj).forEach(function (key) {
[5167] Fix | Delete
var value = castChunk(obj[key], _this);
[5168] Fix | Delete
if (value !== 'undefined') {
[5169] Fix | Delete
pairs.push([_this.quotedString(key), ':', value]);
[5170] Fix | Delete
}
[5171] Fix | Delete
});
[5172] Fix | Delete
[5173] Fix | Delete
var ret = this.generateList(pairs);
[5174] Fix | Delete
ret.prepend('{');
[5175] Fix | Delete
ret.add('}');
[5176] Fix | Delete
return ret;
[5177] Fix | Delete
},
[5178] Fix | Delete
[5179] Fix | Delete
generateList: function generateList(entries) {
[5180] Fix | Delete
var ret = this.empty();
[5181] Fix | Delete
[5182] Fix | Delete
for (var i = 0, len = entries.length; i < len; i++) {
[5183] Fix | Delete
if (i) {
[5184] Fix | Delete
ret.add(',');
[5185] Fix | Delete
}
[5186] Fix | Delete
[5187] Fix | Delete
ret.add(castChunk(entries[i], this));
[5188] Fix | Delete
}
[5189] Fix | Delete
[5190] Fix | Delete
return ret;
[5191] Fix | Delete
},
[5192] Fix | Delete
[5193] Fix | Delete
generateArray: function generateArray(entries) {
[5194] Fix | Delete
var ret = this.generateList(entries);
[5195] Fix | Delete
ret.prepend('[');
[5196] Fix | Delete
ret.add(']');
[5197] Fix | Delete
[5198] Fix | Delete
return ret;
[5199] Fix | Delete
}
[5200] Fix | Delete
};
[5201] Fix | Delete
[5202] Fix | Delete
exports['default'] = CodeGen;
[5203] Fix | Delete
module.exports = exports['default'];
[5204] Fix | Delete
[5205] Fix | Delete
/***/ })
[5206] Fix | Delete
/******/ ])
[5207] Fix | Delete
});
[5208] Fix | Delete
;
[5209] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function