Skip to content

Commit

Permalink
Merge branch 'develop' into chore/sidepanel-only-local
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Sep 27, 2024
2 parents ef651db + a430faf commit 6ee7725
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ storybook-static

data/
registration.yaml

storybook-static
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { Meteor } from 'meteor/meteor';

import { throttledCounter } from '../../../../lib/utils/throttledCounter';
import { sendMessage } from '../../../lib/server/functions/sendMessage';
import { notifyOnSettingChanged } from '../../../lib/server/lib/notifyListener';
import { settings } from '../../../settings/server';

const incException = throttledCounter((counter) => {
Settings.incrementValueById('Uncaught_Exceptions_Count', counter, { returnDocument: 'after' })
.then(({ value }) => {
if (value) {
void notifyOnSettingChanged(value);
settings.set(value);
}
})
.catch(console.error);
Expand Down Expand Up @@ -118,5 +117,12 @@ process.on('unhandledRejection', (error) => {

process.on('uncaughtException', async (error) => {
incException();

console.error('=== UnCaughtException ===');
console.error(error);
console.error('-------------------------');
console.error('Errors like this can cause oplog processing errors.');
console.error('===========================');

void errorHandler.trackError(error.message, error.stack);
});
8 changes: 8 additions & 0 deletions packages/gazzodown/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ module.exports = {
include: /node_modules/,
loader: 'babel-loader',
});
config.module.rules.push({
test: /\.m?js$/,
include: /node_modules/,
type: 'javascript/auto',
use: {
loader: require.resolve('babel-loader'),
},
});
return config;
},
};
2 changes: 2 additions & 0 deletions packages/gazzodown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"build-storybook": "build-storybook",
"build-preview": "build-storybook --quiet",
".:build-preview-move": "mkdir -p ../../.preview && cp -r ./storybook-static ../../.preview/gazzodown",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput",
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
Expand Down

0 comments on commit 6ee7725

Please sign in to comment.