mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update npm
This commit is contained in:
parent
8341712d58
commit
1bd85100b9
5320 changed files with 58396 additions and 344722 deletions
21
node_modules/@babel/runtime/helpers/esm/using.js
generated
vendored
21
node_modules/@babel/runtime/helpers/esm/using.js
generated
vendored
|
@ -1,12 +1,11 @@
|
|||
import _typeof from "./typeof.js";
|
||||
export default function _using(stack, value, isAwait) {
|
||||
if (null == value) return value;
|
||||
if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined.");
|
||||
if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
||||
if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function.");
|
||||
return stack.push({
|
||||
v: value,
|
||||
d: dispose,
|
||||
a: isAwait
|
||||
}), value;
|
||||
export default function _using(o, n, e) {
|
||||
if (null == n) return n;
|
||||
if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
|
||||
if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
||||
if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function.");
|
||||
return o.push({
|
||||
v: n,
|
||||
d: r,
|
||||
a: e
|
||||
}), n;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue