quantumcoin 7.0.10 → 7.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-SDK.md +16 -5
- package/README.md +14 -3
- package/config.js +10 -2
- package/examples/example.js +0 -5
- package/examples/example.ts +0 -5
- package/examples/node_modules/.bin/esbuild +16 -0
- package/examples/node_modules/.bin/esbuild.cmd +17 -0
- package/examples/node_modules/.bin/esbuild.ps1 +28 -0
- package/examples/node_modules/.bin/sdkgen +16 -0
- package/examples/node_modules/.bin/sdkgen.cmd +17 -0
- package/examples/node_modules/.bin/sdkgen.ps1 +28 -0
- package/examples/node_modules/.bin/tsx +16 -0
- package/examples/node_modules/.bin/tsx.cmd +17 -0
- package/examples/node_modules/.bin/tsx.ps1 +28 -0
- package/examples/node_modules/.package-lock.json +144 -0
- package/examples/node_modules/@esbuild/win32-x64/README.md +3 -0
- package/examples/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
- package/examples/node_modules/@esbuild/win32-x64/package.json +20 -0
- package/examples/node_modules/esbuild/LICENSE.md +21 -0
- package/examples/node_modules/esbuild/README.md +3 -0
- package/examples/node_modules/esbuild/bin/esbuild +223 -0
- package/examples/node_modules/esbuild/install.js +289 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2532 -0
- package/examples/node_modules/esbuild/package.json +49 -0
- package/examples/node_modules/get-tsconfig/LICENSE +21 -0
- package/examples/node_modules/get-tsconfig/README.md +235 -0
- package/examples/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/examples/node_modules/get-tsconfig/dist/index.d.cts +2088 -0
- package/examples/node_modules/get-tsconfig/dist/index.d.mts +2088 -0
- package/examples/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/examples/node_modules/get-tsconfig/package.json +46 -0
- package/examples/node_modules/quantum-coin-js-sdk/LICENSE +21 -0
- package/examples/node_modules/quantum-coin-js-sdk/LICENSE-wasm_exec.js.txt +30 -0
- package/examples/node_modules/quantum-coin-js-sdk/README.md +1675 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/README.md +14 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/conversion-example.js +19 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-create-contract.js +396 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-encode-decode-rlp.js +225 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-event-pack-unpack.js +391 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-misc.js +101 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-rpc-send-signRawTransaction.js +318 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-rpc-send.js +116 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-send.js +70 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-token-pack-unpack.js +961 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-wallet-version4.js +35 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-wallet.js +43 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example.js +405 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/package-lock.json +134 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/package.json +15 -0
- package/examples/node_modules/quantum-coin-js-sdk/index.d.ts +1031 -0
- package/examples/node_modules/quantum-coin-js-sdk/index.js +3144 -0
- package/examples/node_modules/quantum-coin-js-sdk/package.json +34 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/encrypted-32.json +1 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/encrypted-36.json +1 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/encrypted-48.json +1 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/generate-verify-vectors.js +91 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/non-transactional.preinit.test.js +41 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/non-transactional.test.js +1389 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/sign-raw-keytype5-context-null.test.js +107 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/sign-raw-transaction.test.js +196 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/sign-verify.test.js +311 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/transactional.relay.test.js +131 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/transactional.rpc.test.js +103 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/verify-vectors.json +95035 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasmBase64.d.ts +9 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasmBase64.js +16 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasm_exec.d.ts +0 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasm_exec.js +587 -0
- package/examples/node_modules/resolve-pkg-maps/LICENSE +21 -0
- package/examples/node_modules/resolve-pkg-maps/README.md +216 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/examples/node_modules/resolve-pkg-maps/package.json +42 -0
- package/examples/node_modules/seed-words/.github/workflows/publish-npmjs.yaml +22 -0
- package/examples/node_modules/seed-words/BUILD.md +7 -0
- package/examples/node_modules/seed-words/LICENSE +121 -0
- package/examples/node_modules/seed-words/README.md +67 -0
- package/examples/node_modules/seed-words/dist/seedwords.d.ts +39 -0
- package/examples/node_modules/seed-words/package.json +27 -0
- package/examples/node_modules/seed-words/seedwords.js +315 -0
- package/examples/node_modules/seed-words/seedwords.txt +65536 -0
- package/examples/node_modules/seed-words/tsconfig.json +21 -0
- package/examples/node_modules/tsx/LICENSE +21 -0
- package/examples/node_modules/tsx/README.md +32 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.cjs +54 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +1 -0
- package/examples/node_modules/tsx/dist/client-D6NvIMSC.cjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.d.cts +35 -0
- package/examples/node_modules/tsx/dist/esm/api/index.d.mts +35 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.cjs +2 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +1 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +1 -0
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-BWFBUo6r.cjs +1 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-gckBtVBf.cjs +14 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +3 -0
- package/examples/node_modules/tsx/dist/loader.cjs +1 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-roYmp9jK.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-Dxt5kIHw.cjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.cjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.cjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-2sWVXuRQ.cjs +1 -0
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +4 -0
- package/examples/node_modules/tsx/dist/register-D46fvsV_.cjs +4 -0
- package/examples/node_modules/tsx/dist/repl.cjs +3 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-D4F1Lv60.cjs +1 -0
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/tsx/package.json +68 -0
- package/examples/offline-signing.js +0 -2
- package/examples/offline-signing.ts +0 -1
- package/examples/package-lock.json +422 -73
- package/examples/package.json +1 -1
- package/examples/wallet-offline.js +1 -9
- package/examples/wallet-offline.ts +1 -9
- package/generate-sdk.js +5 -7
- package/package.json +2 -2
- package/src/abi/interface.js +13 -7
- package/src/abi/js-abi-coder.js +23 -18
- package/src/constants.d.ts +0 -5
- package/src/constants.js +0 -7
- package/src/contract/contract-factory.js +9 -3
- package/src/contract/contract.js +9 -3
- package/src/errors/index.js +12 -0
- package/src/index.d.ts +0 -3
- package/src/providers/extra-providers.js +20 -6
- package/src/providers/json-rpc-provider.js +15 -5
- package/src/providers/provider.d.ts +0 -2
- package/src/providers/provider.js +1 -3
- package/src/utils/address.d.ts +0 -14
- package/src/utils/address.js +12 -49
- package/src/utils/hashing.d.ts +0 -6
- package/src/utils/hashing.js +8 -23
- package/src/utils/index.d.ts +0 -3
- package/src/utils/rlp.js +7 -4
- package/src/wallet/wallet.d.ts +7 -13
- package/src/wallet/wallet.js +136 -97
- package/test/security/malformed-input.test.js +295 -1
- package/test/unit/address-wallet.test.js +329 -129
- package/test/unit/address-wallet.test.ts +328 -128
- package/test/unit/hashing.test.js +0 -11
- package/test/unit/hashing.test.ts +0 -11
- package/test/unit/providers.test.js +3 -1
- package/test/unit/providers.test.ts +3 -1
- package/SPEC.md +0 -3845
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var Le=Object.defineProperty;var i=(e,t)=>Le(e,"name",{value:t,configurable:!0});import m from"node:path";import fe from"node:fs";import he from"node:module";import{resolveExports as Ee}from"resolve-pkg-maps";import xe from"fs";import Be from"os";import Ie from"path";function h(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}i(h,"slash");const K=i(e=>{const t=fe[e];return(s,...n)=>{const o=`${e}:${n.join(":")}`;let l=s==null?void 0:s.get(o);return l===void 0&&(l=Reflect.apply(t,fe,n),s==null||s.set(o,l)),l}},"cacheFs"),x=K("existsSync"),$e=K("readFileSync"),Q=K("statSync"),ae=i((e,t,s)=>{for(;;){const n=m.posix.join(e,t);if(x(s,n))return n;const o=m.dirname(e);if(o===e)return;e=o}},"findUp"),O=/^\.{1,2}(\/.*)?$/,H=i(e=>{const t=h(e);return O.test(t)?t:`./${t}`},"normalizeRelativePath");function Ue(e,t=!1){const s=e.length;let n=0,o="",l=0,u=16,f=0,r=0,g=0,b=0,w=0;function _(c,j){let y=0,T=0;for(;y<c;){let k=e.charCodeAt(n);if(k>=48&&k<=57)T=T*16+k-48;else if(k>=65&&k<=70)T=T*16+k-65+10;else if(k>=97&&k<=102)T=T*16+k-97+10;else break;n++,y++}return y<c&&(T=-1),T}i(_,"scanHexDigits");function v(c){n=c,o="",l=0,u=16,w=0}i(v,"setPosition");function p(){let c=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&R(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&R(e.charCodeAt(n)))for(n++;n<e.length&&R(e.charCodeAt(n));)n++;else return w=3,e.substring(c,n);let j=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&R(e.charCodeAt(n))){for(n++;n<e.length&&R(e.charCodeAt(n));)n++;j=n}else w=3;return e.substring(c,j)}i(p,"scanNumber");function L(){let c="",j=n;for(;;){if(n>=s){c+=e.substring(j,n),w=2;break}const y=e.charCodeAt(n);if(y===34){c+=e.substring(j,n),n++;break}if(y===92){if(c+=e.substring(j,n),n++,n>=s){w=2;break}switch(e.charCodeAt(n++)){case 34:c+='"';break;case 92:c+="\\";break;case 47:c+="/";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=`
|
|
2
|
+
`;break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:const k=_(4);k>=0?c+=String.fromCharCode(k):w=4;break;default:w=5}j=n;continue}if(y>=0&&y<=31)if(J(y)){c+=e.substring(j,n),w=2;break}else w=6;n++}return c}i(L,"scanString");function A(){if(o="",w=0,l=n,r=f,b=g,n>=s)return l=s,u=17;let c=e.charCodeAt(n);if(C(c)){do n++,o+=String.fromCharCode(c),c=e.charCodeAt(n);while(C(c));return u=15}if(J(c))return n++,o+=String.fromCharCode(c),c===13&&e.charCodeAt(n)===10&&(n++,o+=`
|
|
3
|
+
`),f++,g=n,u=14;switch(c){case 123:return n++,u=1;case 125:return n++,u=2;case 91:return n++,u=3;case 93:return n++,u=4;case 58:return n++,u=6;case 44:return n++,u=5;case 34:return n++,o=L(),u=10;case 47:const j=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<s&&!J(e.charCodeAt(n));)n++;return o=e.substring(j,n),u=12}if(e.charCodeAt(n+1)===42){n+=2;const y=s-1;let T=!1;for(;n<y;){const k=e.charCodeAt(n);if(k===42&&e.charCodeAt(n+1)===47){n+=2,T=!0;break}n++,J(k)&&(k===13&&e.charCodeAt(n)===10&&n++,f++,g=n)}return T||(n++,w=1),o=e.substring(j,n),u=13}return o+=String.fromCharCode(c),n++,u=16;case 45:if(o+=String.fromCharCode(c),n++,n===s||!R(e.charCodeAt(n)))return u=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=p(),u=11;default:for(;n<s&&D(c);)n++,c=e.charCodeAt(n);if(l!==n){switch(o=e.substring(l,n),o){case"true":return u=8;case"false":return u=9;case"null":return u=7}return u=16}return o+=String.fromCharCode(c),n++,u=16}}i(A,"scanNext");function D(c){if(C(c)||J(c))return!1;switch(c){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}i(D,"isUnknownContentCharacter");function B(){let c;do c=A();while(c>=12&&c<=15);return c}return i(B,"scanNextNonTrivia"),{setPosition:v,getPosition:i(()=>n,"getPosition"),scan:t?B:A,getToken:i(()=>u,"getToken"),getTokenValue:i(()=>o,"getTokenValue"),getTokenOffset:i(()=>l,"getTokenOffset"),getTokenLength:i(()=>n-l,"getTokenLength"),getTokenStartLine:i(()=>r,"getTokenStartLine"),getTokenStartCharacter:i(()=>l-b,"getTokenStartCharacter"),getTokenError:i(()=>w,"getTokenError")}}i(Ue,"createScanner");function C(e){return e===32||e===9}i(C,"isWhiteSpace");function J(e){return e===10||e===13}i(J,"isLineBreak");function R(e){return e>=48&&e<=57}i(R,"isDigit");var ce;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ce||(ce={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const N=200;new Array(N).fill(0).map((e,t)=>`
|
|
4
|
+
`+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>`\r
|
|
5
|
+
`+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>`
|
|
6
|
+
`+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>`\r
|
|
7
|
+
`+" ".repeat(t));var X;(function(e){e.DEFAULT={allowTrailingComma:!1}})(X||(X={}));function Re(e,t=[],s=X.DEFAULT){let n=null,o=[];const l=[];function u(r){Array.isArray(o)?o.push(r):n!==null&&(o[n]=r)}return i(u,"onValue"),Ne(e,{onObjectBegin:i(()=>{const r={};u(r),l.push(o),o=r,n=null},"onObjectBegin"),onObjectProperty:i(r=>{n=r},"onObjectProperty"),onObjectEnd:i(()=>{o=l.pop()},"onObjectEnd"),onArrayBegin:i(()=>{const r=[];u(r),l.push(o),o=r,n=null},"onArrayBegin"),onArrayEnd:i(()=>{o=l.pop()},"onArrayEnd"),onLiteralValue:u,onError:i((r,g,b)=>{t.push({error:r,offset:g,length:b})},"onError")},s),o[0]}i(Re,"parse$1");function Ne(e,t,s=X.DEFAULT){const n=Ue(e,!1),o=[];let l=0;function u(d){return d?()=>l===0&&d(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}i(u,"toNoArgVisit");function f(d){return d?F=>l===0&&d(F,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}i(f,"toOneArgVisit");function r(d){return d?F=>l===0&&d(F,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}i(r,"toOneArgVisitWithPath");function g(d){return d?()=>{l>0?l++:d(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(l=1)}:()=>!0}i(g,"toBeginVisit");function b(d){return d?()=>{l>0&&l--,l===0&&d(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}i(b,"toEndVisit");const w=g(t.onObjectBegin),_=r(t.onObjectProperty),v=b(t.onObjectEnd),p=g(t.onArrayBegin),L=b(t.onArrayEnd),A=r(t.onLiteralValue),D=f(t.onSeparator),B=u(t.onComment),c=f(t.onError),j=s&&s.disallowComments,y=s&&s.allowTrailingComma;function T(){for(;;){const d=n.scan();switch(n.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:j||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(d){case 12:case 13:j?k(10):B();break;case 16:k(1);break;case 15:case 14:break;default:return d}}}i(T,"scanNext");function k(d,F=[],W=[]){if(c(d),F.length+W.length>0){let $=n.getToken();for(;$!==17;){if(F.indexOf($)!==-1){T();break}else if(W.indexOf($)!==-1)break;$=T()}}}i(k,"handleError");function P(d){const F=n.getTokenValue();return d?A(F):(_(F),o.push(F)),T(),!0}i(P,"parseString");function V(){switch(n.getToken()){case 11:const d=n.getTokenValue();let F=Number(d);isNaN(F)&&(k(2),F=0),A(F);break;case 7:A(null);break;case 8:A(!0);break;case 9:A(!1);break;default:return!1}return T(),!0}i(V,"parseLiteral");function M(){return n.getToken()!==10?(k(3,[],[2,5]),!1):(P(!1),n.getToken()===6?(D(":"),T(),U()||k(4,[],[2,5])):k(5,[],[2,5]),o.pop(),!0)}i(M,"parseProperty");function z(){w(),T();let d=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(d||k(4,[],[]),D(","),T(),n.getToken()===2&&y)break}else d&&k(6,[],[]);M()||k(4,[],[2,5]),d=!0}return v(),n.getToken()!==2?k(7,[2],[]):T(),!0}i(z,"parseObject");function G(){p(),T();let d=!0,F=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(F||k(4,[],[]),D(","),T(),n.getToken()===4&&y)break}else F&&k(6,[],[]);d?(o.push(0),d=!1):o[o.length-1]++,U()||k(4,[],[4,5]),F=!0}return L(),d||o.pop(),n.getToken()!==4?k(8,[4],[]):T(),!0}i(G,"parseArray");function U(){switch(n.getToken()){case 3:return G();case 1:return z();case 10:return P(!0);default:return V()}}return i(U,"parseValue"),T(),n.getToken()===17?s.allowEmptyContent?!0:(k(4,[],[]),!1):U()?(n.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}i(Ne,"visit");var ge;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ge||(ge={}));var ke;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(ke||(ke={}));const Se=Re;var me;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(me||(me={}));const we=i((e,t)=>Se($e(t,e,"utf8")),"readJsonc"),ee=Symbol("implicitBaseUrl"),E="${configDir}",Pe=i(()=>{const{findPnpApi:e}=he;return e&&e(process.cwd())},"getPnpApi"),ne=i((e,t,s,n)=>{const o=`resolveFromPackageJsonPath:${e}:${t}:${s}`;if(n!=null&&n.has(o))return n.get(o);const l=we(e,n);if(!l)return;let u=t||"tsconfig.json";if(!s&&l.exports)try{const[f]=Ee(l.exports,t,["require","types"]);u=f}catch{return!1}else!t&&l.tsconfig&&(u=l.tsconfig);return u=m.join(e,"..",u),n==null||n.set(o,u),u},"resolveFromPackageJsonPath"),te="package.json",se="tsconfig.json",We=i((e,t,s)=>{let n=e;if(e===".."&&(n=m.join(n,se)),e[0]==="."&&(n=m.resolve(t,n)),m.isAbsolute(n)){if(x(s,n)){if(Q(s,n).isFile())return n}else if(!n.endsWith(".json")){const v=`${n}.json`;if(x(s,v))return v}return}const[o,...l]=e.split("/"),u=o[0]==="@"?`${o}/${l.shift()}`:o,f=l.join("/"),r=Pe();if(r){const{resolveRequest:v}=r;try{if(u===e){const p=v(m.join(u,te),t);if(p){const L=ne(p,f,!1,s);if(L&&x(s,L))return L}}else{let p;try{p=v(e,t,{extensions:[".json"]})}catch{p=v(m.join(e,se),t)}if(p)return p}}catch{}}const g=ae(m.resolve(t),m.join("node_modules",u),s);if(!g||!Q(s,g).isDirectory())return;const b=m.join(g,te);if(x(s,b)){const v=ne(b,f,!1,s);if(v===!1)return;if(v&&x(s,v)&&Q(s,v).isFile())return v}const w=m.join(g,f),_=w.endsWith(".json");if(!_){const v=`${w}.json`;if(x(s,v))return v}if(x(s,w)){if(Q(s,w).isDirectory()){const v=m.join(w,te);if(x(s,v)){const L=ne(v,"",!0,s);if(L&&x(s,L))return L}const p=m.join(w,se);if(x(s,p))return p}else if(_)return w}},"resolveExtendsPath"),le=i((e,t)=>H(m.relative(e,t)),"pathRelative"),de=["files","include","exclude"],S=i((e,t,s)=>{const n=m.join(t,s),o=m.relative(e,n);return h(o)||"./"},"resolveAndRelativize"),Je=i((e,t,s)=>{const n=m.relative(e,t);if(!n)return s;const o=s.startsWith("./")?s.slice(2):s;return h(`${n}/${o}`)},"prefixPattern"),Ve=i((e,t,s,n)=>{const o=We(e,t,n);if(!o)throw new Error(`File '${e}' not found.`);if(s.has(o))throw new Error(`Circularity detected while resolving configuration: ${o}`);s.add(o);const l=m.dirname(o),u=ve(o,n,s);delete u.references;const{compilerOptions:f}=u;if(f){const{baseUrl:r}=f;r&&!r.startsWith(E)&&(f.baseUrl=S(t,l,r));const{outDir:g}=f;g&&!g.startsWith(E)&&(f.outDir=S(t,l,g));const{declarationDir:b}=f;b&&!b.startsWith(E)&&(f.declarationDir=S(t,l,b));const{rootDir:w}=f;w&&!w.startsWith(E)&&(f.rootDir=S(t,l,w));const{rootDirs:_}=f;_&&(f.rootDirs=_.map(p=>p.startsWith(E)?p:S(t,l,p)));const{typeRoots:v}=f;v&&(f.typeRoots=v.map(p=>p.startsWith(E)?p:S(t,l,p)))}for(const r of de){const g=u[r];g&&(u[r]=g.map(b=>b.startsWith(E)?b:Je(t,l,b)))}return u},"resolveExtends"),be=["outDir","declarationDir"],ve=i((e,t,s=new Set)=>{let n;try{n=we(e,t)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof n!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);const o=m.dirname(e);if(n.compilerOptions){const{compilerOptions:l}=n;l.paths&&!l.baseUrl&&(l[ee]=o)}if(n.extends){const l=Array.isArray(n.extends)?n.extends:[n.extends];delete n.extends;for(const u of l.reverse()){const f=Ve(u,o,new Set(s),t),r={...f,...n,compilerOptions:{...f.compilerOptions,...n.compilerOptions}};f.watchOptions&&(r.watchOptions={...f.watchOptions,...n.watchOptions}),n=r}}if(n.compilerOptions){const{compilerOptions:l}=n,u=["baseUrl","rootDir"];for(const f of u){const r=l[f];if(r&&!r.startsWith(E)){const g=m.resolve(o,r),b=le(o,g);l[f]=b}}for(const f of be){let r=l[f];r&&(Array.isArray(n.exclude)||(n.exclude=be.map(g=>l[g]).filter(Boolean)),r.startsWith(E)||(r=H(r)),l[f]=r)}}else n.compilerOptions={};if(n.include&&(n.include=n.include.map(h)),n.files&&(n.files=n.files.map(l=>l.startsWith(E)?l:H(l))),n.watchOptions){const{watchOptions:l}=n;l.excludeDirectories&&(l.excludeDirectories=l.excludeDirectories.map(u=>h(m.resolve(o,u)))),l.excludeFiles&&(l.excludeFiles=l.excludeFiles.map(u=>h(m.resolve(o,u)))),l.watchFile&&(l.watchFile=l.watchFile.toLowerCase()),l.watchDirectory&&(l.watchDirectory=l.watchDirectory.toLowerCase()),l.fallbackPolling&&(l.fallbackPolling=l.fallbackPolling.toLowerCase())}return n},"_parseTsconfig"),Y=i((e,t)=>{if(e.startsWith(E))return h(m.join(t,e.slice(E.length)))},"interpolateConfigDir"),Me=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],ze=i(e=>{var t,s,n,o,l,u,f,r,g,b,w,_,v,p,L,A,D,B,c,j,y,T,k,P,V,M,z,G,U,d,F,W,$;if(e.strict){const a=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const I of a)e[I]===void 0&&(e[I]=!0)}if(e.composite&&((t=e.declaration)!=null||(e.declaration=!0),(s=e.incremental)!=null||(e.incremental=!0)),e.target){let a=e.target.toLowerCase();a==="es2015"&&(a="es6"),e.target=a,a==="esnext"&&((n=e.module)!=null||(e.module="es6"),(o=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(a==="es6"||a==="es2016"||a==="es2017"||a==="es2018"||a==="es2019"||a==="es2020"||a==="es2021"||a==="es2022"||a==="es2023"||a==="es2024")&&((l=e.module)!=null||(e.module="es6")),(a==="es2022"||a==="es2023"||a==="es2024")&&((u=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let a=e.module.toLowerCase();if(a==="es2015"&&(a="es6"),e.module=a,(a==="es6"||a==="es2020"||a==="es2022"||a==="esnext"||a==="none"||a==="system"||a==="umd"||a==="amd")&&((f=e.moduleResolution)!=null||(e.moduleResolution="classic")),a==="system"&&((r=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(a==="node16"||a==="node18"||a==="node20"||a==="nodenext"||a==="preserve")&&((g=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(b=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(a==="node16"||a==="node18"||a==="node20"||a==="nodenext")&&((w=e.moduleDetection)!=null||(e.moduleDetection="force")),a==="node16"&&((_=e.target)!=null||(e.target="es2022"),(v=e.moduleResolution)!=null||(e.moduleResolution="node16")),a==="node18"&&((p=e.target)!=null||(e.target="es2022"),(L=e.moduleResolution)!=null||(e.moduleResolution="node16")),a==="node20"&&((A=e.target)!=null||(e.target="es2023"),(D=e.moduleResolution)!=null||(e.moduleResolution="node16"),(B=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0)),a==="nodenext"&&((c=e.target)!=null||(e.target="esnext"),(j=e.moduleResolution)!=null||(e.moduleResolution="nodenext"),(y=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0)),a==="node16"||a==="node18"||a==="node20"||a==="nodenext"){const I=e.target;(I==="es3"||I==="es2022"||I==="es2023"||I==="es2024"||I==="esnext")&&((T=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}a==="preserve"&&((k=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let a=e.moduleResolution.toLowerCase();a==="node"&&(a="node10"),e.moduleResolution=a,(a==="node16"||a==="nodenext"||a==="bundler")&&((P=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(V=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),a==="bundler"&&((M=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(z=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.jsx&&(e.jsx=e.jsx.toLowerCase()),e.moduleDetection&&(e.moduleDetection=e.moduleDetection.toLowerCase()),e.importsNotUsedAsValues&&(e.importsNotUsedAsValues=e.importsNotUsedAsValues.toLowerCase()),e.newLine&&(e.newLine=e.newLine.toLowerCase()),e.esModuleInterop&&((G=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((U=e.isolatedModules)!=null||(e.isolatedModules=!0),(d=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((F=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.rewriteRelativeImportExtensions&&((W=e.allowImportingTsExtensions)!=null||(e.allowImportingTsExtensions=!0)),e.lib&&(e.lib=e.lib.map(a=>a.toLowerCase())),e.checkJs&&(($=e.allowJs)!=null||(e.allowJs=!0))},"normalizeCompilerOptions"),pe=i((e,t=new Map)=>{const s=m.resolve(e),n=ve(s,t),o=m.dirname(s),{compilerOptions:l}=n;if(l){for(const f of Me){const r=l[f];if(r){const g=Y(r,o);l[f]=g?le(o,g):r}}for(const f of["rootDirs","typeRoots"]){const r=l[f];r&&(l[f]=r.map(g=>{const b=Y(g,o);return b?le(o,b):H(g)}))}const{paths:u}=l;if(u)for(const f of Object.keys(u))u[f]=u[f].map(r=>{var g;return(g=Y(r,o))!=null?g:r});ze(l)}for(const u of de){const f=n[u];f&&(n[u]=f.map(r=>{var g;return(g=Y(r,o))!=null?g:r}))}return n},"parseTsconfig"),Ge=i((e=process.cwd(),t="tsconfig.json",s=new Map)=>{const n=ae(h(e),t,s);if(!n)return null;const o=pe(n,s);return{path:n,config:o}},"getTsconfig"),Qe=/\*/g,Te=i((e,t)=>{const s=e.match(Qe);if(s&&s.length>1)throw new Error(t)},"assertStarCount"),He=i(e=>{if(e.includes("*")){const[t,s]=e.split("*");return{prefix:t,suffix:s}}return e},"parsePattern"),Xe=i(({prefix:e,suffix:t},s)=>s.startsWith(e)&&s.endsWith(t),"isPatternMatch"),Ye=i((e,t,s)=>Object.entries(e).map(([n,o])=>(Te(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:He(n),substitutions:o.map(l=>{if(Te(l,`Substitution '${l}' in pattern '${n}' can have at most one '*' character.`),!t&&!O.test(l)&&!m.isAbsolute(l))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(s,l)})})),"parsePaths"),Ze=i(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:s,paths:n}=t;if(!s&&!n)return null;const o=ee in t&&t[ee],l=m.resolve(m.dirname(e.path),s||o||"."),u=n?Ye(n,s,l):[];return f=>{if(O.test(f))return[];const r=[];for(const _ of u){if(_.pattern===f)return _.substitutions.map(h);typeof _.pattern!="string"&&r.push(_)}let g,b=-1;for(const _ of r)Xe(_.pattern,f)&&_.pattern.prefix.length>b&&(b=_.pattern.prefix.length,g=_);if(!g)return s?[h(m.join(l,f))]:[];const w=f.slice(g.pattern.prefix.length,f.length-g.pattern.suffix.length);return g.substitutions.map(_=>h(_.replace("*",w)))}},"createPathsMatcher");var qe=Object.defineProperty,Z=i((e,t)=>qe(e,"name",{value:t,configurable:!0}),"s");const Ae=Z(e=>{let t="";for(let s=0;s<e.length;s+=1){const n=e[s],o=n.toUpperCase();t+=n===o?n.toLowerCase():o}return t},"invertCase"),oe=new Map,_e=Z((e,t)=>{const s=Ie.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(s,""),!t.existsSync(Ae(s))}finally{try{t.unlinkSync(s)}catch{}}},"checkDirectoryCaseWithWrite"),Ke=Z((e,t,s)=>{try{return _e(e,s)}catch(n){if(t===void 0)return _e(Be.tmpdir(),s);throw n}},"checkDirectoryCaseWithFallback"),Oe=Z((e,t=xe,s=!0)=>{const n=e!=null?e:process.cwd();if(s&&oe.has(n))return oe.get(n);let o;const l=Ae(n);return l!==n&&t.existsSync(n)?o=!t.existsSync(l):o=Ke(n,e,t),s&&oe.set(n,o),o},"isFsCaseSensitive"),{join:ye}=m.posix,ie={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Ce=i(e=>{const t=[...ie.ts],s=[...ie.cts],n=[...ie.mts];return e!=null&&e.allowJs&&(t.push(".js",".jsx"),s.push(".cjs"),n.push(".mjs")),[...t,...s,...n]},"getSupportedExtensions"),en=i(e=>{const t=[];if(!e)return t;const{outDir:s,declarationDir:n}=e;return s&&t.push(s),n&&t.push(n),t},"getDefaultExcludeSpec"),je=i(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),nn=["node_modules","bower_components","jspm_packages"],ue=`(?!(${nn.join("|")})(/|$))`,tn=/(?:^|\/)[^.*?]+$/,Fe="**/*",q="[^/]",re="[^./]",De=process.platform==="win32",sn=i(({config:e,path:t},s=Oe())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!m.isAbsolute(t))throw new Error("The tsconfig path must be absolute");De&&(t=h(t));const n=m.dirname(t),{files:o,include:l,exclude:u,compilerOptions:f}=e,r=i(A=>m.isAbsolute(A)?A:ye(n,A),"resolvePattern"),g=o==null?void 0:o.map(r),b=Ce(f),w=s?"":"i",v=(u||en(f)).map(A=>{const D=r(A),B=je(D).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${q}*`).replaceAll(String.raw`\?`,q);return new RegExp(`^${B}($|/)`,w)}),p=o||l?l:[Fe],L=p?p.map(A=>{let D=r(A);tn.test(D)&&(D=ye(D,Fe));const B=je(D).replaceAll(String.raw`/\*\*`,`(/${ue}${re}${q}*)*?`).replaceAll(/(\/)?\\\*/g,(c,j)=>{const y=`(${re}|(\\.(?!min\\.js$))?)*`;return j?`/${ue}${re}${y}`:y}).replaceAll(/(\/)?\\\?/g,(c,j)=>{const y=q;return j?`/${ue}${y}`:y});return new RegExp(`^${B}$`,w)}):void 0;return A=>{if(!m.isAbsolute(A))throw new Error("filePath must be absolute");if(De&&(A=h(A)),g!=null&&g.includes(A))return e;if(!(!b.some(D=>A.endsWith(D))||v.some(D=>D.test(A)))&&L&&L.some(D=>D.test(A)))return e}},"createFilesMatcher");export{sn as createFilesMatcher,Ze as createPathsMatcher,Ge as getTsconfig,pe as parseTsconfig};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "get-tsconfig",
|
|
3
|
+
"version": "4.13.8",
|
|
4
|
+
"description": "Find and parse the tsconfig.json file from a directory path",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"get-tsconfig",
|
|
7
|
+
"get",
|
|
8
|
+
"typescript",
|
|
9
|
+
"tsconfig",
|
|
10
|
+
"tsconfig.json"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": "privatenumber/get-tsconfig",
|
|
14
|
+
"funding": "https://github.com/privatenumber/get-tsconfig?sponsor=1",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Hiroki Osame",
|
|
17
|
+
"email": "hiroki.osame@gmail.com"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.mjs",
|
|
25
|
+
"types": "./dist/index.d.cts",
|
|
26
|
+
"exports": {
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
},
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
33
|
+
"default": "./dist/index.mjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"imports": {
|
|
37
|
+
"#get-tsconfig": {
|
|
38
|
+
"types": "./src/index.ts",
|
|
39
|
+
"development": "./src/index.ts",
|
|
40
|
+
"default": "./dist/index.mjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"resolve-pkg-maps": "^1.0.0"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Quantum Coin Community
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
License for file wasm_exec.js
|
|
2
|
+
https://github.com/golang/go/blob/master/LICENSE
|
|
3
|
+
|
|
4
|
+
Copyright 2009 The Go Authors.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are
|
|
8
|
+
met:
|
|
9
|
+
|
|
10
|
+
* Redistributions of source code must retain the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer.
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
14
|
+
in the documentation and/or other materials provided with the
|
|
15
|
+
distribution.
|
|
16
|
+
* Neither the name of Google LLC nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
21
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
22
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
23
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
24
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
25
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
26
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
27
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
28
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
29
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|