Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #433 from boris-petrov/update-ember-cli-babel
Browse files Browse the repository at this point in the history
Update ember-cli-babel to version 7
  • Loading branch information
Turbo87 committed Mar 3, 2019
2 parents 3ed08ce + e990532 commit 1f83ff6
Show file tree
Hide file tree
Showing 5 changed files with 1,072 additions and 55 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ export default function someOtherUtility(url) {

This information is only relevant if you're looking to contribute to `ember-ajax`.

### Compatibility

- Ember CLI v2.13 or above

### Installation

- `git clone` this repository
Expand Down
4 changes: 1 addition & 3 deletions addon/errors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import EmberError from '@ember/error';

export class AjaxError extends EmberError {
export class AjaxError extends Error {
payload: any;
status: number;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
]
},
"dependencies": {
"ember-cli-babel": "^6.16.0",
"ember-cli-babel": "^7.5.0",
"najax": "^1.0.3"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/errors-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import EmberError from '@ember/error';
import { describe, it } from 'mocha';
import { assert } from 'chai';

Expand Down Expand Up @@ -34,7 +33,6 @@ describe('unit/errors-test - AjaxError', function() {
it('AjaxError', function() {
const error = new AjaxError();
ok(error instanceof Error);
ok(error instanceof EmberError);
});

it('InvalidError', function() {
Expand Down

0 comments on commit 1f83ff6

Please sign in to comment.