react-simple-game-engine 0.2.96 → 0.2.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/classes/saver.js +1 -1
- package/lib/utilities.d.ts +1 -0
- package/lib/utilities.d.ts.map +1 -1
- package/lib/utilities.js +1 -0
- package/package.json +1 -1
package/lib/classes/saver.js
CHANGED
@@ -33,7 +33,7 @@ var _Saver = /** @class */ (function () {
|
|
33
33
|
};
|
34
34
|
_Saver.prototype.getWithDefault = function (key, defaultValue, type) {
|
35
35
|
var value = this.get(key, type);
|
36
|
-
return value
|
36
|
+
return value !== null && value !== void 0 ? value : defaultValue;
|
37
37
|
};
|
38
38
|
_Saver.STORAGE_PREFIX = "rsgn::";
|
39
39
|
return _Saver;
|
package/lib/utilities.d.ts
CHANGED
package/lib/utilities.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC"}
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
package/lib/utilities.js
CHANGED