This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ exports.typeImpl = function (blob) { return blob.type; };
44
55exports . size = function ( blob ) { return blob . size ; } ;
66
7- exports . _slice = function ( blob ) {
7+ exports . _slice = function ( contentType ) {
88 return function ( start ) {
99 return function ( end ) {
10- return function ( contentType ) {
10+ return function ( blob ) {
1111 return blob . slice ( start , end , contentType ) ;
1212 }
1313 }
Original file line number Diff line number Diff line change @@ -61,13 +61,9 @@ idxFromNumber = round >>> unsafeCoerce
6161
6262-- | Creates a new `Blob` object (with specified `MediaType`), containing the
6363-- | data in the specified range of bytes of the source Blob, by setting .
64- slice ∷ MediaType -> StartByte -> EndByte -> Blob -> Blob
65- slice mediaType (StartByte start) (EndByte end) blob =
66- _slice blob start end (unwrap mediaType)
64+ foreign import slice ∷ MediaType -> StartByte -> EndByte -> Blob -> Blob
6765
6866-- | Creates a new `Blob` object containing the data in the specified range
6967-- | of bytes of the source Blob.
7068slice' ∷ StartByte -> EndByte -> Blob -> Blob
71- slice' (StartByte start) (EndByte end) blob = _slice blob start end " "
72-
73- foreign import _slice ∷ Blob -> ByteIdx -> ByteIdx -> String -> Blob
69+ slice' = slice (MediaType " " )
You can’t perform that action at this time.
0 commit comments