Skip to content

Commit 7fa59e2

Browse files
committed
[fix] Pacakge Name conflict
1 parent 8fa937a commit 7fa59e2

9 files changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
with:
1515
node-version: 14
1616
cache: npm
17-
- name: Publish MobX-REST
17+
- name: Publish MobX-RESTful
1818
run: |
1919
npm install
2020
npm publish
2121
env:
2222
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23-
- name: Update MobX-REST document
23+
- name: Update MobX-RESTful document
2424
uses: peaceiris/actions-gh-pages@v3
2525
with:
2626
publish_dir: ./docs

ReadMe.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# MobX-REST
1+
# MobX-RESTful
22

33
Common [MobX][1] 4/5 **abstract base Class & Decorator** utilities for **RESTful API**.
44

55
Just define your **Data models** & **Client HTTP methods**, then leave rest of things to MobX!
66

7-
[![NPM Dependency](https://david-dm.org/idea2app/MobX-REST.svg)][2]
8-
[![CI & CD](https://github.com/idea2app/MobX-REST/workflows/CI%20&%20CD/badge.svg)][3]
7+
[![NPM Dependency](https://david-dm.org/idea2app/MobX-RESTful.svg)][2]
8+
[![CI & CD](https://github.com/idea2app/MobX-RESTful/workflows/CI%20&%20CD/badge.svg)][3]
99
[![](https://raw.githubusercontent.com/sindresorhus/awesome/main/media/mentioned-badge.svg)][4]
1010

1111
[![NPM](https://nodei.co/npm/mobx-strapi.png?downloads=true&downloadRank=true&stars=true)][5]
@@ -19,7 +19,7 @@ Just define your **Data models** & **Client HTTP methods**, then leave rest of t
1919
### `source/store/User.ts`
2020

2121
```typescript
22-
import { IDType, Body, checkInput } from 'mobx-rest';
22+
import { IDType, Body, checkInput } from 'mobx-restful';
2323
import { StrapiStore } from 'mobx-strapi';
2424
import { BaseModel, UserModel } from '@your-scope/back-end-model';
2525

@@ -98,10 +98,10 @@ export class UserPage extends mixin() {
9898
```
9999

100100
[1]: https://mobx.js.org/
101-
[2]: https://david-dm.org/idea2app/MobX-REST
102-
[3]: https://github.com/idea2app/MobX-REST/actions
101+
[2]: https://david-dm.org/idea2app/MobX-RESTful
102+
[3]: https://github.com/idea2app/MobX-RESTful/actions
103103
[4]: https://github.com/strapi/awesome-strapi
104104
[5]: https://nodei.co/npm/mobx-strapi/
105-
[6]: https://github.com/idea2app/MobX-REST/tree/master/Strapi/
106-
[7]: https://github.dev/idea2app/MobX-REST/blob/master/Strapi/test/index.spec.ts
105+
[6]: https://github.com/idea2app/MobX-RESTful/tree/master/Strapi/
106+
[7]: https://github.dev/idea2app/MobX-RESTful/blob/master/Strapi/test/index.spec.ts
107107
[8]: https://github.com/EasyWebApp/WebCell

Strapi/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Strapi/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
"restful",
1616
"api"
1717
],
18-
"homepage": "https://github.com/idea2app/MobX-REST/tree/master/Strapi/",
18+
"homepage": "https://github.com/idea2app/MobX-RESTful/tree/master/Strapi/",
1919
"repository": {
2020
"type": "git",
21-
"url": "git+https://github.com/idea2app/MobX-REST.git"
21+
"url": "git+https://github.com/idea2app/MobX-RESTful.git"
2222
},
2323
"bugs": {
24-
"url": "https://github.com/idea2app/MobX-REST/issues"
24+
"url": "https://github.com/idea2app/MobX-RESTful/issues"
2525
},
2626
"source": "source/index.ts",
2727
"types": "dist/index.d.ts",
2828
"main": "dist/index.js",
2929
"module": "dist/index.esm.js",
3030
"dependencies": {
31-
"mobx-rest": "file:..",
31+
"mobx-restful": "^0.3.0-alpha.0",
3232
"web-utility": "^2.9.6"
3333
},
3434
"devDependencies": {

Strapi/source/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { buildURLData } from 'web-utility';
2-
import { HTTPMethod, PageFilter, PageData, BaseStore } from 'mobx-rest';
2+
import { HTTPMethod, PageFilter, PageData, BaseStore } from 'mobx-restful';
33

44
import { APIError, Media } from './type';
55

Strapi/test/example/UserStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { checkInput, Body, IDType } from 'mobx-rest';
1+
import { checkInput, Body, IDType } from 'mobx-restful';
22

33
import { StrapiStore } from '../../source';
44
import { UserModel, BaseModel } from './BaseModel';

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mobx-rest",
2+
"name": "mobx-restful",
33
"version": "0.3.0-alpha.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
@@ -11,13 +11,13 @@
1111
"restful",
1212
"api"
1313
],
14-
"homepage": "https://ideapp.dev/MobX-REST/",
14+
"homepage": "https://ideapp.dev/MobX-RESTful/",
1515
"repository": {
1616
"type": "git",
17-
"url": "git+https://github.com/idea2app/MobX-REST.git"
17+
"url": "git+https://github.com/idea2app/MobX-RESTful.git"
1818
},
1919
"bugs": {
20-
"url": "https://github.com/idea2app/MobX-REST/issues"
20+
"url": "https://github.com/idea2app/MobX-RESTful/issues"
2121
},
2222
"source": "source/index.ts",
2323
"types": "dist/index.d.ts",

source/utility.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ export type NewData<C, P> = Partial<
2929
export function Body(): ParameterDecorator {
3030
return (target: any, key, index) =>
3131
Reflect.defineMetadata(
32-
`mobx-rest-body-${key as string}`,
32+
`mobx-restful-body-${key as string}`,
3333
index,
3434
target
3535
);
3636
}
3737

3838
export function checkInput() {
3939
return (target: any, key: string, meta: PropertyDescriptor) => {
40-
const index = Reflect.getMetadata(`mobx-rest-body-${key}`, target);
40+
const index = Reflect.getMetadata(`mobx-restful-body-${key}`, target);
4141

4242
const { [index]: Model } = Reflect.getMetadata(
4343
'design:paramtypes',

0 commit comments

Comments
 (0)