@prosopo/config 2.1.6 → 2.1.7
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/package.json +4 -4
- package/dist/cjs/dependencies.cjs +0 -160
- package/dist/cjs/index.cjs +0 -69
- package/dist/cjs/projectInfo.cjs +0 -82
- package/dist/cjs/provider/index.cjs +0 -4
- package/dist/cjs/provider/test.cjs +0 -28
- package/dist/cjs/vite/TsNoCheckPlugin.cjs +0 -18
- package/dist/cjs/vite/index.cjs +0 -18
- package/dist/cjs/vite/vite-plugin-close-and-copy.cjs +0 -43
- package/dist/cjs/vite/vite-plugin-fix-absolute-imports.cjs +0 -26
- package/dist/cjs/vite/vite-plugin-sourcemap-exclude.cjs +0 -17
- package/dist/cjs/vite/vite.backend.config.cjs +0 -95
- package/dist/cjs/vite/vite.commonjs.config.cjs +0 -56
- package/dist/cjs/vite/vite.frontend.config.cjs +0 -178
- package/dist/cjs/vite/vite.test.config.cjs +0 -48
- package/dist/cjs/webpack/index.cjs +0 -2
- package/dist/cjs/webpack/webpack.config.cjs +0 -141
- package/dist/dependencies.d.ts +0 -11
- package/dist/dependencies.d.ts.map +0 -1
- package/dist/dependencies.js +0 -138
- package/dist/dependencies.js.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/polkadot/bytes.d.ts +0 -4
- package/dist/polkadot/bytes.d.ts.map +0 -1
- package/dist/polkadot/bytes.js +0 -4
- package/dist/polkadot/bytes.js.map +0 -1
- package/dist/polkadot/exclude.d.ts +0 -3
- package/dist/polkadot/exclude.d.ts.map +0 -1
- package/dist/polkadot/exclude.js +0 -128
- package/dist/polkadot/exclude.js.map +0 -1
- package/dist/polkadot/index.d.ts +0 -2
- package/dist/polkadot/index.d.ts.map +0 -1
- package/dist/polkadot/index.js +0 -2
- package/dist/polkadot/index.js.map +0 -1
- package/dist/polkadot/mockApiDerive.d.ts +0 -3
- package/dist/polkadot/mockApiDerive.d.ts.map +0 -1
- package/dist/polkadot/mockApiDerive.js +0 -2
- package/dist/polkadot/mockApiDerive.js.map +0 -1
- package/dist/polkadot/mockInterface.d.ts +0 -5
- package/dist/polkadot/mockInterface.d.ts.map +0 -1
- package/dist/polkadot/mockInterface.js +0 -2
- package/dist/polkadot/mockInterface.js.map +0 -1
- package/dist/polkadot/mockSubstrateGenesis.d.ts +0 -30
- package/dist/polkadot/mockSubstrateGenesis.d.ts.map +0 -1
- package/dist/polkadot/mockSubstrateGenesis.js +0 -47
- package/dist/polkadot/mockSubstrateGenesis.js.map +0 -1
- package/dist/polkadot/mockUpgrade.d.ts +0 -9
- package/dist/polkadot/mockUpgrade.d.ts.map +0 -1
- package/dist/polkadot/mockUpgrade.js +0 -8
- package/dist/polkadot/mockUpgrade.js.map +0 -1
- package/dist/projectInfo.d.ts +0 -41
- package/dist/projectInfo.d.ts.map +0 -1
- package/dist/projectInfo.js +0 -41
- package/dist/projectInfo.js.map +0 -1
- package/dist/provider/index.d.ts +0 -2
- package/dist/provider/index.d.ts.map +0 -1
- package/dist/provider/index.js +0 -2
- package/dist/provider/index.js.map +0 -1
- package/dist/provider/test.d.ts +0 -108
- package/dist/provider/test.d.ts.map +0 -1
- package/dist/provider/test.js +0 -27
- package/dist/provider/test.js.map +0 -1
- package/dist/vite/NodejsPolarsDirnamePlugin.d.ts +0 -7
- package/dist/vite/NodejsPolarsDirnamePlugin.d.ts.map +0 -1
- package/dist/vite/NodejsPolarsDirnamePlugin.js +0 -22
- package/dist/vite/NodejsPolarsDirnamePlugin.js.map +0 -1
- package/dist/vite/NodejsPolarsNativeFilePlugin.d.ts +0 -9
- package/dist/vite/NodejsPolarsNativeFilePlugin.d.ts.map +0 -1
- package/dist/vite/NodejsPolarsNativeFilePlugin.js +0 -58
- package/dist/vite/NodejsPolarsNativeFilePlugin.js.map +0 -1
- package/dist/vite/TsNoCheckPlugin.d.ts +0 -5
- package/dist/vite/TsNoCheckPlugin.d.ts.map +0 -1
- package/dist/vite/TsNoCheckPlugin.js +0 -14
- package/dist/vite/TsNoCheckPlugin.js.map +0 -1
- package/dist/vite/index.d.ts +0 -9
- package/dist/vite/index.d.ts.map +0 -1
- package/dist/vite/index.js +0 -9
- package/dist/vite/index.js.map +0 -1
- package/dist/vite/types.d.ts +0 -2
- package/dist/vite/types.d.ts.map +0 -1
- package/dist/vite/types.js +0 -2
- package/dist/vite/types.js.map +0 -1
- package/dist/vite/vite-plugin-close-and-copy.d.ts +0 -7
- package/dist/vite/vite-plugin-close-and-copy.d.ts.map +0 -1
- package/dist/vite/vite-plugin-close-and-copy.js +0 -44
- package/dist/vite/vite-plugin-close-and-copy.js.map +0 -1
- package/dist/vite/vite-plugin-fix-absolute-imports.d.ts +0 -3
- package/dist/vite/vite-plugin-fix-absolute-imports.d.ts.map +0 -1
- package/dist/vite/vite-plugin-fix-absolute-imports.js +0 -22
- package/dist/vite/vite-plugin-fix-absolute-imports.js.map +0 -1
- package/dist/vite/vite-plugin-sourcemap-exclude.d.ts +0 -7
- package/dist/vite/vite-plugin-sourcemap-exclude.d.ts.map +0 -1
- package/dist/vite/vite-plugin-sourcemap-exclude.js +0 -15
- package/dist/vite/vite-plugin-sourcemap-exclude.js.map +0 -1
- package/dist/vite/vite.backend.config.d.ts +0 -3
- package/dist/vite/vite.backend.config.d.ts.map +0 -1
- package/dist/vite/vite.backend.config.js +0 -88
- package/dist/vite/vite.backend.config.js.map +0 -1
- package/dist/vite/vite.commonjs.config.d.ts +0 -3
- package/dist/vite/vite.commonjs.config.d.ts.map +0 -1
- package/dist/vite/vite.commonjs.config.js +0 -51
- package/dist/vite/vite.commonjs.config.js.map +0 -1
- package/dist/vite/vite.frontend.config.d.ts +0 -4
- package/dist/vite/vite.frontend.config.d.ts.map +0 -1
- package/dist/vite/vite.frontend.config.js +0 -151
- package/dist/vite/vite.frontend.config.js.map +0 -1
- package/dist/vite/vite.test.config.d.ts +0 -2
- package/dist/vite/vite.test.config.d.ts.map +0 -1
- package/dist/vite/vite.test.config.js +0 -45
- package/dist/vite/vite.test.config.js.map +0 -1
- package/dist/webpack/index.d.ts +0 -2
- package/dist/webpack/index.d.ts.map +0 -1
- package/dist/webpack/index.js +0 -2
- package/dist/webpack/index.js.map +0 -1
- package/dist/webpack/webpack.config.d.ts +0 -94
- package/dist/webpack/webpack.config.d.ts.map +0 -1
- package/dist/webpack/webpack.config.js +0 -113
- package/dist/webpack/webpack.config.js.map +0 -1
package/dist/polkadot/exclude.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { getLogger } from '@prosopo/common';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
const POLKADOT_INTERFACES = [
|
|
5
|
-
'./assetConversion/definitions.js',
|
|
6
|
-
'./assets/definitions.js',
|
|
7
|
-
'./attestations/definitions.js',
|
|
8
|
-
'./aura/definitions.js',
|
|
9
|
-
'./author/definitions.js',
|
|
10
|
-
'./authorship/definitions.js',
|
|
11
|
-
'./babe/definitions.js',
|
|
12
|
-
'./beefy/definitions.js',
|
|
13
|
-
'./benchmark/definitions.js',
|
|
14
|
-
'./blockbuilder/definitions.js',
|
|
15
|
-
'./bridges/definitions.js',
|
|
16
|
-
'./childstate/definitions.js',
|
|
17
|
-
'./claims/definitions.js',
|
|
18
|
-
'./collective/definitions.js',
|
|
19
|
-
'./consensus/definitions.js',
|
|
20
|
-
'./crowdloan/definitions.js',
|
|
21
|
-
'./cumulus/definitions.js',
|
|
22
|
-
'./democracy/definitions.js',
|
|
23
|
-
'./dev/definitions.js',
|
|
24
|
-
'./discovery/definitions.js',
|
|
25
|
-
'./elections/definitions.js',
|
|
26
|
-
'./engine/definitions.js',
|
|
27
|
-
'./eth/definitions.js',
|
|
28
|
-
'./evm/definitions.js',
|
|
29
|
-
'./finality/definitions.js',
|
|
30
|
-
'./fungibles/definitions.js',
|
|
31
|
-
'./genericAsset/definitions.js',
|
|
32
|
-
'./gilt/definitions.js',
|
|
33
|
-
'./grandpa/definitions.js',
|
|
34
|
-
'./identity/definitions.js',
|
|
35
|
-
'./imOnline/definitions.js',
|
|
36
|
-
'./lottery/definitions.js',
|
|
37
|
-
'./mmr/definitions.js',
|
|
38
|
-
'./nfts/definitions.js',
|
|
39
|
-
'./nimbus/definitions.js',
|
|
40
|
-
'./nompools/definitions.js',
|
|
41
|
-
'./offchain/definitions.js',
|
|
42
|
-
'./offences/definitions.js',
|
|
43
|
-
'./ormlOracle/definitions.js',
|
|
44
|
-
'./ormlTokens/definitions.js',
|
|
45
|
-
'./parachains/definitions.js',
|
|
46
|
-
'./payment/definitions.js',
|
|
47
|
-
'./poll/definitions.js',
|
|
48
|
-
'./pow/definitions.js',
|
|
49
|
-
'./proxy/definitions.js',
|
|
50
|
-
'./purchase/definitions.js',
|
|
51
|
-
'./recovery/definitions.js',
|
|
52
|
-
'./scheduler/definitions.js',
|
|
53
|
-
'./session/definitions.js',
|
|
54
|
-
'./society/definitions.js',
|
|
55
|
-
'./staking/definitions.js',
|
|
56
|
-
'./support/definitions.js',
|
|
57
|
-
'./syncstate/definitions.js',
|
|
58
|
-
'./treasury/definitions.js',
|
|
59
|
-
'./txpayment/definitions.js',
|
|
60
|
-
'./txqueue/definitions.js',
|
|
61
|
-
'./uniques/definitions.js',
|
|
62
|
-
'./vesting/definitions.js',
|
|
63
|
-
'./xcm/definitions.js',
|
|
64
|
-
];
|
|
65
|
-
const POLKADOT_UPGRADES = [
|
|
66
|
-
'./centrifuge-chain.js',
|
|
67
|
-
'./kusama.js',
|
|
68
|
-
'./node.js',
|
|
69
|
-
'./node-template.js',
|
|
70
|
-
'./polkadot.js',
|
|
71
|
-
'./shell.js',
|
|
72
|
-
'./statemint.js',
|
|
73
|
-
'./westend.js',
|
|
74
|
-
];
|
|
75
|
-
const API_DERIVE = [
|
|
76
|
-
'./alliance/index.js',
|
|
77
|
-
'./bagsList/index.js',
|
|
78
|
-
'./bounties/index.js',
|
|
79
|
-
'./council/index.js',
|
|
80
|
-
'./crowdloan/index.js',
|
|
81
|
-
'./democracy/index.js',
|
|
82
|
-
'./elections/index.js',
|
|
83
|
-
'./imOnline/index.js',
|
|
84
|
-
'./membership/index.js',
|
|
85
|
-
'./parachains/index.js',
|
|
86
|
-
'./session/index.js',
|
|
87
|
-
'./society/index.js',
|
|
88
|
-
'./staking/index.js',
|
|
89
|
-
'./technicalCommittee/index.js',
|
|
90
|
-
'./treasury/index.js',
|
|
91
|
-
];
|
|
92
|
-
const KNOWN_SUBSTRATE_CHAINS = ['./genesis.js'];
|
|
93
|
-
const WASM_BYTES = ['./bytes.js', './cjs/bytes.js'];
|
|
94
|
-
const log = getLogger(`Info`, `config.polkadot.exclude.js`);
|
|
95
|
-
export function getAliases(nodeModulesDir) {
|
|
96
|
-
const alias = [];
|
|
97
|
-
if (!fs.existsSync(path.resolve(nodeModulesDir, './node_modules'))) {
|
|
98
|
-
log.error(`node_modules not found in ${nodeModulesDir}`);
|
|
99
|
-
return alias;
|
|
100
|
-
}
|
|
101
|
-
const mockUpgrade = path.resolve(nodeModulesDir, './node_modules/@prosopo/config/dist/polkadot/mockUpgrade.js');
|
|
102
|
-
const mockInterface = path.resolve(nodeModulesDir, './node_modules/@prosopo/config/dist/polkadot/mockInterface.js');
|
|
103
|
-
const mockSubstrate = path.resolve(nodeModulesDir, './node_modules/@prosopo/config/dist/polkadot/mockSubstrateGenesis.js');
|
|
104
|
-
const mockAPIDerive = path.resolve(nodeModulesDir, './node_modules/@prosopo/config/dist/polkadot/mockApiDerive.js');
|
|
105
|
-
const slimmedWASM = path.resolve(nodeModulesDir, './node_modules/@prosopo/config/dist/polkadot/bytes.js');
|
|
106
|
-
POLKADOT_UPGRADES.forEach((file) => {
|
|
107
|
-
log.debug(`resolving ${file} to ${mockUpgrade.split('/').slice(-1)}`);
|
|
108
|
-
alias.push({ find: file, replacement: mockUpgrade });
|
|
109
|
-
});
|
|
110
|
-
POLKADOT_INTERFACES.forEach((file) => {
|
|
111
|
-
log.debug(`resolving ${file} to ${mockUpgrade.split('/').slice(-1)}`);
|
|
112
|
-
alias.push({ find: file, replacement: mockInterface });
|
|
113
|
-
});
|
|
114
|
-
KNOWN_SUBSTRATE_CHAINS.forEach((file) => {
|
|
115
|
-
log.debug(`resolving ${file} to ${mockUpgrade.split('/').slice(-1)}`);
|
|
116
|
-
alias.push({ find: file, replacement: mockSubstrate });
|
|
117
|
-
});
|
|
118
|
-
WASM_BYTES.forEach((file) => {
|
|
119
|
-
log.debug(`resolving ${file} to ${mockUpgrade.split('/').slice(-1)}`);
|
|
120
|
-
alias.push({ find: file, replacement: slimmedWASM });
|
|
121
|
-
});
|
|
122
|
-
API_DERIVE.forEach((file) => {
|
|
123
|
-
log.debug(`resolving ${file} to ${mockUpgrade.split('/').slice(-1)}`);
|
|
124
|
-
alias.push({ find: file, replacement: mockAPIDerive });
|
|
125
|
-
});
|
|
126
|
-
return alias;
|
|
127
|
-
}
|
|
128
|
-
//# sourceMappingURL=exclude.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exclude.js","sourceRoot":"","sources":["../../src/polkadot/exclude.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,IAAI,MAAM,MAAM,CAAA;AAGvB,MAAM,mBAAmB,GAAG;IACxB,kCAAkC;IAClC,yBAAyB;IACzB,+BAA+B;IAC/B,uBAAuB;IACvB,yBAAyB;IACzB,6BAA6B;IAC7B,uBAAuB;IAEvB,wBAAwB;IACxB,4BAA4B;IAC5B,+BAA+B;IAC/B,0BAA0B;IAE1B,6BAA6B;IAC7B,yBAAyB;IACzB,6BAA6B;IAC7B,4BAA4B;IAG5B,4BAA4B;IAC5B,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,4BAA4B;IAC5B,4BAA4B;IAC5B,yBAAyB;IACzB,sBAAsB;IAC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OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACpC,GAAG,CAAC,KAAK,CAAC,aAAa,IAAI,OAAO,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QACrE,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAA;IAC1D,CAAC,CAAC,CAAA;IACF,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,GAAG,CAAC,KAAK,CAAC,aAAa,IAAI,OAAO,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QACrE,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAA;IACxD,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,GAAG,CAAC,KAAK,CAAC,aAAa,IAAI,OAAO,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QACrE,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAA;IAC1D,CAAC,CAAC,CAAA;IAEF,OAAO,KAAK,CAAA;AAChB,CAAC"}
|
package/dist/polkadot/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/polkadot/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
package/dist/polkadot/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/polkadot/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockApiDerive.d.ts","sourceRoot":"","sources":["../../src/polkadot/mockApiDerive.ts"],"names":[],"mappings":";AAaA,wBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockApiDerive.js","sourceRoot":"","sources":["../../src/polkadot/mockApiDerive.ts"],"names":[],"mappings":"AAaA,eAAe,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockInterface.d.ts","sourceRoot":"","sources":["../../src/polkadot/mockInterface.ts"],"names":[],"mappings":";;;AAaA,wBAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockInterface.js","sourceRoot":"","sources":["../../src/polkadot/mockInterface.ts"],"names":[],"mappings":"AAaA,eAAe,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const knownGenesis: {
|
|
2
|
-
kusama: string[];
|
|
3
|
-
polkadot: string[];
|
|
4
|
-
rococo: string[];
|
|
5
|
-
westend: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const knownIcon: {
|
|
8
|
-
centrifuge: string;
|
|
9
|
-
kusama: string;
|
|
10
|
-
polkadot: string;
|
|
11
|
-
sora: string;
|
|
12
|
-
statemine: string;
|
|
13
|
-
statemint: string;
|
|
14
|
-
westmint: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const knownLedger: {
|
|
17
|
-
kusama: number;
|
|
18
|
-
polkadot: number;
|
|
19
|
-
};
|
|
20
|
-
export declare const knownTestnet: {
|
|
21
|
-
'': boolean;
|
|
22
|
-
'cess-testnet': boolean;
|
|
23
|
-
'dock-testnet': boolean;
|
|
24
|
-
jupiter: boolean;
|
|
25
|
-
'mathchain-testnet': boolean;
|
|
26
|
-
p3dt: boolean;
|
|
27
|
-
subspace_testnet: boolean;
|
|
28
|
-
'zero-alphaville': boolean;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=mockSubstrateGenesis.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockSubstrateGenesis.d.ts","sourceRoot":"","sources":["../../src/polkadot/mockSubstrateGenesis.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;;;;;CAsBxB,CAAA;AACD,eAAO,MAAM,SAAS;;;;;;;;CAQrB,CAAA;AACD,eAAO,MAAM,WAAW;;;CAGvB,CAAA;AACD,eAAO,MAAM,YAAY;;;;;;;;;CASxB,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export const knownGenesis = {
|
|
2
|
-
kusama: [
|
|
3
|
-
'0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe',
|
|
4
|
-
'0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636',
|
|
5
|
-
'0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf',
|
|
6
|
-
],
|
|
7
|
-
polkadot: ['0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'],
|
|
8
|
-
rococo: [
|
|
9
|
-
'0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e',
|
|
10
|
-
'0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897',
|
|
11
|
-
'0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770',
|
|
12
|
-
'0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff',
|
|
13
|
-
'0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a',
|
|
14
|
-
'0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9',
|
|
15
|
-
'0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779',
|
|
16
|
-
'0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215',
|
|
17
|
-
'0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9',
|
|
18
|
-
'0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147',
|
|
19
|
-
'0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd',
|
|
20
|
-
'0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299',
|
|
21
|
-
],
|
|
22
|
-
westend: ['0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e'],
|
|
23
|
-
};
|
|
24
|
-
export const knownIcon = {
|
|
25
|
-
centrifuge: 'polkadot',
|
|
26
|
-
kusama: 'polkadot',
|
|
27
|
-
polkadot: 'polkadot',
|
|
28
|
-
sora: 'polkadot',
|
|
29
|
-
statemine: 'polkadot',
|
|
30
|
-
statemint: 'polkadot',
|
|
31
|
-
westmint: 'polkadot',
|
|
32
|
-
};
|
|
33
|
-
export const knownLedger = {
|
|
34
|
-
kusama: 434,
|
|
35
|
-
polkadot: 354,
|
|
36
|
-
};
|
|
37
|
-
export const knownTestnet = {
|
|
38
|
-
'': true,
|
|
39
|
-
'cess-testnet': true,
|
|
40
|
-
'dock-testnet': true,
|
|
41
|
-
jupiter: true,
|
|
42
|
-
'mathchain-testnet': true,
|
|
43
|
-
p3dt: true,
|
|
44
|
-
subspace_testnet: true,
|
|
45
|
-
'zero-alphaville': true,
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=mockSubstrateGenesis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockSubstrateGenesis.js","sourceRoot":"","sources":["../../src/polkadot/mockSubstrateGenesis.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,MAAM,EAAE;QACJ,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;KACvE;IACD,QAAQ,EAAE,CAAC,oEAAoE,CAAC;IAChF,MAAM,EAAE;QACJ,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;QACpE,oEAAoE;KACvE;IACD,OAAO,EAAE,CAAC,oEAAoE,CAAC;CAClF,CAAA;AACD,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,UAAU;CACvB,CAAA;AACD,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,MAAM,EAAE,GAAG;IACX,QAAQ,EAAE,GAAG;CAChB,CAAA;AACD,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,EAAE,EAAE,IAAI;IACR,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE,IAAI;IACb,mBAAmB,EAAE,IAAI;IACzB,IAAI,EAAE,IAAI;IACV,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;CAC1B,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const upgrades: never[];
|
|
2
|
-
export declare const versioned: never[];
|
|
3
|
-
export declare const statemint: never[];
|
|
4
|
-
export declare const polkadot: never[];
|
|
5
|
-
export declare const centrifugeChain: never[];
|
|
6
|
-
export declare const shell: never[];
|
|
7
|
-
declare const _default: never[];
|
|
8
|
-
export default _default;
|
|
9
|
-
//# sourceMappingURL=mockUpgrade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockUpgrade.d.ts","sourceRoot":"","sources":["../../src/polkadot/mockUpgrade.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,SAAK,CAAA;AAC1B,eAAO,MAAM,SAAS,SAAK,CAAA;AAC3B,eAAO,MAAM,SAAS,SAAK,CAAA;AAC3B,eAAO,MAAM,QAAQ,SAAK,CAAA;AAC1B,eAAO,MAAM,eAAe,SAAK,CAAA;AACjC,eAAO,MAAM,KAAK,SAAK,CAAA;;AACvB,wBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockUpgrade.js","sourceRoot":"","sources":["../../src/polkadot/mockUpgrade.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAA;AAC1B,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAA;AAC3B,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAA;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAA;AAC1B,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAA;AACjC,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAA;AACvB,eAAe,EAAE,CAAA"}
|
package/dist/projectInfo.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare const getRootDir: () => string;
|
|
2
|
-
export declare const getCacheDir: () => string;
|
|
3
|
-
export declare const getTestResultsDir: () => string;
|
|
4
|
-
export declare const getDevDir: () => string;
|
|
5
|
-
export declare const getDemosDir: () => string;
|
|
6
|
-
export declare const getPackagesDir: () => string;
|
|
7
|
-
export declare const getNodeModulesDir: () => string;
|
|
8
|
-
export declare const getConfigPkgDir: () => string;
|
|
9
|
-
export declare const getScriptsPkgDir: () => string;
|
|
10
|
-
export declare const getClientExampleDir: () => string;
|
|
11
|
-
export declare const getClientExampleServerDir: () => string;
|
|
12
|
-
export declare const getClientBundleExampleDir: () => string;
|
|
13
|
-
export declare const getDappExampleDir: () => string;
|
|
14
|
-
export declare const getAccountPkgDir: () => string;
|
|
15
|
-
export declare const getApiPkgDir: () => string;
|
|
16
|
-
export declare const getCliPkgDir: () => string;
|
|
17
|
-
export declare const getCommonPkgDir: () => string;
|
|
18
|
-
export declare const getContractPkgDir: () => string;
|
|
19
|
-
export declare const getDatabasePkgDir: () => string;
|
|
20
|
-
export declare const getDatasetsPkgDir: () => string;
|
|
21
|
-
export declare const getDatasetsFsPkgDir: () => string;
|
|
22
|
-
export declare const getDotEnvPkgDir: () => string;
|
|
23
|
-
export declare const getEnvPkgDir: () => string;
|
|
24
|
-
export declare const getFileServerPkgDir: () => string;
|
|
25
|
-
export declare const getProcaptchaPkgDir: () => string;
|
|
26
|
-
export declare const getProcaptchaBundlePkgDir: () => string;
|
|
27
|
-
export declare const getProcaptchaCommonPkgDir: () => string;
|
|
28
|
-
export declare const getProcaptchaFrictionlessPkgDir: () => string;
|
|
29
|
-
export declare const getProcaptchaPoWPkgDir: () => string;
|
|
30
|
-
export declare const getProcaptchaReactPkgDir: () => string;
|
|
31
|
-
export declare const getProviderPkgDir: () => string;
|
|
32
|
-
export declare const getServerPkgDir: () => string;
|
|
33
|
-
export declare const getTxPkgDir: () => string;
|
|
34
|
-
export declare const getTypesPkgDir: () => string;
|
|
35
|
-
export declare const getTypesDatabasePkgDir: () => string;
|
|
36
|
-
export declare const getTypesEnvPkgDir: () => string;
|
|
37
|
-
export declare const getUtilPkgDir: () => string;
|
|
38
|
-
export declare const getWebComponentsPkgDir: () => string;
|
|
39
|
-
export declare const getLocalePkgDir: () => string;
|
|
40
|
-
export declare const getLocaleBrowserPkgDir: () => string;
|
|
41
|
-
//# sourceMappingURL=projectInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectInfo.d.ts","sourceRoot":"","sources":["../src/projectInfo.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,UAAU,cACoC,CAAC;AAE5D,eAAO,MAAM,WAAW,cAAiC,CA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O,MAAM,cAAc,cAAoC,CAAC;AAEhE,eAAO,MAAM,sBAAsB,cACE,CAAC;AAEtC,eAAO,MAAM,iBAAiB,cAAwC,CAAC;AAEvE,eAAO,MAAM,aAAa,cAAmC,CAAC;AAE9D,eAAO,MAAM,sBAAsB,cACE,CAAC;AAEtC,eAAO,MAAM,eAAe,cAAqC,CAAC;AAElE,eAAO,MAAM,sBAAsB,cACE,CAAC"}
|
package/dist/projectInfo.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export const getRootDir = () => new URL("../../..", import.meta.url).pathname.slice(0, -1);
|
|
2
|
-
export const getCacheDir = () => `${getRootDir()}/.cache`;
|
|
3
|
-
export const getTestResultsDir = () => `${getCacheDir()}/test-results`;
|
|
4
|
-
export const getDevDir = () => `${getRootDir()}/dev`;
|
|
5
|
-
export const getDemosDir = () => `${getRootDir()}/demos`;
|
|
6
|
-
export const getPackagesDir = () => `${getRootDir()}/packages`;
|
|
7
|
-
export const getNodeModulesDir = () => `${getRootDir()}/node_modules`;
|
|
8
|
-
export const getConfigPkgDir = () => `${getDevDir()}/config`;
|
|
9
|
-
export const getScriptsPkgDir = () => `${getDevDir()}/scripts`;
|
|
10
|
-
export const getClientExampleDir = () => `${getDemosDir()}/client-example`;
|
|
11
|
-
export const getClientExampleServerDir = () => `${getDemosDir()}/client-example-server`;
|
|
12
|
-
export const getClientBundleExampleDir = () => `${getDemosDir()}/client-bundle-example`;
|
|
13
|
-
export const getDappExampleDir = () => `${getDemosDir()}/dapp-example`;
|
|
14
|
-
export const getAccountPkgDir = () => `${getPackagesDir()}/account`;
|
|
15
|
-
export const getApiPkgDir = () => `${getPackagesDir()}/api`;
|
|
16
|
-
export const getCliPkgDir = () => `${getPackagesDir()}/cli`;
|
|
17
|
-
export const getCommonPkgDir = () => `${getPackagesDir()}/common`;
|
|
18
|
-
export const getContractPkgDir = () => `${getPackagesDir()}/contract`;
|
|
19
|
-
export const getDatabasePkgDir = () => `${getPackagesDir()}/database`;
|
|
20
|
-
export const getDatasetsPkgDir = () => `${getPackagesDir()}/datasets`;
|
|
21
|
-
export const getDatasetsFsPkgDir = () => `${getPackagesDir()}/datasets-fs`;
|
|
22
|
-
export const getDotEnvPkgDir = () => `${getPackagesDir()}/dotenv`;
|
|
23
|
-
export const getEnvPkgDir = () => `${getPackagesDir()}/env`;
|
|
24
|
-
export const getFileServerPkgDir = () => `${getPackagesDir()}/file-server`;
|
|
25
|
-
export const getProcaptchaPkgDir = () => `${getPackagesDir()}/procaptcha`;
|
|
26
|
-
export const getProcaptchaBundlePkgDir = () => `${getPackagesDir()}/procaptcha-bundle`;
|
|
27
|
-
export const getProcaptchaCommonPkgDir = () => `${getPackagesDir()}/procaptcha-common`;
|
|
28
|
-
export const getProcaptchaFrictionlessPkgDir = () => `${getPackagesDir()}/procaptcha-frictionless`;
|
|
29
|
-
export const getProcaptchaPoWPkgDir = () => `${getPackagesDir()}/procaptcha-pow`;
|
|
30
|
-
export const getProcaptchaReactPkgDir = () => `${getPackagesDir()}/procaptcha-react`;
|
|
31
|
-
export const getProviderPkgDir = () => `${getPackagesDir()}/provider`;
|
|
32
|
-
export const getServerPkgDir = () => `${getPackagesDir()}/server`;
|
|
33
|
-
export const getTxPkgDir = () => `${getPackagesDir()}/tx`;
|
|
34
|
-
export const getTypesPkgDir = () => `${getPackagesDir()}/types`;
|
|
35
|
-
export const getTypesDatabasePkgDir = () => `${getPackagesDir()}/types-database`;
|
|
36
|
-
export const getTypesEnvPkgDir = () => `${getPackagesDir()}/types-env`;
|
|
37
|
-
export const getUtilPkgDir = () => `${getPackagesDir()}/util`;
|
|
38
|
-
export const getWebComponentsPkgDir = () => `${getPackagesDir()}/web-components`;
|
|
39
|
-
export const getLocalePkgDir = () => `${getPackagesDir()}/locale`;
|
|
40
|
-
export const getLocaleBrowserPkgDir = () => `${getPackagesDir()}/locale-browser`;
|
|
41
|
-
//# sourceMappingURL=projectInfo.js.map
|
package/dist/projectInfo.js.map
DELETED
|
@@ -1 +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AC"}
|
package/dist/provider/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/provider/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/provider/test.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export default function getTestConfig(): {
|
|
2
|
-
captchas: {
|
|
3
|
-
solved: {
|
|
4
|
-
count: number;
|
|
5
|
-
};
|
|
6
|
-
unsolved: {
|
|
7
|
-
count: number;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | "log";
|
|
11
|
-
defaultEnvironment: "development" | "staging" | "production";
|
|
12
|
-
account: {
|
|
13
|
-
secret?: string | undefined;
|
|
14
|
-
address?: string | undefined;
|
|
15
|
-
password?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
captchaSolutions: {
|
|
18
|
-
requiredNumberOfSolutions: number;
|
|
19
|
-
solutionWinningPercentage: number;
|
|
20
|
-
captchaBlockRecency: number;
|
|
21
|
-
};
|
|
22
|
-
server: {
|
|
23
|
-
baseURL: string;
|
|
24
|
-
port: number;
|
|
25
|
-
};
|
|
26
|
-
rateLimits: {
|
|
27
|
-
"/v1/prosopo/provider/captcha/image": {
|
|
28
|
-
windowMs: number;
|
|
29
|
-
limit: number;
|
|
30
|
-
};
|
|
31
|
-
"/v1/prosopo/provider/captcha/pow": {
|
|
32
|
-
windowMs: number;
|
|
33
|
-
limit: number;
|
|
34
|
-
};
|
|
35
|
-
"/v1/prosopo/provider/captcha/frictionless": {
|
|
36
|
-
windowMs: number;
|
|
37
|
-
limit: number;
|
|
38
|
-
};
|
|
39
|
-
"/v1/prosopo/provider/solution": {
|
|
40
|
-
windowMs: number;
|
|
41
|
-
limit: number;
|
|
42
|
-
};
|
|
43
|
-
"/v1/prosopo/provider/pow/solution": {
|
|
44
|
-
windowMs: number;
|
|
45
|
-
limit: number;
|
|
46
|
-
};
|
|
47
|
-
"/v1/prosopo/provider/pow/verify": {
|
|
48
|
-
windowMs: number;
|
|
49
|
-
limit: number;
|
|
50
|
-
};
|
|
51
|
-
"/v1/prosopo/provider/image/dapp/verify": {
|
|
52
|
-
windowMs: number;
|
|
53
|
-
limit: number;
|
|
54
|
-
};
|
|
55
|
-
"/v1/prosopo/provider/status": {
|
|
56
|
-
windowMs: number;
|
|
57
|
-
limit: number;
|
|
58
|
-
};
|
|
59
|
-
"/v1/prosopo/provider/details": {
|
|
60
|
-
windowMs: number;
|
|
61
|
-
limit: number;
|
|
62
|
-
};
|
|
63
|
-
"/v1/prosopo/provider/clients": {
|
|
64
|
-
windowMs: number;
|
|
65
|
-
limit: number;
|
|
66
|
-
};
|
|
67
|
-
"/v1/prosopo/provider/events": {
|
|
68
|
-
windowMs: number;
|
|
69
|
-
limit: number;
|
|
70
|
-
};
|
|
71
|
-
"/v1/prosopo/provider/admin/dataset": {
|
|
72
|
-
windowMs: number;
|
|
73
|
-
limit: number;
|
|
74
|
-
};
|
|
75
|
-
"/v1/prosopo/provider/admin/deregister": {
|
|
76
|
-
windowMs: number;
|
|
77
|
-
limit: number;
|
|
78
|
-
};
|
|
79
|
-
"/v1/prosopo/provider/admin/update": {
|
|
80
|
-
windowMs: number;
|
|
81
|
-
limit: number;
|
|
82
|
-
};
|
|
83
|
-
"/v1/prosopo/provider/admin/sitekey/register": {
|
|
84
|
-
windowMs: number;
|
|
85
|
-
limit: number;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
proxyCount: number;
|
|
89
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
90
|
-
type: string;
|
|
91
|
-
endpoint: string;
|
|
92
|
-
dbname: string;
|
|
93
|
-
authSource: string;
|
|
94
|
-
}>> | undefined;
|
|
95
|
-
devOnlyWatchEvents?: boolean | undefined;
|
|
96
|
-
scheduledTasks?: {
|
|
97
|
-
captchaScheduler?: {
|
|
98
|
-
schedule?: string | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
clientListScheduler?: {
|
|
101
|
-
schedule?: string | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
} | undefined;
|
|
104
|
-
mongoEventsUri?: string | undefined;
|
|
105
|
-
mongoCaptchaUri?: string | undefined;
|
|
106
|
-
mongoClientUri?: string | undefined;
|
|
107
|
-
};
|
|
108
|
-
//# sourceMappingURL=test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/provider/test.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,aAAa;;;;;;;;;;;;cAuBo9pC,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAywE,CAAC;oBAAwB,CAAC;;2BAAwE,CAAC;oBAAwB,CAAC;;;;;;EAD38uC"}
|
package/dist/provider/test.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { getLogLevel } from "@prosopo/common";
|
|
2
|
-
import { DatabaseTypes, EnvironmentTypesSchema, ProsopoConfigSchema, } from "@prosopo/types";
|
|
3
|
-
const logLevel = getLogLevel();
|
|
4
|
-
export default function getTestConfig() {
|
|
5
|
-
return ProsopoConfigSchema.parse({
|
|
6
|
-
logLevel,
|
|
7
|
-
defaultEnvironment: EnvironmentTypesSchema.Values.development,
|
|
8
|
-
account: {
|
|
9
|
-
password: "",
|
|
10
|
-
address: "",
|
|
11
|
-
},
|
|
12
|
-
database: {
|
|
13
|
-
development: {
|
|
14
|
-
type: DatabaseTypes.enum.mongoMemory,
|
|
15
|
-
endpoint: "",
|
|
16
|
-
dbname: "prosopo_test",
|
|
17
|
-
authSource: "",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
server: {
|
|
21
|
-
baseURL: "http://localhost",
|
|
22
|
-
port: 9229,
|
|
23
|
-
fileServePaths: "[]",
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/provider/test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAc9C,OAAO,EACN,aAAa,EACb,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AAExB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;AAC/B,MAAM,CAAC,OAAO,UAAU,aAAa;IACpC,OAAO,mBAAmB,CAAC,KAAK,CAAC;QAChC,QAAQ;QACR,kBAAkB,EAAE,sBAAsB,CAAC,MAAM,CAAC,WAAW;QAC7D,OAAO,EAAE;YACR,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACX;QACD,QAAQ,EAAE;YACT,WAAW,EAAE;gBACZ,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,WAAW;gBACpC,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,cAAc;gBACtB,UAAU,EAAE,EAAE;aACd;SACD;QACD,MAAM,EAAE;YACP,OAAO,EAAE,kBAAkB;YAC3B,IAAI,EAAE,IAAI;YACV,cAAc,EAAE,IAAI;SACpB;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Logger } from "@prosopo/common";
|
|
2
|
-
export declare const nodejsPolarsDirnamePlugin: (logger: Logger) => {
|
|
3
|
-
name: string;
|
|
4
|
-
resolveId(source: string, importer: string | undefined, options: any): string | null;
|
|
5
|
-
transform(code: string, id: string): string;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=NodejsPolarsDirnamePlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodejsPolarsDirnamePlugin.d.ts","sourceRoot":"","sources":["../../src/vite/NodejsPolarsDirnamePlugin.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,eAAO,MAAM,yBAAyB,WAAY,MAAM;;sBAKpC,MAAM,YAAY,MAAM,GAAG,SAAS,WAAW,GAAG;oBAUpD,MAAM,MAAM,MAAM;CAenC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const nodejsPolarsDirnamePlugin = (logger) => {
|
|
2
|
-
const name = "nodejs-polars-dirname-plugin";
|
|
3
|
-
return {
|
|
4
|
-
name,
|
|
5
|
-
resolveId(source, importer, options) {
|
|
6
|
-
if (source.endsWith("nodejs-polars/bin/native-polars.js")) {
|
|
7
|
-
logger.debug(name, "resolves", source, "imported by", importer);
|
|
8
|
-
return source;
|
|
9
|
-
}
|
|
10
|
-
return null;
|
|
11
|
-
},
|
|
12
|
-
transform(code, id) {
|
|
13
|
-
if (id.endsWith("nodejs-polars/bin/native-polars.js")) {
|
|
14
|
-
logger.debug(name, "transform", id);
|
|
15
|
-
const newCode = code.replaceAll("__dirname", `new URL(import.meta.url).pathname.split('/').slice(0,-1).join('/')`);
|
|
16
|
-
return newCode;
|
|
17
|
-
}
|
|
18
|
-
return code;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=NodejsPolarsDirnamePlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodejsPolarsDirnamePlugin.js","sourceRoot":"","sources":["../../src/vite/NodejsPolarsDirnamePlugin.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAc,EAAE,EAAE;IAC3D,MAAM,IAAI,GAAG,8BAA8B,CAAC;IAC5C,OAAO;QACN,IAAI;QAEJ,SAAS,CAAC,MAAc,EAAE,QAA4B,EAAE,OAAY;YAEnE,IAAI,MAAM,CAAC,QAAQ,CAAC,oCAAoC,CAAC,EAAE,CAAC;gBAC3D,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;gBAEhE,OAAO,MAAM,CAAC;YACf,CAAC;YAED,OAAO,IAAI,CAAC;QACb,CAAC;QACD,SAAS,CAAC,IAAY,EAAE,EAAU;YAEjC,IAAI,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC,EAAE,CAAC;gBAEvD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;gBACpC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAC9B,WAAW,EACX,oEAAoE,CACpE,CAAC;gBACF,OAAO,OAAO,CAAC;YAChB,CAAC;YAED,OAAO,IAAI,CAAC;QACb,CAAC;KACD,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Logger } from "@prosopo/common";
|
|
2
|
-
export declare const nodejsPolarsNativeFilePlugin: (logger: Logger, nodeFiles: string[], outDir: string) => {
|
|
3
|
-
name: string;
|
|
4
|
-
resolveId(source: string, importer: string | undefined, options: any): string | null;
|
|
5
|
-
transform(code: string, id: string): string;
|
|
6
|
-
load(id: string): "" | null;
|
|
7
|
-
generateBundle(options: any, bundle: any): void;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=NodejsPolarsNativeFilePlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodejsPolarsNativeFilePlugin.d.ts","sourceRoot":"","sources":["../../src/vite/NodejsPolarsNativeFilePlugin.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,eAAO,MAAM,4BAA4B,WAChC,MAAM,aACH,MAAM,EAAE,UACX,MAAM;;sBAMK,MAAM,YAAY,MAAM,GAAG,SAAS,WAAW,GAAG;oBAUpD,MAAM,MAAM,MAAM;aAsBzB,MAAM;4BAYS,GAAG,UAAU,GAAG;CAazC,CAAC"}
|