File tree Expand file tree Collapse file tree 5 files changed +12
-3
lines changed Expand file tree Collapse file tree 5 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4
4
5
+ ### [ 1.9.1] ( https://github.com/doesdev/get-scrud/compare/1.9.0...1.9.1 )
6
+
7
+ > 2022-04-23
8
+
9
+ - Handle case where ` contextData ` becomes unset
10
+
5
11
### [ 1.9.0] ( https://github.com/doesdev/get-scrud/compare/1.8.1...1.9.0 )
6
12
7
- > 2022-04-21
13
+ > 2022-04-23
8
14
9
15
- Add ` throttle ` option
10
16
- Pass ` contextData ` through to ` before ` function call
Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ var source = (function () {
187
187
if ( api && _typeof ( api ) === 'object' ) return setOpts ( api ) ;
188
188
return new Promise ( function ( resolve , reject ) {
189
189
if ( ! Number . isInteger ( id ) && typeof id !== 'string' ) {
190
+ contextData = jwt ;
190
191
jwt = body ;
191
192
body = id ;
192
193
id = null ;
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ var source = (function () {
179
179
if ( api && _typeof ( api ) === 'object' ) return setOpts ( api ) ;
180
180
return new Promise ( function ( resolve , reject ) {
181
181
if ( ! Number . isInteger ( id ) && typeof id !== 'string' ) {
182
+ contextData = jwt ;
182
183
jwt = body ;
183
184
body = id ;
184
185
id = null ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " get-scrud" ,
3
- "version" : " 1.9.0 " ,
3
+ "version" : " 1.9.1 " ,
4
4
"description" : " Client for SCRUD style rest APIs" ,
5
5
"main" : " index.js" ,
6
6
"module" : " module.js" ,
50
50
"pre-commit" : " rollup -c && mvt && git add index.js module.js"
51
51
}
52
52
}
53
- }
53
+ }
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ export default (opts = {}) => {
100
100
101
101
return new Promise ( ( resolve , reject ) => {
102
102
if ( ! Number . isInteger ( id ) && typeof id !== 'string' ) {
103
+ contextData = jwt
103
104
jwt = body
104
105
body = id
105
106
id = null
You can’t perform that action at this time.
0 commit comments