Skip to content

Commit

Permalink
Add transpilation to ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Goncharov committed Apr 26, 2019
1 parent 83c66c6 commit 6caa303
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axios-rest-resource",
"version": "0.3.0",
"version": "0.4.0",
"description": "Schema-based HTTP client powered by axios. Built with Typescript. Heavily inspired by AngularJS' $resource.",
"keywords": [
"axios",
Expand Down
2 changes: 1 addition & 1 deletion src/resouce.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe(`${ResourceBuilder.name}`, () => {
expect(typeof requestConfigRes).toBe('object')
expect(requestConfigRes).toHaveProperty('method', methodSchema.method)
expect(requestConfigRes).toHaveProperty('url')
expect((requestConfigRes.url as string).endsWith(`${resourceUrl}${methodSchema.url || ''}`)).toBeTruthy()
expect((requestConfigRes.url as string).indexOf(`${resourceUrl}${methodSchema.url || ''}`)).not.toBe(-1)
const resourceMethodConfigHeadersAccept =
resourceMethodConfig && resourceMethodConfig.headers && resourceMethodConfig.headers.Accept
expect(requestConfigRes.headers).toHaveProperty('Accept', resourceMethodConfigHeadersAccept || 'application/json')
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"strict": true,
"noUnusedLocals": true,
"noFallthroughCasesInSwitch": true,
"target": "es2015",
"target": "es5",
"lib": ["es5", "es2015.promise", "es2015.core"],
"baseUrl": "./",
"moduleResolution": "node",
"declaration": true,
Expand Down

0 comments on commit 6caa303

Please sign in to comment.