We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9405e35 commit cf0247fCopy full SHA for cf0247f
src/classes/MemoryCache.js
@@ -9,9 +9,7 @@ export class MemoryCache {
9
* @param {Object} options - An object of default options
10
* @param {String} [options.defaultTtl=600000] - The number of milliseconds to use as the default time-to-live of a cache entry
11
*/
12
- constructor(options) {
13
- options = options || {};
14
-
+ constructor(options = {}) {
15
this.cache = new Map();
16
this.debug = false;
17
this.hitCount = 0;
src/classes/ParseApp.js
@@ -11,7 +11,7 @@ const defaults = {
};
export class ParseApp {
- constructor(args) {
+ constructor(args = {}) {
if (!args.appId || !args.masterKey) {
throw 'You must provide an appId and masterKey!';
}
0 commit comments