Skip to content

Commit 89e7c81

Browse files
committed
Merge pull request #1 from theverything/fix-stuff
Fix stuff
2 parents 5370c2d + d24f82c commit 89e7c81

File tree

8 files changed

+11
-399
lines changed

8 files changed

+11
-399
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
coverage
33
*.log
4+
lib

.npmignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
src/**
2+
.babelrc
3+
.eslintrc
4+
Makefile
5+
.gitignore

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MOCHA_ARGS= --compilers js:babel-register \
77
MOCHA_TARGET=src/**/*-test.js
88

99
build:
10-
$(BIN)/babel src --out-dir lib
10+
$(BIN)/babel src --out-dir lib --ignore "src/__tests__/**"
1111

1212
clean:
1313
rm -rf lib

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Any data passed as the first parameter will be treated as the payload to be sent
128128
"meta": {
129129
"api": true,
130130
"method": "POST",
131-
"endpoint": "/sample",
131+
"endpoint": "/items",
132132
"types": [
133133
"ITEMS_POST_REQUEST",
134134
"ITEMS_POST_SUCCESS",
@@ -168,7 +168,7 @@ In this case, we are updating primary item `15` with a new object
168168
"meta": {
169169
"api": true,
170170
"method": "PUT",
171-
"endpoint": "/sample/10",
171+
"endpoint": "/items/10",
172172
"types": [
173173
"ITEMS_PUT_REQUEST",
174174
"ITEMS_PUT_SUCCESS",
@@ -181,7 +181,7 @@ In this case, we are updating primary item `15` with a new object
181181
### DELETE
182182
```js
183183
let deleteItem = createAPIAction('ITEMS', 'DELETE', '/items' );
184-
updateItem(15);
184+
deleteItem(15);
185185

186186
```
187187
In the case of `DELETE`, you just need to specify the primary id of tha which you want to delete.
@@ -201,7 +201,7 @@ No need to pass in any payload data, as that would get dropped anyways because o
201201
"meta": {
202202
"api": true,
203203
"method": "DELETE",
204-
"endpoint": "/sample/5",
204+
"endpoint": "/items/5",
205205
"types": [
206206
"ITEMS_DELETE_REQUEST",
207207
"ITEMS_DELETE_SUCCESS",

lib/__tests__/createAPIAction-test.js

-267
This file was deleted.

lib/__tests__/init.js

-9
This file was deleted.

0 commit comments

Comments
 (0)