dependencies: Upgrade stacktrace-gps from 3.0.3 to 3.0.4.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-02-04 22:11:39 -08:00
parent e88fac499f
commit 91b57be02e
5 changed files with 18 additions and 19 deletions

View File

@ -54,7 +54,7 @@
"sorttable": "^1.0.2",
"source-sans-pro": "^3.6.0",
"spectrum-colorpicker": "^1.8.0",
"stacktrace-gps": "^3.0.3",
"stacktrace-gps": "^3.0.4",
"style-loader": "^1.0.0",
"terser-webpack-plugin": "^2.1.0",
"turndown": "^5.0.3",

View File

@ -1,5 +1,6 @@
import $ from "jquery";
import ErrorStackParser from "error-stack-parser";
import StackFrame from "stackframe";
import StackTraceGPS from "stacktrace-gps";
import render_blueslip_stacktrace from "../templates/blueslip_stacktrace.hbs";
@ -52,7 +53,7 @@ const sourceCache: { [source: string]: string | Promise<string> } = {};
const stack_trace_gps = new StackTraceGPS({ sourceCache });
async function get_context(location: StackFrame.StackFrame): Promise<NumberedLine[] | undefined> {
async function get_context(location: StackFrame): Promise<NumberedLine[] | undefined> {
const sourceContent = await sourceCache[location.getFileName()];
if (sourceContent === undefined) {
return undefined;
@ -77,7 +78,7 @@ export async function display_stacktrace(error: string, stack: string): Promise<
const location = await stack_trace_gps.getMappedLocation(
// Work around mistake in ErrorStackParser.StackFrame definition
// https://github.com/stacktracejs/error-stack-parser/pull/49
(stack_frame as unknown) as StackFrame.StackFrame
(stack_frame as unknown) as StackFrame
);
return {
full_path: location.getFileName(),

View File

@ -1,7 +1,5 @@
// https://github.com/stacktracejs/stackframe/pull/27
/// <reference types="stackframe/stackframe" />
import SourceMap from "source-map";
import StackFrame from "stackframe";
declare namespace StackTraceGPS {
type StackTraceGPSOptions = {
@ -16,9 +14,9 @@ declare namespace StackTraceGPS {
// eslint-disable-next-line no-redeclare
declare class StackTraceGPS {
constructor(options?: StackTraceGPS.StackTraceGPSOptions);
pinpoint(stackframe: StackFrame.StackFrame): Promise<StackFrame.StackFrame>;
findFunctionName(stackframe: StackFrame.StackFrame): Promise<StackFrame.StackFrame>;
getMappedLocation(stackframe: StackFrame.StackFrame): Promise<StackFrame.StackFrame>;
pinpoint(stackframe: StackFrame): Promise<StackFrame>;
findFunctionName(stackframe: StackFrame): Promise<StackFrame>;
getMappedLocation(stackframe: StackFrame): Promise<StackFrame>;
}
export = StackTraceGPS;

View File

@ -26,4 +26,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/12/13/zulip-2-1-relea
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = '68.0'
PROVISION_VERSION = '69.0'

View File

@ -10642,18 +10642,18 @@ stack-trace@0.0.9:
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.9.tgz#a8f6eaeca90674c333e7c43953f275b451510695"
integrity sha1-qPbq7KkGdMMz58Q5U/J1tFFRBpU=
stackframe@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.1.0.tgz#e3fc2eb912259479c9822f7d1f1ff365bd5cbc83"
integrity sha512-Vx6W1Yvy+AM1R/ckVwcHQHV147pTPBKWCRLrXMuPrFVfvBUc3os7PR1QLIWCMhPpRg5eX9ojzbQIMLGBwyLjqg==
stackframe@^1.1.0, stackframe@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.1.1.tgz#ffef0a3318b1b60c3b58564989aca5660729ec71"
integrity sha512-0PlYhdKh6AfFxRyK/v+6/k+/mMfyiEBbTM5L94D0ZytQnJ166wuwoTYLHFWGbs2dpA8Rgq763KGWmN1EQEYHRQ==
stacktrace-gps@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/stacktrace-gps/-/stacktrace-gps-3.0.3.tgz#b89f84cc13bb925b96607e737b617c8715facf57"
integrity sha512-51Rr7dXkyFUKNmhY/vqZWK+EvdsfFSRiQVtgHTFlAdNIYaDD7bVh21yBHXaNWAvTD+w+QSjxHg7/v6Tz4veExA==
stacktrace-gps@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/stacktrace-gps/-/stacktrace-gps-3.0.4.tgz#7688dc2fc09ffb3a13165ebe0dbcaf41bcf0c69a"
integrity sha512-qIr8x41yZVSldqdqe6jciXEaSCKw1U8XTXpjDuy0ki/apyTn/r3w9hDAAQOhZdxvsC93H+WwwEu5cq5VemzYeg==
dependencies:
source-map "0.5.6"
stackframe "^1.1.0"
stackframe "^1.1.1"
state-toggle@^1.0.0:
version "1.0.2"