@polkadot-api/observable-client
Advanced tools
Comparing version 0.5.12 to 0.5.13
@@ -114,2 +114,20 @@ 'use strict'; | ||
const delayUnsubscription = (ms) => (source) => new rxjs.Observable((observer) => { | ||
const subscription = source.subscribe({ | ||
next(v) { | ||
observer.next(v); | ||
}, | ||
error(e) { | ||
observer.error(e); | ||
}, | ||
complete() { | ||
observer.complete(); | ||
} | ||
}); | ||
const unsubscribe = () => subscription.unsubscribe(); | ||
return () => { | ||
Promise.resolve().then(unsubscribe); | ||
}; | ||
}); | ||
var __defProp = Object.defineProperty; | ||
@@ -946,3 +964,4 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
} | ||
}) | ||
}), | ||
delayUnsubscription() | ||
); | ||
@@ -949,0 +968,0 @@ hashCache.set(key, result); |
{ | ||
"name": "@polkadot-api/observable-client", | ||
"version": "0.5.12", | ||
"version": "0.5.13", | ||
"author": "Josep M Sobrepere (https://github.com/josepot)", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
293710
50
3224