Addnew sheets (armor, weapons, malefica) and v13 support

This commit is contained in:
2025-05-18 23:51:26 +02:00
parent 7672f861ff
commit 995d61e1c6
4478 changed files with 667857 additions and 620 deletions

28
node_modules/catering/index.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
'use strict'
var nextTick = require('./next-tick')
exports.fromCallback = function (callback, symbol) {
if (callback === undefined) {
var promise = new Promise(function (resolve, reject) {
callback = function (err, res) {
if (err) reject(err)
else resolve(res)
}
})
callback[symbol !== undefined ? symbol : 'promise'] = promise
} else if (typeof callback !== 'function') {
throw new TypeError('Callback must be a function')
}
return callback
}
exports.fromPromise = function (promise, callback) {
if (callback === undefined) return promise
promise
.then(function (res) { nextTick(() => callback(null, res)) })
.catch(function (err) { nextTick(() => callback(err)) })
}