@lumjs/core 1.12.0 → 1.12.1
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/obj/clone.js +1 -1
- package/lib/obj/lock.js +3 -2
- package/lib/types/lazy.js +1 -1
- package/package.json +1 -1
package/lib/obj/clone.js
CHANGED
|
@@ -272,7 +272,7 @@ function addClone(obj, defOpts=null)
|
|
|
272
272
|
{
|
|
273
273
|
if (!isObj(defOpts))
|
|
274
274
|
{ // Assign a default set of defaults.
|
|
275
|
-
defOpts = {
|
|
275
|
+
defOpts = {addClone: true};
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const defDesc = defOpts.cloneDesc ?? {};
|
package/lib/obj/lock.js
CHANGED
|
@@ -22,7 +22,7 @@ const {B, isObj, def} = require('../types');
|
|
|
22
22
|
{ // Add the clone method before freezing.
|
|
23
23
|
if (!isObj(cloneOpts))
|
|
24
24
|
{
|
|
25
|
-
cloneOpts = {
|
|
25
|
+
cloneOpts = {addClone: true, addLock: true};
|
|
26
26
|
}
|
|
27
27
|
addClone(obj, cloneOpts);
|
|
28
28
|
}
|
|
@@ -64,4 +64,5 @@ const {B, isObj, def} = require('../types');
|
|
|
64
64
|
exports.addLock = addLock;
|
|
65
65
|
|
|
66
66
|
// Importing addLock at the end, just because.
|
|
67
|
-
const {addClone} = require('./clone');
|
|
67
|
+
const {addClone} = require('./clone');
|
|
68
|
+
|
package/lib/types/lazy.js
CHANGED