flash-notifications 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "main": "index.js",
3
3
  "name": "flash-notifications",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "private": false,
6
6
  "dependencies": {
7
- "diggerize": "^1.0.4",
7
+ "diggerize": "^1.0.5",
8
8
  "prop-types-exact": "^1.2.0"
9
9
  },
10
10
  "devDependenciesOnlyForLocalDevelopment": {
@@ -1,4 +1,4 @@
1
- import CustomError from "@kaspernj/api-maker/src/custom-error"
1
+ import BaseError from "@kaspernj/api-maker/src/base-error"
2
2
  import ValidationError from "@kaspernj/api-maker/src/validation-error"
3
3
 
4
4
  export default class FlashMessage {
@@ -7,7 +7,7 @@ export default class FlashMessage {
7
7
  }
8
8
 
9
9
  static error(error) {
10
- if (error instanceof CustomError) {
10
+ if (error instanceof BaseError) {
11
11
  if (error.args.response && error.args.response.errors) {
12
12
  const errors = digg(error, "args", "response", "errors")
13
13
  const errorMessages = errors.map((error) => {
package/src/App.test.js DELETED
@@ -1,8 +0,0 @@
1
- import { render, screen } from '@testing-library/react';
2
- import App from './App';
3
-
4
- test('renders learn react link', () => {
5
- render(<App />);
6
- const linkElement = screen.getByText(/learn react/i);
7
- expect(linkElement).toBeInTheDocument();
8
- });