dev-api: add developer portal, OpenAPI spec, and Flatenbadet case study
- New /developers/ page with API docs, SDKs, pricing, use cases - OpenAPI 3.0 spec for Orders, Missions, Photos, Analytics - Case study: Glasskiosken i Flatenbadet — complete ROI analysis - Updated /order/ with recurring missions and frequency dropdown
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
let getPromiseValue = () => 'Promise{…}'
|
||||
try {
|
||||
const { getPromiseDetails, kPending, kRejected } = process.binding('util')
|
||||
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
||||
getPromiseValue = (value, options) => {
|
||||
const [state, innerValue] = getPromiseDetails(value)
|
||||
if (state === kPending) {
|
||||
return 'Promise{<pending>}'
|
||||
}
|
||||
return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`
|
||||
}
|
||||
}
|
||||
} catch (notNode) {
|
||||
/* ignore */
|
||||
}
|
||||
export default getPromiseValue
|
||||
Reference in New Issue
Block a user