Skip to content

Commit

Permalink
fix: typings and @vscodespotify/spotify-common package
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyykoSerhiy committed Oct 2, 2018
1 parent a582ee5 commit 7ebf4f8
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 98 deletions.
73 changes: 29 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,19 +350,16 @@
"contributors:check": "all-contributors check"
},
"devDependencies": {
"@types/autobind-decorator": "^2.1.0",
"@types/express": "^4.11.1",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.40",
"@types/react": "^16.4.13",
"@types/redux": "^3.6.0",
"@types/redux-persist": "^4.3.1",
"@types/superagent": "^2.0.36",
"all-contributors-cli": "^5.0.0",
"typescript": "^2.2.0",
"vscode": "^1.0.0"
},
"dependencies": {
"@vscodespotify/spotify-common": "1.1.2",
"autobind-decorator": "^2.1.0",
"child_process": "^1.0.2",
"express": "^4.16.2",
Expand Down
4 changes: 2 additions & 2 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { getStore, getState } from '../store/store';
import { getAuthServerUrl } from '../config/spotify-config'
import { createDisposableAuthSever } from '../auth/server/local';
import { showInformationMessage, showWarningMessage, log } from '../info/info';
import { getApi, Api } from 'spotify-common/lib/spotify/api';
import { Playlist, Track } from 'spotify-common/lib/spotify/consts';
import { getApi, Api } from '@vscodespotify/spotify-common/lib/spotify/api';
import { Playlist, Track } from '@vscodespotify/spotify-common/lib/spotify/consts';
import autobind from 'autobind-decorator';

export function withApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/spotify/web-api-spotify-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SpotifyClient, createCancelablePromise, QueryStatusFunction, NOT_RUNNIN
import { ISpotifyStatusStatePartial } from '../state/state';
import { getState } from '../store/store';
import { withApi, getSpotifyWebApi, withErrorAsync } from '../actions/actions';
import { Api } from 'spotify-common/lib/spotify/api';
import { Api } from '@vscodespotify/spotify-common/lib/spotify/api';
import { log } from '../info/info';

export class WebApiSpotifyClient implements SpotifyClient {
Expand Down
2 changes: 1 addition & 1 deletion src/state/state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Playlist as Playlist, Track } from 'spotify-common/lib/spotify/consts';
import { Playlist as Playlist, Track } from '@vscodespotify/spotify-common/lib/spotify/consts';
import { Map } from 'immutable';

export interface ITrack {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"skipLibCheck": true
},
"exclude": [
"node_modules"
Expand Down
60 changes: 15 additions & 45 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
# yarn lockfile v1


"@types/autobind-decorator@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@types/autobind-decorator/-/autobind-decorator-2.1.0.tgz#f8ffd384c1080635a1575b30db2220ac40b0d3dc"
dependencies:
autobind-decorator "*"

"@types/body-parser@*":
version "1.17.0"
resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.17.0.tgz#9f5c9d9bd04bb54be32d5eb9fc0d8c974e6cf58c"
Expand Down Expand Up @@ -57,33 +51,10 @@
version "6.0.117"
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.117.tgz#ccfc2506001404708528d657aad9c1b931111646"

"@types/prop-types@*":
version "15.5.6"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.6.tgz#9c03d3fed70a8d517c191b7734da2879b50ca26c"

"@types/range-parser@*":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.2.tgz#fa8e1ad1d474688a757140c91de6dace6f4abc8d"

"@types/react@^16.4.13":
version "16.4.14"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.4.14.tgz#47c604c8e46ed674bbdf4aabf82b34b9041c6a04"
dependencies:
"@types/prop-types" "*"
csstype "^2.2.0"

"@types/redux-persist@^4.3.1":
version "4.3.1"
resolved "https://registry.yarnpkg.com/@types/redux-persist/-/redux-persist-4.3.1.tgz#aa4c876859e0bea5155e5f7980e5b8c4699dc2e6"
dependencies:
redux-persist "*"

"@types/redux@^3.6.0":
version "3.6.0"
resolved "https://registry.yarnpkg.com/@types/redux/-/redux-3.6.0.tgz#f1ebe1e5411518072e4fdfca5c76e16e74c1399a"
dependencies:
redux "*"

"@types/serve-static@*":
version "1.13.2"
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.2.tgz#f5ac4d7a6420a99a6a45af4719f4dcd8cd907a48"
Expand All @@ -97,6 +68,12 @@
dependencies:
"@types/node" "*"

"@vscodespotify/[email protected]":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@vscodespotify/spotify-common/-/spotify-common-1.1.2.tgz#680be26ae0733b260b6775bdeb8b1211c490a0b0"
dependencies:
node-fetch "^2.2.0"

accepts@~1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2"
Expand Down Expand Up @@ -240,7 +217,7 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"

autobind-decorator@*, autobind-decorator@^2.1.0:
autobind-decorator@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/autobind-decorator/-/autobind-decorator-2.1.0.tgz#4451240dbfeff46361c506575a63ed40f0e5bc68"

Expand Down Expand Up @@ -460,10 +437,6 @@ cross-spawn@^5.0.1:
shebang-command "^1.2.0"
which "^1.2.9"

csstype@^2.2.0:
version "2.5.7"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.7.tgz#bf9235d5872141eccfb2d16d82993c6b149179ff"

dashdash@^1.12.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
Expand Down Expand Up @@ -1224,7 +1197,7 @@ jsprim@^1.2.2:

kind-of@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44"
resolved "http://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44"

kind-of@^3.0.2:
version "3.2.2"
Expand Down Expand Up @@ -1408,6 +1381,10 @@ [email protected]:
version "0.6.1"
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"

node-fetch@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.2.0.tgz#4ee79bde909262f9775f731e3656d0db55ced5b5"

node.extend@^1.1.2:
version "1.1.6"
resolved "https://registry.yarnpkg.com/node.extend/-/node.extend-1.1.6.tgz#a7b882c82d6c93a4863a5504bd5de8ec86258b96"
Expand Down Expand Up @@ -1656,17 +1633,10 @@ readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable
string_decoder "~1.1.1"
util-deprecate "~1.0.1"

redux-persist@*, redux-persist@^5.10.0:
redux-persist@^5.10.0:
version "5.10.0"
resolved "https://registry.yarnpkg.com/redux-persist/-/redux-persist-5.10.0.tgz#5d8d802c5571e55924efc1c3a9b23575283be62b"

redux@*:
version "4.0.0"
resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.0.tgz#aa698a92b729315d22b34a0553d7e6533555cc03"
dependencies:
loose-envify "^1.1.0"
symbol-observable "^1.2.0"

redux@^3.7.2:
version "3.7.2"
resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b"
Expand Down Expand Up @@ -1943,7 +1913,7 @@ string_decoder@~1.1.1:

strip-ansi@^3.0.0, strip-ansi@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
resolved "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
dependencies:
ansi-regex "^2.0.0"

Expand Down Expand Up @@ -1982,7 +1952,7 @@ supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"

symbol-observable@^1.0.3, symbol-observable@^1.2.0:
symbol-observable@^1.0.3:
version "1.2.0"
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"

Expand Down

0 comments on commit 7ebf4f8

Please sign in to comment.