aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/firstValueFrom.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/firstValueFrom.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js b/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js
deleted file mode 100644
index 4734676..0000000
--- a/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import { EmptyError } from './util/EmptyError';
-import { SafeSubscriber } from './Subscriber';
-export function firstValueFrom(source, config) {
- var hasConfig = typeof config === 'object';
- return new Promise(function (resolve, reject) {
- var subscriber = new SafeSubscriber({
- next: function (value) {
- resolve(value);
- subscriber.unsubscribe();
- },
- error: reject,
- complete: function () {
- if (hasConfig) {
- resolve(config.defaultValue);
- }
- else {
- reject(new EmptyError());
- }
- },
- });
- source.subscribe(subscriber);
- });
-}
-//# sourceMappingURL=firstValueFrom.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage