@grabjs/superapp-sdk 1.8.6-beta.1 → 1.8.9-beta.1
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.md +1 -1
- package/README.md +4 -2
- package/package.json +14 -3
package/LICENSE.md
CHANGED
|
@@ -17,4 +17,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
17
17
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
18
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
19
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Each request to native API should be done through JavaScript bridge provided by
|
|
|
34
34
|
|
|
35
35
|
## Response
|
|
36
36
|
|
|
37
|
-
Each
|
|
37
|
+
Each response from the native bridge follows the same structure described bellow.
|
|
38
38
|
|
|
39
39
|
| Key | Type | Description |
|
|
40
40
|
| ----------- | ------------------------ | ---------------------------------------------------------------------------------- |
|
|
@@ -54,6 +54,7 @@ Each resonse from the native bridge follows the same structure described bellow.
|
|
|
54
54
|
| 500 | Internal Error | Unexpected internal error (e.g. failed to serialize response object) |
|
|
55
55
|
|
|
56
56
|
### Success response example
|
|
57
|
+
|
|
57
58
|
```json
|
|
58
59
|
{
|
|
59
60
|
"status_code": 200,
|
|
@@ -72,6 +73,7 @@ Each resonse from the native bridge follows the same structure described bellow.
|
|
|
72
73
|
"error": "Client doesn't have access to method \"getLocation\" in module \"LocationModule\""
|
|
73
74
|
}
|
|
74
75
|
```
|
|
76
|
+
|
|
75
77
|
---
|
|
76
|
-
* **GDMCOMMENT:** Latitudes and longitudes used in this file are either sourced from GrabPlaces, GrabMaps, OSM or randomly created by the developer and are not obtained from other external sources.
|
|
77
78
|
|
|
79
|
+
- **GDMCOMMENT:** Latitudes and longitudes used in this file are either sourced from GrabPlaces, GrabMaps, OSM or randomly created by the developer and are not obtained from other external sources.
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grabjs/superapp-sdk",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9-beta.1",
|
|
4
4
|
"description": "SDK for Grab SuperApp WebView.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -rf dist && rollup -c",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"check": "npm run format:check",
|
|
9
|
+
"fix": "npm run format:fix",
|
|
10
|
+
"format:check": "prettier --check .",
|
|
11
|
+
"format:fix": "prettier --write .",
|
|
12
|
+
"prepare": "husky",
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
|
+
"watch": "rollup -cw"
|
|
10
15
|
},
|
|
11
16
|
"repository": {
|
|
12
17
|
"type": "git",
|
|
@@ -40,10 +45,16 @@
|
|
|
40
45
|
"devDependencies": {
|
|
41
46
|
"@babel/core": "^7.4.3",
|
|
42
47
|
"@babel/preset-env": "^7.4.3",
|
|
48
|
+
"husky": "^9.1.7",
|
|
49
|
+
"lint-staged": "^16.3.1",
|
|
50
|
+
"prettier": "3.8.1",
|
|
43
51
|
"rollup": "^1.7.0",
|
|
44
52
|
"rollup-plugin-babel": "^4.3.2",
|
|
45
53
|
"rollup-plugin-commonjs": "^9.3.4",
|
|
46
54
|
"rollup-plugin-node-resolve": "^4.2.2",
|
|
47
55
|
"rollup-plugin-uglify": "^6.0.2"
|
|
56
|
+
},
|
|
57
|
+
"lint-staged": {
|
|
58
|
+
"**/*": "prettier --write --ignore-unknown"
|
|
48
59
|
}
|
|
49
60
|
}
|