wapplr 1.0.56 → 1.0.57

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.
@@ -1,14 +1,9 @@
1
1
  .log {
2
- display: -ms-flexbox;
3
2
  display: flex;
4
- -ms-flex-direction: column;
5
- flex-direction: column;
6
- -ms-flex-align: center;
7
- align-items: center;
8
- -ms-flex-pack: center;
9
- justify-content: center;
10
- -webkit-box-sizing: border-box;
11
- box-sizing: border-box;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ box-sizing: border-box;
12
7
  padding: 16px;
13
8
 
14
9
  width: 100%;
@@ -1,12 +1,9 @@
1
1
  .logo {
2
2
  height: 100%;
3
3
  width: auto;
4
- display: -ms-inline-flexbox;
5
4
  display: inline-flex;
6
- -ms-flex-align: center;
7
- align-items: center;
8
- -ms-flex-pack: center;
9
- justify-content: center;
5
+ align-items: center;
6
+ justify-content: center;
10
7
  }
11
8
 
12
9
  .icon {
@@ -17,7 +14,6 @@
17
14
  .svg {
18
15
  height: 100%;
19
16
  width: auto;
20
- display: -ms-flexbox;
21
17
  display: flex;
22
18
  max-width: 100%;
23
19
  }
@@ -19,7 +19,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
19
19
 
20
20
  var _utils = require("./utils");
21
21
 
22
- var _excluded = ["body", "getBody"];
22
+ var _excluded = ["body", "getBody", "headers"];
23
23
 
24
24
  function createDefaultRequestManager() {
25
25
  var p = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -85,6 +85,7 @@ function createDefaultRequestManager() {
85
85
  options,
86
86
  body,
87
87
  getBody,
88
+ headers,
88
89
  restOptions,
89
90
  requestBody,
90
91
  cookie,
@@ -112,58 +113,57 @@ function createDefaultRequestManager() {
112
113
  } : _p$formatBeforeReques;
113
114
  request = requestName && requestManager.requests[requestName] ? requestManager.requests[requestName] : p.request ? p.request : null;
114
115
  url = request.url, _request$options = request.options, options = _request$options === void 0 ? {} : _request$options;
115
- body = options.body, getBody = options.getBody, restOptions = (0, _objectWithoutProperties2["default"])(options, _excluded);
116
+ body = options.body, getBody = options.getBody, headers = options.headers, restOptions = (0, _objectWithoutProperties2["default"])(options, _excluded);
116
117
  requestBody = typeof getBody == "function" ? getBody((0, _objectSpread2["default"])({
117
118
  wapp: wapp
118
119
  }, p)) : body;
119
120
  cookie = req && req.headers ? req.headers.cookie : null;
120
-
121
- if (cookie) {
122
- options.headers.cookie = cookie;
123
- }
124
-
125
121
  response = null;
126
- _context.prev = 13;
127
- _context.next = 16;
128
- return fetch.apply(void 0, (0, _toConsumableArray2["default"])(formatBeforeRequest(url, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, restOptions), {}, {
122
+ _context.prev = 12;
123
+ _context.next = 15;
124
+ return fetch.apply(void 0, (0, _toConsumableArray2["default"])(formatBeforeRequest(url, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
125
+ headers: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, cookie ? {
126
+ cookie: cookie
127
+ } : {}), headers)
128
+ }, restOptions), {}, {
129
129
  body: requestBody
130
130
  }), p)));
131
131
 
132
- case 16:
132
+ case 15:
133
133
  response = _context.sent;
134
134
 
135
135
  if (!(response && response.json)) {
136
- _context.next = 21;
136
+ _context.next = 20;
137
137
  break;
138
138
  }
139
139
 
140
- _context.next = 20;
140
+ _context.next = 19;
141
141
  return response.json();
142
142
 
143
- case 20:
143
+ case 19:
144
144
  response = _context.sent;
145
145
 
146
- case 21:
146
+ case 20:
147
147
  if (response && response.data && !response.errors && !response.error) {
148
148
  response = response.data;
149
149
  }
150
150
 
151
151
  return _context.abrupt("return", response);
152
152
 
153
- case 25:
154
- _context.prev = 25;
155
- _context.t0 = _context["catch"](13);
153
+ case 24:
154
+ _context.prev = 24;
155
+ _context.t0 = _context["catch"](12);
156
156
  console.log(_context.t0);
157
157
  return _context.abrupt("return", {
158
158
  error: _context.t0
159
159
  });
160
160
 
161
- case 29:
161
+ case 28:
162
162
  case "end":
163
163
  return _context.stop();
164
164
  }
165
165
  }
