@lumjs/core 1.6.0 → 1.6.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/index.js CHANGED
@@ -51,6 +51,8 @@ has('lazy', {value: types.lazy});
51
51
 
52
52
  // The module builder itself.
53
53
  has('ModuleBuilder', {value: Builder});
54
+ // And a shortcut function.
55
+ has('buildModule', {value: function(m,o) { return Builder.build(m,o); }});
54
56
 
55
57
  /**
56
58
  * Array utility functions «Lazy»
@@ -269,22 +269,22 @@ class ModuleBuilder
269
269
  }
270
270
 
271
271
  /**
272
- * Create a functional API for the Builder class.
272
+ * Create a functional API for the ModuleBuilder class.
273
273
  *
274
- * Basically makes a new `Builder` instance, then creates standalone
274
+ * Basically makes a new `ModuleBuilder` instance, then creates standalone
275
275
  * closure functions that wrap the main instance methods.
276
276
  *
277
277
  * These functions can be imported into a namespace directly.
278
278
  * They each have a special `builder` property which is a reference
279
- * to the underlying `Builder` instance.
279
+ * to the underlying `ModuleBuilder` instance.
280
280
  *
281
281
  * There's also a `builder` property in the exported function list.
282
282
  *
283
283
  * Example usage:
284
284
  *
285
285
  * ```js
286
- * const {has,can,from} = require('@lumjs/core').modules.build(module);
287
- *
286
+ * const {has,can,from} = require('@lumjs/core').ModuleBuilder.build(module);
287
+ * // or the shortcut: require('@lumjs/core).buildModule(module);
288
288
  *
289
289
  * // exports.foo = require('./foo');
290
290
  * has('foo');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumjs/core",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "main": "lib/index.js",
5
5
  "exports":
6
6
  {