UNPKG

kodikwrapper

Version:
2 lines (1 loc) 972 B
"use strict";var e=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var i=(s,t)=>e(s,"name",{value:t,configurable:!0});var k=(s,t)=>{for(var r in t)e(s,r,{get:t[r],enumerable:!0})},u=(s,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of a(t))!h.call(s,o)&&o!==r&&e(s,o,{get:()=>t[o],enumerable:!(n=c(t,o))||n.enumerable});return s};var d=s=>u(e({},"__esModule",{value:!0}),s);var p={};k(p,{VideoLinksError:()=>g});module.exports=d(p);class g extends Error{static{i(this,"VideoLinksError")}code;stack;data;cause;constructor({code:t,description:r,data:n,cause:o}){super(r),this.code=t,this.data=n,this.name=this.constructor.name,this.cause=o,Error.captureStackTrace(this,this.constructor)}get[Symbol.toStringTag](){return this.constructor.name}toJSON(){const t={};for(const r of Object.getOwnPropertyNames(this))t[r]=this[r];return t}}0&&(module.exports={VideoLinksError});