New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hyperdart/backend

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperdart/backend - npm Package Compare versions

Comparing version

to
2.0.1

2

dist/index.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=[];exports.createDartFrame=(n,e)=>{const o=n&&n.client&&n.client.location||"index.umd.js",i=n&&n.client&&n.client.cdn_libraries||t,r=n&&n.client&&n.client.moduleName||"HDTestComponent",a=n&&n.name||"hd-test-component",c=n&&n.client&&n.client.baseURL||`/${a}`,s=n&&n.client&&n.client.basePath,l=n&&n.client&&n.client.cdn_libraries_esm||[],d=n&&n.client&&n.client.frontendVersionTwoOrAbove||"true",p=i&&i.length?i.reduce(((t,n)=>`\n\t\t${t}\n\t\t${(t=>t.endsWith(".js")?`<script src="${t}" crossorigin><\/script>`:t.endsWith(".css")?`<link rel="stylesheet" href="${t}">`:"")(n)}\n\t\t`),""):"",m=s?`${s}${c}/${o}`:o,h=l&&l.length&&l.reduce(((t,{name:n,url:e})=>(t[n]=e,t)),{}),u=l&&l.length?`<script type="importmap">\n\t{\n\t"imports": ${JSON.stringify(h,null,2)}\n }\n\t<\/script>`:"",$="false"===d?`<script defer src="${m}"><\/script>`:`<script defer type="module" src="${m}"><\/script>`,O=JSON.stringify(e&&e[0]);return`\n\t<!DOCTYPE html>\n\t<html lang="en">\n\t<head>\n\t\t<script>\n\t\t\ttry {\n\t\t\t\tif (window.parent !== window) {\n\t\t\t\twindow.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(err) {\n\t\t\t\tconsole.log('Error setting dev tools hook', err)\n\t\t\t}\n\t\t<\/script>\n\t\t<meta charset="utf-8" />\n\t\t<meta\n\t\t name="viewport"\n\t\t content="width=device-width, initial-scale=1, shrink-to-fit=no"\n\t />\n\t\t<meta name="theme-color" content="#000000" />\n\t\t<title>${r}</title>\n\t\t${u}\n\t\t${p}\n\t\t${$}\n\t\n\t</head>\n\t<body>\t\n\t\t<noscript>\n\t\t\tYou need to enable JavaScript to run this app.\n\t\t</noscript>\n\t\t<div id="root"></div>\n\t\t<script type="module">\n\t\t\tlet root; // Declare root to use it across function calls\t\t\t\n\t\t\t\t${"false"===d?`\n\t\t\t\t\tfunction loadComponent(searchData, UIOptions) {\n\t\t\t\t\t\tconst container = document.getElementById('root');\n\t\t\t\t\t\tif (!root) {\n\t\t\t\t\t\t\troot = ReactDOM.createRoot(container);\n\t\t\t\t\t\t}\n\t\t\t\t\t\troot.render(\n\t\t\t\t\t\t\tReact.createElement(window['${r}'], {\n\t\t\t\t\t\t\t\tsearchData,\n\t\t\t\t\t\t\t\tUIOptions,\n\t\t\t\t\t\t\t\tbasename: location.pathname.includes('${c}') ? location.pathname.slice(0, location.pathname.indexOf('${c}')) : '',\n\t\t\t\t\t\t\t\tbaseURL: '${c}',\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tloadComponent(${O});\n\t\t\t\t\twindow.addEventListener('message', (e) => {\n\t\t\t\t\t\tif (e.data.type === "dataRefresh") {\n\t\t\t\t\t\t\tloadComponent(e.data.searchData && e.data.searchData[0], e.data.UIOptions);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t`:""}\n\n\t\t<\/script>\n\t</body>\n\t</html>\n\t`};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=["https://unpkg.com/react@17.0.2/umd/react.production.min.js","https://unpkg.com/react-dom@17.0.2/umd/react-dom.production.min.js","https://unpkg.com/@material-ui/core@4.12.4/umd/material-ui.production.min.js"];exports.createDartFrame=(n,e)=>{const o=n&&n.client&&n.client.location||"index.umd.js",r=n&&n.client&&n.client.moduleName||"HDTestComponent",i=n&&n.name||"hd-test-component",a=n&&n.client&&n.client.baseURL||`/${i}`,c=n&&n.client&&n.client.basePath,s=n&&n.client&&n.client.cdn_libraries_esm||[],l=n&&n.client&&n.client.frontendVersionTwoOrAbove||"true";let d;d="false"===l?n&&n.client&&n.client.cdn_libraries||t:n&&n.client&&n.client.cdn_libraries||[];const p=d&&d.length?d.reduce(((t,n)=>`\n\t\t${t}\n\t\t${(t=>t.endsWith(".js")?`<script src="${t}" crossorigin><\/script>`:t.endsWith(".css")?`<link rel="stylesheet" href="${t}">`:"")(n)}\n\t\t`),""):"",m=c?`${c}${a}/${o}`:o,h=s&&s.length&&s.reduce(((t,{name:n,url:e})=>(t[n]=e,t)),{}),u=s&&s.length?`<script type="importmap">\n\t{\n\t"imports": ${JSON.stringify(h,null,2)}\n }\n\t<\/script>`:"",O="false"===l?`<script defer src="${m}"><\/script>`:`<script defer type="module" src="${m}"><\/script>`,f=JSON.stringify(e&&e[0]);return`\n\t<!DOCTYPE html>\n\t<html lang="en">\n\t<head>\n\t\t<script>\n\t\t\ttry {\n\t\t\t\tif (window.parent !== window) {\n\t\t\t\twindow.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(err) {\n\t\t\t\tconsole.log('Error setting dev tools hook', err)\n\t\t\t}\n\t\t<\/script>\n\t\t<meta charset="utf-8" />\n\t\t<meta\n\t\t name="viewport"\n\t\t content="width=device-width, initial-scale=1, shrink-to-fit=no"\n\t />\n\t\t<meta name="theme-color" content="#000000" />\n\t\t<title>${r}</title>\n\t\t${u}\n\t\t${p}\n\t\t${O}\n\t\n\t</head>\n\t<body>\t\n\t\t<noscript>\n\t\t\tYou need to enable JavaScript to run this app.\n\t\t</noscript>\n\t\t<div id="root"></div>\n\t\t<script type="module">\n\t\t\tlet root; // Declare root to use it across function calls\t\t\t\n\t\t\t\t${"false"===l?`\n\t\t\t\t const container = document.getElementById('root');\n\t\t\t\t\tconst resizeObserver = new ResizeObserver((entries) => {\n\t\t\t\t\twindow.parent.postMessage({type: 'resizeIframe', height: entries[0].target.clientHeight}, '*')\n\t\t\t\t})\n\t\t\t\t\tresizeObserver.observe(container)\n\t\t\t\t\tfunction loadComponent(searchData, UIOptions) {\n\t\t\t\t\t\tconst Component = React.createElement(\n\t\t\t\t\t\t\t\t\t\t\twindow['${r}'],\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tsearchData,\n\t\t\t\t\t\t\t\t\t\t\t\tUIOptions,\n\t\t\t\t\t\t\t\t\t\t\t\tbasename: location.pathname.indexOf('${a}') < 0 ? '' : location.pathname.slice(0, location.pathname.indexOf('${a}')),\n\t\t\t\t\t\t\t\t\t\t\t\tbaseURL: '${a}'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (ReactDOM.createRoot) {\n\t\t\t\t\t\t\t\t// For React 18 and above\n\t\t\t\t\t\t\t\tif (!root) {\n\t\t\t\t\t\t\t\t\t// Create root only once\n\t\t\t\t\t\t\t\t\tconsole.log('React 18 and above');\n\t\t\t\t\t\t\t\t\troot = ReactDOM.createRoot(container);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\troot.render(Component);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// For React 17 and below\n\t\t\t\t\t\t\t\tconsole.log('React 17 and below');\n\t\t\t\t\t\t\t\tReactDOM.render(Component, container);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\tloadComponent(${f});\n\t\t\t\t\twindow.addEventListener('message', (e) => {\n\t\t\t\t\t\tif (e.data.type === "dataRefresh") {\n\t\t\t\t\t\t\tloadComponent(e.data.searchData && e.data.searchData[0], e.data.UIOptions);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t`:""}\n\n\t\t<\/script>\n\t</body>\n\t</html>\n\t`};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

const t=[];var n=(n,e)=>{const o=n&&n.client&&n.client.location||"index.umd.js",i=n&&n.client&&n.client.cdn_libraries||t,a=n&&n.client&&n.client.moduleName||"HDTestComponent",r=n&&n.name||"hd-test-component",c=n&&n.client&&n.client.baseURL||`/${r}`,s=n&&n.client&&n.client.basePath,l=n&&n.client&&n.client.cdn_libraries_esm||[],d=n&&n.client&&n.client.frontendVersionTwoOrAbove||"true",p=i&&i.length?i.reduce(((t,n)=>`\n\t\t${t}\n\t\t${(t=>t.endsWith(".js")?`<script src="${t}" crossorigin><\/script>`:t.endsWith(".css")?`<link rel="stylesheet" href="${t}">`:"")(n)}\n\t\t`),""):"",m=s?`${s}${c}/${o}`:o,h=l&&l.length&&l.reduce(((t,{name:n,url:e})=>(t[n]=e,t)),{}),$=l&&l.length?`<script type="importmap">\n\t{\n\t"imports": ${JSON.stringify(h,null,2)}\n }\n\t<\/script>`:"",O="false"===d?`<script defer src="${m}"><\/script>`:`<script defer type="module" src="${m}"><\/script>`,u=JSON.stringify(e&&e[0]);return`\n\t<!DOCTYPE html>\n\t<html lang="en">\n\t<head>\n\t\t<script>\n\t\t\ttry {\n\t\t\t\tif (window.parent !== window) {\n\t\t\t\twindow.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(err) {\n\t\t\t\tconsole.log('Error setting dev tools hook', err)\n\t\t\t}\n\t\t<\/script>\n\t\t<meta charset="utf-8" />\n\t\t<meta\n\t\t name="viewport"\n\t\t content="width=device-width, initial-scale=1, shrink-to-fit=no"\n\t />\n\t\t<meta name="theme-color" content="#000000" />\n\t\t<title>${a}</title>\n\t\t${$}\n\t\t${p}\n\t\t${O}\n\t\n\t</head>\n\t<body>\t\n\t\t<noscript>\n\t\t\tYou need to enable JavaScript to run this app.\n\t\t</noscript>\n\t\t<div id="root"></div>\n\t\t<script type="module">\n\t\t\tlet root; // Declare root to use it across function calls\t\t\t\n\t\t\t\t${"false"===d?`\n\t\t\t\t\tfunction loadComponent(searchData, UIOptions) {\n\t\t\t\t\t\tconst container = document.getElementById('root');\n\t\t\t\t\t\tif (!root) {\n\t\t\t\t\t\t\troot = ReactDOM.createRoot(container);\n\t\t\t\t\t\t}\n\t\t\t\t\t\troot.render(\n\t\t\t\t\t\t\tReact.createElement(window['${a}'], {\n\t\t\t\t\t\t\t\tsearchData,\n\t\t\t\t\t\t\t\tUIOptions,\n\t\t\t\t\t\t\t\tbasename: location.pathname.includes('${c}') ? location.pathname.slice(0, location.pathname.indexOf('${c}')) : '',\n\t\t\t\t\t\t\t\tbaseURL: '${c}',\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tloadComponent(${u});\n\t\t\t\t\twindow.addEventListener('message', (e) => {\n\t\t\t\t\t\tif (e.data.type === "dataRefresh") {\n\t\t\t\t\t\t\tloadComponent(e.data.searchData && e.data.searchData[0], e.data.UIOptions);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t`:""}\n\n\t\t<\/script>\n\t</body>\n\t</html>\n\t`};export{n as createDartFrame};
const t=["https://unpkg.com/react@17.0.2/umd/react.production.min.js","https://unpkg.com/react-dom@17.0.2/umd/react-dom.production.min.js","https://unpkg.com/@material-ui/core@4.12.4/umd/material-ui.production.min.js"];var n=(n,e)=>{const o=n&&n.client&&n.client.location||"index.umd.js",r=n&&n.client&&n.client.moduleName||"HDTestComponent",i=n&&n.name||"hd-test-component",a=n&&n.client&&n.client.baseURL||`/${i}`,c=n&&n.client&&n.client.basePath,s=n&&n.client&&n.client.cdn_libraries_esm||[],l=n&&n.client&&n.client.frontendVersionTwoOrAbove||"true";let d;d="false"===l?n&&n.client&&n.client.cdn_libraries||t:n&&n.client&&n.client.cdn_libraries||[];const p=d&&d.length?d.reduce(((t,n)=>`\n\t\t${t}\n\t\t${(t=>t.endsWith(".js")?`<script src="${t}" crossorigin><\/script>`:t.endsWith(".css")?`<link rel="stylesheet" href="${t}">`:"")(n)}\n\t\t`),""):"",m=c?`${c}${a}/${o}`:o,h=s&&s.length&&s.reduce(((t,{name:n,url:e})=>(t[n]=e,t)),{}),u=s&&s.length?`<script type="importmap">\n\t{\n\t"imports": ${JSON.stringify(h,null,2)}\n }\n\t<\/script>`:"",O="false"===l?`<script defer src="${m}"><\/script>`:`<script defer type="module" src="${m}"><\/script>`,f=JSON.stringify(e&&e[0]);return`\n\t<!DOCTYPE html>\n\t<html lang="en">\n\t<head>\n\t\t<script>\n\t\t\ttry {\n\t\t\t\tif (window.parent !== window) {\n\t\t\t\twindow.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(err) {\n\t\t\t\tconsole.log('Error setting dev tools hook', err)\n\t\t\t}\n\t\t<\/script>\n\t\t<meta charset="utf-8" />\n\t\t<meta\n\t\t name="viewport"\n\t\t content="width=device-width, initial-scale=1, shrink-to-fit=no"\n\t />\n\t\t<meta name="theme-color" content="#000000" />\n\t\t<title>${r}</title>\n\t\t${u}\n\t\t${p}\n\t\t${O}\n\t\n\t</head>\n\t<body>\t\n\t\t<noscript>\n\t\t\tYou need to enable JavaScript to run this app.\n\t\t</noscript>\n\t\t<div id="root"></div>\n\t\t<script type="module">\n\t\t\tlet root; // Declare root to use it across function calls\t\t\t\n\t\t\t\t${"false"===l?`\n\t\t\t\t const container = document.getElementById('root');\n\t\t\t\t\tconst resizeObserver = new ResizeObserver((entries) => {\n\t\t\t\t\twindow.parent.postMessage({type: 'resizeIframe', height: entries[0].target.clientHeight}, '*')\n\t\t\t\t})\n\t\t\t\t\tresizeObserver.observe(container)\n\t\t\t\t\tfunction loadComponent(searchData, UIOptions) {\n\t\t\t\t\t\tconst Component = React.createElement(\n\t\t\t\t\t\t\t\t\t\t\twindow['${r}'],\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tsearchData,\n\t\t\t\t\t\t\t\t\t\t\t\tUIOptions,\n\t\t\t\t\t\t\t\t\t\t\t\tbasename: location.pathname.indexOf('${a}') < 0 ? '' : location.pathname.slice(0, location.pathname.indexOf('${a}')),\n\t\t\t\t\t\t\t\t\t\t\t\tbaseURL: '${a}'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (ReactDOM.createRoot) {\n\t\t\t\t\t\t\t\t// For React 18 and above\n\t\t\t\t\t\t\t\tif (!root) {\n\t\t\t\t\t\t\t\t\t// Create root only once\n\t\t\t\t\t\t\t\t\tconsole.log('React 18 and above');\n\t\t\t\t\t\t\t\t\troot = ReactDOM.createRoot(container);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\troot.render(Component);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// For React 17 and below\n\t\t\t\t\t\t\t\tconsole.log('React 17 and below');\n\t\t\t\t\t\t\t\tReactDOM.render(Component, container);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\tloadComponent(${f});\n\t\t\t\t\twindow.addEventListener('message', (e) => {\n\t\t\t\t\t\tif (e.data.type === "dataRefresh") {\n\t\t\t\t\t\t\tloadComponent(e.data.searchData && e.data.searchData[0], e.data.UIOptions);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t`:""}\n\n\t\t<\/script>\n\t</body>\n\t</html>\n\t`};export{n as createDartFrame};
//# sourceMappingURL=index.modern.js.map
{
"name": "@hyperdart/backend",
"version": "2.0.0",
"version": "2.0.1",
"description": "hyperDart backend for dart development",

@@ -5,0 +5,0 @@ "author": "hyperDart",