Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

promist

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promist - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [2.0.2](https://github.com/rafamel/promist/compare/v2.0.1...v2.0.2) (2020-02-13)
### Bug Fixes
* fixes Promist value type inference for generics ([b87e128](https://github.com/rafamel/promist/commit/b87e1285b0b9e43845de23fb0ec9f5ac9847932f))
## [2.0.1](https://github.com/rafamel/promist/compare/v2.0.0...v2.0.1) (2020-02-13)

@@ -2,0 +11,0 @@

11

dist-src/create/subscribe.js

@@ -13,11 +13,13 @@ import { until } from "./until.js";

var subscription = observable.subscribe({
next: value => {
next(value) {
resolve(value);
unsubscribe();
},
error: _error => {
reject(_error);
error(error) {
reject(error);
unsubscribe();
},
complete: () => {
complete() {
if (emitted) return;

@@ -27,2 +29,3 @@ if (onComplete) onComplete(resolve, reject);else reject(Error("Source completed without emitting any values"));

}
});

@@ -29,0 +32,0 @@

@@ -40,11 +40,13 @@ /**

var subscription = observable.subscribe({
next: value => {
next(value) {
resolve(value);
unsubscribe();
},
error: _error => {
reject(_error);
error(error) {
reject(error);
unsubscribe();
},
complete: () => {
complete() {
if (emitted) return;

@@ -54,2 +56,3 @@ if (onComplete) onComplete(resolve, reject);else reject(Error("Source completed without emitting any values"));

}
});

@@ -56,0 +59,0 @@

@@ -1,2 +0,2 @@

import { RequiredType, PromistExecutor } from './types';
import { PromistExecutor, ValueType } from './types';
import Promist from './Promist';

@@ -19,4 +19,4 @@ declare const INTERNAL_SYMBOL: unique symbol;

timeout(ms: number, reason?: Error): void;
fallback(ms: number, value: T extends RequiredType ? T : T | void): void;
fallback(ms: number, value: ValueType<T>): void;
}
export {};

@@ -89,2 +89,2 @@ "use strict";

exports.default = LazyPromist;
//# sourceMappingURL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tcbiAgICAgICAgICAgIHN1cGVyLnRpbWVvdXQobXMsIHJlYXNvbik7XG4gICAgICAgICAgfVxuICAgICAgICA6ICgpID0+IHN1cGVyLnRpbWVvdXQobXMsIHJlYXNvbik7XG4gICAgfVxuICB9XG4gIHB1YmxpYyBmYWxsYmFjayhtczogbnVtYmVyLCB2YWx1ZTogVmFsdWVUeXBlPFQ+KTogdm9pZCB7XG4gICAgY29uc3QgeyBleGVjdXRlZCwgb25zdGFydCB9ID0gdGhpc1tJTlRFUk5BTF9TWU1CT0xdO1xuICAgIGlmIChleGVjdXRlZCkge1xuICAgICAgc3VwZXIuZmFsbGJhY2sobXMsIHZhbHVlKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpc1tJTlRFUk5BTF9TWU1CT0xdLm9uc3RhcnQgPSBvbnN0YXJ0XG4gICAgICAgID8gKCkgPT4ge1xuICAgICAgICAgICAgb25zdGFydCgpO1xuICAgICAgICAgICAgc3VwZXIuZmFsbGJhY2sobXMsIHZhbHVlKTtcbiAgICAgICAgICB9XG4gICAgICAgIDogKCkgPT4gc3VwZXIuZmFsbGJhY2sobXMsIHZhbHVlKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
import { ObservableDefinition } from '../types';
import { PromistStatus, PromistExecutor, RequiredType, PromiseExecutor } from './types';
import { PromistStatus, PromistExecutor, PromiseExecutor, ValueType } from './types';
declare const INTERNAL_SYMBOL: unique symbol;

@@ -71,3 +71,3 @@ export interface Internal<T> {

*/
resolve(value: T extends RequiredType ? T : T | void): void;
resolve(value: ValueType<T>): void;
/**

@@ -92,4 +92,4 @@ * Rejects the `Promist` with `reason`.

*/
fallback(ms: number, value: T extends RequiredType ? T : T | void): void;
fallback(ms: number, value: ValueType<T>): void;
}
export {};

@@ -281,2 +281,2 @@ "use strict";

exports.default = Promist;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jbGFzc2V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VydmFibGUuc3Vic2NyaWJlKHtcbiAgICAgICAgbmV4dCh2YWx1ZSkge1xuICAgICAgICAgIGVtaXR0ZWQgPSB0cnVlO1xuICAgICAgICAgIHJlc29sdmUodmFsdWUgYXMgYW55KTtcbiAgICAgICAgfSxcbiAgICAgICAgZXJyb3IoZXJyb3IpIHtcbiAgICAgICAgICBlbWl0dGVkID0gdHJ1ZTtcbiAgICAgICAgICByZWplY3QoZXJyb3IpO1xuICAgICAgICB9LFxuICAgICAgICBjb21wbGV0ZSgpIHtcbiAgICAgICAgICBpZiAoZW1pdHRlZCkgcmV0dXJuO1xuICAgICAgICAgIGlmIChvbkNvbXBsZXRlKSB7XG4gICAgICAgICAgICBvbkNvbXBsZXRlKHJlc29sdmUsIHJlamVjdCk7XG4gICAgICAgICAgICB1bnRpbCgoKSA9PiBCb29sZWFuKHN1YnNjcmlwdGlvbiksIHRydWUpLnRoZW4oKCkgPT5cbiAgICAgICAgICAgICAgc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKClcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJlamVjdChFcnJvcihgU291cmNlIGNvbXBsZXRlZCB3aXRob3V0IGVtaXR0aW5nIGFueSB2YWx1ZXNgKSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KTtcblxuICAgICAgcmV0dXJuICgpID0+IHN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgIH0pO1xuICB9XG4gIHByaXZhdGUgW0lOVEVSTkFMX1NZTUJPTF06IEludGVybmFsPFQ+O1xuICBwdWJsaWMgY29uc3RydWN0b3IoZXhlY3V0b3I/OiBQcm9taXN0RXhlY3V0b3I8VD4pIHtcbiAgICBsZXQgYWN0aW9uczogYW55ID0gbnVsbDtcbiAgICBjb25zdCBwcm9taXNlID0gbmV3IFByb21pc2U8VD4oKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgYWN0aW9ucyA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KCgpID0+IHtcbiAgICAgIHRoaXMucmVqZWN0KHJlYXNvbiB8fCBFcnJvcignUHJvbWlzZSB0aW1lZCBvdXQnKSk7XG4gICAgfSwgbXMpO1xuICAgIHRoaXMucmVhY3QudGhlbigoKSA9PiBjbGVhclRpbWVvdXQodGltZW91dCkpO1xuICB9XG4gIC8qKlxuICAgKiBTZXRzIGEgdGltZW91dCBvZiBgbXNgIG1pbGxpc2Vjb25kcyBhZnRlciB3aGljaCwgaWYgdGhlIGBQcm9taXN0YFxuICAgKiBoYXNuJ3QgcmVzb2x2ZWQsIHJlamVjdGVkLCBvciBjYW5jZWxsZWQsIGl0IHdpbGwgcmVzb2x2ZVxuICAgKiBieSBmYWxsaW5nIGJhY2sgdG8gYHZhbHVlYC5cbiAgICovXG4gIHB1YmxpYyBmYWxsYmFjayhtczogbnVtYmVyLCB2YWx1ZTogVmFsdWVUeXBlPFQ+KTogdm9pZCB7XG4gICAgY29uc3QgeyBzdGF0ZSB9ID0gdGhpc1tJTlRFUk5BTF9TWU1CT0xdO1xuICAgIGlmIChzdGF0ZS5zdGF0dXMgIT09ICdwZW5kaW5nJykgcmV0dXJuO1xuXG4gICAgY29uc3QgdGltZW91dCA9IHNldFRpbWVvdXQoKCkgPT4gdGhpcy5yZXNvbHZlKHZhbHVlIGFzIGFueSksIG1zKTtcbiAgICB0aGlzLnJlYWN0LnRoZW4oKCkgPT4gY2xlYXJUaW1lb3V0KHRpbWVvdXQpKTtcbiAgfVxufVxuIl19

@@ -1,4 +0,5 @@

export declare type PromiseExecutor<T = any> = (resolve: (value: T extends RequiredType ? T | Promise<T> : T | void) => void, reject: (reason: Error) => void) => void;
export declare type PromistExecutor<T = any> = (resolve: (value: T extends RequiredType ? T : T | void) => void, reject: (reason: Error) => void) => void | (() => void);
export declare type PromistStatus = 'pending' | 'resolved' | 'rejected' | 'cancelled';
export declare type RequiredType = string | number | bigint | boolean | symbol | object;
export declare type PromistExecutor<T = any> = (resolve: (value: ValueType<T>) => void, reject: (reason: Error) => void) => void | (() => void);
export declare type PromiseExecutor<T = any> = (resolve: (value: T | (T extends RequiredType ? T | Promise<T> : T | void)) => void, reject: (reason: Error) => void) => void;
export declare type ValueType<T> = T | (T extends RequiredType ? T : T | void);
export declare type RequiredType = string | number | bigint | boolean | symbol | object | null;

@@ -20,11 +20,13 @@ "use strict";

const subscription = observable.subscribe({
next: value => {
next(value) {
resolve(value);
unsubscribe();
},
error: error => {
error(error) {
reject(error);
unsubscribe();
},
complete: () => {
complete() {
if (emitted) return;

@@ -34,2 +36,3 @@ if (onComplete) onComplete(resolve, reject);else reject(Error(`Source completed without emitting any values`));

}
});

@@ -43,2 +46,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jcmVhdGUvc3Vic2NyaWJlLnRzIl0sIm5hbWVzIjpbInN1YnNjcmliZSIsIm9ic2VydmFibGUiLCJvbkNvbXBsZXRlIiwiUHJvbWlzZSIsInJlc29sdmUiLCJyZWplY3QiLCJlbWl0dGVkIiwic3Vic2NyaXB0aW9uIiwibmV4dCIsInZhbHVlIiwidW5zdWJzY3JpYmUiLCJlcnJvciIsImNvbXBsZXRlIiwiRXJyb3IiLCJCb29sZWFuIiwidGhlbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUNBOztBQUdBOzs7Ozs7QUFNTyxTQUFTQSxTQUFULENBQ0xDLFVBREssRUFFTEMsVUFGSyxFQUdPO0FBQ1osU0FBTyxJQUFJQyxPQUFKLENBQVksQ0FBQ0MsT0FBRCxFQUFVQyxNQUFWLEtBQXFCO0FBQ3RDLFFBQUlDLE9BQU8sR0FBRyxLQUFkO0FBQ0EsVUFBTUMsWUFBWSxHQUFHTixVQUFVLENBQUNELFNBQVgsQ0FBcUI7QUFDeENRLE1BQUFBLElBQUksRUFBR0MsS0FBRCxJQUFXO0FBQ2ZMLFFBQUFBLE9BQU8sQ0FBQ0ssS0F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IG9uQ29tcGxldGU/OiBQcm9taXNlRXhlY3V0b3Jcbik6IFByb21pc2U8VD4ge1xuICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIGxldCBlbWl0dGVkID0gZmFsc2U7XG4gICAgY29uc3Qgc3Vic2NyaXB0aW9uID0gb2JzZXJ2YWJsZS5zdWJzY3JpYmUoe1xuICAgICAgbmV4dCh2YWx1ZSkge1xuICAgICAgICByZXNvbHZlKHZhbHVlKTtcbiAgICAgICAgdW5zdWJzY3JpYmUoKTtcbiAgICAgIH0sXG4gICAgICBlcnJvcihlcnJvcikge1xuICAgICAgICByZWplY3QoZXJyb3IpO1xuICAgICAgICB1bnN1YnNjcmliZSgpO1xuICAgICAgfSxcbiAgICAgIGNvbXBsZXRlKCkge1xuICAgICAgICBpZiAoZW1pdHRlZCkgcmV0dXJuO1xuICAgICAgICBpZiAob25Db21wbGV0ZSkgb25Db21wbGV0ZShyZXNvbHZlLCByZWplY3QpO1xuICAgICAgICBlbHNlIHJlamVjdChFcnJvcihgU291cmNlIGNvbXBsZXRlZCB3aXRob3V0IGVtaXR0aW5nIGFueSB2YWx1ZXNgKSk7XG4gICAgICAgIHVuc3Vic2NyaWJlKCk7XG4gICAgICB9XG4gICAgfSk7XG4gICAgZnVuY3Rpb24gdW5zdWJzY3JpYmUoKTogdm9pZCB7XG4gICAgICBlbWl0dGVkID0gdHJ1ZTtcbiAgICAgIHVudGlsKCgpID0+IEJvb2xlYW4oc3Vic2NyaXB0aW9uKSwgdHJ1ZSkudGhlbigoKSA9PlxuICAgICAgICBzdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKVxuICAgICAgKTtcbiAgICB9XG4gIH0pO1xufVxuIl19
{
"name": "promist",
"description": "A dependable promises and async utility belt",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc