@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 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 = {mode: CLONE.DEF, addClone: true, addLock: false};
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 = {mode: CLONE.DEF, addClone: true, addLock: true};
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
@@ -206,7 +206,7 @@ function lazy(target, name, initfunc, opts={})
206
206
  }
207
207
 
208
208
  // Assign the lazy accessor property.
209
- def(target, name, desc);
209
+ return def(target, name, desc);
210
210
  }
211
211
 
212
212
  // Gotta be one of the greatest lines...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumjs/core",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "main": "lib/index.js",
5
5
  "exports":
6
6
  {