File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,9 +189,11 @@ class Recipe {
189189 }
190190
191191 // Present the results of the final operation
192- // TODO try/catch
193- output = await lastRunOp . present ( output ) ;
194- dish . set ( output , lastRunOp . presentType ) ;
192+ if ( lastRunOp ) {
193+ // TODO try/catch
194+ output = await lastRunOp . present ( output ) ;
195+ dish . set ( output , lastRunOp . presentType ) ;
196+ }
195197
196198 log . debug ( "Recipe complete" ) ;
197199 return this . opList . length ;
Original file line number Diff line number Diff line change 227227 ]
228228 },
229229 "Raw Deflate" : {
230- "module" : " Default " ,
230+ "module" : " Compression " ,
231231 "description" : " Compresses data using the deflate algorithm with no headers." ,
232232 "inputType" : " byteArray" ,
233233 "outputType" : " byteArray" ,
Original file line number Diff line number Diff line change 77*/
88import Gunzip from "../../operations/Gunzip" ;
99import Gzip from "../../operations/Gzip" ;
10+ import RawDeflate from "../../operations/RawDeflate" ;
1011import RawInflate from "../../operations/RawInflate" ;
1112import Unzip from "../../operations/Unzip" ;
1213import Zip from "../../operations/Zip" ;
@@ -18,6 +19,7 @@ const OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
1819OpModules . Compression = {
1920 "Gunzip" : Gunzip ,
2021 "Gzip" : Gzip ,
22+ "Raw Deflate" : RawDeflate ,
2123 "Raw Inflate" : RawInflate ,
2224 "Unzip" : Unzip ,
2325 "Zip" : Zip ,
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import FromHex from "../../operations/FromHex";
1212import PowerSet from "../../operations/PowerSet" ;
1313import ROT13 from "../../operations/ROT13" ;
1414import ROT47 from "../../operations/ROT47" ;
15- import RawDeflate from "../../operations/RawDeflate" ;
1615import RotateLeft from "../../operations/RotateLeft" ;
1716import RotateRight from "../../operations/RotateRight" ;
1817import SetDifference from "../../operations/SetDifference" ;
@@ -34,7 +33,6 @@ OpModules.Default = {
3433 "Power Set" : PowerSet ,
3534 "ROT13" : ROT13 ,
3635 "ROT47" : ROT47 ,
37- "Raw Deflate" : RawDeflate ,
3836 "Rotate left" : RotateLeft ,
3937 "Rotate right" : RotateRight ,
4038 "Set Difference" : SetDifference ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class RawDeflate extends Operation {
2828 super ( ) ;
2929
3030 this . name = "Raw Deflate" ;
31- this . module = "Default " ;
31+ this . module = "Compression " ;
3232 this . description = "Compresses data using the deflate algorithm with no headers." ;
3333 this . inputType = "byteArray" ;
3434 this . outputType = "byteArray" ;
You can’t perform that action at this time.
0 commit comments