update node_modules
This commit is contained in:
parent
4889aac148
commit
195fbc52ad
431 changed files with 52587 additions and 0 deletions
15
node_modules/async/internal/onlyOnce.js
generated
vendored
Normal file
15
node_modules/async/internal/onlyOnce.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = onlyOnce;
|
||||
function onlyOnce(fn) {
|
||||
return function (...args) {
|
||||
if (fn === null) throw new Error("Callback was already called.");
|
||||
var callFn = fn;
|
||||
fn = null;
|
||||
callFn.apply(this, args);
|
||||
};
|
||||
}
|
||||
module.exports = exports.default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue