@giscus/preact
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
@@ -1,1 +0,1 @@ | ||
"use strict";var r=require("preact");function z(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var B=z(r),V,l,k,H=0,W=[],P=r.options.__b,E=r.options.__r,C=r.options.diffed,A=r.options.__c,w=r.options.unmount;function Z(e,t){r.options.__h&&r.options.__h(l,e,H||t),H=0;var _=l.__H||(l.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function G(e,t){var _=Z(V++,3);!r.options.__s&&J(_.__H,t)&&(_.__=e,_.__H=t,l.__H.__h.push(_))}function I(){for(var e;e=W.shift();)if(e.__P)try{e.__H.__h.forEach(h),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],r.options.__e(t,e.__v)}}r.options.__b=function(e){l=null,P&&P(e)},r.options.__r=function(e){E&&E(e),V=0;var t=(l=e.__c).__H;t&&(t.__h.forEach(h),t.__h.forEach(g),t.__h=[])},r.options.diffed=function(e){C&&C(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(W.push(t)!==1&&k===r.options.requestAnimationFrame||((k=r.options.requestAnimationFrame)||function(_){var n,u=function(){clearTimeout(o),O&&cancelAnimationFrame(n),setTimeout(_)},o=setTimeout(u,100);O&&(n=requestAnimationFrame(u))})(I)),l=null},r.options.__c=function(e,t){t.some(function(_){try{_.__h.forEach(h),_.__h=_.__h.filter(function(n){return!n.__||g(n)})}catch(n){t.some(function(u){u.__h&&(u.__h=[])}),t=[],r.options.__e(n,_.__v)}}),A&&A(e,t)},r.options.unmount=function(e){w&&w(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(n){try{h(n)}catch(u){t=u}}),t&&r.options.__e(t,_.__v))};var O=typeof requestAnimationFrame=="function";function h(e){var t=l,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),l=t}function g(e){var t=l;e.__c=e.__(),l=t}function J(e,t){return!e||e.length!==t.length||t.some(function(_,n){return _!==e[n]})}function K(e,t){for(var _ in t)e[_]=t[_];return e}function $(e,t){for(var _ in e)if(_!=="__source"&&!(_ in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function x(e){this.props=e}(x.prototype=new r.Component).isPureReactComponent=!0,x.prototype.shouldComponentUpdate=function(e,t){return $(this.props,e)||$(this.state,t)};var S=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),S&&S(e)};var Q=r.options.__e;r.options.__e=function(e,t,_,n){if(e.then){for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return t.__e==null&&(t.__e=_.__e,t.__k=_.__k),u.__c(e,t)}Q(e,t,_,n)};var q=r.options.unmount;function b(){this.__u=0,this.t=null,this.__b=null}function L(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function v(){this.u=null,this.o=null}r.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),q&&q(e)},(b.prototype=new r.Component).__c=function(e,t){var _=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(_);var u=L(n.__v),o=!1,i=function(){o||(o=!0,_.__R=null,u?u(c):c())};_.__R=i;var c=function(){if(!--n.__u){if(n.state.__e){var s=n.state.__e;n.__v.__k[0]=function d(a,m,y){return a&&(a.__v=null,a.__k=a.__k&&a.__k.map(function(M){return d(M,m,y)}),a.__c&&a.__c.__P===m&&(a.__e&&y.insertBefore(a.__e,a.__d),a.__c.__e=!0,a.__c.__P=y)),a}(s,s.__c.__P,s.__c.__O)}var p;for(n.setState({__e:n.__b=null});p=n.t.pop();)p.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(i,i)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var _=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function o(i,c,f){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),i.__c.__H=null),(i=K({},i)).__c!=null&&(i.__c.__P===f&&(i.__c.__P=c),i.__c=null),i.__k=i.__k&&i.__k.map(function(s){return o(s,c,f)})),i}(this.__b,_,n.__O=n.__P)}this.__b=null}var u=t.__e&&r.createElement(r.Fragment,null,e.fallback);return u&&(u.__h=null),[r.createElement(r.Fragment,null,t.__e?null:e.children),u]};var U=function(e,t,_){if(++_[1]===_[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(_=e.u;_;){for(;_.length>3;)_.pop()();if(_[1]<_[0])break;e.u=_=_[2]}};(v.prototype=new r.Component).__e=function(e){var t=this,_=L(t.__v),n=t.o.get(e);return n[0]++,function(u){var o=function(){t.props.revealOrder?(n.push(u),U(t,e,n)):u()};_?_(o):o()}},v.prototype.render=function(e){this.u=null,this.o=new Map;var t=r.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var _=t.length;_--;)this.o.set(t[_],this.u=[1,0,this.u]);return e.children},v.prototype.componentDidUpdate=v.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,_){U(e,_,t)})};var Y=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,X=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ee=typeof document!="undefined",te=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var j=r.options.event;function _e(){}function ne(){return this.cancelBubble}function oe(){return this.defaultPrevented}r.options.event=function(e){return j&&(e=j(e)),e.persist=_e,e.isPropagationStopped=ne,e.isDefaultPrevented=oe,e.nativeEvent=e};var F={configurable:!0,get:function(){return this.class}},R=r.options.vnode;r.options.vnode=function(e){var t=e.type,_=e.props,n=_;if(typeof t=="string"){var u=t.indexOf("-")===-1;for(var o in n={},_){var i=_[o];ee&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in _&&i==null||(o==="defaultValue"&&"value"in _&&_.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!te(_.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():u&&X.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),n[o]=i)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=r.toChildArray(_.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=r.toChildArray(_.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,_.class!=_.className&&(F.enumerable="className"in _,_.className!=null&&(n.class=_.className),Object.defineProperty(n,"className",F))}e.$$typeof=Y,R&&R(e)};var N=r.options.__r;r.options.__r=function(e){N&&N(e)};var D,T=B.default,re=0;function ie(e,t,_,n,u){var o,i,c={};for(i in t)i=="ref"?o=t[i]:c[i]=t[i];var f={type:e,props:c,key:_,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--re,__source:u,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return T.options.vnode&&T.options.vnode(f),f}D=ie;const ue=D;function ce({id:e,repo:t,repoId:_,category:n,categoryId:u,mapping:o,term:i,reactionsEnabled:c,emitMetadata:f,inputPosition:s,theme:p,lang:d,loading:a}){return G(()=>{Promise.resolve().then(function(){return require("./giscus.es.js")})},[]),ue("giscus-widget",{id:e,repo:t,repoid:_,category:n,categoryid:u,mapping:o,term:i,reactionsenabled:c,emitmetadata:f,inputposition:s,theme:p,lang:d,loading:a})}module.exports=ce; | ||
"use strict";var g=require("preact/compat"),f=require("preact/jsx-runtime");function j({id:e,repo:t,repoId:i,category:r,categoryId:s,mapping:u,term:c,reactionsEnabled:n,emitMetadata:o,inputPosition:a,theme:p,lang:d,loading:m}){return g.useEffect(()=>{Promise.resolve().then(function(){return require("./giscus.es.js")})},[]),f.jsx("giscus-widget",{id:e,repo:t,repoid:i,category:r,categoryid:s,mapping:u,term:c,reactionsenabled:n,emitmetadata:o,inputposition:a,theme:p,lang:d,loading:m})}module.exports=j; |
@@ -1,252 +0,3 @@ | ||
import require$$0, { options, Component, createElement, Fragment, toChildArray } from "preact"; | ||
var t, u, r$1, o = 0, i = [], c = options.__b, f = options.__r, e$1 = options.diffed, a = options.__c, v = options.unmount; | ||
function l(t2, r2) { | ||
options.__h && options.__h(u, t2, o || r2), o = 0; | ||
var i2 = u.__H || (u.__H = { __: [], __h: [] }); | ||
return t2 >= i2.__.length && i2.__.push({}), i2.__[t2]; | ||
} | ||
function y(r2, o2) { | ||
var i2 = l(t++, 3); | ||
!options.__s && k(i2.__H, o2) && (i2.__ = r2, i2.__H = o2, u.__H.__h.push(i2)); | ||
} | ||
function x() { | ||
for (var t2; t2 = i.shift(); ) | ||
if (t2.__P) | ||
try { | ||
t2.__H.__h.forEach(g), t2.__H.__h.forEach(j), t2.__H.__h = []; | ||
} catch (u2) { | ||
t2.__H.__h = [], options.__e(u2, t2.__v); | ||
} | ||
} | ||
options.__b = function(n) { | ||
u = null, c && c(n); | ||
}, options.__r = function(n) { | ||
f && f(n), t = 0; | ||
var r2 = (u = n.__c).__H; | ||
r2 && (r2.__h.forEach(g), r2.__h.forEach(j), r2.__h = []); | ||
}, options.diffed = function(t2) { | ||
e$1 && e$1(t2); | ||
var o2 = t2.__c; | ||
o2 && o2.__H && o2.__H.__h.length && (i.push(o2) !== 1 && r$1 === options.requestAnimationFrame || ((r$1 = options.requestAnimationFrame) || function(n) { | ||
var t3, u2 = function() { | ||
clearTimeout(r2), b && cancelAnimationFrame(t3), setTimeout(n); | ||
}, r2 = setTimeout(u2, 100); | ||
b && (t3 = requestAnimationFrame(u2)); | ||
})(x)), u = null; | ||
}, options.__c = function(t2, u2) { | ||
u2.some(function(t3) { | ||
try { | ||
t3.__h.forEach(g), t3.__h = t3.__h.filter(function(n) { | ||
return !n.__ || j(n); | ||
}); | ||
} catch (r2) { | ||
u2.some(function(n) { | ||
n.__h && (n.__h = []); | ||
}), u2 = [], options.__e(r2, t3.__v); | ||
} | ||
}), a && a(t2, u2); | ||
}, options.unmount = function(t2) { | ||
v && v(t2); | ||
var u2, r2 = t2.__c; | ||
r2 && r2.__H && (r2.__H.__.forEach(function(n) { | ||
try { | ||
g(n); | ||
} catch (n2) { | ||
u2 = n2; | ||
} | ||
}), u2 && options.__e(u2, r2.__v)); | ||
}; | ||
var b = typeof requestAnimationFrame == "function"; | ||
function g(n) { | ||
var t2 = u, r2 = n.__c; | ||
typeof r2 == "function" && (n.__c = void 0, r2()), u = t2; | ||
} | ||
function j(n) { | ||
var t2 = u; | ||
n.__c = n.__(), u = t2; | ||
} | ||
function k(n, t2) { | ||
return !n || n.length !== t2.length || t2.some(function(t3, u2) { | ||
return t3 !== n[u2]; | ||
}); | ||
} | ||
function C(n, t2) { | ||
for (var e2 in t2) | ||
n[e2] = t2[e2]; | ||
return n; | ||
} | ||
function S(n, t2) { | ||
for (var e2 in n) | ||
if (e2 !== "__source" && !(e2 in t2)) | ||
return true; | ||
for (var r2 in t2) | ||
if (r2 !== "__source" && n[r2] !== t2[r2]) | ||
return true; | ||
return false; | ||
} | ||
function E(n) { | ||
this.props = n; | ||
} | ||
(E.prototype = new Component()).isPureReactComponent = true, E.prototype.shouldComponentUpdate = function(n, t2) { | ||
return S(this.props, n) || S(this.state, t2); | ||
}; | ||
var w = options.__b; | ||
options.__b = function(n) { | ||
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), w && w(n); | ||
}; | ||
var O = options.__e; | ||
options.__e = function(n, t2, e2, r2) { | ||
if (n.then) { | ||
for (var u2, o2 = t2; o2 = o2.__; ) | ||
if ((u2 = o2.__c) && u2.__c) | ||
return t2.__e == null && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n, t2); | ||
} | ||
O(n, t2, e2, r2); | ||
}; | ||
var A = options.unmount; | ||
function L() { | ||
this.__u = 0, this.t = null, this.__b = null; | ||
} | ||
function U(n) { | ||
var t2 = n.__.__c; | ||
return t2 && t2.__e && t2.__e(n); | ||
} | ||
function M() { | ||
this.u = null, this.o = null; | ||
} | ||
options.unmount = function(n) { | ||
var t2 = n.__c; | ||
t2 && t2.__R && t2.__R(), t2 && n.__h === true && (n.type = null), A && A(n); | ||
}, (L.prototype = new Component()).__c = function(n, t2) { | ||
var e2 = t2.__c, r2 = this; | ||
r2.t == null && (r2.t = []), r2.t.push(e2); | ||
var u2 = U(r2.__v), o2 = false, i2 = function() { | ||
o2 || (o2 = true, e2.__R = null, u2 ? u2(l2) : l2()); | ||
}; | ||
e2.__R = i2; | ||
var l2 = function() { | ||
if (!--r2.__u) { | ||
if (r2.state.__e) { | ||
var n2 = r2.state.__e; | ||
r2.__v.__k[0] = function n3(t4, e3, r3) { | ||
return t4 && (t4.__v = null, t4.__k = t4.__k && t4.__k.map(function(t5) { | ||
return n3(t5, e3, r3); | ||
}), t4.__c && t4.__c.__P === e3 && (t4.__e && r3.insertBefore(t4.__e, t4.__d), t4.__c.__e = true, t4.__c.__P = r3)), t4; | ||
}(n2, n2.__c.__P, n2.__c.__O); | ||
} | ||
var t3; | ||
for (r2.setState({ __e: r2.__b = null }); t3 = r2.t.pop(); ) | ||
t3.forceUpdate(); | ||
} | ||
}, c2 = t2.__h === true; | ||
r2.__u++ || c2 || r2.setState({ __e: r2.__b = r2.__v.__k[0] }), n.then(i2, i2); | ||
}, L.prototype.componentWillUnmount = function() { | ||
this.t = []; | ||
}, L.prototype.render = function(n, t2) { | ||
if (this.__b) { | ||
if (this.__v.__k) { | ||
var e2 = document.createElement("div"), r2 = this.__v.__k[0].__c; | ||
this.__v.__k[0] = function n2(t3, e3, r3) { | ||
return t3 && (t3.__c && t3.__c.__H && (t3.__c.__H.__.forEach(function(n3) { | ||
typeof n3.__c == "function" && n3.__c(); | ||
}), t3.__c.__H = null), (t3 = C({}, t3)).__c != null && (t3.__c.__P === r3 && (t3.__c.__P = e3), t3.__c = null), t3.__k = t3.__k && t3.__k.map(function(t4) { | ||
return n2(t4, e3, r3); | ||
})), t3; | ||
}(this.__b, e2, r2.__O = r2.__P); | ||
} | ||
this.__b = null; | ||
} | ||
var u2 = t2.__e && createElement(Fragment, null, n.fallback); | ||
return u2 && (u2.__h = null), [createElement(Fragment, null, t2.__e ? null : n.children), u2]; | ||
}; | ||
var T = function(n, t2, e2) { | ||
if (++e2[1] === e2[0] && n.o.delete(t2), n.props.revealOrder && (n.props.revealOrder[0] !== "t" || !n.o.size)) | ||
for (e2 = n.u; e2; ) { | ||
for (; e2.length > 3; ) | ||
e2.pop()(); | ||
if (e2[1] < e2[0]) | ||
break; | ||
n.u = e2 = e2[2]; | ||
} | ||
}; | ||
(M.prototype = new Component()).__e = function(n) { | ||
var t2 = this, e2 = U(t2.__v), r2 = t2.o.get(n); | ||
return r2[0]++, function(u2) { | ||
var o2 = function() { | ||
t2.props.revealOrder ? (r2.push(u2), T(t2, n, r2)) : u2(); | ||
}; | ||
e2 ? e2(o2) : o2(); | ||
}; | ||
}, M.prototype.render = function(n) { | ||
this.u = null, this.o = /* @__PURE__ */ new Map(); | ||
var t2 = toChildArray(n.children); | ||
n.revealOrder && n.revealOrder[0] === "b" && t2.reverse(); | ||
for (var e2 = t2.length; e2--; ) | ||
this.o.set(t2[e2], this.u = [1, 0, this.u]); | ||
return n.children; | ||
}, M.prototype.componentDidUpdate = M.prototype.componentDidMount = function() { | ||
var n = this; | ||
this.o.forEach(function(t2, e2) { | ||
T(n, e2, t2); | ||
}); | ||
}; | ||
var W = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, P = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, V = typeof document != "undefined", z = function(n) { | ||
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(n); | ||
}; | ||
Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) { | ||
Object.defineProperty(Component.prototype, n, { configurable: true, get: function() { | ||
return this["UNSAFE_" + n]; | ||
}, set: function(t2) { | ||
Object.defineProperty(this, n, { configurable: true, writable: true, value: t2 }); | ||
} }); | ||
}); | ||
var H = options.event; | ||
function Z() { | ||
} | ||
function Y() { | ||
return this.cancelBubble; | ||
} | ||
function q() { | ||
return this.defaultPrevented; | ||
} | ||
options.event = function(n) { | ||
return H && (n = H(n)), n.persist = Z, n.isPropagationStopped = Y, n.isDefaultPrevented = q, n.nativeEvent = n; | ||
}; | ||
var J = { configurable: true, get: function() { | ||
return this.class; | ||
} }, K = options.vnode; | ||
options.vnode = function(n) { | ||
var t2 = n.type, e2 = n.props, r2 = e2; | ||
if (typeof t2 == "string") { | ||
var u2 = t2.indexOf("-") === -1; | ||
for (var o2 in r2 = {}, e2) { | ||
var i2 = e2[o2]; | ||
V && o2 === "children" && t2 === "noscript" || o2 === "value" && "defaultValue" in e2 && i2 == null || (o2 === "defaultValue" && "value" in e2 && e2.value == null ? o2 = "value" : o2 === "download" && i2 === true ? i2 = "" : /ondoubleclick/i.test(o2) ? o2 = "ondblclick" : /^onchange(textarea|input)/i.test(o2 + t2) && !z(e2.type) ? o2 = "oninput" : /^onfocus$/i.test(o2) ? o2 = "onfocusin" : /^onblur$/i.test(o2) ? o2 = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o2) ? o2 = o2.toLowerCase() : u2 && P.test(o2) ? o2 = o2.replace(/[A-Z0-9]/, "-$&").toLowerCase() : i2 === null && (i2 = void 0), r2[o2] = i2); | ||
} | ||
t2 == "select" && r2.multiple && Array.isArray(r2.value) && (r2.value = toChildArray(e2.children).forEach(function(n2) { | ||
n2.props.selected = r2.value.indexOf(n2.props.value) != -1; | ||
})), t2 == "select" && r2.defaultValue != null && (r2.value = toChildArray(e2.children).forEach(function(n2) { | ||
n2.props.selected = r2.multiple ? r2.defaultValue.indexOf(n2.props.value) != -1 : r2.defaultValue == n2.props.value; | ||
})), n.props = r2, e2.class != e2.className && (J.enumerable = "className" in e2, e2.className != null && (r2.class = e2.className), Object.defineProperty(r2, "className", J)); | ||
} | ||
n.$$typeof = W, K && K(n); | ||
}; | ||
var Q = options.__r; | ||
options.__r = function(n) { | ||
Q && Q(n); | ||
}; | ||
var jsx$1; | ||
var r = require$$0, _ = 0; | ||
function e(e2, o2, n, t2, l2) { | ||
var u2, f2, i2 = {}; | ||
for (f2 in o2) | ||
f2 == "ref" ? u2 = o2[f2] : i2[f2] = o2[f2]; | ||
var p = { type: e2, props: i2, key: n, ref: u2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --_, __source: l2, __self: t2 }; | ||
if (typeof e2 == "function" && (u2 = e2.defaultProps)) | ||
for (f2 in u2) | ||
i2[f2] === void 0 && (i2[f2] = u2[f2]); | ||
return r.options.vnode && r.options.vnode(p), p; | ||
} | ||
jsx$1 = e; | ||
const jsx = jsx$1; | ||
import { useEffect } from "preact/compat"; | ||
import { jsx } from "preact/jsx-runtime"; | ||
function Giscus({ | ||
@@ -267,3 +18,3 @@ id, | ||
}) { | ||
y(() => { | ||
useEffect(() => { | ||
import("./giscus.es2.js"); | ||
@@ -270,0 +21,0 @@ }, []); |
{ | ||
"name": "@giscus/preact", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"main": "dist/giscus.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/giscus.es.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
39744
1039