@widgetic/editor 3.10.35 → 3.10.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/editor",
3
- "version": "3.10.35",
3
+ "version": "3.10.36",
4
4
  "scripts": {
5
5
  "start": "webpack --config webpack.config.js --watch --progress",
6
6
  "build": "webpack --config webpack.config.js",
@@ -30,7 +30,7 @@ export default class UploadService extends EventsMixin(Service) {
30
30
  constructor(user, token) {
31
31
  super();
32
32
  this.user = user.id;
33
- this.maxFilesize = user.premium ? 100 : 25;
33
+ this.maxFilesize = user.premium ? 250 : 100;
34
34
  this.token = token;
35
35
 
36
36
  this.files = [];
@@ -10,7 +10,7 @@ config = {
10
10
  response_type: 'code',
11
11
  state: 'encrypted_session_info',
12
12
  # for '/oauth2/token' endpoint
13
- grant_type: 'authorization_code',
13
+ grant_type: 'refresh_token',
14
14
  client_secret: '3173e3098379153d42084aba06fe3ec4',
15
15
  # local options
16
16
  api_url: 'https://api.soundcloud.com',
@@ -30,6 +30,7 @@ class SoundCloudService extends Service
30
30
 
31
31
  SCGet: (path) ->
32
32
  url = "#{SC.api_url}" + path
33
+ # console.log("SCGet path:", path)
33
34
  $.ajax(url: url, type: 'GET', dataType: 'json', headers: {'Authorization': 'OAuth ' + SC.auth_token})
34
35
 
35
36
  auth: (interactive) =>
@@ -109,6 +110,8 @@ class SoundCloudService extends Service
109
110
  # console.log("fetchTracks for playlist:", playlistId)
110
111
  # check if a playlist or entire list of tracks of the current user
111
112
  path = if playlistId then "/playlists/#{playlistId}" else "/users/#{SC.userId}/tracks"
113
+ path += "?access=playable"
114
+
112
115
 
113
116
  @SCGet(path)
114
117
  .then((result) =>