@bluelibs/runner 4.8.5 → 4.8.6

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.
@@ -339,13 +339,18 @@ function makeErrorBuilder(state) {
339
339
  const next = clone(state, { format: fn });
340
340
  return makeErrorBuilder(next);
341
341
  },
342
+ meta(m) {
343
+ const next = clone(state, { meta: m });
344
+ return makeErrorBuilder(next);
345
+ },
342
346
  build() {
343
347
  return defineError({
344
348
  id: state.id,
345
349
  serialize: state.serialize,
346
350
  parse: state.parse,
347
351
  dataSchema: state.dataSchema,
348
- format: state.format
352
+ format: state.format,
353
+ meta: state.meta
349
354
  });
350
355
  }
351
356
  };
@@ -357,7 +362,8 @@ function errorBuilder(id2) {
357
362
  id: id2,
358
363
  serialize: void 0,
359
364
  parse: void 0,
360
- dataSchema: void 0
365
+ dataSchema: void 0,
366
+ meta: {}
361
367
  });
362
368
  return makeErrorBuilder(initial);
363
369
  }
@@ -5527,15 +5533,19 @@ function makeResourceBuilder(state) {
5527
5533
  meta: state.meta,
5528
5534
  overrides: state.overrides
5529
5535
  };
5530
- return defineResource(definition);
5536
+ const resource2 = defineResource(definition);
5537
+ resource2[symbolFilePath] = state.filePath;
5538
+ return resource2;
5531
5539
  }
5532
5540
  };
5533
5541
  return builder;
5534
5542
  }
5535
5543
  __name(makeResourceBuilder, "makeResourceBuilder");
5536
5544
  function resourceBuilder(id2) {
5545
+ const filePath = getCallerFile();
5537
5546
  const initial = Object.freeze({
5538
5547
  id: id2,
5548
+ filePath,
5539
5549
  dependencies: void 0,
5540
5550
  register: void 0,
5541
5551
  middleware: [],
@@ -5649,6 +5659,7 @@ function makePhantomTaskBuilder(state) {
5649
5659
  meta: state.meta,
5650
5660
  tags: state.tags
5651
5661
  });
5662
+ built[symbolFilePath] = state.filePath;
5652
5663
  return built;
5653
5664
  }
5654
5665
  };
@@ -5656,8 +5667,10 @@ function makePhantomTaskBuilder(state) {
5656
5667
  }
5657
5668
  __name(makePhantomTaskBuilder, "makePhantomTaskBuilder");
5658
5669
  function phantomTaskBuilder(id2) {
5670
+ const filePath = getCallerFile();
5659
5671
  const initial = Object.freeze({
5660
5672
  id: id2,
5673
+ filePath,
5661
5674
  dependencies: {},
5662
5675
  middleware: [],
5663
5676
  meta: {},
@@ -5724,17 +5737,21 @@ function makeTaskBuilder(state) {
5724
5737
  return makeTaskBuilder(next);
5725
5738
  },
5726
5739
  build() {
5727
- return defineTask({
5740
+ const task2 = defineTask({
5728
5741
  ...state
5729
5742
  });
5743
+ task2[symbolFilePath] = state.filePath;
5744
+ return task2;
5730
5745
  }
5731
5746
  };
5732
5747
  return builder;
5733
5748
  }
5734
5749
  __name(makeTaskBuilder, "makeTaskBuilder");
5735
5750
  function taskBuilder(id2) {
5751
+ const filePath = getCallerFile();
5736
5752
  const initial = Object.freeze({
5737
5753
  id: id2,
5754
+ filePath,
5738
5755
  dependencies: {},
5739
5756
  middleware: [],
5740
5757
  meta: {},
@@ -5773,17 +5790,21 @@ function makeEventBuilder(state) {
5773
5790
  return makeEventBuilder(next);
5774
5791
  },
5775
5792
  build() {
5776
- return defineEvent({
5793
+ const event2 = defineEvent({
5777
5794
  ...state
5778
5795
  });
5796
+ event2[symbolFilePath] = state.filePath;
5797
+ return event2;
5779
5798
  }
5780
5799
  };
5781
5800
  return b;
5782
5801
  }
5783
5802
  __name(makeEventBuilder, "makeEventBuilder");
5784
5803
  function eventBuilder(id2) {
5804
+ const filePath = getCallerFile();
5785
5805
  const initial = Object.freeze({
5786
5806
  id: id2,
5807
+ filePath,
5787
5808
  meta: {},
5788
5809
  payloadSchema: void 0,
5789
5810
  tags: []
@@ -5862,17 +5883,21 @@ function makeHookBuilder(state) {
5862
5883
  return makeHookBuilder(next);
5863
5884
  },
5864
5885
  build() {
5865
- return defineHook({
5886
+ const hook2 = defineHook({
5866
5887
  ...state
5867
5888
  });
5889
+ hook2[symbolFilePath] = state.filePath;
5890
+ return hook2;
5868
5891
  }
5869
5892
  };
5870
5893
  return b;
5871
5894
  }
5872
5895
  __name(makeHookBuilder, "makeHookBuilder");
5873
5896
  function hookBuilder(id2) {
5897
+ const filePath = getCallerFile();
5874
5898
  const initial = Object.freeze({
5875
5899
  id: id2,
5900
+ filePath,
5876
5901
  dependencies: {},
5877
5902
  on: "*",
5878
5903
  order: void 0,
@@ -5955,17 +5980,21 @@ function makeTaskMiddlewareBuilder(state) {
5955
5980
  return makeTaskMiddlewareBuilder(next);
5956
5981
  },
5957
5982
  build() {
5958
- return defineTaskMiddleware({
5983
+ const middleware = defineTaskMiddleware({
5959
5984
  ...state
5960
5985
  });
5986
+ middleware[symbolFilePath] = state.filePath;
5987
+ return middleware;
5961
5988
  }
5962
5989
  };
5963
5990
  return b;
5964
5991
  }
5965
5992
  __name(makeTaskMiddlewareBuilder, "makeTaskMiddlewareBuilder");
5966
5993
  function taskMiddlewareBuilder(id2) {
5994
+ const filePath = getCallerFile();
5967
5995
  const initial = Object.freeze({
5968
5996
  id: id2,
5997
+ filePath,
5969
5998
  dependencies: {},
5970
5999
  configSchema: void 0,
5971
6000
  run: void 0,
@@ -6045,17 +6074,21 @@ function makeResourceMiddlewareBuilder(state) {
6045
6074
  return makeResourceMiddlewareBuilder(next);
6046
6075
  },
6047
6076
  build() {
6048
- return defineResourceMiddleware({
6077
+ const middleware = defineResourceMiddleware({
6049
6078
  ...state
6050
6079
  });
6080
+ middleware[symbolFilePath] = state.filePath;
6081
+ return middleware;
6051
6082
  }
6052
6083
  };
6053
6084
  return b;
6054
6085
  }
6055
6086
  __name(makeResourceMiddlewareBuilder, "makeResourceMiddlewareBuilder");
6056
6087
  function resourceMiddlewareBuilder(id2) {
6088
+ const filePath = getCallerFile();
6057
6089
  const initial = Object.freeze({
6058
6090
  id: id2,
6091
+ filePath,
6059
6092
  dependencies: {},
6060
6093
  configSchema: void 0,
6061
6094
  run: void 0,
@@ -6094,21 +6127,25 @@ function makeTagBuilder(state) {
6094
6127
  );
6095
6128
  },
6096
6129
  build() {
6097
- return defineTag({
6130
+ const tag2 = defineTag({
6098
6131
  id: state.id,
6099
6132
  meta: state.meta,
6100
6133
  configSchema: state.configSchema,
6101
6134
  config: state.config
6102
6135
  });
6136
+ tag2[symbolFilePath] = state.filePath;
6137
+ return tag2;
6103
6138
  }
6104
6139
  };
6105
6140
  return b;
6106
6141
  }
6107
6142
  __name(makeTagBuilder, "makeTagBuilder");
6108
6143
  function tagBuilder(id2) {
6144
+ const filePath = getCallerFile();
6109
6145
  const initial = Object.freeze(
6110
6146
  {
6111
6147
  id: id2,
6148
+ filePath,
6112
6149
  meta: {},
6113
6150
  configSchema: void 0,
6114
6151
  config: void 0
@@ -6139,12 +6176,17 @@ function makeAsyncContextBuilder(state) {
6139
6176
  const next = clone8(state, { configSchema: schema });
6140
6177
  return makeAsyncContextBuilder(next);
6141
6178
  },
6179
+ meta(m) {
6180
+ const next = clone8(state, { meta: m });
6181
+ return makeAsyncContextBuilder(next);
6182
+ },
6142
6183
  build() {
6143
6184
  const def = {
6144
6185
  id: state.id,
6145
6186
  serialize: state.serialize,
6146
6187
  parse: state.parse,
6147
- configSchema: state.configSchema
6188
+ configSchema: state.configSchema,
6189
+ meta: state.meta
6148
6190
  };
6149
6191
  return defineAsyncContext(def);
6150
6192
  }
@@ -6157,7 +6199,8 @@ function asyncContextBuilder(id2) {
6157
6199
  id: id2,
6158
6200
  serialize: void 0,
6159
6201
  parse: void 0,
6160
- configSchema: void 0
6202
+ configSchema: void 0,
6203
+ meta: {}
6161
6204
  });
6162
6205
  return makeAsyncContextBuilder(initial);
6163
6206
  }