Skip to content

Commit

Permalink
feat: cut new v3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jul 29, 2022
1 parent 7edb278 commit 7f63c86
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 65 deletions.
71 changes: 14 additions & 57 deletions package-lock.json

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

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,22 @@
},
"dependencies": {
"@mux-elements/playback-core": "^0.7.0",
"@mux/upchunk": "2.4.0",
"@mux/upchunk": "^2.4.0",
"@reach/auto-id": "^0.17.0",
"@sanity/icons": "^1.3.1",
"@sanity/incompatible-plugin": "^0.0.1-studio-v3.1",
"@sanity/uuid": "^3.0.1",
"classnames": "^2.3.1",
"hls.js": "^1.1.5",
"jsonwebtoken-esm": "^1.0.3",
"lodash": "^4.17.21",
"lodash.memoize": "^4.1.2",
"media-chrome": "^0.8.1",
"motion": "^10.13.1",
"react-rx": "^2.0.4",
"rxjs": "^6",
"scroll-into-view-if-needed": "^2.2.29",
"suspend-react": "^0.0.8",
"swr": "^1.3.0",
"use-device-pixel-ratio": "^1.1.0",
"use-error-boundary": "^2.0.6",
"use-previous": "^1.1.0"
"use-error-boundary": "^2.0.6"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
Expand Down
3 changes: 1 addition & 2 deletions src/actions/upload.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable camelcase */
import type {SanityClient} from '@sanity/client'
import {uuid as generateUuid} from '@sanity/uuid'
import {isString} from 'lodash'
import {type Observable, concat, defer, from, of, throwError} from 'rxjs'
import {catchError, mergeMap, mergeMapTo, switchMap} from 'rxjs/operators'

Expand Down Expand Up @@ -245,7 +244,7 @@ function testFile(file: File) {

function testUrl(url: string): Observable<string> {
const error = new Error('Invalid URL')
if (!isString(url)) {
if (typeof url !== 'string') {
return throwError(error)
}
let parsed
Expand Down

0 comments on commit 7f63c86

Please sign in to comment.