166
- }, _callee, null, [[13, 25]]);
166
+ }, _callee, null, [[12, 24]]);
167
167
  }));
168
168
  return _defaultSendRequest.apply(this, arguments);
169
169
  }
@@ -6,8 +6,7 @@ body {
6
6
  }
7
7
 
8
8
  * {
9
- -webkit-box-sizing: border-box;
10
- box-sizing: border-box;
9
+ box-sizing: border-box;
11
10
  }
12
11
 
13
12
  .app {
@@ -15,14 +15,11 @@
15
15
  padding: 6px;
16
16
  background: white;
17
17
  z-index: 1;
18
- -webkit-transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
19
- -o-transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
20
18
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
21
19
  }
22
20
 
23
21
  .header.sticky {
24
- -webkit-box-shadow: 0 2px 3px rgba(62, 62, 62, 0.15);
25
- box-shadow: 0 2px 3px rgba(62, 62, 62, 0.15);
22
+ box-shadow: 0 2px 3px rgba(62, 62, 62, 0.15);
26
23
  }
27
24
 
28
25
  .innerHeader {
@@ -35,8 +32,6 @@
35
32
 
36
33
  .header .logo {
37
34
  height: 52px;
38
- -webkit-transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
39
- -o-transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
40
35
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
41
36
  margin-top: 100%;
42
37
  }
@@ -52,13 +47,10 @@
52
47
  }
53
48
 
54
49
  .footer {
55
- display: -ms-flexbox;
56
50
  display: flex;
57
51
  min-height: 128px;
58
- -ms-flex-align: center;
59
- align-items: center;
60
- -ms-flex-pack: center;
61
- justify-content: center;
52
+ align-items: center;
53
+ justify-content: center;
62
54
  }
63
55
 
64
56
  .menu {
@@ -70,9 +62,7 @@
70
62
  }
71
63
 
72
64
  .footer .menu {
73
- -ms-flex-pack: center;
74
- justify-content: center;
75
- display: -ms-flexbox;
65
+ justify-content: center;
76
66
  display: flex;
77
67
  }
78
68
 
@@ -84,16 +74,10 @@
84
74
 
85
75
  color: rgba(0, 0, 0, 0.87);
86
76
  padding: 6px 16px;
87
- font-size: 14px;
88
77
  font-size: 0.875rem;
89
78
  min-width: 64px;
90
- -webkit-box-sizing: border-box;
91
- box-sizing: border-box;
92
- -webkit-transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,-webkit-box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
93
- transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,-webkit-box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
94
- -o-transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
79
+ box-sizing: border-box;
95
80
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
96
- transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,-webkit-box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
97
81
  line-height: 1.75;
98
82
  border-radius: 4px;
99
83
  letter-spacing: 0.02857em;
@@ -103,19 +87,13 @@
103
87
  border: 0;
104
88
  cursor: pointer;
105
89
  margin: 0;
106
- display: -ms-inline-flexbox;
107
90
  display: inline-flex;
108
91
  outline: 0;
109
92
  position: relative;
110
- -ms-flex-align: center;
111
- align-items: center;
112
- -webkit-user-select: none;
113
- -moz-user-select: none;
114
- -ms-user-select: none;
115
- user-select: none;
93
+ align-items: center;
94
+ user-select: none;
116
95
  vertical-align: middle;
117
- -ms-flex-pack: center;
118
- justify-content: center;
96
+ justify-content: center;
119
97
  text-decoration: none;
120
98
  background-color: transparent;
121
99
  text-align: center;
@@ -130,8 +108,5 @@ a.button {
130
108
  font-size: 12px;
131
109
  margin: 24px;
132
110
  text-align: center;
133
- -webkit-user-select: none;
134
- -moz-user-select: none;
135
- -ms-user-select: none;
136
- user-select: none;
111
+ user-select: none;
137
112
  }
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "files": [
23
23
  "dist/*"
24
24
  ],
25
- "version": "1.0.56",
25
+ "version": "1.0.57",
26
26
  "main": "dist/server",
27
27
  "browser": "dist/client",
28
28
  "repository": {