mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Change endpoint from persons to people
This commit is contained in:
22
backend/apis/nodejs/node_modules/dezalgo/dezalgo.js
generated
vendored
Normal file
22
backend/apis/nodejs/node_modules/dezalgo/dezalgo.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
var wrappy = require('wrappy')
|
||||
module.exports = wrappy(dezalgo)
|
||||
|
||||
var asap = require('asap')
|
||||
|
||||
function dezalgo (cb) {
|
||||
var sync = true
|
||||
asap(function () {
|
||||
sync = false
|
||||
})
|
||||
|
||||
return function zalgoSafe() {
|
||||
var args = arguments
|
||||
var me = this
|
||||
if (sync)
|
||||
asap(function() {
|
||||
cb.apply(me, args)
|
||||
})
|
||||
else
|
||||
cb.apply(me, args)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user