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