Skip to content

Commit 495a895

Browse files
author
patched.codes[bot]
committed
Patched /tmp/tmpo4mp6t_w/public/bower_components/firebase/firebase-debug.js
1 parent 04db6e9 commit 495a895

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

public/bower_components/firebase/firebase-debug.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,14 +549,14 @@ goog.json.parse = goog.json.USE_NATIVE_JSON ? (goog.global["JSON"]["parse"]) : f
549549
var o = String(s);
550550
if (goog.json.isValid_(o)) {
551551
try {
552-
return(eval("(" + o + ")"));
552+
return JSON.parse(o);
553553
} catch (ex) {
554554
}
555555
}
556556
throw Error("Invalid JSON string: " + o);
557557
};
558558
goog.json.unsafeParse = goog.json.USE_NATIVE_JSON ? (goog.global["JSON"]["parse"]) : function(s) {
559-
return(eval("(" + s + ")"));
559+
return JSON.parse(s);
560560
};
561561
goog.json.Replacer;
562562
goog.json.Reviver;
@@ -716,7 +716,7 @@ goog.scope(function() {
716716
if (storedVal == null) {
717717
return null;
718718
} else {
719-
return fb.util.json.eval(storedVal);
719+
return fb.util.json.parse(storedVal);
720720
}
721721
};
722722
DOMStorageWrapper.prototype.remove = function(key) {
@@ -1362,7 +1362,7 @@ goog.string.remove = function(s, ss) {
13621362
};
13631363
goog.string.removeAll = function(s, ss) {
13641364
var re = new RegExp(goog.string.regExpEscape(ss), "g");
1365-
return s.replace(re, "");
1365+
return s.replace(/<RegExp goes here>/g, "");
13661366
};
13671367
goog.string.regExpEscape = function(s) {
13681368
return String(s).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1").replace(/\x08/g, "\\x08");
@@ -1458,7 +1458,7 @@ goog.string.toSelectorCase = function(str) {
14581458
goog.string.toTitleCase = function(str, opt_delimiters) {
14591459
var delimiters = goog.isString(opt_delimiters) ? goog.string.regExpEscape(opt_delimiters) : "\\s";
14601460
delimiters = delimiters ? "|[" + delimiters + "]+" : "";
1461-
var regexp = new RegExp("(^" + delimiters + ")([a-z])", "g");
1461+
var regexp = new RegExp("(^|[\s]+)([a-z])", "g");
14621462
return str.replace(regexp, function(all, p1, p2) {
14631463
return p1 + p2.toUpperCase();
14641464
});
@@ -6119,7 +6119,7 @@ goog.provide("fb.core.util.NodePatches");
61196119
}
61206120
function decodeChunk(state, chunk, encoding) {
61216121
if (!state["objectMode"] && state["decodeStrings"] !== false && typeof chunk === "string") {
6122-
chunk = new Buffer(chunk, encoding);
6122+
chunk = Buffer.from(chunk, encoding);
61236123
}
61246124
return chunk;
61256125
}

0 commit comments

Comments
 (0)