azion
Version:
Azion Packages for Edge Computing.
2 lines (1 loc) • 1.7 kB
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("path"),t=require("url");var s=typeof document<"u"?document.currentScript:null;const n=t.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("index.cjs",document.baseURI).href),l=o.dirname(n),r=()=>o.resolve(l,"../../","unenv-preset","src"),e=`${r()}/polyfills`,a={inject:{__dirname:`${e}/node/globals/path-dirname.js`,__filename:`${e}/node/globals/path-filename.js`,process:`${e}/node/globals/process.cjs`,performance:"unenv/polyfill/performance",setInterval:`${e}/node/globals/set-interval.js`,clearInterval:`${e}/node/globals/clear-interval.js`,console:`${e}/node/globals/console.js`,asyncStorage:`${e}/node/globals/async-storage.js`,dateToString:`${e}/node/globals/date-to-string.js`},alias:{"azion/utils":"azion/utils","azion/utils/edge":"azion/utils/edge","azion/utils/node":"azion/utils/node","@fastly/http-compute-js":"@fastly/http-compute-js",accepts:"accepts",assert:"assert-browserify",buffer:`${e}/node/buffer.js`,https:`${e}/node/https.js`,module:`${e}/node/module.js`,string_decoder:"string_decoder/lib/string_decoder.js",timers:"timers-browserify/",util:`${e}/node/util.js`,zlib:`${e}/node/zlib.js`},external:["node:async_hooks","node:fs/promises","node:stream","node:crypto"],polyfill:["aziondev:async_hooks:/async-hooks/async-hooks.polyfills.js","aziondev:fs:/fs/fs.polyfills.js","aziondev:fs/promises:/fs/promises/promises.polyfills.js","aziondev:stream:/stream/stream.polyfills.js","aziondev:crypto:/crypto/crypto.polyfills.js","azionprd:fs:/fs.js"]};exports.default=a;