From 7f35e862fd54d457dcdb5e7300f4f2ab21695c8d Mon Sep 17 00:00:00 2001 From: Alcedo Nathaniel De Guzman Jr Date: Sun, 24 Feb 2019 09:16:16 +0800 Subject: [PATCH 1/4] Update source-map-support to include type definition for resetRetrieveHandlers --- types/source-map-support/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/source-map-support/index.d.ts b/types/source-map-support/index.d.ts index f92a8383b557ce..f6533dc1d88c41 100644 --- a/types/source-map-support/index.d.ts +++ b/types/source-map-support/index.d.ts @@ -37,6 +37,7 @@ export function wrapCallSite(frame: any /* StackFrame */): any /* StackFrame */; export function getErrorSource(error: Error): string | null; export function mapSourcePosition(position: Position): Position; export function retrieveSourceMap(source: string): UrlAndMap | null; +export function resetRetrieveHandlers(): void; /** * Install SourceMap support. From 0001ebd8bb91b91c59c50347cecf9cb879ade6c4 Mon Sep 17 00:00:00 2001 From: Alcedo Nathaniel De Guzman Jr Date: Sun, 24 Feb 2019 09:27:43 +0800 Subject: [PATCH 2/4] Update header version --- types/source-map-support/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/source-map-support/index.d.ts b/types/source-map-support/index.d.ts index f6533dc1d88c41..e1256d8ddbc681 100644 --- a/types/source-map-support/index.d.ts +++ b/types/source-map-support/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for source-map-support 0.4 +// Type definitions for source-map-support 0.5 // Project: https://github.com/evanw/node-source-map-support // Definitions by: Bart van der Schoor , Jason Cheatham // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 44fa413f1ec2327ed9e2b514b5ff1abd518db7d0 Mon Sep 17 00:00:00 2001 From: Alcedo Nathaniel De Guzman Jr Date: Sun, 24 Feb 2019 09:27:52 +0800 Subject: [PATCH 3/4] Add test --- types/source-map-support/source-map-support-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/source-map-support/source-map-support-tests.ts b/types/source-map-support/source-map-support-tests.ts index 7b07c2970f4bbd..cb773b9958037d 100644 --- a/types/source-map-support/source-map-support-tests.ts +++ b/types/source-map-support/source-map-support-tests.ts @@ -41,3 +41,5 @@ p = sms.mapSourcePosition(p); let u: sms.UrlAndMap | null; u = retrieveSourceMap("foo"); + +sms.resetRetrieveHandlers(); From 257469f5ffeb7a6bb24dcd26d27b03fcfe8acc3e Mon Sep 17 00:00:00 2001 From: Alcedo Nathaniel De Guzman Jr Date: Sun, 24 Feb 2019 09:42:37 +0800 Subject: [PATCH 4/4] Add myself to definitions by --- types/source-map-support/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/source-map-support/index.d.ts b/types/source-map-support/index.d.ts index e1256d8ddbc681..00ad396b9e8b87 100644 --- a/types/source-map-support/index.d.ts +++ b/types/source-map-support/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for source-map-support 0.5 // Project: https://github.com/evanw/node-source-map-support -// Definitions by: Bart van der Schoor , Jason Cheatham +// Definitions by: Bart van der Schoor , Jason Cheatham , Alcedo Nathaniel De Guzman Jr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped ///