@m4trix/core 0.12.1 → 0.13.0

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/dist/index.js CHANGED
@@ -1559,16 +1559,20 @@ var LayerName = Brand.refined(
1559
1559
  (s) => Brand.error(`Expected camelCase (e.g. myLayerFoo), got: ${s}`)
1560
1560
  );
1561
1561
  var DepedencyLayer = {
1562
- of(config) {
1563
- const name = LayerName(config.name);
1564
- const decode = Schema.decodeUnknown(config.shape);
1565
- return {
1562
+ of(def) {
1563
+ const name = LayerName(def.name);
1564
+ const decodeConfig = Schema.decodeUnknown(def.config);
1565
+ const dep = {
1566
1566
  _tag: "SkillDependencyDef",
1567
1567
  name,
1568
- _name: config.name,
1569
- shape: config.shape,
1570
- decode
1568
+ _name: def.name,
1569
+ config: def.config,
1570
+ decodeConfig,
1571
+ define() {
1572
+ return dep;
1573
+ }
1571
1574
  };
1575
+ return dep;
1572
1576
  }
1573
1577
  };
1574
1578
  function toLayerArray(layers) {