Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil committed Aug 31, 2021
1 parent f810c8e commit 7c5da2a
Show file tree
Hide file tree
Showing 4 changed files with 1,277 additions and 1,681 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -25,8 +25,8 @@
"@babel/preset-env": "^7.13.12",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-typescript": "^8.2.1",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
Expand All @@ -38,12 +38,12 @@
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-mocha": "^2.0.1",
"karma-rollup-preprocessor": "^7.0.7",
"mocha": "^8.3.2",
"mocha": "^9.1.0",
"nette-forms": "^3.2.0",
"playwright": "^1.10.0",
"rollup": "^2.44.0",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^10.0.0",
"sinon": "^11.1.2",
"tslib": "^2.1.0",
"typescript": "^4.2.3"
},
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Expand Up @@ -5,6 +5,8 @@ import typescript from '@rollup/plugin-typescript';
import {terser} from 'rollup-plugin-terser';
import path from 'path';

// todo build hangs, should be fixed once https://github.com/microsoft/TypeScript/pull/45642 is released

import pkg from './package.json';
const output = {
banner: `/*\n * Naja.js\n * ${pkg.version}\n *\n * by Jiří Pudil <https://jiripudil.cz>\n */`,
Expand Down
2 changes: 1 addition & 1 deletion src/Naja.ts
Expand Up @@ -134,7 +134,7 @@ export class Naja extends EventTarget {

payload = await response.json();

} catch (error) {
} catch (error: any) {
if (error.name === 'AbortError') {
this.dispatchEvent(new CustomEvent('abort', {detail: {request, error, options}}));
this.dispatchEvent(new CustomEvent('complete', {detail: {request, response, payload: undefined, error, options}}));
Expand Down

0 comments on commit 7c5da2a

Please sign in to comment.