Skip to content

Commit ba4afad

Browse files
committed
Revert
1 parent 977ae5a commit ba4afad

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aor-loopback",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Loopback-style REST Client for Admin-on-rest, the frontend framework for building admin applications on top of REST services",
55
"main": "lib/index.js",
66
"scripts": {
@@ -33,8 +33,5 @@
3333
"bugs": {
3434
"url": "https://github.com/kimkha/aor-loopback/issues"
3535
},
36-
"homepage": "https://github.com/kimkha/aor-loopback#readme",
37-
"dependencies": {
38-
"lodash-inflection": "^1.5.0"
39-
}
36+
"homepage": "https://github.com/kimkha/aor-loopback#readme"
4037
}

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as _i from 'lodash-inflection';
21
import { queryParameters, fetchJson } from './fetch';
32
import {
43
GET_LIST,
@@ -30,7 +29,7 @@ export default (apiUrl, httpClient = fetchJson) => {
3029
* @returns {Object} { url, options } The HTTP request parameters
3130
*/
3231
const convertRESTRequestToHTTP = (type, resource, params) => {
33-
resource = _i.pluralize(resource).toLowerCase();
32+
resource = resource.toLowerCase();
3433
let url = '';
3534
const options = {};
3635
switch (type) {

0 commit comments

Comments
 (0)