solidus_backend_devise_token_auth 2.8.0.alpha.8 → 2.8.0.alpha.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 123e65a79d2b523a849c5cc54409fbff73c3ba33af851efb6e02461497e4761d
4
- data.tar.gz: 447883d65e1561212640a31d4ea299a40969abe92a0b971fa2650eced96849b7
3
+ metadata.gz: 3e5c69b8e0748db3f28b018a254b5da51af3dfb71b39bb19c17ba6df7c0d5d69
4
+ data.tar.gz: 54c525c4f0e46364319adbd710b025f4b70cc6b43c05abc8a50276b96a4b4a74
5
5
  SHA512:
6
- metadata.gz: a12b956440d4529c3f2b0c09b86c9539cf0c85ea73e8d4aad495559842ead9a3131b57aeb17133b3bb7ace40bed6332b0799bca6aaf0fbb5bf537a4bae9140fb
7
- data.tar.gz: 3f521992cd6d1aac7279883b3ab9b514a6ea94b59e0b06411ecdb37e78a103b5b8c660cb4eba6dd25032e17ab81d721d34d2b207ddee0c710a2c935795867224
6
+ metadata.gz: f552e41036305e4655166916ae0bba94772dcd0b9a5a3a48a21d5b86fb418235ffd0bf0b70a73802dd5c3e3964b3a164941eb7753eed362a381899fdb0129e95
7
+ data.tar.gz: ea934bb84f4ddefccdcdb04de7e9a03ef33042500a4e477d1354690659731e180d1348e1e9cbb7912578971982e1b8b7d806048b213cdef102223123525a22ae
@@ -1,10 +1,4 @@
1
1
  Spree.ready(function() {
2
- var appendAuthHeaders = function(xhr, settings) {
3
- for (var key in Spree.accessTokenData) {
4
- xhr.setRequestHeader(key, Spree.accessTokenData[key]);
5
- }
6
- };
7
-
8
2
  var updateAuthCredentials = function(ev, xhr, settings) {
9
3
  $("#progress").hide();
10
4
 
@@ -29,9 +23,6 @@ Spree.ready(function() {
29
23
 
30
24
  };
31
25
 
32
- // intercept requests to the API, append auth headers
33
- $.ajaxSetup({ beforeSend: appendAuthHeaders });
34
-
35
26
  // update auth creds after each request to the API
36
27
  $(document).ajaxComplete(updateAuthCredentials);
37
28
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend_devise_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0.alpha.8
4
+ version: 2.8.0.alpha.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Siwek (skycocker)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2018-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api_devise_token_auth
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.8.0.alpha.8
19
+ version: 2.8.0.alpha.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.8.0.alpha.8
26
+ version: 2.8.0.alpha.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core_devise_token_auth
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.8.0.alpha.8
33
+ version: 2.8.0.alpha.9
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.8.0.alpha.8
40
+ version: 2.8.0.alpha.9
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coffee-rails
43
43
  requirement: !ruby/object:Gem::Requirement