hadron-app-registry
Advanced tools
Comparing version 0.0.0-next-504b5968e16133727efba11338035a29b706fc10 to 0.0.0-next-514d0059aae41f2aa9cb0bbe6e204dacbac3d73f
@@ -13,3 +13,3 @@ import React from 'react'; | ||
}, evt: string, fn: (...args: any) => any) => void; | ||
addCleanup: (fn: () => void) => void; | ||
addCleanup: (fn?: () => void) => void; | ||
cleanup: () => void; | ||
@@ -16,0 +16,0 @@ } |
@@ -43,3 +43,5 @@ "use strict"; | ||
this.addCleanup = (fn) => { | ||
this.cleanupFns.add(fn); | ||
if (fn) { | ||
this.cleanupFns.add(fn); | ||
} | ||
}; | ||
@@ -46,0 +48,0 @@ this.cleanup = () => { |
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/compass", | ||
"version": "0.0.0-next-504b5968e16133727efba11338035a29b706fc10", | ||
"version": "0.0.0-next-514d0059aae41f2aa9cb0bbe6e204dacbac3d73f", | ||
"repository": { | ||
@@ -54,6 +54,6 @@ "type": "git", | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-504b5968e16133727efba11338035a29b706fc10", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-504b5968e16133727efba11338035a29b706fc10", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-504b5968e16133727efba11338035a29b706fc10", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-504b5968e16133727efba11338035a29b706fc10", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-514d0059aae41f2aa9cb0bbe6e204dacbac3d73f", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-514d0059aae41f2aa9cb0bbe6e204dacbac3d73f", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-514d0059aae41f2aa9cb0bbe6e204dacbac3d73f", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-514d0059aae41f2aa9cb0bbe6e204dacbac3d73f", | ||
"@testing-library/react": "^12.1.5", | ||
@@ -72,3 +72,3 @@ "@types/chai": "^4.2.21", | ||
}, | ||
"gitHead": "504b5968e16133727efba11338035a29b706fc10" | ||
"gitHead": "514d0059aae41f2aa9cb0bbe6e204dacbac3d73f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
111863
1560