Comparing version 1.1.0 to 1.1.1
@@ -9,3 +9,2 @@ "use strict"; | ||
exceptionCleanupEnabled: options.exceptionCleanupEnabled, | ||
// TODO: remove this convertion | ||
routineCleanupSignals: getRoutineSignalsForOptions(options), | ||
@@ -24,3 +23,4 @@ routineCleanups: options.routineCleanups !== undefined ? options.routineCleanups : [], | ||
} | ||
switch (options.signals) { | ||
const preset = options.signals !== undefined ? options.signals : 'default'; | ||
switch (preset) { | ||
case 'default': | ||
@@ -27,0 +27,0 @@ return constants_1.DefaultRoutineSignals; |
@@ -8,3 +8,3 @@ import { SupportedSignals, RoutineCleanup, ExceptionCleanup } from './types'; | ||
routineCleanupEnabled: boolean; | ||
routineCleanupSignals?: [SupportedSignals, ...SupportedSignals[]]; | ||
routineCleanupSignals?: SupportedSignals[]; | ||
routineCleanups?: RoutineCleanup[]; | ||
@@ -11,0 +11,0 @@ exceptionCleanupEnabled: boolean; |
{ | ||
"name": "guarding", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -17,3 +17,4 @@ "main": "dist/index.js", | ||
"compile": "tsc -p tsconfig.json", | ||
"build": "npm run clean && npm run compile" | ||
"build": "npm run clean && npm run compile", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -20,0 +21,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
26871