@dcloudio/uni-stacktracey 3.0.0-alpha-3070120230207001 → 3.0.0-alpha-3070120230210001

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.
@@ -3742,7 +3742,7 @@ function stacktracey(stacktrace, opts) {
3742
3742
  if (content) {
3743
3743
  return getConsumer(content).then((consumer) => {
3744
3744
  return parseSourceMapContent(consumer, {
3745
- line,
3745
+ line: line + (opts.preset.lineOffset || 0),
3746
3746
  column,
3747
3747
  }, !!opts.withSourceContent);
3748
3748
  });
@@ -3896,7 +3896,7 @@ function joinItem(item) {
3896
3896
  return `${a}${b}${c}`;
3897
3897
  }
3898
3898
  function uniStracktraceyPreset(opts) {
3899
- const { base, sourceRoot, splitThirdParty, uniPlatform } = opts;
3899
+ const { base, sourceRoot, splitThirdParty, uniPlatform, lineOffset } = opts;
3900
3900
  let stack;
3901
3901
  return {
3902
3902
  /**
@@ -3979,6 +3979,7 @@ function uniStracktraceyPreset(opts) {
3979
3979
  return errorName;
3980
3980
  }
3981
3981
  },
3982
+ lineOffset,
3982
3983
  };
3983
3984
  }
3984
3985
  function utsStracktraceyPreset(opts) {
@@ -3737,7 +3737,7 @@ function stacktracey(stacktrace, opts) {
3737
3737
  if (content) {
3738
3738
  return getConsumer(content).then((consumer) => {
3739
3739
  return parseSourceMapContent(consumer, {
3740
- line,
3740
+ line: line + (opts.preset.lineOffset || 0),
3741
3741
  column,
3742
3742
  }, !!opts.withSourceContent);
3743
3743
  });
@@ -3891,7 +3891,7 @@ function joinItem(item) {
3891
3891
  return `${a}${b}${c}`;
3892
3892
  }
3893
3893
  function uniStracktraceyPreset(opts) {
3894
- const { base, sourceRoot, splitThirdParty, uniPlatform } = opts;
3894
+ const { base, sourceRoot, splitThirdParty, uniPlatform, lineOffset } = opts;
3895
3895
  let stack;
3896
3896
  return {
3897
3897
  /**
@@ -3974,6 +3974,7 @@ function uniStracktraceyPreset(opts) {
3974
3974
  return errorName;
3975
3975
  }
3976
3976
  },
3977
+ lineOffset,
3977
3978
  };
3978
3979
  }
3979
3980
  function utsStracktraceyPreset(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-stacktracey",
3
- "version": "3.0.0-alpha-3070120230207001",
3
+ "version": "3.0.0-alpha-3070120230210001",
4
4
  "description": "@dcloudio/uni-stacktracey",
5
5
  "main": "dist/uni-stacktracey.cjs.js",
6
6
  "module": "dist/uni-stacktracey.es.js",