This commit is contained in:
Gilles Soulier
2026-01-17 15:58:01 +01:00
parent 1f7f7da0c3
commit dc19315e5d
5616 changed files with 1609815 additions and 18 deletions

33
webui/node_modules/reusify/reusify.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
'use strict'
function reusify (Constructor) {
var head = new Constructor()
var tail = head
function get () {
var current = head
if (current.next) {
head = current.next
} else {
head = new Constructor()
tail = head
}
current.next = null
return current
}
function release (obj) {
tail.next = obj
tail = obj
}
return {
get: get,
release: release
}
}
module.exports = reusify