restql 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017 Ariel de Jesús Díaz Sánchez
3
+ Copyright (c) 2017 Ariel Díaz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -4,14 +4,11 @@ RESTful API Resolver for Nested-Linked Resources | 🕸 🕷
4
4
 
5
5
  ---
6
6
 
7
- [![npm](https://img.shields.io/npm/v/restql.svg?style=flat-square)](https://www.npmjs.com/package/restql/)
8
- [![build](https://img.shields.io/travis/relztic/restql/master.svg?style=flat-square)](https://travis-ci.org/relztic/restql/)
9
- [![maintainability](https://img.shields.io/codeclimate/maintainability/relztic/restql.svg?style=flat-square)](https://codeclimate.com/github/relztic/restql/maintainability/)
10
- [![coverage](https://img.shields.io/codeclimate/c/relztic/restql.svg?style=flat-square)](https://codeclimate.com/github/relztic/restql/test_coverage/)
11
- [![code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier/)
12
-
13
- RestQL allows you to dynamically resolve the nested-linked resources of a RESTful API.
7
+ [![npm](https://img.shields.io/npm/v/restql.svg?style=for-the-badge)](https://www.npmjs.com/package/restql/)
8
+ ![JavaScript](https://img.shields.io/badge/-JavaScript-F0DB4F?style=for-the-badge&logo=typescript&logoColor=black)
9
+ ![Prettier](https://img.shields.io/badge/-Prettier-FF69B4?style=for-the-badge&logo=prettier&logoColor=white)
14
10
 
11
+ RestQL allows you to dynamically resolve the nested-linked resources of a RESTful API.
15
12
  By specifying a set of properties to describe the paths.
16
13
 
17
14
  ## Installation
@@ -19,13 +16,7 @@ By specifying a set of properties to describe the paths.
19
16
  ### npm
20
17
 
21
18
  ```sh
22
- npm install restql --save
23
- ```
24
-
25
- ### Yarn
26
-
27
- ```sh
28
- yarn add restql
19
+ npm install restql
29
20
  ```
30
21
 
31
22
  ### CDN
@@ -56,20 +47,18 @@ Self-explanatory.
56
47
 
57
48
  **Description**
58
49
 
59
- At each level, each property describes a path to the nested resources within the current one.
60
-
61
- RestQL resolves the sames and call the subsequent resolver against them...
62
-
50
+ At each level, each property describes a path to the nested resources within the current one.
51
+ RestQL resolves the sames and call the subsequent resolver against them.
63
52
  Until the base case (`null`) is reached; from which it returns back the merged responses.
64
53
 
65
54
  **Quantifiers**
66
55
 
67
56
  Following is a table of the quantifiers you can use:
68
57
 
69
- | Quantifier | Description |
70
- | --- | --- |
71
- | `[]` | Collection of properties. |
72
- | `?` | Optional property. |
58
+ | Quantifier | Description |
59
+ | ---------- | ------------------------- |
60
+ | `[]` | Collection of properties. |
61
+ | `?` | Optional property. |
73
62
 
74
63
  **e.g.:**
75
64
 
@@ -94,7 +83,7 @@ Following is a table of the quantifiers you can use:
94
83
 
95
84
  **Description**
96
85
 
97
- [`Request Config`](https://github.com/axios/axios/#request-config)
86
+ [`Request Config`](https://github.com/axios/axios/tree/v1.13.6#request-config)
98
87
 
99
88
  **e.g.:**
100
89
 
@@ -107,7 +96,6 @@ Following is a table of the quantifiers you can use:
107
96
  ## Usage
108
97
 
109
98
  ```js
110
- // External Packages
111
99
  import restql from 'restql'
112
100
 
113
101
  /**
@@ -136,9 +124,9 @@ const resolver = {
136
124
  */
137
125
  const options = {
138
126
  // ...
139
- };
127
+ }
140
128
 
141
- (async () => {
129
+ ;(async () => {
142
130
  try {
143
131
  const data = await restql(resource, resolver, options)
144
132
 
@@ -149,14 +137,12 @@ const options = {
149
137
  })()
150
138
  ```
151
139
 
152
- [Test RestQL in your browser.](https://npm.runkit.com/restql/)
153
-
154
140
  ## Roadmap
155
141
 
156
- - ~~Support for authentication~~
157
- - ~~Support for optional resolvers~~
158
- - ~~Improve package bundler~~
159
- - ~~Ability to cache responses~~
160
- - Support for recursive resolvers
142
+ - ~~Support for authentication~~
143
+ - ~~Support for optional resolvers~~
144
+ - ~~Improve package bundler~~
145
+ - ~~Ability to cache responses~~
146
+ - Support for recursive resolvers
161
147
 
162
- Take 🍰, Folks! 🌮 🐴 💨
148
+ Take 🎂, Folks! 🌮 🐴 💨