1 line
No EOL
2.6 KiB
JSON
1 line
No EOL
2.6 KiB
JSON
{"ast":null,"code":"import { iterator as Symbol_iterator } from '../symbol/iterator';\nexport const subscribeToIterable = iterable => subscriber => {\n const iterator = iterable[Symbol_iterator]();\n do {\n let item;\n try {\n item = iterator.next();\n } catch (err) {\n subscriber.error(err);\n return subscriber;\n }\n if (item.done) {\n subscriber.complete();\n break;\n }\n subscriber.next(item.value);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n if (typeof iterator.return === 'function') {\n subscriber.add(() => {\n if (iterator.return) {\n iterator.return();\n }\n });\n }\n return subscriber;\n};","map":{"version":3,"names":["iterator","Symbol_iterator","subscribeToIterable","iterable","subscriber","item","next","err","error","done","complete","value","closed","return","add"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/util/subscribeToIterable.js"],"sourcesContent":["import { iterator as Symbol_iterator } from '../symbol/iterator';\nexport const subscribeToIterable = (iterable) => (subscriber) => {\n const iterator = iterable[Symbol_iterator]();\n do {\n let item;\n try {\n item = iterator.next();\n }\n catch (err) {\n subscriber.error(err);\n return subscriber;\n }\n if (item.done) {\n subscriber.complete();\n break;\n }\n subscriber.next(item.value);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n if (typeof iterator.return === 'function') {\n subscriber.add(() => {\n if (iterator.return) {\n iterator.return();\n }\n });\n }\n return subscriber;\n};\n"],"mappings":"AAAA,SAASA,QAAQ,IAAIC,eAAe,QAAQ,oBAAoB;AAChE,OAAO,MAAMC,mBAAmB,GAAIC,QAAQ,IAAMC,UAAU,IAAK;EAC7D,MAAMJ,QAAQ,GAAGG,QAAQ,CAACF,eAAe,CAAC,CAAC,CAAC;EAC5C,GAAG;IACC,IAAII,IAAI;IACR,IAAI;MACAA,IAAI,GAAGL,QAAQ,CAACM,IAAI,CAAC,CAAC;IAC1B,CAAC,CACD,OAAOC,GAAG,EAAE;MACRH,UAAU,CAACI,KAAK,CAACD,GAAG,CAAC;MACrB,OAAOH,UAAU;IACrB;IACA,IAAIC,IAAI,CAACI,IAAI,EAAE;MACXL,UAAU,CAACM,QAAQ,CAAC,CAAC;MACrB;IACJ;IACAN,UAAU,CAACE,IAAI,CAACD,IAAI,CAACM,KAAK,CAAC;IAC3B,IAAIP,UAAU,CAACQ,MAAM,EAAE;MACnB;IACJ;EACJ,CAAC,QAAQ,IAAI;EACb,IAAI,OAAOZ,QAAQ,CAACa,MAAM,KAAK,UAAU,EAAE;IACvCT,UAAU,CAACU,GAAG,CAAC,MAAM;MACjB,IAAId,QAAQ,CAACa,MAAM,EAAE;QACjBb,QAAQ,CAACa,MAAM,CAAC,CAAC;MACrB;IACJ,CAAC,CAAC;EACN;EACA,OAAOT,UAAU;AACrB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |