@blocz/mdx-live
Advanced tools
Comparing version 0.2.0-beta.1 to 0.2.0-beta.2
@@ -1,2 +0,2 @@ | ||
import*as e from"react";import*as r from"react/jsx-runtime.js";import{compile as t}from"@mdx-js/mdx";import{selectAll as n}from"unist-util-select";function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}function i(e,r){return i=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},i(e,r)}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function c(e,r,t){if(!e.s){if(t instanceof f){if(!t.s)return void(t.o=c.bind(null,e,r));1&r&&(r=t.s),t=t.v}if(t&&t.then)return void t.then(c.bind(null,e,r),c.bind(null,e,2));e.s=r,e.v=t;var n=e.o;n&&n(e)}}var a=function(){return Promise.resolve()};const f=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(r,t){const n=new e,o=this.s;if(o){const e=1&o?r:t;if(e){try{c(n,1,e(this.v))}catch(e){c(n,2,e)}return n}return this}return this.o=function(e){try{const o=e.v;1&e.s?c(n,1,r?r(o):o):t?c(n,1,t(o)):c(n,2,o)}catch(e){c(n,2,e)}},n},e}();var l="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function s(e){return e instanceof f&&1&e.s}function v(e,r,t){if("function"==typeof e[l]){var n,o,i,u=e[l]();if(function e(a){try{for(;!((n=u.next()).done||t&&t());)if((a=r(n.value))&&a.then){if(!s(a))return void a.then(e,i||(i=c.bind(null,o=new f,2)));a=a.v}o?c(o,1,a):o=a}catch(e){c(o||(o=new f),2,e)}}(),u.return){var a=function(e){try{n.done||u.return()}catch(e){}return e};if(o&&o.then)return o.then(a,function(e){throw a(e)});a()}return o}if(!("length"in e))throw new TypeError("Object is not iterable");for(var v=[],h=0;h<e.length;h++)v.push(e[h]);return function(e,r,t){var n,o,i=-1;return function u(a){try{for(;++i<e.length&&(!t||!t());)if((a=r(i))&&a.then){if(!s(a))return void a.then(u,o||(o=c.bind(null,n=new f,2)));a=a.v}n?c(n,1,a):n=a}catch(e){c(n||(n=new f),2,e)}}(),n}(v,function(e){return r(v[e])},t)}var h=function(r){var i=r.code,l=r.defaultScope,s=void 0===l?{}:l,h=r.resolveImport,p=void 0===h?a:h,m=r.recmaPlugins,d=r.rehypePlugins,y=r.remarkPlugins,g=e.useState(void 0),b=g[0],P=g[1],S=e.useRef(null),w=e.useRef(!1);e.useEffect(function(){return function(){w.current=!0}},[]);var k=e.useCallback(function(){if(S.current){var e,r,o=S.current;(e=o,r=[],t(e.code,{outputFormat:"function-body",recmaPlugins:e.recmaPlugins,rehypePlugins:e.rehypePlugins,remarkPlugins:[].concat(e.remarkPlugins||[],[function(){return function(e){try{for(var t,o=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n("mdxjsEsm",e));!(t=o()).done;)for(var i=t.value,c=i.data.estree.body,a=c.length-1;a>=0;a--){var f=c[a];"ImportDeclaration"===f.type&&(c.splice(a,1),i.value=i.value.substring(0,f.range[0]-1)+i.value.substring(f.range[1]-1),r.push(f))}return Promise.resolve()}catch(e){return Promise.reject(e)}}}])}).then(function(e){return[e,r]})).then(function(e){w.current||P(e)}).catch(function(e){console.error(e)}).then(function(){S.current===o&&(S.current=null),w.current||k()})}},[]);e.useMemo(function(){var e=null===S.current;S.current={code:i,recmaPlugins:m,rehypePlugins:d,remarkPlugins:y},e&&k()},[i,m,d,y]);var j=e.useState({}),x=j[0],E=j[1];return e.useEffect(function(){if(b){var e=!1;return function(){try{var r=function(){e||E(t)},t={},n=v(b[1],function(e){return v(e.specifiers,function(r){var n=function(e,r){var t,n=-1;e:{for(var o=0;o<r.length;o++){var i=r[o][0];if(i){var u=i();if(u&&u.then)break e;if(u===e){n=o;break}}else n=o}if(-1!==n){do{for(var a=r[n][1];!a;)n++,a=r[n][1];var l=a();if(l&&l.then){t=!0;break e}var s=r[n][2];n++}while(s&&!s());return l}}var v=new f,h=c.bind(null,v,2);return(t?l.then(p):u.then(function t(u){for(;;){if(u===e){n=o;break}if(++o===r.length){if(-1!==n)break;return void c(v,1,f)}if(i=r[o][0]){if((u=i())&&u.then)return void u.then(t).then(void 0,h)}else n=o}do{for(var a=r[n][1];!a;)n++,a=r[n][1];var f=a();if(f&&f.then)return void f.then(p).then(void 0,h);var l=r[n][2];n++}while(l&&!l());c(v,1,f)})).then(void 0,h),v;function p(e){for(;;){var t=r[n][2];if(!t||t())break;n++;for(var o=r[n][1];!o;)n++,o=r[n][1];if((e=o())&&e.then)return void e.then(p).then(void 0,h)}c(v,1,e)}}(r.type,[[function(){return"ImportNamespaceSpecifier"},function(){return Promise.resolve(p({kind:"namespace",path:e.source.value})).then(function(e){t[r.local.name]=e})}],[function(){return"ImportDefaultSpecifier"},function(){return Promise.resolve(p({kind:"default",path:e.source.value})).then(function(e){t[r.local.name]=e})}],[function(){return"ImportSpecifier"},function(){return Promise.resolve(p({kind:"named",path:e.source.value,variable:r.imported.name})).then(function(e){t[r.local.name]=e})}]]);if(n&&n.then)return n.then(function(){})})});Promise.resolve(n&&n.then?n.then(r):r())}catch(e){return Promise.reject(e)}}(),function(){e=!0}}},[p,b]),b?{scope:o({},s,x),text:b[0].toString()}:{scope:{},text:""}},p=function(r){return e.createElement(e.Fragment,null,r.children)},m=/*#__PURE__*/function(e){var r,t;function n(){for(var r,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(r=e.call.apply(e,[this].concat(n))||this).state={},r}t=e,(r=n).prototype=Object.create(t.prototype),r.prototype.constructor=r,i(r,t),n.getDerivedStateFromError=function(e){return{error:e}};var o=n.prototype;return o.componentDidUpdate=function(e){e.children!==this.props.children&&this.setState({error:void 0})},o.render=function(){var e=this.state.error;if(e){if(e.message.match(/Expected component `[^`]*?` to be defined: you likely forgot to import, pass, or provide it\./))return null;throw e}return this.props.children},n}(e.Component),d=function(t){var n=t.Provider,o=void 0===n?p:n,i=h({code:t.code,defaultScope:t.defaultScope,resolveImport:t.resolveImport,recmaPlugins:t.recmaPlugins,rehypePlugins:t.rehypePlugins,remarkPlugins:t.remarkPlugins}),u=i.scope,c=i.text,a=e.useMemo(function(){return c?new Function(c)(r).default:function(){return null}},[c]);return e.createElement(o,{value:{scope:u,text:c}},e.createElement(m,null,e.createElement(a,{components:u})))};export{d as MDX,h as useMDX}; | ||
import*as e from"react";import*as r from"react/jsx-runtime.js";import{compile as n}from"@mdx-js/mdx";import{selectAll as t}from"unist-util-select";function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},o.apply(this,arguments)}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function u(e,r,n){if(!e.s){if(n instanceof c){if(!n.s)return void(n.o=u.bind(null,e,r));1&r&&(r=n.s),n=n.v}if(n&&n.then)return void n.then(u.bind(null,e,r),u.bind(null,e,2));e.s=r,e.v=n;var t=e.o;t&&t(e)}}var a=function(){return Promise.resolve()};const c=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(r,n){const t=new e,o=this.s;if(o){const e=1&o?r:n;if(e){try{u(t,1,e(this.v))}catch(e){u(t,2,e)}return t}return this}return this.o=function(e){try{const o=e.v;1&e.s?u(t,1,r?r(o):o):n?u(t,1,n(o)):u(t,2,o)}catch(e){u(t,2,e)}},t},e}();var f="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function l(e){return e instanceof c&&1&e.s}function s(e,r,n){if("function"==typeof e[f]){var t,o,i,a=e[f]();if(function e(f){try{for(;!((t=a.next()).done||n&&n());)if((f=r(t.value))&&f.then){if(!l(f))return void f.then(e,i||(i=u.bind(null,o=new c,2)));f=f.v}o?u(o,1,f):o=f}catch(e){u(o||(o=new c),2,e)}}(),a.return){var s=function(e){try{t.done||a.return()}catch(e){}return e};if(o&&o.then)return o.then(s,function(e){throw s(e)});s()}return o}if(!("length"in e))throw new TypeError("Object is not iterable");for(var v=[],h=0;h<e.length;h++)v.push(e[h]);return function(e,r,n){var t,o,i=-1;return function a(f){try{for(;++i<e.length&&(!n||!n());)if((f=r(i))&&f.then){if(!l(f))return void f.then(a,o||(o=u.bind(null,t=new c,2)));f=f.v}t?u(t,1,f):t=f}catch(e){u(t||(t=new c),2,e)}}(),t}(v,function(e){return r(v[e])},n)}var v=function(r){var f=r.code,l=r.defaultScope,v=void 0===l?{}:l,h=r.resolveImport,m=void 0===h?a:h,d=r.recmaPlugins,p=r.rehypePlugins,y=r.remarkPlugins,g=e.useState(void 0),b=g[0],P=g[1],S=e.useRef(null),k=e.useRef(!1);e.useEffect(function(){return function(){k.current=!0}},[]);var w=e.useCallback(function(){if(S.current){var e,r,o=S.current;(e=o,r=[],n(e.code,{outputFormat:"function-body",recmaPlugins:e.recmaPlugins,rehypePlugins:e.rehypePlugins,remarkPlugins:[].concat(e.remarkPlugins||[],[function(){return function(e){try{for(var n,o=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return i(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,r):void 0}}(e))){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t("mdxjsEsm",e));!(n=o()).done;)for(var u=n.value,a=u.data.estree.body,c=a.length-1;c>=0;c--){var f=a[c];"ImportDeclaration"===f.type&&(a.splice(c,1),u.value=u.value.substring(0,f.range[0]-1)+u.value.substring(f.range[1]-1),r.push(f))}return Promise.resolve()}catch(e){return Promise.reject(e)}}}])}).then(function(e){return[e,r]})).then(function(e){k.current||P(e)}).catch(function(e){console.error(e)}).then(function(){S.current===o&&(S.current=null),k.current||w()})}},[]);e.useMemo(function(){var e=null===S.current;S.current={code:f,recmaPlugins:d,rehypePlugins:p,remarkPlugins:y},e&&w()},[f,d,p,y]);var j=e.useRef();j.current||(j.current=new WeakSet);var x=e.useState({}),I=x[0],E=x[1];return e.useEffect(function(){if(b){var e=!1;return function(){try{var r=function(){e||(j.current.add(b),E(n))},n={},t=s(b[1],function(e){return s(e.specifiers,function(r){var t=function(e,r){var n,t=-1;e:{for(var o=0;o<r.length;o++){var i=r[o][0];if(i){var a=i();if(a&&a.then)break e;if(a===e){t=o;break}}else t=o}if(-1!==t){do{for(var f=r[t][1];!f;)t++,f=r[t][1];var l=f();if(l&&l.then){n=!0;break e}var s=r[t][2];t++}while(s&&!s());return l}}var v=new c,h=u.bind(null,v,2);return(n?l.then(m):a.then(function n(a){for(;;){if(a===e){t=o;break}if(++o===r.length){if(-1!==t)break;return void u(v,1,f)}if(i=r[o][0]){if((a=i())&&a.then)return void a.then(n).then(void 0,h)}else t=o}do{for(var c=r[t][1];!c;)t++,c=r[t][1];var f=c();if(f&&f.then)return void f.then(m).then(void 0,h);var l=r[t][2];t++}while(l&&!l());u(v,1,f)})).then(void 0,h),v;function m(e){for(;;){var n=r[t][2];if(!n||n())break;t++;for(var o=r[t][1];!o;)t++,o=r[t][1];if((e=o())&&e.then)return void e.then(m).then(void 0,h)}u(v,1,e)}}(r.type,[[function(){return"ImportNamespaceSpecifier"},function(){return Promise.resolve(m({kind:"namespace",path:e.source.value})).then(function(e){n[r.local.name]=e})}],[function(){return"ImportDefaultSpecifier"},function(){return Promise.resolve(m({kind:"default",path:e.source.value})).then(function(e){n[r.local.name]=e})}],[function(){return"ImportSpecifier"},function(){return Promise.resolve(m({kind:"named",path:e.source.value,variable:r.imported.name})).then(function(e){n[r.local.name]=e})}]]);if(t&&t.then)return t.then(function(){})})});Promise.resolve(t&&t.then?t.then(r):r())}catch(e){return Promise.reject(e)}}(),function(){e=!0}}},[m,b]),b?{scope:o({},v,I),text:b[0].toString(),isReady:j.current.has(b)}:{scope:{},text:"",isReady:!1}},h=function(r){return e.createElement(e.Fragment,null,r.children)},m=function(n){var t=n.Provider,o=void 0===t?h:t,i=v({code:n.code,defaultScope:n.defaultScope,resolveImport:n.resolveImport,recmaPlugins:n.recmaPlugins,rehypePlugins:n.rehypePlugins,remarkPlugins:n.remarkPlugins}),u=i.scope,a=i.text,c=i.isReady,f=e.useMemo(function(){return a?new Function(a)(r).default:function(){return null}},[a]);return c?e.createElement(o,{value:{scope:u,text:a,isReady:c}},e.createElement(f,{components:u})):null};export{m as MDX,v as useMDX}; | ||
//# sourceMappingURL=mdx-live.js.map |
@@ -1,2 +0,2 @@ | ||
import*as e from"react";import*as r from"react/jsx-runtime.js";import{compile as t}from"@mdx-js/mdx";import{selectAll as n}from"unist-util-select";function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}const s=async()=>{},c=({code:r,defaultScope:c={},resolveImport:a=s,recmaPlugins:u,rehypePlugins:l,remarkPlugins:i})=>{const[p,m]=e.useState(void 0),f=e.useRef(null),d=e.useRef(!1);e.useEffect(()=>()=>{d.current=!0},[]);const g=e.useCallback(()=>{if(!f.current)return;const e=f.current;(function({code:e,recmaPlugins:r,rehypePlugins:o,remarkPlugins:s}){const c=[];return t(e,{outputFormat:"function-body",recmaPlugins:r,rehypePlugins:o,remarkPlugins:[...s||[],()=>async e=>{const r=n("mdxjsEsm",e);for(const e of r){const r=e.data.estree.body;for(let t=r.length-1;t>=0;t--){const n=r[t];"ImportDeclaration"===n.type&&(r.splice(t,1),e.value=e.value.substring(0,n.range[0]-1)+e.value.substring(n.range[1]-1),c.push(n))}}}]}).then(e=>[e,c])})(e).then(e=>{d.current||m(e)}).catch(e=>{console.error(e)}).then(()=>{f.current===e&&(f.current=null),d.current||g()})},[]);e.useMemo(()=>{const e=null===f.current;f.current={code:r,recmaPlugins:u,rehypePlugins:l,remarkPlugins:i},e&&g()},[r,u,l,i]);const[h,P]=e.useState({});return e.useEffect(()=>{if(!p)return;let e=!1;return(async()=>{const r={};for(const e of p[1])for(const t of e.specifiers)switch(t.type){case"ImportNamespaceSpecifier":r[t.local.name]=await a({kind:"namespace",path:e.source.value});break;case"ImportDefaultSpecifier":r[t.local.name]=await a({kind:"default",path:e.source.value});break;case"ImportSpecifier":r[t.local.name]=await a({kind:"named",path:e.source.value,variable:t.imported.name})}e||P(r)})(),()=>{e=!0}},[a,p]),p?{scope:o({},c,h),text:p[0].toString()}:{scope:{},text:""}},a=({children:r})=>e.createElement(e.Fragment,null,r);class u extends e.Component{constructor(...e){super(...e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidUpdate(e){e.children!==this.props.children&&this.setState({error:void 0})}render(){const{error:e}=this.state;if(e){if(e.message.match(/Expected component `[^`]*?` to be defined: you likely forgot to import, pass, or provide it\./))return null;throw e}return this.props.children}}const l=({Provider:t=a,code:n,defaultScope:o,resolveImport:s,recmaPlugins:l,rehypePlugins:i,remarkPlugins:p})=>{const{scope:m,text:f}=c({code:n,defaultScope:o,resolveImport:s,recmaPlugins:l,rehypePlugins:i,remarkPlugins:p}),d=e.useMemo(()=>f?new Function(f)(r).default:()=>null,[f]);return e.createElement(t,{value:{scope:m,text:f}},e.createElement(u,null,e.createElement(d,{components:m})))};export{l as MDX,c as useMDX}; | ||
import*as e from"react";import*as r from"react/jsx-runtime.js";import{compile as t}from"@mdx-js/mdx";import{selectAll as n}from"unist-util-select";function s(){return s=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s.apply(this,arguments)}const a=async()=>{},c=({code:r,defaultScope:c={},resolveImport:o=a,recmaPlugins:u,rehypePlugins:l,remarkPlugins:i})=>{const[m,p]=e.useState(void 0),f=e.useRef(null),d=e.useRef(!1);e.useEffect(()=>()=>{d.current=!0},[]);const g=e.useCallback(()=>{if(!f.current)return;const e=f.current;(function({code:e,recmaPlugins:r,rehypePlugins:s,remarkPlugins:a}){const c=[];return t(e,{outputFormat:"function-body",recmaPlugins:r,rehypePlugins:s,remarkPlugins:[...a||[],()=>async e=>{const r=n("mdxjsEsm",e);for(const e of r){const r=e.data.estree.body;for(let t=r.length-1;t>=0;t--){const n=r[t];"ImportDeclaration"===n.type&&(r.splice(t,1),e.value=e.value.substring(0,n.range[0]-1)+e.value.substring(n.range[1]-1),c.push(n))}}}]}).then(e=>[e,c])})(e).then(e=>{d.current||p(e)}).catch(e=>{console.error(e)}).then(()=>{f.current===e&&(f.current=null),d.current||g()})},[]);e.useMemo(()=>{const e=null===f.current;f.current={code:r,recmaPlugins:u,rehypePlugins:l,remarkPlugins:i},e&&g()},[r,u,l,i]);const h=e.useRef();h.current||(h.current=new WeakSet);const[y,P]=e.useState({});return e.useEffect(()=>{if(!m)return;let e=!1;return(async()=>{const r={};for(const e of m[1])for(const t of e.specifiers)switch(t.type){case"ImportNamespaceSpecifier":r[t.local.name]=await o({kind:"namespace",path:e.source.value});break;case"ImportDefaultSpecifier":r[t.local.name]=await o({kind:"default",path:e.source.value});break;case"ImportSpecifier":r[t.local.name]=await o({kind:"named",path:e.source.value,variable:t.imported.name})}e||(h.current.add(m),P(r))})(),()=>{e=!0}},[o,m]),m?{scope:s({},c,y),text:m[0].toString(),isReady:h.current.has(m)}:{scope:{},text:"",isReady:!1}},o=({children:r})=>e.createElement(e.Fragment,null,r),u=({Provider:t=o,code:n,defaultScope:s,resolveImport:a,recmaPlugins:u,rehypePlugins:l,remarkPlugins:i})=>{const{scope:m,text:p,isReady:f}=c({code:n,defaultScope:s,resolveImport:a,recmaPlugins:u,rehypePlugins:l,remarkPlugins:i}),d=e.useMemo(()=>p?new Function(p)(r).default:()=>null,[p]);return f?e.createElement(t,{value:{scope:m,text:p,isReady:f}},e.createElement(d,{components:m})):null};export{u as MDX,c as useMDX}; | ||
//# sourceMappingURL=mdx-live.modern.js.map |
@@ -28,3 +28,4 @@ import type { CompileOptions } from "@mdx-js/mdx"; | ||
text: string; | ||
isReady: boolean; | ||
} | ||
export declare const useMDX: ({ code, defaultScope, resolveImport, recmaPlugins, rehypePlugins, remarkPlugins, }: UseMDXParams) => UseMDXOut; |
{ | ||
"name": "@blocz/mdx-live", | ||
"version": "0.2.0-beta.1", | ||
"version": "0.2.0-beta.2", | ||
"source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "main": "lib/mdx-live.js", |
@@ -15,2 +15,8 @@ # `@blocz/mdx-live` | ||
## ESM | ||
⚠️ This package is only published as an ESM package, it doesn't provide any CJS exports. | ||
The reason behind this is because MDX switch to ESM only in their v2 too (see https://mdxjs.com/migrating/v2/#esm).\ | ||
And as you'll also need regular MDX packages to make this one work, we also switched to ESM. | ||
## How to use | ||
@@ -17,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
144
2
40614
101