This repository was archived by the owner on Jan 21, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 "@types/request" : " ^2.48.1" ,
7070 "@types/semver" : " ^6.0.0" ,
7171 "@types/shimmer" : " ^1.0.1" ,
72+ "@types/source-map-support" : " ^0.5.0" ,
7273 "@types/tmp" : " 0.1.0" ,
7374 "@types/uuid" : " ^3.4.3" ,
7475 "axios" : " ^0.18.0" ,
9091 "pify" : " ^4.0.0" ,
9192 "retry-axios" : " ^1.0.0" ,
9293 "rimraf" : " ^2.6.2" ,
93- "source-map-support" : " ^0.5.6" ,
9494 "standard-version" : " ^5.0.0" ,
9595 "teeny-request" : " ^3.11.1" ,
9696 "timekeeper" : " ^2.0.0" ,
110110 "methods" : " ^1.1.1" ,
111111 "require-in-the-middle" : " ^4.0.0" ,
112112 "semver" : " ^6.0.0" ,
113+ "source-map-support" : " ^0.5.12" ,
113114 "shimmer" : " ^1.2.0" ,
114115 "uuid" : " ^3.0.1"
115116 }
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16-
1716import * as path from 'path' ;
17+ import * as sourceMapSupport from 'source-map-support' ;
18+
1819const { hexToDec, decToHex} : { [ key : string ] : ( input : string ) => string } =
1920 require ( 'hex2dec' ) ;
2021
@@ -206,7 +207,7 @@ export function createStackTrace(
206207 const origPrepare = Error . prepareStackTrace ;
207208 Error . prepareStackTrace =
208209 ( error : Error , structured : NodeJS . CallSite [ ] ) : NodeJS . CallSite [ ] => {
209- return structured ;
210+ return structured . map ( sourceMapSupport . wrapCallSite ) ;
210211 } ;
211212 const e : { stack ?: NodeJS . CallSite [ ] } = { } ;
212213 Error . captureStackTrace ( e , constructorOpt ) ;
You can’t perform that action at this time.
0 commit comments