@xylabs/promise
Advanced tools
Comparing version
export { fulfilled } from './fulfilled'; | ||
export { fulfilledValues } from './fulfilledValues'; | ||
export * from './isPromise'; | ||
export * from './PromiseEx'; | ||
@@ -4,0 +5,0 @@ export { rejected } from './rejected'; |
@@ -13,2 +13,10 @@ // src/fulfilled.ts | ||
// src/isPromise.ts | ||
var isPromise = (value) => { | ||
if (typeof value === "object" && !Array.isArray(value)) { | ||
return typeof value.then === "function"; | ||
} | ||
return false; | ||
}; | ||
// src/PromiseEx.ts | ||
@@ -45,4 +53,5 @@ var PromiseEx = class extends Promise { | ||
fulfilledValues, | ||
isPromise, | ||
rejected | ||
}; | ||
//# sourceMappingURL=index.js.map |
export { fulfilled } from './fulfilled'; | ||
export { fulfilledValues } from './fulfilledValues'; | ||
export * from './isPromise'; | ||
export * from './PromiseEx'; | ||
@@ -4,0 +5,0 @@ export { rejected } from './rejected'; |
@@ -13,2 +13,10 @@ // src/fulfilled.ts | ||
// src/isPromise.ts | ||
var isPromise = (value) => { | ||
if (typeof value === "object" && !Array.isArray(value)) { | ||
return typeof value.then === "function"; | ||
} | ||
return false; | ||
}; | ||
// src/PromiseEx.ts | ||
@@ -45,4 +53,5 @@ var PromiseEx = class extends Promise { | ||
fulfilledValues, | ||
isPromise, | ||
rejected | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -54,4 +54,4 @@ { | ||
"sideEffects": false, | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"type": "module" | ||
} |
export { fulfilled } from './fulfilled' | ||
export { fulfilledValues } from './fulfilledValues' | ||
export * from './isPromise' | ||
export * from './PromiseEx' | ||
export { rejected } from './rejected' | ||
export * from './types' |
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
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
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
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
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
Sorry, the diff of this file is not supported yet
74972
7.66%102
14.61%460
13.02%